diff --git a/Cargo.lock b/Cargo.lock index 2c47cd780..5e575b0f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7838,6 +7838,7 @@ name = "pallet-evm-precompile-services" version = "0.1.0" dependencies = [ "derive_more 1.0.0", + "ethabi", "ethereum", "ethers", "fp-account", diff --git a/flake.lock b/flake.lock index ef8a8ca3a..2850ce6d4 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1726560853, + "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", "type": "github" }, "original": { @@ -28,11 +28,11 @@ ] }, "locked": { - "lastModified": 1722676286, - "narHash": "sha256-wEDJdvwRZF2ErQ33nQ0Lqn/48XrPbaadv56/bM2MSZU=", + "lastModified": 1728119511, + "narHash": "sha256-kJHt+BoDTc9aYXnmy7X+kQto9cT77lDKHAYp5FyY4OY=", "owner": "shazow", "repo": "foundry.nix", - "rev": "d84c83b1c1722c8742b3d2d84c9386814d75384e", + "rev": "c45f6bc1f2110b1d209e116be203648a06a02f80", "type": "github" }, "original": { @@ -44,11 +44,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1723019560, - "narHash": "sha256-O/kxmybNecC3Efr6ITOdtCzFv90/B2Iiedavj5aRWt0=", + "lastModified": 1728538411, + "narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f5129fb42b9c262318130a97b47516946da3e7d7", + "rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221", "type": "github" }, "original": { @@ -73,11 +73,11 @@ ] }, "locked": { - "lastModified": 1723083652, - "narHash": "sha256-ait+SeO67n8b3lIaBWwuzVX6F1zyTJ0cY6cHWtvhTyc=", + "lastModified": 1728959392, + "narHash": "sha256-fp4he1QQjE+vasDMspZYeXrwTm9otwEqLwEN6FKZ5v0=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "69e0ad9289fc08ee5a313fb107f00e0f21e7cbb2", + "rev": "4c6e317300f05b8871f585b826b6f583e7dc4a9b", "type": "github" }, "original": { diff --git a/forge/lib/forge-std b/forge/lib/forge-std index bb4ceea94..1de6eecf8 160000 --- a/forge/lib/forge-std +++ b/forge/lib/forge-std @@ -1 +1 @@ -Subproject commit bb4ceea94d6f10eeb5b41dc2391c6c8bf8e734ef +Subproject commit 1de6eecf821de7fe2c908cc48d3ab3dced20717f diff --git a/forge/lib/openzeppelin-contracts b/forge/lib/openzeppelin-contracts index dbb6104ce..f989fff93 160000 --- a/forge/lib/openzeppelin-contracts +++ b/forge/lib/openzeppelin-contracts @@ -1 +1 @@ -Subproject commit dbb6104ce834628e473d2173bbc9d47f81a9eec3 +Subproject commit f989fff93168606c726bc5e831ef50dd6e543f45 diff --git a/forge/lib/tnt-core b/forge/lib/tnt-core index 37f34c54a..c1fa9c7c3 160000 --- a/forge/lib/tnt-core +++ b/forge/lib/tnt-core @@ -1 +1 @@ -Subproject commit 37f34c54a063259a44547df63b82a79c852807d9 +Subproject commit c1fa9c7c3c5891aab9bd25002a434d93c54942cd diff --git a/forge/src/cggmp21/CGGMP21Blueprint.sol b/forge/src/cggmp21/CGGMP21Blueprint.sol index fe0b357fa..bb486e783 100644 --- a/forge/src/cggmp21/CGGMP21Blueprint.sol +++ b/forge/src/cggmp21/CGGMP21Blueprint.sol @@ -3,9 +3,9 @@ pragma solidity >=0.8.3; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; -import "core/BlueprintServiceManager.sol"; +import "core/BlueprintServiceManagerBase.sol"; -contract CGGMP21Blueprint is BlueprintServiceManager { +contract CGGMP21Blueprint is BlueprintServiceManagerBase { /// A Simple List of all Operator Ecdsa Public Keys struct Operator { address addr; @@ -76,7 +76,7 @@ contract CGGMP21Blueprint is BlueprintServiceManager { // Job 0 is the Keygen Job if (job == KEYGEN_JOB) { // The inputs are the DKG threshold - (uint8 t) = abi.decode(inputs, (uint8)); + uint8 t = abi.decode(inputs, (uint8)); uint256 n = services[serviceId].operators.length; // verify the DKG threshold is valid if (t == 0 || t > n) { @@ -100,94 +100,3 @@ contract CGGMP21Blueprint is BlueprintServiceManager { return address(uint160(uint256(keccak256(publicKey)))); } } - -// contract CGGMP21JobResultVerifier is JobResultVerifier { -// uint8 constant KEYGEN_JOB = 0; -// uint8 constant SIGNING_JOB = 1; - -// struct Keygen { -// uint64 jobCallId; -// uint8 t; -// bytes publicKey; -// } - -// // A mapping of serviceId & JobCallId to Keygen -// mapping(uint64 => mapping(uint64 => Keygen)) public keygens; - -// /// @dev Errors -// /// @dev InvalidJob The job is invalid -// error InvalidJob(); -// /// @dev InvalidPublicKey The public key is invalid -// error InvalidPublicKey(); -// /// @dev InvalidDKGThreshold The DKG threshold is invalid -// error InvalidDKGThreshold(); -// /// @dev InvalidKeygenResult The keygen result is invalid -// error InvalidKeygenResult(); -// /// @dev InvalidSignature The signature is invalid -// error InvalidSignature(); -// /// @dev InvalidSigner The signer is invalid -// error InvalidSigner(); - -// function verify( -// uint64 serviceId, -// uint8 jobIndex, -// uint64 jobCallId, -// bytes calldata participant, -// bytes calldata inputs, -// bytes calldata outputs -// ) public override onlyRuntime { -// if (jobIndex == KEYGEN_JOB) { -// verifyKeygen(serviceId, jobCallId, inputs, outputs); -// } else if (jobIndex == SIGNING_JOB) { -// verifySigning(serviceId, jobCallId, inputs, outputs); -// } else { -// revert InvalidJob(); -// } -// } - -// function verifyKeygen(uint64 serviceId, uint64 jobCallId, bytes calldata inputs, bytes calldata outputs) internal { -// // The inputs are the DKG threshold -// (uint8 t) = abi.decode(inputs, (uint8)); -// // The outputs are the public key -// bytes memory publicKey = outputs[0:33]; -// // verify the public key is valid Ecdsa public key in the compressed format. -// if (publicKey.length != 33) { -// revert InvalidPublicKey(); -// } -// // verify the DKG threshold is valid -// if (t == 0) { -// revert InvalidDKGThreshold(); -// } -// // store the keygen -// keygens[serviceId][jobCallId] = Keygen(jobCallId, t, outputs); -// } - -// function verifySigning(uint64 serviceId, uint64 jobCallId, bytes calldata inputs, bytes calldata outputs) -// internal -// view -// { -// // The inputs are the keygen result id (which is jobCallId) and the message hash. -// (uint64 keygenJobCallId, bytes32 message) = abi.decode(inputs, (uint64, bytes32)); -// // The outputs are the signature -// bytes memory signature = outputs[0:65]; -// // verify the signature is valid -// if (signature.length != 65) { -// revert InvalidSignature(); -// } - -// // get the keygen result -// Keygen memory keygen = keygens[serviceId][keygenJobCallId]; -// // verify the keygen result exists -// if (keygen.jobCallId != keygenJobCallId) { -// revert InvalidKeygenResult(); -// } -// // recover the public key from the signature -// address signer = ECDSA.recover(message, signature); -// // convert the public key to address format -// address keygenAddr = address(uint160(uint256(keccak256(keygen.publicKey)))); -// // verify the public key is valid -// if (signer != keygenAddr) { -// revert InvalidSigner(); -// } -// } -// } diff --git a/pallets/multi-asset-delegation/src/traits.rs b/pallets/multi-asset-delegation/src/traits.rs index 18f3b7fad..4a6b5b9c2 100644 --- a/pallets/multi-asset-delegation/src/traits.rs +++ b/pallets/multi-asset-delegation/src/traits.rs @@ -16,6 +16,7 @@ use super::*; use crate::types::{BalanceOf, OperatorStatus}; use sp_runtime::traits::Zero; +use sp_std::prelude::*; use tangle_primitives::{traits::MultiAssetDelegationInfo, RoundIndex}; impl MultiAssetDelegationInfo> for crate::Pallet { @@ -50,4 +51,16 @@ impl MultiAssetDelegationInfo> for .fold(Zero::zero(), |acc, stake| acc + stake.amount) }) } + + fn get_delegators_for_operator( + operator: &T::AccountId, + ) -> Vec<(T::AccountId, BalanceOf, Self::AssetId)> { + Operators::::get(operator).map_or(Vec::new(), |metadata| { + metadata + .delegations + .iter() + .map(|stake| (stake.delegator.clone(), stake.amount, stake.asset_id)) + .collect() + }) + } } diff --git a/pallets/services/src/benchmarking.rs b/pallets/services/src/benchmarking.rs index 177e385bb..eba1ef3bd 100644 --- a/pallets/services/src/benchmarking.rs +++ b/pallets/services/src/benchmarking.rs @@ -18,11 +18,7 @@ fn mock_account_id(id: u8) -> T::AccountId { } fn operator_preferences() -> OperatorPreferences { - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default(), - } + OperatorPreferences { key: zero_key(), price_targets: Default::default() } } fn cggmp21_blueprint() -> ServiceBlueprint { @@ -92,20 +88,6 @@ benchmarks! { }: _(RawOrigin::Signed(bob.clone()), 0) - - update_approval_preference { - let alice: T::AccountId = mock_account_id::(1u8); - let blueprint = cggmp21_blueprint::(); - let _= Pallet::::create_blueprint(RawOrigin::Signed(alice.clone()).into(), blueprint); - - let bob: T::AccountId = mock_account_id::(2u8); - let operator_preference = operator_preferences::(); - - let _= Pallet::::register(RawOrigin::Signed(bob.clone()).into(), 0, operator_preference, Default::default()); - - }: _(RawOrigin::Signed(bob.clone()), 0, ApprovalPreference::Required) - - update_price_targets { let alice: T::AccountId = mock_account_id::(1u8); let blueprint = cggmp21_blueprint::(); @@ -162,8 +144,6 @@ benchmarks! { Default::default() ); - let operator_preference = OperatorPreferences { approval: ApprovalPreference::Required, ..operator_preference }; - let charlie: T::AccountId = mock_account_id::(3u8); let _= Pallet::::register(RawOrigin::Signed(charlie.clone()).into(), 0, operator_preference, Default::default()); @@ -180,7 +160,7 @@ benchmarks! { Default::default() ); - }: _(RawOrigin::Signed(charlie.clone()), 0) + }: _(RawOrigin::Signed(charlie.clone()), 0, Percent::from_percent(25)) reject { @@ -197,8 +177,6 @@ benchmarks! { Default::default() ); - let operator_preference = OperatorPreferences { approval: ApprovalPreference::Required, ..operator_preference }; - let charlie: T::AccountId = mock_account_id::(3u8); let _= Pallet::::register(RawOrigin::Signed(charlie.clone()).into(), 0, operator_preference, Default::default()); diff --git a/pallets/services/src/functions.rs b/pallets/services/src/functions.rs index 32660578a..b05f45a79 100644 --- a/pallets/services/src/functions.rs +++ b/pallets/services/src/functions.rs @@ -11,19 +11,29 @@ use frame_support::dispatch::{DispatchErrorWithPostInfo, PostDispatchInfo}; use sp_core::{H160, U256}; use sp_runtime::traits::{AccountIdConversion, UniqueSaturatedInto}; use tangle_primitives::services::{ - Field, JobDefinition, JobResultVerifier, OperatorPreferences, ServiceBlueprint, - ServiceRegistrationHook, ServiceRequestHook, + BlueprintManager, Field, OperatorPreferences, Service, ServiceBlueprint, }; use super::*; impl Pallet { /// Returns the account id of the pallet. + /// + /// This function retrieves the account id associated with the pallet by converting + /// the pallet id into an account id. + /// + /// # Returns + /// * `T::AccountId` - The account id of the pallet. pub fn account_id() -> T::AccountId { T::PalletId::get().into_account_truncating() } /// Returns the address of the pallet. + /// + /// This function converts the account id of the pallet to a 20-byte H160 address. + /// + /// # Returns + /// * `H160` - The address of the pallet. pub fn address() -> H160 { // Convert the account id to bytes. let account_id = Self::account_id().encode(); @@ -31,14 +41,26 @@ impl Pallet { H160::from_slice(&account_id[0..20]) } - pub fn check_registeration_hook( + /// Hook to be called upon a new operator registration on a blueprint. + /// + /// This function is called when a service is registered. It performs an EVM call + /// to the `onRegister` function of the service blueprint's manager contract. + /// + /// # Parameters + /// * `blueprint` - The service blueprint. + /// * `prefrences` - The operator preferences. + /// * `registration_args` - The registration arguments. + /// + /// # Returns + /// * `Result<(bool, Weight), DispatchErrorWithPostInfo>` - A tuple containing a boolean indicating + /// whether the registration is allowed and the weight of the operation. + pub fn on_register_hook( blueprint: &ServiceBlueprint, prefrences: &OperatorPreferences, registration_args: &[Field], ) -> Result<(bool, Weight), DispatchErrorWithPostInfo> { - let (allowed, weight) = match blueprint.registration_hook { - ServiceRegistrationHook::None => (true, Weight::zero()), - ServiceRegistrationHook::Evm(contract) => { + let (allowed, weight) = match blueprint.manager { + BlueprintManager::Evm(contract) => { #[allow(deprecated)] let call = ethabi::Function { name: String::from("onRegister"), @@ -71,19 +93,33 @@ impl Pallet { Self::evm_call(Self::address(), contract, U256::from(0), data, gas_limit)?; (info.exit_reason.is_succeed(), Self::weight_from_call_info(&info)) }, + _ => (true, Weight::zero()), }; Ok((allowed, weight)) } - pub fn check_request_hook( + /// Hook to be called upon new service request. + /// + /// This function is called when a service request is made. It performs an EVM call + /// to the `onRequest` function of the service blueprint's manager contract. + /// + /// # Parameters + /// * `blueprint` - The service blueprint. + /// * `service_id` - The service ID. + /// * `operators` - The operator preferences. + /// * `request_args` - The request arguments. + /// + /// # Returns + /// * `Result<(bool, Weight), DispatchErrorWithPostInfo>` - A tuple containing a boolean indicating + /// whether the request is allowed and the weight of the operation. + pub fn on_request_hook( blueprint: &ServiceBlueprint, service_id: u64, - participants: &[OperatorPreferences], + operators: &[OperatorPreferences], request_args: &[Field], ) -> Result<(bool, Weight), DispatchErrorWithPostInfo> { - let (allowed, weight) = match blueprint.request_hook { - ServiceRequestHook::None => (true, Weight::zero()), - ServiceRequestHook::Evm(contract) => { + let (allowed, weight) = match blueprint.manager { + BlueprintManager::Evm(contract) => { #[allow(deprecated)] let call = ethabi::Function { name: String::from("onRequest"), @@ -94,7 +130,7 @@ impl Pallet { internal_type: None, }, ethabi::Param { - name: String::from("participants"), + name: String::from("operators"), kind: ethabi::ParamType::Array(Box::new(ethabi::ParamType::Bytes)), internal_type: None, }, @@ -109,12 +145,12 @@ impl Pallet { state_mutability: ethabi::StateMutability::Payable, }; let service_id = Token::Uint(ethabi::Uint::from(service_id)); - let participants = Token::Array( - participants.iter().flat_map(OperatorPreferences::to_ethabi).collect(), + let operators = Token::Array( + operators.iter().flat_map(OperatorPreferences::to_ethabi).collect(), ); let request_args = Token::Bytes(Field::encode_to_ethabi(request_args)); let data = call - .encode_input(&[service_id, participants, request_args]) + .encode_input(&[service_id, operators, request_args]) .map_err(|_| Error::::EVMAbiEncode)?; let gas_limit = 300_000; @@ -122,21 +158,36 @@ impl Pallet { Self::evm_call(Self::address(), contract, U256::from(0), data, gas_limit)?; (info.exit_reason.is_succeed(), Self::weight_from_call_info(&info)) }, + _ => (true, Weight::zero()), }; Ok((allowed, weight)) } - pub fn check_job_call_hook( + /// Hook to be called upon job call. + /// + /// This function is called when a job call is made. It performs an EVM call + /// to the `onJobCall` function of the service blueprint's manager contract. + /// + /// # Parameters + /// * `blueprint` - The service blueprint. + /// * `service_id` - The service ID. + /// * `job` - The job index. + /// * `job_call_id` - The job call ID. + /// * `inputs` - The input fields. + /// + /// # Returns + /// * `Result<(bool, Weight), DispatchErrorWithPostInfo>` - A tuple containing a boolean indicating + /// whether the job call is allowed and the weight of the operation. + pub fn on_job_call_hook( blueprint: &ServiceBlueprint, service_id: u64, job: u8, job_call_id: u64, inputs: &[Field], ) -> Result<(bool, Weight), DispatchErrorWithPostInfo> { - let (allowed, weight) = match blueprint.request_hook { - ServiceRequestHook::None => (true, Weight::zero()), - ServiceRequestHook::Evm(contract) => { + let (allowed, weight) = match blueprint.manager { + BlueprintManager::Evm(contract) => { #[allow(deprecated)] let call = ethabi::Function { name: String::from("onJobCall"), @@ -179,12 +230,30 @@ impl Pallet { Self::evm_call(Self::address(), contract, U256::from(0), data, gas_limit)?; (info.exit_reason.is_succeed(), Self::weight_from_call_info(&info)) }, + _ => (true, Weight::zero()), }; Ok((allowed, weight)) } - pub fn check_job_call_result_hook( - job_def: &JobDefinition, + /// Hook to be called upon job result. + /// + /// This function is called when a job result is submitted. It performs an EVM call + /// to the `onJobResult` function of the service blueprint's manager contract. + /// + /// # Parameters + /// * `blueprint` - The service blueprint. + /// * `service_id` - The service ID. + /// * `job` - The job index. + /// * `job_call_id` - The job call ID. + /// * `prefrences` - The operator preferences. + /// * `inputs` - The input fields. + /// * `outputs` - The output fields. + /// + /// # Returns + /// * `Result<(bool, Weight), DispatchErrorWithPostInfo>` - A tuple containing a boolean indicating + /// whether the job result is allowed and the weight of the operation. + pub fn on_job_result_hook( + blueprint: &ServiceBlueprint, service_id: u64, job: u8, job_call_id: u64, @@ -192,12 +261,11 @@ impl Pallet { inputs: &[Field], outputs: &[Field], ) -> Result<(bool, Weight), DispatchErrorWithPostInfo> { - let (allowed, weight) = match job_def.verifier { - JobResultVerifier::None => (true, Weight::zero()), - JobResultVerifier::Evm(contract) => { + let (allowed, weight) = match blueprint.manager { + BlueprintManager::Evm(contract) => { #[allow(deprecated)] let call = ethabi::Function { - name: String::from("onJobCallResult"), + name: String::from("onJobResult"), inputs: vec![ ethabi::Param { name: String::from("serviceId"), @@ -215,7 +283,7 @@ impl Pallet { internal_type: None, }, ethabi::Param { - name: String::from("participant"), + name: String::from("operator"), kind: ethabi::ParamType::Bytes, internal_type: None, }, @@ -237,11 +305,11 @@ impl Pallet { let service_id = Token::Uint(ethabi::Uint::from(service_id)); let job = Token::Uint(ethabi::Uint::from(job)); let job_call_id = Token::Uint(ethabi::Uint::from(job_call_id)); - let participant = prefrences.to_ethabi().first().unwrap().clone(); + let operator = prefrences.to_ethabi().first().unwrap().clone(); let inputs = Token::Bytes(Field::encode_to_ethabi(inputs)); let outputs = Token::Bytes(Field::encode_to_ethabi(outputs)); let data = call - .encode_input(&[service_id, job, job_call_id, participant, inputs, outputs]) + .encode_input(&[service_id, job, job_call_id, operator, inputs, outputs]) .map_err(|_| Error::::EVMAbiEncode)?; let gas_limit = 300_000; @@ -249,97 +317,134 @@ impl Pallet { Self::evm_call(Self::address(), contract, U256::from(0), data, gas_limit)?; (info.exit_reason.is_succeed(), Self::weight_from_call_info(&info)) }, + _ => (true, Weight::zero()), }; Ok((allowed, weight)) } - pub fn verify_job_call_result_hook( - job_def: &JobDefinition, - service_id: u64, - job: u8, - job_call_id: u64, - prefrences: &OperatorPreferences, - inputs: &[Field], - outputs: &[Field], - ) -> Result<(bool, Weight), DispatchErrorWithPostInfo> { - let (allowed, weight) = match job_def.verifier { - JobResultVerifier::None => (true, Weight::zero()), - JobResultVerifier::Evm(contract) => { - #[allow(deprecated)] - let call = ethabi::Function { - name: String::from("verifyJobCallResult"), - inputs: vec![ - ethabi::Param { - name: String::from("serviceId"), - kind: ethabi::ParamType::Uint(64), - internal_type: None, - }, - ethabi::Param { - name: String::from("jobIndex"), - kind: ethabi::ParamType::Uint(8), - internal_type: None, - }, - ethabi::Param { - name: String::from("jobCallId"), - kind: ethabi::ParamType::Uint(64), - internal_type: None, - }, - ethabi::Param { - name: String::from("participant"), - kind: ethabi::ParamType::Bytes, - internal_type: None, - }, - ethabi::Param { - name: String::from("inputs"), - kind: ethabi::ParamType::Bytes, - internal_type: None, - }, - ethabi::Param { - name: String::from("outputs"), - kind: ethabi::ParamType::Bytes, - internal_type: None, - }, - ], - outputs: vec![ethabi::Param { - name: String::from("allowed"), - kind: ethabi::ParamType::Bool, - internal_type: None, - }], - constant: None, - state_mutability: ethabi::StateMutability::NonPayable, - }; - let service_id = Token::Uint(ethabi::Uint::from(service_id)); - let job = Token::Uint(ethabi::Uint::from(job)); - let job_call_id = Token::Uint(ethabi::Uint::from(job_call_id)); - let participant = prefrences.to_ethabi().first().unwrap().clone(); - let inputs = Token::Bytes(Field::encode_to_ethabi(inputs)); - let outputs = Token::Bytes(Field::encode_to_ethabi(outputs)); - let data = call - .encode_input(&[service_id, job, job_call_id, participant, inputs, outputs]) - .map_err(|_| Error::::EVMAbiEncode)?; - let gas_limit = 300_000; + /// Queries the slashing origin of a service. + /// + /// This function performs an EVM call to the `querySlashingOrigin` function of the + /// service blueprint's manager contract to retrieve the slashing origin. + /// + /// # Parameters + /// * `service` - The service. + /// + /// # Returns + /// * `Result<(Option, Weight), DispatchErrorWithPostInfo>` - A tuple containing the + /// slashing origin account id (if any) and the weight of the operation. + pub fn query_slashing_origin( + service: &Service, T::AssetId>, + ) -> Result<(Option, Weight), DispatchErrorWithPostInfo> { + let (_, blueprint) = Self::blueprints(service.blueprint)?; + #[allow(deprecated)] + let query_call = ethabi::Function { + name: String::from("querySlashingOrigin"), + inputs: vec![ethabi::Param { + name: String::from("serviceId"), + kind: ethabi::ParamType::Uint(64), + internal_type: None, + }], + outputs: vec![ethabi::Param { + name: String::from("slashingOrigin"), + kind: ethabi::ParamType::Address, + internal_type: None, + }], + constant: None, + state_mutability: ethabi::StateMutability::NonPayable, + }; + let service_id_tok = ethabi::Token::Uint(ethabi::Uint::from(service.id)); + let blueprint_manager = + blueprint.manager.try_into_evm().map_err(|_| Error::::EVMAbiEncode)?; + let info = Self::evm_call( + Self::address(), + blueprint_manager, + U256::from(0), + query_call + .encode_input(&[service_id_tok]) + .map_err(|_| Error::::EVMAbiEncode)?, + 300_000, + )?; - let info = - Self::evm_call(Self::address(), contract, U256::from(0), data, gas_limit)?; - // decode the result - let allowed = match info.exit_reason.is_succeed().then_some(&info.value) { - Some(data) => { - let result = - call.decode_output(data).map_err(|_| Error::::EVMAbiDecode)?; - let allowed = result.first().ok_or_else(|| Error::::EVMAbiDecode)?; - match allowed { - Token::Bool(allowed) => *allowed, - _ => return Err(Error::::EVMAbiDecode.into()), - } - }, - None => false, - }; - (allowed, Self::weight_from_call_info(&info)) - }, + // decode the result and return it + let maybe_value = info.exit_reason.is_succeed().then_some(&info.value); + let slashing_origin = if let Some(data) = maybe_value { + let result = query_call.decode_output(data).map_err(|_| Error::::EVMAbiDecode)?; + let slashing_origin = result.first().ok_or_else(|| Error::::EVMAbiDecode)?; + if let ethabi::Token::Address(who) = slashing_origin { + Some(T::EvmAddressMapping::into_account_id(*who)) + } else { + None + } + } else { + None }; - Ok((allowed, weight)) + + Ok((slashing_origin, Self::weight_from_call_info(&info))) + } + + /// Queries the dispute origin of a service. + /// + /// This function performs an EVM call to the `queryDisputeOrigin` function of the + /// service blueprint's manager contract to retrieve the dispute origin. + /// + /// # Parameters + /// * `service` - The service. + /// + /// # Returns + /// * `Result<(Option, Weight), DispatchErrorWithPostInfo>` - A tuple containing the + /// dispute origin account id (if any) and the weight of the operation. + pub fn query_dispute_origin( + service: &Service, T::AssetId>, + ) -> Result<(Option, Weight), DispatchErrorWithPostInfo> { + let (_, blueprint) = Self::blueprints(service.blueprint)?; + #[allow(deprecated)] + let query_call = ethabi::Function { + name: String::from("queryDisputeOrigin"), + inputs: vec![ethabi::Param { + name: String::from("serviceId"), + kind: ethabi::ParamType::Uint(64), + internal_type: None, + }], + outputs: vec![ethabi::Param { + name: String::from("disputeOrigin"), + kind: ethabi::ParamType::Address, + internal_type: None, + }], + constant: None, + state_mutability: ethabi::StateMutability::NonPayable, + }; + let service_id_tok = ethabi::Token::Uint(ethabi::Uint::from(service.id)); + let blueprint_manager = + blueprint.manager.try_into_evm().map_err(|_| Error::::EVMAbiEncode)?; + let info = Self::evm_call( + Self::address(), + blueprint_manager, + U256::from(0), + query_call + .encode_input(&[service_id_tok]) + .map_err(|_| Error::::EVMAbiEncode)?, + 300_000, + )?; + + // decode the result and return it + let maybe_value = info.exit_reason.is_succeed().then_some(&info.value); + let dispute_origin = if let Some(data) = maybe_value { + let result = query_call.decode_output(data).map_err(|_| Error::::EVMAbiDecode)?; + let slashing_origin = result.first().ok_or_else(|| Error::::EVMAbiDecode)?; + if let ethabi::Token::Address(who) = slashing_origin { + Some(T::EvmAddressMapping::into_account_id(*who)) + } else { + None + } + } else { + None + }; + + Ok((dispute_origin, Self::weight_from_call_info(&info))) } + /// Dispatches a call to the EVM and returns the result. pub fn evm_call( from: H160, to: H160, diff --git a/pallets/services/src/lib.rs b/pallets/services/src/lib.rs index fa22d2103..5cd736d01 100644 --- a/pallets/services/src/lib.rs +++ b/pallets/services/src/lib.rs @@ -60,6 +60,7 @@ pub mod module { use frame_support::dispatch::PostDispatchInfo; use sp_core::{H160, H256}; use sp_runtime::traits::{AtLeast32BitUnsigned, MaybeSerializeDeserialize}; + use sp_runtime::Percent; use sp_std::vec::Vec; use tangle_primitives::{ services::{PriceTargets, *}, @@ -87,6 +88,9 @@ pub mod module { /// Substrate weight and vice versa. type EvmGasWeightMapping: traits::EvmGasWeightMapping; + /// A type that implements the `EvmAddressMapping` trait for the conversion of EVM address + type EvmAddressMapping: traits::EvmAddressMapping; + /// The asset ID type. type AssetId: AtLeast32BitUnsigned + Parameter @@ -168,6 +172,18 @@ pub mod module { BalanceOf, >; + /// Number of eras that slashes are deferred by, after computation. + /// + /// This should be less than the bonding duration. Set to 0 if slashes + /// should be applied immediately, without opportunity for intervention. + #[pallet::constant] + type SlashDeferDuration: Get + Default + Parameter + MaybeSerializeDeserialize; + + /// The origin which can manage Slashing actions. + /// + /// Supported actions: + /// 1. cancel deferred slash. + type SlashOrigin: EnsureOrigin; /// Weight information for the extrinsics in this module. type WeightInfo: WeightInfo; } @@ -226,6 +242,16 @@ pub mod module { NoAssetsProvided, /// The maximum number of assets per service has been exceeded. MaxAssetsPerServiceExceeded, + /// Offender is not a registered operator. + OffenderNotOperator, + /// Offender is not an active operator. + OffenderNotActiveOperator, + /// The Service Blueprint did not return a slashing origin for this service. + NoSlashingOrigin, + /// The Service Blueprint did not return a dispute origin for this service. + NoDisputeOrigin, + /// The Unapplied Slash are not found. + UnappliedSlashNotFound, } #[pallet::event] @@ -264,16 +290,6 @@ pub mod module { blueprint_id: u64, }, - /// The approval preference for an operator has been updated. - ApprovalPreferenceUpdated { - /// The account that updated the approval preference. - operator: T::AccountId, - /// The ID of the service blueprint. - blueprint_id: u64, - /// The new approval preference. - approval_preference: ApprovalPreference, - }, - /// The price targets for an operator has been updated. PriceTargetsUpdated { /// The account that updated the approval preference. @@ -321,26 +337,12 @@ pub mod module { /// The ID of the service blueprint. blueprint_id: u64, }, - - /// A service request has been updated or modified. - ServiceRequestUpdated { - /// The account that requested the service. - owner: T::AccountId, - /// The ID of the service request. - request_id: u64, - /// The ID of the service blueprint. - blueprint_id: u64, - /// The list of operators that need to approve the service. - pending_approvals: Vec, - /// The list of operators that atomaticaly approved the service. - approved: Vec, - }, /// A service has been initiated. ServiceInitiated { /// The owner of the service. owner: T::AccountId, - /// The ID of the service request that got approved (if required). - request_id: Option, + /// The ID of the service request that got approved. + request_id: u64, /// The ID of the service. service_id: u64, /// The ID of the service blueprint. @@ -398,6 +400,36 @@ pub mod module { }, /// EVM execution reverted with a reason. EvmReverted { from: H160, to: H160, data: Vec, reason: Vec }, + /// An Operator has an unapplied slash. + UnappliedSlash { + /// The index of the slash. + index: u32, + /// The account that has an unapplied slash. + operator: T::AccountId, + /// The amount of the slash. + amount: BalanceOf, + /// Service ID + service_id: u64, + /// Blueprint ID + blueprint_id: u64, + /// Era index + era: u32, + }, + /// An Unapplied Slash got discarded. + SlashDiscarded { + /// The index of the slash. + index: u32, + /// The account that has an unapplied slash. + operator: T::AccountId, + /// The amount of the slash. + amount: BalanceOf, + /// Service ID + service_id: u64, + /// Blueprint ID + blueprint_id: u64, + /// Era index + era: u32, + }, } #[pallet::pallet] @@ -425,6 +457,11 @@ pub mod module { #[pallet::getter(fn next_job_call_id)] pub type NextJobCallId = StorageValue<_, u64, ValueQuery>; + /// The next free ID for a unapplied slash. + #[pallet::storage] + #[pallet::getter(fn next_unapplied_slash_index)] + pub type NextUnappliedSlashIndex = StorageValue<_, u32, ValueQuery>; + /// The service blueprints along with their owner. #[pallet::storage] #[pallet::getter(fn blueprints)] @@ -514,8 +551,23 @@ pub mod module { ResultQuery::ServiceOrJobCallNotFound>, >; - // auxiliary storage and maps + /// All unapplied slashes that are queued for later. + /// + /// EraIndex -> Index -> UnappliedSlash + #[pallet::storage] + #[pallet::unbounded] + #[pallet::getter(fn unapplied_slashes)] + pub type UnappliedSlashes = StorageDoubleMap< + _, + Identity, + u32, + Identity, + u32, + UnappliedSlash>, + ResultQuery::UnappliedSlashNotFound>, + >; + // *** auxiliary storage and maps *** #[pallet::storage] #[pallet::getter(fn operator_profile)] pub type OperatorsProfile = StorageMap< @@ -601,7 +653,7 @@ pub mod module { .map_err(Error::::TypeCheck)?; let (allowed, _weight) = - Self::check_registeration_hook(&blueprint, &preferences, ®istration_args)?; + Self::on_register_hook(&blueprint, &preferences, ®istration_args)?; ensure!(allowed, Error::::InvalidRegistrationInput); @@ -632,7 +684,7 @@ pub mod module { registration_args, }); - // TODO: add weight for the registration. + // TODO: update weight for the registration. Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }) } @@ -667,32 +719,6 @@ pub mod module { Ok(()) } - /// Update the approval preference for the caller for a specific service blueprint. - /// - /// See [`Self::register`] for more information. - #[pallet::weight(T::WeightInfo::update_approval_preference())] - pub fn update_approval_preference( - origin: OriginFor, - #[pallet::compact] blueprint_id: u64, - approval_preference: ApprovalPreference, - ) -> DispatchResult { - let caller = ensure_signed(origin)?; - ensure!(Blueprints::::contains_key(blueprint_id), Error::::BlueprintNotFound); - Operators::::try_mutate_exists(blueprint_id, &caller, |current_preferences| { - current_preferences - .as_mut() - .map(|v| v.approval = approval_preference) - .ok_or(Error::::NotRegistered) - })?; - - Self::deposit_event(Event::ApprovalPreferenceUpdated { - operator: caller.clone(), - blueprint_id, - approval_preference, - }); - Ok(()) - } - /// Update the price targets for the caller for a specific service blueprint. /// /// See [`Self::register`] for more information. @@ -721,22 +747,17 @@ pub mod module { /// Request a new service to be initiated using the provided blueprint with a list of /// operators that will run your service. Optionally, you can specifiy who is permitted - /// caller of this service, by default anyone could use this service. - /// - /// Note that, if anyone of the participants set their [`ApprovalPreference`] to - /// `ApprovalPreference::Required` you will need to wait until they are approve your - /// request, otherwise (if none), the service is initiated immediately. + /// caller of this service, by default only the caller is allowed to call the service. #[pallet::weight(T::WeightInfo::request())] pub fn request( origin: OriginFor, #[pallet::compact] blueprint_id: u64, permitted_callers: Vec, - service_providers: Vec, + operators: Vec, request_args: Vec>, assets: Vec, #[pallet::compact] ttl: BlockNumberFor, ) -> DispatchResultWithPostInfo { - // TODO(@shekohex): split this function into smaller functions. let caller = ensure_signed(origin)?; let (_, blueprint) = Self::blueprints(blueprint_id)?; @@ -746,20 +767,15 @@ pub mod module { let mut preferences = Vec::new(); let mut pending_approvals = Vec::new(); - let mut approved = Vec::new(); - for provider in &service_providers { + for provider in &operators { let prefs = Self::operators(blueprint_id, provider)?; - if prefs.approval == ApprovalPreference::Required { - pending_approvals.push(provider.clone()); - } else { - approved.push(provider.clone()); - } + pending_approvals.push(provider.clone()); preferences.push(prefs); } let service_id = Self::next_instance_id(); let (allowed, _weight) = - Self::check_request_hook(&blueprint, service_id, &preferences, &request_args)?; + Self::on_request_hook(&blueprint, service_id, &preferences, &request_args)?; ensure!(allowed, Error::::InvalidRequestInput); @@ -768,106 +784,74 @@ pub mod module { .map_err(|_| Error::::MaxPermittedCallersExceeded)?; let assets = BoundedVec::<_, MaxAssetsPerServiceOf>::try_from(assets) .map_err(|_| Error::::MaxAssetsPerServiceExceeded)?; - if pending_approvals.is_empty() { - // No approval is required, initiate the service immediately. - for operator in &approved { - // add the service id to the list of services for each operator's profile. - OperatorsProfile::::try_mutate_exists(&operator, |profile| { - profile - .as_mut() - .and_then(|p| p.services.try_insert(service_id).ok()) - .ok_or(Error::::NotRegistered) - })?; - } - let operators = BoundedVec::<_, MaxOperatorsPerServiceOf>::try_from(approved) - .map_err(|_| Error::::MaxServiceProvidersExceeded)?; - let service = Service { - id: service_id, - blueprint: blueprint_id, - owner: caller.clone(), - assets: assets.clone(), - permitted_callers, - operators, - ttl, - }; + let request_id = NextServiceRequestId::::get(); + let operators = pending_approvals + .iter() + .cloned() + .map(|v| (v, ApprovalState::Pending)) + .collect::>(); - UserServices::::try_mutate(&caller, |service_ids| { - Instances::::insert(service_id, service); - NextInstanceId::::set(service_id.saturating_add(1)); - service_ids - .try_insert(service_id) - .map_err(|_| Error::::MaxServicesPerUserExceeded) - })?; - Self::deposit_event(Event::ServiceInitiated { - owner: caller.clone(), - request_id: None, - service_id, - blueprint_id, - assets: assets.to_vec(), - }); + let args = BoundedVec::<_, MaxFieldsOf>::try_from(request_args) + .map_err(|_| Error::::MaxFieldsExceeded)?; - // TODO: add weight for the request to the total weight. - Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }) - } else { - let request_id = NextServiceRequestId::::get(); - let operators = pending_approvals - .iter() - .cloned() - .map(|v| (v, ApprovalState::Pending)) - .chain(approved.iter().cloned().map(|v| (v, ApprovalState::Approved))) - .collect::>(); + let operators_with_approval_state = + BoundedVec::<_, MaxOperatorsPerServiceOf>::try_from(operators) + .map_err(|_| Error::::MaxServiceProvidersExceeded)?; - let args = BoundedVec::<_, MaxFieldsOf>::try_from(request_args) - .map_err(|_| Error::::MaxFieldsExceeded)?; - - let operators_with_approval_state = - BoundedVec::<_, MaxOperatorsPerServiceOf>::try_from(operators) - .map_err(|_| Error::::MaxServiceProvidersExceeded)?; - - let service_request = ServiceRequest { - blueprint: blueprint_id, - owner: caller.clone(), - assets: assets.clone(), - ttl, - args, - permitted_callers, - operators_with_approval_state, - }; - ServiceRequests::::insert(request_id, service_request); - NextServiceRequestId::::set(request_id.saturating_add(1)); + let service_request = ServiceRequest { + blueprint: blueprint_id, + owner: caller.clone(), + assets: assets.clone(), + ttl, + args, + permitted_callers, + operators_with_approval_state, + }; + ServiceRequests::::insert(request_id, service_request); + NextServiceRequestId::::set(request_id.saturating_add(1)); - Self::deposit_event(Event::ServiceRequested { - owner: caller.clone(), - request_id, - blueprint_id, - pending_approvals, - approved, - assets: assets.to_vec(), - }); + Self::deposit_event(Event::ServiceRequested { + owner: caller.clone(), + request_id, + blueprint_id, + pending_approvals, + approved: Default::default(), + assets: assets.to_vec(), + }); - // TODO: add weight for the request to the total weight. - Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }) - } + // TODO: add weight for the request to the total weight. + Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }) } /// Approve a service request, so that the service can be initiated. + /// + /// The `restaking_percent` is the percentage of the restaked tokens that will be exposed to + /// the service. #[pallet::weight(T::WeightInfo::approve())] - pub fn approve(origin: OriginFor, #[pallet::compact] request_id: u64) -> DispatchResult { + pub fn approve( + origin: OriginFor, + #[pallet::compact] request_id: u64, + #[pallet::compact] restaking_percent: Percent, + ) -> DispatchResult { let caller = ensure_signed(origin)?; let mut request = Self::service_requests(request_id)?; let updated = request .operators_with_approval_state .iter_mut() .find(|(v, _)| v == &caller) - .map(|(_, s)| *s = ApprovalState::Approved); + .map(|(_, s)| *s = ApprovalState::Approved { restaking_percent }); ensure!(updated.is_some(), Error::::ApprovalNotRequested); let approved = request .operators_with_approval_state .iter() - .filter_map( - |(v, s)| if *s == ApprovalState::Approved { Some(v.clone()) } else { None }, - ) + .filter_map(|(v, s)| { + if matches!(*s, ApprovalState::Approved { .. }) { + Some(v.clone()) + } else { + None + } + }) .collect::>(); let pending_approvals = request .operators_with_approval_state @@ -894,12 +878,18 @@ pub mod module { let operators = request .operators_with_approval_state .into_iter() - .map(|(v, _)| v) + .filter_map(|(v, state)| match state { + ApprovalState::Approved { restaking_percent } => { + Some((v, restaking_percent)) + }, + // N.B: this should not happen, as all operators are approved and checked above. + _ => None, + }) .collect::>(); // add the service id to the list of services for each operator's profile. - for operator in &operators { - OperatorsProfile::::try_mutate_exists(&operator, |profile| { + for (operator, _) in &operators { + OperatorsProfile::::try_mutate_exists(operator, |profile| { profile .as_mut() .and_then(|p| p.services.try_insert(service_id).ok()) @@ -928,7 +918,7 @@ pub mod module { Self::deposit_event(Event::ServiceInitiated { owner: request.owner, - request_id: Some(request_id), + request_id, assets: request.assets.to_vec(), service_id, blueprint_id: request.blueprint, @@ -989,7 +979,7 @@ pub mod module { ensure!(removed, Error::::ServiceNotFound); Instances::::remove(service_id); // Remove the service from the operator's profile. - for operator in &service.operators { + for (operator, _) in &service.operators { OperatorsProfile::::try_mutate_exists(operator, |profile| { profile .as_mut() @@ -1031,7 +1021,7 @@ pub mod module { let call_id = Self::next_job_call_id(); let (allowed, _weight) = - Self::check_job_call_hook(&blueprint, service_id, job, call_id, &args)?; + Self::on_job_call_hook(&blueprint, service_id, job, call_id, &args)?; ensure!(allowed, Error::::InvalidJobCallInput); @@ -1061,7 +1051,7 @@ pub mod module { let service = Self::services(job_call.service_id)?; let (_, blueprint) = Self::blueprints(service.blueprint)?; - let is_operator = service.operators.iter().any(|v| v == &caller); + let is_operator = service.operators.iter().any(|(v, _)| v == &caller); ensure!(is_operator, DispatchError::BadOrigin); let operator_preferences = Operators::::get(service.blueprint, &caller)?; @@ -1076,8 +1066,8 @@ pub mod module { let job_result = JobCallResult { service_id, call_id, result: bounded_result }; job_result.type_check(job_def).map_err(Error::::TypeCheck)?; - let (allowed, _weight) = Self::check_job_call_result_hook( - job_def, + let (allowed, _weight) = Self::on_job_result_hook( + &blueprint, service_id, job_call.job, call_id, @@ -1099,5 +1089,98 @@ pub mod module { // TODO: add weight for the call to the total weight. Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }) } + + /// Slash an operator (offender) for a service id with a given percent of their exposed stake for that service. + /// + /// The caller needs to be an authorized Slash Origin for this service. + /// Note that this does not apply the slash directly, but instead schedules a deferred call to apply the slash + /// by another entity. + pub fn slash( + origin: OriginFor, + offender: T::AccountId, + #[pallet::compact] service_id: u64, + #[pallet::compact] percent: Percent, + ) -> DispatchResultWithPostInfo { + let caller = ensure_signed(origin)?; + let service = Self::services(service_id)?; + let (maybe_slashing_origin, _used_weight) = Self::query_slashing_origin(&service)?; + let slashing_origin = maybe_slashing_origin.ok_or(Error::::NoSlashingOrigin)?; + ensure!(slashing_origin == caller, DispatchError::BadOrigin); + + let (operator, restake_percent) = + match service.operators.iter().find(|(operator, _)| operator == &offender) { + Some((operator, restake_percent)) => (operator, restake_percent), + None => return Err(Error::::OffenderNotOperator.into()), + }; + let operator_is_active = T::OperatorDelegationManager::is_operator_active(&offender); + ensure!(operator_is_active, Error::::OffenderNotActiveOperator); + + let total_own_stake = T::OperatorDelegationManager::get_operator_stake(operator); + // Only take the exposed restake percentage for this service. + let own_stake = restake_percent.mul_floor(total_own_stake); + let delegators = T::OperatorDelegationManager::get_delegators_for_operator(operator); + let exposed_stake = percent.mul_floor(own_stake); + let others_slash = delegators + .into_iter() + .map(|(delegator, stake, _asset_id)| (delegator, percent.mul_floor(stake))) + .collect::>(); + let total_slash = + others_slash.iter().fold(exposed_stake, |acc, (_, slash)| acc + *slash); + // TODO: take into account the delegators' asset kind. + // for now, we treat all assets equally, which is not the case in reality. + let unapplied_slash = UnappliedSlash { + service_id, + operator: offender.clone(), + own: exposed_stake, + others: others_slash, + reporters: Vec::from([caller]), + payout: total_slash, + }; + + let index = Self::next_unapplied_slash_index(); + let era = T::OperatorDelegationManager::get_current_round(); + UnappliedSlashes::::insert(era, index, unapplied_slash); + NextUnappliedSlashIndex::::set(index.saturating_add(1)); + + Self::deposit_event(Event::::UnappliedSlash { + index, + operator: offender.clone(), + blueprint_id: service.blueprint, + service_id, + amount: total_slash, + era, + }); + + Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }) + } + + /// Dispute an [UnappliedSlash] for a given era and index. + /// + /// The caller needs to be an authorized Dispute Origin for the service in the [UnappliedSlash]. + pub fn dispute( + origin: OriginFor, + #[pallet::compact] era: u32, + #[pallet::compact] index: u32, + ) -> DispatchResultWithPostInfo { + let caller = ensure_signed(origin)?; + let unapplied_slash = Self::unapplied_slashes(era, index)?; + let service = Self::services(unapplied_slash.service_id)?; + let (maybe_dispute_origin, _used_weight) = Self::query_dispute_origin(&service)?; + let dispute_origin = maybe_dispute_origin.ok_or(Error::::NoDisputeOrigin)?; + ensure!(dispute_origin == caller, DispatchError::BadOrigin); + + UnappliedSlashes::::remove(era, index); + + Self::deposit_event(Event::::SlashDiscarded { + index, + operator: unapplied_slash.operator, + blueprint_id: service.blueprint, + service_id: unapplied_slash.service_id, + amount: unapplied_slash.payout, + era, + }); + + Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }) + } } } diff --git a/pallets/services/src/mock.rs b/pallets/services/src/mock.rs index 56c017bb2..a3a4f3ca0 100644 --- a/pallets/services/src/mock.rs +++ b/pallets/services/src/mock.rs @@ -219,6 +219,15 @@ impl EvmGasWeightMapping for PalletEVMGasWeightMapping { } } +pub struct PalletEVMAddressMapping; + +impl EvmAddressMapping for PalletEVMAddressMapping { + fn into_account_id(address: H160) -> AccountId { + use pallet_evm::AddressMapping; + ::AddressMapping::into_account_id(address) + } +} + pub type AssetId = u32; pub struct MockDelegationManager; @@ -243,8 +252,12 @@ impl tangle_primitives::traits::MultiAssetDelegationInfo true } - fn get_operator_stake(_operator: &AccountId) -> Balance { - Default::default() + fn get_operator_stake(operator: &AccountId) -> Balance { + if operator == &mock_pub_key(10) { + Default::default() + } else { + 1000 + } } fn get_total_delegation_by_asset_id( @@ -253,6 +266,12 @@ impl tangle_primitives::traits::MultiAssetDelegationInfo ) -> Balance { Default::default() } + + fn get_delegators_for_operator( + _operator: &AccountId, + ) -> Vec<(AccountId, Balance, Self::AssetId)> { + Default::default() + } } parameter_types! { @@ -335,6 +354,10 @@ parameter_types! { #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo)] #[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))] pub const MaxAssetsPerService: u32 = 64; + + #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo)] + #[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))] + pub const SlashDeferDuration: u32 = 7; } impl Config for Runtime { @@ -345,6 +368,7 @@ impl Config for Runtime { type AssetId = AssetId; type EvmRunner = MockedEvmRunner; type EvmGasWeightMapping = PalletEVMGasWeightMapping; + type EvmAddressMapping = PalletEVMAddressMapping; type MaxFields = MaxFields; type MaxFieldsSize = MaxFieldsSize; type MaxMetadataLength = MaxMetadataLength; @@ -367,6 +391,8 @@ impl Config for Runtime { type MaxAssetsPerService = MaxAssetsPerService; type Constraints = pallet_services::types::ConstraintsOf; type OperatorDelegationManager = MockDelegationManager; + type SlashDeferDuration = SlashDeferDuration; + type SlashOrigin = frame_system::EnsureRoot; type WeightInfo = (); } diff --git a/pallets/services/src/test-artifacts/CGGMP21Blueprint.json b/pallets/services/src/test-artifacts/CGGMP21Blueprint.json index a60968034..db2270be8 100644 --- a/pallets/services/src/test-artifacts/CGGMP21Blueprint.json +++ b/pallets/services/src/test-artifacts/CGGMP21Blueprint.json @@ -1 +1 @@ -{"abi":[{"type":"function","name":"ROOT_CHAIN","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"blueprintOperators","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"addr","type":"address","internalType":"address"},{"name":"publicKey","type":"bytes","internalType":"bytes"}],"stateMutability":"view"},{"type":"function","name":"keygens","inputs":[{"name":"","type":"uint64","internalType":"uint64"},{"name":"","type":"uint64","internalType":"uint64"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"type":"function","name":"onJobCall","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"job","type":"uint8","internalType":"uint8"},{"name":"jobCallId","type":"uint64","internalType":"uint64"},{"name":"inputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"onJobCallResult","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"job","type":"uint8","internalType":"uint8"},{"name":"jobCallId","type":"uint64","internalType":"uint64"},{"name":"participant","type":"bytes","internalType":"bytes"},{"name":"inputs","type":"bytes","internalType":"bytes"},{"name":"outputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"onRegister","inputs":[{"name":"operator","type":"bytes","internalType":"bytes"},{"name":"registrationInputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"onRequest","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"operators","type":"bytes[]","internalType":"bytes[]"},{"name":"requestInputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"operatorAddressFromPublicKey","inputs":[{"name":"publicKey","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"pure"},{"type":"function","name":"services","inputs":[{"name":"","type":"uint64","internalType":"uint64"}],"outputs":[{"name":"id","type":"uint64","internalType":"uint64"}],"stateMutability":"view"},{"type":"function","name":"verifyJobCallResult","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"job","type":"uint8","internalType":"uint8"},{"name":"jobCallId","type":"uint64","internalType":"uint64"},{"name":"participant","type":"bytes","internalType":"bytes"},{"name":"inputs","type":"bytes","internalType":"bytes"},{"name":"outputs","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"error","name":"InvalidDKGThreshold","inputs":[]},{"type":"error","name":"InvalidJob","inputs":[]},{"type":"error","name":"InvalidRequestInputs","inputs":[]},{"type":"error","name":"KeygenJobNotFound","inputs":[]}],"bytecode":{"object":"0x6080604052348015600f57600080fd5b50610deb8061001f6000396000f3fe6080604052600436106100915760003560e01c80639838caa3116100595780639838caa3146101b6578063a7c66f86146101c9578063d4e5fe27146101dc578063d6c4336d1461020a578063e40b0d491461022a57600080fd5b806334a324e41461009657806356270e17146100e8578063667cddc1146101365780636dfee23614610166578063884673ac1461017b575b600080fd5b3480156100a257600080fd5b506100d16100b136600461079f565b600160209081526000928352604080842090915290825290205460ff1681565b60405160ff90911681526020015b60405180910390f35b3480156100f457600080fd5b5061011e6101033660046107d2565b6002602052600090815260409020546001600160401b031681565b6040516001600160401b0390911681526020016100df565b34801561014257600080fd5b5061015661015136600461084d565b61024a565b60405190151581526020016100df565b61017961017436600461091a565b610290565b005b34801561018757600080fd5b5061019e6b6d6f646c70792f737276637360401b81565b6040516001600160a01b0390911681526020016100df565b6101796101c43660046109cb565b61041a565b6101796101d7366004610a2f565b61057e565b3480156101e857600080fd5b506101fc6101f7366004610a9a565b610666565b6040516100df929190610ab3565b34801561021657600080fd5b5061017961022536600461084d565b610728565b34801561023657600080fd5b5061019e610245366004610b12565b610761565b6000336b6d6f646c70792f737276637360401b146102835760405162461bcd60e51b815260040161027a90610b53565b60405180910390fd5b9998505050505050505050565b336b6d6f646c70792f737276637360401b146102be5760405162461bcd60e51b815260040161027a90610b53565b80156102dd5760405163702e9b1960e11b815260040160405180910390fd5b6001600160401b0385166000818152600260205260408120805467ffffffffffffffff191690921782555b8481101561041157600061033987878481811061032757610327610ba4565b90506020028101906102459190610bba565b9050826001016040518060400160405280836001600160a01b0316815260200189898681811061036b5761036b610ba4565b905060200281019061037d9190610bba565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b03909216919091178155908301519293909290830191506104019082610ca1565b5050600190920191506103089050565b50505050505050565b336b6d6f646c70792f737276637360401b146104485760405162461bcd60e51b815260040161027a90610b53565b60ff84166104ea57600061045e82840184610d60565b6001600160401b03871660009081526002602052604090206001015490915060ff8216158061048f5750808260ff16115b156104ad5760405163b65cad8d60e01b815260040160405180910390fd5b506001600160401b038681166000908152600160209081526040808320938816835292905220805460ff191660ff92909216919091179055610577565b60001960ff85160161055e5760008061050583850185610d7b565b6001600160401b03808a16600090815260016020908152604080832093861683529290529081205492945090925060ff90911690036105575760405163648bd07f60e11b815260040160405180910390fd5b5050610577565b60405163038e47a360e51b815260040160405180910390fd5b5050505050565b336b6d6f646c70792f737276637360401b146105ac5760405162461bcd60e51b815260040161027a90610b53565b60006105b88585610761565b905060006040518060400160405280836001600160a01b0316815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b039092169190911781559083015192939092908301915061065c9082610ca1565b5050505050505050565b6000818154811061067657600080fd5b6000918252602090912060029091020180546001820180546001600160a01b039092169350906106a590610c16565b80601f01602080910402602001604051908101604052809291908181526020018280546106d190610c16565b801561071e5780601f106106f35761010080835404028352916020019161071e565b820191906000526020600020905b81548152906001019060200180831161070157829003601f168201915b5050505050905082565b336b6d6f646c70792f737276637360401b146107565760405162461bcd60e51b815260040161027a90610b53565b505050505050505050565b60008282604051610773929190610da5565b6040519081900390209392505050565b80356001600160401b038116811461079a57600080fd5b919050565b600080604083850312156107b257600080fd5b6107bb83610783565b91506107c960208401610783565b90509250929050565b6000602082840312156107e457600080fd5b6107ed82610783565b9392505050565b803560ff8116811461079a57600080fd5b60008083601f84011261081757600080fd5b5081356001600160401b0381111561082e57600080fd5b60208301915083602082850101111561084657600080fd5b9250929050565b600080600080600080600080600060c08a8c03121561086b57600080fd5b6108748a610783565b985061088260208b016107f4565b975061089060408b01610783565b965060608a01356001600160401b03808211156108ac57600080fd5b6108b88d838e01610805565b909850965060808c01359150808211156108d157600080fd5b6108dd8d838e01610805565b909650945060a08c01359150808211156108f657600080fd5b506109038c828d01610805565b915080935050809150509295985092959850929598565b60008060008060006060868803121561093257600080fd5b61093b86610783565b945060208601356001600160401b038082111561095757600080fd5b818801915088601f83011261096b57600080fd5b81358181111561097a57600080fd5b8960208260051b850101111561098f57600080fd5b6020830196508095505060408801359150808211156109ad57600080fd5b506109ba88828901610805565b969995985093965092949392505050565b6000806000806000608086880312156109e357600080fd5b6109ec86610783565b94506109fa602087016107f4565b9350610a0860408701610783565b925060608601356001600160401b03811115610a2357600080fd5b6109ba88828901610805565b60008060008060408587031215610a4557600080fd5b84356001600160401b0380821115610a5c57600080fd5b610a6888838901610805565b90965094506020870135915080821115610a8157600080fd5b50610a8e87828801610805565b95989497509550505050565b600060208284031215610aac57600080fd5b5035919050565b60018060a01b03831681526000602060406020840152835180604085015260005b81811015610af057858101830151858201606001528201610ad4565b506000606082860101526060601f19601f830116850101925050509392505050565b60008060208385031215610b2557600080fd5b82356001600160401b03811115610b3b57600080fd5b610b4785828601610805565b90969095509350505050565b60208082526031908201527f526f6f74436861696e3a204f6e6c7920726f6f7420636861696e2063616e206360408201527030b636103a3434b990333ab731ba34b7b760791b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610bd157600080fd5b8301803591506001600160401b03821115610beb57600080fd5b60200191503681900382131561084657600080fd5b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610c2a57607f821691505b602082108103610c4a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610c9c576000816000526020600020601f850160051c81016020861015610c795750805b601f850160051c820191505b81811015610c9857828155600101610c85565b5050505b505050565b81516001600160401b03811115610cba57610cba610c00565b610cce81610cc88454610c16565b84610c50565b602080601f831160018114610d035760008415610ceb5750858301515b600019600386901b1c1916600185901b178555610c98565b600085815260208120601f198616915b82811015610d3257888601518255948401946001909101908401610d13565b5085821015610d505787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215610d7257600080fd5b6107ed826107f4565b60008060408385031215610d8e57600080fd5b610d9783610783565b946020939093013593505050565b818382376000910190815291905056fea264697066735822122019d1498ac738076fcae7e7a80ee49044303e5be1afb57166f0b7eeb6c4efea5864736f6c63430008190033","sourceMap":"232:3070:3:-:0;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x6080604052600436106100915760003560e01c80639838caa3116100595780639838caa3146101b6578063a7c66f86146101c9578063d4e5fe27146101dc578063d6c4336d1461020a578063e40b0d491461022a57600080fd5b806334a324e41461009657806356270e17146100e8578063667cddc1146101365780636dfee23614610166578063884673ac1461017b575b600080fd5b3480156100a257600080fd5b506100d16100b136600461079f565b600160209081526000928352604080842090915290825290205460ff1681565b60405160ff90911681526020015b60405180910390f35b3480156100f457600080fd5b5061011e6101033660046107d2565b6002602052600090815260409020546001600160401b031681565b6040516001600160401b0390911681526020016100df565b34801561014257600080fd5b5061015661015136600461084d565b61024a565b60405190151581526020016100df565b61017961017436600461091a565b610290565b005b34801561018757600080fd5b5061019e6b6d6f646c70792f737276637360401b81565b6040516001600160a01b0390911681526020016100df565b6101796101c43660046109cb565b61041a565b6101796101d7366004610a2f565b61057e565b3480156101e857600080fd5b506101fc6101f7366004610a9a565b610666565b6040516100df929190610ab3565b34801561021657600080fd5b5061017961022536600461084d565b610728565b34801561023657600080fd5b5061019e610245366004610b12565b610761565b6000336b6d6f646c70792f737276637360401b146102835760405162461bcd60e51b815260040161027a90610b53565b60405180910390fd5b9998505050505050505050565b336b6d6f646c70792f737276637360401b146102be5760405162461bcd60e51b815260040161027a90610b53565b80156102dd5760405163702e9b1960e11b815260040160405180910390fd5b6001600160401b0385166000818152600260205260408120805467ffffffffffffffff191690921782555b8481101561041157600061033987878481811061032757610327610ba4565b90506020028101906102459190610bba565b9050826001016040518060400160405280836001600160a01b0316815260200189898681811061036b5761036b610ba4565b905060200281019061037d9190610bba565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b03909216919091178155908301519293909290830191506104019082610ca1565b5050600190920191506103089050565b50505050505050565b336b6d6f646c70792f737276637360401b146104485760405162461bcd60e51b815260040161027a90610b53565b60ff84166104ea57600061045e82840184610d60565b6001600160401b03871660009081526002602052604090206001015490915060ff8216158061048f5750808260ff16115b156104ad5760405163b65cad8d60e01b815260040160405180910390fd5b506001600160401b038681166000908152600160209081526040808320938816835292905220805460ff191660ff92909216919091179055610577565b60001960ff85160161055e5760008061050583850185610d7b565b6001600160401b03808a16600090815260016020908152604080832093861683529290529081205492945090925060ff90911690036105575760405163648bd07f60e11b815260040160405180910390fd5b5050610577565b60405163038e47a360e51b815260040160405180910390fd5b5050505050565b336b6d6f646c70792f737276637360401b146105ac5760405162461bcd60e51b815260040161027a90610b53565b60006105b88585610761565b905060006040518060400160405280836001600160a01b0316815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b039092169190911781559083015192939092908301915061065c9082610ca1565b5050505050505050565b6000818154811061067657600080fd5b6000918252602090912060029091020180546001820180546001600160a01b039092169350906106a590610c16565b80601f01602080910402602001604051908101604052809291908181526020018280546106d190610c16565b801561071e5780601f106106f35761010080835404028352916020019161071e565b820191906000526020600020905b81548152906001019060200180831161070157829003601f168201915b5050505050905082565b336b6d6f646c70792f737276637360401b146107565760405162461bcd60e51b815260040161027a90610b53565b505050505050505050565b60008282604051610773929190610da5565b6040519081900390209392505050565b80356001600160401b038116811461079a57600080fd5b919050565b600080604083850312156107b257600080fd5b6107bb83610783565b91506107c960208401610783565b90509250929050565b6000602082840312156107e457600080fd5b6107ed82610783565b9392505050565b803560ff8116811461079a57600080fd5b60008083601f84011261081757600080fd5b5081356001600160401b0381111561082e57600080fd5b60208301915083602082850101111561084657600080fd5b9250929050565b600080600080600080600080600060c08a8c03121561086b57600080fd5b6108748a610783565b985061088260208b016107f4565b975061089060408b01610783565b965060608a01356001600160401b03808211156108ac57600080fd5b6108b88d838e01610805565b909850965060808c01359150808211156108d157600080fd5b6108dd8d838e01610805565b909650945060a08c01359150808211156108f657600080fd5b506109038c828d01610805565b915080935050809150509295985092959850929598565b60008060008060006060868803121561093257600080fd5b61093b86610783565b945060208601356001600160401b038082111561095757600080fd5b818801915088601f83011261096b57600080fd5b81358181111561097a57600080fd5b8960208260051b850101111561098f57600080fd5b6020830196508095505060408801359150808211156109ad57600080fd5b506109ba88828901610805565b969995985093965092949392505050565b6000806000806000608086880312156109e357600080fd5b6109ec86610783565b94506109fa602087016107f4565b9350610a0860408701610783565b925060608601356001600160401b03811115610a2357600080fd5b6109ba88828901610805565b60008060008060408587031215610a4557600080fd5b84356001600160401b0380821115610a5c57600080fd5b610a6888838901610805565b90965094506020870135915080821115610a8157600080fd5b50610a8e87828801610805565b95989497509550505050565b600060208284031215610aac57600080fd5b5035919050565b60018060a01b03831681526000602060406020840152835180604085015260005b81811015610af057858101830151858201606001528201610ad4565b506000606082860101526060601f19601f830116850101925050509392505050565b60008060208385031215610b2557600080fd5b82356001600160401b03811115610b3b57600080fd5b610b4785828601610805565b90969095509350505050565b60208082526031908201527f526f6f74436861696e3a204f6e6c7920726f6f7420636861696e2063616e206360408201527030b636103a3434b990333ab731ba34b7b760791b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610bd157600080fd5b8301803591506001600160401b03821115610beb57600080fd5b60200191503681900382131561084657600080fd5b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610c2a57607f821691505b602082108103610c4a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610c9c576000816000526020600020601f850160051c81016020861015610c795750805b601f850160051c820191505b81811015610c9857828155600101610c85565b5050505b505050565b81516001600160401b03811115610cba57610cba610c00565b610cce81610cc88454610c16565b84610c50565b602080601f831160018114610d035760008415610ceb5750858301515b600019600386901b1c1916600185901b178555610c98565b600085815260208120601f198616915b82811015610d3257888601518255948401946001909101908401610d13565b5085821015610d505787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215610d7257600080fd5b6107ed826107f4565b60008060408385031215610d8e57600080fd5b610d9783610783565b946020939093013593505050565b818382376000910190815291905056fea264697066735822122019d1498ac738076fcae7e7a80ee49044303e5be1afb57166f0b7eeb6c4efea5864736f6c63430008190033","sourceMap":"232:3070:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;776:58;;;;;;;;;;-1:-1:-1;776:58:3;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;623:4:4;611:17;;;593:36;;581:2;566:18;776:58:3;;;;;;;;882:42;;;;;;;;;;-1:-1:-1;882:42:3;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;882:42:3;;;;;;-1:-1:-1;;;;;991:31:4;;;973:50;;961:2;946:18;882:42:3;829:200:4;3557:305:1;;;;;;;;;;-1:-1:-1;3557:305:1;;;;;:::i;:::-;;:::i;:::-;;;2938:14:4;;2931:22;2913:41;;2901:2;2886:18;3557:305:1;2773:187:4;1390:656:3;;;;;;:::i;:::-;;:::i;:::-;;451:79:2;;;;;;;;;;;;-1:-1:-1;;;451:79:2;;;;;-1:-1:-1;;;;;4119:32:4;;;4101:51;;4089:2;4074:18;451:79:2;3955:203:4;2052:1077:3;;;;;;:::i;:::-;;:::i;1054:330::-;;;;;;:::i;:::-;;:::i;495:36::-;;;;;;;;;;-1:-1:-1;495:36:3;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;2650:265:1:-;;;;;;;;;;-1:-1:-1;2650:265:1;;;;;:::i;:::-;;:::i;3135:165:3:-;;;;;;;;;;-1:-1:-1;3135:165:3;;;;;:::i;:::-;;:::i;3557:305:1:-;3849:4;703:10:2;-1:-1:-1;;;703:24:2;695:86;;;;-1:-1:-1;;;695:86:2;;;;;;;:::i;:::-;;;;;;;;;3557:305:1;;;;;;;;;;;:::o;1390:656:3:-;703:10:2;-1:-1:-1;;;703:24:2;695:86;;;;-1:-1:-1;;;695:86:2;;;;;;;:::i;:::-;1637:25:3;;1633:85:::1;;1685:22;;-1:-1:-1::0;;;1685:22:3::1;;;;;;;;;;;1633:85;-1:-1:-1::0;;;;;1783:19:3;::::1;1757:23;1783:19:::0;;;:8:::1;:19;::::0;;;;1812:22;;-1:-1:-1;;1812:22:3::1;::::0;;::::1;::::0;;1845:195:::1;1865:20:::0;;::::1;1845:195;;;1906:12;1921:42;1950:9;;1960:1;1950:12;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;1921:42::-;1906:57;;1977:7;:17;;2000:28;;;;;;;;2009:4;-1:-1:-1::0;;;;;2000:28:3::1;;;;;2015:9;;2025:1;2015:12;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;2000:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;2000:28:3;;;;-1:-1:-1;;1977:52:3;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;-1:-1:-1;;;;;;1977:52:3::1;-1:-1:-1::0;;;;;1977:52:3;;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;;;;;;;::::1;::::0;-1:-1:-1;1977:52:3::1;::::0;;::::1;:::i;:::-;-1:-1:-1::0;;1887:3:3::1;::::0;;::::1;::::0;-1:-1:-1;1845:195:3::1;::::0;-1:-1:-1;1845:195:3::1;;;1563:483;1390:656:::0;;;;;:::o;2052:1077::-;703:10:2;-1:-1:-1;;;703:24:2;695:86;;;;-1:-1:-1;;;695:86:2;;;;;;;:::i;:::-;2268:17:3::1;::::0;::::1;2264:859;;2350:7;2361:27;::::0;;::::1;2372:6:::0;2361:27:::1;:::i;:::-;-1:-1:-1::0;;;;;2414:19:3;::::1;2402:9;2414:19:::0;;;:8:::1;:19;::::0;;;;:29:::1;;:36:::0;2349:39;;-1:-1:-1;2517:6:3::1;::::0;::::1;::::0;;:15:::1;;;2531:1;2527;:5;;;2517:15;2513:82;;;2559:21;;-1:-1:-1::0;;;2559:21:3::1;;;;;;;;;;;2513:82;-1:-1:-1::0;;;;;;2660:18:3;;::::1;;::::0;;;:7:::1;:18;::::0;;;;;;;:29;;::::1;::::0;;;;;;:33;;-1:-1:-1;;2660:33:3::1;;::::0;;;::::1;::::0;;;::::1;::::0;;2264:859:::1;;;-1:-1:-1::0;;2714:18:3::1;::::0;::::1;::::0;2710:413:::1;;2819:22;::::0;2863:37:::1;::::0;;::::1;2874:6:::0;2863:37:::1;:::i;:::-;-1:-1:-1::0;;;;;2962:18:3;;::::1;;::::0;;;:7:::1;:18;::::0;;;;;;;:35;;::::1;::::0;;;;;;;;;2818:82;;-1:-1:-1;2818:82:3;;-1:-1:-1;2962:35:3::1;::::0;;::::1;:40:::0;;2958:105:::1;;3029:19;;-1:-1:-1::0;;;3029:19:3::1;;;;;;;;;;;2958:105;2734:339;;2710:413;;;3100:12;;-1:-1:-1::0;;;3100:12:3::1;;;;;;;;;;;2710:413;2052:1077:::0;;;;;:::o;1054:330::-;703:10:2;-1:-1:-1;;;703:24:2;695:86;;;;-1:-1:-1;;;695:86:2;;;;;;;:::i;:::-;1222:12:3::1;1237:38;1266:8;;1237:28;:38::i;:::-;1222:53;;1328:18;1352:24;;;;;;;;1361:4;-1:-1:-1::0;;;;;1352:24:3::1;;;;;1367:8;;1352:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;1352:24:3;;;;-1:-1:-1;;1328:49:3;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;-1:-1:-1;;;;;;1328:49:3::1;-1:-1:-1::0;;;;;1328:49:3;;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;;;;;;;::::1;::::0;-1:-1:-1;1328:49:3::1;::::0;;::::1;:::i;:::-;;;;1212:172;1054:330:::0;;;;:::o;495:36::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;495:36:3;;;;-1:-1:-1;495:36:3;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2650:265:1:-;703:10:2;-1:-1:-1;;;703:24:2;695:86;;;;-1:-1:-1;;;695:86:2;;;;;;;:::i;:::-;2650:265:1;;;;;;;;;:::o;3135:165:3:-;3220:7;3280:9;;3270:20;;;;;;;:::i;:::-;;;;;;;;;;3135:165;-1:-1:-1;;;3135:165:3:o;14:171:4:-;81:20;;-1:-1:-1;;;;;130:30:4;;120:41;;110:69;;175:1;172;165:12;110:69;14:171;;;:::o;190:256::-;256:6;264;317:2;305:9;296:7;292:23;288:32;285:52;;;333:1;330;323:12;285:52;356:28;374:9;356:28;:::i;:::-;346:38;;403:37;436:2;425:9;421:18;403:37;:::i;:::-;393:47;;190:256;;;;;:::o;640:184::-;698:6;751:2;739:9;730:7;726:23;722:32;719:52;;;767:1;764;757:12;719:52;790:28;808:9;790:28;:::i;:::-;780:38;640:184;-1:-1:-1;;;640:184:4:o;1034:156::-;1100:20;;1160:4;1149:16;;1139:27;;1129:55;;1180:1;1177;1170:12;1195:347;1246:8;1256:6;1310:3;1303:4;1295:6;1291:17;1287:27;1277:55;;1328:1;1325;1318:12;1277:55;-1:-1:-1;1351:20:4;;-1:-1:-1;;;;;1383:30:4;;1380:50;;;1426:1;1423;1416:12;1380:50;1463:4;1455:6;1451:17;1439:29;;1515:3;1508:4;1499:6;1491;1487:19;1483:30;1480:39;1477:59;;;1532:1;1529;1522:12;1477:59;1195:347;;;;;:::o;1547:1221::-;1680:6;1688;1696;1704;1712;1720;1728;1736;1744;1797:3;1785:9;1776:7;1772:23;1768:33;1765:53;;;1814:1;1811;1804:12;1765:53;1837:28;1855:9;1837:28;:::i;:::-;1827:38;;1884:36;1916:2;1905:9;1901:18;1884:36;:::i;:::-;1874:46;;1939:37;1972:2;1961:9;1957:18;1939:37;:::i;:::-;1929:47;;2027:2;2016:9;2012:18;1999:32;-1:-1:-1;;;;;2091:2:4;2083:6;2080:14;2077:34;;;2107:1;2104;2097:12;2077:34;2146:58;2196:7;2187:6;2176:9;2172:22;2146:58;:::i;:::-;2223:8;;-1:-1:-1;2120:84:4;-1:-1:-1;2311:3:4;2296:19;;2283:33;;-1:-1:-1;2328:16:4;;;2325:36;;;2357:1;2354;2347:12;2325:36;2396:60;2448:7;2437:8;2426:9;2422:24;2396:60;:::i;:::-;2475:8;;-1:-1:-1;2370:86:4;-1:-1:-1;2563:3:4;2548:19;;2535:33;;-1:-1:-1;2580:16:4;;;2577:36;;;2609:1;2606;2599:12;2577:36;;2648:60;2700:7;2689:8;2678:9;2674:24;2648:60;:::i;:::-;2622:86;;2727:8;2717:18;;;2754:8;2744:18;;;1547:1221;;;;;;;;;;;:::o;2965:985::-;3090:6;3098;3106;3114;3122;3175:2;3163:9;3154:7;3150:23;3146:32;3143:52;;;3191:1;3188;3181:12;3143:52;3214:28;3232:9;3214:28;:::i;:::-;3204:38;;3293:2;3282:9;3278:18;3265:32;-1:-1:-1;;;;;3357:2:4;3349:6;3346:14;3343:34;;;3373:1;3370;3363:12;3343:34;3411:6;3400:9;3396:22;3386:32;;3456:7;3449:4;3445:2;3441:13;3437:27;3427:55;;3478:1;3475;3468:12;3427:55;3518:2;3505:16;3544:2;3536:6;3533:14;3530:34;;;3560:1;3557;3550:12;3530:34;3613:7;3608:2;3598:6;3595:1;3591:14;3587:2;3583:23;3579:32;3576:45;3573:65;;;3634:1;3631;3624:12;3573:65;3665:2;3661;3657:11;3647:21;;3687:6;3677:16;;;3746:2;3735:9;3731:18;3718:32;3702:48;;3775:2;3765:8;3762:16;3759:36;;;3791:1;3788;3781:12;3759:36;;3830:60;3882:7;3871:8;3860:9;3856:24;3830:60;:::i;:::-;2965:985;;;;-1:-1:-1;2965:985:4;;-1:-1:-1;3909:8:4;;3804:86;2965:985;-1:-1:-1;;;2965:985:4:o;4163:624::-;4256:6;4264;4272;4280;4288;4341:3;4329:9;4320:7;4316:23;4312:33;4309:53;;;4358:1;4355;4348:12;4309:53;4381:28;4399:9;4381:28;:::i;:::-;4371:38;;4428:36;4460:2;4449:9;4445:18;4428:36;:::i;:::-;4418:46;;4483:37;4516:2;4505:9;4501:18;4483:37;:::i;:::-;4473:47;;4571:2;4560:9;4556:18;4543:32;-1:-1:-1;;;;;4590:6:4;4587:30;4584:50;;;4630:1;4627;4620:12;4584:50;4669:58;4719:7;4710:6;4699:9;4695:22;4669:58;:::i;4792:717::-;4882:6;4890;4898;4906;4959:2;4947:9;4938:7;4934:23;4930:32;4927:52;;;4975:1;4972;4965:12;4927:52;5015:9;5002:23;-1:-1:-1;;;;;5085:2:4;5077:6;5074:14;5071:34;;;5101:1;5098;5091:12;5071:34;5140:58;5190:7;5181:6;5170:9;5166:22;5140:58;:::i;:::-;5217:8;;-1:-1:-1;5114:84:4;-1:-1:-1;5305:2:4;5290:18;;5277:32;;-1:-1:-1;5321:16:4;;;5318:36;;;5350:1;5347;5340:12;5318:36;;5389:60;5441:7;5430:8;5419:9;5415:24;5389:60;:::i;:::-;4792:717;;;;-1:-1:-1;5468:8:4;-1:-1:-1;;;;4792:717:4:o;5514:180::-;5573:6;5626:2;5614:9;5605:7;5601:23;5597:32;5594:52;;;5642:1;5639;5632:12;5594:52;-1:-1:-1;5665:23:4;;5514:180;-1:-1:-1;5514:180:4:o;5699:643::-;5903:1;5899;5894:3;5890:11;5886:19;5878:6;5874:32;5863:9;5856:51;5837:4;5926:2;5964;5959;5948:9;5944:18;5937:30;5996:6;5990:13;6039:6;6034:2;6023:9;6019:18;6012:34;6064:1;6074:140;6088:6;6085:1;6082:13;6074:140;;;6183:14;;;6179:23;;6173:30;6149:17;;;6168:2;6145:26;6138:66;6103:10;;6074:140;;;6078:3;6263:1;6258:2;6249:6;6238:9;6234:22;6230:31;6223:42;6333:2;6326;6322:7;6317:2;6309:6;6305:15;6301:29;6290:9;6286:45;6282:54;6274:62;;;;5699:643;;;;;:::o;6347:409::-;6417:6;6425;6478:2;6466:9;6457:7;6453:23;6449:32;6446:52;;;6494:1;6491;6484:12;6446:52;6534:9;6521:23;-1:-1:-1;;;;;6559:6:4;6556:30;6553:50;;;6599:1;6596;6589:12;6553:50;6638:58;6688:7;6679:6;6668:9;6664:22;6638:58;:::i;:::-;6715:8;;6612:84;;-1:-1:-1;6347:409:4;-1:-1:-1;;;;6347:409:4:o;6761:413::-;6963:2;6945:21;;;7002:2;6982:18;;;6975:30;7041:34;7036:2;7021:18;;7014:62;-1:-1:-1;;;7107:2:4;7092:18;;7085:47;7164:3;7149:19;;6761:413::o;7179:127::-;7240:10;7235:3;7231:20;7228:1;7221:31;7271:4;7268:1;7261:15;7295:4;7292:1;7285:15;7311:521;7388:4;7394:6;7454:11;7441:25;7548:2;7544:7;7533:8;7517:14;7513:29;7509:43;7489:18;7485:68;7475:96;;7567:1;7564;7557:12;7475:96;7594:33;;7646:20;;;-1:-1:-1;;;;;;7678:30:4;;7675:50;;;7721:1;7718;7711:12;7675:50;7754:4;7742:17;;-1:-1:-1;7785:14:4;7781:27;;;7771:38;;7768:58;;;7822:1;7819;7812:12;7837:127;7898:10;7893:3;7889:20;7886:1;7879:31;7929:4;7926:1;7919:15;7953:4;7950:1;7943:15;7969:380;8048:1;8044:12;;;;8091;;;8112:61;;8166:4;8158:6;8154:17;8144:27;;8112:61;8219:2;8211:6;8208:14;8188:18;8185:38;8182:161;;8265:10;8260:3;8256:20;8253:1;8246:31;8300:4;8297:1;8290:15;8328:4;8325:1;8318:15;8182:161;;7969:380;;;:::o;8479:542::-;8580:2;8575:3;8572:11;8569:446;;;8616:1;8640:5;8637:1;8630:16;8684:4;8681:1;8671:18;8754:2;8742:10;8738:19;8735:1;8731:27;8725:4;8721:38;8790:4;8778:10;8775:20;8772:47;;;-1:-1:-1;8813:4:4;8772:47;8868:2;8863:3;8859:12;8856:1;8852:20;8846:4;8842:31;8832:41;;8923:82;8941:2;8934:5;8931:13;8923:82;;;8986:17;;;8967:1;8956:13;8923:82;;;8927:3;;;8569:446;8479:542;;;:::o;9197:1341::-;9321:3;9315:10;-1:-1:-1;;;;;9340:6:4;9337:30;9334:56;;;9370:18;;:::i;:::-;9399:96;9488:6;9448:38;9480:4;9474:11;9448:38;:::i;:::-;9442:4;9399:96;:::i;:::-;9550:4;;9607:2;9596:14;;9624:1;9619:662;;;;10325:1;10342:6;10339:89;;;-1:-1:-1;10394:19:4;;;10388:26;10339:89;-1:-1:-1;;9154:1:4;9150:11;;;9146:24;9142:29;9132:40;9178:1;9174:11;;;9129:57;10441:81;;9589:943;;9619:662;8426:1;8419:14;;;8463:4;8450:18;;-1:-1:-1;;9655:20:4;;;9772:236;9786:7;9783:1;9780:14;9772:236;;;9875:19;;;9869:26;9854:42;;9967:27;;;;9935:1;9923:14;;;;9802:19;;9772:236;;;9776:3;10036:6;10027:7;10024:19;10021:201;;;10097:19;;;10091:26;-1:-1:-1;;10180:1:4;10176:14;;;10192:3;10172:24;10168:37;10164:42;10149:58;10134:74;;10021:201;-1:-1:-1;;;;;10268:1:4;10252:14;;;10248:22;10235:36;;-1:-1:-1;9197:1341:4:o;10543:182::-;10600:6;10653:2;10641:9;10632:7;10628:23;10624:32;10621:52;;;10669:1;10666;10659:12;10621:52;10692:27;10709:9;10692:27;:::i;10730:252::-;10797:6;10805;10858:2;10846:9;10837:7;10833:23;10829:32;10826:52;;;10874:1;10871;10864:12;10826:52;10897:28;10915:9;10897:28;:::i;:::-;10887:38;10972:2;10957:18;;;;10944:32;;-1:-1:-1;;;10730:252:4:o;10987:271::-;11170:6;11162;11157:3;11144:33;11126:3;11196:16;;11221:13;;;11196:16;10987:271;-1:-1:-1;10987:271:4:o","linkReferences":{}},"methodIdentifiers":{"ROOT_CHAIN()":"884673ac","blueprintOperators(uint256)":"d4e5fe27","keygens(uint64,uint64)":"34a324e4","onJobCall(uint64,uint8,uint64,bytes)":"9838caa3","onJobCallResult(uint64,uint8,uint64,bytes,bytes,bytes)":"d6c4336d","onRegister(bytes,bytes)":"a7c66f86","onRequest(uint64,bytes[],bytes)":"6dfee236","operatorAddressFromPublicKey(bytes)":"e40b0d49","services(uint64)":"56270e17","verifyJobCallResult(uint64,uint8,uint64,bytes,bytes,bytes)":"667cddc1"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"InvalidDKGThreshold\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidJob\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidRequestInputs\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeygenJobNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ROOT_CHAIN\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"blueprintOperators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"keygens\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"job\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"jobCallId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"inputs\",\"type\":\"bytes\"}],\"name\":\"onJobCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"job\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"jobCallId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"participant\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"inputs\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"outputs\",\"type\":\"bytes\"}],\"name\":\"onJobCallResult\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"operator\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"registrationInputs\",\"type\":\"bytes\"}],\"name\":\"onRegister\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"bytes[]\",\"name\":\"operators\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes\",\"name\":\"requestInputs\",\"type\":\"bytes\"}],\"name\":\"onRequest\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"name\":\"operatorAddressFromPublicKey\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"services\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"job\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"jobCallId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"participant\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"inputs\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"outputs\",\"type\":\"bytes\"}],\"name\":\"verifyJobCallResult\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"onJobCall(uint64,uint8,uint64,bytes)\":{\"details\":\"Hook for job calls on the service. Called when a job is executed within the service context.\",\"params\":{\"inputs\":\"Inputs required for the job execution.\",\"job\":\"The job identifier.\",\"jobCallId\":\"A unique ID for the job call.\",\"serviceId\":\"The ID of the service where the job is called.\"}},\"onJobCallResult(uint64,uint8,uint64,bytes,bytes,bytes)\":{\"details\":\"Hook for handling job call results. Called when operators send the result of a job execution.\",\"params\":{\"inputs\":\"Inputs used for the job execution.\",\"job\":\"The job identifier.\",\"jobCallId\":\"The unique ID for the job call.\",\"outputs\":\"Outputs resulting from the job execution.\",\"participant\":\"The participant (operator) sending the result.\",\"serviceId\":\"The ID of the service related to the job.\"}},\"onRegister(bytes,bytes)\":{\"details\":\"Hook for service operator registration. Called when a service operator attempts to register with the blueprint.\",\"params\":{\"operator\":\"The operator's details.\",\"registrationInputs\":\"Inputs required for registration.\"}},\"onRequest(uint64,bytes[],bytes)\":{\"details\":\"Hook for service instance requests. Called when a user requests a service instance from the blueprint.\",\"params\":{\"operators\":\"The operators involved in the service.\",\"requestInputs\":\"Inputs required for the service request.\",\"serviceId\":\"The ID of the requested service.\"}},\"verifyJobCallResult(uint64,uint8,uint64,bytes,bytes,bytes)\":{\"details\":\"Verifies the result of a job call. This function is used to validate the outputs of a job execution against the expected results.\",\"params\":{\"inputs\":\"Inputs used for the job execution.\",\"job\":\"The job identifier.\",\"jobCallId\":\"The unique ID for the job call.\",\"outputs\":\"Outputs resulting from the job execution.\",\"participant\":\"The participant (operator) whose result is being verified.\",\"serviceId\":\"The ID of the service related to the job.\"},\"returns\":{\"_0\":\"bool Returns true if the job call result is verified successfully, otherwise false.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/cggmp21/CGGMP21Blueprint.sol\":\"CGGMP21Blueprint\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@/=src/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@prb/test/=lib/tnt-core/lib/prb-math/lib/prb-test/src/\",\":@uniswap/v3-core/=lib/tnt-core/lib/uniswap-v3-core/contracts/\",\":clones-with-immutable-args/=lib/tnt-core/lib/clones-with-immutable-args/src/\",\":clones/=lib/tnt-core/lib/clones-with-immutable-args/src/\",\":core/=lib/tnt-core/src/\",\":ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":forge-test/=lib/tnt-core/lib/prb-test/src/\",\":math/=lib/tnt-core/lib/prb-math/src/\",\":openzeppelin-contracts-upgradeable/=lib/tnt-core/lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/tnt-core/lib/openzeppelin-contracts/contracts/\",\":prb-math/=lib/tnt-core/lib/prb-math/src/\",\":prb-test/=lib/tnt-core/lib/prb-test/src/\",\":solmate/=lib/tnt-core/lib/solmate/src/\",\":src/=lib/tnt-core/lib/prb-math/src/\",\":test/=lib/tnt-core/test/\",\":tnt-core/=lib/tnt-core/\",\":uniswap-v3-core/=lib/tnt-core/lib/uniswap-v3-core/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol\":{\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ba80ba06c8e6be852847e4c5f4492cef801feb6558ae09ed705ff2e04ea8b13c\",\"dweb:/ipfs/QmXRJDv3xHLVQCVXg1ZvR35QS9sij5y9NDWYzMfUfAdTHF\"]},\"lib/tnt-core/src/BlueprintServiceManager.sol\":{\"keccak256\":\"0xfcd22822170696943d876b251ce51bf06574c23738f015289e6caff2724ef78e\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://1da8eb03b1403d9feacf477e48a7f50a626907cbef4cf16c989ef0f2a7944d98\",\"dweb:/ipfs/QmQwUky8mpxNrfh8qWo4yEc2dQjsRwGpZwVpRp8gT1BAgS\"]},\"lib/tnt-core/src/Permissions.sol\":{\"keccak256\":\"0x59f4aba2d5ffb36f7a4f6bfcaf5089679536f90f3183e558d8428b6085d34899\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://c2fe2467c455dccedafb9033cc0b760b01118036cb240a27456723821b421043\",\"dweb:/ipfs/QmdrqkgDbRYftq883XQaKbAKcn9W3jELcrEBNJzvVSEpY7\"]},\"src/cggmp21/CGGMP21Blueprint.sol\":{\"keccak256\":\"0xdc805124b4d73d01157ad10488533cd5474669735d715c244a13bb37379dfa56\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://6cbb642609928f626363fecc7c4065ff1f46484d8f7e8a81e79e353a119dc88e\",\"dweb:/ipfs/QmZ6AVPYmMowhFFigQBkkiKBEbY6ZU7eb4CBcGjaB7DZqu\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.25+commit.b61c2a91"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"InvalidDKGThreshold"},{"inputs":[],"type":"error","name":"InvalidJob"},{"inputs":[],"type":"error","name":"InvalidRequestInputs"},{"inputs":[],"type":"error","name":"KeygenJobNotFound"},{"inputs":[],"stateMutability":"view","type":"function","name":"ROOT_CHAIN","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function","name":"blueprintOperators","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes","name":"publicKey","type":"bytes"}]},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function","name":"keygens","outputs":[{"internalType":"uint8","name":"","type":"uint8"}]},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"uint8","name":"job","type":"uint8"},{"internalType":"uint64","name":"jobCallId","type":"uint64"},{"internalType":"bytes","name":"inputs","type":"bytes"}],"stateMutability":"payable","type":"function","name":"onJobCall"},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"uint8","name":"job","type":"uint8"},{"internalType":"uint64","name":"jobCallId","type":"uint64"},{"internalType":"bytes","name":"participant","type":"bytes"},{"internalType":"bytes","name":"inputs","type":"bytes"},{"internalType":"bytes","name":"outputs","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"onJobCallResult"},{"inputs":[{"internalType":"bytes","name":"operator","type":"bytes"},{"internalType":"bytes","name":"registrationInputs","type":"bytes"}],"stateMutability":"payable","type":"function","name":"onRegister"},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"bytes[]","name":"operators","type":"bytes[]"},{"internalType":"bytes","name":"requestInputs","type":"bytes"}],"stateMutability":"payable","type":"function","name":"onRequest"},{"inputs":[{"internalType":"bytes","name":"publicKey","type":"bytes"}],"stateMutability":"pure","type":"function","name":"operatorAddressFromPublicKey","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function","name":"services","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}]},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"uint8","name":"job","type":"uint8"},{"internalType":"uint64","name":"jobCallId","type":"uint64"},{"internalType":"bytes","name":"participant","type":"bytes"},{"internalType":"bytes","name":"inputs","type":"bytes"},{"internalType":"bytes","name":"outputs","type":"bytes"}],"stateMutability":"view","type":"function","name":"verifyJobCallResult","outputs":[{"internalType":"bool","name":"","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{"onJobCall(uint64,uint8,uint64,bytes)":{"details":"Hook for job calls on the service. Called when a job is executed within the service context.","params":{"inputs":"Inputs required for the job execution.","job":"The job identifier.","jobCallId":"A unique ID for the job call.","serviceId":"The ID of the service where the job is called."}},"onJobCallResult(uint64,uint8,uint64,bytes,bytes,bytes)":{"details":"Hook for handling job call results. Called when operators send the result of a job execution.","params":{"inputs":"Inputs used for the job execution.","job":"The job identifier.","jobCallId":"The unique ID for the job call.","outputs":"Outputs resulting from the job execution.","participant":"The participant (operator) sending the result.","serviceId":"The ID of the service related to the job."}},"onRegister(bytes,bytes)":{"details":"Hook for service operator registration. Called when a service operator attempts to register with the blueprint.","params":{"operator":"The operator's details.","registrationInputs":"Inputs required for registration."}},"onRequest(uint64,bytes[],bytes)":{"details":"Hook for service instance requests. Called when a user requests a service instance from the blueprint.","params":{"operators":"The operators involved in the service.","requestInputs":"Inputs required for the service request.","serviceId":"The ID of the requested service."}},"verifyJobCallResult(uint64,uint8,uint64,bytes,bytes,bytes)":{"details":"Verifies the result of a job call. This function is used to validate the outputs of a job execution against the expected results.","params":{"inputs":"Inputs used for the job execution.","job":"The job identifier.","jobCallId":"The unique ID for the job call.","outputs":"Outputs resulting from the job execution.","participant":"The participant (operator) whose result is being verified.","serviceId":"The ID of the service related to the job."},"returns":{"_0":"bool Returns true if the job call result is verified successfully, otherwise false."}}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@/=src/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","@prb/test/=lib/tnt-core/lib/prb-math/lib/prb-test/src/","@uniswap/v3-core/=lib/tnt-core/lib/uniswap-v3-core/contracts/","clones-with-immutable-args/=lib/tnt-core/lib/clones-with-immutable-args/src/","clones/=lib/tnt-core/lib/clones-with-immutable-args/src/","core/=lib/tnt-core/src/","ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","forge-test/=lib/tnt-core/lib/prb-test/src/","math/=lib/tnt-core/lib/prb-math/src/","openzeppelin-contracts-upgradeable/=lib/tnt-core/lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/","openzeppelin/=lib/tnt-core/lib/openzeppelin-contracts/contracts/","prb-math/=lib/tnt-core/lib/prb-math/src/","prb-test/=lib/tnt-core/lib/prb-test/src/","solmate/=lib/tnt-core/lib/solmate/src/","src/=lib/tnt-core/lib/prb-math/src/","test/=lib/tnt-core/test/","tnt-core/=lib/tnt-core/","uniswap-v3-core/=lib/tnt-core/lib/uniswap-v3-core/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/cggmp21/CGGMP21Blueprint.sol":"CGGMP21Blueprint"},"evmVersion":"paris","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"keccak256":"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf","urls":["bzz-raw://ba80ba06c8e6be852847e4c5f4492cef801feb6558ae09ed705ff2e04ea8b13c","dweb:/ipfs/QmXRJDv3xHLVQCVXg1ZvR35QS9sij5y9NDWYzMfUfAdTHF"],"license":"MIT"},"lib/tnt-core/src/BlueprintServiceManager.sol":{"keccak256":"0xfcd22822170696943d876b251ce51bf06574c23738f015289e6caff2724ef78e","urls":["bzz-raw://1da8eb03b1403d9feacf477e48a7f50a626907cbef4cf16c989ef0f2a7944d98","dweb:/ipfs/QmQwUky8mpxNrfh8qWo4yEc2dQjsRwGpZwVpRp8gT1BAgS"],"license":"UNLICENSED"},"lib/tnt-core/src/Permissions.sol":{"keccak256":"0x59f4aba2d5ffb36f7a4f6bfcaf5089679536f90f3183e558d8428b6085d34899","urls":["bzz-raw://c2fe2467c455dccedafb9033cc0b760b01118036cb240a27456723821b421043","dweb:/ipfs/QmdrqkgDbRYftq883XQaKbAKcn9W3jELcrEBNJzvVSEpY7"],"license":"UNLICENSED"},"src/cggmp21/CGGMP21Blueprint.sol":{"keccak256":"0xdc805124b4d73d01157ad10488533cd5474669735d715c244a13bb37379dfa56","urls":["bzz-raw://6cbb642609928f626363fecc7c4065ff1f46484d8f7e8a81e79e353a119dc88e","dweb:/ipfs/QmZ6AVPYmMowhFFigQBkkiKBEbY6ZU7eb4CBcGjaB7DZqu"],"license":"GPL-3.0-only"}},"version":1},"id":3} \ No newline at end of file +{"abi":[{"type":"function","name":"ROOT_CHAIN","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"blueprintOperators","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"addr","type":"address","internalType":"address"},{"name":"publicKey","type":"bytes","internalType":"bytes"}],"stateMutability":"view"},{"type":"function","name":"keygens","inputs":[{"name":"","type":"uint64","internalType":"uint64"},{"name":"","type":"uint64","internalType":"uint64"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"type":"function","name":"onJobCall","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"job","type":"uint8","internalType":"uint8"},{"name":"jobCallId","type":"uint64","internalType":"uint64"},{"name":"inputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"onJobResult","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"job","type":"uint8","internalType":"uint8"},{"name":"jobCallId","type":"uint64","internalType":"uint64"},{"name":"participant","type":"bytes","internalType":"bytes"},{"name":"inputs","type":"bytes","internalType":"bytes"},{"name":"outputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"onRegister","inputs":[{"name":"operator","type":"bytes","internalType":"bytes"},{"name":"registrationInputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"onRequest","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"operators","type":"bytes[]","internalType":"bytes[]"},{"name":"requestInputs","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"onSlash","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"offender","type":"bytes","internalType":"bytes"},{"name":"slashPercent","type":"uint8","internalType":"uint8"},{"name":"totalPayout","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"onUnappliedSlash","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"},{"name":"offender","type":"bytes","internalType":"bytes"},{"name":"slashPercent","type":"uint8","internalType":"uint8"},{"name":"totalPayout","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"operatorAddressFromPublicKey","inputs":[{"name":"publicKey","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"pure"},{"type":"function","name":"queryDisputeOrigin","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"}],"outputs":[{"name":"disputeOrigin","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"querySlashingOrigin","inputs":[{"name":"serviceId","type":"uint64","internalType":"uint64"}],"outputs":[{"name":"slashingOrigin","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"services","inputs":[{"name":"","type":"uint64","internalType":"uint64"}],"outputs":[{"name":"id","type":"uint64","internalType":"uint64"}],"stateMutability":"view"},{"type":"error","name":"InvalidDKGThreshold","inputs":[]},{"type":"error","name":"InvalidJob","inputs":[]},{"type":"error","name":"InvalidRequestInputs","inputs":[]},{"type":"error","name":"KeygenJobNotFound","inputs":[]}],"bytecode":{"object":"0x6080604052348015600f57600080fd5b50610e7c8061001f6000396000f3fe6080604052600436106100c25760003560e01c8063884673ac1161007f578063d32e11e211610059578063d32e11e21461021d578063d4e5fe2714610230578063e40b0d491461025e578063e926cbd1146100c757600080fd5b8063884673ac146101d45780639838caa3146101f7578063a7c66f861461020a57600080fd5b80630af7d743146100c757806314b4df4c146100e957806334a324e41461012657806356270e17146101735780636dfee236146101c157806374ceeb55146100e9575b600080fd5b3480156100d357600080fd5b506100e76100e236600461081d565b61027e565b005b3480156100f557600080fd5b50610109610104366004610889565b503090565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013257600080fd5b506101616101413660046108ab565b600160209081526000928352604080842090915290825290205460ff1681565b60405160ff909116815260200161011d565b34801561017f57600080fd5b506101a961018e366004610889565b6002602052600090815260409020546001600160401b031681565b6040516001600160401b03909116815260200161011d565b6100e76101cf3660046108de565b6102bc565b3480156101e057600080fd5b506101096b6d6f646c70792f737276637360401b81565b6100e761020536600461098f565b610446565b6100e76102183660046109f3565b6105a3565b6100e761022b366004610a5e565b61068b565b34801561023c57600080fd5b5061025061024b366004610b2b565b6106c4565b60405161011d929190610b44565b34801561026a57600080fd5b50610109610279366004610ba3565b610786565b336b6d6f646c70792f737276637360401b146102b55760405162461bcd60e51b81526004016102ac90610be4565b60405180910390fd5b5050505050565b336b6d6f646c70792f737276637360401b146102ea5760405162461bcd60e51b81526004016102ac90610be4565b80156103095760405163702e9b1960e11b815260040160405180910390fd5b6001600160401b0385166000818152600260205260408120805467ffffffffffffffff191690921782555b8481101561043d57600061036587878481811061035357610353610c35565b90506020028101906102799190610c4b565b9050826001016040518060400160405280836001600160a01b0316815260200189898681811061039757610397610c35565b90506020028101906103a99190610c4b565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b039092169190911781559083015192939092908301915061042d9082610d32565b5050600190920191506103349050565b50505050505050565b336b6d6f646c70792f737276637360401b146104745760405162461bcd60e51b81526004016102ac90610be4565b60ff841661051657600061048a82840184610df1565b6001600160401b03871660009081526002602052604090206001015490915060ff821615806104bb5750808260ff16115b156104d95760405163b65cad8d60e01b815260040160405180910390fd5b506001600160401b038681166000908152600160209081526040808320938816835292905220805460ff191660ff929092169190911790556102b5565b60001960ff85160161058a5760008061053183850185610e0c565b6001600160401b03808a16600090815260016020908152604080832093861683529290529081205492945090925060ff90911690036105835760405163648bd07f60e11b815260040160405180910390fd5b50506102b5565b60405163038e47a360e51b815260040160405180910390fd5b336b6d6f646c70792f737276637360401b146105d15760405162461bcd60e51b81526004016102ac90610be4565b60006105dd8585610786565b905060006040518060400160405280836001600160a01b0316815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b03909216919091178155908301519293909290830191506106819082610d32565b5050505050505050565b336b6d6f646c70792f737276637360401b146106b95760405162461bcd60e51b81526004016102ac90610be4565b505050505050505050565b600081815481106106d457600080fd5b6000918252602090912060029091020180546001820180546001600160a01b0390921693509061070390610ca7565b80601f016020809104026020016040519081016040528092919081815260200182805461072f90610ca7565b801561077c5780601f106107515761010080835404028352916020019161077c565b820191906000526020600020905b81548152906001019060200180831161075f57829003601f168201915b5050505050905082565b60008282604051610798929190610e36565b6040519081900390209392505050565b80356001600160401b03811681146107bf57600080fd5b919050565b60008083601f8401126107d657600080fd5b5081356001600160401b038111156107ed57600080fd5b60208301915083602082850101111561080557600080fd5b9250929050565b803560ff811681146107bf57600080fd5b60008060008060006080868803121561083557600080fd5b61083e866107a8565b945060208601356001600160401b0381111561085957600080fd5b610865888289016107c4565b909550935061087890506040870161080c565b949793965091946060013592915050565b60006020828403121561089b57600080fd5b6108a4826107a8565b9392505050565b600080604083850312156108be57600080fd5b6108c7836107a8565b91506108d5602084016107a8565b90509250929050565b6000806000806000606086880312156108f657600080fd5b6108ff866107a8565b945060208601356001600160401b038082111561091b57600080fd5b818801915088601f83011261092f57600080fd5b81358181111561093e57600080fd5b8960208260051b850101111561095357600080fd5b60208301965080955050604088013591508082111561097157600080fd5b5061097e888289016107c4565b969995985093965092949392505050565b6000806000806000608086880312156109a757600080fd5b6109b0866107a8565b94506109be6020870161080c565b93506109cc604087016107a8565b925060608601356001600160401b038111156109e757600080fd5b61097e888289016107c4565b60008060008060408587031215610a0957600080fd5b84356001600160401b0380821115610a2057600080fd5b610a2c888389016107c4565b90965094506020870135915080821115610a4557600080fd5b50610a52878288016107c4565b95989497509550505050565b600080600080600080600080600060c08a8c031215610a7c57600080fd5b610a858a6107a8565b9850610a9360208b0161080c565b9750610aa160408b016107a8565b965060608a01356001600160401b0380821115610abd57600080fd5b610ac98d838e016107c4565b909850965060808c0135915080821115610ae257600080fd5b610aee8d838e016107c4565b909650945060a08c0135915080821115610b0757600080fd5b50610b148c828d016107c4565b915080935050809150509295985092959850929598565b600060208284031215610b3d57600080fd5b5035919050565b60018060a01b03831681526000602060406020840152835180604085015260005b81811015610b8157858101830151858201606001528201610b65565b506000606082860101526060601f19601f830116850101925050509392505050565b60008060208385031215610bb657600080fd5b82356001600160401b03811115610bcc57600080fd5b610bd8858286016107c4565b90969095509350505050565b60208082526031908201527f526f6f74436861696e3a204f6e6c7920726f6f7420636861696e2063616e206360408201527030b636103a3434b990333ab731ba34b7b760791b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610c6257600080fd5b8301803591506001600160401b03821115610c7c57600080fd5b60200191503681900382131561080557600080fd5b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610cbb57607f821691505b602082108103610cdb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610d2d576000816000526020600020601f850160051c81016020861015610d0a5750805b601f850160051c820191505b81811015610d2957828155600101610d16565b5050505b505050565b81516001600160401b03811115610d4b57610d4b610c91565b610d5f81610d598454610ca7565b84610ce1565b602080601f831160018114610d945760008415610d7c5750858301515b600019600386901b1c1916600185901b178555610d29565b600085815260208120601f198616915b82811015610dc357888601518255948401946001909101908401610da4565b5085821015610de15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215610e0357600080fd5b6108a48261080c565b60008060408385031215610e1f57600080fd5b610e28836107a8565b946020939093013593505050565b818382376000910190815291905056fea264697066735822122055f3e02035080f611479594acd7a82f0f041619f35935466925bece4c675178164736f6c63430008190033","sourceMap":"236:3072:28:-:0;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x6080604052600436106100c25760003560e01c8063884673ac1161007f578063d32e11e211610059578063d32e11e21461021d578063d4e5fe2714610230578063e40b0d491461025e578063e926cbd1146100c757600080fd5b8063884673ac146101d45780639838caa3146101f7578063a7c66f861461020a57600080fd5b80630af7d743146100c757806314b4df4c146100e957806334a324e41461012657806356270e17146101735780636dfee236146101c157806374ceeb55146100e9575b600080fd5b3480156100d357600080fd5b506100e76100e236600461081d565b61027e565b005b3480156100f557600080fd5b50610109610104366004610889565b503090565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013257600080fd5b506101616101413660046108ab565b600160209081526000928352604080842090915290825290205460ff1681565b60405160ff909116815260200161011d565b34801561017f57600080fd5b506101a961018e366004610889565b6002602052600090815260409020546001600160401b031681565b6040516001600160401b03909116815260200161011d565b6100e76101cf3660046108de565b6102bc565b3480156101e057600080fd5b506101096b6d6f646c70792f737276637360401b81565b6100e761020536600461098f565b610446565b6100e76102183660046109f3565b6105a3565b6100e761022b366004610a5e565b61068b565b34801561023c57600080fd5b5061025061024b366004610b2b565b6106c4565b60405161011d929190610b44565b34801561026a57600080fd5b50610109610279366004610ba3565b610786565b336b6d6f646c70792f737276637360401b146102b55760405162461bcd60e51b81526004016102ac90610be4565b60405180910390fd5b5050505050565b336b6d6f646c70792f737276637360401b146102ea5760405162461bcd60e51b81526004016102ac90610be4565b80156103095760405163702e9b1960e11b815260040160405180910390fd5b6001600160401b0385166000818152600260205260408120805467ffffffffffffffff191690921782555b8481101561043d57600061036587878481811061035357610353610c35565b90506020028101906102799190610c4b565b9050826001016040518060400160405280836001600160a01b0316815260200189898681811061039757610397610c35565b90506020028101906103a99190610c4b565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b039092169190911781559083015192939092908301915061042d9082610d32565b5050600190920191506103349050565b50505050505050565b336b6d6f646c70792f737276637360401b146104745760405162461bcd60e51b81526004016102ac90610be4565b60ff841661051657600061048a82840184610df1565b6001600160401b03871660009081526002602052604090206001015490915060ff821615806104bb5750808260ff16115b156104d95760405163b65cad8d60e01b815260040160405180910390fd5b506001600160401b038681166000908152600160209081526040808320938816835292905220805460ff191660ff929092169190911790556102b5565b60001960ff85160161058a5760008061053183850185610e0c565b6001600160401b03808a16600090815260016020908152604080832093861683529290529081205492945090925060ff90911690036105835760405163648bd07f60e11b815260040160405180910390fd5b50506102b5565b60405163038e47a360e51b815260040160405180910390fd5b336b6d6f646c70792f737276637360401b146105d15760405162461bcd60e51b81526004016102ac90610be4565b60006105dd8585610786565b905060006040518060400160405280836001600160a01b0316815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050835460018082018655948252602091829020845160029092020180546001600160a01b0319166001600160a01b03909216919091178155908301519293909290830191506106819082610d32565b5050505050505050565b336b6d6f646c70792f737276637360401b146106b95760405162461bcd60e51b81526004016102ac90610be4565b505050505050505050565b600081815481106106d457600080fd5b6000918252602090912060029091020180546001820180546001600160a01b0390921693509061070390610ca7565b80601f016020809104026020016040519081016040528092919081815260200182805461072f90610ca7565b801561077c5780601f106107515761010080835404028352916020019161077c565b820191906000526020600020905b81548152906001019060200180831161075f57829003601f168201915b5050505050905082565b60008282604051610798929190610e36565b6040519081900390209392505050565b80356001600160401b03811681146107bf57600080fd5b919050565b60008083601f8401126107d657600080fd5b5081356001600160401b038111156107ed57600080fd5b60208301915083602082850101111561080557600080fd5b9250929050565b803560ff811681146107bf57600080fd5b60008060008060006080868803121561083557600080fd5b61083e866107a8565b945060208601356001600160401b0381111561085957600080fd5b610865888289016107c4565b909550935061087890506040870161080c565b949793965091946060013592915050565b60006020828403121561089b57600080fd5b6108a4826107a8565b9392505050565b600080604083850312156108be57600080fd5b6108c7836107a8565b91506108d5602084016107a8565b90509250929050565b6000806000806000606086880312156108f657600080fd5b6108ff866107a8565b945060208601356001600160401b038082111561091b57600080fd5b818801915088601f83011261092f57600080fd5b81358181111561093e57600080fd5b8960208260051b850101111561095357600080fd5b60208301965080955050604088013591508082111561097157600080fd5b5061097e888289016107c4565b969995985093965092949392505050565b6000806000806000608086880312156109a757600080fd5b6109b0866107a8565b94506109be6020870161080c565b93506109cc604087016107a8565b925060608601356001600160401b038111156109e757600080fd5b61097e888289016107c4565b60008060008060408587031215610a0957600080fd5b84356001600160401b0380821115610a2057600080fd5b610a2c888389016107c4565b90965094506020870135915080821115610a4557600080fd5b50610a52878288016107c4565b95989497509550505050565b600080600080600080600080600060c08a8c031215610a7c57600080fd5b610a858a6107a8565b9850610a9360208b0161080c565b9750610aa160408b016107a8565b965060608a01356001600160401b0380821115610abd57600080fd5b610ac98d838e016107c4565b909850965060808c0135915080821115610ae257600080fd5b610aee8d838e016107c4565b909650945060a08c0135915080821115610b0757600080fd5b50610b148c828d016107c4565b915080935050809150509295985092959850929598565b600060208284031215610b3d57600080fd5b5035919050565b60018060a01b03831681526000602060406020840152835180604085015260005b81811015610b8157858101830151858201606001528201610b65565b506000606082860101526060601f19601f830116850101925050509392505050565b60008060208385031215610bb657600080fd5b82356001600160401b03811115610bcc57600080fd5b610bd8858286016107c4565b90969095509350505050565b60208082526031908201527f526f6f74436861696e3a204f6e6c7920726f6f7420636861696e2063616e206360408201527030b636103a3434b990333ab731ba34b7b760791b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610c6257600080fd5b8301803591506001600160401b03821115610c7c57600080fd5b60200191503681900382131561080557600080fd5b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610cbb57607f821691505b602082108103610cdb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610d2d576000816000526020600020601f850160051c81016020861015610d0a5750805b601f850160051c820191505b81811015610d2957828155600101610d16565b5050505b505050565b81516001600160401b03811115610d4b57610d4b610c91565b610d5f81610d598454610ca7565b84610ce1565b602080601f831160018114610d945760008415610d7c5750858301515b600019600386901b1c1916600185901b178555610d29565b600085815260208120601f198616915b82811015610dc357888601518255948401946001909101908401610da4565b5085821015610de15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215610e0357600080fd5b6108a48261080c565b60008060408385031215610e1f57600080fd5b610e28836107a8565b946020939093013593505050565b818382376000910190815291905056fea264697066735822122055f3e02035080f611479594acd7a82f0f041619f35935466925bece4c675178164736f6c63430008190033","sourceMap":"236:3072:28:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4235:220:24;;;;;;;;;;-1:-1:-1;4235:220:24;;;;;:::i;:::-;;:::i;:::-;;5554:144;;;;;;;;;;-1:-1:-1;5554:144:24;;;;;:::i;:::-;-1:-1:-1;5686:4:24;;5554:144;;;;-1:-1:-1;;;;;1681:32:30;;;1663:51;;1651:2;1636:18;5554:144:24;;;;;;;;784:58:28;;;;;;;;;;-1:-1:-1;784:58:28;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2158:4:30;2146:17;;;2128:36;;2116:2;2101:18;784:58:28;1986:184:30;890:42:28;;;;;;;;;;-1:-1:-1;890:42:28;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;890:42:28;;;;;;-1:-1:-1;;;;;2337:31:30;;;2319:50;;2307:2;2292:18;890:42:28;2175:200:30;1398:656:28;;;;;;:::i;:::-;;:::i;451:79:26:-;;;;;;;;;;;;-1:-1:-1;;;451:79:26;;2060:1075:28;;;;;;:::i;:::-;;:::i;1062:330::-;;;;;;:::i;:::-;;:::i;2963:294:24:-;;;;;;:::i;:::-;;:::i;503:36:28:-;;;;;;;;;;-1:-1:-1;503:36:28;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;3141:165::-;;;;;;;;;;-1:-1:-1;3141:165:28;;;;;:::i;:::-;;:::i;4235:220:24:-;703:10:26;-1:-1:-1;;;703:24:26;695:86;;;;-1:-1:-1;;;695:86:26;;;;;;;:::i;:::-;;;;;;;;;4235:220:24;;;;;:::o;1398:656:28:-;703:10:26;-1:-1:-1;;;703:24:26;695:86;;;;-1:-1:-1;;;695:86:26;;;;;;;:::i;:::-;1645:25:28;;1641:85:::1;;1693:22;;-1:-1:-1::0;;;1693:22:28::1;;;;;;;;;;;1641:85;-1:-1:-1::0;;;;;1791:19:28;::::1;1765:23;1791:19:::0;;;:8:::1;:19;::::0;;;;1820:22;;-1:-1:-1;;1820:22:28::1;::::0;;::::1;::::0;;1853:195:::1;1873:20:::0;;::::1;1853:195;;;1914:12;1929:42;1958:9;;1968:1;1958:12;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;1929:42::-;1914:57;;1985:7;:17;;2008:28;;;;;;;;2017:4;-1:-1:-1::0;;;;;2008:28:28::1;;;;;2023:9;;2033:1;2023:12;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;2008:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;2008:28:28;;;;-1:-1:-1;;1985:52:28;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;-1:-1:-1;;;;;;1985:52:28::1;-1:-1:-1::0;;;;;1985:52:28;;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;;;;;;;::::1;::::0;-1:-1:-1;1985:52:28::1;::::0;;::::1;:::i;:::-;-1:-1:-1::0;;1895:3:28::1;::::0;;::::1;::::0;-1:-1:-1;1853:195:28::1;::::0;-1:-1:-1;1853:195:28::1;;;1571:483;1398:656:::0;;;;;:::o;2060:1075::-;703:10:26;-1:-1:-1;;;703:24:26;695:86;;;;-1:-1:-1;;;695:86:26;;;;;;;:::i;:::-;2276:17:28::1;::::0;::::1;2272:857;;2357:7;2367:27;::::0;;::::1;2378:6:::0;2367:27:::1;:::i;:::-;-1:-1:-1::0;;;;;2420:19:28;::::1;2408:9;2420:19:::0;;;:8:::1;:19;::::0;;;;:29:::1;;:36:::0;2357:37;;-1:-1:-1;2523:6:28::1;::::0;::::1;::::0;;:15:::1;;;2537:1;2533;:5;;;2523:15;2519:82;;;2565:21;;-1:-1:-1::0;;;2565:21:28::1;;;;;;;;;;;2519:82;-1:-1:-1::0;;;;;;2666:18:28;;::::1;;::::0;;;:7:::1;:18;::::0;;;;;;;:29;;::::1;::::0;;;;;;:33;;-1:-1:-1;;2666:33:28::1;;::::0;;;::::1;::::0;;;::::1;::::0;;2272:857:::1;;;-1:-1:-1::0;;2720:18:28::1;::::0;::::1;::::0;2716:413:::1;;2825:22;::::0;2869:37:::1;::::0;;::::1;2880:6:::0;2869:37:::1;:::i;:::-;-1:-1:-1::0;;;;;2968:18:28;;::::1;;::::0;;;:7:::1;:18;::::0;;;;;;;:35;;::::1;::::0;;;;;;;;;2824:82;;-1:-1:-1;2824:82:28;;-1:-1:-1;2968:35:28::1;::::0;;::::1;:40:::0;;2964:105:::1;;3035:19;;-1:-1:-1::0;;;3035:19:28::1;;;;;;;;;;;2964:105;2740:339;;2716:413;;;3106:12;;-1:-1:-1::0;;;3106:12:28::1;;;;;;;;;;;1062:330:::0;703:10:26;-1:-1:-1;;;703:24:26;695:86;;;;-1:-1:-1;;;695:86:26;;;;;;;:::i;:::-;1230:12:28::1;1245:38;1274:8;;1245:28;:38::i;:::-;1230:53;;1336:18;1360:24;;;;;;;;1369:4;-1:-1:-1::0;;;;;1360:24:28::1;;;;;1375:8;;1360:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;1360:24:28;;;;-1:-1:-1;;1336:49:28;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;;;;::::1;::::0;;::::1;;::::0;;-1:-1:-1;;;;;;1336:49:28::1;-1:-1:-1::0;;;;;1336:49:28;;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;;;;;;;::::1;::::0;-1:-1:-1;1336:49:28::1;::::0;;::::1;:::i;:::-;;;;1220:172;1062:330:::0;;;;:::o;2963:294:24:-;703:10:26;-1:-1:-1;;;703:24:26;695:86;;;;-1:-1:-1;;;695:86:26;;;;;;;:::i;:::-;2963:294:24;;;;;;;;;:::o;503:36:28:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;503:36:28;;;;-1:-1:-1;503:36:28;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3141:165::-;3226:7;3286:9;;3276:20;;;;;;;:::i;:::-;;;;;;;;;;3141:165;-1:-1:-1;;;3141:165:28:o;14:171:30:-;81:20;;-1:-1:-1;;;;;130:30:30;;120:41;;110:69;;175:1;172;165:12;110:69;14:171;;;:::o;190:347::-;241:8;251:6;305:3;298:4;290:6;286:17;282:27;272:55;;323:1;320;313:12;272:55;-1:-1:-1;346:20:30;;-1:-1:-1;;;;;378:30:30;;375:50;;;421:1;418;411:12;375:50;458:4;450:6;446:17;434:29;;510:3;503:4;494:6;486;482:19;478:30;475:39;472:59;;;527:1;524;517:12;472:59;190:347;;;;;:::o;542:156::-;608:20;;668:4;657:16;;647:27;;637:55;;688:1;685;678:12;703:620;797:6;805;813;821;829;882:3;870:9;861:7;857:23;853:33;850:53;;;899:1;896;889:12;850:53;922:28;940:9;922:28;:::i;:::-;912:38;;1001:2;990:9;986:18;973:32;-1:-1:-1;;;;;1020:6:30;1017:30;1014:50;;;1060:1;1057;1050:12;1014:50;1099:58;1149:7;1140:6;1129:9;1125:22;1099:58;:::i;:::-;1176:8;;-1:-1:-1;1073:84:30;-1:-1:-1;1230:36:30;;-1:-1:-1;1262:2:30;1247:18;;1230:36;:::i;:::-;703:620;;;;-1:-1:-1;703:620:30;;1313:2;1298:18;1285:32;;703:620;-1:-1:-1;;703:620:30:o;1328:184::-;1386:6;1439:2;1427:9;1418:7;1414:23;1410:32;1407:52;;;1455:1;1452;1445:12;1407:52;1478:28;1496:9;1478:28;:::i;:::-;1468:38;1328:184;-1:-1:-1;;;1328:184:30:o;1725:256::-;1791:6;1799;1852:2;1840:9;1831:7;1827:23;1823:32;1820:52;;;1868:1;1865;1858:12;1820:52;1891:28;1909:9;1891:28;:::i;:::-;1881:38;;1938:37;1971:2;1960:9;1956:18;1938:37;:::i;:::-;1928:47;;1725:256;;;;;:::o;2380:985::-;2505:6;2513;2521;2529;2537;2590:2;2578:9;2569:7;2565:23;2561:32;2558:52;;;2606:1;2603;2596:12;2558:52;2629:28;2647:9;2629:28;:::i;:::-;2619:38;;2708:2;2697:9;2693:18;2680:32;-1:-1:-1;;;;;2772:2:30;2764:6;2761:14;2758:34;;;2788:1;2785;2778:12;2758:34;2826:6;2815:9;2811:22;2801:32;;2871:7;2864:4;2860:2;2856:13;2852:27;2842:55;;2893:1;2890;2883:12;2842:55;2933:2;2920:16;2959:2;2951:6;2948:14;2945:34;;;2975:1;2972;2965:12;2945:34;3028:7;3023:2;3013:6;3010:1;3006:14;3002:2;2998:23;2994:32;2991:45;2988:65;;;3049:1;3046;3039:12;2988:65;3080:2;3076;3072:11;3062:21;;3102:6;3092:16;;;3161:2;3150:9;3146:18;3133:32;3117:48;;3190:2;3180:8;3177:16;3174:36;;;3206:1;3203;3196:12;3174:36;;3245:60;3297:7;3286:8;3275:9;3271:24;3245:60;:::i;:::-;2380:985;;;;-1:-1:-1;2380:985:30;;-1:-1:-1;3324:8:30;;3219:86;2380:985;-1:-1:-1;;;2380:985:30:o;3370:624::-;3463:6;3471;3479;3487;3495;3548:3;3536:9;3527:7;3523:23;3519:33;3516:53;;;3565:1;3562;3555:12;3516:53;3588:28;3606:9;3588:28;:::i;:::-;3578:38;;3635:36;3667:2;3656:9;3652:18;3635:36;:::i;:::-;3625:46;;3690:37;3723:2;3712:9;3708:18;3690:37;:::i;:::-;3680:47;;3778:2;3767:9;3763:18;3750:32;-1:-1:-1;;;;;3797:6:30;3794:30;3791:50;;;3837:1;3834;3827:12;3791:50;3876:58;3926:7;3917:6;3906:9;3902:22;3876:58;:::i;3999:717::-;4089:6;4097;4105;4113;4166:2;4154:9;4145:7;4141:23;4137:32;4134:52;;;4182:1;4179;4172:12;4134:52;4222:9;4209:23;-1:-1:-1;;;;;4292:2:30;4284:6;4281:14;4278:34;;;4308:1;4305;4298:12;4278:34;4347:58;4397:7;4388:6;4377:9;4373:22;4347:58;:::i;:::-;4424:8;;-1:-1:-1;4321:84:30;-1:-1:-1;4512:2:30;4497:18;;4484:32;;-1:-1:-1;4528:16:30;;;4525:36;;;4557:1;4554;4547:12;4525:36;;4596:60;4648:7;4637:8;4626:9;4622:24;4596:60;:::i;:::-;3999:717;;;;-1:-1:-1;4675:8:30;-1:-1:-1;;;;3999:717:30:o;4721:1221::-;4854:6;4862;4870;4878;4886;4894;4902;4910;4918;4971:3;4959:9;4950:7;4946:23;4942:33;4939:53;;;4988:1;4985;4978:12;4939:53;5011:28;5029:9;5011:28;:::i;:::-;5001:38;;5058:36;5090:2;5079:9;5075:18;5058:36;:::i;:::-;5048:46;;5113:37;5146:2;5135:9;5131:18;5113:37;:::i;:::-;5103:47;;5201:2;5190:9;5186:18;5173:32;-1:-1:-1;;;;;5265:2:30;5257:6;5254:14;5251:34;;;5281:1;5278;5271:12;5251:34;5320:58;5370:7;5361:6;5350:9;5346:22;5320:58;:::i;:::-;5397:8;;-1:-1:-1;5294:84:30;-1:-1:-1;5485:3:30;5470:19;;5457:33;;-1:-1:-1;5502:16:30;;;5499:36;;;5531:1;5528;5521:12;5499:36;5570:60;5622:7;5611:8;5600:9;5596:24;5570:60;:::i;:::-;5649:8;;-1:-1:-1;5544:86:30;-1:-1:-1;5737:3:30;5722:19;;5709:33;;-1:-1:-1;5754:16:30;;;5751:36;;;5783:1;5780;5773:12;5751:36;;5822:60;5874:7;5863:8;5852:9;5848:24;5822:60;:::i;:::-;5796:86;;5901:8;5891:18;;;5928:8;5918:18;;;4721:1221;;;;;;;;;;;:::o;5947:180::-;6006:6;6059:2;6047:9;6038:7;6034:23;6030:32;6027:52;;;6075:1;6072;6065:12;6027:52;-1:-1:-1;6098:23:30;;5947:180;-1:-1:-1;5947:180:30:o;6132:643::-;6336:1;6332;6327:3;6323:11;6319:19;6311:6;6307:32;6296:9;6289:51;6270:4;6359:2;6397;6392;6381:9;6377:18;6370:30;6429:6;6423:13;6472:6;6467:2;6456:9;6452:18;6445:34;6497:1;6507:140;6521:6;6518:1;6515:13;6507:140;;;6616:14;;;6612:23;;6606:30;6582:17;;;6601:2;6578:26;6571:66;6536:10;;6507:140;;;6511:3;6696:1;6691:2;6682:6;6671:9;6667:22;6663:31;6656:42;6766:2;6759;6755:7;6750:2;6742:6;6738:15;6734:29;6723:9;6719:45;6715:54;6707:62;;;;6132:643;;;;;:::o;6780:409::-;6850:6;6858;6911:2;6899:9;6890:7;6886:23;6882:32;6879:52;;;6927:1;6924;6917:12;6879:52;6967:9;6954:23;-1:-1:-1;;;;;6992:6:30;6989:30;6986:50;;;7032:1;7029;7022:12;6986:50;7071:58;7121:7;7112:6;7101:9;7097:22;7071:58;:::i;:::-;7148:8;;7045:84;;-1:-1:-1;6780:409:30;-1:-1:-1;;;;6780:409:30:o;7194:413::-;7396:2;7378:21;;;7435:2;7415:18;;;7408:30;7474:34;7469:2;7454:18;;7447:62;-1:-1:-1;;;7540:2:30;7525:18;;7518:47;7597:3;7582:19;;7194:413::o;7612:127::-;7673:10;7668:3;7664:20;7661:1;7654:31;7704:4;7701:1;7694:15;7728:4;7725:1;7718:15;7744:521;7821:4;7827:6;7887:11;7874:25;7981:2;7977:7;7966:8;7950:14;7946:29;7942:43;7922:18;7918:68;7908:96;;8000:1;7997;7990:12;7908:96;8027:33;;8079:20;;;-1:-1:-1;;;;;;8111:30:30;;8108:50;;;8154:1;8151;8144:12;8108:50;8187:4;8175:17;;-1:-1:-1;8218:14:30;8214:27;;;8204:38;;8201:58;;;8255:1;8252;8245:12;8270:127;8331:10;8326:3;8322:20;8319:1;8312:31;8362:4;8359:1;8352:15;8386:4;8383:1;8376:15;8402:380;8481:1;8477:12;;;;8524;;;8545:61;;8599:4;8591:6;8587:17;8577:27;;8545:61;8652:2;8644:6;8641:14;8621:18;8618:38;8615:161;;8698:10;8693:3;8689:20;8686:1;8679:31;8733:4;8730:1;8723:15;8761:4;8758:1;8751:15;8615:161;;8402:380;;;:::o;8912:542::-;9013:2;9008:3;9005:11;9002:446;;;9049:1;9073:5;9070:1;9063:16;9117:4;9114:1;9104:18;9187:2;9175:10;9171:19;9168:1;9164:27;9158:4;9154:38;9223:4;9211:10;9208:20;9205:47;;;-1:-1:-1;9246:4:30;9205:47;9301:2;9296:3;9292:12;9289:1;9285:20;9279:4;9275:31;9265:41;;9356:82;9374:2;9367:5;9364:13;9356:82;;;9419:17;;;9400:1;9389:13;9356:82;;;9360:3;;;9002:446;8912:542;;;:::o;9630:1341::-;9754:3;9748:10;-1:-1:-1;;;;;9773:6:30;9770:30;9767:56;;;9803:18;;:::i;:::-;9832:96;9921:6;9881:38;9913:4;9907:11;9881:38;:::i;:::-;9875:4;9832:96;:::i;:::-;9983:4;;10040:2;10029:14;;10057:1;10052:662;;;;10758:1;10775:6;10772:89;;;-1:-1:-1;10827:19:30;;;10821:26;10772:89;-1:-1:-1;;9587:1:30;9583:11;;;9579:24;9575:29;9565:40;9611:1;9607:11;;;9562:57;10874:81;;10022:943;;10052:662;8859:1;8852:14;;;8896:4;8883:18;;-1:-1:-1;;10088:20:30;;;10205:236;10219:7;10216:1;10213:14;10205:236;;;10308:19;;;10302:26;10287:42;;10400:27;;;;10368:1;10356:14;;;;10235:19;;10205:236;;;10209:3;10469:6;10460:7;10457:19;10454:201;;;10530:19;;;10524:26;-1:-1:-1;;10613:1:30;10609:14;;;10625:3;10605:24;10601:37;10597:42;10582:58;10567:74;;10454:201;-1:-1:-1;;;;;10701:1:30;10685:14;;;10681:22;10668:36;;-1:-1:-1;9630:1341:30:o;10976:182::-;11033:6;11086:2;11074:9;11065:7;11061:23;11057:32;11054:52;;;11102:1;11099;11092:12;11054:52;11125:27;11142:9;11125:27;:::i;11163:252::-;11230:6;11238;11291:2;11279:9;11270:7;11266:23;11262:32;11259:52;;;11307:1;11304;11297:12;11259:52;11330:28;11348:9;11330:28;:::i;:::-;11320:38;11405:2;11390:18;;;;11377:32;;-1:-1:-1;;;11163:252:30:o;11420:271::-;11603:6;11595;11590:3;11577:33;11559:3;11629:16;;11654:13;;;11629:16;11420:271;-1:-1:-1;11420:271:30:o","linkReferences":{}},"methodIdentifiers":{"ROOT_CHAIN()":"884673ac","blueprintOperators(uint256)":"d4e5fe27","keygens(uint64,uint64)":"34a324e4","onJobCall(uint64,uint8,uint64,bytes)":"9838caa3","onJobResult(uint64,uint8,uint64,bytes,bytes,bytes)":"d32e11e2","onRegister(bytes,bytes)":"a7c66f86","onRequest(uint64,bytes[],bytes)":"6dfee236","onSlash(uint64,bytes,uint8,uint256)":"0af7d743","onUnappliedSlash(uint64,bytes,uint8,uint256)":"e926cbd1","operatorAddressFromPublicKey(bytes)":"e40b0d49","queryDisputeOrigin(uint64)":"14b4df4c","querySlashingOrigin(uint64)":"74ceeb55","services(uint64)":"56270e17"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"InvalidDKGThreshold\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidJob\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidRequestInputs\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeygenJobNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ROOT_CHAIN\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"blueprintOperators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"keygens\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"job\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"jobCallId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"inputs\",\"type\":\"bytes\"}],\"name\":\"onJobCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"job\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"jobCallId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"participant\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"inputs\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"outputs\",\"type\":\"bytes\"}],\"name\":\"onJobResult\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"operator\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"registrationInputs\",\"type\":\"bytes\"}],\"name\":\"onRegister\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"bytes[]\",\"name\":\"operators\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes\",\"name\":\"requestInputs\",\"type\":\"bytes\"}],\"name\":\"onRequest\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"offender\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"slashPercent\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"totalPayout\",\"type\":\"uint256\"}],\"name\":\"onSlash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"offender\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"slashPercent\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"totalPayout\",\"type\":\"uint256\"}],\"name\":\"onUnappliedSlash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"}],\"name\":\"operatorAddressFromPublicKey\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"}],\"name\":\"queryDisputeOrigin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"disputeOrigin\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"serviceId\",\"type\":\"uint64\"}],\"name\":\"querySlashingOrigin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"slashingOrigin\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"services\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"onJobCall(uint64,uint8,uint64,bytes)\":{\"details\":\"Hook for job calls on the service. Called when a job is called within the service context.\",\"params\":{\"inputs\":\"Inputs required for the job execution in bytes format.\",\"job\":\"The job identifier.\",\"jobCallId\":\"A unique ID for the job call.\",\"serviceId\":\"The ID of the service where the job is called.\"}},\"onJobResult(uint64,uint8,uint64,bytes,bytes,bytes)\":{\"details\":\"Hook for handling job result. Called when operators send the result of a job execution.\",\"params\":{\"inputs\":\"Inputs used for the job execution in bytes format.\",\"job\":\"The job identifier.\",\"jobCallId\":\"The unique ID for the job call.\",\"outputs\":\"Outputs resulting from the job execution in bytes format.\",\"participant\":\"The participant (operator) sending the result in bytes format.\",\"serviceId\":\"The ID of the service related to the job.\"}},\"onRegister(bytes,bytes)\":{\"details\":\"Hook for service operator registration. Called when a service operator attempts to register with the blueprint.\",\"params\":{\"operator\":\"The operator's details in bytes format.\",\"registrationInputs\":\"Inputs required for registration in bytes format.\"}},\"onRequest(uint64,bytes[],bytes)\":{\"details\":\"Hook for service instance requests. Called when a user requests a service instance from the blueprint.\",\"params\":{\"operators\":\"The operators involved in the service in bytes array format.\",\"requestInputs\":\"Inputs required for the service request in bytes format.\",\"serviceId\":\"The ID of the requested service.\"}},\"onSlash(uint64,bytes,uint8,uint256)\":{\"details\":\"Hook for handling applied slashes. Called when a slash is applied to an offender.\",\"params\":{\"offender\":\"The offender's details in bytes format.\",\"serviceId\":\"The ID of the service related to the slash.\",\"slashPercent\":\"The percentage of the slash.\",\"totalPayout\":\"The total payout amount in wei.\"}},\"onUnappliedSlash(uint64,bytes,uint8,uint256)\":{\"details\":\"Hook for handling unapplied slashes. Called when a slash is queued and still not yet applied to an offender.\",\"params\":{\"offender\":\"The offender's details in bytes format.\",\"serviceId\":\"The ID of the service related to the slash.\",\"slashPercent\":\"The percentage of the slash.\",\"totalPayout\":\"The total payout amount in wei.\"}},\"queryDisputeOrigin(uint64)\":{\"details\":\"Query the dispute origin for a service. This mainly used by the runtime to determine the allowed account that can dispute an unapplied slash and remove it. by default, the service manager is the only account that can dispute a service. override this function to allow other accounts to dispute a service.\",\"params\":{\"serviceId\":\"The ID of the service.\"},\"returns\":{\"disputeOrigin\":\"The account that can dispute the unapplied slash for that service\"}},\"querySlashingOrigin(uint64)\":{\"details\":\"Query the slashing origin for a service. This mainly used by the runtime to determine the allowed account that can slash a service. by default, the service manager is the only account that can slash a service. override this function to allow other accounts to slash a service.\",\"params\":{\"serviceId\":\"The ID of the service.\"},\"returns\":{\"slashingOrigin\":\"The list of accounts that can slash the service.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/cggmp21/CGGMP21Blueprint.sol\":\"CGGMP21Blueprint\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@/=src/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@prb/test/=lib/tnt-core/lib/prb-math/lib/prb-test/src/\",\":@uniswap/v3-core/=lib/tnt-core/lib/uniswap-v3-core/contracts/\",\":clones-with-immutable-args/=lib/tnt-core/lib/clones-with-immutable-args/src/\",\":clones/=lib/tnt-core/lib/clones-with-immutable-args/src/\",\":core/=lib/tnt-core/src/\",\":ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":forge-test/=lib/tnt-core/lib/prb-test/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":math/=lib/tnt-core/lib/prb-math/src/\",\":openzeppelin-contracts-upgradeable/=lib/tnt-core/lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/tnt-core/lib/openzeppelin-contracts/contracts/\",\":prb-math/=lib/tnt-core/lib/prb-math/src/\",\":prb-test/=lib/tnt-core/lib/prb-test/src/\",\":solmate/=lib/tnt-core/lib/solmate/src/\",\":src/=lib/tnt-core/lib/prb-math/src/\",\":test/=lib/tnt-core/test/\",\":tnt-core/=lib/tnt-core/\",\":uniswap-v3-core/=lib/tnt-core/lib/uniswap-v3-core/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol\":{\"keccak256\":\"0x69f54c02b7d81d505910ec198c11ed4c6a728418a868b906b4a0cf29946fda84\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8e25e4bdb7ae1f21d23bfee996e22736fc0ab44cfabedac82a757b1edc5623b9\",\"dweb:/ipfs/QmQdWQvB6JCP9ZMbzi8EvQ1PTETqkcTWrbcVurS7DKpa5n\"]},\"lib/tnt-core/src/BlueprintServiceManagerBase.sol\":{\"keccak256\":\"0xdfac1a3f898ef4e7260f7d38459066d80bc34f03d9ada259347d92d443d2e8c4\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://65fd125b742e655ecec397ceebda6233b7e2f99ae43becdf06bcd8cabe17a824\",\"dweb:/ipfs/QmYh6uVQ8Yf6RH9vkUvWCMj4E2v4K9QAxcGPki5EQsHGe2\"]},\"lib/tnt-core/src/IBlueprintServiceManager.sol\":{\"keccak256\":\"0x2c5f11a35f9333da3e841e6fa372c12bc71bc1d9870845e6416c597c40c8080d\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://3cf770141c3bbadce4da6bf8517a7912488b0d844d9cf1a2b788c902d3b3a6f6\",\"dweb:/ipfs/QmY9zpsZkWhmVTqVyHVr1KwmX7UPMuzbhAXWj6qSwbXDt3\"]},\"lib/tnt-core/src/Permissions.sol\":{\"keccak256\":\"0x59f4aba2d5ffb36f7a4f6bfcaf5089679536f90f3183e558d8428b6085d34899\",\"license\":\"UNLICENSED\",\"urls\":[\"bzz-raw://c2fe2467c455dccedafb9033cc0b760b01118036cb240a27456723821b421043\",\"dweb:/ipfs/QmdrqkgDbRYftq883XQaKbAKcn9W3jELcrEBNJzvVSEpY7\"]},\"src/cggmp21/CGGMP21Blueprint.sol\":{\"keccak256\":\"0xf2d94bf380c1411f6d736f1e081b6328b58ef274289af7e2d7f9783f5b56b060\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://42edab7c87c2395fa00e45c72f50edd151ad305aaa43847fc20979718af36b5f\",\"dweb:/ipfs/Qmavi7PY87VjrzW5bJ84D3gZ3RrTDPYgm8kGqnpercEHuW\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.25+commit.b61c2a91"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"InvalidDKGThreshold"},{"inputs":[],"type":"error","name":"InvalidJob"},{"inputs":[],"type":"error","name":"InvalidRequestInputs"},{"inputs":[],"type":"error","name":"KeygenJobNotFound"},{"inputs":[],"stateMutability":"view","type":"function","name":"ROOT_CHAIN","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function","name":"blueprintOperators","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes","name":"publicKey","type":"bytes"}]},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function","name":"keygens","outputs":[{"internalType":"uint8","name":"","type":"uint8"}]},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"uint8","name":"job","type":"uint8"},{"internalType":"uint64","name":"jobCallId","type":"uint64"},{"internalType":"bytes","name":"inputs","type":"bytes"}],"stateMutability":"payable","type":"function","name":"onJobCall"},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"uint8","name":"job","type":"uint8"},{"internalType":"uint64","name":"jobCallId","type":"uint64"},{"internalType":"bytes","name":"participant","type":"bytes"},{"internalType":"bytes","name":"inputs","type":"bytes"},{"internalType":"bytes","name":"outputs","type":"bytes"}],"stateMutability":"payable","type":"function","name":"onJobResult"},{"inputs":[{"internalType":"bytes","name":"operator","type":"bytes"},{"internalType":"bytes","name":"registrationInputs","type":"bytes"}],"stateMutability":"payable","type":"function","name":"onRegister"},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"bytes[]","name":"operators","type":"bytes[]"},{"internalType":"bytes","name":"requestInputs","type":"bytes"}],"stateMutability":"payable","type":"function","name":"onRequest"},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"bytes","name":"offender","type":"bytes"},{"internalType":"uint8","name":"slashPercent","type":"uint8"},{"internalType":"uint256","name":"totalPayout","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"onSlash"},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"},{"internalType":"bytes","name":"offender","type":"bytes"},{"internalType":"uint8","name":"slashPercent","type":"uint8"},{"internalType":"uint256","name":"totalPayout","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"onUnappliedSlash"},{"inputs":[{"internalType":"bytes","name":"publicKey","type":"bytes"}],"stateMutability":"pure","type":"function","name":"operatorAddressFromPublicKey","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"}],"stateMutability":"view","type":"function","name":"queryDisputeOrigin","outputs":[{"internalType":"address","name":"disputeOrigin","type":"address"}]},{"inputs":[{"internalType":"uint64","name":"serviceId","type":"uint64"}],"stateMutability":"view","type":"function","name":"querySlashingOrigin","outputs":[{"internalType":"address","name":"slashingOrigin","type":"address"}]},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function","name":"services","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}]}],"devdoc":{"kind":"dev","methods":{"onJobCall(uint64,uint8,uint64,bytes)":{"details":"Hook for job calls on the service. Called when a job is called within the service context.","params":{"inputs":"Inputs required for the job execution in bytes format.","job":"The job identifier.","jobCallId":"A unique ID for the job call.","serviceId":"The ID of the service where the job is called."}},"onJobResult(uint64,uint8,uint64,bytes,bytes,bytes)":{"details":"Hook for handling job result. Called when operators send the result of a job execution.","params":{"inputs":"Inputs used for the job execution in bytes format.","job":"The job identifier.","jobCallId":"The unique ID for the job call.","outputs":"Outputs resulting from the job execution in bytes format.","participant":"The participant (operator) sending the result in bytes format.","serviceId":"The ID of the service related to the job."}},"onRegister(bytes,bytes)":{"details":"Hook for service operator registration. Called when a service operator attempts to register with the blueprint.","params":{"operator":"The operator's details in bytes format.","registrationInputs":"Inputs required for registration in bytes format."}},"onRequest(uint64,bytes[],bytes)":{"details":"Hook for service instance requests. Called when a user requests a service instance from the blueprint.","params":{"operators":"The operators involved in the service in bytes array format.","requestInputs":"Inputs required for the service request in bytes format.","serviceId":"The ID of the requested service."}},"onSlash(uint64,bytes,uint8,uint256)":{"details":"Hook for handling applied slashes. Called when a slash is applied to an offender.","params":{"offender":"The offender's details in bytes format.","serviceId":"The ID of the service related to the slash.","slashPercent":"The percentage of the slash.","totalPayout":"The total payout amount in wei."}},"onUnappliedSlash(uint64,bytes,uint8,uint256)":{"details":"Hook for handling unapplied slashes. Called when a slash is queued and still not yet applied to an offender.","params":{"offender":"The offender's details in bytes format.","serviceId":"The ID of the service related to the slash.","slashPercent":"The percentage of the slash.","totalPayout":"The total payout amount in wei."}},"queryDisputeOrigin(uint64)":{"details":"Query the dispute origin for a service. This mainly used by the runtime to determine the allowed account that can dispute an unapplied slash and remove it. by default, the service manager is the only account that can dispute a service. override this function to allow other accounts to dispute a service.","params":{"serviceId":"The ID of the service."},"returns":{"disputeOrigin":"The account that can dispute the unapplied slash for that service"}},"querySlashingOrigin(uint64)":{"details":"Query the slashing origin for a service. This mainly used by the runtime to determine the allowed account that can slash a service. by default, the service manager is the only account that can slash a service. override this function to allow other accounts to slash a service.","params":{"serviceId":"The ID of the service."},"returns":{"slashingOrigin":"The list of accounts that can slash the service."}}},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@/=src/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","@prb/test/=lib/tnt-core/lib/prb-math/lib/prb-test/src/","@uniswap/v3-core/=lib/tnt-core/lib/uniswap-v3-core/contracts/","clones-with-immutable-args/=lib/tnt-core/lib/clones-with-immutable-args/src/","clones/=lib/tnt-core/lib/clones-with-immutable-args/src/","core/=lib/tnt-core/src/","ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","forge-test/=lib/tnt-core/lib/prb-test/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","math/=lib/tnt-core/lib/prb-math/src/","openzeppelin-contracts-upgradeable/=lib/tnt-core/lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/","openzeppelin/=lib/tnt-core/lib/openzeppelin-contracts/contracts/","prb-math/=lib/tnt-core/lib/prb-math/src/","prb-test/=lib/tnt-core/lib/prb-test/src/","solmate/=lib/tnt-core/lib/solmate/src/","src/=lib/tnt-core/lib/prb-math/src/","test/=lib/tnt-core/test/","tnt-core/=lib/tnt-core/","uniswap-v3-core/=lib/tnt-core/lib/uniswap-v3-core/"],"optimizer":{"enabled":true,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/cggmp21/CGGMP21Blueprint.sol":"CGGMP21Blueprint"},"evmVersion":"paris","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol":{"keccak256":"0x69f54c02b7d81d505910ec198c11ed4c6a728418a868b906b4a0cf29946fda84","urls":["bzz-raw://8e25e4bdb7ae1f21d23bfee996e22736fc0ab44cfabedac82a757b1edc5623b9","dweb:/ipfs/QmQdWQvB6JCP9ZMbzi8EvQ1PTETqkcTWrbcVurS7DKpa5n"],"license":"MIT"},"lib/tnt-core/src/BlueprintServiceManagerBase.sol":{"keccak256":"0xdfac1a3f898ef4e7260f7d38459066d80bc34f03d9ada259347d92d443d2e8c4","urls":["bzz-raw://65fd125b742e655ecec397ceebda6233b7e2f99ae43becdf06bcd8cabe17a824","dweb:/ipfs/QmYh6uVQ8Yf6RH9vkUvWCMj4E2v4K9QAxcGPki5EQsHGe2"],"license":"UNLICENSED"},"lib/tnt-core/src/IBlueprintServiceManager.sol":{"keccak256":"0x2c5f11a35f9333da3e841e6fa372c12bc71bc1d9870845e6416c597c40c8080d","urls":["bzz-raw://3cf770141c3bbadce4da6bf8517a7912488b0d844d9cf1a2b788c902d3b3a6f6","dweb:/ipfs/QmY9zpsZkWhmVTqVyHVr1KwmX7UPMuzbhAXWj6qSwbXDt3"],"license":"UNLICENSED"},"lib/tnt-core/src/Permissions.sol":{"keccak256":"0x59f4aba2d5ffb36f7a4f6bfcaf5089679536f90f3183e558d8428b6085d34899","urls":["bzz-raw://c2fe2467c455dccedafb9033cc0b760b01118036cb240a27456723821b421043","dweb:/ipfs/QmdrqkgDbRYftq883XQaKbAKcn9W3jELcrEBNJzvVSEpY7"],"license":"UNLICENSED"},"src/cggmp21/CGGMP21Blueprint.sol":{"keccak256":"0xf2d94bf380c1411f6d736f1e081b6328b58ef274289af7e2d7f9783f5b56b060","urls":["bzz-raw://42edab7c87c2395fa00e45c72f50edd151ad305aaa43847fc20979718af36b5f","dweb:/ipfs/Qmavi7PY87VjrzW5bJ84D3gZ3RrTDPYgm8kGqnpercEHuW"],"license":"GPL-3.0-only"}},"version":1},"id":28} \ No newline at end of file diff --git a/pallets/services/src/tests.rs b/pallets/services/src/tests.rs index e704f521c..95b441170 100644 --- a/pallets/services/src/tests.rs +++ b/pallets/services/src/tests.rs @@ -19,8 +19,9 @@ use super::*; use frame_support::{assert_err, assert_ok}; use mock::*; use sp_core::{bounded_vec, ecdsa, ByteArray}; -use sp_runtime::KeyTypeId; +use sp_runtime::{KeyTypeId, Percent}; use tangle_primitives::services::*; +use tangle_primitives::MultiAssetDelegationInfo; const ALICE: u8 = 1; const BOB: u8 = 2; @@ -31,6 +32,9 @@ const EVE: u8 = 5; const USDC: AssetId = 1; const WETH: AssetId = 2; +const KEYGEN_JOB_ID: u8 = 0; +const SIGN_JOB_ID: u8 = 1; + fn zero_key() -> ecdsa::Public { ecdsa::Public::try_from([0; 33].as_slice()).unwrap() } @@ -66,8 +70,10 @@ fn price_targets(kind: MachineKind) -> PriceTargets { } fn cggmp21_blueprint() -> ServiceBlueprint> { + #[allow(deprecated)] ServiceBlueprint { metadata: ServiceMetadata { name: "CGGMP21 TSS".try_into().unwrap(), ..Default::default() }, + manager: BlueprintManager::Evm(CGGMP21_BLUEPRINT), jobs: bounded_vec![ JobDefinition { metadata: JobMetadata { name: "keygen".try_into().unwrap(), ..Default::default() }, @@ -79,6 +85,7 @@ fn cggmp21_blueprint() -> ServiceBlueprint> { metadata: JobMetadata { name: "sign".try_into().unwrap(), ..Default::default() }, params: bounded_vec![FieldType::Uint64, FieldType::Bytes], result: bounded_vec![FieldType::Bytes], + #[allow(deprecated)] verifier: JobResultVerifier::Evm(CGGMP21_BLUEPRINT), }, ], @@ -126,7 +133,6 @@ fn register_on_blueprint() { 0, OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Large), }, Default::default(), @@ -138,7 +144,6 @@ fn register_on_blueprint() { blueprint_id: 0, preferences: OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Large), }, registration_args: Default::default(), @@ -153,11 +158,7 @@ fn register_on_blueprint() { Services::register( RuntimeOrigin::signed(bob), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), ), crate::Error::::AlreadyRegistered @@ -168,11 +169,7 @@ fn register_on_blueprint() { Services::register( RuntimeOrigin::signed(mock_pub_key(10)), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), ), crate::Error::::OperatorNotActive @@ -202,80 +199,6 @@ fn pre_register_on_blueprint() { }); } -#[test] -fn update_approval_preference() { - new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { - System::set_block_number(1); - let alice = mock_pub_key(ALICE); - - let blueprint = cggmp21_blueprint(); - - assert_ok!(Services::create_blueprint(RuntimeOrigin::signed(alice.clone()), blueprint)); - - let bob = mock_pub_key(BOB); - - assert_ok!(Services::register( - RuntimeOrigin::signed(bob.clone()), - 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: price_targets(MachineKind::Small) - }, - Default::default(), - )); - - assert_eq!( - Operators::::get(0, &bob).unwrap(), - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: price_targets(MachineKind::Small) - } - ); - - assert_events(vec![RuntimeEvent::Services(crate::Event::Registered { - provider: bob.clone(), - blueprint_id: 0, - preferences: OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: price_targets(MachineKind::Small), - }, - registration_args: Default::default(), - })]); - - // update approval preference - assert_ok!(Services::update_approval_preference( - RuntimeOrigin::signed(bob.clone()), - 0, - ApprovalPreference::Required, - )); - - assert_eq!( - Operators::::get(0, &bob).unwrap().approval, - ApprovalPreference::Required - ); - - assert_events(vec![RuntimeEvent::Services(crate::Event::ApprovalPreferenceUpdated { - operator: bob, - blueprint_id: 0, - approval_preference: ApprovalPreference::Required, - })]); - - // try to update approval preference when not registered - let charlie = mock_pub_key(CHARLIE); - assert_err!( - Services::update_approval_preference( - RuntimeOrigin::signed(charlie), - 0, - ApprovalPreference::Required - ), - crate::Error::::NotRegistered - ); - }); -} - #[test] fn update_price_targets() { new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { @@ -293,7 +216,6 @@ fn update_price_targets() { 0, OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Small) }, Default::default(), @@ -303,7 +225,6 @@ fn update_price_targets() { Operators::::get(0, &bob).unwrap(), OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Small) } ); @@ -313,7 +234,6 @@ fn update_price_targets() { blueprint_id: 0, preferences: OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Small), }, registration_args: Default::default(), @@ -362,11 +282,7 @@ fn unregister_from_blueprint() { assert_ok!(Services::register( RuntimeOrigin::signed(bob.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); assert_ok!(Services::unregister(RuntimeOrigin::signed(bob.clone()), 0)); @@ -401,33 +317,21 @@ fn request_service() { assert_ok!(Services::register( RuntimeOrigin::signed(bob.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let charlie = mock_pub_key(CHARLIE); assert_ok!(Services::register( RuntimeOrigin::signed(charlie.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let dave = mock_pub_key(DAVE); assert_ok!(Services::register( RuntimeOrigin::signed(dave.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); @@ -441,139 +345,75 @@ fn request_service() { vec![USDC, WETH], 100, )); - // this service gets immediately accepted by all providers. - assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 0); - assert!(Instances::::contains_key(0)); - // The service should also be added to the services for each operator. - let profile = OperatorsProfile::::get(bob).unwrap(); - assert!(profile.services.contains(&0)); - let profile = OperatorsProfile::::get(charlie).unwrap(); - assert!(profile.services.contains(&0)); - let profile = OperatorsProfile::::get(dave).unwrap(); - assert!(profile.services.contains(&0)); - assert_events(vec![RuntimeEvent::Services(crate::Event::ServiceInitiated { - owner: eve, - request_id: None, - service_id: 0, - blueprint_id: 0, - assets: vec![USDC, WETH], - })]); - }); -} + assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 1); -#[test] -fn request_service_with_approval_process() { - new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { - System::set_block_number(1); - let alice = mock_pub_key(ALICE); - let blueprint = cggmp21_blueprint(); - assert_ok!(Services::create_blueprint(RuntimeOrigin::signed(alice.clone()), blueprint)); - - let bob = mock_pub_key(BOB); - assert_ok!(Services::register( + // Bob approves the request + assert_ok!(Services::approve( RuntimeOrigin::signed(bob.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, - Default::default(), - )); - - let charlie = mock_pub_key(CHARLIE); - assert_ok!(Services::register( - RuntimeOrigin::signed(charlie.clone()), - 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::Required, - price_targets: Default::default() - }, - Default::default(), + Percent::from_percent(10) )); - let dave = mock_pub_key(DAVE); - assert_ok!(Services::register( - RuntimeOrigin::signed(dave.clone()), - 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::Required, - price_targets: Default::default() - }, - Default::default(), - )); - - let eve = mock_pub_key(EVE); - assert_ok!(Services::request( - RuntimeOrigin::signed(eve.clone()), - 0, - vec![alice.clone()], - vec![bob.clone(), charlie.clone(), dave.clone()], - Default::default(), - vec![WETH], - 100, - )); - - // the service should be pending approval from charlie and dave. - assert!(ServiceRequests::::contains_key(0)); - assert_events(vec![RuntimeEvent::Services(crate::Event::ServiceRequested { - owner: eve.clone(), + assert_events(vec![RuntimeEvent::Services(crate::Event::ServiceRequestApproved { + operator: bob.clone(), request_id: 0, blueprint_id: 0, approved: vec![bob.clone()], pending_approvals: vec![charlie.clone(), dave.clone()], - assets: vec![WETH], })]); + // Charlie approves the request + assert_ok!(Services::approve( + RuntimeOrigin::signed(charlie.clone()), + 0, + Percent::from_percent(20) + )); - // it should not be added, until all providers approve. - let profile = OperatorsProfile::::get(bob.clone()).unwrap(); - assert!(!profile.services.contains(&0)); - let profile = OperatorsProfile::::get(charlie.clone()).unwrap(); - assert!(!profile.services.contains(&0)); - let profile = OperatorsProfile::::get(dave.clone()).unwrap(); - assert!(!profile.services.contains(&0)); - // charlie approves the service - assert_ok!(Services::approve(RuntimeOrigin::signed(charlie.clone()), 0)); assert_events(vec![RuntimeEvent::Services(crate::Event::ServiceRequestApproved { operator: charlie.clone(), request_id: 0, blueprint_id: 0, - approved: vec![charlie.clone(), bob.clone()], + approved: vec![bob.clone(), charlie.clone()], pending_approvals: vec![dave.clone()], })]); - // dave approves the service, and the service is initiated. - assert_ok!(Services::approve(RuntimeOrigin::signed(dave.clone()), 0)); - assert!(!ServiceRequests::::contains_key(0)); - assert!(Instances::::contains_key(0)); - - // The service should also be added to the services for each operator. - let profile = OperatorsProfile::::get(bob.clone()).unwrap(); - assert!(profile.services.contains(&0)); - let profile = OperatorsProfile::::get(charlie.clone()).unwrap(); - assert!(profile.services.contains(&0)); - let profile = OperatorsProfile::::get(dave.clone()).unwrap(); - assert!(profile.services.contains(&0)); + // Dave approves the request + assert_ok!(Services::approve( + RuntimeOrigin::signed(dave.clone()), + 0, + Percent::from_percent(30) + )); assert_events(vec![ RuntimeEvent::Services(crate::Event::ServiceRequestApproved { operator: dave.clone(), request_id: 0, blueprint_id: 0, - approved: vec![charlie.clone(), dave.clone(), bob.clone()], + approved: vec![bob.clone(), charlie.clone(), dave.clone()], pending_approvals: vec![], }), RuntimeEvent::Services(crate::Event::ServiceInitiated { owner: eve, - request_id: Some(0), + request_id: 0, service_id: 0, blueprint_id: 0, - assets: vec![WETH], + assets: vec![USDC, WETH], }), ]); + + // The request is now fully approved + assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 0); + + // Now the service should be initiated + assert!(Instances::::contains_key(0)); + + // The service should also be added to the services for each operator. + let profile = OperatorsProfile::::get(bob).unwrap(); + assert!(profile.services.contains(&0)); + let profile = OperatorsProfile::::get(charlie).unwrap(); + assert!(profile.services.contains(&0)); + let profile = OperatorsProfile::::get(dave).unwrap(); + assert!(profile.services.contains(&0)); }); } @@ -588,11 +428,7 @@ fn request_service_with_no_assets() { assert_ok!(Services::register( RuntimeOrigin::signed(bob.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let eve = mock_pub_key(EVE); @@ -622,33 +458,21 @@ fn job_calls() { assert_ok!(Services::register( RuntimeOrigin::signed(bob.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let charlie = mock_pub_key(CHARLIE); assert_ok!(Services::register( RuntimeOrigin::signed(charlie.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let dave = mock_pub_key(DAVE); assert_ok!(Services::register( RuntimeOrigin::signed(dave.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); @@ -662,12 +486,29 @@ fn job_calls() { vec![WETH], 100, )); - // this service gets immediately accepted by all providers. - assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 0); + + assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 1); + assert_ok!(Services::approve( + RuntimeOrigin::signed(bob.clone()), + 0, + Percent::from_percent(10) + )); + + assert_ok!(Services::approve( + RuntimeOrigin::signed(charlie.clone()), + 0, + Percent::from_percent(10) + )); + + assert_ok!(Services::approve( + RuntimeOrigin::signed(dave.clone()), + 0, + Percent::from_percent(10) + )); assert!(Instances::::contains_key(0)); assert_events(vec![RuntimeEvent::Services(crate::Event::ServiceInitiated { owner: eve.clone(), - request_id: None, + request_id: 0, service_id: 0, blueprint_id: 0, assets: vec![WETH], @@ -704,33 +545,21 @@ fn job_calls_fails_with_invalid_input() { assert_ok!(Services::register( RuntimeOrigin::signed(bob.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let charlie = mock_pub_key(CHARLIE); assert_ok!(Services::register( RuntimeOrigin::signed(charlie.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let dave = mock_pub_key(DAVE); assert_ok!(Services::register( RuntimeOrigin::signed(dave.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); @@ -745,11 +574,28 @@ fn job_calls_fails_with_invalid_input() { 100, )); // this service gets immediately accepted by all providers. - assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 0); + assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 1); + assert_ok!(Services::approve( + RuntimeOrigin::signed(bob.clone()), + 0, + Percent::from_percent(10) + )); + + assert_ok!(Services::approve( + RuntimeOrigin::signed(charlie.clone()), + 0, + Percent::from_percent(10) + )); + + assert_ok!(Services::approve( + RuntimeOrigin::signed(dave.clone()), + 0, + Percent::from_percent(10) + )); assert!(Instances::::contains_key(0)); assert_events(vec![RuntimeEvent::Services(crate::Event::ServiceInitiated { owner: eve.clone(), - request_id: None, + request_id: 0, service_id: 0, blueprint_id: 0, assets: vec![WETH], @@ -783,33 +629,21 @@ fn job_result() { assert_ok!(Services::register( RuntimeOrigin::signed(bob.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let charlie = mock_pub_key(CHARLIE); assert_ok!(Services::register( RuntimeOrigin::signed(charlie.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); let dave = mock_pub_key(DAVE); assert_ok!(Services::register( RuntimeOrigin::signed(dave.clone()), 0, - OperatorPreferences { - key: zero_key(), - approval: ApprovalPreference::default(), - price_targets: Default::default() - }, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, Default::default(), )); @@ -823,12 +657,29 @@ fn job_result() { vec![WETH], 100, )); - // this service gets immediately accepted by all providers. - assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 0); + + assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 1); + assert_ok!(Services::approve( + RuntimeOrigin::signed(bob.clone()), + 0, + Percent::from_percent(10) + )); + + assert_ok!(Services::approve( + RuntimeOrigin::signed(charlie.clone()), + 0, + Percent::from_percent(10) + )); + + assert_ok!(Services::approve( + RuntimeOrigin::signed(dave.clone()), + 0, + Percent::from_percent(10) + )); assert!(Instances::::contains_key(0)); assert_events(vec![RuntimeEvent::Services(crate::Event::ServiceInitiated { owner: eve.clone(), - request_id: None, + request_id: 0, service_id: 0, blueprint_id: 0, assets: vec![WETH], @@ -862,7 +713,7 @@ fn job_result() { assert_ok!(Services::call( RuntimeOrigin::signed(eve.clone()), 0, - 1, + SIGN_JOB_ID, bounded_vec![ Field::Uint64(keygen_job_call_id), Field::Bytes(data_hash.to_vec().try_into().unwrap()) @@ -887,3 +738,269 @@ fn job_result() { // )); }); } + +struct Deployment { + blueprint_id: u64, + service_id: u64, + bob_exposed_restake_percentage: Percent, +} + +/// A Helper function that creates a blueprint and service instance +fn deploy() -> Deployment { + let alice = mock_pub_key(ALICE); + let blueprint = cggmp21_blueprint(); + let blueprint_id = Services::next_blueprint_id(); + assert_ok!(Services::create_blueprint(RuntimeOrigin::signed(alice.clone()), blueprint)); + + let bob = mock_pub_key(BOB); + assert_ok!(Services::register( + RuntimeOrigin::signed(bob.clone()), + blueprint_id, + OperatorPreferences { key: zero_key(), price_targets: Default::default() }, + Default::default(), + )); + + let eve = mock_pub_key(EVE); + let service_id = Services::next_instance_id(); + assert_ok!(Services::request( + RuntimeOrigin::signed(eve.clone()), + blueprint_id, + vec![alice.clone()], + vec![bob.clone()], + Default::default(), + vec![WETH], + 100, + )); + + assert_eq!(ServiceRequests::::iter_keys().collect::>().len(), 1); + + let bob_exposed_restake_percentage = Percent::from_percent(10); + assert_ok!(Services::approve( + RuntimeOrigin::signed(bob.clone()), + service_id, + bob_exposed_restake_percentage, + )); + + assert!(Instances::::contains_key(service_id)); + + Deployment { blueprint_id, service_id, bob_exposed_restake_percentage } +} + +#[test] +fn unapplied_slash() { + new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { + System::set_block_number(1); + let Deployment { blueprint_id, service_id, bob_exposed_restake_percentage } = deploy(); + let eve = mock_pub_key(EVE); + let bob = mock_pub_key(BOB); + // now we can call the jobs + let job_call_id = Services::next_job_call_id(); + assert_ok!(Services::call( + RuntimeOrigin::signed(eve.clone()), + service_id, + KEYGEN_JOB_ID, + bounded_vec![Field::Uint8(1)], + )); + // sumbit an invalid result + let mut dkg = vec![0; 33]; + dkg[32] = 1; + assert_ok!(Services::submit_result( + RuntimeOrigin::signed(bob.clone()), + 0, + job_call_id, + bounded_vec![Field::Bytes(dkg.try_into().unwrap())], + )); + + let slash_percent = Percent::from_percent(50); + let service = Services::services(service_id).unwrap(); + let slashing_origin = + Services::query_slashing_origin(&service).map(|(o, _)| o.unwrap()).unwrap(); + + // Slash the operator for the invalid result + assert_ok!(Services::slash( + RuntimeOrigin::signed(slashing_origin.clone()), + bob.clone(), + service_id, + slash_percent + )); + + assert_eq!(UnappliedSlashes::::iter_keys().collect::>().len(), 1); + + let bob_slash = ::OperatorDelegationManager::get_operator_stake(&bob); + let expected_slash_amount = + (slash_percent * bob_exposed_restake_percentage).mul_floor(bob_slash); + + assert_events(vec![RuntimeEvent::Services(crate::Event::UnappliedSlash { + era: 0, + index: 0, + operator: bob.clone(), + blueprint_id, + service_id, + amount: expected_slash_amount, + })]); + }); +} + +#[test] +fn unapplied_slash_with_invalid_origin() { + new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { + System::set_block_number(1); + let Deployment { service_id, .. } = deploy(); + let eve = mock_pub_key(EVE); + let bob = mock_pub_key(BOB); + let slash_percent = Percent::from_percent(50); + // Try to slash with an invalid origin + assert_err!( + Services::slash( + RuntimeOrigin::signed(eve.clone()), + bob.clone(), + service_id, + slash_percent + ), + DispatchError::BadOrigin + ); + }); +} + +#[test] +fn slash_account_not_an_operator() { + new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { + System::set_block_number(1); + let Deployment { service_id, .. } = deploy(); + let karen = mock_pub_key(23); + + let service = Services::services(service_id).unwrap(); + let slashing_origin = + Services::query_slashing_origin(&service).map(|(o, _)| o.unwrap()).unwrap(); + let slash_percent = Percent::from_percent(50); + // Try to slash an operator that is not active in this service + assert_err!( + Services::slash( + RuntimeOrigin::signed(slashing_origin.clone()), + karen.clone(), + service_id, + slash_percent + ), + Error::::OffenderNotOperator + ); + }); +} + +#[test] +fn dispute() { + new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { + System::set_block_number(1); + let Deployment { blueprint_id, service_id, bob_exposed_restake_percentage } = deploy(); + let bob = mock_pub_key(BOB); + let slash_percent = Percent::from_percent(50); + let service = Services::services(service_id).unwrap(); + let slashing_origin = + Services::query_slashing_origin(&service).map(|(o, _)| o.unwrap()).unwrap(); + + // Slash the operator for the invalid result + assert_ok!(Services::slash( + RuntimeOrigin::signed(slashing_origin.clone()), + bob.clone(), + service_id, + slash_percent + )); + + assert_eq!(UnappliedSlashes::::iter_keys().collect::>().len(), 1); + + let era = 0; + let slash_index = 0; + + // Dispute the slash + let dispute_origin = + Services::query_dispute_origin(&service).map(|(o, _)| o.unwrap()).unwrap(); + + assert_ok!(Services::dispute( + RuntimeOrigin::signed(dispute_origin.clone()), + era, + slash_index + )); + + assert_eq!(UnappliedSlashes::::iter_keys().collect::>().len(), 0); + + let bob_slash = ::OperatorDelegationManager::get_operator_stake(&bob); + let expected_slash_amount = + (slash_percent * bob_exposed_restake_percentage).mul_floor(bob_slash); + + assert_events(vec![RuntimeEvent::Services(crate::Event::SlashDiscarded { + era: 0, + index: 0, + operator: bob.clone(), + blueprint_id, + service_id, + amount: expected_slash_amount, + })]); + }); +} + +#[test] +fn dispute_with_unauthorized_origin() { + new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { + System::set_block_number(1); + let Deployment { service_id, .. } = deploy(); + let eve = mock_pub_key(EVE); + let bob = mock_pub_key(BOB); + let slash_percent = Percent::from_percent(50); + let service = Services::services(service_id).unwrap(); + let slashing_origin = + Services::query_slashing_origin(&service).map(|(o, _)| o.unwrap()).unwrap(); + + // Slash the operator for the invalid result + assert_ok!(Services::slash( + RuntimeOrigin::signed(slashing_origin.clone()), + bob.clone(), + service_id, + slash_percent + )); + + assert_eq!(UnappliedSlashes::::iter_keys().collect::>().len(), 1); + + let era = 0; + let slash_index = 0; + + // Try to dispute with an invalid origin + assert_err!( + Services::dispute(RuntimeOrigin::signed(eve.clone()), era, slash_index), + DispatchError::BadOrigin + ); + }); +} + +#[test] +fn dispute_an_already_applied_slash() { + new_test_ext(vec![ALICE, BOB, CHARLIE, DAVE, EVE]).execute_with(|| { + System::set_block_number(1); + let Deployment { service_id, .. } = deploy(); + let eve = mock_pub_key(EVE); + let bob = mock_pub_key(BOB); + let slash_percent = Percent::from_percent(50); + let service = Services::services(service_id).unwrap(); + let slashing_origin = + Services::query_slashing_origin(&service).map(|(o, _)| o.unwrap()).unwrap(); + + // Slash the operator for the invalid result + assert_ok!(Services::slash( + RuntimeOrigin::signed(slashing_origin.clone()), + bob.clone(), + service_id, + slash_percent + )); + + assert_eq!(UnappliedSlashes::::iter_keys().collect::>().len(), 1); + + let era = 0; + let slash_index = 0; + // Simulate a slash happening + UnappliedSlashes::::remove(era, slash_index); + + // Try to dispute an already applied slash + assert_err!( + Services::dispute(RuntimeOrigin::signed(eve.clone()), era, slash_index), + Error::::UnappliedSlashNotFound + ); + }); +} diff --git a/pallets/services/src/traits.rs b/pallets/services/src/traits.rs index 13640cf16..740c2e099 100644 --- a/pallets/services/src/traits.rs +++ b/pallets/services/src/traits.rs @@ -31,3 +31,9 @@ pub trait EvmGasWeightMapping { /// Convert Substrate weight to EVM gas fn weight_to_gas(weight: Weight) -> u64; } + +/// Trait to be implemented for evm address mapping. +pub trait EvmAddressMapping { + /// Convert an address to an account id. + fn into_account_id(address: H160) -> A; +} diff --git a/pallets/services/src/types.rs b/pallets/services/src/types.rs index f0f951faf..4738cd089 100644 --- a/pallets/services/src/types.rs +++ b/pallets/services/src/types.rs @@ -15,6 +15,8 @@ // along with Tangle. If not, see . use super::*; +use parity_scale_codec::HasCompact; +use sp_std::prelude::*; use tangle_primitives::services::Constraints; pub type BalanceOf = @@ -40,3 +42,22 @@ pub type MaxAssetsPerServiceOf = as Constraints>::MaxAsset #[codec(mel_bound(skip_type_params(T)))] #[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))] pub struct ConstraintsOf(sp_std::marker::PhantomData); + +/// A pending slash record. The value of the slash has been computed but not applied yet, +/// rather deferred for several eras. +#[derive(Encode, Decode, RuntimeDebug, TypeInfo)] +#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))] +pub struct UnappliedSlash { + /// The Service Instance Id on which the slash is applied. + pub service_id: u64, + /// The account ID of the offending operator. + pub operator: AccountId, + /// The operator's own slash. + pub own: Balance, + /// All other slashed restakers and amounts. + pub others: Vec<(AccountId, Balance)>, + /// Reporters of the offence; bounty payout recipients. + pub reporters: Vec, + /// The amount of payout. + pub payout: Balance, +} diff --git a/pallets/tangle-lst/src/tests/join.rs b/pallets/tangle-lst/src/tests/join.rs index eb47c163f..f686376f7 100644 --- a/pallets/tangle-lst/src/tests/join.rs +++ b/pallets/tangle-lst/src/tests/join.rs @@ -127,7 +127,6 @@ fn join_errors_correctly() { #[test] #[cfg_attr(debug_assertions, should_panic(expected = "Defensive failure has been triggered!"))] -#[cfg_attr(not(debug_assertions), should_panic)] fn join_panics_when_reward_pool_not_found() { ExtBuilder::default().build_and_execute(|| { StakingMock::set_bonded_balance(Lst::create_bonded_account(123), 100); diff --git a/precompiles/services/Cargo.toml b/precompiles/services/Cargo.toml index b096e7e26..c9a2f6755 100644 --- a/precompiles/services/Cargo.toml +++ b/precompiles/services/Cargo.toml @@ -79,6 +79,8 @@ pallet-staking = { workspace = true } sp-staking = { workspace = true } frame-election-provider-support = { workspace = true } +ethabi = { workspace = true } + [features] default = ["std"] std = [ diff --git a/precompiles/services/Services.sol b/precompiles/services/Services.sol index 3e8c61137..2bacce398 100644 --- a/precompiles/services/Services.sol +++ b/precompiles/services/Services.sol @@ -4,7 +4,6 @@ pragma solidity ^0.8.0; /// @title ServicesPrecompile Interface /// @dev This interface is meant to interact with the ServicesPrecompile in the Tangle network. interface ServicesPrecompile { - /// @notice Create a new service blueprint /// @param blueprint_data The blueprint data encoded as bytes function createBlueprint(bytes calldata blueprint_data) external; @@ -13,7 +12,8 @@ interface ServicesPrecompile { /// @param blueprint_id The ID of the blueprint to register for /// @param preferences The operator's preferences encoded as bytes /// @param registration_args The registration arguments encoded as bytes - function registerOperator(uint256 blueprint_id, bytes calldata preferences, bytes calldata registration_args) external; + function registerOperator(uint256 blueprint_id, bytes calldata preferences, bytes calldata registration_args) + external; /// @notice Unregister an operator from a specific blueprint /// @param blueprint_id The ID of the blueprint to unregister from @@ -25,7 +25,13 @@ interface ServicesPrecompile { /// @param permitted_callers_data The permitted callers for the service encoded as bytes /// @param service_providers_data The service providers encoded as bytes /// @param request_args_data The request arguments encoded as bytes - function requestService(uint256 blueprint_id, uint256[] assets, bytes calldata permitted_callers_data, bytes calldata service_providers_data, bytes calldata request_args_data) external; + function requestService( + uint256 blueprint_id, + uint256[] calldata assets, + bytes calldata permitted_callers_data, + bytes calldata service_providers_data, + bytes calldata request_args_data + ) external; /// @notice Terminate a service /// @param service_id The ID of the service to terminate @@ -33,7 +39,8 @@ interface ServicesPrecompile { /// @notice Approve a service request /// @param request_id The ID of the service request to approve - function approve(uint256 request_id) external; + /// @param restaking_percent The amount of your restake to be exposed to the service in percentage [0, 100] + function approve(uint256 request_id, uint8 restaking_percent) external; /// @notice Reject a service request /// @param request_id The ID of the service request to reject @@ -50,4 +57,21 @@ interface ServicesPrecompile { /// @param call_id The ID of the call /// @param result_data The result data encoded as bytes function submitResult(uint256 service_id, uint256 call_id, bytes calldata result_data) external; + + /// @notice Slash an operator (offender) for a service id with a given percent of their exposed stake for that service. + /// + /// The caller needs to be an authorized Slash Origin for this service. + /// Note that this does not apply the slash directly, but instead schedules a deferred call to apply the slash + /// by another entity. + /// @param offender The operator to be slashed encoded as bytes + /// @param service_id The ID of the service to slash for + /// @param percent The percent of the offender's exposed stake to slash + function slash(bytes calldata offender, uint256 service_id, uint8 percent) external; + + /// @notice Dispute an Unapplied Slash for a service id. + /// + /// The caller needs to be an authorized Dispute Origin for this service. + /// @param era The era of the unapplied slash. + /// @param slash_index The index of the unapplied slash in the era. + function dispute(uint32 era, uint32 slash_index) external; } diff --git a/precompiles/services/src/lib.rs b/precompiles/services/src/lib.rs index 9b351374e..f073de670 100644 --- a/precompiles/services/src/lib.rs +++ b/precompiles/services/src/lib.rs @@ -7,6 +7,7 @@ use parity_scale_codec::Decode; use precompile_utils::prelude::*; use sp_core::U256; use sp_runtime::traits::Dispatchable; +use sp_runtime::Percent; use sp_std::{marker::PhantomData, vec::Vec}; use tangle_primitives::services::{Field, OperatorPreferences, ServiceBlueprint}; @@ -118,7 +119,7 @@ where Decode::decode(&mut &permitted_callers_data[..]) .map_err(|_| revert("Invalid permitted callers data"))?; - let service_providers: Vec = + let operators: Vec = Decode::decode(&mut &service_providers_data[..]) .map_err(|_| revert("Invalid service providers data"))?; @@ -131,7 +132,7 @@ where let call = pallet_services::Call::::request { blueprint_id, permitted_callers, - service_providers, + operators, ttl: 10000_u32.into(), assets, request_args, @@ -158,13 +159,18 @@ where } /// Approve a request. - #[precompile::public("approve(uint256)")] - fn approve(handle: &mut impl PrecompileHandle, request_id: U256) -> EvmResult { + #[precompile::public("approve(uint256,uint8)")] + fn approve( + handle: &mut impl PrecompileHandle, + request_id: U256, + restaking_percent: u8, + ) -> EvmResult { handle.record_cost(RuntimeHelper::::db_read_gas_cost())?; let origin = Runtime::AddressMapping::into_account_id(handle.context().caller); let request_id: u64 = request_id.as_u64(); + let restaking_percent: Percent = Percent::from_percent(restaking_percent); - let call = pallet_services::Call::::approve { request_id }; + let call = pallet_services::Call::::approve { request_id, restaking_percent }; RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call)?; @@ -250,4 +256,48 @@ where Ok(()) } + + /// Slash an operator (offender) for a service id with a given percent of their exposed stake for that service. + /// + /// The caller needs to be an authorized Slash Origin for this service. + /// Note that this does not apply the slash directly, but instead schedules a deferred call to apply the slash + /// by another entity. + #[precompile::public("slash(bytes,uint256,uint8)")] + fn slash( + handle: &mut impl PrecompileHandle, + offender: UnboundedBytes, + service_id: U256, + percent: u8, + ) -> EvmResult { + handle.record_cost(RuntimeHelper::::db_read_gas_cost())?; + let caller = handle.context().caller; + let origin = Runtime::AddressMapping::into_account_id(caller); + let service_id: u64 = service_id.as_u64(); + let percent: Percent = Percent::from_percent(percent); + let offender_bytes: Vec<_> = offender.into(); + let offender: Runtime::AccountId = Decode::decode(&mut &offender_bytes[..]) + .map_err(|_| revert("Invalid offender account id"))?; + + // inside this call, we do check if the caller is authorized to slash the offender + let call = pallet_services::Call::::slash { offender, service_id, percent }; + RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call)?; + + Ok(()) + } + + /// Dispute an Unapplied Slash for a service id. + /// + /// The caller needs to be an authorized Dispute Origin for this service. + #[precompile::public("dispute(uint32,uint32)")] + fn dispute(handle: &mut impl PrecompileHandle, era: u32, index: u32) -> EvmResult { + handle.record_cost(RuntimeHelper::::db_read_gas_cost())?; + let caller = handle.context().caller; + let origin = Runtime::AddressMapping::into_account_id(caller); + + // inside this call, we do check if the caller is authorized to dispute the slash + let call = pallet_services::Call::::dispute { era, index }; + RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call)?; + + Ok(()) + } } diff --git a/precompiles/services/src/mock.rs b/precompiles/services/src/mock.rs index b5810f380..718447c46 100644 --- a/precompiles/services/src/mock.rs +++ b/precompiles/services/src/mock.rs @@ -29,7 +29,7 @@ use frame_support::{ }; use mock_evm::MockedEvmRunner; use pallet_evm::GasWeightMapping; -use pallet_services::EvmGasWeightMapping; +use pallet_services::{EvmAddressMapping, EvmGasWeightMapping}; use pallet_session::historical as pallet_session_historical; use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; @@ -228,6 +228,15 @@ impl EvmGasWeightMapping for PalletEVMGasWeightMapping { } } +pub struct PalletEVMAddressMapping; + +impl EvmAddressMapping for PalletEVMAddressMapping { + fn into_account_id(address: H160) -> AccountId { + use pallet_evm::AddressMapping; + ::AddressMapping::into_account_id(address) + } +} + const PRECOMPILE_ADDRESS_BYTES: [u8; 32] = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, ]; @@ -368,6 +377,12 @@ impl tangle_primitives::traits::MultiAssetDelegationInfo ) -> Balance { Default::default() } + + fn get_delegators_for_operator( + _operator: &AccountId, + ) -> Vec<(AccountId, Balance, Self::AssetId)> { + Default::default() + } } parameter_types! { @@ -450,6 +465,10 @@ parameter_types! { #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo)] #[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))] pub const MaxAssetsPerService: u32 = 164; + + #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo)] + #[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))] + pub const SlashDeferDuration: u32 = 7; } impl pallet_services::Config for Runtime { @@ -459,6 +478,7 @@ impl pallet_services::Config for Runtime { type AssetId = AssetId; type PalletId = ServicesPalletId; type EvmRunner = MockedEvmRunner; + type EvmAddressMapping = PalletEVMAddressMapping; type EvmGasWeightMapping = PalletEVMGasWeightMapping; type MaxFields = MaxFields; type MaxFieldsSize = MaxFieldsSize; @@ -482,6 +502,8 @@ impl pallet_services::Config for Runtime { type MaxAssetsPerService = MaxAssetsPerService; type Constraints = pallet_services::types::ConstraintsOf; type OperatorDelegationManager = MockDelegationManager; + type SlashDeferDuration = SlashDeferDuration; + type SlashOrigin = frame_system::EnsureRoot; type WeightInfo = (); } diff --git a/precompiles/services/src/tests.rs b/precompiles/services/src/tests.rs index 3b9522c77..449490971 100644 --- a/precompiles/services/src/tests.rs +++ b/precompiles/services/src/tests.rs @@ -12,6 +12,7 @@ use sp_core::ecdsa; use sp_core::{H160, U256}; use sp_runtime::bounded_vec; use sp_runtime::AccountId32; +use tangle_primitives::services::BlueprintManager; use tangle_primitives::services::FieldType; use tangle_primitives::services::JobDefinition; use tangle_primitives::services::JobMetadata; @@ -20,7 +21,7 @@ use tangle_primitives::services::PriceTargets; use tangle_primitives::services::ServiceMetadata; use tangle_primitives::services::ServiceRegistrationHook; use tangle_primitives::services::ServiceRequestHook; -use tangle_primitives::services::{ApprovalPreference, OperatorPreferences, ServiceBlueprint}; +use tangle_primitives::services::{OperatorPreferences, ServiceBlueprint}; fn zero_key() -> ecdsa::Public { ecdsa::Public::from([0; 33]) @@ -60,8 +61,10 @@ fn price_targets(kind: MachineKind) -> PriceTargets { } fn cggmp21_blueprint() -> ServiceBlueprint> { + #[allow(deprecated)] ServiceBlueprint { metadata: ServiceMetadata { name: "CGGMP21 TSS".try_into().unwrap(), ..Default::default() }, + manager: BlueprintManager::Evm(CGGMP21_BLUEPRINT), jobs: bounded_vec![ JobDefinition { metadata: JobMetadata { name: "keygen".try_into().unwrap(), ..Default::default() }, @@ -73,6 +76,7 @@ fn cggmp21_blueprint() -> ServiceBlueprint> { metadata: JobMetadata { name: "sign".try_into().unwrap(), ..Default::default() }, params: bounded_vec![FieldType::Uint64, FieldType::Bytes], result: bounded_vec![FieldType::Bytes], + #[allow(deprecated)] verifier: JobResultVerifier::Evm(CGGMP21_BLUEPRINT), }, ], @@ -123,7 +127,6 @@ fn test_register_operator() { // Now register operator let preferences_data = OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Large), } .encode(); @@ -165,7 +168,6 @@ fn test_request_service() { // Now register operator let preferences_data = OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Large), } .encode(); @@ -201,6 +203,15 @@ fn test_request_service() { ) .execute_returns(()); + // Approve the service request by the operator(s) + PrecompilesValue::get() + .prepare_test( + TestAccount::Bob, + H160::from_low_u64_be(1), + PCall::approve { request_id: U256::from(0), restaking_percent: 10 }, + ) + .execute_returns(()); + // Ensure the service instance is created assert!(Instances::::contains_key(0)); }); @@ -224,7 +235,6 @@ fn test_unregister_operator() { let preferences_data = OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Large), } .encode(); @@ -274,7 +284,6 @@ fn test_terminate_service() { let preferences_data = OperatorPreferences { key: zero_key(), - approval: ApprovalPreference::default(), price_targets: price_targets(MachineKind::Large), } .encode(); @@ -309,6 +318,17 @@ fn test_terminate_service() { ) .execute_returns(()); + // Approve the service request by the operator(s) + PrecompilesValue::get() + .prepare_test( + TestAccount::Bob, + H160::from_low_u64_be(1), + PCall::approve { request_id: U256::from(0), restaking_percent: 10 }, + ) + .execute_returns(()); + + assert!(Instances::::contains_key(0)); + // Now terminate the service PrecompilesValue::get() .prepare_test( diff --git a/primitives/src/services/mod.rs b/primitives/src/services/mod.rs index f66b94b52..65ba94e1b 100644 --- a/primitives/src/services/mod.rs +++ b/primitives/src/services/mod.rs @@ -37,6 +37,7 @@ use frame_support::pallet_prelude::*; #[cfg(feature = "std")] use serde::{Deserialize, Serialize}; use sp_core::{ecdsa, RuntimeDebug}; +use sp_runtime::Percent; #[cfg(not(feature = "std"))] use alloc::{vec, vec::Vec}; @@ -108,6 +109,7 @@ pub struct JobDefinition { /// i.e. the output. pub result: BoundedVec, /// The verifier of the job result. + #[deprecated(note = "Use `blueprint.manager` instead.")] pub verifier: JobResultVerifier, } @@ -299,6 +301,29 @@ pub enum ServiceRequestHook { Evm(sp_core::H160), } +/// Service Blueprint Manager is a smart contract that will manage the service lifecycle. +#[derive(PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo, Clone, Copy, MaxEncodedLen)] +#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] +#[non_exhaustive] +pub enum BlueprintManager { + /// A Smart contract that will manage the service lifecycle. + Evm(sp_core::H160), +} + +impl BlueprintManager { + pub fn try_into_evm(self) -> Result { + match self { + Self::Evm(addr) => Ok(addr), + } + } +} + +impl Default for BlueprintManager { + fn default() -> Self { + Self::Evm(Default::default()) + } +} + #[derive(Educe, Encode, Decode, TypeInfo, MaxEncodedLen)] #[educe(Default(bound()), Debug(bound()), Clone(bound()), PartialEq(bound()), Eq)] #[scale_info(skip_type_params(C))] @@ -343,13 +368,17 @@ pub struct ServiceBlueprint { /// The job definitions that are available in this service. pub jobs: BoundedVec, C::MaxJobsPerService>, /// The registration hook that will be called before restaker registration. + #[deprecated(note = "Use `manager` instead.")] pub registration_hook: ServiceRegistrationHook, /// The parameters that are required for the service registration. pub registration_params: BoundedVec, /// The request hook that will be called before creating a service from the service blueprint. + #[deprecated(note = "Use `manager` instead.")] pub request_hook: ServiceRequestHook, /// The parameters that are required for the service request. pub request_params: BoundedVec, + /// A Blueprint Manager is a smart contract that implements the `BlueprintManager` interface. + pub manager: BlueprintManager, /// The gadget that will be executed for the service. pub gadget: Gadget, } @@ -419,7 +448,7 @@ impl pub fn is_approved(&self) -> bool { self.operators_with_approval_state .iter() - .all(|(_, state)| state == &ApprovalState::Approved) + .all(|(_, state)| matches!(state, ApprovalState::Approved { .. })) } /// Returns true if any the operators are [ApprovalState::Pending]. @@ -468,29 +497,16 @@ pub struct Service { pub owner: AccountId, /// The Permitted caller(s) of the service. pub permitted_callers: BoundedVec, - /// The Selected operators(s) for this service. - pub operators: BoundedVec, + /// The Selected operators(s) for this service with their restaking Percentage. + // This a Vec instead of a BTreeMap because the number of operators is expected to be small (smaller than 512) + // and the overhead of a BTreeMap is not worth it, plus BoundedBTreeMap is not serde compatible. + pub operators: BoundedVec<(AccountId, Percent), C::MaxOperatorsPerService>, /// Asset(s) used to secure the service instance. pub assets: BoundedVec, /// The Lifetime of the service. pub ttl: BlockNumber, } -/// Operator's Approval Prefrence. -#[derive( - Default, PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo, Copy, Clone, MaxEncodedLen, -)] -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -pub enum ApprovalPreference { - /// No approval is required to provide the service. - #[codec(index = 0)] - #[default] - None, - /// The approval is required to provide the service. - #[codec(index = 1)] - Required, -} - #[derive( Default, PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo, Copy, Clone, MaxEncodedLen, )] @@ -502,7 +518,10 @@ pub enum ApprovalState { Pending, /// The operator is approved to provide the service. #[codec(index = 1)] - Approved, + Approved { + /// The restaking percentage of the operator. + restaking_percent: Percent, + }, /// The operator is rejected to provide the service. #[codec(index = 2)] Rejected, @@ -532,8 +551,6 @@ pub struct PriceTargets { pub struct OperatorPreferences { /// The operator ECDSA public key. pub key: ecdsa::Public, - /// The approval prefrence of the operator. - pub approval: ApprovalPreference, /// The pricing targets for the operator's resources. pub price_targets: PriceTargets, } @@ -541,10 +558,7 @@ pub struct OperatorPreferences { impl OperatorPreferences { /// Encode the fields to ethabi bytes. pub fn to_ethabi(&self) -> Vec { - let tokens: Vec = vec![ - ethabi::Token::Bytes(self.key.0.to_vec()), - // TODO: Add ApprovalPreference to ethabi. - ]; + let tokens: Vec = vec![ethabi::Token::Bytes(self.key.0.to_vec())]; tokens } } diff --git a/primitives/src/traits/multi_asset_delegation.rs b/primitives/src/traits/multi_asset_delegation.rs index c109aff57..f29e677c7 100644 --- a/primitives/src/traits/multi_asset_delegation.rs +++ b/primitives/src/traits/multi_asset_delegation.rs @@ -1,3 +1,5 @@ +use sp_std::prelude::*; + use crate::types::RoundIndex; /// A trait to provide information about multi-asset delegation. @@ -80,4 +82,21 @@ pub trait MultiAssetDelegationInfo { /// /// The total delegation amount as a `Balance`. fn get_total_delegation_by_asset_id(operator: &AccountId, asset_id: &Self::AssetId) -> Balance; + + /// Get all delegators for a specific operator. + /// + /// This method returns a list of delegators for the specified operator, along + /// with their delegation amounts and asset identifiers. + /// + /// # Parameters + /// + /// * `operator`: A reference to the account identifier of the operator. + /// + /// # Returns + /// + /// A list of delegators as a vector of tuples, where each tuple contains the + /// delegator account identifier, delegation amount, and asset identifier. + fn get_delegators_for_operator( + operator: &AccountId, + ) -> Vec<(AccountId, Balance, Self::AssetId)>; } diff --git a/runtime/mainnet/src/tangle_services.rs b/runtime/mainnet/src/tangle_services.rs index e956f1b37..4b7b1c650 100644 --- a/runtime/mainnet/src/tangle_services.rs +++ b/runtime/mainnet/src/tangle_services.rs @@ -60,6 +60,15 @@ impl pallet_services::EvmGasWeightMapping for PalletEVMGasWeightMapping { } } +pub struct PalletEVMAddressMapping; + +impl pallet_services::EvmAddressMapping for PalletEVMAddressMapping { + fn into_account_id(address: H160) -> AccountId { + use pallet_evm::AddressMapping; + ::AddressMapping::into_account_id(address) + } +} + parameter_types! { #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo, Serialize, Deserialize)] pub const MaxFields: u32 = 256; @@ -120,6 +129,9 @@ parameter_types! { #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo, Serialize, Deserialize)] pub const MaxAssetsPerService: u32 = 64; + + #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo, Serialize, Deserialize)] + pub const SlashDeferDuration: u32 = 7; } pub type PalletServicesConstraints = pallet_services::types::ConstraintsOf; @@ -131,6 +143,7 @@ impl pallet_services::Config for Runtime { type PalletId = ServicesPalletId; type EvmRunner = PalletEvmRunner; type EvmGasWeightMapping = PalletEVMGasWeightMapping; + type EvmAddressMapping = PalletEVMAddressMapping; type AssetId = AssetId; type MaxFields = MaxFields; type MaxFieldsSize = MaxFieldsSize; @@ -153,6 +166,8 @@ impl pallet_services::Config for Runtime { type MaxContainerImageTagLength = MaxContainerImageTagLength; type MaxAssetsPerService = MaxAssetsPerService; type Constraints = PalletServicesConstraints; + type SlashDeferDuration = SlashDeferDuration; + type SlashOrigin = EnsureRootOrHalfCouncil; #[cfg(not(feature = "runtime-benchmarks"))] type OperatorDelegationManager = MultiAssetDelegation; #[cfg(feature = "runtime-benchmarks")] diff --git a/runtime/testnet/src/tangle_services.rs b/runtime/testnet/src/tangle_services.rs index 69afb1f56..5b0b3635c 100644 --- a/runtime/testnet/src/tangle_services.rs +++ b/runtime/testnet/src/tangle_services.rs @@ -57,6 +57,15 @@ impl pallet_services::EvmGasWeightMapping for PalletEVMGasWeightMapping { } } +pub struct PalletEVMAddressMapping; + +impl pallet_services::EvmAddressMapping for PalletEVMAddressMapping { + fn into_account_id(address: H160) -> AccountId { + use pallet_evm::AddressMapping; + ::AddressMapping::into_account_id(address) + } +} + parameter_types! { #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo, Serialize, Deserialize)] pub const MaxFields: u32 = 256; @@ -117,6 +126,9 @@ parameter_types! { #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo, Serialize, Deserialize)] pub const MaxAssetsPerService: u32 = 64; + + #[derive(Default, Copy, Clone, Eq, PartialEq, RuntimeDebug, Encode, Decode, MaxEncodedLen, TypeInfo, Serialize, Deserialize)] + pub const SlashDeferDuration: u32 = 7; } pub type PalletServicesConstraints = pallet_services::types::ConstraintsOf; @@ -128,6 +140,7 @@ impl pallet_services::Config for Runtime { type PalletId = ServicesPalletId; type EvmRunner = PalletEvmRunner; type EvmGasWeightMapping = PalletEVMGasWeightMapping; + type EvmAddressMapping = PalletEVMAddressMapping; type AssetId = AssetId; type MaxFields = MaxFields; type MaxFieldsSize = MaxFieldsSize; @@ -150,6 +163,8 @@ impl pallet_services::Config for Runtime { type MaxContainerImageTagLength = MaxContainerImageTagLength; type MaxAssetsPerService = MaxAssetsPerService; type Constraints = PalletServicesConstraints; + type SlashDeferDuration = SlashDeferDuration; + type SlashOrigin = EnsureRootOrHalfCouncil; #[cfg(not(feature = "runtime-benchmarks"))] type OperatorDelegationManager = MultiAssetDelegation; #[cfg(feature = "runtime-benchmarks")] diff --git a/tangle-subxt/Cargo.toml b/tangle-subxt/Cargo.toml index 1633fc859..9306776e1 100644 --- a/tangle-subxt/Cargo.toml +++ b/tangle-subxt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tangle-subxt" -version = "0.3.0" +version = "0.4.0" description = "Rust bindings and interface to interact with Tangle Network using subxt" authors = { workspace = true } edition = { workspace = true } diff --git a/tangle-subxt/metadata/tangle-testnet-runtime.scale b/tangle-subxt/metadata/tangle-testnet-runtime.scale index 56e339808..57aaa75d6 100644 Binary files a/tangle-subxt/metadata/tangle-testnet-runtime.scale and b/tangle-subxt/metadata/tangle-testnet-runtime.scale differ diff --git a/tangle-subxt/src/tangle_testnet_runtime.rs b/tangle-subxt/src/tangle_testnet_runtime.rs index 77886fb88..1c17f90ab 100644 --- a/tangle-subxt/src/tangle_testnet_runtime.rs +++ b/tangle-subxt/src/tangle_testnet_runtime.rs @@ -6,7 +6,7 @@ pub mod api { mod root_mod { pub use super::*; } - pub static PALLETS: [&str; 48usize] = [ + pub static PALLETS: [&str; 43usize] = [ "System", "Timestamp", "Sudo", @@ -50,17 +50,11 @@ pub mod api { "MultiAssetDelegation", "Services", "Lst", - "SygmaAccessSegregator", - "SygmaBasicFeeHandler", - "SygmaFeeHandlerRouter", - "SygmaPercentageFeeHandler", - "SygmaBridge", ]; pub static RUNTIME_APIS: [&str; 16usize] = [ "Core", "Metadata", "BlockBuilder", - "SygmaBridgeApi", "ServicesApi", "EthereumRuntimeRPCApi", "ConvertTransactionRuntimeApi", @@ -73,6 +67,7 @@ pub mod api { "GrandpaApi", "DebugRuntimeApi", "TxPoolRuntimeApi", + "GenesisBuilder", ]; #[doc = r" The error type returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; @@ -97,7 +92,7 @@ pub mod api { pub mod runtime_apis { use super::root_mod; use super::runtime_types; - use ::subxt_core::ext::codec::Encode; + use ::subxt::ext::subxt_core::ext::codec::Encode; pub struct RuntimeApi; impl RuntimeApi { pub fn core(&self) -> core::Core { @@ -109,9 +104,6 @@ pub mod api { pub fn block_builder(&self) -> block_builder::BlockBuilder { block_builder::BlockBuilder } - pub fn sygma_bridge_api(&self) -> sygma_bridge_api::SygmaBridgeApi { - sygma_bridge_api::SygmaBridgeApi - } pub fn services_api(&self) -> services_api::ServicesApi { services_api::ServicesApi } @@ -156,6 +148,9 @@ pub mod api { pub fn tx_pool_runtime_api(&self) -> tx_pool_runtime_api::TxPoolRuntimeApi { tx_pool_runtime_api::TxPoolRuntimeApi } + pub fn genesis_builder(&self) -> genesis_builder::GenesisBuilder { + genesis_builder::GenesisBuilder + } } pub mod core { use super::root_mod; @@ -166,11 +161,11 @@ pub mod api { #[doc = " Returns the version of the runtime."] pub fn version( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::Version, types::version::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "Core", "version", types::Version {}, @@ -186,11 +181,11 @@ pub mod api { pub fn execute_block( &self, block: types::execute_block::Block, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::ExecuteBlock, types::execute_block::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "Core", "execute_block", types::ExecuteBlock { block }, @@ -202,22 +197,22 @@ pub mod api { ], ) } - #[doc = " Initialize a block with the given header."] + #[doc = " Initialize a block with the given header and return the runtime executive mode."] pub fn initialize_block( &self, header: types::initialize_block::Header, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::InitializeBlock, types::initialize_block::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "Core", "initialize_block", types::InitializeBlock { header }, [ - 132u8, 63u8, 66u8, 154u8, 46u8, 75u8, 44u8, 136u8, 79u8, 137u8, 77u8, - 228u8, 84u8, 94u8, 107u8, 125u8, 248u8, 16u8, 164u8, 164u8, 86u8, - 149u8, 18u8, 243u8, 121u8, 103u8, 3u8, 231u8, 64u8, 195u8, 138u8, 51u8, + 132u8, 46u8, 150u8, 220u8, 71u8, 41u8, 12u8, 159u8, 48u8, 221u8, 178u8, + 85u8, 118u8, 128u8, 103u8, 26u8, 37u8, 71u8, 131u8, 152u8, 31u8, 248u8, + 74u8, 200u8, 212u8, 96u8, 88u8, 90u8, 102u8, 128u8, 148u8, 233u8, ], ) } @@ -232,40 +227,48 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Version {} pub mod execute_block { use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super::runtime_types; pub type Output = (); } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ExecuteBlock { pub block: execute_block::Block, } @@ -275,22 +278,26 @@ pub mod api { runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>; pub mod output { use super::runtime_types; - pub type Output = (); + pub type Output = runtime_types::sp_runtime::ExtrinsicInclusionMode; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct InitializeBlock { pub header: initialize_block::Header, } @@ -305,11 +312,11 @@ pub mod api { #[doc = " Returns the metadata of a runtime."] pub fn metadata( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::Metadata, types::metadata::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "Metadata", "metadata", types::Metadata {}, @@ -327,11 +334,11 @@ pub mod api { pub fn metadata_at_version( &self, version: types::metadata_at_version::Version, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::MetadataAtVersion, types::metadata_at_version::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "Metadata", "metadata_at_version", types::MetadataAtVersion { version }, @@ -348,11 +355,11 @@ pub mod api { #[doc = " This can be used to call `metadata_at_version`."] pub fn metadata_versions( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::MetadataVersions, types::metadata_versions::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "Metadata", "metadata_versions", types::MetadataVersions {}, @@ -375,18 +382,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Metadata {} pub mod metadata_at_version { use super::runtime_types; @@ -398,18 +409,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct MetadataAtVersion { pub version: metadata_at_version::Version, } @@ -417,22 +432,27 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = ::subxt_core::alloc::vec::Vec<::core::primitive::u32>; + pub type Output = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct MetadataVersions {} } } @@ -449,11 +469,11 @@ pub mod api { pub fn apply_extrinsic( &self, extrinsic: types::apply_extrinsic::Extrinsic, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::ApplyExtrinsic, types::apply_extrinsic::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BlockBuilder", "apply_extrinsic", types::ApplyExtrinsic { extrinsic }, @@ -467,11 +487,11 @@ pub mod api { #[doc = " Finish the current block."] pub fn finalize_block( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::FinalizeBlock, types::finalize_block::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BlockBuilder", "finalize_block", types::FinalizeBlock {}, @@ -486,11 +506,11 @@ pub mod api { pub fn inherent_extrinsics( &self, inherent: types::inherent_extrinsics::Inherent, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::InherentExtrinsics, types::inherent_extrinsics::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BlockBuilder", "inherent_extrinsics", types::InherentExtrinsics { inherent }, @@ -507,11 +527,11 @@ pub mod api { &self, block: types::check_inherents::Block, data: types::check_inherents::Data, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CheckInherents, types::check_inherents::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BlockBuilder", "check_inherents", types::CheckInherents { block, data }, @@ -527,25 +547,29 @@ pub mod api { use super::runtime_types; pub mod apply_extrinsic { use super::runtime_types; - pub type Extrinsic = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; + pub type Extrinsic = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub mod output { use super::runtime_types; pub type Output = :: core :: result :: Result < :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ApplyExtrinsic { pub extrinsic: apply_extrinsic::Extrinsic, } @@ -559,46 +583,54 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct FinalizeBlock {} pub mod inherent_extrinsics { use super::runtime_types; pub type Inherent = runtime_types::sp_inherents::InherentData; pub mod output { use super::runtime_types; - pub type Output = :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct InherentExtrinsics { pub inherent: inherent_extrinsics::Inherent, } pub mod check_inherents { use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub type Data = runtime_types::sp_inherents::InherentData; pub mod output { use super::runtime_types; @@ -606,79 +638,28 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CheckInherents { pub block: check_inherents::Block, pub data: check_inherents::Data, } } } - pub mod sygma_bridge_api { - use super::root_mod; - use super::runtime_types; - pub struct SygmaBridgeApi; - impl SygmaBridgeApi { - pub fn is_proposal_executed( - &self, - nonce: types::is_proposal_executed::Nonce, - domain_id: types::is_proposal_executed::DomainId, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< - types::IsProposalExecuted, - types::is_proposal_executed::output::Output, - > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( - "SygmaBridgeApi", - "is_proposal_executed", - types::IsProposalExecuted { nonce, domain_id }, - [ - 26u8, 73u8, 215u8, 108u8, 4u8, 240u8, 65u8, 131u8, 58u8, 155u8, 244u8, - 108u8, 96u8, 103u8, 50u8, 191u8, 164u8, 205u8, 102u8, 91u8, 220u8, - 178u8, 144u8, 44u8, 41u8, 16u8, 64u8, 27u8, 143u8, 49u8, 223u8, 54u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - pub mod is_proposal_executed { - use super::runtime_types; - pub type Nonce = ::core::primitive::u64; - pub type DomainId = ::core::primitive::u8; - pub mod output { - use super::runtime_types; - pub type Output = ::core::primitive::bool; - } - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct IsProposalExecuted { - pub nonce: is_proposal_executed::Nonce, - pub domain_id: is_proposal_executed::DomainId, - } - } - } pub mod services_api { use super::root_mod; use super::runtime_types; @@ -693,18 +674,19 @@ pub mod api { pub fn query_services_with_blueprints_by_operator( &self, operator: types::query_services_with_blueprints_by_operator::Operator, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::QueryServicesWithBlueprintsByOperator, types::query_services_with_blueprints_by_operator::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "ServicesApi", "query_services_with_blueprints_by_operator", types::QueryServicesWithBlueprintsByOperator { operator }, [ - 94u8, 219u8, 168u8, 232u8, 196u8, 22u8, 106u8, 77u8, 4u8, 29u8, 172u8, - 173u8, 40u8, 115u8, 161u8, 172u8, 46u8, 246u8, 91u8, 117u8, 254u8, - 68u8, 80u8, 207u8, 82u8, 162u8, 144u8, 35u8, 26u8, 16u8, 232u8, 136u8, + 93u8, 9u8, 183u8, 2u8, 86u8, 16u8, 111u8, 128u8, 149u8, 118u8, 59u8, + 154u8, 105u8, 149u8, 37u8, 231u8, 34u8, 168u8, 172u8, 234u8, 138u8, + 113u8, 121u8, 186u8, 87u8, 73u8, 59u8, 173u8, 183u8, 105u8, 216u8, + 183u8, ], ) } @@ -713,25 +695,29 @@ pub mod api { use super::runtime_types; pub mod query_services_with_blueprints_by_operator { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub mod output { use super::runtime_types; - pub type Output = :: core :: result :: Result < :: subxt_core :: alloc :: vec :: Vec < runtime_types :: tangle_primitives :: services :: RpcServicesWithBlueprint < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 > > , runtime_types :: sp_runtime :: DispatchError > ; + pub type Output = :: core :: result :: Result < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: tangle_primitives :: services :: RpcServicesWithBlueprint < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u128 > > , runtime_types :: sp_runtime :: DispatchError > ; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct QueryServicesWithBlueprintsByOperator { pub operator: query_services_with_blueprints_by_operator::Operator, } @@ -746,11 +732,11 @@ pub mod api { #[doc = " Returns runtime defined pallet_evm::ChainId."] pub fn chain_id( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::ChainId, types::chain_id::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "chain_id", types::ChainId {}, @@ -766,11 +752,11 @@ pub mod api { pub fn account_basic( &self, address: types::account_basic::Address, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::AccountBasic, types::account_basic::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "account_basic", types::AccountBasic { address }, @@ -785,11 +771,11 @@ pub mod api { #[doc = " Returns FixedGasPrice::min_gas_price"] pub fn gas_price( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::GasPrice, types::gas_price::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "gas_price", types::GasPrice {}, @@ -805,11 +791,11 @@ pub mod api { pub fn account_code_at( &self, address: types::account_code_at::Address, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::AccountCodeAt, types::account_code_at::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "account_code_at", types::AccountCodeAt { address }, @@ -824,11 +810,11 @@ pub mod api { #[doc = " Returns the converted FindAuthor::find_author authority id."] pub fn author( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::Author, types::author::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "author", types::Author {}, @@ -845,11 +831,11 @@ pub mod api { &self, address: types::storage_at::Address, index: types::storage_at::Index, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::StorageAt, types::storage_at::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "storage_at", types::StorageAt { address, index }, @@ -872,11 +858,11 @@ pub mod api { nonce: types::call::Nonce, estimate: types::call::Estimate, access_list: types::call::AccessList, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::Call, types::call::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "call", types::Call { @@ -909,11 +895,11 @@ pub mod api { nonce: types::create::Nonce, estimate: types::create::Estimate, access_list: types::create::AccessList, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::Create, types::create::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "create", types::Create { @@ -937,11 +923,11 @@ pub mod api { #[doc = " Return the current block."] pub fn current_block( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CurrentBlock, types::current_block::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "current_block", types::CurrentBlock {}, @@ -956,11 +942,11 @@ pub mod api { #[doc = " Return the current receipt."] pub fn current_receipts( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CurrentReceipts, types::current_receipts::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "current_receipts", types::CurrentReceipts {}, @@ -975,11 +961,11 @@ pub mod api { #[doc = " Return the current transaction status."] pub fn current_transaction_statuses( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CurrentTransactionStatuses, types::current_transaction_statuses::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "current_transaction_statuses", types::CurrentTransactionStatuses {}, @@ -993,11 +979,11 @@ pub mod api { } pub fn current_all( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CurrentAll, types::current_all::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "current_all", types::CurrentAll {}, @@ -1012,11 +998,11 @@ pub mod api { pub fn extrinsic_filter( &self, xts: types::extrinsic_filter::Xts, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::ExtrinsicFilter, types::extrinsic_filter::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "extrinsic_filter", types::ExtrinsicFilter { xts }, @@ -1031,11 +1017,11 @@ pub mod api { #[doc = " Return the elasticity multiplier."] pub fn elasticity( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::Elasticity, types::elasticity::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "elasticity", types::Elasticity {}, @@ -1050,11 +1036,11 @@ pub mod api { #[doc = " is supported."] pub fn gas_limit_multiplier_support( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::GasLimitMultiplierSupport, types::gas_limit_multiplier_support::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "gas_limit_multiplier_support", types::GasLimitMultiplierSupport {}, @@ -1070,11 +1056,11 @@ pub mod api { pub fn pending_block( &self, xts: types::pending_block::Xts, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::PendingBlock, types::pending_block::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "EthereumRuntimeRPCApi", "pending_block", types::PendingBlock { xts }, @@ -1086,6 +1072,30 @@ pub mod api { ], ) } + #[doc = " Initialize the pending block."] + #[doc = " The behavior should be the same as the runtime api Core_initialize_block but"] + #[doc = " for a \"pending\" block."] + #[doc = " If your project don't need to have a different behavior to initialize \"pending\" blocks,"] + #[doc = " you can copy your Core_initialize_block implementation."] + pub fn initialize_pending_block( + &self, + header: types::initialize_pending_block::Header, + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< + types::InitializePendingBlock, + types::initialize_pending_block::output::Output, + > { + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( + "EthereumRuntimeRPCApi", + "initialize_pending_block", + types::InitializePendingBlock { header }, + [ + 144u8, 233u8, 136u8, 244u8, 126u8, 226u8, 84u8, 97u8, 226u8, 246u8, + 87u8, 230u8, 14u8, 68u8, 224u8, 56u8, 150u8, 179u8, 7u8, 2u8, 22u8, + 225u8, 163u8, 11u8, 106u8, 70u8, 200u8, 52u8, 217u8, 199u8, 253u8, + 227u8, + ], + ) + } } pub mod types { use super::runtime_types; @@ -1097,40 +1107,48 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ChainId {} pub mod account_basic { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; pub mod output { use super::runtime_types; pub type Output = runtime_types::evm::backend::Basic; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AccountBasic { pub address: account_basic::Address, } @@ -1142,40 +1160,49 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GasPrice {} pub mod account_code_at { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; pub mod output { use super::runtime_types; - pub type Output = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Output = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AccountCodeAt { pub address: account_code_at::Address, } @@ -1183,54 +1210,63 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = ::subxt_core::utils::H160; + pub type Output = ::subxt::ext::subxt_core::utils::H160; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Author {} pub mod storage_at { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; pub type Index = runtime_types::primitive_types::U256; pub mod output { use super::runtime_types; - pub type Output = ::subxt_core::utils::H256; + pub type Output = ::subxt::ext::subxt_core::utils::H256; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct StorageAt { pub address: storage_at::Address, pub index: storage_at::Index, } pub mod call { use super::runtime_types; - pub type From = ::subxt_core::utils::H160; - pub type To = ::subxt_core::utils::H160; - pub type Data = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type From = ::subxt::ext::subxt_core::utils::H160; + pub type To = ::subxt::ext::subxt_core::utils::H160; + pub type Data = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Value = runtime_types::primitive_types::U256; pub type GasLimit = runtime_types::primitive_types::U256; pub type MaxFeePerGas = @@ -1240,34 +1276,40 @@ pub mod api { pub type Nonce = ::core::option::Option; pub type Estimate = ::core::primitive::bool; pub type AccessList = ::core::option::Option< - ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>, >; pub mod output { use super::runtime_types; pub type Output = ::core::result::Result< runtime_types::fp_evm::ExecutionInfoV2< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, >, runtime_types::sp_runtime::DispatchError, >; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Call { pub from: call::From, pub to: call::To, @@ -1282,8 +1324,9 @@ pub mod api { } pub mod create { use super::runtime_types; - pub type From = ::subxt_core::utils::H160; - pub type Data = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type From = ::subxt::ext::subxt_core::utils::H160; + pub type Data = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Value = runtime_types::primitive_types::U256; pub type GasLimit = runtime_types::primitive_types::U256; pub type MaxFeePerGas = @@ -1293,32 +1336,40 @@ pub mod api { pub type Nonce = ::core::option::Option; pub type Estimate = ::core::primitive::bool; pub type AccessList = ::core::option::Option< - ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>, >; pub mod output { use super::runtime_types; pub type Output = ::core::result::Result< - runtime_types::fp_evm::ExecutionInfoV2<::subxt_core::utils::H160>, + runtime_types::fp_evm::ExecutionInfoV2< + ::subxt::ext::subxt_core::utils::H160, + >, runtime_types::sp_runtime::DispatchError, >; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Create { pub from: create::From, pub data: create::Data, @@ -1342,66 +1393,80 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CurrentBlock {} pub mod current_receipts { use super::runtime_types; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - ::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::ethereum::receipt::ReceiptV3, >, >; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CurrentReceipts {} pub mod current_transaction_statuses { use super::runtime_types; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - ::subxt_core::alloc::vec::Vec, + ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::fp_rpc::TransactionStatus, + >, >; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CurrentTransactionStatuses {} pub mod current_all { use super::runtime_types; @@ -1414,12 +1479,12 @@ pub mod api { >, >, ::core::option::Option< - ::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::ethereum::receipt::ReceiptV3, >, >, ::core::option::Option< - ::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::fp_rpc::TransactionStatus, >, >, @@ -1427,42 +1492,50 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CurrentAll {} pub mod extrinsic_filter { use super::runtime_types; - pub type Xts = :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type Xts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super::runtime_types; - pub type Output = ::subxt_core::alloc::vec::Vec< + pub type Output = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::ethereum::transaction::TransactionV2, >; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ExtrinsicFilter { pub xts: extrinsic_filter::Xts, } @@ -1476,18 +1549,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Elasticity {} pub mod gas_limit_multiplier_support { use super::runtime_types; @@ -1497,22 +1574,26 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GasLimitMultiplierSupport {} pub mod pending_block { use super::runtime_types; - pub type Xts = :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type Xts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super::runtime_types; pub type Output = ( @@ -1522,7 +1603,7 @@ pub mod api { >, >, ::core::option::Option< - ::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::fp_rpc::TransactionStatus, >, >, @@ -1530,21 +1611,54 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct PendingBlock { pub xts: pending_block::Xts, } + pub mod initialize_pending_block { + use super::runtime_types; + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>; + pub mod output { + use super::runtime_types; + pub type Output = (); + } + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct InitializePendingBlock { + pub header: initialize_pending_block::Header, + } } } pub mod convert_transaction_runtime_api { @@ -1555,11 +1669,11 @@ pub mod api { pub fn convert_transaction( &self, transaction: types::convert_transaction::Transaction, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::ConvertTransaction, types::convert_transaction::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "ConvertTransactionRuntimeApi", "convert_transaction", types::ConvertTransaction { transaction }, @@ -1578,22 +1692,26 @@ pub mod api { pub type Transaction = runtime_types::ethereum::transaction::TransactionV2; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; + pub type Output = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ConvertTransaction { pub transaction: convert_transaction::Transaction, } @@ -1619,11 +1737,11 @@ pub mod api { source: types::validate_transaction::Source, tx: types::validate_transaction::Tx, block_hash: types::validate_transaction::BlockHash, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::ValidateTransaction, types::validate_transaction::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "TaggedTransactionQueue", "validate_transaction", types::ValidateTransaction { source, tx, block_hash }, @@ -1641,26 +1759,30 @@ pub mod api { use super::runtime_types; pub type Source = runtime_types::sp_runtime::transaction_validity::TransactionSource; - pub type Tx = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; - pub type BlockHash = ::subxt_core::utils::H256; + pub type Tx = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; + pub type BlockHash = ::subxt::ext::subxt_core::utils::H256; pub mod output { use super::runtime_types; pub type Output = :: core :: result :: Result < runtime_types :: sp_runtime :: transaction_validity :: ValidTransaction , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ValidateTransaction { pub source: validate_transaction::Source, pub tx: validate_transaction::Tx, @@ -1678,11 +1800,11 @@ pub mod api { pub fn offchain_worker( &self, header: types::offchain_worker::Header, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::OffchainWorker, types::offchain_worker::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "OffchainWorkerApi", "offchain_worker", types::OffchainWorker { header }, @@ -1706,18 +1828,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct OffchainWorker { pub header: offchain_worker::Header, } @@ -1739,11 +1865,11 @@ pub mod api { pub fn generate_session_keys( &self, seed: types::generate_session_keys::Seed, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::GenerateSessionKeys, types::generate_session_keys::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "SessionKeys", "generate_session_keys", types::GenerateSessionKeys { seed }, @@ -1760,11 +1886,11 @@ pub mod api { pub fn decode_session_keys( &self, encoded: types::decode_session_keys::Encoded, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::DecodeSessionKeys, types::decode_session_keys::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "SessionKeys", "decode_session_keys", types::DecodeSessionKeys { encoded }, @@ -1782,55 +1908,65 @@ pub mod api { pub mod generate_session_keys { use super::runtime_types; pub type Seed = ::core::option::Option< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, >; pub mod output { use super::runtime_types; - pub type Output = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Output = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GenerateSessionKeys { pub seed: generate_session_keys::Seed, } pub mod decode_session_keys { use super::runtime_types; - pub type Encoded = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Encoded = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - ::subxt_core::alloc::vec::Vec<( - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, runtime_types::sp_core::crypto::KeyTypeId, )>, >; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct DecodeSessionKeys { pub encoded: decode_session_keys::Encoded, } @@ -1845,29 +1981,29 @@ pub mod api { #[doc = " Return the configuration for BABE."] pub fn configuration( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::Configuration, types::configuration::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BabeApi", "configuration", types::Configuration {}, [ - 8u8, 81u8, 234u8, 29u8, 30u8, 198u8, 76u8, 19u8, 188u8, 198u8, 127u8, - 33u8, 141u8, 95u8, 132u8, 106u8, 31u8, 41u8, 215u8, 54u8, 240u8, 65u8, - 59u8, 160u8, 188u8, 237u8, 10u8, 143u8, 250u8, 79u8, 45u8, 161u8, + 50u8, 198u8, 27u8, 26u8, 92u8, 199u8, 8u8, 181u8, 12u8, 199u8, 116u8, + 247u8, 95u8, 70u8, 241u8, 24u8, 14u8, 250u8, 179u8, 77u8, 251u8, 55u8, + 133u8, 8u8, 142u8, 107u8, 6u8, 214u8, 228u8, 38u8, 134u8, 153u8, ], ) } #[doc = " Returns the slot that started the current epoch."] pub fn current_epoch_start( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CurrentEpochStart, types::current_epoch_start::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BabeApi", "current_epoch_start", types::CurrentEpochStart {}, @@ -1882,18 +2018,19 @@ pub mod api { #[doc = " Returns information regarding the current epoch."] pub fn current_epoch( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CurrentEpoch, types::current_epoch::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BabeApi", "current_epoch", types::CurrentEpoch {}, [ - 73u8, 171u8, 149u8, 138u8, 230u8, 95u8, 241u8, 189u8, 207u8, 145u8, - 103u8, 76u8, 79u8, 44u8, 250u8, 68u8, 238u8, 4u8, 149u8, 234u8, 165u8, - 91u8, 89u8, 228u8, 132u8, 201u8, 203u8, 98u8, 209u8, 137u8, 8u8, 63u8, + 70u8, 68u8, 222u8, 110u8, 96u8, 143u8, 126u8, 136u8, 182u8, 163u8, + 104u8, 122u8, 21u8, 156u8, 6u8, 26u8, 86u8, 145u8, 153u8, 133u8, 251u8, + 137u8, 238u8, 218u8, 132u8, 218u8, 222u8, 140u8, 190u8, 232u8, 197u8, + 86u8, ], ) } @@ -1901,19 +2038,19 @@ pub mod api { #[doc = " previously announced)."] pub fn next_epoch( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::NextEpoch, types::next_epoch::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BabeApi", "next_epoch", types::NextEpoch {}, [ - 191u8, 124u8, 183u8, 209u8, 73u8, 171u8, 164u8, 244u8, 68u8, 239u8, - 196u8, 54u8, 188u8, 85u8, 229u8, 175u8, 29u8, 89u8, 148u8, 108u8, - 208u8, 156u8, 62u8, 193u8, 167u8, 184u8, 251u8, 245u8, 123u8, 87u8, - 19u8, 225u8, + 141u8, 86u8, 122u8, 185u8, 215u8, 255u8, 142u8, 131u8, 8u8, 178u8, + 143u8, 200u8, 148u8, 84u8, 174u8, 215u8, 91u8, 251u8, 243u8, 155u8, + 92u8, 13u8, 44u8, 53u8, 128u8, 26u8, 165u8, 172u8, 49u8, 33u8, 130u8, + 148u8, ], ) } @@ -1932,19 +2069,18 @@ pub mod api { &self, slot: types::generate_key_ownership_proof::Slot, authority_id: types::generate_key_ownership_proof::AuthorityId, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::GenerateKeyOwnershipProof, types::generate_key_ownership_proof::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BabeApi", "generate_key_ownership_proof", types::GenerateKeyOwnershipProof { slot, authority_id }, [ - 235u8, 220u8, 75u8, 20u8, 175u8, 246u8, 127u8, 176u8, 225u8, 25u8, - 240u8, 252u8, 58u8, 254u8, 153u8, 133u8, 197u8, 168u8, 19u8, 231u8, - 234u8, 173u8, 58u8, 152u8, 212u8, 123u8, 13u8, 131u8, 84u8, 221u8, - 98u8, 46u8, + 13u8, 228u8, 75u8, 150u8, 203u8, 132u8, 82u8, 188u8, 17u8, 70u8, 169u8, + 19u8, 102u8, 96u8, 217u8, 209u8, 215u8, 196u8, 78u8, 141u8, 12u8, 14u8, + 151u8, 65u8, 173u8, 2u8, 100u8, 150u8, 18u8, 99u8, 19u8, 196u8, ], ) } @@ -1960,11 +2096,11 @@ pub mod api { &self, equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::SubmitReportEquivocationUnsignedExtrinsic, types::submit_report_equivocation_unsigned_extrinsic::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "BabeApi", "submit_report_equivocation_unsigned_extrinsic", types::SubmitReportEquivocationUnsignedExtrinsic { @@ -1972,10 +2108,10 @@ pub mod api { key_owner_proof, }, [ - 232u8, 90u8, 206u8, 125u8, 93u8, 204u8, 162u8, 148u8, 236u8, 146u8, - 170u8, 171u8, 179u8, 254u8, 165u8, 188u8, 207u8, 177u8, 201u8, 152u8, - 27u8, 145u8, 214u8, 234u8, 79u8, 86u8, 7u8, 118u8, 205u8, 136u8, 33u8, - 122u8, + 120u8, 243u8, 43u8, 91u8, 247u8, 63u8, 254u8, 169u8, 33u8, 156u8, + 172u8, 212u8, 12u8, 220u8, 253u8, 97u8, 120u8, 194u8, 179u8, 138u8, + 142u8, 93u8, 29u8, 42u8, 62u8, 244u8, 200u8, 214u8, 225u8, 75u8, 251u8, + 100u8, ], ) } @@ -1990,18 +2126,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Configuration {} pub mod current_epoch_start { use super::runtime_types; @@ -2011,18 +2151,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CurrentEpochStart {} pub mod current_epoch { use super::runtime_types; @@ -2032,18 +2176,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CurrentEpoch {} pub mod next_epoch { use super::runtime_types; @@ -2053,18 +2201,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct NextEpoch {} pub mod generate_key_ownership_proof { use super::runtime_types; @@ -2078,18 +2230,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GenerateKeyOwnershipProof { pub slot: generate_key_ownership_proof::Slot, pub authority_id: generate_key_ownership_proof::AuthorityId, @@ -2111,18 +2267,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof: submit_report_equivocation_unsigned_extrinsic::EquivocationProof, @@ -2141,11 +2301,11 @@ pub mod api { pub fn account_nonce( &self, account: types::account_nonce::Account, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::AccountNonce, types::account_nonce::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "AccountNonceApi", "account_nonce", types::AccountNonce { account }, @@ -2162,25 +2322,29 @@ pub mod api { use super::runtime_types; pub mod account_nonce { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AccountNonce { pub account: account_nonce::Account, } @@ -2195,11 +2359,11 @@ pub mod api { &self, uxt: types::query_info::Uxt, len: types::query_info::Len, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::QueryInfo, types::query_info::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "TransactionPaymentApi", "query_info", types::QueryInfo { uxt, len }, @@ -2214,11 +2378,11 @@ pub mod api { &self, uxt: types::query_fee_details::Uxt, len: types::query_fee_details::Len, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::QueryFeeDetails, types::query_fee_details::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "TransactionPaymentApi", "query_fee_details", types::QueryFeeDetails { uxt, len }, @@ -2232,11 +2396,11 @@ pub mod api { pub fn query_weight_to_fee( &self, weight: types::query_weight_to_fee::Weight, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::QueryWeightToFee, types::query_weight_to_fee::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "TransactionPaymentApi", "query_weight_to_fee", types::QueryWeightToFee { weight }, @@ -2251,11 +2415,11 @@ pub mod api { pub fn query_length_to_fee( &self, length: types::query_length_to_fee::Length, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::QueryLengthToFee, types::query_length_to_fee::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "TransactionPaymentApi", "query_length_to_fee", types::QueryLengthToFee { length }, @@ -2271,7 +2435,7 @@ pub mod api { use super::runtime_types; pub mod query_info { use super::runtime_types; - pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; + pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type Len = ::core::primitive::u32; pub mod output { use super::runtime_types; @@ -2283,25 +2447,29 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct QueryInfo { pub uxt: query_info::Uxt, pub len: query_info::Len, } pub mod query_fee_details { use super::runtime_types; - pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; + pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type Len = ::core::primitive::u32; pub mod output { use super::runtime_types; @@ -2312,18 +2480,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct QueryFeeDetails { pub uxt: query_fee_details::Uxt, pub len: query_fee_details::Len, @@ -2337,18 +2509,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct QueryWeightToFee { pub weight: query_weight_to_fee::Weight, } @@ -2361,18 +2537,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct QueryLengthToFee { pub length: query_length_to_fee::Length, } @@ -2400,19 +2580,18 @@ pub mod api { #[doc = " is finalized by the authorities from block B-1."] pub fn grandpa_authorities( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::GrandpaAuthorities, types::grandpa_authorities::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "GrandpaApi", "grandpa_authorities", types::GrandpaAuthorities {}, [ - 166u8, 76u8, 160u8, 101u8, 242u8, 145u8, 213u8, 10u8, 16u8, 130u8, - 230u8, 196u8, 125u8, 152u8, 92u8, 143u8, 119u8, 223u8, 140u8, 189u8, - 203u8, 95u8, 52u8, 105u8, 147u8, 107u8, 135u8, 228u8, 62u8, 178u8, - 128u8, 33u8, + 8u8, 1u8, 99u8, 227u8, 52u8, 95u8, 230u8, 139u8, 198u8, 90u8, 159u8, + 146u8, 193u8, 81u8, 37u8, 27u8, 216u8, 227u8, 108u8, 126u8, 12u8, 94u8, + 125u8, 183u8, 143u8, 231u8, 87u8, 101u8, 114u8, 190u8, 193u8, 180u8, ], ) } @@ -2428,11 +2607,11 @@ pub mod api { &self, equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::SubmitReportEquivocationUnsignedExtrinsic, types::submit_report_equivocation_unsigned_extrinsic::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "GrandpaApi", "submit_report_equivocation_unsigned_extrinsic", types::SubmitReportEquivocationUnsignedExtrinsic { @@ -2440,10 +2619,10 @@ pub mod api { key_owner_proof, }, [ - 223u8, 246u8, 39u8, 96u8, 206u8, 20u8, 228u8, 5u8, 162u8, 57u8, 73u8, - 70u8, 89u8, 130u8, 221u8, 87u8, 219u8, 55u8, 173u8, 128u8, 247u8, - 246u8, 131u8, 157u8, 194u8, 150u8, 237u8, 6u8, 112u8, 50u8, 130u8, - 30u8, + 10u8, 132u8, 153u8, 51u8, 160u8, 214u8, 104u8, 202u8, 222u8, 228u8, + 239u8, 137u8, 95u8, 172u8, 67u8, 215u8, 218u8, 182u8, 254u8, 220u8, + 118u8, 155u8, 242u8, 115u8, 182u8, 222u8, 244u8, 122u8, 175u8, 115u8, + 180u8, 115u8, ], ) } @@ -2462,30 +2641,29 @@ pub mod api { &self, set_id: types::generate_key_ownership_proof::SetId, authority_id: types::generate_key_ownership_proof::AuthorityId, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::GenerateKeyOwnershipProof, types::generate_key_ownership_proof::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "GrandpaApi", "generate_key_ownership_proof", types::GenerateKeyOwnershipProof { set_id, authority_id }, [ - 40u8, 126u8, 113u8, 27u8, 245u8, 45u8, 123u8, 138u8, 12u8, 3u8, 125u8, - 186u8, 151u8, 53u8, 186u8, 93u8, 13u8, 150u8, 163u8, 176u8, 206u8, - 89u8, 244u8, 127u8, 182u8, 85u8, 203u8, 41u8, 101u8, 183u8, 209u8, - 179u8, + 13u8, 144u8, 66u8, 235u8, 24u8, 190u8, 39u8, 75u8, 29u8, 157u8, 215u8, + 181u8, 173u8, 145u8, 224u8, 244u8, 189u8, 79u8, 6u8, 116u8, 139u8, + 196u8, 54u8, 16u8, 89u8, 190u8, 121u8, 43u8, 137u8, 150u8, 117u8, 68u8, ], ) } #[doc = " Get current GRANDPA authority set id."] pub fn current_set_id( &self, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::CurrentSetId, types::current_set_id::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "GrandpaApi", "current_set_id", types::CurrentSetId {}, @@ -2504,53 +2682,60 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = ::subxt_core::alloc::vec::Vec<( + pub type Output = ::subxt::ext::subxt_core::alloc::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GrandpaAuthorities {} pub mod submit_report_equivocation_unsigned_extrinsic { use super::runtime_types; pub type EquivocationProof = runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, ::core::primitive::u64, >; - pub type KeyOwnerProof = - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof; + pub type KeyOwnerProof = runtime_types::sp_runtime::OpaqueValue; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option<()>; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof: submit_report_equivocation_unsigned_extrinsic::EquivocationProof, @@ -2563,24 +2748,27 @@ pub mod api { pub type AuthorityId = runtime_types::sp_consensus_grandpa::app::Public; pub mod output { use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, - >; + pub type Output = + ::core::option::Option; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GenerateKeyOwnershipProof { pub set_id: generate_key_ownership_proof::SetId, pub authority_id: generate_key_ownership_proof::AuthorityId, @@ -2593,18 +2781,22 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CurrentSetId {} } } @@ -2617,18 +2809,20 @@ pub mod api { &self, extrinsics: types::trace_transaction::Extrinsics, transaction: types::trace_transaction::Transaction, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + header: types::trace_transaction::Header, + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::TraceTransaction, types::trace_transaction::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "DebugRuntimeApi", "trace_transaction", - types::TraceTransaction { extrinsics, transaction }, + types::TraceTransaction { extrinsics, transaction, header }, [ - 117u8, 202u8, 95u8, 62u8, 182u8, 199u8, 149u8, 3u8, 230u8, 44u8, 118u8, - 28u8, 84u8, 193u8, 141u8, 184u8, 43u8, 141u8, 4u8, 22u8, 8u8, 47u8, - 138u8, 161u8, 8u8, 30u8, 113u8, 73u8, 40u8, 205u8, 55u8, 115u8, + 66u8, 154u8, 238u8, 22u8, 63u8, 217u8, 55u8, 236u8, 121u8, 124u8, 89u8, + 238u8, 141u8, 160u8, 127u8, 66u8, 63u8, 199u8, 130u8, 45u8, 38u8, + 168u8, 83u8, 192u8, 225u8, 139u8, 208u8, 81u8, 59u8, 149u8, 237u8, + 145u8, ], ) } @@ -2636,18 +2830,58 @@ pub mod api { &self, extrinsics: types::trace_block::Extrinsics, known_transactions: types::trace_block::KnownTransactions, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + header: types::trace_block::Header, + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::TraceBlock, types::trace_block::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "DebugRuntimeApi", "trace_block", - types::TraceBlock { extrinsics, known_transactions }, + types::TraceBlock { extrinsics, known_transactions, header }, + [ + 88u8, 179u8, 165u8, 231u8, 224u8, 94u8, 42u8, 195u8, 68u8, 120u8, + 222u8, 66u8, 244u8, 167u8, 18u8, 117u8, 139u8, 77u8, 50u8, 237u8, + 118u8, 80u8, 53u8, 151u8, 108u8, 137u8, 229u8, 77u8, 110u8, 86u8, + 160u8, 167u8, + ], + ) + } + pub fn trace_call( + &self, + header: types::trace_call::Header, + from: types::trace_call::From, + to: types::trace_call::To, + data: types::trace_call::Data, + value: types::trace_call::Value, + gas_limit: types::trace_call::GasLimit, + max_fee_per_gas: types::trace_call::MaxFeePerGas, + max_priority_fee_per_gas: types::trace_call::MaxPriorityFeePerGas, + nonce: types::trace_call::Nonce, + access_list: types::trace_call::AccessList, + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< + types::TraceCall, + types::trace_call::output::Output, + > { + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( + "DebugRuntimeApi", + "trace_call", + types::TraceCall { + header, + from, + to, + data, + value, + gas_limit, + max_fee_per_gas, + max_priority_fee_per_gas, + nonce, + access_list, + }, [ - 172u8, 144u8, 67u8, 233u8, 35u8, 215u8, 74u8, 231u8, 41u8, 238u8, 66u8, - 229u8, 45u8, 96u8, 180u8, 252u8, 183u8, 204u8, 106u8, 195u8, 93u8, - 213u8, 225u8, 91u8, 122u8, 162u8, 179u8, 58u8, 73u8, 21u8, 35u8, 91u8, + 199u8, 191u8, 21u8, 6u8, 30u8, 112u8, 60u8, 71u8, 62u8, 191u8, 87u8, + 120u8, 135u8, 117u8, 21u8, 151u8, 74u8, 79u8, 220u8, 240u8, 250u8, + 149u8, 32u8, 96u8, 65u8, 174u8, 191u8, 184u8, 24u8, 152u8, 56u8, 218u8, ], ) } @@ -2656,8 +2890,10 @@ pub mod api { use super::runtime_types; pub mod trace_transaction { use super::runtime_types; - pub type Extrinsics = :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type Extrinsics = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub type Transaction = runtime_types::ethereum::transaction::TransactionV2; + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>; pub mod output { use super::runtime_types; pub type Output = @@ -2665,27 +2901,35 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct TraceTransaction { pub extrinsics: trace_transaction::Extrinsics, pub transaction: trace_transaction::Transaction, + pub header: trace_transaction::Header, } pub mod trace_block { use super::runtime_types; - pub type Extrinsics = :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; - pub type KnownTransactions = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>; + pub type Extrinsics = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type KnownTransactions = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >; + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>; pub mod output { use super::runtime_types; pub type Output = @@ -2693,21 +2937,84 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct TraceBlock { pub extrinsics: trace_block::Extrinsics, pub known_transactions: trace_block::KnownTransactions, + pub header: trace_block::Header, + } + pub mod trace_call { + use super::runtime_types; + pub type Header = + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>; + pub type From = ::subxt::ext::subxt_core::utils::H160; + pub type To = ::subxt::ext::subxt_core::utils::H160; + pub type Data = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Value = runtime_types::primitive_types::U256; + pub type GasLimit = runtime_types::primitive_types::U256; + pub type MaxFeePerGas = + ::core::option::Option; + pub type MaxPriorityFeePerGas = + ::core::option::Option; + pub type Nonce = ::core::option::Option; + pub type AccessList = ::core::option::Option< + ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, + )>, + >; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct TraceCall { + pub header: trace_call::Header, + pub from: trace_call::From, + pub to: trace_call::To, + pub data: trace_call::Data, + pub value: trace_call::Value, + pub gas_limit: trace_call::GasLimit, + pub max_fee_per_gas: trace_call::MaxFeePerGas, + pub max_priority_fee_per_gas: trace_call::MaxPriorityFeePerGas, + pub nonce: trace_call::Nonce, + pub access_list: trace_call::AccessList, } } } @@ -2720,11 +3027,11 @@ pub mod api { &self, xt_ready: types::extrinsic_filter::XtReady, xt_future: types::extrinsic_filter::XtFuture, - ) -> ::subxt_core::runtime_api::payload::StaticPayload< + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< types::ExtrinsicFilter, types::extrinsic_filter::output::Output, > { - ::subxt_core::runtime_api::payload::StaticPayload::new_static( + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( "TxPoolRuntimeApi", "extrinsic_filter", types::ExtrinsicFilter { xt_ready, xt_future }, @@ -2740,32 +3047,219 @@ pub mod api { use super::runtime_types; pub mod extrinsic_filter { use super::runtime_types; - pub type XtReady = :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; - pub type XtFuture = :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type XtReady = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; + pub type XtFuture = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super::runtime_types; pub type Output = runtime_types::rpc_primitives_txpool::TxPoolResponse; } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ExtrinsicFilter { pub xt_ready: extrinsic_filter::XtReady, pub xt_future: extrinsic_filter::XtFuture, } } } + pub mod genesis_builder { + use super::root_mod; + use super::runtime_types; + #[doc = " API to interact with RuntimeGenesisConfig for the runtime"] + pub struct GenesisBuilder; + impl GenesisBuilder { + #[doc = " Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the"] + #[doc = " storage."] + #[doc = ""] + #[doc = " In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and"] + #[doc = " puts it into the storage. If the provided JSON blob is incorrect or incomplete or the"] + #[doc = " deserialization fails, an error is returned."] + #[doc = ""] + #[doc = " Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no"] + #[doc = " defaults will be used."] + pub fn build_state( + &self, + json: types::build_state::Json, + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< + types::BuildState, + types::build_state::output::Output, + > { + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( + "GenesisBuilder", + "build_state", + types::BuildState { json }, + [ + 203u8, 233u8, 104u8, 116u8, 111u8, 131u8, 201u8, 235u8, 117u8, 116u8, + 140u8, 185u8, 93u8, 25u8, 155u8, 210u8, 56u8, 49u8, 23u8, 32u8, 253u8, + 92u8, 149u8, 241u8, 85u8, 245u8, 137u8, 45u8, 209u8, 189u8, 81u8, 2u8, + ], + ) + } + #[doc = " Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by"] + #[doc = " `id`."] + #[doc = ""] + #[doc = " If `id` is `None` the function returns JSON blob representation of the default"] + #[doc = " `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default"] + #[doc = " `RuntimeGenesisConfig`."] + #[doc = ""] + #[doc = " Otherwise function returns a JSON representation of the built-in, named"] + #[doc = " `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not"] + #[doc = " exists. Returned `Vec` contains bytes of JSON blob (patch) which comprises a list of"] + #[doc = " (potentially nested) key-value pairs that are intended for customizing the default"] + #[doc = " runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation"] + #[doc = " of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can"] + #[doc = " be used in `build_state` method."] + pub fn get_preset( + &self, + id: types::get_preset::Id, + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< + types::GetPreset, + types::get_preset::output::Output, + > { + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( + "GenesisBuilder", + "get_preset", + types::GetPreset { id }, + [ + 43u8, 153u8, 23u8, 52u8, 113u8, 161u8, 227u8, 122u8, 169u8, 135u8, + 119u8, 8u8, 128u8, 33u8, 143u8, 235u8, 13u8, 173u8, 58u8, 121u8, 178u8, + 223u8, 66u8, 217u8, 22u8, 244u8, 168u8, 113u8, 202u8, 186u8, 241u8, + 124u8, + ], + ) + } + #[doc = " Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets."] + #[doc = ""] + #[doc = " The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If"] + #[doc = " no named presets are provided by the runtime the list is empty."] + pub fn preset_names( + &self, + ) -> ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload< + types::PresetNames, + types::preset_names::output::Output, + > { + ::subxt::ext::subxt_core::runtime_api::payload::StaticPayload::new_static( + "GenesisBuilder", + "preset_names", + types::PresetNames {}, + [ + 150u8, 117u8, 54u8, 129u8, 221u8, 130u8, 186u8, 71u8, 13u8, 140u8, + 77u8, 180u8, 141u8, 37u8, 22u8, 219u8, 149u8, 218u8, 186u8, 206u8, + 80u8, 42u8, 165u8, 41u8, 99u8, 184u8, 73u8, 37u8, 125u8, 188u8, 167u8, + 122u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod build_state { + use super::runtime_types; + pub type Json = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result< + (), + ::subxt::ext::subxt_core::alloc::string::String, + >; + } + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct BuildState { + pub json: build_state::Json, + } + pub mod get_preset { + use super::runtime_types; + pub type Id = + ::core::option::Option<::subxt::ext::subxt_core::alloc::string::String>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + >; + } + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct GetPreset { + pub id: get_preset::Id, + } + pub mod preset_names { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::string::String, + >; + } + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct PresetNames {} + } + } } pub fn custom() -> CustomValuesApi { CustomValuesApi @@ -2866,9 +3360,6 @@ pub mod api { pub fn lst(&self) -> lst::constants::ConstantsApi { lst::constants::ConstantsApi } - pub fn sygma_bridge(&self) -> sygma_bridge::constants::ConstantsApi { - sygma_bridge::constants::ConstantsApi - } } pub struct StorageApi; impl StorageApi { @@ -2999,23 +3490,6 @@ pub mod api { pub fn lst(&self) -> lst::storage::StorageApi { lst::storage::StorageApi } - pub fn sygma_access_segregator(&self) -> sygma_access_segregator::storage::StorageApi { - sygma_access_segregator::storage::StorageApi - } - pub fn sygma_basic_fee_handler(&self) -> sygma_basic_fee_handler::storage::StorageApi { - sygma_basic_fee_handler::storage::StorageApi - } - pub fn sygma_fee_handler_router(&self) -> sygma_fee_handler_router::storage::StorageApi { - sygma_fee_handler_router::storage::StorageApi - } - pub fn sygma_percentage_fee_handler( - &self, - ) -> sygma_percentage_fee_handler::storage::StorageApi { - sygma_percentage_fee_handler::storage::StorageApi - } - pub fn sygma_bridge(&self) -> sygma_bridge::storage::StorageApi { - sygma_bridge::storage::StorageApi - } } pub struct TransactionApi; impl TransactionApi { @@ -3132,26 +3606,9 @@ pub mod api { pub fn lst(&self) -> lst::calls::TransactionApi { lst::calls::TransactionApi } - pub fn sygma_access_segregator(&self) -> sygma_access_segregator::calls::TransactionApi { - sygma_access_segregator::calls::TransactionApi - } - pub fn sygma_basic_fee_handler(&self) -> sygma_basic_fee_handler::calls::TransactionApi { - sygma_basic_fee_handler::calls::TransactionApi - } - pub fn sygma_fee_handler_router(&self) -> sygma_fee_handler_router::calls::TransactionApi { - sygma_fee_handler_router::calls::TransactionApi - } - pub fn sygma_percentage_fee_handler( - &self, - ) -> sygma_percentage_fee_handler::calls::TransactionApi { - sygma_percentage_fee_handler::calls::TransactionApi - } - pub fn sygma_bridge(&self) -> sygma_bridge::calls::TransactionApi { - sygma_bridge::calls::TransactionApi - } } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] - pub fn is_codegen_valid_for(metadata: &::subxt_core::Metadata) -> bool { + pub fn is_codegen_valid_for(metadata: &::subxt::ext::subxt_core::Metadata) -> bool { let runtime_metadata_hash = metadata .hasher() .only_these_pallets(&PALLETS) @@ -3159,9 +3616,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 140u8, 63u8, 94u8, 65u8, 105u8, 253u8, 27u8, 204u8, 77u8, 136u8, 221u8, 69u8, 9u8, - 80u8, 2u8, 136u8, 200u8, 12u8, 92u8, 11u8, 241u8, 130u8, 22u8, 35u8, 193u8, 190u8, - 107u8, 200u8, 224u8, 12u8, 10u8, 134u8, + 78u8, 2u8, 187u8, 182u8, 241u8, 193u8, 81u8, 105u8, 198u8, 100u8, 242u8, 254u8, + 77u8, 220u8, 181u8, 32u8, 210u8, 198u8, 85u8, 120u8, 153u8, 80u8, 3u8, 38u8, 237u8, + 2u8, 147u8, 118u8, 154u8, 254u8, 1u8, 204u8, ] } pub mod system { @@ -3178,44 +3635,55 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remark`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "Can be executed by every `origin`."] pub struct Remark { pub remark: remark::Remark, } pub mod remark { use super::runtime_types; - pub type Remark = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Remark = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for Remark { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Remark { const PALLET: &'static str = "System"; const CALL: &'static str = "remark"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_heap_pages`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the number of pages in the WebAssembly environment's heap."] pub struct SetHeapPages { pub pages: set_heap_pages::Pages, } @@ -3223,251 +3691,318 @@ pub mod api { use super::runtime_types; pub type Pages = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for SetHeapPages { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetHeapPages { const PALLET: &'static str = "System"; const CALL: &'static str = "set_heap_pages"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_code`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the new runtime code."] pub struct SetCode { pub code: set_code::Code, } pub mod set_code { use super::runtime_types; - pub type Code = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Code = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCode { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCode { const PALLET: &'static str = "System"; const CALL: &'static str = "set_code"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_code_without_checks`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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!"] pub struct SetCodeWithoutChecks { pub code: set_code_without_checks::Code, } pub mod set_code_without_checks { use super::runtime_types; - pub type Code = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Code = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCodeWithoutChecks { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCodeWithoutChecks { const PALLET: &'static str = "System"; const CALL: &'static str = "set_code_without_checks"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_storage`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set some items of storage."] pub struct SetStorage { pub items: set_storage::Items, } pub mod set_storage { use super::runtime_types; - pub type Items = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + pub type 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>, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetStorage { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetStorage { const PALLET: &'static str = "System"; const CALL: &'static str = "set_storage"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::kill_storage`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Kill some items from storage."] pub struct KillStorage { pub keys: kill_storage::Keys, } pub mod kill_storage { use super::runtime_types; - pub type Keys = ::subxt_core::alloc::vec::Vec< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + pub type Keys = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, >; } - impl ::subxt_core::blocks::StaticExtrinsic for KillStorage { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for KillStorage { const PALLET: &'static str = "System"; const CALL: &'static str = "kill_storage"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::kill_prefix`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Kill all storage items with a key that starts with the given prefix."] + #[doc = ""] + #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] + #[doc = "the prefix we are removing to accurately calculate the weight of this function."] pub struct KillPrefix { pub prefix: kill_prefix::Prefix, pub subkeys: kill_prefix::Subkeys, } pub mod kill_prefix { use super::runtime_types; - pub type Prefix = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Prefix = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Subkeys = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for KillPrefix { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for KillPrefix { const PALLET: &'static str = "System"; const CALL: &'static str = "kill_prefix"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remark_with_event`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Make some on-chain remark and emit event."] pub struct RemarkWithEvent { pub remark: remark_with_event::Remark, } pub mod remark_with_event { use super::runtime_types; - pub type Remark = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Remark = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for RemarkWithEvent { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemarkWithEvent { const PALLET: &'static str = "System"; const CALL: &'static str = "remark_with_event"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::authorize_upgrade`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct AuthorizeUpgrade { pub code_hash: authorize_upgrade::CodeHash, } pub mod authorize_upgrade { use super::runtime_types; - pub type CodeHash = ::subxt_core::utils::H256; + pub type CodeHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for AuthorizeUpgrade { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AuthorizeUpgrade { const PALLET: &'static str = "System"; const CALL: &'static str = "authorize_upgrade"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::authorize_upgrade_without_checks`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct AuthorizeUpgradeWithoutChecks { pub code_hash: authorize_upgrade_without_checks::CodeHash, } pub mod authorize_upgrade_without_checks { use super::runtime_types; - pub type CodeHash = ::subxt_core::utils::H256; + pub type CodeHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for AuthorizeUpgradeWithoutChecks { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AuthorizeUpgradeWithoutChecks { const PALLET: &'static str = "System"; const CALL: &'static str = "authorize_upgrade_without_checks"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::apply_authorized_upgrade`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct ApplyAuthorizedUpgrade { pub code: apply_authorized_upgrade::Code, } pub mod apply_authorized_upgrade { use super::runtime_types; - pub type Code = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Code = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for ApplyAuthorizedUpgrade { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ApplyAuthorizedUpgrade { const PALLET: &'static str = "System"; const CALL: &'static str = "apply_authorized_upgrade"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::remark`]."] + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "Can be executed by every `origin`."] pub fn remark( &self, remark: types::remark::Remark, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "remark", types::Remark { remark }, @@ -3479,12 +4014,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_heap_pages`]."] + #[doc = "Set the number of pages in the WebAssembly environment's heap."] pub fn set_heap_pages( &self, pages: types::set_heap_pages::Pages, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "set_heap_pages", types::SetHeapPages { pages }, @@ -3496,12 +4031,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_code`]."] + #[doc = "Set the new runtime code."] pub fn set_code( &self, code: types::set_code::Code, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "set_code", types::SetCode { code }, @@ -3512,12 +4047,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_code_without_checks`]."] + #[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!"] pub fn set_code_without_checks( &self, code: types::set_code_without_checks::Code, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "set_code_without_checks", types::SetCodeWithoutChecks { code }, @@ -3529,12 +4068,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_storage`]."] + #[doc = "Set some items of storage."] pub fn set_storage( &self, items: types::set_storage::Items, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "set_storage", types::SetStorage { items }, @@ -3546,12 +4085,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kill_storage`]."] + #[doc = "Kill some items from storage."] pub fn kill_storage( &self, keys: types::kill_storage::Keys, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "kill_storage", types::KillStorage { keys }, @@ -3563,13 +4102,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kill_prefix`]."] + #[doc = "Kill all storage items with a key that starts with the given prefix."] + #[doc = ""] + #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] + #[doc = "the prefix we are removing to accurately calculate the weight of this function."] pub fn kill_prefix( &self, prefix: types::kill_prefix::Prefix, subkeys: types::kill_prefix::Subkeys, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "kill_prefix", types::KillPrefix { prefix, subkeys }, @@ -3581,12 +4123,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remark_with_event`]."] + #[doc = "Make some on-chain remark and emit event."] pub fn remark_with_event( &self, remark: types::remark_with_event::Remark, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "remark_with_event", types::RemarkWithEvent { remark }, @@ -3597,12 +4139,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::authorize_upgrade`]."] + #[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."] pub fn authorize_upgrade( &self, code_hash: types::authorize_upgrade::CodeHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "authorize_upgrade", types::AuthorizeUpgrade { code_hash }, @@ -3614,13 +4159,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::authorize_upgrade_without_checks`]."] + #[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."] pub fn authorize_upgrade_without_checks( &self, code_hash: types::authorize_upgrade_without_checks::CodeHash, - ) -> ::subxt_core::tx::payload::StaticPayload - { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::AuthorizeUpgradeWithoutChecks, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "authorize_upgrade_without_checks", types::AuthorizeUpgradeWithoutChecks { code_hash }, @@ -3632,12 +4185,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::apply_authorized_upgrade`]."] + #[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."] pub fn apply_authorized_upgrade( &self, code: types::apply_authorized_upgrade::Code, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ApplyAuthorizedUpgrade, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "System", "apply_authorized_upgrade", types::ApplyAuthorizedUpgrade { code }, @@ -3655,18 +4218,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info: extrinsic_success::DispatchInfo, @@ -3675,23 +4238,23 @@ pub mod api { use super::runtime_types; pub type DispatchInfo = runtime_types::frame_support::dispatch::DispatchInfo; } - impl ::subxt_core::events::StaticEvent for ExtrinsicSuccess { + impl ::subxt::ext::subxt_core::events::StaticEvent for ExtrinsicSuccess { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicSuccess"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error: extrinsic_failed::DispatchError, @@ -3702,92 +4265,92 @@ pub mod api { pub type DispatchError = runtime_types::sp_runtime::DispatchError; pub type DispatchInfo = runtime_types::frame_support::dispatch::DispatchInfo; } - impl ::subxt_core::events::StaticEvent for ExtrinsicFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for ExtrinsicFailed { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicFailed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "`:code` was updated."] pub struct CodeUpdated; - impl ::subxt_core::events::StaticEvent for CodeUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for CodeUpdated { const PALLET: &'static str = "System"; const EVENT: &'static str = "CodeUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new account was created."] pub struct NewAccount { pub account: new_account::Account, } pub mod new_account { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for NewAccount { + impl ::subxt::ext::subxt_core::events::StaticEvent for NewAccount { const PALLET: &'static str = "System"; const EVENT: &'static str = "NewAccount"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account was reaped."] pub struct KilledAccount { pub account: killed_account::Account, } pub mod killed_account { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for KilledAccount { + impl ::subxt::ext::subxt_core::events::StaticEvent for KilledAccount { const PALLET: &'static str = "System"; const EVENT: &'static str = "KilledAccount"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "On on-chain remark happened."] pub struct Remarked { pub sender: remarked::Sender, @@ -3795,26 +4358,26 @@ pub mod api { } pub mod remarked { use super::runtime_types; - pub type Sender = ::subxt_core::utils::AccountId32; - pub type Hash = ::subxt_core::utils::H256; + pub type Sender = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Remarked { + impl ::subxt::ext::subxt_core::events::StaticEvent for Remarked { const PALLET: &'static str = "System"; const EVENT: &'static str = "Remarked"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An upgrade was authorized."] pub struct UpgradeAuthorized { pub code_hash: upgrade_authorized::CodeHash, @@ -3822,10 +4385,10 @@ pub mod api { } pub mod upgrade_authorized { use super::runtime_types; - pub type CodeHash = ::subxt_core::utils::H256; + pub type CodeHash = ::subxt::ext::subxt_core::utils::H256; pub type CheckVersion = ::core::primitive::bool; } - impl ::subxt_core::events::StaticEvent for UpgradeAuthorized { + impl ::subxt::ext::subxt_core::events::StaticEvent for UpgradeAuthorized { const PALLET: &'static str = "System"; const EVENT: &'static str = "UpgradeAuthorized"; } @@ -3840,12 +4403,16 @@ pub mod api { ::core::primitive::u32, runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod extrinsic_count { use super::runtime_types; pub type ExtrinsicCount = ::core::primitive::u32; } + pub mod inherents_applied { + use super::runtime_types; + pub type InherentsApplied = ::core::primitive::bool; + } pub mod block_weight { use super::runtime_types; pub type BlockWeight = runtime_types::frame_support::dispatch::PerDispatchClass< @@ -3858,12 +4425,13 @@ pub mod api { } pub mod block_hash { use super::runtime_types; - pub type BlockHash = ::subxt_core::utils::H256; + pub type BlockHash = ::subxt::ext::subxt_core::utils::H256; pub type Param0 = ::core::primitive::u64; } pub mod extrinsic_data { use super::runtime_types; - pub type ExtrinsicData = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type ExtrinsicData = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Param0 = ::core::primitive::u32; } pub mod number { @@ -3872,7 +4440,7 @@ pub mod api { } pub mod parent_hash { use super::runtime_types; - pub type ParentHash = ::subxt_core::utils::H256; + pub type ParentHash = ::subxt::ext::subxt_core::utils::H256; } pub mod digest { use super::runtime_types; @@ -3880,10 +4448,10 @@ pub mod api { } pub mod events { use super::runtime_types; - pub type Events = ::subxt_core::alloc::vec::Vec< + pub type Events = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::frame_system::EventRecord< runtime_types::tangle_testnet_runtime::RuntimeEvent, - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, >, >; } @@ -3893,11 +4461,11 @@ pub mod api { } pub mod event_topics { use super::runtime_types; - pub type EventTopics = ::subxt_core::alloc::vec::Vec<( + pub type EventTopics = ::subxt::ext::subxt_core::alloc::vec::Vec<( ::core::primitive::u64, ::core::primitive::u32, )>; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod last_runtime_upgrade { use super::runtime_types; @@ -3927,14 +4495,14 @@ pub mod api { #[doc = " The full account information for a particular account ID."] pub fn account_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::account::Account, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "Account", (), @@ -3949,17 +4517,21 @@ pub mod api { pub fn account( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::account::Param0, + >, types::account::Account, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "Account", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 14u8, 233u8, 115u8, 214u8, 0u8, 109u8, 222u8, 121u8, 162u8, 65u8, 60u8, 175u8, 209u8, 79u8, 222u8, 124u8, 22u8, 235u8, 138u8, 176u8, 133u8, @@ -3970,14 +4542,14 @@ pub mod api { #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::extrinsic_count::ExtrinsicCount, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "ExtrinsicCount", (), @@ -3989,17 +4561,38 @@ pub mod api { ], ) } + #[doc = " Whether all inherents have been applied."] + pub fn inherents_applied( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::inherents_applied::InherentsApplied, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "System", + "InherentsApplied", + (), + [ + 132u8, 249u8, 142u8, 252u8, 8u8, 103u8, 80u8, 120u8, 50u8, 6u8, 188u8, + 223u8, 101u8, 55u8, 165u8, 189u8, 172u8, 249u8, 165u8, 230u8, 183u8, + 109u8, 34u8, 65u8, 185u8, 150u8, 29u8, 8u8, 186u8, 129u8, 135u8, 239u8, + ], + ) + } #[doc = " The current weight for the block."] pub fn block_weight( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::block_weight::BlockWeight, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "BlockWeight", (), @@ -4013,14 +4606,14 @@ pub mod api { #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::all_extrinsics_len::AllExtrinsicsLen, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "AllExtrinsicsLen", (), @@ -4035,14 +4628,14 @@ pub mod api { #[doc = " Map of block numbers to block hashes."] pub fn block_hash_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::block_hash::BlockHash, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "BlockHash", (), @@ -4057,17 +4650,21 @@ pub mod api { pub fn block_hash( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::block_hash::Param0, + >, types::block_hash::BlockHash, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "BlockHash", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 231u8, 203u8, 53u8, 62u8, 34u8, 38u8, 27u8, 62u8, 10u8, 209u8, 96u8, 2u8, 207u8, 136u8, 240u8, 67u8, 183u8, 74u8, 239u8, 218u8, 18u8, 200u8, @@ -4078,14 +4675,14 @@ pub mod api { #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::extrinsic_data::ExtrinsicData, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "ExtrinsicData", (), @@ -4100,17 +4697,21 @@ pub mod api { pub fn extrinsic_data( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::extrinsic_data::Param0, + >, types::extrinsic_data::ExtrinsicData, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "ExtrinsicData", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8, 220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8, @@ -4121,14 +4722,14 @@ pub mod api { #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::number::Number, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "Number", (), @@ -4142,14 +4743,14 @@ pub mod api { #[doc = " Hash of the previous block."] pub fn parent_hash( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::parent_hash::ParentHash, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "ParentHash", (), @@ -4163,14 +4764,14 @@ pub mod api { #[doc = " Digest of the current block, also part of the block header."] pub fn digest( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::digest::Digest, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "Digest", (), @@ -4190,35 +4791,36 @@ pub mod api { #[doc = " just in case someone still reads them from within the runtime."] pub fn events( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::events::Events, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "Events", (), [ - 61u8, 27u8, 86u8, 156u8, 98u8, 182u8, 186u8, 248u8, 2u8, 205u8, 108u8, - 76u8, 90u8, 203u8, 178u8, 146u8, 106u8, 116u8, 26u8, 234u8, 29u8, - 171u8, 180u8, 222u8, 219u8, 166u8, 241u8, 0u8, 37u8, 98u8, 28u8, 249u8, + 56u8, 155u8, 250u8, 14u8, 148u8, 112u8, 165u8, 215u8, 135u8, 185u8, + 15u8, 119u8, 204u8, 11u8, 221u8, 230u8, 37u8, 78u8, 39u8, 82u8, 212u8, + 191u8, 108u8, 110u8, 109u8, 92u8, 60u8, 172u8, 192u8, 187u8, 27u8, + 212u8, ], ) } #[doc = " The number of events in the `Events` list."] pub fn event_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::event_count::EventCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "EventCount", (), @@ -4242,14 +4844,14 @@ pub mod api { #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::event_topics::EventTopics, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "EventTopics", (), @@ -4273,17 +4875,21 @@ pub mod api { pub fn event_topics( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::event_topics::Param0, + >, types::event_topics::EventTopics, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "EventTopics", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 190u8, 220u8, 184u8, 246u8, 192u8, 219u8, 183u8, 210u8, 216u8, 1u8, 239u8, 142u8, 255u8, 35u8, 134u8, 39u8, 114u8, 27u8, 34u8, 194u8, 90u8, @@ -4294,14 +4900,14 @@ pub mod api { #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::last_runtime_upgrade::LastRuntimeUpgrade, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "LastRuntimeUpgrade", (), @@ -4315,14 +4921,14 @@ pub mod api { #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::upgraded_to_u32_ref_count::UpgradedToU32RefCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "UpgradedToU32RefCount", (), @@ -4337,14 +4943,14 @@ pub mod api { #[doc = " (default) if not."] pub fn upgraded_to_triple_ref_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::upgraded_to_triple_ref_count::UpgradedToTripleRefCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "UpgradedToTripleRefCount", (), @@ -4359,14 +4965,14 @@ pub mod api { #[doc = " The execution phase of the block."] pub fn execution_phase( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::execution_phase::ExecutionPhase, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "ExecutionPhase", (), @@ -4380,14 +4986,14 @@ pub mod api { #[doc = " `Some` if a code upgrade has been authorized."] pub fn authorized_upgrade( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::authorized_upgrade::AuthorizedUpgrade, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "System", "AuthorizedUpgrade", (), @@ -4407,10 +5013,10 @@ pub mod api { #[doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::frame_system::limits::BlockWeights, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "System", "BlockWeights", [ @@ -4423,10 +5029,10 @@ pub mod api { #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::frame_system::limits::BlockLength, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "System", "BlockLength", [ @@ -4439,8 +5045,10 @@ pub mod api { #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "System", "BlockHashCount", [ @@ -4454,10 +5062,10 @@ pub mod api { #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_weights::RuntimeDbWeight, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "System", "DbWeight", [ @@ -4468,13 +5076,13 @@ pub mod api { ], ) } - #[doc = " Get the chain's current version."] + #[doc = " Get the chain's in-code version."] pub fn version( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_version::RuntimeVersion, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "System", "Version", [ @@ -4492,8 +5100,10 @@ pub mod api { #[doc = " an identifier of the chain."] pub fn ss58_prefix( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u16> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u16, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "System", "SS58Prefix", [ @@ -4518,19 +5128,41 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the current time."] + #[doc = ""] + #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] + #[doc = "phase, if this call hasn't been invoked by that time."] + #[doc = ""] + #[doc = "The timestamp should be greater than the previous one by the amount specified by"] + #[doc = "[`Config::MinimumPeriod`]."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] + #[doc = "that changing the complexity of this call could result exhausting the resources in a"] + #[doc = "block to execute any other calls."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] + #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] + #[doc = " `on_finalize`)"] + #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub struct Set { #[codec(compact)] pub now: set::Now, @@ -4539,19 +5171,37 @@ pub mod api { use super::runtime_types; pub type Now = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for Set { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Set { const PALLET: &'static str = "Timestamp"; const CALL: &'static str = "set"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::set`]."] + #[doc = "Set the current time."] + #[doc = ""] + #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] + #[doc = "phase, if this call hasn't been invoked by that time."] + #[doc = ""] + #[doc = "The timestamp should be greater than the previous one by the amount specified by"] + #[doc = "[`Config::MinimumPeriod`]."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] + #[doc = "that changing the complexity of this call could result exhausting the resources in a"] + #[doc = "block to execute any other calls."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] + #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] + #[doc = " `on_finalize`)"] + #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub fn set( &self, now: types::set::Now, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Timestamp", "set", types::Set { now }, @@ -4582,14 +5232,14 @@ pub mod api { #[doc = " The current time for the current block."] pub fn now( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::now::Now, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Timestamp", "Now", (), @@ -4606,14 +5256,14 @@ pub mod api { #[doc = " It is then checked at the end of each block execution in the `on_finalize` hook."] pub fn did_update( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::did_update::DidUpdate, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Timestamp", "DidUpdate", (), @@ -4639,8 +5289,10 @@ pub mod api { #[doc = " period on default settings."] pub fn minimum_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Timestamp", "MinimumPeriod", [ @@ -4668,46 +5320,59 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub struct Sudo { - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod sudo { use super::runtime_types; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for Sudo { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Sudo { const PALLET: &'static str = "Sudo"; const CALL: &'static str = "sudo"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Sudo user to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoUncheckedWeight { - pub call: ::subxt_core::alloc::boxed::Box, + pub call: + ::subxt::ext::subxt_core::alloc::boxed::Box, pub weight: sudo_unchecked_weight::Weight, } pub mod sudo_unchecked_weight { @@ -4715,132 +5380,158 @@ pub mod api { pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } - impl ::subxt_core::blocks::StaticExtrinsic for SudoUncheckedWeight { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SudoUncheckedWeight { const PALLET: &'static str = "Sudo"; const CALL: &'static str = "sudo_unchecked_weight"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_key`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] + #[doc = "key."] pub struct SetKey { pub new: set_key::New, } pub mod set_key { use super::runtime_types; - pub type New = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type New = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetKey { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetKey { const PALLET: &'static str = "Sudo"; const CALL: &'static str = "set_key"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_as`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] + #[doc = "a given account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoAs { pub who: sudo_as::Who, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod sudo_as { use super::runtime_types; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for SudoAs { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SudoAs { const PALLET: &'static str = "Sudo"; const CALL: &'static str = "sudo_as"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_key`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Permanently removes the sudo key."] + #[doc = ""] + #[doc = "**This cannot be un-done.**"] pub struct RemoveKey; - impl ::subxt_core::blocks::StaticExtrinsic for RemoveKey { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveKey { const PALLET: &'static str = "Sudo"; const CALL: &'static str = "remove_key"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::sudo`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub fn sudo( &self, call: types::sudo::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Sudo", "sudo", - types::Sudo { call: ::subxt_core::alloc::boxed::Box::new(call) }, + types::Sudo { + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), + }, [ - 195u8, 22u8, 192u8, 47u8, 224u8, 217u8, 169u8, 69u8, 72u8, 89u8, 210u8, - 89u8, 241u8, 216u8, 188u8, 136u8, 205u8, 194u8, 231u8, 109u8, 25u8, - 165u8, 8u8, 131u8, 123u8, 120u8, 238u8, 153u8, 110u8, 61u8, 3u8, 223u8, + 97u8, 149u8, 134u8, 14u8, 105u8, 194u8, 142u8, 205u8, 92u8, 201u8, + 159u8, 1u8, 18u8, 76u8, 93u8, 82u8, 63u8, 38u8, 60u8, 99u8, 137u8, + 183u8, 80u8, 186u8, 105u8, 182u8, 248u8, 10u8, 37u8, 94u8, 135u8, 32u8, ], ) } - #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Sudo user to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_unchecked_weight( &self, call: types::sudo_unchecked_weight::Call, weight: types::sudo_unchecked_weight::Weight, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Sudo", "sudo_unchecked_weight", types::SudoUncheckedWeight { - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), weight, }, [ - 96u8, 75u8, 138u8, 128u8, 26u8, 192u8, 191u8, 187u8, 238u8, 16u8, 23u8, - 177u8, 20u8, 210u8, 73u8, 2u8, 219u8, 121u8, 55u8, 158u8, 140u8, 244u8, - 160u8, 176u8, 136u8, 65u8, 146u8, 210u8, 4u8, 132u8, 193u8, 8u8, + 201u8, 36u8, 14u8, 189u8, 5u8, 185u8, 120u8, 197u8, 67u8, 183u8, 252u8, + 18u8, 70u8, 17u8, 90u8, 239u8, 93u8, 53u8, 47u8, 180u8, 33u8, 28u8, + 232u8, 71u8, 237u8, 40u8, 152u8, 104u8, 110u8, 243u8, 169u8, 146u8, ], ) } - #[doc = "See [`Pallet::set_key`]."] + #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] + #[doc = "key."] pub fn set_key( &self, new: types::set_key::New, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Sudo", "set_key", types::SetKey { new }, @@ -4852,28 +5543,37 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::sudo_as`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] + #[doc = "a given account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_as( &self, who: types::sudo_as::Who, call: types::sudo_as::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Sudo", "sudo_as", - types::SudoAs { who, call: ::subxt_core::alloc::boxed::Box::new(call) }, + types::SudoAs { + who, + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), + }, [ - 40u8, 191u8, 121u8, 119u8, 18u8, 35u8, 14u8, 153u8, 129u8, 48u8, 15u8, - 198u8, 99u8, 13u8, 2u8, 99u8, 12u8, 151u8, 144u8, 232u8, 64u8, 242u8, - 94u8, 103u8, 24u8, 135u8, 4u8, 104u8, 168u8, 203u8, 36u8, 139u8, + 173u8, 79u8, 147u8, 180u8, 80u8, 18u8, 209u8, 195u8, 172u8, 97u8, + 172u8, 184u8, 252u8, 148u8, 177u8, 36u8, 96u8, 20u8, 255u8, 193u8, + 138u8, 67u8, 80u8, 124u8, 153u8, 7u8, 221u8, 87u8, 51u8, 216u8, 214u8, + 46u8, ], ) } - #[doc = "See [`Pallet::remove_key`]."] + #[doc = "Permanently removes the sudo key."] + #[doc = ""] + #[doc = "**This cannot be un-done.**"] pub fn remove_key( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Sudo", "remove_key", types::RemoveKey {}, @@ -4892,18 +5592,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A sudo call just took place."] pub struct Sudid { pub sudo_result: sudid::SudoResult, @@ -4913,23 +5613,23 @@ pub mod api { pub type SudoResult = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for Sudid { + impl ::subxt::ext::subxt_core::events::StaticEvent for Sudid { const PALLET: &'static str = "Sudo"; const EVENT: &'static str = "Sudid"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The sudo key has been updated."] pub struct KeyChanged { pub old: key_changed::Old, @@ -4937,45 +5637,45 @@ pub mod api { } pub mod key_changed { use super::runtime_types; - pub type Old = ::core::option::Option<::subxt_core::utils::AccountId32>; - pub type New = ::subxt_core::utils::AccountId32; + pub type Old = ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + pub type New = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for KeyChanged { + impl ::subxt::ext::subxt_core::events::StaticEvent for KeyChanged { const PALLET: &'static str = "Sudo"; const EVENT: &'static str = "KeyChanged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The key was permanently removed."] pub struct KeyRemoved; - impl ::subxt_core::events::StaticEvent for KeyRemoved { + impl ::subxt::ext::subxt_core::events::StaticEvent for KeyRemoved { const PALLET: &'static str = "Sudo"; const EVENT: &'static str = "KeyRemoved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] pub struct SudoAsDone { pub sudo_result: sudo_as_done::SudoResult, @@ -4985,7 +5685,7 @@ pub mod api { pub type SudoResult = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for SudoAsDone { + impl ::subxt::ext::subxt_core::events::StaticEvent for SudoAsDone { const PALLET: &'static str = "Sudo"; const EVENT: &'static str = "SudoAsDone"; } @@ -4996,7 +5696,7 @@ pub mod api { use super::runtime_types; pub mod key { use super::runtime_types; - pub type Key = ::subxt_core::utils::AccountId32; + pub type Key = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -5004,14 +5704,14 @@ pub mod api { #[doc = " The `AccountId` of the sudo key."] pub fn key( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::key::Key, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Sudo", "Key", (), @@ -5036,7 +5736,7 @@ pub mod api { use super::runtime_types; pub type RandomMaterial = runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, >; } } @@ -5047,14 +5747,14 @@ pub mod api { #[doc = " the oldest hash."] pub fn random_material( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::random_material::RandomMaterial, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "RandomnessCollectiveFlip", "RandomMaterial", (), @@ -5083,19 +5783,41 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Issue a new class of fungible assets from a public origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially and its owner is the origin."] + #[doc = ""] + #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] + #[doc = ""] + #[doc = "Funds of sender are reserved by `AssetDeposit`."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."] + #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] + #[doc = "member of the asset class's admin team."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `Created` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct Create { #[codec(compact)] pub id: create::Id, @@ -5105,30 +5827,52 @@ pub mod api { pub mod create { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Admin = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Admin = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type MinBalance = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Create { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "Assets"; const CALL: &'static str = "create"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_create`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Issue a new class of fungible assets from a privileged origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin`."] + #[doc = ""] + #[doc = "Unlike `create`, no funds are reserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."] + #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] + #[doc = "over this asset, but may later change and configure the permissions using"] + #[doc = "`transfer_ownership` and `set_team`."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `ForceCreated` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ForceCreate { #[codec(compact)] pub id: force_create::Id, @@ -5140,31 +5884,45 @@ pub mod api { pub mod force_create { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type IsSufficient = ::core::primitive::bool; pub type MinBalance = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceCreate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceCreate { const PALLET: &'static str = "Assets"; const CALL: &'static str = "force_create"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::start_destroy`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Start the process of destroying a fungible asset class."] + #[doc = ""] + #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] + #[doc = "destruction of an asset class."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "The asset class must be frozen before calling `start_destroy`."] pub struct StartDestroy { #[codec(compact)] pub id: start_destroy::Id, @@ -5173,24 +5931,39 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for StartDestroy { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for StartDestroy { const PALLET: &'static str = "Assets"; const CALL: &'static str = "start_destroy"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::destroy_accounts`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Destroy all accounts associated with a given asset."] + #[doc = ""] + #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedAccounts` event."] pub struct DestroyAccounts { #[codec(compact)] pub id: destroy_accounts::Id, @@ -5199,24 +5972,39 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for DestroyAccounts { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DestroyAccounts { const PALLET: &'static str = "Assets"; const CALL: &'static str = "destroy_accounts"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::destroy_approvals`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] + #[doc = ""] + #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedApprovals` event."] pub struct DestroyApprovals { #[codec(compact)] pub id: destroy_approvals::Id, @@ -5225,24 +6013,37 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for DestroyApprovals { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DestroyApprovals { const PALLET: &'static str = "Assets"; const CALL: &'static str = "destroy_approvals"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::finish_destroy`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Complete destroying asset and unreserve currency."] + #[doc = ""] + #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] + #[doc = "hand."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each successful call emits the `Event::Destroyed` event."] pub struct FinishDestroy { #[codec(compact)] pub id: finish_destroy::Id, @@ -5251,24 +6052,39 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for FinishDestroy { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for FinishDestroy { const PALLET: &'static str = "Assets"; const CALL: &'static str = "finish_destroy"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::mint`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Mint assets of a particular class."] + #[doc = ""] + #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount minted."] + #[doc = "- `beneficiary`: The account to be credited with the minted assets."] + #[doc = "- `amount`: The amount of the asset to be minted."] + #[doc = ""] + #[doc = "Emits `Issued` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] pub struct Mint { #[codec(compact)] pub id: mint::Id, @@ -5279,30 +6095,48 @@ pub mod api { pub mod mint { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Beneficiary = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Mint { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Mint { const PALLET: &'static str = "Assets"; const CALL: &'static str = "mint"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::burn`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] + #[doc = ""] + #[doc = "Bails with `NoAccount` if the `who` is already dead."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount burned."] + #[doc = "- `who`: The account to be debited from."] + #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] + #[doc = ""] + #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] + #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] pub struct Burn { #[codec(compact)] pub id: burn::Id, @@ -5313,30 +6147,51 @@ pub mod api { pub mod burn { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Burn { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Burn { const PALLET: &'static str = "Assets"; const CALL: &'static str = "burn"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Move some assets from the sender account to another."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] pub struct Transfer { #[codec(compact)] pub id: transfer::Id, @@ -5347,30 +6202,51 @@ pub mod api { pub mod transfer { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Transfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Transfer { const PALLET: &'static str = "Assets"; const CALL: &'static str = "transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_keep_alive`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] pub struct TransferKeepAlive { #[codec(compact)] pub id: transfer_keep_alive::Id, @@ -5381,30 +6257,52 @@ pub mod api { pub mod transfer_keep_alive { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for TransferKeepAlive { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferKeepAlive { const PALLET: &'static str = "Assets"; const CALL: &'static str = "transfer_keep_alive"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Move some assets from one account to another."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `source`: The account to be debited."] + #[doc = "- `dest`: The account to be credited."] + #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] + #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] + #[doc = "below the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] + #[doc = "`dest`."] pub struct ForceTransfer { #[codec(compact)] pub id: force_transfer::Id, @@ -5416,34 +6314,49 @@ pub mod api { pub mod force_transfer { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Source = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Source = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Dest = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceTransfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "Assets"; const CALL: &'static str = "force_transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::freeze`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`"] + #[doc = "must already exist as an entry in `Account`s of the asset. If you want to freeze an"] + #[doc = "account that does not have an entry, use `touch_other` first."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct Freeze { #[codec(compact)] pub id: freeze::Id, @@ -5452,29 +6365,42 @@ pub mod api { pub mod freeze { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Freeze { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Freeze { const PALLET: &'static str = "Assets"; const CALL: &'static str = "freeze"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::thaw`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allow unprivileged transfers to and from an account again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be unfrozen."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct Thaw { #[codec(compact)] pub id: thaw::Id, @@ -5483,29 +6409,41 @@ pub mod api { pub mod thaw { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Thaw { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Thaw { const PALLET: &'static str = "Assets"; const CALL: &'static str = "thaw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::freeze_asset`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Disallow further unprivileged transfers for the asset class."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct FreezeAsset { #[codec(compact)] pub id: freeze_asset::Id, @@ -5514,24 +6452,36 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for FreezeAsset { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for FreezeAsset { const PALLET: &'static str = "Assets"; const CALL: &'static str = "freeze_asset"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::thaw_asset`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allow unprivileged transfers for the asset again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be thawed."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ThawAsset { #[codec(compact)] pub id: thaw_asset::Id, @@ -5540,24 +6490,37 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ThawAsset { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ThawAsset { const PALLET: &'static str = "Assets"; const CALL: &'static str = "thaw_asset"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_ownership`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Change the Owner of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = ""] + #[doc = "Emits `OwnerChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct TransferOwnership { #[codec(compact)] pub id: transfer_ownership::Id, @@ -5566,29 +6529,44 @@ pub mod api { pub mod transfer_ownership { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for TransferOwnership { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferOwnership { const PALLET: &'static str = "Assets"; const CALL: &'static str = "transfer_ownership"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_team`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Change the Issuer, Admin and Freezer of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = ""] + #[doc = "Emits `TeamChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct SetTeam { #[codec(compact)] pub id: set_team::Id, @@ -5599,37 +6577,56 @@ pub mod api { pub mod set_team { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Issuer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Issuer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Admin = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Admin = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Freezer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Freezer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetTeam { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetTeam { const PALLET: &'static str = "Assets"; const CALL: &'static str = "set_team"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_metadata`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Funds of sender are reserved according to the formula:"] + #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] + #[doc = "account any already reserved funds."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct SetMetadata { #[codec(compact)] pub id: set_metadata::Id, @@ -5640,28 +6637,44 @@ pub mod api { pub mod set_metadata { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Name = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Symbol = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Name = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Symbol = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Decimals = ::core::primitive::u8; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMetadata { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Assets"; const CALL: &'static str = "set_metadata"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::clear_metadata`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Any deposit is freed for the asset owner."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ClearMetadata { #[codec(compact)] pub id: clear_metadata::Id, @@ -5670,24 +6683,41 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ClearMetadata { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClearMetadata { const PALLET: &'static str = "Assets"; const CALL: &'static str = "clear_metadata"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_set_metadata`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force the metadata for an asset to some value."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is left alone."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] pub struct ForceSetMetadata { #[codec(compact)] pub id: force_set_metadata::Id, @@ -5699,29 +6729,45 @@ pub mod api { pub mod force_set_metadata { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Name = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Symbol = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Name = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Symbol = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Decimals = ::core::primitive::u8; pub type IsFrozen = ::core::primitive::bool; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceSetMetadata { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceSetMetadata { const PALLET: &'static str = "Assets"; const CALL: &'static str = "force_set_metadata"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_clear_metadata`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is returned."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ForceClearMetadata { #[codec(compact)] pub id: force_clear_metadata::Id, @@ -5730,24 +6776,49 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceClearMetadata { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceClearMetadata { const PALLET: &'static str = "Assets"; const CALL: &'static str = "force_clear_metadata"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_asset_status`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Alter the attributes of a given asset."] + #[doc = ""] + #[doc = "Origin must be `ForceOrigin`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] + #[doc = "value to account for the state bloat associated with its balance storage. If set to"] + #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] + #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] + #[doc = "growth)."] + #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] + #[doc = "instructions."] + #[doc = ""] + #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ForceAssetStatus { #[codec(compact)] pub id: force_asset_status::Id, @@ -5763,44 +6834,67 @@ pub mod api { pub mod force_asset_status { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Issuer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Issuer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Admin = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Admin = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Freezer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Freezer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type MinBalance = ::core::primitive::u128; pub type IsSufficient = ::core::primitive::bool; pub type IsFrozen = ::core::primitive::bool; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceAssetStatus { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceAssetStatus { const PALLET: &'static str = "Assets"; const CALL: &'static str = "force_asset_status"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::approve_transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] + #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] + #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] + #[doc = "meet the right value."] + #[doc = ""] + #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] + #[doc = "making this call."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account to delegate permission to transfer asset."] + #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] + #[doc = "already an approval in place, then this acts additively."] + #[doc = ""] + #[doc = "Emits `ApprovedTransfer` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ApproveTransfer { #[codec(compact)] pub id: approve_transfer::Id, @@ -5811,30 +6905,46 @@ pub mod api { pub mod approve_transfer { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Delegate = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ApproveTransfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ApproveTransfer { const PALLET: &'static str = "Assets"; const CALL: &'static str = "approve_transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_approval`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place between signer and"] + #[doc = "`delegate`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct CancelApproval { #[codec(compact)] pub id: cancel_approval::Id, @@ -5843,29 +6953,45 @@ pub mod api { pub mod cancel_approval { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Delegate = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelApproval { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelApproval { const PALLET: &'static str = "Assets"; const CALL: &'static str = "cancel_approval"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_cancel_approval`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] + #[doc = "account of the asset `id`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ForceCancelApproval { #[codec(compact)] pub id: force_cancel_approval::Id, @@ -5875,33 +7001,54 @@ pub mod api { pub mod force_cancel_approval { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Delegate = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceCancelApproval { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceCancelApproval { const PALLET: &'static str = "Assets"; const CALL: &'static str = "force_cancel_approval"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_approved`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] + #[doc = "account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] + #[doc = "signer."] + #[doc = ""] + #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] + #[doc = "reserved by `approve_transfer` is unreserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] + #[doc = "from which the asset balance will be withdrawn."] + #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] + #[doc = "- `amount`: The amount of assets to transfer."] + #[doc = ""] + #[doc = "Emits `TransferredApproved` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct TransferApproved { #[codec(compact)] pub id: transfer_approved::Id, @@ -5913,34 +7060,46 @@ pub mod api { pub mod transfer_approved { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Owner = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Destination = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Destination = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for TransferApproved { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferApproved { const PALLET: &'static str = "Assets"; const CALL: &'static str = "transfer_approved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::touch`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Create an asset account for non-provider assets."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] pub struct Touch { #[codec(compact)] pub id: touch::Id, @@ -5949,24 +7108,37 @@ pub mod api { use super::runtime_types; pub type Id = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Touch { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Touch { const PALLET: &'static str = "Assets"; const CALL: &'static str = "touch"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::refund`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Return the deposit (if any) of an asset account or a consumer reference (if any) of an"] + #[doc = "account."] + #[doc = ""] + #[doc = "The origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for which the caller would like the deposit"] + #[doc = " refunded."] + #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] pub struct Refund { #[codec(compact)] pub id: refund::Id, @@ -5977,24 +7149,39 @@ pub mod api { pub type Id = ::core::primitive::u128; pub type AllowBurn = ::core::primitive::bool; } - impl ::subxt_core::blocks::StaticExtrinsic for Refund { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Refund { const PALLET: &'static str = "Assets"; const CALL: &'static str = "refund"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_min_balance`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Sets the minimum balance of an asset."] + #[doc = ""] + #[doc = "Only works if there aren't any accounts that are holding the asset or if"] + #[doc = "the new value of `min_balance` is less than the old one."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender has to be the Owner of the"] + #[doc = "asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `min_balance`: The new value of `min_balance`."] + #[doc = ""] + #[doc = "Emits `AssetMinBalanceChanged` event when successful."] pub struct SetMinBalance { #[codec(compact)] pub id: set_min_balance::Id, @@ -6005,24 +7192,37 @@ pub mod api { pub type Id = ::core::primitive::u128; pub type MinBalance = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMinBalance { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMinBalance { const PALLET: &'static str = "Assets"; const CALL: &'static str = "set_min_balance"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::touch_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Create an asset account for `who`."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account"] + #[doc = " must have sufficient funds for a deposit to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `who`: The account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] pub struct TouchOther { #[codec(compact)] pub id: touch_other::Id, @@ -6031,29 +7231,42 @@ pub mod api { pub mod touch_other { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for TouchOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TouchOther { const PALLET: &'static str = "Assets"; const CALL: &'static str = "touch_other"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::refund_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Return the deposit (if any) of a target asset account. Useful if you are the depositor."] + #[doc = ""] + #[doc = "The origin must be Signed and either the account owner, depositor, or asset `Admin`. In"] + #[doc = "order to burn a non-zero balance of the asset, the caller must be the account and should"] + #[doc = "use `refund`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for the account holding a deposit."] + #[doc = "- `who`: The account to refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] pub struct RefundOther { #[codec(compact)] pub id: refund_other::Id, @@ -6062,29 +7275,42 @@ pub mod api { pub mod refund_other { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for RefundOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RefundOther { const PALLET: &'static str = "Assets"; const CALL: &'static str = "refund_other"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::block`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Disallow further unprivileged transfers of an asset `id` to and from an account `who`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the account's asset."] + #[doc = "- `who`: The account to be unblocked."] + #[doc = ""] + #[doc = "Emits `Blocked`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct Block { #[codec(compact)] pub id: block::Id, @@ -6093,26 +7319,44 @@ pub mod api { pub mod block { use super::runtime_types; pub type Id = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Block { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Block { const PALLET: &'static str = "Assets"; const CALL: &'static str = "block"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::create`]."] + #[doc = "Issue a new class of fungible assets from a public origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially and its owner is the origin."] + #[doc = ""] + #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] + #[doc = ""] + #[doc = "Funds of sender are reserved by `AssetDeposit`."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."] + #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] + #[doc = "member of the asset class's admin team."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `Created` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn create( &self, id: types::create::Id, admin: types::create::Admin, min_balance: types::create::MinBalance, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "create", types::Create { id, admin, min_balance }, @@ -6123,15 +7367,33 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_create`]."] + #[doc = "Issue a new class of fungible assets from a privileged origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin`."] + #[doc = ""] + #[doc = "Unlike `create`, no funds are reserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."] + #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] + #[doc = "over this asset, but may later change and configure the permissions using"] + #[doc = "`transfer_ownership` and `set_team`."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `ForceCreated` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn force_create( &self, id: types::force_create::Id, owner: types::force_create::Owner, is_sufficient: types::force_create::IsSufficient, min_balance: types::force_create::MinBalance, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "force_create", types::ForceCreate { id, owner, is_sufficient, min_balance }, @@ -6142,12 +7404,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::start_destroy`]."] + #[doc = "Start the process of destroying a fungible asset class."] + #[doc = ""] + #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] + #[doc = "destruction of an asset class."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "The asset class must be frozen before calling `start_destroy`."] pub fn start_destroy( &self, id: types::start_destroy::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "start_destroy", types::StartDestroy { id }, @@ -6158,12 +7430,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::destroy_accounts`]."] + #[doc = "Destroy all accounts associated with a given asset."] + #[doc = ""] + #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedAccounts` event."] pub fn destroy_accounts( &self, id: types::destroy_accounts::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "destroy_accounts", types::DestroyAccounts { id }, @@ -6174,12 +7457,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::destroy_approvals`]."] + #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] + #[doc = ""] + #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedApprovals` event."] pub fn destroy_approvals( &self, id: types::destroy_approvals::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "destroy_approvals", types::DestroyApprovals { id }, @@ -6191,12 +7485,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::finish_destroy`]."] + #[doc = "Complete destroying asset and unreserve currency."] + #[doc = ""] + #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] + #[doc = "hand."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each successful call emits the `Event::Destroyed` event."] pub fn finish_destroy( &self, id: types::finish_destroy::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "finish_destroy", types::FinishDestroy { id }, @@ -6207,14 +7510,25 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::mint`]."] + #[doc = "Mint assets of a particular class."] + #[doc = ""] + #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount minted."] + #[doc = "- `beneficiary`: The account to be credited with the minted assets."] + #[doc = "- `amount`: The amount of the asset to be minted."] + #[doc = ""] + #[doc = "Emits `Issued` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] pub fn mint( &self, id: types::mint::Id, beneficiary: types::mint::Beneficiary, amount: types::mint::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "mint", types::Mint { id, beneficiary, amount }, @@ -6226,14 +7540,28 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::burn`]."] + #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] + #[doc = ""] + #[doc = "Bails with `NoAccount` if the `who` is already dead."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount burned."] + #[doc = "- `who`: The account to be debited from."] + #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] + #[doc = ""] + #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] + #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] pub fn burn( &self, id: types::burn::Id, who: types::burn::Who, amount: types::burn::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "burn", types::Burn { id, who, amount }, @@ -6245,14 +7573,31 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer`]."] + #[doc = "Move some assets from the sender account to another."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] pub fn transfer( &self, id: types::transfer::Id, target: types::transfer::Target, amount: types::transfer::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "transfer", types::Transfer { id, target, amount }, @@ -6264,14 +7609,32 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer_keep_alive`]."] + #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] pub fn transfer_keep_alive( &self, id: types::transfer_keep_alive::Id, target: types::transfer_keep_alive::Target, amount: types::transfer_keep_alive::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "transfer_keep_alive", types::TransferKeepAlive { id, target, amount }, @@ -6283,15 +7646,33 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Move some assets from one account to another."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `source`: The account to be debited."] + #[doc = "- `dest`: The account to be credited."] + #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] + #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] + #[doc = "below the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] + #[doc = "`dest`."] pub fn force_transfer( &self, id: types::force_transfer::Id, source: types::force_transfer::Source, dest: types::force_transfer::Dest, amount: types::force_transfer::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "force_transfer", types::ForceTransfer { id, source, dest, amount }, @@ -6302,13 +7683,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::freeze`]."] + #[doc = "Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`"] + #[doc = "must already exist as an entry in `Account`s of the asset. If you want to freeze an"] + #[doc = "account that does not have an entry, use `touch_other` first."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn freeze( &self, id: types::freeze::Id, who: types::freeze::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "freeze", types::Freeze { id, who }, @@ -6319,13 +7711,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::thaw`]."] + #[doc = "Allow unprivileged transfers to and from an account again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be unfrozen."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn thaw( &self, id: types::thaw::Id, who: types::thaw::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "thaw", types::Thaw { id, who }, @@ -6336,12 +7737,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::freeze_asset`]."] + #[doc = "Disallow further unprivileged transfers for the asset class."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn freeze_asset( &self, id: types::freeze_asset::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "freeze_asset", types::FreezeAsset { id }, @@ -6353,12 +7762,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::thaw_asset`]."] + #[doc = "Allow unprivileged transfers for the asset again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be thawed."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn thaw_asset( &self, id: types::thaw_asset::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "thaw_asset", types::ThawAsset { id }, @@ -6369,13 +7786,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer_ownership`]."] + #[doc = "Change the Owner of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = ""] + #[doc = "Emits `OwnerChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn transfer_ownership( &self, id: types::transfer_ownership::Id, owner: types::transfer_ownership::Owner, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "transfer_ownership", types::TransferOwnership { id, owner }, @@ -6386,15 +7813,26 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_team`]."] + #[doc = "Change the Issuer, Admin and Freezer of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = ""] + #[doc = "Emits `TeamChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn set_team( &self, id: types::set_team::Id, issuer: types::set_team::Issuer, admin: types::set_team::Admin, freezer: types::set_team::Freezer, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "set_team", types::SetTeam { id, issuer, admin, freezer }, @@ -6406,15 +7844,30 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_metadata`]."] + #[doc = "Set the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Funds of sender are reserved according to the formula:"] + #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] + #[doc = "account any already reserved funds."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn set_metadata( &self, id: types::set_metadata::Id, name: types::set_metadata::Name, symbol: types::set_metadata::Symbol, decimals: types::set_metadata::Decimals, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "set_metadata", types::SetMetadata { id, name, symbol, decimals }, @@ -6426,12 +7879,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clear_metadata`]."] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Any deposit is freed for the asset owner."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn clear_metadata( &self, id: types::clear_metadata::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "clear_metadata", types::ClearMetadata { id }, @@ -6442,7 +7905,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_set_metadata`]."] + #[doc = "Force the metadata for an asset to some value."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is left alone."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] pub fn force_set_metadata( &self, id: types::force_set_metadata::Id, @@ -6450,8 +7926,8 @@ pub mod api { symbol: types::force_set_metadata::Symbol, decimals: types::force_set_metadata::Decimals, is_frozen: types::force_set_metadata::IsFrozen, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "force_set_metadata", types::ForceSetMetadata { id, name, symbol, decimals, is_frozen }, @@ -6463,12 +7939,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_clear_metadata`]."] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is returned."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn force_clear_metadata( &self, id: types::force_clear_metadata::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "force_clear_metadata", types::ForceClearMetadata { id }, @@ -6480,7 +7967,28 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_asset_status`]."] + #[doc = "Alter the attributes of a given asset."] + #[doc = ""] + #[doc = "Origin must be `ForceOrigin`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] + #[doc = "value to account for the state bloat associated with its balance storage. If set to"] + #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] + #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] + #[doc = "growth)."] + #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] + #[doc = "instructions."] + #[doc = ""] + #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn force_asset_status( &self, id: types::force_asset_status::Id, @@ -6491,8 +7999,8 @@ pub mod api { min_balance: types::force_asset_status::MinBalance, is_sufficient: types::force_asset_status::IsSufficient, is_frozen: types::force_asset_status::IsFrozen, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "force_asset_status", types::ForceAssetStatus { @@ -6512,14 +8020,33 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::approve_transfer`]."] + #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] + #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] + #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] + #[doc = "meet the right value."] + #[doc = ""] + #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] + #[doc = "making this call."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account to delegate permission to transfer asset."] + #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] + #[doc = "already an approval in place, then this acts additively."] + #[doc = ""] + #[doc = "Emits `ApprovedTransfer` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn approve_transfer( &self, id: types::approve_transfer::Id, delegate: types::approve_transfer::Delegate, amount: types::approve_transfer::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "approve_transfer", types::ApproveTransfer { id, delegate, amount }, @@ -6530,13 +8057,25 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_approval`]."] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place between signer and"] + #[doc = "`delegate`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn cancel_approval( &self, id: types::cancel_approval::Id, delegate: types::cancel_approval::Delegate, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "cancel_approval", types::CancelApproval { id, delegate }, @@ -6547,14 +8086,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_cancel_approval`]."] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] + #[doc = "account of the asset `id`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn force_cancel_approval( &self, id: types::force_cancel_approval::Id, owner: types::force_cancel_approval::Owner, delegate: types::force_cancel_approval::Delegate, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "force_cancel_approval", types::ForceCancelApproval { id, owner, delegate }, @@ -6566,15 +8118,32 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer_approved`]."] + #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] + #[doc = "account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] + #[doc = "signer."] + #[doc = ""] + #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] + #[doc = "reserved by `approve_transfer` is unreserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] + #[doc = "from which the asset balance will be withdrawn."] + #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] + #[doc = "- `amount`: The amount of assets to transfer."] + #[doc = ""] + #[doc = "Emits `TransferredApproved` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn transfer_approved( &self, id: types::transfer_approved::Id, owner: types::transfer_approved::Owner, destination: types::transfer_approved::Destination, amount: types::transfer_approved::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "transfer_approved", types::TransferApproved { id, owner, destination, amount }, @@ -6585,12 +8154,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::touch`]."] + #[doc = "Create an asset account for non-provider assets."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] pub fn touch( &self, id: types::touch::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "touch", types::Touch { id }, @@ -6601,13 +8178,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::refund`]."] + #[doc = "Return the deposit (if any) of an asset account or a consumer reference (if any) of an"] + #[doc = "account."] + #[doc = ""] + #[doc = "The origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for which the caller would like the deposit"] + #[doc = " refunded."] + #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] pub fn refund( &self, id: types::refund::Id, allow_burn: types::refund::AllowBurn, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "refund", types::Refund { id, allow_burn }, @@ -6619,13 +8205,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_min_balance`]."] + #[doc = "Sets the minimum balance of an asset."] + #[doc = ""] + #[doc = "Only works if there aren't any accounts that are holding the asset or if"] + #[doc = "the new value of `min_balance` is less than the old one."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender has to be the Owner of the"] + #[doc = "asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `min_balance`: The new value of `min_balance`."] + #[doc = ""] + #[doc = "Emits `AssetMinBalanceChanged` event when successful."] pub fn set_min_balance( &self, id: types::set_min_balance::Id, min_balance: types::set_min_balance::MinBalance, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "set_min_balance", types::SetMinBalance { id, min_balance }, @@ -6636,13 +8233,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::touch_other`]."] + #[doc = "Create an asset account for `who`."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account"] + #[doc = " must have sufficient funds for a deposit to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `who`: The account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] pub fn touch_other( &self, id: types::touch_other::Id, who: types::touch_other::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "touch_other", types::TouchOther { id, who }, @@ -6653,13 +8259,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::refund_other`]."] + #[doc = "Return the deposit (if any) of a target asset account. Useful if you are the depositor."] + #[doc = ""] + #[doc = "The origin must be Signed and either the account owner, depositor, or asset `Admin`. In"] + #[doc = "order to burn a non-zero balance of the asset, the caller must be the account and should"] + #[doc = "use `refund`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for the account holding a deposit."] + #[doc = "- `who`: The account to refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] pub fn refund_other( &self, id: types::refund_other::Id, who: types::refund_other::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "refund_other", types::RefundOther { id, who }, @@ -6670,13 +8285,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::block`]."] + #[doc = "Disallow further unprivileged transfers of an asset `id` to and from an account `who`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the account's asset."] + #[doc = "- `who`: The account to be unblocked."] + #[doc = ""] + #[doc = "Emits `Blocked`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn block( &self, id: types::block::Id, who: types::block::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Assets", "block", types::Block { id, who }, @@ -6694,18 +8318,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some asset class was created."] pub struct Created { pub asset_id: created::AssetId, @@ -6715,26 +8339,26 @@ pub mod api { pub mod created { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Creator = ::subxt_core::utils::AccountId32; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Creator = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Created { + impl ::subxt::ext::subxt_core::events::StaticEvent for Created { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Created"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some assets were issued."] pub struct Issued { pub asset_id: issued::AssetId, @@ -6744,26 +8368,26 @@ pub mod api { pub mod issued { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Issued { + impl ::subxt::ext::subxt_core::events::StaticEvent for Issued { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Issued"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some assets were transferred."] pub struct Transferred { pub asset_id: transferred::AssetId, @@ -6774,27 +8398,27 @@ pub mod api { pub mod transferred { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type From = ::subxt_core::utils::AccountId32; - pub type To = ::subxt_core::utils::AccountId32; + pub type From = ::subxt::ext::subxt_core::utils::AccountId32; + pub type To = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Transferred { + impl ::subxt::ext::subxt_core::events::StaticEvent for Transferred { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Transferred"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some assets were destroyed."] pub struct Burned { pub asset_id: burned::AssetId, @@ -6804,26 +8428,26 @@ pub mod api { pub mod burned { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; pub type Balance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Burned { + impl ::subxt::ext::subxt_core::events::StaticEvent for Burned { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Burned"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The management team changed."] pub struct TeamChanged { pub asset_id: team_changed::AssetId, @@ -6834,27 +8458,27 @@ pub mod api { pub mod team_changed { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Issuer = ::subxt_core::utils::AccountId32; - pub type Admin = ::subxt_core::utils::AccountId32; - pub type Freezer = ::subxt_core::utils::AccountId32; + pub type Issuer = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Admin = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Freezer = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for TeamChanged { + impl ::subxt::ext::subxt_core::events::StaticEvent for TeamChanged { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "TeamChanged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The owner changed."] pub struct OwnerChanged { pub asset_id: owner_changed::AssetId, @@ -6863,25 +8487,25 @@ pub mod api { pub mod owner_changed { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OwnerChanged { + impl ::subxt::ext::subxt_core::events::StaticEvent for OwnerChanged { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "OwnerChanged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some account `who` was frozen."] pub struct Frozen { pub asset_id: frozen::AssetId, @@ -6890,25 +8514,25 @@ pub mod api { pub mod frozen { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Frozen { + impl ::subxt::ext::subxt_core::events::StaticEvent for Frozen { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Frozen"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some account `who` was thawed."] pub struct Thawed { pub asset_id: thawed::AssetId, @@ -6917,25 +8541,25 @@ pub mod api { pub mod thawed { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Thawed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Thawed { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Thawed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some asset `asset_id` was frozen."] pub struct AssetFrozen { pub asset_id: asset_frozen::AssetId, @@ -6944,23 +8568,23 @@ pub mod api { use super::runtime_types; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for AssetFrozen { + impl ::subxt::ext::subxt_core::events::StaticEvent for AssetFrozen { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "AssetFrozen"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some asset `asset_id` was thawed."] pub struct AssetThawed { pub asset_id: asset_thawed::AssetId, @@ -6969,23 +8593,23 @@ pub mod api { use super::runtime_types; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for AssetThawed { + impl ::subxt::ext::subxt_core::events::StaticEvent for AssetThawed { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "AssetThawed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Accounts were destroyed for given asset."] pub struct AccountsDestroyed { pub asset_id: accounts_destroyed::AssetId, @@ -6998,23 +8622,23 @@ pub mod api { pub type AccountsDestroyed = ::core::primitive::u32; pub type AccountsRemaining = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for AccountsDestroyed { + impl ::subxt::ext::subxt_core::events::StaticEvent for AccountsDestroyed { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "AccountsDestroyed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Approvals were destroyed for given asset."] pub struct ApprovalsDestroyed { pub asset_id: approvals_destroyed::AssetId, @@ -7027,23 +8651,23 @@ pub mod api { pub type ApprovalsDestroyed = ::core::primitive::u32; pub type ApprovalsRemaining = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for ApprovalsDestroyed { + impl ::subxt::ext::subxt_core::events::StaticEvent for ApprovalsDestroyed { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "ApprovalsDestroyed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An asset class is in the process of being destroyed."] pub struct DestructionStarted { pub asset_id: destruction_started::AssetId, @@ -7052,23 +8676,23 @@ pub mod api { use super::runtime_types; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for DestructionStarted { + impl ::subxt::ext::subxt_core::events::StaticEvent for DestructionStarted { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "DestructionStarted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An asset class was destroyed."] pub struct Destroyed { pub asset_id: destroyed::AssetId, @@ -7077,23 +8701,23 @@ pub mod api { use super::runtime_types; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Destroyed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Destroyed { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Destroyed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some asset class was force-created."] pub struct ForceCreated { pub asset_id: force_created::AssetId, @@ -7102,25 +8726,25 @@ pub mod api { pub mod force_created { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for ForceCreated { + impl ::subxt::ext::subxt_core::events::StaticEvent for ForceCreated { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "ForceCreated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "New metadata has been set for an asset."] pub struct MetadataSet { pub asset_id: metadata_set::AssetId, @@ -7132,28 +8756,28 @@ pub mod api { pub mod metadata_set { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Name = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Symbol = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Name = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Symbol = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Decimals = ::core::primitive::u8; pub type IsFrozen = ::core::primitive::bool; } - impl ::subxt_core::events::StaticEvent for MetadataSet { + impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataSet { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "MetadataSet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Metadata has been cleared for an asset."] pub struct MetadataCleared { pub asset_id: metadata_cleared::AssetId, @@ -7162,23 +8786,23 @@ pub mod api { use super::runtime_types; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for MetadataCleared { + impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataCleared { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "MetadataCleared"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "(Additional) funds have been approved for transfer to a destination account."] pub struct ApprovedTransfer { pub asset_id: approved_transfer::AssetId, @@ -7189,27 +8813,27 @@ pub mod api { pub mod approved_transfer { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Source = ::subxt_core::utils::AccountId32; - pub type Delegate = ::subxt_core::utils::AccountId32; + pub type Source = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Delegate = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for ApprovedTransfer { + impl ::subxt::ext::subxt_core::events::StaticEvent for ApprovedTransfer { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "ApprovedTransfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An approval for account `delegate` was cancelled by `owner`."] pub struct ApprovalCancelled { pub asset_id: approval_cancelled::AssetId, @@ -7219,26 +8843,26 @@ pub mod api { pub mod approval_cancelled { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::AccountId32; - pub type Delegate = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Delegate = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for ApprovalCancelled { + impl ::subxt::ext::subxt_core::events::StaticEvent for ApprovalCancelled { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "ApprovalCancelled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] #[doc = "the approved `delegate`."] pub struct TransferredApproved { @@ -7251,28 +8875,28 @@ pub mod api { pub mod transferred_approved { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Owner = ::subxt_core::utils::AccountId32; - pub type Delegate = ::subxt_core::utils::AccountId32; - pub type Destination = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Delegate = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Destination = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for TransferredApproved { + impl ::subxt::ext::subxt_core::events::StaticEvent for TransferredApproved { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "TransferredApproved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An asset has had its attributes changed by the `Force` origin."] pub struct AssetStatusChanged { pub asset_id: asset_status_changed::AssetId, @@ -7281,23 +8905,23 @@ pub mod api { use super::runtime_types; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for AssetStatusChanged { + impl ::subxt::ext::subxt_core::events::StaticEvent for AssetStatusChanged { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "AssetStatusChanged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The min_balance of an asset has been updated by the asset owner."] pub struct AssetMinBalanceChanged { pub asset_id: asset_min_balance_changed::AssetId, @@ -7308,23 +8932,23 @@ pub mod api { pub type AssetId = ::core::primitive::u128; pub type NewMinBalance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for AssetMinBalanceChanged { + impl ::subxt::ext::subxt_core::events::StaticEvent for AssetMinBalanceChanged { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "AssetMinBalanceChanged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some account `who` was created with a deposit from `depositor`."] pub struct Touched { pub asset_id: touched::AssetId, @@ -7334,26 +8958,26 @@ pub mod api { pub mod touched { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::AccountId32; - pub type Depositor = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Depositor = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Touched { + impl ::subxt::ext::subxt_core::events::StaticEvent for Touched { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Touched"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some account `who` was blocked."] pub struct Blocked { pub asset_id: blocked::AssetId, @@ -7362,12 +8986,70 @@ pub mod api { pub mod blocked { use super::runtime_types; pub type AssetId = ::core::primitive::u128; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Blocked { + impl ::subxt::ext::subxt_core::events::StaticEvent for Blocked { const PALLET: &'static str = "Assets"; const EVENT: &'static str = "Blocked"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Some assets were deposited (e.g. for transaction fees)."] + pub struct Deposited { + pub asset_id: deposited::AssetId, + pub who: deposited::Who, + pub amount: deposited::Amount, + } + pub mod deposited { + use super::runtime_types; + pub type AssetId = ::core::primitive::u128; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for Deposited { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Deposited"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Some assets were withdrawn from the account (e.g. for transaction fees)."] + pub struct Withdrawn { + pub asset_id: withdrawn::AssetId, + pub who: withdrawn::Who, + pub amount: withdrawn::Amount, + } + pub mod withdrawn { + use super::runtime_types; + pub type AssetId = ::core::primitive::u128; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Withdrawn"; + } } pub mod storage { use super::runtime_types; @@ -7377,7 +9059,7 @@ pub mod api { use super::runtime_types; pub type Asset = runtime_types::pallet_assets::types::AssetDetails< ::core::primitive::u128, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u128; @@ -7388,10 +9070,10 @@ pub mod api { ::core::primitive::u128, ::core::primitive::u128, (), - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type Param0 = ::core::primitive::u128; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod approvals { use super::runtime_types; @@ -7400,8 +9082,8 @@ pub mod api { ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u128; - pub type Param1 = ::subxt_core::utils::AccountId32; - pub type Param2 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Param2 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod metadata { use super::runtime_types; @@ -7413,20 +9095,24 @@ pub mod api { >; pub type Param0 = ::core::primitive::u128; } + pub mod next_asset_id { + use super::runtime_types; + pub type NextAssetId = ::core::primitive::u128; + } } pub struct StorageApi; impl StorageApi { #[doc = " Details of an asset."] pub fn asset_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::asset::Asset, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Asset", (), @@ -7442,17 +9128,21 @@ pub mod api { pub fn asset( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::asset::Param0, + >, types::asset::Asset, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Asset", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 184u8, 117u8, 212u8, 54u8, 227u8, 128u8, 105u8, 48u8, 129u8, 209u8, 93u8, 65u8, 239u8, 81u8, 138u8, 169u8, 70u8, 73u8, 193u8, 150u8, 58u8, @@ -7464,14 +9154,14 @@ pub mod api { #[doc = " The holdings of a specific account for a specific asset."] pub fn account_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::account::Account, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Account", (), @@ -7486,17 +9176,21 @@ pub mod api { pub fn account_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::account::Param0, + >, types::account::Account, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Account", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 193u8, 248u8, 7u8, 31u8, 182u8, 62u8, 151u8, 45u8, 186u8, 167u8, 187u8, 86u8, 254u8, 71u8, 30u8, 36u8, 169u8, 145u8, 195u8, 93u8, 76u8, 108u8, @@ -7509,22 +9203,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::account::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::account::Param1, + >, ), types::account::Account, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Account", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 193u8, 248u8, 7u8, 31u8, 182u8, 62u8, 151u8, 45u8, 186u8, 167u8, 187u8, @@ -7538,14 +9240,14 @@ pub mod api { #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] pub fn approvals_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::approvals::Approvals, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Approvals", (), @@ -7563,17 +9265,21 @@ pub mod api { pub fn approvals_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::approvals::Param0, + >, types::approvals::Approvals, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Approvals", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 88u8, 12u8, 250u8, 89u8, 74u8, 8u8, 18u8, 23u8, 160u8, 172u8, 27u8, 182u8, 30u8, 140u8, 109u8, 106u8, 158u8, 104u8, 53u8, 86u8, 112u8, @@ -7589,22 +9295,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::approvals::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::approvals::Param1, + >, ), types::approvals::Approvals, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Approvals", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 88u8, 12u8, 250u8, 89u8, 74u8, 8u8, 18u8, 23u8, 160u8, 172u8, 27u8, @@ -7622,24 +9336,36 @@ pub mod api { _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, _2: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::approvals::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::approvals::Param1, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::approvals::Param2, + >, ), types::approvals::Approvals, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Approvals", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_2.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _2.borrow(), + ), ), [ 88u8, 12u8, 250u8, 89u8, 74u8, 8u8, 18u8, 23u8, 160u8, 172u8, 27u8, @@ -7652,14 +9378,14 @@ pub mod api { #[doc = " Metadata of an asset."] pub fn metadata_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::metadata::Metadata, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Metadata", (), @@ -7674,17 +9400,21 @@ pub mod api { pub fn metadata( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::metadata::Param0, + >, types::metadata::Metadata, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Assets", "Metadata", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 9u8, 154u8, 67u8, 209u8, 73u8, 219u8, 203u8, 105u8, 197u8, 101u8, 174u8, 94u8, 37u8, 239u8, 121u8, 52u8, 186u8, 127u8, 29u8, 182u8, 32u8, @@ -7692,6 +9422,35 @@ pub mod api { ], ) } + #[doc = " The asset ID enforced for the next asset creation, if any present. Otherwise, this storage"] + #[doc = " item has no effect."] + #[doc = ""] + #[doc = " This can be useful for setting up constraints for IDs of the new assets. For example, by"] + #[doc = " providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an"] + #[doc = " auto-increment model can be applied to all new asset IDs."] + #[doc = ""] + #[doc = " The initial next asset ID can be set using the [`GenesisConfig`] or the"] + #[doc = " [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration."] + pub fn next_asset_id( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::next_asset_id::NextAssetId, + ::subxt::ext::subxt_core::utils::Yes, + (), + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Assets", + "NextAssetId", + (), + [ + 153u8, 224u8, 246u8, 219u8, 165u8, 1u8, 83u8, 64u8, 55u8, 54u8, 89u8, + 6u8, 24u8, 50u8, 62u8, 114u8, 164u8, 157u8, 105u8, 150u8, 218u8, 100u8, + 15u8, 161u8, 33u8, 43u8, 27u8, 217u8, 212u8, 111u8, 11u8, 104u8, + ], + ) + } } } pub mod constants { @@ -7703,8 +9462,10 @@ pub mod api { #[doc = " Must be configured to result in a weight that makes each call fit in a block."] pub fn remove_items_limit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Assets", "RemoveItemsLimit", [ @@ -7718,8 +9479,10 @@ pub mod api { #[doc = " The basic amount of funds that must be reserved for an asset."] pub fn asset_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Assets", "AssetDeposit", [ @@ -7733,8 +9496,10 @@ pub mod api { #[doc = " maintained."] pub fn asset_account_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Assets", "AssetAccountDeposit", [ @@ -7747,8 +9512,10 @@ pub mod api { #[doc = " The basic amount of funds that must be reserved when adding metadata to your asset."] pub fn metadata_deposit_base( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Assets", "MetadataDepositBase", [ @@ -7762,8 +9529,10 @@ pub mod api { #[doc = " metadata."] pub fn metadata_deposit_per_byte( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Assets", "MetadataDepositPerByte", [ @@ -7776,8 +9545,10 @@ pub mod api { #[doc = " The amount of funds that must be reserved when creating a new approval."] pub fn approval_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Assets", "ApprovalDeposit", [ @@ -7790,8 +9561,10 @@ pub mod api { #[doc = " The maximum length of a name or symbol stored on-chain."] pub fn string_limit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Assets", "StringLimit", [ @@ -7819,19 +9592,29 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_allow_death`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] + #[doc = "If the sender's account is below the existential deposit as a result"] + #[doc = "of the transfer, the account will be reaped."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub struct TransferAllowDeath { pub dest: transfer_allow_death::Dest, #[codec(compact)] @@ -7839,30 +9622,35 @@ pub mod api { } pub mod transfer_allow_death { use super::runtime_types; - pub type Dest = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for TransferAllowDeath { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferAllowDeath { const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_allow_death"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] + #[doc = "may be specified."] pub struct ForceTransfer { pub source: force_transfer::Source, pub dest: force_transfer::Dest, @@ -7871,34 +9659,43 @@ pub mod api { } pub mod force_transfer { use super::runtime_types; - pub type Source = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Source = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Dest = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceTransfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_keep_alive`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] + #[doc = "kill the origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer_allow_death`] instead."] + #[doc = ""] + #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub struct TransferKeepAlive { pub dest: transfer_keep_alive::Dest, #[codec(compact)] @@ -7906,115 +9703,158 @@ pub mod api { } pub mod transfer_keep_alive { use super::runtime_types; - pub type Dest = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for TransferKeepAlive { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferKeepAlive { const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_keep_alive"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_all`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Transfer the entire transferable balance from the caller account."] + #[doc = ""] + #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] + #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] + #[doc = "transferred by this function. To ensure that this function results in a killed account,"] + #[doc = "you might need to prepare the account by removing any reference counters, storage"] + #[doc = "deposits, etc..."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be Signed."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] + #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] + #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] + #[doc = " keep the sender account alive (true)."] pub struct TransferAll { pub dest: transfer_all::Dest, pub keep_alive: transfer_all::KeepAlive, } pub mod transfer_all { use super::runtime_types; - pub type Dest = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Dest = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type KeepAlive = ::core::primitive::bool; } - impl ::subxt_core::blocks::StaticExtrinsic for TransferAll { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for TransferAll { const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_all"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_unreserve`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unreserve some balance from a user by force."] + #[doc = ""] + #[doc = "Can only be called by ROOT."] pub struct ForceUnreserve { pub who: force_unreserve::Who, pub amount: force_unreserve::Amount, } pub mod force_unreserve { use super::runtime_types; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceUnreserve { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceUnreserve { const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_unreserve"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::upgrade_accounts`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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)."] pub struct UpgradeAccounts { pub who: upgrade_accounts::Who, } pub mod upgrade_accounts { use super::runtime_types; - pub type Who = ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Who = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for UpgradeAccounts { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UpgradeAccounts { const PALLET: &'static str = "Balances"; const CALL: &'static str = "upgrade_accounts"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_set_balance`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the regular balance of a given account."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] pub struct ForceSetBalance { pub who: force_set_balance::Who, #[codec(compact)] @@ -8022,30 +9862,38 @@ pub mod api { } pub mod force_set_balance { use super::runtime_types; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type NewFree = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceSetBalance { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceSetBalance { const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_set_balance"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_adjust_total_issuance`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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"] pub struct ForceAdjustTotalIssuance { pub direction: force_adjust_total_issuance::Direction, #[codec(compact)] @@ -8056,20 +9904,65 @@ pub mod api { pub type Direction = runtime_types::pallet_balances::types::AdjustmentDirection; pub type Delta = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceAdjustTotalIssuance { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceAdjustTotalIssuance { const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_adjust_total_issuance"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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_."] + pub struct Burn { + #[codec(compact)] + pub value: burn::Value, + pub keep_alive: burn::KeepAlive, + } + pub mod burn { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type KeepAlive = ::core::primitive::bool; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Burn { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "burn"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::transfer_allow_death`]."] + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] + #[doc = "If the sender's account is below the existential deposit as a result"] + #[doc = "of the transfer, the account will be reaped."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub fn transfer_allow_death( &self, dest: types::transfer_allow_death::Dest, value: types::transfer_allow_death::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "transfer_allow_death", types::TransferAllowDeath { dest, value }, @@ -8081,14 +9974,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] + #[doc = "may be specified."] pub fn force_transfer( &self, source: types::force_transfer::Source, dest: types::force_transfer::Dest, value: types::force_transfer::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "force_transfer", types::ForceTransfer { source, dest, value }, @@ -8099,13 +9993,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer_keep_alive`]."] + #[doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] + #[doc = "kill the origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer_allow_death`] instead."] + #[doc = ""] + #[doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive( &self, dest: types::transfer_keep_alive::Dest, value: types::transfer_keep_alive::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "transfer_keep_alive", types::TransferKeepAlive { dest, value }, @@ -8117,13 +10017,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer_all`]."] + #[doc = "Transfer the entire transferable balance from the caller account."] + #[doc = ""] + #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] + #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] + #[doc = "transferred by this function. To ensure that this function results in a killed account,"] + #[doc = "you might need to prepare the account by removing any reference counters, storage"] + #[doc = "deposits, etc..."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be Signed."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] + #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] + #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] + #[doc = " keep the sender account alive (true)."] pub fn transfer_all( &self, dest: types::transfer_all::Dest, keep_alive: types::transfer_all::KeepAlive, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "transfer_all", types::TransferAll { dest, keep_alive }, @@ -8135,13 +10049,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_unreserve`]."] + #[doc = "Unreserve some balance from a user by force."] + #[doc = ""] + #[doc = "Can only be called by ROOT."] pub fn force_unreserve( &self, who: types::force_unreserve::Who, amount: types::force_unreserve::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "force_unreserve", types::ForceUnreserve { who, amount }, @@ -8152,12 +10068,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::upgrade_accounts`]."] + #[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)."] pub fn upgrade_accounts( &self, who: types::upgrade_accounts::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "upgrade_accounts", types::UpgradeAccounts { who }, @@ -8168,13 +10091,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_set_balance`]."] + #[doc = "Set the regular balance of a given account."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] pub fn force_set_balance( &self, who: types::force_set_balance::Who, new_free: types::force_set_balance::NewFree, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "force_set_balance", types::ForceSetBalance { who, new_free }, @@ -8186,13 +10111,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_adjust_total_issuance`]."] + #[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"] pub fn force_adjust_total_issuance( &self, direction: types::force_adjust_total_issuance::Direction, delta: types::force_adjust_total_issuance::Delta, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ForceAdjustTotalIssuance, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Balances", "force_adjust_total_issuance", types::ForceAdjustTotalIssuance { direction, delta }, @@ -8204,6 +10135,29 @@ pub mod api { ], ) } + #[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_."] + pub fn burn( + &self, + value: types::burn::Value, + keep_alive: types::burn::KeepAlive, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Balances", + "burn", + types::Burn { value, keep_alive }, + [ + 176u8, 64u8, 7u8, 109u8, 16u8, 44u8, 145u8, 125u8, 147u8, 152u8, 130u8, + 114u8, 221u8, 201u8, 150u8, 162u8, 118u8, 71u8, 52u8, 92u8, 240u8, + 116u8, 203u8, 98u8, 5u8, 22u8, 43u8, 102u8, 94u8, 208u8, 101u8, 57u8, + ], + ) + } } } #[doc = "The `Event` enum of this pallet"] @@ -8211,18 +10165,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account was created with some free balance."] pub struct Endowed { pub account: endowed::Account, @@ -8230,26 +10184,26 @@ pub mod api { } pub mod endowed { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; pub type FreeBalance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Endowed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Endowed { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Endowed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] pub struct DustLost { @@ -8258,26 +10212,26 @@ pub mod api { } pub mod dust_lost { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for DustLost { + impl ::subxt::ext::subxt_core::events::StaticEvent for DustLost { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "DustLost"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Transfer succeeded."] pub struct Transfer { pub from: transfer::From, @@ -8286,27 +10240,27 @@ pub mod api { } pub mod transfer { use super::runtime_types; - pub type From = ::subxt_core::utils::AccountId32; - pub type To = ::subxt_core::utils::AccountId32; + pub type From = ::subxt::ext::subxt_core::utils::AccountId32; + pub type To = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Transfer { + impl ::subxt::ext::subxt_core::events::StaticEvent for Transfer { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A balance was set by root."] pub struct BalanceSet { pub who: balance_set::Who, @@ -8314,26 +10268,26 @@ pub mod api { } pub mod balance_set { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Free = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for BalanceSet { + impl ::subxt::ext::subxt_core::events::StaticEvent for BalanceSet { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "BalanceSet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { pub who: reserved::Who, @@ -8341,26 +10295,26 @@ pub mod api { } pub mod reserved { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Reserved { + impl ::subxt::ext::subxt_core::events::StaticEvent for Reserved { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Reserved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { pub who: unreserved::Who, @@ -8368,26 +10322,26 @@ pub mod api { } pub mod unreserved { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Unreserved { + impl ::subxt::ext::subxt_core::events::StaticEvent for Unreserved { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unreserved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] pub struct ReserveRepatriated { @@ -8398,29 +10352,29 @@ pub mod api { } pub mod reserve_repatriated { use super::runtime_types; - pub type From = ::subxt_core::utils::AccountId32; - pub type To = ::subxt_core::utils::AccountId32; + pub type From = ::subxt::ext::subxt_core::utils::AccountId32; + pub type To = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; pub type DestinationStatus = runtime_types::frame_support::traits::tokens::misc::BalanceStatus; } - impl ::subxt_core::events::StaticEvent for ReserveRepatriated { + impl ::subxt::ext::subxt_core::events::StaticEvent for ReserveRepatriated { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "ReserveRepatriated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { pub who: deposit::Who, @@ -8428,26 +10382,26 @@ pub mod api { } pub mod deposit { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Deposit { + impl ::subxt::ext::subxt_core::events::StaticEvent for Deposit { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Deposit"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { pub who: withdraw::Who, @@ -8455,26 +10409,26 @@ pub mod api { } pub mod withdraw { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Withdraw { + impl ::subxt::ext::subxt_core::events::StaticEvent for Withdraw { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Withdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { pub who: slashed::Who, @@ -8482,26 +10436,26 @@ pub mod api { } pub mod slashed { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Slashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Slashed { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was minted into an account."] pub struct Minted { pub who: minted::Who, @@ -8509,26 +10463,26 @@ pub mod api { } pub mod minted { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Minted { + impl ::subxt::ext::subxt_core::events::StaticEvent for Minted { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Minted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was burned from an account."] pub struct Burned { pub who: burned::Who, @@ -8536,26 +10490,26 @@ pub mod api { } pub mod burned { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Burned { + impl ::subxt::ext::subxt_core::events::StaticEvent for Burned { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Burned"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { pub who: suspended::Who, @@ -8563,26 +10517,26 @@ pub mod api { } pub mod suspended { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Suspended { + impl ::subxt::ext::subxt_core::events::StaticEvent for Suspended { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Suspended"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some amount was restored into an account."] pub struct Restored { pub who: restored::Who, @@ -8590,51 +10544,51 @@ pub mod api { } pub mod restored { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Restored { + impl ::subxt::ext::subxt_core::events::StaticEvent for Restored { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Restored"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account was upgraded."] pub struct Upgraded { pub who: upgraded::Who, } pub mod upgraded { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Upgraded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Upgraded { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Upgraded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { pub amount: issued::Amount, @@ -8643,23 +10597,23 @@ pub mod api { use super::runtime_types; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Issued { + impl ::subxt::ext::subxt_core::events::StaticEvent for Issued { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Issued"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { pub amount: rescinded::Amount, @@ -8668,23 +10622,23 @@ pub mod api { use super::runtime_types; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Rescinded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Rescinded { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Rescinded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some balance was locked."] pub struct Locked { pub who: locked::Who, @@ -8692,26 +10646,26 @@ pub mod api { } pub mod locked { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Locked { + impl ::subxt::ext::subxt_core::events::StaticEvent for Locked { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Locked"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some balance was unlocked."] pub struct Unlocked { pub who: unlocked::Who, @@ -8719,26 +10673,26 @@ pub mod api { } pub mod unlocked { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Unlocked { + impl ::subxt::ext::subxt_core::events::StaticEvent for Unlocked { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unlocked"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some balance was frozen."] pub struct Frozen { pub who: frozen::Who, @@ -8746,26 +10700,26 @@ pub mod api { } pub mod frozen { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Frozen { + impl ::subxt::ext::subxt_core::events::StaticEvent for Frozen { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Frozen"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some balance was thawed."] pub struct Thawed { pub who: thawed::Who, @@ -8773,26 +10727,26 @@ pub mod api { } pub mod thawed { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Thawed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Thawed { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Thawed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The `TotalIssuance` was forcefully changed."] pub struct TotalIssuanceForced { pub old: total_issuance_forced::Old, @@ -8803,7 +10757,7 @@ pub mod api { pub type Old = ::core::primitive::u128; pub type New = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for TotalIssuanceForced { + impl ::subxt::ext::subxt_core::events::StaticEvent for TotalIssuanceForced { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "TotalIssuanceForced"; } @@ -8824,7 +10778,7 @@ pub mod api { use super::runtime_types; pub type Account = runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod locks { use super::runtime_types; @@ -8834,7 +10788,7 @@ pub mod api { ::core::primitive::u128, >, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod reserves { use super::runtime_types; @@ -8844,27 +10798,27 @@ pub mod api { ::core::primitive::u128, >, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod holds { use super::runtime_types; pub type Holds = runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< + runtime_types::frame_support::traits::tokens::misc::IdAmount< runtime_types::tangle_testnet_runtime::RuntimeHoldReason, ::core::primitive::u128, >, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod freezes { use super::runtime_types; pub type Freezes = runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< + runtime_types::frame_support::traits::tokens::misc::IdAmount< runtime_types::tangle_testnet_runtime::RuntimeFreezeReason, ::core::primitive::u128, >, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -8872,14 +10826,14 @@ pub mod api { #[doc = " The total units issued in the system."] pub fn total_issuance( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::total_issuance::TotalIssuance, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "TotalIssuance", (), @@ -8894,14 +10848,14 @@ pub mod api { #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::inactive_issuance::InactiveIssuance, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "InactiveIssuance", (), @@ -8938,14 +10892,14 @@ pub mod api { #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::account::Account, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Account", (), @@ -8983,17 +10937,21 @@ pub mod api { pub fn account( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::account::Param0, + >, types::account::Account, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Account", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8, 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8, @@ -9003,16 +10961,18 @@ pub mod api { } #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + #[doc = ""] + #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::locks::Locks, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Locks", (), @@ -9025,20 +10985,26 @@ pub mod api { } #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] + #[doc = ""] + #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::locks::Param0, + >, types::locks::Locks, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Locks", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8, 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8, @@ -9047,16 +11013,18 @@ pub mod api { ) } #[doc = " Named reserves on some account balances."] + #[doc = ""] + #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::reserves::Reserves, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Reserves", (), @@ -9068,20 +11036,26 @@ pub mod api { ) } #[doc = " Named reserves on some account balances."] + #[doc = ""] + #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::reserves::Param0, + >, types::reserves::Reserves, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Reserves", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8, 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8, @@ -9092,14 +11066,14 @@ pub mod api { #[doc = " Holds on account balances."] pub fn holds_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::holds::Holds, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Holds", (), @@ -9115,17 +11089,21 @@ pub mod api { pub fn holds( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::holds::Param0, + >, types::holds::Holds, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Holds", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 129u8, 137u8, 55u8, 91u8, 69u8, 138u8, 47u8, 168u8, 33u8, 159u8, 81u8, 44u8, 125u8, 21u8, 124u8, 211u8, 190u8, 246u8, 14u8, 154u8, 233u8, @@ -9137,14 +11115,14 @@ pub mod api { #[doc = " Freeze locks on account balances."] pub fn freezes_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::freezes::Freezes, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Freezes", (), @@ -9159,17 +11137,21 @@ pub mod api { pub fn freezes( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::freezes::Param0, + >, types::freezes::Freezes, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Balances", "Freezes", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 17u8, 244u8, 16u8, 167u8, 197u8, 87u8, 174u8, 75u8, 172u8, 154u8, 157u8, 40u8, 70u8, 169u8, 39u8, 30u8, 253u8, 1u8, 74u8, 227u8, 122u8, @@ -9193,8 +11175,10 @@ pub mod api { #[doc = " Bottom line: Do yourself a favour and make it at least one!"] pub fn existential_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Balances", "ExistentialDeposit", [ @@ -9206,10 +11190,14 @@ pub mod api { } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] + #[doc = ""] + #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_locks( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Balances", "MaxLocks", [ @@ -9221,10 +11209,14 @@ pub mod api { ) } #[doc = " The maximum number of named reserves that can exist on an account."] + #[doc = ""] + #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_reserves( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Balances", "MaxReserves", [ @@ -9238,8 +11230,10 @@ pub mod api { #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Balances", "MaxFreezes", [ @@ -9261,18 +11255,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] pub struct TransactionFeePaid { @@ -9282,11 +11276,11 @@ pub mod api { } pub mod transaction_fee_paid { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type ActualFee = ::core::primitive::u128; pub type Tip = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for TransactionFeePaid { + impl ::subxt::ext::subxt_core::events::StaticEvent for TransactionFeePaid { const PALLET: &'static str = "TransactionPayment"; const EVENT: &'static str = "TransactionFeePaid"; } @@ -9309,14 +11303,14 @@ pub mod api { impl StorageApi { pub fn next_fee_multiplier( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_fee_multiplier::NextFeeMultiplier, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "TransactionPayment", "NextFeeMultiplier", (), @@ -9330,14 +11324,14 @@ pub mod api { } pub fn storage_version( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::storage_version::StorageVersion, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "TransactionPayment", "StorageVersion", (), @@ -9378,8 +11372,10 @@ pub mod api { #[doc = " transactions."] pub fn operational_fee_multiplier( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u8> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u8, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "TransactionPayment", "OperationalFeeMultiplier", [ @@ -9402,7 +11398,7 @@ pub mod api { use super::runtime_types; pub mod author { use super::runtime_types; - pub type Author = ::subxt_core::utils::AccountId32; + pub type Author = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -9410,14 +11406,14 @@ pub mod api { #[doc = " Author of current block."] pub fn author( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::author::Author, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Authorship", "Author", (), @@ -9446,22 +11442,30 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::report_equivocation`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Report authority equivocation/misbehavior. This method will verify"] + #[doc = "the equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence will"] + #[doc = "be reported."] pub struct ReportEquivocation { - pub equivocation_proof: - ::subxt_core::alloc::boxed::Box, + pub equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< + report_equivocation::EquivocationProof, + >, pub key_owner_proof: report_equivocation::KeyOwnerProof, } pub mod report_equivocation { @@ -9475,26 +11479,37 @@ pub mod api { >; pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - impl ::subxt_core::blocks::StaticExtrinsic for ReportEquivocation { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ReportEquivocation { const PALLET: &'static str = "Babe"; const CALL: &'static str = "report_equivocation"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Report authority equivocation/misbehavior. This method will verify"] + #[doc = "the equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence will"] + #[doc = "be reported."] + #[doc = "This extrinsic must be called unsigned and it is expected that only"] + #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] + #[doc = "if the block author is defined it will be defined as the equivocation"] + #[doc = "reporter."] pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::subxt_core::alloc::boxed::Box< + pub equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< report_equivocation_unsigned::EquivocationProof, >, pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, @@ -9510,24 +11525,31 @@ pub mod api { >; pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } - impl ::subxt_core::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ReportEquivocationUnsigned { const PALLET: &'static str = "Babe"; const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::plan_config_change`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] + #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] + #[doc = "Multiple calls to this method will replace any existing planned config change that had"] + #[doc = "not been enacted yet."] pub struct PlanConfigChange { pub config: plan_config_change::Config, } @@ -9536,64 +11558,79 @@ pub mod api { pub type Config = runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; } - impl ::subxt_core::blocks::StaticExtrinsic for PlanConfigChange { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PlanConfigChange { const PALLET: &'static str = "Babe"; const CALL: &'static str = "plan_config_change"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::report_equivocation`]."] + #[doc = "Report authority equivocation/misbehavior. This method will verify"] + #[doc = "the equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence will"] + #[doc = "be reported."] pub fn report_equivocation( &self, equivocation_proof: types::report_equivocation::EquivocationProof, key_owner_proof: types::report_equivocation::KeyOwnerProof, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Babe", "report_equivocation", types::ReportEquivocation { - equivocation_proof: ::subxt_core::alloc::boxed::Box::new( + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box::new( equivocation_proof, ), key_owner_proof, }, [ - 53u8, 75u8, 169u8, 115u8, 149u8, 168u8, 106u8, 7u8, 82u8, 253u8, 9u8, - 210u8, 131u8, 28u8, 177u8, 205u8, 143u8, 190u8, 175u8, 234u8, 49u8, - 247u8, 173u8, 37u8, 78u8, 145u8, 184u8, 23u8, 75u8, 72u8, 16u8, 136u8, + 158u8, 242u8, 40u8, 26u8, 184u8, 104u8, 122u8, 211u8, 103u8, 160u8, + 189u8, 66u8, 42u8, 204u8, 189u8, 96u8, 235u8, 10u8, 168u8, 221u8, 8u8, + 109u8, 160u8, 146u8, 206u8, 70u8, 41u8, 81u8, 94u8, 210u8, 206u8, 87u8, ], ) } - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + #[doc = "Report authority equivocation/misbehavior. This method will verify"] + #[doc = "the equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence will"] + #[doc = "be reported."] + #[doc = "This extrinsic must be called unsigned and it is expected that only"] + #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] + #[doc = "if the block author is defined it will be defined as the equivocation"] + #[doc = "reporter."] pub fn report_equivocation_unsigned( &self, equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ReportEquivocationUnsigned, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Babe", "report_equivocation_unsigned", types::ReportEquivocationUnsigned { - equivocation_proof: ::subxt_core::alloc::boxed::Box::new( + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box::new( equivocation_proof, ), key_owner_proof, }, [ - 97u8, 26u8, 6u8, 27u8, 230u8, 52u8, 212u8, 175u8, 125u8, 141u8, 159u8, - 243u8, 96u8, 116u8, 56u8, 145u8, 91u8, 55u8, 122u8, 209u8, 151u8, - 202u8, 234u8, 151u8, 129u8, 18u8, 235u8, 245u8, 216u8, 75u8, 76u8, - 161u8, + 218u8, 175u8, 84u8, 2u8, 250u8, 2u8, 125u8, 220u8, 47u8, 23u8, 115u8, + 215u8, 57u8, 153u8, 209u8, 121u8, 191u8, 176u8, 90u8, 112u8, 15u8, + 168u8, 207u8, 208u8, 219u8, 185u8, 46u8, 225u8, 84u8, 1u8, 204u8, 53u8, ], ) } - #[doc = "See [`Pallet::plan_config_change`]."] + #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] + #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] + #[doc = "Multiple calls to this method will replace any existing planned config change that had"] + #[doc = "not been enacted yet."] pub fn plan_config_change( &self, config: types::plan_config_change::Config, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Babe", "plan_config_change", types::PlanConfigChange { config }, @@ -9706,14 +11743,14 @@ pub mod api { #[doc = " Current epoch index."] pub fn epoch_index( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::epoch_index::EpochIndex, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "EpochIndex", (), @@ -9728,22 +11765,22 @@ pub mod api { #[doc = " Current epoch authorities."] pub fn authorities( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::authorities::Authorities, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "Authorities", (), [ - 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, - 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, - 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, - 85u8, + 192u8, 157u8, 98u8, 244u8, 104u8, 38u8, 195u8, 114u8, 183u8, 62u8, + 247u8, 18u8, 31u8, 152u8, 246u8, 206u8, 97u8, 13u8, 118u8, 211u8, + 104u8, 54u8, 150u8, 152u8, 126u8, 170u8, 228u8, 158u8, 108u8, 129u8, + 134u8, 44u8, ], ) } @@ -9751,14 +11788,14 @@ pub mod api { #[doc = " until the first block of the chain."] pub fn genesis_slot( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::genesis_slot::GenesisSlot, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "GenesisSlot", (), @@ -9773,14 +11810,14 @@ pub mod api { #[doc = " Current slot number."] pub fn current_slot( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_slot::CurrentSlot, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "CurrentSlot", (), @@ -9804,14 +11841,14 @@ pub mod api { #[doc = " adversary, for purposes such as public-coin zero-knowledge proofs."] pub fn randomness( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::randomness::Randomness, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "Randomness", (), @@ -9826,14 +11863,14 @@ pub mod api { #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::pending_epoch_config_change::PendingEpochConfigChange, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "PendingEpochConfigChange", (), @@ -9847,14 +11884,14 @@ pub mod api { #[doc = " Next epoch randomness."] pub fn next_randomness( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_randomness::NextRandomness, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "NextRandomness", (), @@ -9868,22 +11905,21 @@ pub mod api { #[doc = " Next epoch authorities."] pub fn next_authorities( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_authorities::NextAuthorities, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "NextAuthorities", (), [ - 116u8, 95u8, 126u8, 199u8, 237u8, 90u8, 202u8, 227u8, 247u8, 56u8, - 201u8, 113u8, 239u8, 191u8, 151u8, 56u8, 156u8, 133u8, 61u8, 64u8, - 141u8, 26u8, 8u8, 95u8, 177u8, 255u8, 54u8, 223u8, 132u8, 74u8, 210u8, - 128u8, + 29u8, 161u8, 79u8, 221u8, 198u8, 101u8, 11u8, 17u8, 20u8, 17u8, 225u8, + 144u8, 35u8, 150u8, 241u8, 190u8, 106u8, 32u8, 230u8, 14u8, 212u8, + 126u8, 1u8, 96u8, 73u8, 173u8, 245u8, 39u8, 153u8, 33u8, 205u8, 174u8, ], ) } @@ -9898,14 +11934,14 @@ pub mod api { #[doc = " epoch."] pub fn segment_index( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::segment_index::SegmentIndex, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "SegmentIndex", (), @@ -9920,14 +11956,14 @@ pub mod api { #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::under_construction::UnderConstruction, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "UnderConstruction", (), @@ -9942,19 +11978,21 @@ pub mod api { pub fn under_construction( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::under_construction::Param0, >, types::under_construction::UnderConstruction, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "UnderConstruction", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, @@ -9966,14 +12004,14 @@ pub mod api { #[doc = " if per-block initialization has already been called for current block."] pub fn initialized( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::initialized::Initialized, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "Initialized", (), @@ -9991,14 +12029,14 @@ pub mod api { #[doc = " It is set in `on_finalize`, before it will contain the value from the last block."] pub fn author_vrf_randomness( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::author_vrf_randomness::AuthorVrfRandomness, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "AuthorVrfRandomness", (), @@ -10017,14 +12055,14 @@ pub mod api { #[doc = " slots, which may be skipped, the block numbers may not line up with the slot numbers."] pub fn epoch_start( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::epoch_start::EpochStart, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "EpochStart", (), @@ -10042,14 +12080,14 @@ pub mod api { #[doc = " execution context should always yield zero."] pub fn lateness( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::lateness::Lateness, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "Lateness", (), @@ -10064,14 +12102,14 @@ pub mod api { #[doc = " genesis."] pub fn epoch_config( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::epoch_config::EpochConfig, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "EpochConfig", (), @@ -10087,14 +12125,14 @@ pub mod api { #[doc = " (you can fallback to `EpochConfig` instead in that case)."] pub fn next_epoch_config( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_epoch_config::NextEpochConfig, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "NextEpochConfig", (), @@ -10116,14 +12154,14 @@ pub mod api { #[doc = " active epoch index was during that session."] pub fn skipped_epochs( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::skipped_epochs::SkippedEpochs, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Babe", "SkippedEpochs", (), @@ -10145,8 +12183,10 @@ pub mod api { #[doc = " the chain has started. Attempting to do so will brick block production."] pub fn epoch_duration( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Babe", "EpochDuration", [ @@ -10164,8 +12204,10 @@ pub mod api { #[doc = " the probability of a slot being empty)."] pub fn expected_block_time( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Babe", "ExpectedBlockTime", [ @@ -10179,8 +12221,10 @@ pub mod api { #[doc = " Max number of authorities allowed"] pub fn max_authorities( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Babe", "MaxAuthorities", [ @@ -10194,8 +12238,10 @@ pub mod api { #[doc = " The maximum number of nominators for each validator."] pub fn max_nominators( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Babe", "MaxNominators", [ @@ -10223,53 +12269,73 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::report_equivocation`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Report voter equivocation/misbehavior. This method will verify the"] + #[doc = "equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence"] + #[doc = "will be reported."] pub struct ReportEquivocation { - pub equivocation_proof: - ::subxt_core::alloc::boxed::Box, + pub equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< + report_equivocation::EquivocationProof, + >, pub key_owner_proof: report_equivocation::KeyOwnerProof, } pub mod report_equivocation { use super::runtime_types; pub type EquivocationProof = runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, ::core::primitive::u64, >; pub type KeyOwnerProof = runtime_types::sp_core::Void; } - impl ::subxt_core::blocks::StaticExtrinsic for ReportEquivocation { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ReportEquivocation { const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "report_equivocation"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Report voter equivocation/misbehavior. This method will verify the"] + #[doc = "equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence"] + #[doc = "will be reported."] + #[doc = ""] + #[doc = "This extrinsic must be called unsigned and it is expected that only"] + #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] + #[doc = "if the block author is defined it will be defined as the equivocation"] + #[doc = "reporter."] pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::subxt_core::alloc::boxed::Box< + pub equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< report_equivocation_unsigned::EquivocationProof, >, pub key_owner_proof: report_equivocation_unsigned::KeyOwnerProof, @@ -10278,29 +12344,44 @@ pub mod api { use super::runtime_types; pub type EquivocationProof = runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, ::core::primitive::u64, >; pub type KeyOwnerProof = runtime_types::sp_core::Void; } - impl ::subxt_core::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ReportEquivocationUnsigned { const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::note_stalled`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] + #[doc = ""] + #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] + #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] + #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] + #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] + #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] + #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] + #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] + #[doc = "block of all validators of the new authority set."] + #[doc = ""] + #[doc = "Only callable by root."] pub struct NoteStalled { pub delay: note_stalled::Delay, pub best_finalized_block_number: note_stalled::BestFinalizedBlockNumber, @@ -10310,65 +12391,89 @@ pub mod api { pub type Delay = ::core::primitive::u64; pub type BestFinalizedBlockNumber = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for NoteStalled { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for NoteStalled { const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "note_stalled"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::report_equivocation`]."] + #[doc = "Report voter equivocation/misbehavior. This method will verify the"] + #[doc = "equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence"] + #[doc = "will be reported."] pub fn report_equivocation( &self, equivocation_proof: types::report_equivocation::EquivocationProof, key_owner_proof: types::report_equivocation::KeyOwnerProof, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Grandpa", "report_equivocation", types::ReportEquivocation { - equivocation_proof: ::subxt_core::alloc::boxed::Box::new( + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box::new( equivocation_proof, ), key_owner_proof, }, [ - 210u8, 146u8, 3u8, 25u8, 228u8, 26u8, 174u8, 152u8, 120u8, 139u8, 49u8, - 11u8, 0u8, 11u8, 97u8, 243u8, 242u8, 40u8, 15u8, 217u8, 92u8, 194u8, - 174u8, 100u8, 88u8, 228u8, 13u8, 240u8, 246u8, 19u8, 139u8, 44u8, + 134u8, 142u8, 87u8, 229u8, 16u8, 200u8, 253u8, 196u8, 11u8, 170u8, 0u8, + 151u8, 39u8, 200u8, 169u8, 14u8, 77u8, 63u8, 38u8, 180u8, 140u8, 113u8, + 248u8, 220u8, 62u8, 243u8, 63u8, 98u8, 24u8, 123u8, 191u8, 41u8, ], ) } - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + #[doc = "Report voter equivocation/misbehavior. This method will verify the"] + #[doc = "equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence"] + #[doc = "will be reported."] + #[doc = ""] + #[doc = "This extrinsic must be called unsigned and it is expected that only"] + #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] + #[doc = "if the block author is defined it will be defined as the equivocation"] + #[doc = "reporter."] pub fn report_equivocation_unsigned( &self, equivocation_proof: types::report_equivocation_unsigned::EquivocationProof, key_owner_proof: types::report_equivocation_unsigned::KeyOwnerProof, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ReportEquivocationUnsigned, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Grandpa", "report_equivocation_unsigned", types::ReportEquivocationUnsigned { - equivocation_proof: ::subxt_core::alloc::boxed::Box::new( + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box::new( equivocation_proof, ), key_owner_proof, }, [ - 59u8, 39u8, 153u8, 10u8, 1u8, 177u8, 4u8, 18u8, 166u8, 217u8, 24u8, - 123u8, 80u8, 235u8, 100u8, 27u8, 62u8, 152u8, 108u8, 209u8, 250u8, - 228u8, 178u8, 225u8, 134u8, 198u8, 126u8, 32u8, 130u8, 204u8, 179u8, - 201u8, + 249u8, 221u8, 85u8, 143u8, 2u8, 211u8, 205u8, 249u8, 24u8, 206u8, + 251u8, 140u8, 49u8, 54u8, 30u8, 125u8, 108u8, 46u8, 173u8, 184u8, 65u8, + 139u8, 139u8, 12u8, 20u8, 27u8, 149u8, 225u8, 113u8, 56u8, 249u8, 44u8, ], ) } - #[doc = "See [`Pallet::note_stalled`]."] + #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] + #[doc = ""] + #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] + #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] + #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] + #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] + #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] + #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] + #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] + #[doc = "block of all validators of the new authority set."] + #[doc = ""] + #[doc = "Only callable by root."] pub fn note_stalled( &self, delay: types::note_stalled::Delay, best_finalized_block_number: types::note_stalled::BestFinalizedBlockNumber, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Grandpa", "note_stalled", types::NoteStalled { delay, best_finalized_block_number }, @@ -10387,68 +12492,68 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set: new_authorities::AuthoritySet, } pub mod new_authorities { use super::runtime_types; - pub type AuthoritySet = ::subxt_core::alloc::vec::Vec<( + pub type AuthoritySet = ::subxt::ext::subxt_core::alloc::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>; } - impl ::subxt_core::events::StaticEvent for NewAuthorities { + impl ::subxt::ext::subxt_core::events::StaticEvent for NewAuthorities { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "NewAuthorities"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Current authority set has been paused."] pub struct Paused; - impl ::subxt_core::events::StaticEvent for Paused { + impl ::subxt::ext::subxt_core::events::StaticEvent for Paused { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Paused"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Current authority set has been resumed."] pub struct Resumed; - impl ::subxt_core::events::StaticEvent for Resumed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Resumed { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Resumed"; } @@ -10498,14 +12603,14 @@ pub mod api { #[doc = " State of the current authority set."] pub fn state( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::state::State, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "State", (), @@ -10519,36 +12624,35 @@ pub mod api { #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::pending_change::PendingChange, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "PendingChange", (), [ - 115u8, 197u8, 58u8, 109u8, 138u8, 143u8, 3u8, 71u8, 128u8, 226u8, - 164u8, 246u8, 195u8, 182u8, 168u8, 95u8, 130u8, 81u8, 120u8, 27u8, - 202u8, 18u8, 70u8, 26u8, 55u8, 144u8, 142u8, 4u8, 47u8, 49u8, 195u8, - 174u8, + 195u8, 146u8, 73u8, 229u8, 76u8, 128u8, 45u8, 145u8, 57u8, 243u8, 61u8, + 227u8, 173u8, 96u8, 145u8, 126u8, 239u8, 128u8, 232u8, 110u8, 227u8, + 92u8, 89u8, 20u8, 252u8, 235u8, 112u8, 37u8, 102u8, 145u8, 24u8, 126u8, ], ) } #[doc = " next block number where we can force a change."] pub fn next_forced( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_forced::NextForced, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "NextForced", (), @@ -10563,14 +12667,14 @@ pub mod api { #[doc = " `true` if we are currently stalled."] pub fn stalled( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::stalled::Stalled, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "Stalled", (), @@ -10585,14 +12689,14 @@ pub mod api { #[doc = " in the \"set\" of Grandpa validators from genesis."] pub fn current_set_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_set_id::CurrentSetId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "CurrentSetId", (), @@ -10616,14 +12720,14 @@ pub mod api { #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::set_id_session::SetIdSession, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "SetIdSession", (), @@ -10647,17 +12751,21 @@ pub mod api { pub fn set_id_session( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::set_id_session::Param0, + >, types::set_id_session::SetIdSession, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "SetIdSession", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, @@ -10668,22 +12776,22 @@ pub mod api { #[doc = " The current list of authorities."] pub fn authorities( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::authorities::Authorities, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Grandpa", "Authorities", (), [ - 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, - 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, - 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, - 85u8, + 192u8, 157u8, 98u8, 244u8, 104u8, 38u8, 195u8, 114u8, 183u8, 62u8, + 247u8, 18u8, 31u8, 152u8, 246u8, 206u8, 97u8, 13u8, 118u8, 211u8, + 104u8, 54u8, 150u8, 152u8, 126u8, 170u8, 228u8, 158u8, 108u8, 129u8, + 134u8, 44u8, ], ) } @@ -10696,8 +12804,10 @@ pub mod api { #[doc = " Max Authorities in use"] pub fn max_authorities( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Grandpa", "MaxAuthorities", [ @@ -10711,8 +12821,10 @@ pub mod api { #[doc = " The maximum number of nominators for each validator."] pub fn max_nominators( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Grandpa", "MaxNominators", [ @@ -10731,8 +12843,10 @@ pub mod api { #[doc = " can be zero."] pub fn max_set_id_session_entries( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Grandpa", "MaxSetIdSessionEntries", [ @@ -10760,19 +12874,34 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Assign an previously unassigned index."] + #[doc = ""] + #[doc = "Payment: `Deposit` is reserved from the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be claimed. This must not be in use."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct Claim { pub index: claim::Index, } @@ -10780,54 +12909,84 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Claim { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Indices"; const CALL: &'static str = "claim"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] + #[doc = "is effectively transferred to the new account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct Transfer { pub new: transfer::New, pub index: transfer::Index, } pub mod transfer { use super::runtime_types; - pub type New = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type New = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Transfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Transfer { const PALLET: &'static str = "Indices"; const CALL: &'static str = "transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::free`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Free up an index owned by the sender."] + #[doc = ""] + #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] + #[doc = ""] + #[doc = "- `index`: the index to be freed. This must be owned by the sender."] + #[doc = ""] + #[doc = "Emits `IndexFreed` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct Free { pub index: free::Index, } @@ -10835,24 +12994,40 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Free { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Free { const PALLET: &'static str = "Indices"; const CALL: &'static str = "free"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] + #[doc = "held, then any deposit is reimbursed to its current owner."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `index`: the index to be (re-)assigned."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct ForceTransfer { pub new: force_transfer::New, pub index: force_transfer::Index, @@ -10860,31 +13035,46 @@ pub mod api { } pub mod force_transfer { use super::runtime_types; - pub type New = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type New = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Index = ::core::primitive::u32; pub type Freeze = ::core::primitive::bool; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceTransfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceTransfer { const PALLET: &'static str = "Indices"; const CALL: &'static str = "force_transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::freeze`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] + #[doc = "deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] + #[doc = "non-frozen account `index`."] + #[doc = ""] + #[doc = "- `index`: the index to be frozen in place."] + #[doc = ""] + #[doc = "Emits `IndexFrozen` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct Freeze { pub index: freeze::Index, } @@ -10892,19 +13082,30 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Freeze { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Freeze { const PALLET: &'static str = "Indices"; const CALL: &'static str = "freeze"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::claim`]."] + #[doc = "Assign an previously unassigned index."] + #[doc = ""] + #[doc = "Payment: `Deposit` is reserved from the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be claimed. This must not be in use."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn claim( &self, index: types::claim::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Indices", "claim", types::Claim { index }, @@ -10915,13 +13116,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer`]."] + #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] + #[doc = "is effectively transferred to the new account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn transfer( &self, new: types::transfer::New, index: types::transfer::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Indices", "transfer", types::Transfer { new, index }, @@ -10933,12 +13145,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::free`]."] + #[doc = "Free up an index owned by the sender."] + #[doc = ""] + #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] + #[doc = ""] + #[doc = "- `index`: the index to be freed. This must be owned by the sender."] + #[doc = ""] + #[doc = "Emits `IndexFreed` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn free( &self, index: types::free::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Indices", "free", types::Free { index }, @@ -10950,14 +13173,26 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] + #[doc = "held, then any deposit is reimbursed to its current owner."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `index`: the index to be (re-)assigned."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn force_transfer( &self, new: types::force_transfer::New, index: types::force_transfer::Index, freeze: types::force_transfer::Freeze, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Indices", "force_transfer", types::ForceTransfer { new, index, freeze }, @@ -10969,12 +13204,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::freeze`]."] + #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] + #[doc = "deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] + #[doc = "non-frozen account `index`."] + #[doc = ""] + #[doc = "- `index`: the index to be frozen in place."] + #[doc = ""] + #[doc = "Emits `IndexFrozen` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn freeze( &self, index: types::freeze::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Indices", "freeze", types::Freeze { index }, @@ -10993,18 +13239,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A account index was assigned."] pub struct IndexAssigned { pub who: index_assigned::Who, @@ -11012,26 +13258,26 @@ pub mod api { } pub mod index_assigned { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for IndexAssigned { + impl ::subxt::ext::subxt_core::events::StaticEvent for IndexAssigned { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexAssigned"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { pub index: index_freed::Index, @@ -11040,23 +13286,23 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for IndexFreed { + impl ::subxt::ext::subxt_core::events::StaticEvent for IndexFreed { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFreed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { pub index: index_frozen::Index, @@ -11065,9 +13311,9 @@ pub mod api { pub mod index_frozen { use super::runtime_types; pub type Index = ::core::primitive::u32; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for IndexFrozen { + impl ::subxt::ext::subxt_core::events::StaticEvent for IndexFrozen { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFrozen"; } @@ -11079,7 +13325,7 @@ pub mod api { pub mod accounts { use super::runtime_types; pub type Accounts = ( - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, ::core::primitive::bool, ); @@ -11091,14 +13337,14 @@ pub mod api { #[doc = " The lookup from index to account."] pub fn accounts_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::accounts::Accounts, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Indices", "Accounts", (), @@ -11114,17 +13360,21 @@ pub mod api { pub fn accounts( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::accounts::Param0, + >, types::accounts::Accounts, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Indices", "Accounts", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, @@ -11142,8 +13392,10 @@ pub mod api { #[doc = " The deposit needed for reserving an index."] pub fn deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Indices", "Deposit", [ @@ -11170,19 +13422,31 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::propose`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Propose a sensitive action to be taken."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] + #[doc = "have funds to cover the deposit."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the proposal preimage."] + #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] + #[doc = ""] + #[doc = "Emits `Proposed`."] pub struct Propose { pub proposal: propose::Proposal, #[codec(compact)] @@ -11196,24 +13460,33 @@ pub mod api { >; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Propose { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "propose"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::second`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Signals agreement with a particular proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] + #[doc = "must have funds to cover the deposit, equal to the original deposit."] + #[doc = ""] + #[doc = "- `proposal`: The index of the proposal to second."] pub struct Second { #[codec(compact)] pub proposal: second::Proposal, @@ -11222,24 +13495,34 @@ pub mod api { use super::runtime_types; pub type Proposal = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Second { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Second { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "second"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::vote`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] + #[doc = "otherwise it is a vote to keep the status quo."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to vote for."] + #[doc = "- `vote`: The vote configuration."] pub struct Vote { #[codec(compact)] pub ref_index: vote::RefIndex, @@ -11251,24 +13534,35 @@ pub mod api { pub type Vote = runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>; } - impl ::subxt_core::blocks::StaticExtrinsic for Vote { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "vote"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::emergency_cancel`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] + #[doc = ""] + #[doc = "-`ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] pub struct EmergencyCancel { pub ref_index: emergency_cancel::RefIndex, } @@ -11276,24 +13570,33 @@ pub mod api { use super::runtime_types; pub type RefIndex = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for EmergencyCancel { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for EmergencyCancel { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "emergency_cancel"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::external_propose`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] pub struct ExternalPropose { pub proposal: external_propose::Proposal, } @@ -11304,24 +13607,38 @@ pub mod api { runtime_types::sp_runtime::traits::BlakeTwo256, >; } - impl ::subxt_core::blocks::StaticExtrinsic for ExternalPropose { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExternalPropose { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::external_propose_majority`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] + #[doc = "an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ExternalProposeMajority { pub proposal: external_propose_majority::Proposal, } @@ -11332,24 +13649,38 @@ pub mod api { runtime_types::sp_runtime::traits::BlakeTwo256, >; } - impl ::subxt_core::blocks::StaticExtrinsic for ExternalProposeMajority { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExternalProposeMajority { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose_majority"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::external_propose_default`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] + #[doc = "schedule an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct ExternalProposeDefault { pub proposal: external_propose_default::Proposal, } @@ -11360,24 +13691,43 @@ pub mod api { runtime_types::sp_runtime::traits::BlakeTwo256, >; } - impl ::subxt_core::blocks::StaticExtrinsic for ExternalProposeDefault { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExternalProposeDefault { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose_default"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::fast_track`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] + #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] + #[doc = "but it is not a majority-carries referendum then it fails."] + #[doc = ""] + #[doc = "The dispatch of this call must be `FastTrackOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the current external proposal."] + #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] + #[doc = "\tMust be always greater than zero."] + #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] + #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] + #[doc = " enacted. This doesn't have a minimum amount."] + #[doc = ""] + #[doc = "Emits `Started`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub struct FastTrack { pub proposal_hash: fast_track::ProposalHash, pub voting_period: fast_track::VotingPeriod, @@ -11385,53 +13735,75 @@ pub mod api { } pub mod fast_track { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type VotingPeriod = ::core::primitive::u64; pub type Delay = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for FastTrack { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for FastTrack { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "fast_track"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::veto_external`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Veto and blacklist the external proposal hash."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `VetoOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] + #[doc = ""] + #[doc = "Emits `Vetoed`."] + #[doc = ""] + #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] pub struct VetoExternal { pub proposal_hash: veto_external::ProposalHash, } pub mod veto_external { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for VetoExternal { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for VetoExternal { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "veto_external"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_referendum`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove a referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "# Weight: `O(1)`."] pub struct CancelReferendum { #[codec(compact)] pub ref_index: cancel_referendum::RefIndex, @@ -11440,24 +13812,47 @@ pub mod api { use super::runtime_types; pub type RefIndex = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelReferendum { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelReferendum { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "cancel_referendum"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::delegate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Delegate the voting power (with some given conviction) of the sending account."] + #[doc = ""] + #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] + #[doc = "time appropriate for the conviction's lock period."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] + #[doc = " - be delegating already; or"] + #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] + #[doc = " through `reap_vote` or `unvote`)."] + #[doc = ""] + #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] + #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] + #[doc = " account is undelegated, the funds will be locked for the corresponding period."] + #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] + #[doc = " be more than the account's current balance."] + #[doc = ""] + #[doc = "Emits `Delegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] pub struct Delegate { pub to: delegate::To, pub conviction: delegate::Conviction, @@ -11465,97 +13860,160 @@ pub mod api { } pub mod delegate { use super::runtime_types; - pub type To = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type To = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Conviction = runtime_types::pallet_democracy::conviction::Conviction; pub type Balance = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Delegate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Delegate { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "delegate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::undelegate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Undelegate the voting power of the sending account."] + #[doc = ""] + #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] + #[doc = "of the conviction with which the delegation was issued."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] + #[doc = "currently delegating."] + #[doc = ""] + #[doc = "Emits `Undelegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] pub struct Undelegate; - impl ::subxt_core::blocks::StaticExtrinsic for Undelegate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Undelegate { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "undelegate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::clear_public_proposals`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Clears all public proposals."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] pub struct ClearPublicProposals; - impl ::subxt_core::blocks::StaticExtrinsic for ClearPublicProposals { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClearPublicProposals { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "clear_public_proposals"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unlock`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unlock tokens that have an expired lock."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account to remove the lock on."] + #[doc = ""] + #[doc = "Weight: `O(R)` with R number of vote of target."] pub struct Unlock { pub target: unlock::Target, } pub mod unlock { use super::runtime_types; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Unlock { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Unlock { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "unlock"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_vote`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If:"] + #[doc = "- the referendum was cancelled, or"] + #[doc = "- the referendum is ongoing, or"] + #[doc = "- the referendum has ended such that"] + #[doc = " - the vote of the account was in opposition to the result; or"] + #[doc = " - there was no conviction to the account's vote; or"] + #[doc = " - the account made a split vote"] + #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] + #[doc = "funds being available."] + #[doc = ""] + #[doc = "If, however, the referendum has ended and:"] + #[doc = "- it finished corresponding to the vote of the account, and"] + #[doc = "- the account made a standard vote with conviction, and"] + #[doc = "- the lock period of the conviction is not over"] + #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] + #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] + #[doc = "of both the amount locked and the time is it locked for)."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] + #[doc = "registered for referendum `index`."] + #[doc = ""] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] pub struct RemoveVote { pub index: remove_vote::Index, } @@ -11563,81 +14021,127 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveVote { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveVote { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "remove_vote"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_other_vote`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] + #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] + #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] + #[doc = "because the conviction period is over."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] + #[doc = " referendum `index`."] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] pub struct RemoveOtherVote { pub target: remove_other_vote::Target, pub index: remove_other_vote::Index, } pub mod remove_other_vote { use super::runtime_types; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveOtherVote { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveOtherVote { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "remove_other_vote"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::blacklist`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] + #[doc = "proposed again."] + #[doc = ""] + #[doc = "If called on a queued public or external proposal, then this will result in it being"] + #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] + #[doc = "then it will be cancelled."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] + #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] + #[doc = "cancelled."] + #[doc = ""] + #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] + #[doc = " reasonable value)."] pub struct Blacklist { pub proposal_hash: blacklist::ProposalHash, pub maybe_ref_index: blacklist::MaybeRefIndex, } pub mod blacklist { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type MaybeRefIndex = ::core::option::Option<::core::primitive::u32>; } - impl ::subxt_core::blocks::StaticExtrinsic for Blacklist { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Blacklist { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "blacklist"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_proposal`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove a proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] + #[doc = ""] + #[doc = "- `prop_index`: The index of the proposal to cancel."] + #[doc = ""] + #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] pub struct CancelProposal { #[codec(compact)] pub prop_index: cancel_proposal::PropIndex, @@ -11646,24 +14150,42 @@ pub mod api { use super::runtime_types; pub type PropIndex = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelProposal { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelProposal { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "cancel_proposal"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_metadata`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set or clear a metadata of a proposal or a referendum."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] + #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] + #[doc = " threshold."] + #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] + #[doc = " threshold."] + #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] + #[doc = " threshold."] + #[doc = " - `Signed` by a creator for a public proposal."] + #[doc = " - `Signed` to clear a metadata for a finished referendum."] + #[doc = " - `Root` to set a metadata for an ongoing referendum."] + #[doc = "- `owner`: an identifier of a metadata owner."] + #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] pub struct SetMetadata { pub owner: set_metadata::Owner, pub maybe_hash: set_metadata::MaybeHash, @@ -11671,22 +14193,31 @@ pub mod api { pub mod set_metadata { use super::runtime_types; pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type MaybeHash = ::core::option::Option<::subxt_core::utils::H256>; + pub type MaybeHash = + ::core::option::Option<::subxt::ext::subxt_core::utils::H256>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMetadata { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Democracy"; const CALL: &'static str = "set_metadata"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::propose`]."] + #[doc = "Propose a sensitive action to be taken."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] + #[doc = "have funds to cover the deposit."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the proposal preimage."] + #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] + #[doc = ""] + #[doc = "Emits `Proposed`."] pub fn propose( &self, proposal: types::propose::Proposal, value: types::propose::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "propose", types::Propose { proposal, value }, @@ -11698,12 +14229,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::second`]."] + #[doc = "Signals agreement with a particular proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] + #[doc = "must have funds to cover the deposit, equal to the original deposit."] + #[doc = ""] + #[doc = "- `proposal`: The index of the proposal to second."] pub fn second( &self, proposal: types::second::Proposal, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "second", types::Second { proposal }, @@ -11715,13 +14251,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::vote`]."] + #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] + #[doc = "otherwise it is a vote to keep the status quo."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to vote for."] + #[doc = "- `vote`: The vote configuration."] pub fn vote( &self, ref_index: types::vote::RefIndex, vote: types::vote::Vote, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "vote", types::Vote { ref_index, vote }, @@ -11732,12 +14274,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::emergency_cancel`]."] + #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] + #[doc = ""] + #[doc = "-`ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] pub fn emergency_cancel( &self, ref_index: types::emergency_cancel::RefIndex, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "emergency_cancel", types::EmergencyCancel { ref_index }, @@ -11748,12 +14297,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::external_propose`]."] + #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] pub fn external_propose( &self, proposal: types::external_propose::Proposal, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "external_propose", types::ExternalPropose { proposal }, @@ -11764,12 +14318,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::external_propose_majority`]."] + #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] + #[doc = "an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn external_propose_majority( &self, proposal: types::external_propose_majority::Proposal, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ExternalProposeMajority, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "external_propose_majority", types::ExternalProposeMajority { proposal }, @@ -11780,12 +14346,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::external_propose_default`]."] + #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] + #[doc = "schedule an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn external_propose_default( &self, proposal: types::external_propose_default::Proposal, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ExternalProposeDefault, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "external_propose_default", types::ExternalProposeDefault { proposal }, @@ -11796,14 +14374,29 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::fast_track`]."] + #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] + #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] + #[doc = "but it is not a majority-carries referendum then it fails."] + #[doc = ""] + #[doc = "The dispatch of this call must be `FastTrackOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the current external proposal."] + #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] + #[doc = "\tMust be always greater than zero."] + #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] + #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] + #[doc = " enacted. This doesn't have a minimum amount."] + #[doc = ""] + #[doc = "Emits `Started`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] pub fn fast_track( &self, proposal_hash: types::fast_track::ProposalHash, voting_period: types::fast_track::VotingPeriod, delay: types::fast_track::Delay, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "fast_track", types::FastTrack { proposal_hash, voting_period, delay }, @@ -11814,12 +14407,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::veto_external`]."] + #[doc = "Veto and blacklist the external proposal hash."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `VetoOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] + #[doc = ""] + #[doc = "Emits `Vetoed`."] + #[doc = ""] + #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] pub fn veto_external( &self, proposal_hash: types::veto_external::ProposalHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "veto_external", types::VetoExternal { proposal_hash }, @@ -11831,12 +14432,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_referendum`]."] + #[doc = "Remove a referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "# Weight: `O(1)`."] pub fn cancel_referendum( &self, ref_index: types::cancel_referendum::RefIndex, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "cancel_referendum", types::CancelReferendum { ref_index }, @@ -11848,14 +14455,33 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::delegate`]."] + #[doc = "Delegate the voting power (with some given conviction) of the sending account."] + #[doc = ""] + #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] + #[doc = "time appropriate for the conviction's lock period."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] + #[doc = " - be delegating already; or"] + #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] + #[doc = " through `reap_vote` or `unvote`)."] + #[doc = ""] + #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] + #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] + #[doc = " account is undelegated, the funds will be locked for the corresponding period."] + #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] + #[doc = " be more than the account's current balance."] + #[doc = ""] + #[doc = "Emits `Delegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] pub fn delegate( &self, to: types::delegate::To, conviction: types::delegate::Conviction, balance: types::delegate::Balance, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "delegate", types::Delegate { to, conviction, balance }, @@ -11866,11 +14492,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::undelegate`]."] + #[doc = "Undelegate the voting power of the sending account."] + #[doc = ""] + #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] + #[doc = "of the conviction with which the delegation was issued."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] + #[doc = "currently delegating."] + #[doc = ""] + #[doc = "Emits `Undelegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] pub fn undelegate( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "undelegate", types::Undelegate {}, @@ -11882,11 +14519,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clear_public_proposals`]."] + #[doc = "Clears all public proposals."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] pub fn clear_public_proposals( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "clear_public_proposals", types::ClearPublicProposals {}, @@ -11898,12 +14540,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unlock`]."] + #[doc = "Unlock tokens that have an expired lock."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account to remove the lock on."] + #[doc = ""] + #[doc = "Weight: `O(R)` with R number of vote of target."] pub fn unlock( &self, target: types::unlock::Target, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "unlock", types::Unlock { target }, @@ -11915,12 +14563,38 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_vote`]."] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If:"] + #[doc = "- the referendum was cancelled, or"] + #[doc = "- the referendum is ongoing, or"] + #[doc = "- the referendum has ended such that"] + #[doc = " - the vote of the account was in opposition to the result; or"] + #[doc = " - there was no conviction to the account's vote; or"] + #[doc = " - the account made a split vote"] + #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] + #[doc = "funds being available."] + #[doc = ""] + #[doc = "If, however, the referendum has ended and:"] + #[doc = "- it finished corresponding to the vote of the account, and"] + #[doc = "- the account made a standard vote with conviction, and"] + #[doc = "- the lock period of the conviction is not over"] + #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] + #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] + #[doc = "of both the amount locked and the time is it locked for)."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] + #[doc = "registered for referendum `index`."] + #[doc = ""] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] pub fn remove_vote( &self, index: types::remove_vote::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "remove_vote", types::RemoveVote { index }, @@ -11932,13 +14606,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_other_vote`]."] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] + #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] + #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] + #[doc = "because the conviction period is over."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] + #[doc = " referendum `index`."] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] pub fn remove_other_vote( &self, target: types::remove_other_vote::Target, index: types::remove_other_vote::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "remove_other_vote", types::RemoveOtherVote { target, index }, @@ -11949,13 +14637,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::blacklist`]."] + #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] + #[doc = "proposed again."] + #[doc = ""] + #[doc = "If called on a queued public or external proposal, then this will result in it being"] + #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] + #[doc = "then it will be cancelled."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] + #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] + #[doc = "cancelled."] + #[doc = ""] + #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] + #[doc = " reasonable value)."] pub fn blacklist( &self, proposal_hash: types::blacklist::ProposalHash, maybe_ref_index: types::blacklist::MaybeRefIndex, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "blacklist", types::Blacklist { proposal_hash, maybe_ref_index }, @@ -11967,12 +14669,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_proposal`]."] + #[doc = "Remove a proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] + #[doc = ""] + #[doc = "- `prop_index`: The index of the proposal to cancel."] + #[doc = ""] + #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] pub fn cancel_proposal( &self, prop_index: types::cancel_proposal::PropIndex, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "cancel_proposal", types::CancelProposal { prop_index }, @@ -11983,13 +14691,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_metadata`]."] + #[doc = "Set or clear a metadata of a proposal or a referendum."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] + #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] + #[doc = " threshold."] + #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] + #[doc = " threshold."] + #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] + #[doc = " threshold."] + #[doc = " - `Signed` by a creator for a public proposal."] + #[doc = " - `Signed` to clear a metadata for a finished referendum."] + #[doc = " - `Root` to set a metadata for an ongoing referendum."] + #[doc = "- `owner`: an identifier of a metadata owner."] + #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] pub fn set_metadata( &self, owner: types::set_metadata::Owner, maybe_hash: types::set_metadata::MaybeHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Democracy", "set_metadata", types::SetMetadata { owner, maybe_hash }, @@ -12007,18 +14729,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A motion has been proposed by a public account."] pub struct Proposed { pub proposal_index: proposed::ProposalIndex, @@ -12029,23 +14751,23 @@ pub mod api { pub type ProposalIndex = ::core::primitive::u32; pub type Deposit = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Proposed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Proposed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Proposed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A public proposal has been tabled for referendum vote."] pub struct Tabled { pub proposal_index: tabled::ProposalIndex, @@ -12056,42 +14778,42 @@ pub mod api { pub type ProposalIndex = ::core::primitive::u32; pub type Deposit = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Tabled { + impl ::subxt::ext::subxt_core::events::StaticEvent for Tabled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Tabled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An external proposal has been tabled."] pub struct ExternalTabled; - impl ::subxt_core::events::StaticEvent for ExternalTabled { + impl ::subxt::ext::subxt_core::events::StaticEvent for ExternalTabled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ExternalTabled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A referendum has begun."] pub struct Started { pub ref_index: started::RefIndex, @@ -12102,23 +14824,23 @@ pub mod api { pub type RefIndex = ::core::primitive::u32; pub type Threshold = runtime_types::pallet_democracy::vote_threshold::VoteThreshold; } - impl ::subxt_core::events::StaticEvent for Started { + impl ::subxt::ext::subxt_core::events::StaticEvent for Started { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Started"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proposal has been approved by referendum."] pub struct Passed { pub ref_index: passed::RefIndex, @@ -12127,23 +14849,23 @@ pub mod api { use super::runtime_types; pub type RefIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Passed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Passed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Passed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proposal has been rejected by referendum."] pub struct NotPassed { pub ref_index: not_passed::RefIndex, @@ -12152,23 +14874,23 @@ pub mod api { use super::runtime_types; pub type RefIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for NotPassed { + impl ::subxt::ext::subxt_core::events::StaticEvent for NotPassed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "NotPassed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A referendum has been cancelled."] pub struct Cancelled { pub ref_index: cancelled::RefIndex, @@ -12177,23 +14899,23 @@ pub mod api { use super::runtime_types; pub type RefIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Cancelled { + impl ::subxt::ext::subxt_core::events::StaticEvent for Cancelled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Cancelled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has delegated their vote to another account."] pub struct Delegated { pub who: delegated::Who, @@ -12201,51 +14923,51 @@ pub mod api { } pub mod delegated { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; - pub type Target = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Target = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Delegated { + impl ::subxt::ext::subxt_core::events::StaticEvent for Delegated { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Delegated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has cancelled a previous delegation operation."] pub struct Undelegated { pub account: undelegated::Account, } pub mod undelegated { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Undelegated { + impl ::subxt::ext::subxt_core::events::StaticEvent for Undelegated { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Undelegated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An external proposal has been vetoed."] pub struct Vetoed { pub who: vetoed::Who, @@ -12254,52 +14976,52 @@ pub mod api { } pub mod vetoed { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type Until = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for Vetoed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Vetoed { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Vetoed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proposal_hash has been blacklisted permanently."] pub struct Blacklisted { pub proposal_hash: blacklisted::ProposalHash, } pub mod blacklisted { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Blacklisted { + impl ::subxt::ext::subxt_core::events::StaticEvent for Blacklisted { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Blacklisted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has voted in a referendum"] pub struct Voted { pub voter: voted::Voter, @@ -12308,55 +15030,55 @@ pub mod api { } pub mod voted { use super::runtime_types; - pub type Voter = ::subxt_core::utils::AccountId32; + pub type Voter = ::subxt::ext::subxt_core::utils::AccountId32; pub type RefIndex = ::core::primitive::u32; pub type Vote = runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>; } - impl ::subxt_core::events::StaticEvent for Voted { + impl ::subxt::ext::subxt_core::events::StaticEvent for Voted { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Voted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "An account has secconded a proposal"] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "An account has seconded a proposal"] pub struct Seconded { pub seconder: seconded::Seconder, pub prop_index: seconded::PropIndex, } pub mod seconded { use super::runtime_types; - pub type Seconder = ::subxt_core::utils::AccountId32; + pub type Seconder = ::subxt::ext::subxt_core::utils::AccountId32; pub type PropIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Seconded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Seconded { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Seconded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proposal got canceled."] pub struct ProposalCanceled { pub prop_index: proposal_canceled::PropIndex, @@ -12365,23 +15087,23 @@ pub mod api { use super::runtime_types; pub type PropIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for ProposalCanceled { + impl ::subxt::ext::subxt_core::events::StaticEvent for ProposalCanceled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ProposalCanceled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Metadata for a proposal or a referendum has been set."] pub struct MetadataSet { pub owner: metadata_set::Owner, @@ -12390,25 +15112,25 @@ pub mod api { pub mod metadata_set { use super::runtime_types; pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for MetadataSet { + impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataSet { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataSet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Metadata for a proposal or a referendum has been cleared."] pub struct MetadataCleared { pub owner: metadata_cleared::Owner, @@ -12417,25 +15139,25 @@ pub mod api { pub mod metadata_cleared { use super::runtime_types; pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for MetadataCleared { + impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataCleared { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataCleared"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Metadata has been transferred to new owner."] pub struct MetadataTransferred { pub prev_owner: metadata_transferred::PrevOwner, @@ -12446,9 +15168,9 @@ pub mod api { use super::runtime_types; pub type PrevOwner = runtime_types::pallet_democracy::types::MetadataOwner; pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for MetadataTransferred { + impl ::subxt::ext::subxt_core::events::StaticEvent for MetadataTransferred { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataTransferred"; } @@ -12470,14 +15192,14 @@ pub mod api { runtime_types::tangle_testnet_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>; } pub mod deposit_of { use super::runtime_types; pub type DepositOf = ( runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, ::core::primitive::u128, ); @@ -12508,10 +15230,10 @@ pub mod api { use super::runtime_types; pub type VotingOf = runtime_types::pallet_democracy::vote::Voting< ::core::primitive::u128, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod last_tabled_was_external { use super::runtime_types; @@ -12532,19 +15254,19 @@ pub mod api { pub type Blacklist = ( ::core::primitive::u64, runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, ); - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod cancellations { use super::runtime_types; pub type Cancellations = ::core::primitive::bool; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod metadata_of { use super::runtime_types; - pub type MetadataOf = ::subxt_core::utils::H256; + pub type MetadataOf = ::subxt::ext::subxt_core::utils::H256; pub type Param0 = runtime_types::pallet_democracy::types::MetadataOwner; } } @@ -12553,14 +15275,14 @@ pub mod api { #[doc = " The number of (public) proposals that have been made so far."] pub fn public_prop_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::public_prop_count::PublicPropCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "PublicPropCount", (), @@ -12575,14 +15297,14 @@ pub mod api { #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::public_props::PublicProps, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "PublicProps", (), @@ -12598,14 +15320,14 @@ pub mod api { #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::deposit_of::DepositOf, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "DepositOf", (), @@ -12622,17 +15344,21 @@ pub mod api { pub fn deposit_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::deposit_of::Param0, + >, types::deposit_of::DepositOf, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "DepositOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, @@ -12643,14 +15369,14 @@ pub mod api { #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::referendum_count::ReferendumCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "ReferendumCount", (), @@ -12666,14 +15392,14 @@ pub mod api { #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] pub fn lowest_unbaked( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::lowest_unbaked::LowestUnbaked, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "LowestUnbaked", (), @@ -12689,14 +15415,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::referendum_info_of::ReferendumInfoOf, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "ReferendumInfoOf", (), @@ -12714,19 +15440,21 @@ pub mod api { pub fn referendum_info_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::referendum_info_of::Param0, >, types::referendum_info_of::ReferendumInfoOf, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "ReferendumInfoOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 217u8, 175u8, 87u8, 114u8, 161u8, 182u8, 123u8, 182u8, 138u8, 13u8, 118u8, 20u8, 166u8, 149u8, 55u8, 214u8, 114u8, 159u8, 92u8, 25u8, 27u8, @@ -12741,14 +15469,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::voting_of::VotingOf, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "VotingOf", (), @@ -12766,17 +15494,21 @@ pub mod api { pub fn voting_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::voting_of::Param0, + >, types::voting_of::VotingOf, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "VotingOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 186u8, 236u8, 158u8, 48u8, 144u8, 152u8, 83u8, 86u8, 60u8, 19u8, 171u8, 90u8, 26u8, 143u8, 170u8, 108u8, 82u8, 2u8, 38u8, 163u8, 80u8, 8u8, @@ -12788,14 +15520,14 @@ pub mod api { #[doc = " proposal."] pub fn last_tabled_was_external( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::last_tabled_was_external::LastTabledWasExternal, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "LastTabledWasExternal", (), @@ -12812,14 +15544,14 @@ pub mod api { #[doc = " - `PublicProps` is empty."] pub fn next_external( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_external::NextExternal, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "NextExternal", (), @@ -12835,14 +15567,14 @@ pub mod api { #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::blacklist::Blacklist, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "Blacklist", (), @@ -12859,17 +15591,21 @@ pub mod api { pub fn blacklist( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::blacklist::Param0, + >, types::blacklist::Blacklist, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "Blacklist", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 154u8, 19u8, 120u8, 140u8, 124u8, 231u8, 105u8, 73u8, 99u8, 132u8, 186u8, 213u8, 121u8, 255u8, 5u8, 160u8, 95u8, 68u8, 229u8, 185u8, @@ -12881,14 +15617,14 @@ pub mod api { #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::cancellations::Cancellations, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "Cancellations", (), @@ -12904,17 +15640,21 @@ pub mod api { pub fn cancellations( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::cancellations::Param0, + >, types::cancellations::Cancellations, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "Cancellations", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, @@ -12931,14 +15671,14 @@ pub mod api { #[doc = " large preimages."] pub fn metadata_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::metadata_of::MetadataOf, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "MetadataOf", (), @@ -12959,17 +15699,21 @@ pub mod api { pub fn metadata_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::metadata_of::Param0, + >, types::metadata_of::MetadataOf, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Democracy", "MetadataOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 52u8, 151u8, 124u8, 110u8, 85u8, 173u8, 181u8, 86u8, 174u8, 183u8, 102u8, 22u8, 8u8, 36u8, 224u8, 114u8, 98u8, 0u8, 220u8, 215u8, 19u8, @@ -12991,8 +15735,10 @@ pub mod api { #[doc = " where they are on the losing side of a vote."] pub fn enactment_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "EnactmentPeriod", [ @@ -13006,8 +15752,10 @@ pub mod api { #[doc = " How often (in blocks) new public referenda are launched."] pub fn launch_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "LaunchPeriod", [ @@ -13021,8 +15769,10 @@ pub mod api { #[doc = " How often (in blocks) to check for new votes."] pub fn voting_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "VotingPeriod", [ @@ -13039,8 +15789,10 @@ pub mod api { #[doc = " those successful voters are locked into the consequences that their votes entail."] pub fn vote_locking_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "VoteLockingPeriod", [ @@ -13054,8 +15806,10 @@ pub mod api { #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn minimum_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "MinimumDeposit", [ @@ -13070,8 +15824,10 @@ pub mod api { #[doc = " as an upgrade having happened recently."] pub fn instant_allowed( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::bool> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::bool, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "InstantAllowed", [ @@ -13084,8 +15840,10 @@ pub mod api { #[doc = " Minimum voting period allowed for a fast-track referendum."] pub fn fast_track_voting_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "FastTrackVotingPeriod", [ @@ -13099,8 +15857,10 @@ pub mod api { #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] pub fn cooloff_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "CooloffPeriod", [ @@ -13117,8 +15877,10 @@ pub mod api { #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] pub fn max_votes( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "MaxVotes", [ @@ -13132,8 +15894,10 @@ pub mod api { #[doc = " The maximum number of public proposals that can exist at any time."] pub fn max_proposals( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "MaxProposals", [ @@ -13147,8 +15911,10 @@ pub mod api { #[doc = " The maximum number of deposits a public proposal may have at any time."] pub fn max_deposits( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "MaxDeposits", [ @@ -13162,8 +15928,10 @@ pub mod api { #[doc = " The maximum number of items which can be blacklisted."] pub fn max_blacklisted( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Democracy", "MaxBlacklisted", [ @@ -13191,19 +15959,46 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_members`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "The dispatch of this call must be `SetMembersOrigin`."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] pub struct SetMembers { pub new_members: set_members::NewMembers, pub prime: set_members::Prime, @@ -13211,31 +16006,45 @@ pub mod api { } pub mod set_members { use super::runtime_types; - pub type NewMembers = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; - pub type Prime = ::core::option::Option<::subxt_core::utils::AccountId32>; + pub type NewMembers = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; + pub type Prime = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; pub type OldCount = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMembers { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMembers { const PALLET: &'static str = "Council"; const CALL: &'static str = "set_members"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(B + M + P)` where:"] + #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = "- `M` members-count (code-bounded)"] + #[doc = "- `P` complexity of dispatching `proposal`"] pub struct Execute { - pub proposal: ::subxt_core::alloc::boxed::Box, + pub proposal: ::subxt::ext::subxt_core::alloc::boxed::Box, #[codec(compact)] pub length_bound: execute::LengthBound, } @@ -13244,28 +16053,45 @@ pub mod api { pub type Proposal = runtime_types::tangle_testnet_runtime::RuntimeCall; pub type LengthBound = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Execute { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Execute { const PALLET: &'static str = "Council"; const CALL: &'static str = "execute"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::propose`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] pub struct Propose { #[codec(compact)] pub threshold: propose::Threshold, - pub proposal: ::subxt_core::alloc::boxed::Box, + pub proposal: ::subxt::ext::subxt_core::alloc::boxed::Box, #[codec(compact)] pub length_bound: propose::LengthBound, } @@ -13275,24 +16101,36 @@ pub mod api { pub type Proposal = runtime_types::tangle_testnet_runtime::RuntimeCall; pub type LengthBound = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Propose { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Propose { const PALLET: &'static str = "Council"; const CALL: &'static str = "propose"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::vote`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "## Complexity"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] pub struct Vote { pub proposal: vote::Proposal, #[codec(compact)] @@ -13301,53 +16139,93 @@ pub mod api { } pub mod vote { use super::runtime_types; - pub type Proposal = ::subxt_core::utils::H256; + pub type Proposal = ::subxt::ext::subxt_core::utils::H256; pub type Index = ::core::primitive::u32; pub type Approve = ::core::primitive::bool; } - impl ::subxt_core::blocks::StaticExtrinsic for Vote { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Council"; const CALL: &'static str = "vote"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::disapprove_proposal`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(P) where P is the number of max proposals"] pub struct DisapproveProposal { pub proposal_hash: disapprove_proposal::ProposalHash, } pub mod disapprove_proposal { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for DisapproveProposal { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DisapproveProposal { const PALLET: &'static str = "Council"; const CALL: &'static str = "disapprove_proposal"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::close`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] pub struct Close { pub proposal_hash: close::ProposalHash, #[codec(compact)] @@ -13358,26 +16236,49 @@ pub mod api { } pub mod close { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type Index = ::core::primitive::u32; pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; pub type LengthBound = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Close { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Close { const PALLET: &'static str = "Council"; const CALL: &'static str = "close"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::set_members`]."] + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "The dispatch of this call must be `SetMembersOrigin`."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] pub fn set_members( &self, new_members: types::set_members::NewMembers, prime: types::set_members::Prime, old_count: types::set_members::OldCount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Council", "set_members", types::SetMembers { new_members, prime, old_count }, @@ -13389,57 +16290,86 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::execute`]."] + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(B + M + P)` where:"] + #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = "- `M` members-count (code-bounded)"] + #[doc = "- `P` complexity of dispatching `proposal`"] pub fn execute( &self, proposal: types::execute::Proposal, length_bound: types::execute::LengthBound, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Council", "execute", types::Execute { - proposal: ::subxt_core::alloc::boxed::Box::new(proposal), + proposal: ::subxt::ext::subxt_core::alloc::boxed::Box::new(proposal), length_bound, }, [ - 254u8, 173u8, 133u8, 81u8, 122u8, 133u8, 167u8, 0u8, 189u8, 134u8, - 127u8, 121u8, 9u8, 108u8, 152u8, 92u8, 76u8, 20u8, 235u8, 39u8, 208u8, - 192u8, 228u8, 164u8, 232u8, 235u8, 214u8, 7u8, 158u8, 121u8, 127u8, - 19u8, + 173u8, 44u8, 27u8, 53u8, 140u8, 187u8, 176u8, 115u8, 228u8, 177u8, + 223u8, 203u8, 251u8, 255u8, 161u8, 156u8, 139u8, 226u8, 227u8, 40u8, + 126u8, 3u8, 11u8, 65u8, 89u8, 91u8, 117u8, 159u8, 63u8, 151u8, 18u8, + 92u8, ], ) } - #[doc = "See [`Pallet::propose`]."] + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] pub fn propose( &self, threshold: types::propose::Threshold, proposal: types::propose::Proposal, length_bound: types::propose::LengthBound, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Council", "propose", types::Propose { threshold, - proposal: ::subxt_core::alloc::boxed::Box::new(proposal), + proposal: ::subxt::ext::subxt_core::alloc::boxed::Box::new(proposal), length_bound, }, [ - 70u8, 218u8, 130u8, 165u8, 153u8, 216u8, 144u8, 84u8, 163u8, 109u8, - 147u8, 71u8, 135u8, 174u8, 55u8, 222u8, 135u8, 86u8, 8u8, 71u8, 216u8, - 36u8, 105u8, 238u8, 111u8, 88u8, 62u8, 223u8, 90u8, 30u8, 22u8, 165u8, + 248u8, 58u8, 225u8, 29u8, 65u8, 87u8, 2u8, 173u8, 85u8, 204u8, 233u8, + 227u8, 142u8, 209u8, 224u8, 194u8, 181u8, 106u8, 230u8, 80u8, 78u8, + 36u8, 200u8, 31u8, 217u8, 217u8, 185u8, 253u8, 84u8, 233u8, 199u8, 3u8, ], ) } - #[doc = "See [`Pallet::vote`]."] + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "## Complexity"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] pub fn vote( &self, proposal: types::vote::Proposal, index: types::vote::Index, approve: types::vote::Approve, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Council", "vote", types::Vote { proposal, index, approve }, @@ -13451,12 +16381,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::disapprove_proposal`]."] + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(P) where P is the number of max proposals"] pub fn disapprove_proposal( &self, proposal_hash: types::disapprove_proposal::ProposalHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Council", "disapprove_proposal", types::DisapproveProposal { proposal_hash }, @@ -13467,15 +16407,38 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::close`]."] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] pub fn close( &self, proposal_hash: types::close::ProposalHash, index: types::close::Index, proposal_weight_bound: types::close::ProposalWeightBound, length_bound: types::close::LengthBound, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Council", "close", types::Close { proposal_hash, index, proposal_weight_bound, length_bound }, @@ -13493,18 +16456,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] pub struct Proposed { @@ -13515,28 +16478,28 @@ pub mod api { } pub mod proposed { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; pub type ProposalIndex = ::core::primitive::u32; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type Threshold = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Proposed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Proposed { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Proposed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] pub struct Voted { @@ -13548,79 +16511,79 @@ pub mod api { } pub mod voted { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type Voted = ::core::primitive::bool; pub type Yes = ::core::primitive::u32; pub type No = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Voted { + impl ::subxt::ext::subxt_core::events::StaticEvent for Voted { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Voted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A motion was approved by the required threshold."] pub struct Approved { pub proposal_hash: approved::ProposalHash, } pub mod approved { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Approved { + impl ::subxt::ext::subxt_core::events::StaticEvent for Approved { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Approved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { pub proposal_hash: disapproved::ProposalHash, } pub mod disapproved { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Disapproved { + impl ::subxt::ext::subxt_core::events::StaticEvent for Disapproved { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Disapproved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { pub proposal_hash: executed::ProposalHash, @@ -13628,27 +16591,27 @@ pub mod api { } pub mod executed { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for Executed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Executed { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Executed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { pub proposal_hash: member_executed::ProposalHash, @@ -13656,27 +16619,27 @@ pub mod api { } pub mod member_executed { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for MemberExecuted { + impl ::subxt::ext::subxt_core::events::StaticEvent for MemberExecuted { const PALLET: &'static str = "Council"; const EVENT: &'static str = "MemberExecuted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { pub proposal_hash: closed::ProposalHash, @@ -13685,11 +16648,11 @@ pub mod api { } pub mod closed { use super::runtime_types; - pub type ProposalHash = ::subxt_core::utils::H256; + pub type ProposalHash = ::subxt::ext::subxt_core::utils::H256; pub type Yes = ::core::primitive::u32; pub type No = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Closed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Closed { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Closed"; } @@ -13702,21 +16665,21 @@ pub mod api { use super::runtime_types; pub type Proposals = runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, >; } pub mod proposal_of { use super::runtime_types; pub type ProposalOf = runtime_types::tangle_testnet_runtime::RuntimeCall; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod voting { use super::runtime_types; pub type Voting = runtime_types::pallet_collective::Votes< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64, >; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod proposal_count { use super::runtime_types; @@ -13724,12 +16687,13 @@ pub mod api { } pub mod members { use super::runtime_types; - pub type Members = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Members = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } pub mod prime { use super::runtime_types; - pub type Prime = ::subxt_core::utils::AccountId32; + pub type Prime = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -13737,14 +16701,14 @@ pub mod api { #[doc = " The hashes of the active proposals."] pub fn proposals( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::proposals::Proposals, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "Proposals", (), @@ -13758,22 +16722,22 @@ pub mod api { #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::proposal_of::ProposalOf, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "ProposalOf", (), [ - 157u8, 0u8, 148u8, 205u8, 91u8, 212u8, 243u8, 6u8, 195u8, 207u8, 126u8, - 106u8, 223u8, 18u8, 139u8, 49u8, 75u8, 180u8, 82u8, 117u8, 254u8, - 150u8, 117u8, 61u8, 180u8, 109u8, 18u8, 202u8, 107u8, 254u8, 26u8, - 223u8, + 69u8, 56u8, 196u8, 36u8, 203u8, 152u8, 194u8, 227u8, 119u8, 22u8, + 182u8, 148u8, 116u8, 3u8, 94u8, 226u8, 177u8, 149u8, 232u8, 247u8, + 112u8, 177u8, 142u8, 35u8, 118u8, 234u8, 31u8, 228u8, 164u8, 10u8, + 93u8, 194u8, ], ) } @@ -13781,36 +16745,40 @@ pub mod api { pub fn proposal_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::proposal_of::Param0, + >, types::proposal_of::ProposalOf, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "ProposalOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 157u8, 0u8, 148u8, 205u8, 91u8, 212u8, 243u8, 6u8, 195u8, 207u8, 126u8, - 106u8, 223u8, 18u8, 139u8, 49u8, 75u8, 180u8, 82u8, 117u8, 254u8, - 150u8, 117u8, 61u8, 180u8, 109u8, 18u8, 202u8, 107u8, 254u8, 26u8, - 223u8, + 69u8, 56u8, 196u8, 36u8, 203u8, 152u8, 194u8, 227u8, 119u8, 22u8, + 182u8, 148u8, 116u8, 3u8, 94u8, 226u8, 177u8, 149u8, 232u8, 247u8, + 112u8, 177u8, 142u8, 35u8, 118u8, 234u8, 31u8, 228u8, 164u8, 10u8, + 93u8, 194u8, ], ) } #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::voting::Voting, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "Voting", (), @@ -13825,17 +16793,21 @@ pub mod api { pub fn voting( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::voting::Param0, + >, types::voting::Voting, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "Voting", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 224u8, 140u8, 244u8, 24u8, 39u8, 198u8, 146u8, 44u8, 158u8, 251u8, 1u8, 108u8, 40u8, 35u8, 34u8, 27u8, 98u8, 168u8, 153u8, 39u8, 174u8, 84u8, @@ -13846,14 +16818,14 @@ pub mod api { #[doc = " Proposals so far."] pub fn proposal_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::proposal_count::ProposalCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "ProposalCount", (), @@ -13867,14 +16839,14 @@ pub mod api { #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::members::Members, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "Members", (), @@ -13885,17 +16857,17 @@ pub mod api { ], ) } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] + #[doc = " The prime member that helps determine the default vote behavior in case of abstentions."] pub fn prime( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::prime::Prime, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Council", "Prime", (), @@ -13915,10 +16887,10 @@ pub mod api { #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] pub fn max_proposal_weight( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_weights::weight_v2::Weight, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Council", "MaxProposalWeight", [ @@ -13946,74 +16918,116 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::vest`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unlock any vested funds of the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] + #[doc = "locked under this pallet."] + #[doc = ""] + #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct Vest; - impl ::subxt_core::blocks::StaticExtrinsic for Vest { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Vest { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "vest"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::vest_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unlock any vested funds of a `target` account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] + #[doc = "locked under this pallet."] + #[doc = ""] + #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct VestOther { pub target: vest_other::Target, } pub mod vest_other { use super::runtime_types; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for VestOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for VestOther { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "vest_other"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::vested_transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Create a vested transfer."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account receiving the vested funds."] + #[doc = "- `schedule`: The vesting schedule attached to the transfer."] + #[doc = ""] + #[doc = "Emits `VestingCreated`."] + #[doc = ""] + #[doc = "NOTE: This will unlock all schedules through the current block."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct VestedTransfer { pub target: vested_transfer::Target, pub schedule: vested_transfer::Schedule, } pub mod vested_transfer { use super::runtime_types; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -14021,24 +17035,41 @@ pub mod api { ::core::primitive::u64, >; } - impl ::subxt_core::blocks::StaticExtrinsic for VestedTransfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for VestedTransfer { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "vested_transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_vested_transfer`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force a vested transfer."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `source`: The account whose funds should be transferred."] + #[doc = "- `target`: The account that should be transferred the vested funds."] + #[doc = "- `schedule`: The vesting schedule attached to the transfer."] + #[doc = ""] + #[doc = "Emits `VestingCreated`."] + #[doc = ""] + #[doc = "NOTE: This will unlock all schedules through the current block."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub struct ForceVestedTransfer { pub source: force_vested_transfer::Source, pub target: force_vested_transfer::Target, @@ -14046,12 +17077,12 @@ pub mod api { } pub mod force_vested_transfer { use super::runtime_types; - pub type Source = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Source = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -14059,24 +17090,48 @@ pub mod api { ::core::primitive::u64, >; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceVestedTransfer { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceVestedTransfer { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "force_vested_transfer"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::merge_schedules`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] + #[doc = "the highest possible start and end blocks. If both schedules have already started the"] + #[doc = "current block will be used as the schedule start; with the caveat that if one schedule"] + #[doc = "is finished by the current block, the other will be treated as the new merged schedule,"] + #[doc = "unmodified."] + #[doc = ""] + #[doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] + #[doc = "NOTE: This will unlock all schedules through the current block prior to merging."] + #[doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] + #[doc = "and both will be removed."] + #[doc = ""] + #[doc = "Merged schedule attributes:"] + #[doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] + #[doc = " current_block)`."] + #[doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] + #[doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `schedule1_index`: index of the first schedule to merge."] + #[doc = "- `schedule2_index`: index of the second schedule to merge."] pub struct MergeSchedules { pub schedule1_index: merge_schedules::Schedule1Index, pub schedule2_index: merge_schedules::Schedule2Index, @@ -14086,46 +17141,65 @@ pub mod api { pub type Schedule1Index = ::core::primitive::u32; pub type Schedule2Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for MergeSchedules { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for MergeSchedules { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "merge_schedules"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force remove a vesting schedule"] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `target`: An account that has a vesting schedule"] + #[doc = "- `schedule_index`: The vesting schedule index that should be removed"] pub struct ForceRemoveVestingSchedule { pub target: force_remove_vesting_schedule::Target, pub schedule_index: force_remove_vesting_schedule::ScheduleIndex, } pub mod force_remove_vesting_schedule { use super::runtime_types; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type ScheduleIndex = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceRemoveVestingSchedule { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceRemoveVestingSchedule { const PALLET: &'static str = "Vesting"; const CALL: &'static str = "force_remove_vesting_schedule"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::vest`]."] - pub fn vest(&self) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + #[doc = "Unlock any vested funds of the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] + #[doc = "locked under this pallet."] + #[doc = ""] + #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] + pub fn vest( + &self, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Vesting", "vest", types::Vest {}, @@ -14137,12 +17211,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::vest_other`]."] + #[doc = "Unlock any vested funds of a `target` account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] + #[doc = "locked under this pallet."] + #[doc = ""] + #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn vest_other( &self, target: types::vest_other::Target, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Vesting", "vest_other", types::VestOther { target }, @@ -14153,13 +17237,25 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::vested_transfer`]."] + #[doc = "Create a vested transfer."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account receiving the vested funds."] + #[doc = "- `schedule`: The vesting schedule attached to the transfer."] + #[doc = ""] + #[doc = "Emits `VestingCreated`."] + #[doc = ""] + #[doc = "NOTE: This will unlock all schedules through the current block."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn vested_transfer( &self, target: types::vested_transfer::Target, schedule: types::vested_transfer::Schedule, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Vesting", "vested_transfer", types::VestedTransfer { target, schedule }, @@ -14171,14 +17267,28 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_vested_transfer`]."] + #[doc = "Force a vested transfer."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `source`: The account whose funds should be transferred."] + #[doc = "- `target`: The account that should be transferred the vested funds."] + #[doc = "- `schedule`: The vesting schedule attached to the transfer."] + #[doc = ""] + #[doc = "Emits `VestingCreated`."] + #[doc = ""] + #[doc = "NOTE: This will unlock all schedules through the current block."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] pub fn force_vested_transfer( &self, source: types::force_vested_transfer::Source, target: types::force_vested_transfer::Target, schedule: types::force_vested_transfer::Schedule, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Vesting", "force_vested_transfer", types::ForceVestedTransfer { source, target, schedule }, @@ -14189,13 +17299,33 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::merge_schedules`]."] + #[doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] + #[doc = "the highest possible start and end blocks. If both schedules have already started the"] + #[doc = "current block will be used as the schedule start; with the caveat that if one schedule"] + #[doc = "is finished by the current block, the other will be treated as the new merged schedule,"] + #[doc = "unmodified."] + #[doc = ""] + #[doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] + #[doc = "NOTE: This will unlock all schedules through the current block prior to merging."] + #[doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] + #[doc = "and both will be removed."] + #[doc = ""] + #[doc = "Merged schedule attributes:"] + #[doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] + #[doc = " current_block)`."] + #[doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] + #[doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `schedule1_index`: index of the first schedule to merge."] + #[doc = "- `schedule2_index`: index of the second schedule to merge."] pub fn merge_schedules( &self, schedule1_index: types::merge_schedules::Schedule1Index, schedule2_index: types::merge_schedules::Schedule2Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Vesting", "merge_schedules", types::MergeSchedules { schedule1_index, schedule2_index }, @@ -14206,13 +17336,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] + #[doc = "Force remove a vesting schedule"] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `target`: An account that has a vesting schedule"] + #[doc = "- `schedule_index`: The vesting schedule index that should be removed"] pub fn force_remove_vesting_schedule( &self, target: types::force_remove_vesting_schedule::Target, schedule_index: types::force_remove_vesting_schedule::ScheduleIndex, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ForceRemoveVestingSchedule, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Vesting", "force_remove_vesting_schedule", types::ForceRemoveVestingSchedule { target, schedule_index }, @@ -14231,18 +17368,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { @@ -14251,35 +17388,35 @@ pub mod api { } pub mod vesting_updated { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; pub type Unvested = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for VestingUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for VestingUpdated { const PALLET: &'static str = "Vesting"; const EVENT: &'static str = "VestingUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { pub account: vesting_completed::Account, } pub mod vesting_completed { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for VestingCompleted { + impl ::subxt::ext::subxt_core::events::StaticEvent for VestingCompleted { const PALLET: &'static str = "Vesting"; const EVENT: &'static str = "VestingCompleted"; } @@ -14296,7 +17433,7 @@ pub mod api { ::core::primitive::u64, >, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod storage_version { use super::runtime_types; @@ -14308,14 +17445,14 @@ pub mod api { #[doc = " Information regarding the vesting of a given account."] pub fn vesting_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::vesting::Vesting, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Vesting", "Vesting", (), @@ -14330,17 +17467,21 @@ pub mod api { pub fn vesting( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::vesting::Param0, + >, types::vesting::Vesting, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Vesting", "Vesting", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 37u8, 146u8, 66u8, 220u8, 99u8, 154u8, 82u8, 170u8, 197u8, 250u8, 73u8, 125u8, 96u8, 104u8, 37u8, 226u8, 30u8, 111u8, 75u8, 18u8, 130u8, 206u8, @@ -14353,14 +17494,14 @@ pub mod api { #[doc = " New networks start with latest version, as determined by the genesis build."] pub fn storage_version( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::storage_version::StorageVersion, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Vesting", "StorageVersion", (), @@ -14380,8 +17521,10 @@ pub mod api { #[doc = " The minimum amount transferred to call `vested_transfer`."] pub fn min_vested_transfer( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Vesting", "MinVestedTransfer", [ @@ -14393,8 +17536,10 @@ pub mod api { } pub fn max_vesting_schedules( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Vesting", "MaxVestingSchedules", [ @@ -14422,19 +17567,41 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::vote`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] + #[doc = "set the initial votes, or update already existing votes."] + #[doc = ""] + #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] + #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] + #[doc = ""] + #[doc = "The `votes` should:"] + #[doc = " - not be empty."] + #[doc = " - be less than the number of possible candidates. Note that all current members and"] + #[doc = " runners-up are also automatically candidates for the next round."] + #[doc = ""] + #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] + #[doc = "lock and keep some for further operations."] pub struct Vote { pub votes: vote::Votes, #[codec(compact)] @@ -14442,47 +17609,74 @@ pub mod api { } pub mod vote { use super::runtime_types; - pub type Votes = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Votes = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Vote { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Elections"; const CALL: &'static str = "vote"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_voter`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove `origin` as a voter."] + #[doc = ""] + #[doc = "This removes the lock and returns the deposit."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed and be a voter."] pub struct RemoveVoter; - impl ::subxt_core::blocks::StaticExtrinsic for RemoveVoter { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveVoter { const PALLET: &'static str = "Elections"; const CALL: &'static str = "remove_voter"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::submit_candidacy`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] + #[doc = ""] + #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] + #[doc = "or leave the system while their deposit is slashed."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] + #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] + #[doc = ""] + #[doc = "The number of current candidates must be provided as witness data."] + #[doc = "## Complexity"] + #[doc = "O(C + log(C)) where C is candidate_count."] pub struct SubmitCandidacy { #[codec(compact)] pub candidate_count: submit_candidacy::CandidateCount, @@ -14491,24 +17685,47 @@ pub mod api { use super::runtime_types; pub type CandidateCount = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for SubmitCandidacy { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SubmitCandidacy { const PALLET: &'static str = "Elections"; const CALL: &'static str = "submit_candidacy"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::renounce_candidacy`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] + #[doc = "outcomes exist:"] + #[doc = ""] + #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] + #[doc = " unreserved, returned and origin is removed as a candidate."] + #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] + #[doc = " origin is removed as a runner-up."] + #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] + #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] + #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] + #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] + #[doc = " next round."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] + #[doc = "The type of renouncing must be provided as witness data."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] + #[doc = " - Renouncing::Member: O(1)"] + #[doc = " - Renouncing::RunnerUp: O(1)"] pub struct RenounceCandidacy { pub renouncing: renounce_candidacy::Renouncing, } @@ -14516,24 +17733,43 @@ pub mod api { use super::runtime_types; pub type Renouncing = runtime_types::pallet_elections_phragmen::Renouncing; } - impl ::subxt_core::blocks::StaticExtrinsic for RenounceCandidacy { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RenounceCandidacy { const PALLET: &'static str = "Elections"; const CALL: &'static str = "renounce_candidacy"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_member`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] + #[doc = "the outgoing member is slashed."] + #[doc = ""] + #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] + #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] + #[doc = "started, else, nothing happens."] + #[doc = ""] + #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] + #[doc = "it is returned."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "Note that this does not affect the designated block number of the next election."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] pub struct RemoveMember { pub who: remove_member::Who, pub slash_bond: remove_member::SlashBond, @@ -14541,31 +17777,43 @@ pub mod api { } pub mod remove_member { use super::runtime_types; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type SlashBond = ::core::primitive::bool; pub type RerunElection = ::core::primitive::bool; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveMember { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveMember { const PALLET: &'static str = "Elections"; const CALL: &'static str = "remove_member"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::clean_defunct_voters`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] + #[doc = "deposit of the removed voters are returned."] + #[doc = ""] + #[doc = "This is an root function to be used only for cleaning the state."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check is_defunct_voter() details."] pub struct CleanDefunctVoters { pub num_voters: clean_defunct_voters::NumVoters, pub num_defunct: clean_defunct_voters::NumDefunct, @@ -14575,20 +17823,38 @@ pub mod api { pub type NumVoters = ::core::primitive::u32; pub type NumDefunct = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CleanDefunctVoters { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CleanDefunctVoters { const PALLET: &'static str = "Elections"; const CALL: &'static str = "clean_defunct_voters"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::vote`]."] + #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] + #[doc = "set the initial votes, or update already existing votes."] + #[doc = ""] + #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] + #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] + #[doc = ""] + #[doc = "The `votes` should:"] + #[doc = " - not be empty."] + #[doc = " - be less than the number of possible candidates. Note that all current members and"] + #[doc = " runners-up are also automatically candidates for the next round."] + #[doc = ""] + #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] + #[doc = "lock and keep some for further operations."] pub fn vote( &self, votes: types::vote::Votes, value: types::vote::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Elections", "vote", types::Vote { votes, value }, @@ -14599,11 +17865,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_voter`]."] + #[doc = "Remove `origin` as a voter."] + #[doc = ""] + #[doc = "This removes the lock and returns the deposit."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed and be a voter."] pub fn remove_voter( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Elections", "remove_voter", types::RemoveVoter {}, @@ -14615,12 +17885,26 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::submit_candidacy`]."] + #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] + #[doc = ""] + #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] + #[doc = "or leave the system while their deposit is slashed."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] + #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] + #[doc = ""] + #[doc = "The number of current candidates must be provided as witness data."] + #[doc = "## Complexity"] + #[doc = "O(C + log(C)) where C is candidate_count."] pub fn submit_candidacy( &self, candidate_count: types::submit_candidacy::CandidateCount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Elections", "submit_candidacy", types::SubmitCandidacy { candidate_count }, @@ -14632,12 +17916,32 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::renounce_candidacy`]."] + #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] + #[doc = "outcomes exist:"] + #[doc = ""] + #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] + #[doc = " unreserved, returned and origin is removed as a candidate."] + #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] + #[doc = " origin is removed as a runner-up."] + #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] + #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] + #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] + #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] + #[doc = " next round."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] + #[doc = "The type of renouncing must be provided as witness data."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] + #[doc = " - Renouncing::Member: O(1)"] + #[doc = " - Renouncing::RunnerUp: O(1)"] pub fn renounce_candidacy( &self, renouncing: types::renounce_candidacy::Renouncing, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Elections", "renounce_candidacy", types::RenounceCandidacy { renouncing }, @@ -14649,14 +17953,29 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_member`]."] + #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] + #[doc = "the outgoing member is slashed."] + #[doc = ""] + #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] + #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] + #[doc = "started, else, nothing happens."] + #[doc = ""] + #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] + #[doc = "it is returned."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "Note that this does not affect the designated block number of the next election."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] pub fn remove_member( &self, who: types::remove_member::Who, slash_bond: types::remove_member::SlashBond, rerun_election: types::remove_member::RerunElection, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Elections", "remove_member", types::RemoveMember { who, slash_bond, rerun_election }, @@ -14668,13 +17987,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clean_defunct_voters`]."] + #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] + #[doc = "deposit of the removed voters are returned."] + #[doc = ""] + #[doc = "This is an root function to be used only for cleaning the state."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check is_defunct_voter() details."] pub fn clean_defunct_voters( &self, num_voters: types::clean_defunct_voters::NumVoters, num_defunct: types::clean_defunct_voters::NumDefunct, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Elections", "clean_defunct_voters", types::CleanDefunctVoters { num_voters, num_defunct }, @@ -14692,18 +18020,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] #[doc = "the election, not that enough have has been elected. The inner value must be examined"] #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] @@ -14714,67 +18042,67 @@ pub mod api { } pub mod new_term { use super::runtime_types; - pub type NewMembers = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + pub type NewMembers = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, )>; } - impl ::subxt_core::events::StaticEvent for NewTerm { + impl ::subxt::ext::subxt_core::events::StaticEvent for NewTerm { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "NewTerm"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "No (or not enough) candidates existed for this round. This is different from"] #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] pub struct EmptyTerm; - impl ::subxt_core::events::StaticEvent for EmptyTerm { + impl ::subxt::ext::subxt_core::events::StaticEvent for EmptyTerm { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "EmptyTerm"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Internal error happened while trying to perform election."] pub struct ElectionError; - impl ::subxt_core::events::StaticEvent for ElectionError { + impl ::subxt::ext::subxt_core::events::StaticEvent for ElectionError { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "ElectionError"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] #[doc = "`EmptyTerm`."] pub struct MemberKicked { @@ -14782,50 +18110,50 @@ pub mod api { } pub mod member_kicked { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for MemberKicked { + impl ::subxt::ext::subxt_core::events::StaticEvent for MemberKicked { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "MemberKicked"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Someone has renounced their candidacy."] pub struct Renounced { pub candidate: renounced::Candidate, } pub mod renounced { use super::runtime_types; - pub type Candidate = ::subxt_core::utils::AccountId32; + pub type Candidate = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Renounced { + impl ::subxt::ext::subxt_core::events::StaticEvent for Renounced { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "Renounced"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] #[doc = "runner-up."] #[doc = ""] @@ -14836,26 +18164,26 @@ pub mod api { } pub mod candidate_slashed { use super::runtime_types; - pub type Candidate = ::subxt_core::utils::AccountId32; + pub type Candidate = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for CandidateSlashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for CandidateSlashed { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "CandidateSlashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] pub struct SeatHolderSlashed { pub seat_holder: seat_holder_slashed::SeatHolder, @@ -14863,10 +18191,10 @@ pub mod api { } pub mod seat_holder_slashed { use super::runtime_types; - pub type SeatHolder = ::subxt_core::utils::AccountId32; + pub type SeatHolder = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for SeatHolderSlashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for SeatHolderSlashed { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "SeatHolderSlashed"; } @@ -14877,26 +18205,26 @@ pub mod api { use super::runtime_types; pub mod members { use super::runtime_types; - pub type Members = ::subxt_core::alloc::vec::Vec< + pub type Members = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >, >; } pub mod runners_up { use super::runtime_types; - pub type RunnersUp = ::subxt_core::alloc::vec::Vec< + pub type RunnersUp = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >, >; } pub mod candidates { use super::runtime_types; - pub type Candidates = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + pub type Candidates = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, )>; } @@ -14907,10 +18235,10 @@ pub mod api { pub mod voting { use super::runtime_types; pub type Voting = runtime_types::pallet_elections_phragmen::Voter< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -14920,14 +18248,14 @@ pub mod api { #[doc = " Invariant: Always sorted based on account id."] pub fn members( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::members::Members, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Elections", "Members", (), @@ -14945,14 +18273,14 @@ pub mod api { #[doc = " last (i.e. _best_) runner-up will be replaced."] pub fn runners_up( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::runners_up::RunnersUp, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Elections", "RunnersUp", (), @@ -14971,14 +18299,14 @@ pub mod api { #[doc = " Invariant: Always sorted based on account id."] pub fn candidates( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::candidates::Candidates, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Elections", "Candidates", (), @@ -14992,14 +18320,14 @@ pub mod api { #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] pub fn election_rounds( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::election_rounds::ElectionRounds, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Elections", "ElectionRounds", (), @@ -15015,14 +18343,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::voting::Voting, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Elections", "Voting", (), @@ -15039,17 +18367,21 @@ pub mod api { pub fn voting( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::voting::Param0, + >, types::voting::Voting, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Elections", "Voting", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 37u8, 74u8, 221u8, 188u8, 168u8, 43u8, 125u8, 246u8, 191u8, 21u8, 85u8, 87u8, 124u8, 180u8, 218u8, 43u8, 186u8, 170u8, 140u8, 186u8, 88u8, @@ -15066,9 +18398,10 @@ pub mod api { #[doc = " Identifier for the elections-phragmen pallet's lock"] pub fn pallet_id( &self, - ) -> ::subxt_core::constants::address::StaticAddress<[::core::primitive::u8; 8usize]> - { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + [::core::primitive::u8; 8usize], + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "PalletId", [ @@ -15081,8 +18414,10 @@ pub mod api { #[doc = " How much should be locked up in order to submit one's candidacy."] pub fn candidacy_bond( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "CandidacyBond", [ @@ -15098,8 +18433,10 @@ pub mod api { #[doc = " creating a gigantic number of votes."] pub fn voting_bond_base( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "VotingBondBase", [ @@ -15112,8 +18449,10 @@ pub mod api { #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] pub fn voting_bond_factor( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "VotingBondFactor", [ @@ -15126,8 +18465,10 @@ pub mod api { #[doc = " Number of members to elect."] pub fn desired_members( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "DesiredMembers", [ @@ -15141,8 +18482,10 @@ pub mod api { #[doc = " Number of runners_up to keep."] pub fn desired_runners_up( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "DesiredRunnersUp", [ @@ -15158,8 +18501,10 @@ pub mod api { #[doc = " be in passive mode."] pub fn term_duration( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "TermDuration", [ @@ -15178,8 +18523,10 @@ pub mod api { #[doc = " When this limit is reached no more candidates are accepted in the election."] pub fn max_candidates( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "MaxCandidates", [ @@ -15198,8 +18545,10 @@ pub mod api { #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "MaxVoters", [ @@ -15216,8 +18565,10 @@ pub mod api { #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] pub fn max_votes_per_voter( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Elections", "MaxVotesPerVoter", [ @@ -15245,21 +18596,39 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::submit_unsigned`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Submit a solution for the unsigned phase."] + #[doc = ""] + #[doc = "The dispatch origin fo this call must be __none__."] + #[doc = ""] + #[doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] + #[doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] + #[doc = "that only active validators can submit this transaction when authoring a block (similar"] + #[doc = "to an inherent)."] + #[doc = ""] + #[doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] + #[doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] + #[doc = "putting their authoring reward at risk."] + #[doc = ""] + #[doc = "No deposit or reward is associated with this submission."] pub struct SubmitUnsigned { - pub raw_solution: ::subxt_core::alloc::boxed::Box, + pub raw_solution: + ::subxt::ext::subxt_core::alloc::boxed::Box, pub witness: submit_unsigned::Witness, } pub mod submit_unsigned { @@ -15271,24 +18640,32 @@ pub mod api { pub type Witness = runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize; } - impl ::subxt_core::blocks::StaticExtrinsic for SubmitUnsigned { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SubmitUnsigned { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "submit_unsigned"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a new value for `MinimumUntrustedScore`."] + #[doc = ""] + #[doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] + #[doc = ""] + #[doc = "This check can be turned off by setting the value to `None`."] pub struct SetMinimumUntrustedScore { pub maybe_next_score: set_minimum_untrusted_score::MaybeNextScore, } @@ -15297,54 +18674,80 @@ pub mod api { pub type MaybeNextScore = ::core::option::Option; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMinimumUntrustedScore { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMinimumUntrustedScore { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "set_minimum_untrusted_score"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_emergency_election_result`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] + #[doc = "call to `ElectionProvider::elect`."] + #[doc = ""] + #[doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] + #[doc = ""] + #[doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] + #[doc = "feasibility check itself can in principle cause the election process to fail (due to"] + #[doc = "memory/weight constrains)."] pub struct SetEmergencyElectionResult { pub supports: set_emergency_election_result::Supports, } pub mod set_emergency_election_result { use super::runtime_types; - pub type Supports = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, - runtime_types::sp_npos_elections::Support<::subxt_core::utils::AccountId32>, + pub type 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, + >, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetEmergencyElectionResult { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetEmergencyElectionResult { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "set_emergency_election_result"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::submit`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Submit a solution for the signed phase."] + #[doc = ""] + #[doc = "The dispatch origin fo this call must be __signed__."] + #[doc = ""] + #[doc = "The solution is potentially queued, based on the claimed score and processed at the end"] + #[doc = "of the signed phase."] + #[doc = ""] + #[doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] + #[doc = "might be rewarded, slashed, or get all or a part of the deposit back."] pub struct Submit { - pub raw_solution: ::subxt_core::alloc::boxed::Box, + pub raw_solution: + ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod submit { use super::runtime_types; @@ -15353,24 +18756,31 @@ pub mod api { runtime_types::tangle_testnet_runtime::NposSolution16, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Submit { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Submit { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "submit"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::governance_fallback`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Trigger the governance fallback."] + #[doc = ""] + #[doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] + #[doc = "calling [`Call::set_emergency_election_result`]."] pub struct GovernanceFallback { pub maybe_max_voters: governance_fallback::MaybeMaxVoters, pub maybe_max_targets: governance_fallback::MaybeMaxTargets, @@ -15380,24 +18790,39 @@ pub mod api { pub type MaybeMaxVoters = ::core::option::Option<::core::primitive::u32>; pub type MaybeMaxTargets = ::core::option::Option<::core::primitive::u32>; } - impl ::subxt_core::blocks::StaticExtrinsic for GovernanceFallback { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for GovernanceFallback { const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "governance_fallback"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::submit_unsigned`]."] + #[doc = "Submit a solution for the unsigned phase."] + #[doc = ""] + #[doc = "The dispatch origin fo this call must be __none__."] + #[doc = ""] + #[doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] + #[doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] + #[doc = "that only active validators can submit this transaction when authoring a block (similar"] + #[doc = "to an inherent)."] + #[doc = ""] + #[doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] + #[doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] + #[doc = "putting their authoring reward at risk."] + #[doc = ""] + #[doc = "No deposit or reward is associated with this submission."] pub fn submit_unsigned( &self, raw_solution: types::submit_unsigned::RawSolution, witness: types::submit_unsigned::Witness, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ElectionProviderMultiPhase", "submit_unsigned", types::SubmitUnsigned { - raw_solution: ::subxt_core::alloc::boxed::Box::new(raw_solution), + raw_solution: ::subxt::ext::subxt_core::alloc::boxed::Box::new( + raw_solution, + ), witness, }, [ @@ -15407,12 +18832,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] + #[doc = "Set a new value for `MinimumUntrustedScore`."] + #[doc = ""] + #[doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] + #[doc = ""] + #[doc = "This check can be turned off by setting the value to `None`."] pub fn set_minimum_untrusted_score( &self, maybe_next_score: types::set_minimum_untrusted_score::MaybeNextScore, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::SetMinimumUntrustedScore, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ElectionProviderMultiPhase", "set_minimum_untrusted_score", types::SetMinimumUntrustedScore { maybe_next_score }, @@ -15424,12 +18855,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_emergency_election_result`]."] + #[doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] + #[doc = "call to `ElectionProvider::elect`."] + #[doc = ""] + #[doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] + #[doc = ""] + #[doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] + #[doc = "feasibility check itself can in principle cause the election process to fail (due to"] + #[doc = "memory/weight constrains)."] pub fn set_emergency_election_result( &self, supports: types::set_emergency_election_result::Supports, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::SetEmergencyElectionResult, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ElectionProviderMultiPhase", "set_emergency_election_result", types::SetEmergencyElectionResult { supports }, @@ -15441,16 +18881,26 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::submit`]."] + #[doc = "Submit a solution for the signed phase."] + #[doc = ""] + #[doc = "The dispatch origin fo this call must be __signed__."] + #[doc = ""] + #[doc = "The solution is potentially queued, based on the claimed score and processed at the end"] + #[doc = "of the signed phase."] + #[doc = ""] + #[doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] + #[doc = "might be rewarded, slashed, or get all or a part of the deposit back."] pub fn submit( &self, raw_solution: types::submit::RawSolution, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ElectionProviderMultiPhase", "submit", types::Submit { - raw_solution: ::subxt_core::alloc::boxed::Box::new(raw_solution), + raw_solution: ::subxt::ext::subxt_core::alloc::boxed::Box::new( + raw_solution, + ), }, [ 55u8, 254u8, 53u8, 183u8, 136u8, 93u8, 56u8, 39u8, 98u8, 132u8, 8u8, @@ -15459,13 +18909,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::governance_fallback`]."] + #[doc = "Trigger the governance fallback."] + #[doc = ""] + #[doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] + #[doc = "calling [`Call::set_emergency_election_result`]."] pub fn governance_fallback( &self, maybe_max_voters: types::governance_fallback::MaybeMaxVoters, maybe_max_targets: types::governance_fallback::MaybeMaxTargets, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ElectionProviderMultiPhase", "governance_fallback", types::GovernanceFallback { maybe_max_voters, maybe_max_targets }, @@ -15483,22 +18937,22 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A solution was stored with the given compute."] #[doc = ""] #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] - #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] + #[doc = "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."] @@ -15511,26 +18965,27 @@ pub mod api { use super::runtime_types; pub type Compute = runtime_types::pallet_election_provider_multi_phase::ElectionCompute; - pub type Origin = ::core::option::Option<::subxt_core::utils::AccountId32>; + pub type Origin = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; pub type PrevEjected = ::core::primitive::bool; } - impl ::subxt_core::events::StaticEvent for SolutionStored { + impl ::subxt::ext::subxt_core::events::StaticEvent for SolutionStored { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "SolutionStored"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The election has been finalized, with the given computation and score."] pub struct ElectionFinalized { pub compute: election_finalized::Compute, @@ -15542,44 +18997,44 @@ pub mod api { runtime_types::pallet_election_provider_multi_phase::ElectionCompute; pub type Score = runtime_types::sp_npos_elections::ElectionScore; } - impl ::subxt_core::events::StaticEvent for ElectionFinalized { + impl ::subxt::ext::subxt_core::events::StaticEvent for ElectionFinalized { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFinalized"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An election failed."] #[doc = ""] #[doc = "Not much can be said about which computes failed in the process."] pub struct ElectionFailed; - impl ::subxt_core::events::StaticEvent for ElectionFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for ElectionFailed { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFailed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has been rewarded for their signed submission being finalized."] pub struct Rewarded { pub account: rewarded::Account, @@ -15587,26 +19042,26 @@ pub mod api { } pub mod rewarded { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Rewarded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Rewarded { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "Rewarded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has been slashed for submitting an invalid signed submission."] pub struct Slashed { pub account: slashed::Account, @@ -15614,26 +19069,26 @@ pub mod api { } pub mod slashed { use super::runtime_types; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Slashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Slashed { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "There was a phase transition in a given round."] pub struct PhaseTransitioned { pub from: phase_transitioned::From, @@ -15650,7 +19105,7 @@ pub mod api { >; pub type Round = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for PhaseTransitioned { + impl ::subxt::ext::subxt_core::events::StaticEvent for PhaseTransitioned { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "PhaseTransitioned"; } @@ -15679,12 +19134,12 @@ pub mod api { use super::runtime_types; pub type Snapshot = runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ( - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64, runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, ), >; @@ -15713,7 +19168,7 @@ pub mod api { } pub mod signed_submissions_map { use super::runtime_types; - pub type SignedSubmissionsMap = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: tangle_testnet_runtime :: NposSolution16 > ; + pub type SignedSubmissionsMap = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: tangle_testnet_runtime :: NposSolution16 > ; pub type Param0 = ::core::primitive::u32; } pub mod minimum_untrusted_score { @@ -15732,14 +19187,14 @@ pub mod api { #[doc = " This is merely incremented once per every time that an upstream `elect` is called."] pub fn round( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::round::Round, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "Round", (), @@ -15753,14 +19208,14 @@ pub mod api { #[doc = " Current phase."] pub fn current_phase( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_phase::CurrentPhase, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "CurrentPhase", (), @@ -15777,14 +19232,14 @@ pub mod api { #[doc = " Always sorted by score."] pub fn queued_solution( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::queued_solution::QueuedSolution, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "QueuedSolution", (), @@ -15802,14 +19257,14 @@ pub mod api { #[doc = " Note: This storage type must only be mutated through [`SnapshotWrapper`]."] pub fn snapshot( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::snapshot::Snapshot, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "Snapshot", (), @@ -15826,14 +19281,14 @@ pub mod api { #[doc = " Note: This storage type must only be mutated through [`SnapshotWrapper`]."] pub fn desired_targets( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::desired_targets::DesiredTargets, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "DesiredTargets", (), @@ -15850,14 +19305,14 @@ pub mod api { #[doc = " Note: This storage type must only be mutated through [`SnapshotWrapper`]."] pub fn snapshot_metadata( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::snapshot_metadata::SnapshotMetadata, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SnapshotMetadata", (), @@ -15879,14 +19334,14 @@ pub mod api { #[doc = " because iteration is slow. Instead, we store the value here."] pub fn signed_submission_next_index( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::signed_submission_next_index::SignedSubmissionNextIndex, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedSubmissionNextIndex", (), @@ -15905,14 +19360,14 @@ pub mod api { #[doc = " them one at a time instead of reading and decoding all of them at once."] pub fn signed_submission_indices( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::signed_submission_indices::SignedSubmissionIndices, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedSubmissionIndices", (), @@ -15932,14 +19387,14 @@ pub mod api { #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub fn signed_submissions_map_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::signed_submissions_map::SignedSubmissionsMap, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedSubmissionsMap", (), @@ -15960,19 +19415,21 @@ pub mod api { pub fn signed_submissions_map( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::signed_submissions_map::Param0, >, types::signed_submissions_map::SignedSubmissionsMap, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedSubmissionsMap", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 118u8, 12u8, 234u8, 73u8, 238u8, 134u8, 20u8, 105u8, 248u8, 39u8, 23u8, 96u8, 157u8, 187u8, 14u8, 143u8, 135u8, 121u8, 77u8, 90u8, 154u8, @@ -15986,14 +19443,14 @@ pub mod api { #[doc = " Can be set via `set_minimum_untrusted_score`."] pub fn minimum_untrusted_score( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::minimum_untrusted_score::MinimumUntrustedScore, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "MinimumUntrustedScore", (), @@ -16010,44 +19467,14 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " Duration of the unsigned phase."] - pub fn unsigned_phase( - &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( - "ElectionProviderMultiPhase", - "UnsignedPhase", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) - } - #[doc = " Duration of the signed phase."] - pub fn signed_phase( - &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( - "ElectionProviderMultiPhase", - "SignedPhase", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) - } #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" in the Signed phase."] pub fn better_signed_threshold( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_arithmetic::per_things::Perbill, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "BetterSignedThreshold", [ @@ -16063,8 +19490,10 @@ pub mod api { #[doc = " to submit the worker's solution."] pub fn offchain_repeat( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "OffchainRepeat", [ @@ -16078,8 +19507,10 @@ pub mod api { #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] pub fn miner_tx_priority( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "MinerTxPriority", [ @@ -16099,8 +19530,10 @@ pub mod api { #[doc = " attempts to submit new solutions may cause a runtime panic."] pub fn signed_max_submissions( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedMaxSubmissions", [ @@ -16118,10 +19551,10 @@ pub mod api { #[doc = " this value."] pub fn signed_max_weight( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_weights::weight_v2::Weight, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedMaxWeight", [ @@ -16135,8 +19568,10 @@ pub mod api { #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] pub fn signed_max_refunds( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedMaxRefunds", [ @@ -16150,8 +19585,10 @@ pub mod api { #[doc = " Base reward for a signed solution"] pub fn signed_reward_base( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedRewardBase", [ @@ -16164,8 +19601,10 @@ pub mod api { #[doc = " Per-byte deposit for a signed solution."] pub fn signed_deposit_byte( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedDepositByte", [ @@ -16178,8 +19617,10 @@ pub mod api { #[doc = " Per-weight deposit for a signed solution."] pub fn signed_deposit_weight( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "SignedDepositWeight", [ @@ -16195,8 +19636,10 @@ pub mod api { #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] pub fn max_winners( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "MaxWinners", [ @@ -16209,8 +19652,10 @@ pub mod api { } pub fn miner_max_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "MinerMaxLength", [ @@ -16223,10 +19668,10 @@ pub mod api { } pub fn miner_max_weight( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_weights::weight_v2::Weight, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "MinerMaxWeight", [ @@ -16239,8 +19684,10 @@ pub mod api { } pub fn miner_max_votes_per_voter( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "MinerMaxVotesPerVoter", [ @@ -16253,8 +19700,10 @@ pub mod api { } pub fn miner_max_winners( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ElectionProviderMultiPhase", "MinerMaxWinners", [ @@ -16282,19 +19731,38 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::bond`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] + #[doc = "be the account that controls it."] + #[doc = ""] + #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Moderate complexity."] + #[doc = "- O(1)."] + #[doc = "- Three extra DB entries."] + #[doc = ""] + #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] + #[doc = "unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed"] + #[doc = "as dust."] pub struct Bond { #[codec(compact)] pub value: bond::Value, @@ -16304,27 +19772,44 @@ pub mod api { use super::runtime_types; pub type Value = ::core::primitive::u128; pub type Payee = runtime_types::pallet_staking::RewardDestination< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Bond { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Bond { const PALLET: &'static str = "Staking"; const CALL: &'static str = "bond"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::bond_extra`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] + #[doc = "for staking."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] + #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] + #[doc = "any limitation on the amount that can be added."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- O(1)."] pub struct BondExtra { #[codec(compact)] pub max_additional: bond_extra::MaxAdditional, @@ -16333,24 +19818,46 @@ pub mod api { use super::runtime_types; pub type MaxAdditional = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for BondExtra { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "Staking"; const CALL: &'static str = "bond_extra"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unbond`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] + #[doc = "period ends. If this leaves an amount actively bonded less than"] + #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] + #[doc = "the funds out of management ready for transfer."] + #[doc = ""] + #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] + #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] + #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] + #[doc = ""] + #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] + #[doc = "they should call `chill` first in order to free up their bonded funds."] + #[doc = ""] + #[doc = "Emits `Unbonded`."] + #[doc = ""] + #[doc = "See also [`Call::withdraw_unbonded`]."] pub struct Unbond { #[codec(compact)] pub value: unbond::Value, @@ -16359,24 +19866,50 @@ pub mod api { use super::runtime_types; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Unbond { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Unbond { const PALLET: &'static str = "Staking"; const CALL: &'static str = "unbond"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::withdraw_unbonded`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] + #[doc = ""] + #[doc = "This essentially frees up that balance to be used by the stash account to do whatever"] + #[doc = "it wants."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] + #[doc = ""] + #[doc = "Emits `Withdrawn`."] + #[doc = ""] + #[doc = "See also [`Call::unbond`]."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans` indicates the number of metadata slashing spans to clear when"] + #[doc = "this call results in a complete removal of all the data related to the stash account."] + #[doc = "In this case, the `num_slashing_spans` must be larger or equal to the number of"] + #[doc = "slashing spans associated with the stash account in the [`SlashingSpans`] storage type,"] + #[doc = "otherwise the call will fail. The call weight is directly proportional to"] + #[doc = "`num_slashing_spans`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(S) where S is the number of slashing spans to remove"] + #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] pub struct WithdrawUnbonded { pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, } @@ -16384,24 +19917,32 @@ pub mod api { use super::runtime_types; pub type NumSlashingSpans = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for WithdrawUnbonded { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for WithdrawUnbonded { const PALLET: &'static str = "Staking"; const CALL: &'static str = "withdraw_unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::validate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Declare the desire to validate for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] pub struct Validate { pub prefs: validate::Prefs, } @@ -16409,119 +19950,186 @@ pub mod api { use super::runtime_types; pub type Prefs = runtime_types::pallet_staking::ValidatorPrefs; } - impl ::subxt_core::blocks::StaticExtrinsic for Validate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Validate { const PALLET: &'static str = "Staking"; const CALL: &'static str = "validate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::nominate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Declare the desire to nominate `targets` for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] + #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] + #[doc = "- Both the reads and writes follow a similar pattern."] pub struct Nominate { pub targets: nominate::Targets, } pub mod nominate { use super::runtime_types; - pub type Targets = ::subxt_core::alloc::vec::Vec< - ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Targets = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Nominate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "Staking"; const CALL: &'static str = "nominate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::chill`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Declare no desire to either validate or nominate."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains one read."] + #[doc = "- Writes are limited to the `origin` account key."] pub struct Chill; - impl ::subxt_core::blocks::StaticExtrinsic for Chill { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "Staking"; const CALL: &'static str = "chill"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_payee`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "(Re-)set the payment target for a controller."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "---------"] pub struct SetPayee { pub payee: set_payee::Payee, } pub mod set_payee { use super::runtime_types; pub type Payee = runtime_types::pallet_staking::RewardDestination< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetPayee { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetPayee { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_payee"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_controller`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "(Re-)sets the controller of a stash to the stash itself. This function previously"] + #[doc = "accepted a `controller` argument to set the controller to an account other than the"] + #[doc = "stash itself. This functionality has now been removed, now only setting the controller"] + #[doc = "to the stash, if it is not already."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(1)"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] pub struct SetController; - impl ::subxt_core::blocks::StaticExtrinsic for SetController { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetController { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_controller"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_validator_count`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Sets the ideal number of validators."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(1)"] pub struct SetValidatorCount { #[codec(compact)] pub new: set_validator_count::New, @@ -16530,24 +20138,34 @@ pub mod api { use super::runtime_types; pub type New = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for SetValidatorCount { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetValidatorCount { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_validator_count"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::increase_validator_count`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Increments the ideal number of validators up to maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "Same as [`Self::set_validator_count`]."] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: increase_validator_count::Additional, @@ -16556,24 +20174,34 @@ pub mod api { use super::runtime_types; pub type Additional = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for IncreaseValidatorCount { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for IncreaseValidatorCount { const PALLET: &'static str = "Staking"; const CALL: &'static str = "increase_validator_count"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::scale_validator_count`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Scale up the ideal number of validators by a factor up to maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "Same as [`Self::set_validator_count`]."] pub struct ScaleValidatorCount { pub factor: scale_validator_count::Factor, } @@ -16581,134 +20209,205 @@ pub mod api { use super::runtime_types; pub type Factor = runtime_types::sp_arithmetic::per_things::Percent; } - impl ::subxt_core::blocks::StaticExtrinsic for ScaleValidatorCount { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScaleValidatorCount { const PALLET: &'static str = "Staking"; const CALL: &'static str = "scale_validator_count"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_no_eras`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force there to be no new eras indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "Thus the election process may be ongoing when this is called. In this case the"] + #[doc = "election will continue until the next era is triggered."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] pub struct ForceNoEras; - impl ::subxt_core::blocks::StaticExtrinsic for ForceNoEras { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceNoEras { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_no_eras"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_new_era`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] + #[doc = "reset to normal (non-forced) behaviour."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] pub struct ForceNewEra; - impl ::subxt_core::blocks::StaticExtrinsic for ForceNewEra { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceNewEra { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_new_era"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_invulnerables`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the validators who cannot be slashed (if any)."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] pub struct SetInvulnerables { pub invulnerables: set_invulnerables::Invulnerables, } pub mod set_invulnerables { use super::runtime_types; - pub type Invulnerables = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Invulnerables = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetInvulnerables { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetInvulnerables { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_invulnerables"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_unstake`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force a current staker to become completely unstaked, immediately."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] + #[doc = "details."] pub struct ForceUnstake { pub stash: force_unstake::Stash, pub num_slashing_spans: force_unstake::NumSlashingSpans, } pub mod force_unstake { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; pub type NumSlashingSpans = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceUnstake { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceUnstake { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_unstake"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_new_era_always`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force there to be a new era at the end of sessions indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] pub struct ForceNewEraAlways; - impl ::subxt_core::blocks::StaticExtrinsic for ForceNewEraAlways { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceNewEraAlways { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_new_era_always"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_deferred_slash`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel enactment of a deferred slash."] + #[doc = ""] + #[doc = "Can be called by the `T::AdminOrigin`."] + #[doc = ""] + #[doc = "Parameters: era and indices of the slashes for that era to kill."] pub struct CancelDeferredSlash { pub era: cancel_deferred_slash::Era, pub slash_indices: cancel_deferred_slash::SlashIndices, @@ -16716,53 +20415,80 @@ pub mod api { pub mod cancel_deferred_slash { use super::runtime_types; pub type Era = ::core::primitive::u32; - pub type SlashIndices = ::subxt_core::alloc::vec::Vec<::core::primitive::u32>; + pub type SlashIndices = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelDeferredSlash { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelDeferredSlash { const PALLET: &'static str = "Staking"; const CALL: &'static str = "cancel_deferred_slash"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::payout_stakers`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Pay out next page of the stakers behind a validator for the given era."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator."] + #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] + #[doc = ""] + #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] + #[doc = "it is not one of the stakers."] + #[doc = ""] + #[doc = "The reward payout could be paged in case there are too many nominators backing the"] + #[doc = "`validator_stash`. This call will payout unpaid pages in an ascending order. To claim a"] + #[doc = "specific page, use `payout_stakers_by_page`.`"] + #[doc = ""] + #[doc = "If all pages are claimed, it returns an error `InvalidPage`."] pub struct PayoutStakers { pub validator_stash: payout_stakers::ValidatorStash, pub era: payout_stakers::Era, } pub mod payout_stakers { use super::runtime_types; - pub type ValidatorStash = ::subxt_core::utils::AccountId32; + pub type ValidatorStash = ::subxt::ext::subxt_core::utils::AccountId32; pub type Era = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for PayoutStakers { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PayoutStakers { const PALLET: &'static str = "Staking"; const CALL: &'static str = "payout_stakers"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::rebond`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Rebond a portion of the stash scheduled to be unlocked."] + #[doc = ""] + #[doc = "The dispatch origin must be signed by the controller."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Time complexity: O(L), where L is unlocking chunks"] + #[doc = "- Bounded by `MaxUnlockingChunks`."] pub struct Rebond { #[codec(compact)] pub value: rebond::Value, @@ -16771,81 +20497,136 @@ pub mod api { use super::runtime_types; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Rebond { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Rebond { const PALLET: &'static str = "Staking"; const CALL: &'static str = "rebond"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::reap_stash`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] + #[doc = "be considered `dust` in the staking system. The requirements are:"] + #[doc = ""] + #[doc = "1. the `total_balance` of the stash is below existential deposit."] + #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] + #[doc = "3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero."] + #[doc = ""] + #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] + #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] + #[doc = ""] + #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] + #[doc = ""] + #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] + #[doc = "details."] pub struct ReapStash { pub stash: reap_stash::Stash, pub num_slashing_spans: reap_stash::NumSlashingSpans, } pub mod reap_stash { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; pub type NumSlashingSpans = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ReapStash { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ReapStash { const PALLET: &'static str = "Staking"; const CALL: &'static str = "reap_stash"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::kick`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove the given nominations from the calling validator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] + #[doc = " should no longer be nominating this validator."] + #[doc = ""] + #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] + #[doc = "block any further nominations."] pub struct Kick { pub who: kick::Who, } pub mod kick { use super::runtime_types; - pub type Who = ::subxt_core::alloc::vec::Vec< - ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Kick { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Kick { const PALLET: &'static str = "Staking"; const CALL: &'static str = "kick"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_staking_configs`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Update the various staking configurations ."] + #[doc = ""] + #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] + #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] + #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] + #[doc = " should be filled in order for the `chill_other` transaction to work."] + #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] + #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] + #[doc = ""] + #[doc = "RuntimeOrigin must be Root to call this function."] + #[doc = ""] + #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] + #[doc = "to kick people under the new limits, `chill_other` should be called."] pub struct SetStakingConfigs { pub min_nominator_bond: set_staking_configs::MinNominatorBond, pub min_validator_bond: set_staking_configs::MinValidatorBond, @@ -16853,6 +20634,7 @@ pub mod api { pub max_validator_count: set_staking_configs::MaxValidatorCount, pub chill_threshold: set_staking_configs::ChillThreshold, pub min_commission: set_staking_configs::MinCommission, + pub max_staked_rewards: set_staking_configs::MaxStakedRewards, } pub mod set_staking_configs { use super::runtime_types; @@ -16880,75 +20662,121 @@ pub mod api { runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >; + pub type MaxStakedRewards = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetStakingConfigs { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetStakingConfigs { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_staking_configs"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::chill_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] + #[doc = ""] + #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] + #[doc = "enforced, and this function behaves just like `chill`."] + #[doc = ""] + #[doc = "If the caller is different than the controller being targeted, the following conditions"] + #[doc = "must be met:"] + #[doc = ""] + #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] + #[doc = ""] + #[doc = "Or:"] + #[doc = ""] + #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] + #[doc = " nominators or validators we must reach before users can start chilling one-another."] + #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] + #[doc = " how close we are to the threshold."] + #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] + #[doc = " if this is a person that should be chilled because they have not met the threshold"] + #[doc = " bond required."] + #[doc = ""] + #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] + #[doc = "who do not satisfy these requirements."] pub struct ChillOther { pub stash: chill_other::Stash, } pub mod chill_other { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::blocks::StaticExtrinsic for ChillOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ChillOther { const PALLET: &'static str = "Staking"; const CALL: &'static str = "chill_other"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_apply_min_commission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] + #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] + #[doc = "can call this."] pub struct ForceApplyMinCommission { pub validator_stash: force_apply_min_commission::ValidatorStash, } pub mod force_apply_min_commission { use super::runtime_types; - pub type ValidatorStash = ::subxt_core::utils::AccountId32; + pub type ValidatorStash = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceApplyMinCommission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceApplyMinCommission { const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_apply_min_commission"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_min_commission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Sets the minimum amount of commission that each validators must maintain."] + #[doc = ""] + #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] + #[doc = "by the `T::AdminOrigin`. Root can always call this."] pub struct SetMinCommission { pub new: set_min_commission::New, } @@ -16956,24 +20784,44 @@ pub mod api { use super::runtime_types; pub type New = runtime_types::sp_arithmetic::per_things::Perbill; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMinCommission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMinCommission { const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_min_commission"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::payout_stakers_by_page`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Pay out a page of the stakers behind a validator for the given era and page."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator."] + #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] + #[doc = "- `page` is the page index of nominators to pay out with value between 0 and"] + #[doc = " `num_nominators / T::MaxExposurePageSize`."] + #[doc = ""] + #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] + #[doc = "it is not one of the stakers."] + #[doc = ""] + #[doc = "If a validator has more than [`Config::MaxExposurePageSize`] nominators backing"] + #[doc = "them, then the list of nominators is paged, with each page being capped at"] + #[doc = "[`Config::MaxExposurePageSize`.] If a validator has more than one page of nominators,"] + #[doc = "the call needs to be made for each page separately in order for all the nominators"] + #[doc = "backing a validator to receive the reward. The nominators are not sorted across pages"] + #[doc = "and so it should not be assumed the highest staker would be on the topmost page and vice"] + #[doc = "versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost."] pub struct PayoutStakersByPage { pub validator_stash: payout_stakers_by_page::ValidatorStash, pub era: payout_stakers_by_page::Era, @@ -16981,53 +20829,72 @@ pub mod api { } pub mod payout_stakers_by_page { use super::runtime_types; - pub type ValidatorStash = ::subxt_core::utils::AccountId32; + pub type ValidatorStash = ::subxt::ext::subxt_core::utils::AccountId32; pub type Era = ::core::primitive::u32; pub type Page = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for PayoutStakersByPage { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PayoutStakersByPage { const PALLET: &'static str = "Staking"; const CALL: &'static str = "payout_stakers_by_page"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::update_payee`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Migrates an account's `RewardDestination::Controller` to"] + #[doc = "`RewardDestination::Account(controller)`."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "This will waive the transaction fee if the `payee` is successfully migrated."] pub struct UpdatePayee { pub controller: update_payee::Controller, } pub mod update_payee { use super::runtime_types; - pub type Controller = ::subxt_core::utils::AccountId32; + pub type Controller = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::blocks::StaticExtrinsic for UpdatePayee { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UpdatePayee { const PALLET: &'static str = "Staking"; const CALL: &'static str = "update_payee"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::deprecate_controller_batch`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Updates a batch of controller accounts to their corresponding stash account if they are"] + #[doc = "not the same. Ignores any controller accounts that do not exist, and does not operate if"] + #[doc = "the stash and controller are already the same."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin must be `T::AdminOrigin`."] pub struct DeprecateControllerBatch { pub controllers: deprecate_controller_batch::Controllers, } @@ -17035,23 +20902,88 @@ pub mod api { use super::runtime_types; pub type Controllers = runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for DeprecateControllerBatch { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DeprecateControllerBatch { const PALLET: &'static str = "Staking"; const CALL: &'static str = "deprecate_controller_batch"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Restores the state of a ledger which is in an inconsistent state."] + #[doc = ""] + #[doc = "The requirements to restore a ledger are the following:"] + #[doc = "* The stash is bonded; or"] + #[doc = "* The stash is not bonded but it has a staking lock left behind; or"] + #[doc = "* If the stash has an associated ledger and its state is inconsistent; or"] + #[doc = "* If the ledger is not corrupted *but* its staking lock is out of sync."] + #[doc = ""] + #[doc = "The `maybe_*` input parameters will overwrite the corresponding data and metadata of the"] + #[doc = "ledger associated with the stash. If the input parameters are not set, the ledger will"] + #[doc = "be reset values from on-chain state."] + pub struct RestoreLedger { + pub stash: restore_ledger::Stash, + pub maybe_controller: restore_ledger::MaybeController, + pub maybe_total: restore_ledger::MaybeTotal, + pub maybe_unlocking: restore_ledger::MaybeUnlocking, + } + pub mod restore_ledger { + use super::runtime_types; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; + pub type MaybeController = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + pub type MaybeTotal = ::core::option::Option<::core::primitive::u128>; + pub type MaybeUnlocking = ::core::option::Option< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, + >, + >; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RestoreLedger { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "restore_ledger"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::bond`]."] + #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] + #[doc = "be the account that controls it."] + #[doc = ""] + #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Moderate complexity."] + #[doc = "- O(1)."] + #[doc = "- Three extra DB entries."] + #[doc = ""] + #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] + #[doc = "unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed"] + #[doc = "as dust."] pub fn bond( &self, value: types::bond::Value, payee: types::bond::Payee, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "bond", types::Bond { value, payee }, @@ -17062,12 +20994,25 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra`]."] + #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] + #[doc = "for staking."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] + #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] + #[doc = "any limitation on the amount that can be added."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- O(1)."] pub fn bond_extra( &self, max_additional: types::bond_extra::MaxAdditional, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "bond_extra", types::BondExtra { max_additional }, @@ -17078,12 +21023,30 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unbond`]."] + #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] + #[doc = "period ends. If this leaves an amount actively bonded less than"] + #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] + #[doc = "the funds out of management ready for transfer."] + #[doc = ""] + #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] + #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] + #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] + #[doc = ""] + #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] + #[doc = "they should call `chill` first in order to free up their bonded funds."] + #[doc = ""] + #[doc = "Emits `Unbonded`."] + #[doc = ""] + #[doc = "See also [`Call::withdraw_unbonded`]."] pub fn unbond( &self, value: types::unbond::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "unbond", types::Unbond { value }, @@ -17094,12 +21057,34 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::withdraw_unbonded`]."] + #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] + #[doc = ""] + #[doc = "This essentially frees up that balance to be used by the stash account to do whatever"] + #[doc = "it wants."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] + #[doc = ""] + #[doc = "Emits `Withdrawn`."] + #[doc = ""] + #[doc = "See also [`Call::unbond`]."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans` indicates the number of metadata slashing spans to clear when"] + #[doc = "this call results in a complete removal of all the data related to the stash account."] + #[doc = "In this case, the `num_slashing_spans` must be larger or equal to the number of"] + #[doc = "slashing spans associated with the stash account in the [`SlashingSpans`] storage type,"] + #[doc = "otherwise the call will fail. The call weight is directly proportional to"] + #[doc = "`num_slashing_spans`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(S) where S is the number of slashing spans to remove"] + #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] pub fn withdraw_unbonded( &self, num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "withdraw_unbonded", types::WithdrawUnbonded { num_slashing_spans }, @@ -17111,12 +21096,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::validate`]."] + #[doc = "Declare the desire to validate for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] pub fn validate( &self, prefs: types::validate::Prefs, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "validate", types::Validate { prefs }, @@ -17127,12 +21116,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::nominate`]."] + #[doc = "Declare the desire to nominate `targets` for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] + #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] + #[doc = "- Both the reads and writes follow a similar pattern."] pub fn nominate( &self, targets: types::nominate::Targets, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "nominate", types::Nominate { targets }, @@ -17144,9 +21142,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::chill`]."] - pub fn chill(&self) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + #[doc = "Declare no desire to either validate or nominate."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains one read."] + #[doc = "- Writes are limited to the `origin` account key."] + pub fn chill( + &self, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "chill", types::Chill {}, @@ -17157,12 +21166,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_payee`]."] + #[doc = "(Re-)set the payment target for a controller."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "---------"] pub fn set_payee( &self, payee: types::set_payee::Payee, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "set_payee", types::SetPayee { payee }, @@ -17174,11 +21194,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_controller`]."] + #[doc = "(Re-)sets the controller of a stash to the stash itself. This function previously"] + #[doc = "accepted a `controller` argument to set the controller to an account other than the"] + #[doc = "stash itself. This functionality has now been removed, now only setting the controller"] + #[doc = "to the stash, if it is not already."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(1)"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] pub fn set_controller( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "set_controller", types::SetController {}, @@ -17190,12 +21223,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_validator_count`]."] + #[doc = "Sets the ideal number of validators."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(1)"] pub fn set_validator_count( &self, new: types::set_validator_count::New, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "set_validator_count", types::SetValidatorCount { new }, @@ -17207,12 +21246,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::increase_validator_count`]."] + #[doc = "Increments the ideal number of validators up to maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "Same as [`Self::set_validator_count`]."] pub fn increase_validator_count( &self, additional: types::increase_validator_count::Additional, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::IncreaseValidatorCount, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "increase_validator_count", types::IncreaseValidatorCount { additional }, @@ -17224,12 +21271,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::scale_validator_count`]."] + #[doc = "Scale up the ideal number of validators by a factor up to maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "Same as [`Self::set_validator_count`]."] pub fn scale_validator_count( &self, factor: types::scale_validator_count::Factor, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "scale_validator_count", types::ScaleValidatorCount { factor }, @@ -17241,11 +21295,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_no_eras`]."] + #[doc = "Force there to be no new eras indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "Thus the election process may be ongoing when this is called. In this case the"] + #[doc = "election will continue until the next era is triggered."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] pub fn force_no_eras( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "force_no_eras", types::ForceNoEras {}, @@ -17257,11 +21323,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_new_era`]."] + #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] + #[doc = "reset to normal (non-forced) behaviour."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] pub fn force_new_era( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "force_new_era", types::ForceNewEra {}, @@ -17272,12 +21351,14 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_invulnerables`]."] + #[doc = "Set the validators who cannot be slashed (if any)."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] pub fn set_invulnerables( &self, invulnerables: types::set_invulnerables::Invulnerables, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "set_invulnerables", types::SetInvulnerables { invulnerables }, @@ -17288,13 +21369,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_unstake`]."] + #[doc = "Force a current staker to become completely unstaked, immediately."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] + #[doc = "details."] pub fn force_unstake( &self, stash: types::force_unstake::Stash, num_slashing_spans: types::force_unstake::NumSlashingSpans, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "force_unstake", types::ForceUnstake { stash, num_slashing_spans }, @@ -17305,11 +21393,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_new_era_always`]."] + #[doc = "Force there to be a new era at the end of sessions indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] pub fn force_new_era_always( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "force_new_era_always", types::ForceNewEraAlways {}, @@ -17320,13 +21417,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_deferred_slash`]."] + #[doc = "Cancel enactment of a deferred slash."] + #[doc = ""] + #[doc = "Can be called by the `T::AdminOrigin`."] + #[doc = ""] + #[doc = "Parameters: era and indices of the slashes for that era to kill."] pub fn cancel_deferred_slash( &self, era: types::cancel_deferred_slash::Era, slash_indices: types::cancel_deferred_slash::SlashIndices, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "cancel_deferred_slash", types::CancelDeferredSlash { era, slash_indices }, @@ -17338,13 +21440,25 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::payout_stakers`]."] + #[doc = "Pay out next page of the stakers behind a validator for the given era."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator."] + #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] + #[doc = ""] + #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] + #[doc = "it is not one of the stakers."] + #[doc = ""] + #[doc = "The reward payout could be paged in case there are too many nominators backing the"] + #[doc = "`validator_stash`. This call will payout unpaid pages in an ascending order. To claim a"] + #[doc = "specific page, use `payout_stakers_by_page`.`"] + #[doc = ""] + #[doc = "If all pages are claimed, it returns an error `InvalidPage`."] pub fn payout_stakers( &self, validator_stash: types::payout_stakers::ValidatorStash, era: types::payout_stakers::Era, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "payout_stakers", types::PayoutStakers { validator_stash, era }, @@ -17355,12 +21469,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::rebond`]."] + #[doc = "Rebond a portion of the stash scheduled to be unlocked."] + #[doc = ""] + #[doc = "The dispatch origin must be signed by the controller."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Time complexity: O(L), where L is unlocking chunks"] + #[doc = "- Bounded by `MaxUnlockingChunks`."] pub fn rebond( &self, value: types::rebond::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "rebond", types::Rebond { value }, @@ -17371,13 +21491,30 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::reap_stash`]."] + #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] + #[doc = "be considered `dust` in the staking system. The requirements are:"] + #[doc = ""] + #[doc = "1. the `total_balance` of the stash is below existential deposit."] + #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] + #[doc = "3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero."] + #[doc = ""] + #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] + #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] + #[doc = ""] + #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] + #[doc = ""] + #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] + #[doc = "details."] pub fn reap_stash( &self, stash: types::reap_stash::Stash, num_slashing_spans: types::reap_stash::NumSlashingSpans, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "reap_stash", types::ReapStash { stash, num_slashing_spans }, @@ -17388,12 +21525,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kick`]."] + #[doc = "Remove the given nominations from the calling validator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] + #[doc = " should no longer be nominating this validator."] + #[doc = ""] + #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] + #[doc = "block any further nominations."] pub fn kick( &self, who: types::kick::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "kick", types::Kick { who }, @@ -17404,7 +21551,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_staking_configs`]."] + #[doc = "Update the various staking configurations ."] + #[doc = ""] + #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] + #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] + #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] + #[doc = " should be filled in order for the `chill_other` transaction to work."] + #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] + #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] + #[doc = ""] + #[doc = "RuntimeOrigin must be Root to call this function."] + #[doc = ""] + #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] + #[doc = "to kick people under the new limits, `chill_other` should be called."] pub fn set_staking_configs( &self, min_nominator_bond: types::set_staking_configs::MinNominatorBond, @@ -17413,8 +21576,10 @@ pub mod api { max_validator_count: types::set_staking_configs::MaxValidatorCount, chill_threshold: types::set_staking_configs::ChillThreshold, min_commission: types::set_staking_configs::MinCommission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + max_staked_rewards: types::set_staking_configs::MaxStakedRewards, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "set_staking_configs", types::SetStakingConfigs { @@ -17424,20 +21589,47 @@ pub mod api { max_validator_count, chill_threshold, min_commission, + max_staked_rewards, }, [ - 99u8, 61u8, 196u8, 68u8, 226u8, 64u8, 104u8, 70u8, 173u8, 108u8, 29u8, - 39u8, 61u8, 202u8, 72u8, 227u8, 190u8, 6u8, 138u8, 137u8, 207u8, 11u8, - 190u8, 79u8, 73u8, 7u8, 108u8, 131u8, 19u8, 7u8, 173u8, 60u8, + 14u8, 242u8, 77u8, 245u8, 48u8, 49u8, 147u8, 180u8, 37u8, 61u8, 225u8, + 86u8, 130u8, 232u8, 77u8, 134u8, 152u8, 139u8, 18u8, 105u8, 135u8, + 203u8, 113u8, 240u8, 240u8, 90u8, 163u8, 185u8, 47u8, 233u8, 157u8, + 8u8, ], ) } - #[doc = "See [`Pallet::chill_other`]."] + #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] + #[doc = ""] + #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] + #[doc = "enforced, and this function behaves just like `chill`."] + #[doc = ""] + #[doc = "If the caller is different than the controller being targeted, the following conditions"] + #[doc = "must be met:"] + #[doc = ""] + #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] + #[doc = ""] + #[doc = "Or:"] + #[doc = ""] + #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] + #[doc = " nominators or validators we must reach before users can start chilling one-another."] + #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] + #[doc = " how close we are to the threshold."] + #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] + #[doc = " if this is a person that should be chilled because they have not met the threshold"] + #[doc = " bond required."] + #[doc = ""] + #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] + #[doc = "who do not satisfy these requirements."] pub fn chill_other( &self, stash: types::chill_other::Stash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "chill_other", types::ChillOther { stash }, @@ -17449,12 +21641,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_apply_min_commission`]."] + #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] + #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] + #[doc = "can call this."] pub fn force_apply_min_commission( &self, validator_stash: types::force_apply_min_commission::ValidatorStash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ForceApplyMinCommission, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "force_apply_min_commission", types::ForceApplyMinCommission { validator_stash }, @@ -17465,12 +21661,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_min_commission`]."] + #[doc = "Sets the minimum amount of commission that each validators must maintain."] + #[doc = ""] + #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] + #[doc = "by the `T::AdminOrigin`. Root can always call this."] pub fn set_min_commission( &self, new: types::set_min_commission::New, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "set_min_commission", types::SetMinCommission { new }, @@ -17482,14 +21681,31 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::payout_stakers_by_page`]."] + #[doc = "Pay out a page of the stakers behind a validator for the given era and page."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator."] + #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] + #[doc = "- `page` is the page index of nominators to pay out with value between 0 and"] + #[doc = " `num_nominators / T::MaxExposurePageSize`."] + #[doc = ""] + #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] + #[doc = "it is not one of the stakers."] + #[doc = ""] + #[doc = "If a validator has more than [`Config::MaxExposurePageSize`] nominators backing"] + #[doc = "them, then the list of nominators is paged, with each page being capped at"] + #[doc = "[`Config::MaxExposurePageSize`.] If a validator has more than one page of nominators,"] + #[doc = "the call needs to be made for each page separately in order for all the nominators"] + #[doc = "backing a validator to receive the reward. The nominators are not sorted across pages"] + #[doc = "and so it should not be assumed the highest staker would be on the topmost page and vice"] + #[doc = "versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost."] pub fn payout_stakers_by_page( &self, validator_stash: types::payout_stakers_by_page::ValidatorStash, era: types::payout_stakers_by_page::Era, page: types::payout_stakers_by_page::Page, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "payout_stakers_by_page", types::PayoutStakersByPage { validator_stash, era, page }, @@ -17500,12 +21716,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::update_payee`]."] + #[doc = "Migrates an account's `RewardDestination::Controller` to"] + #[doc = "`RewardDestination::Account(controller)`."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "This will waive the transaction fee if the `payee` is successfully migrated."] pub fn update_payee( &self, controller: types::update_payee::Controller, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "update_payee", types::UpdatePayee { controller }, @@ -17517,12 +21738,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::deprecate_controller_batch`]."] + #[doc = "Updates a batch of controller accounts to their corresponding stash account if they are"] + #[doc = "not the same. Ignores any controller accounts that do not exist, and does not operate if"] + #[doc = "the stash and controller are already the same."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin must be `T::AdminOrigin`."] pub fn deprecate_controller_batch( &self, controllers: types::deprecate_controller_batch::Controllers, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::DeprecateControllerBatch, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Staking", "deprecate_controller_batch", types::DeprecateControllerBatch { controllers }, @@ -17534,6 +21763,40 @@ pub mod api { ], ) } + #[doc = "Restores the state of a ledger which is in an inconsistent state."] + #[doc = ""] + #[doc = "The requirements to restore a ledger are the following:"] + #[doc = "* The stash is bonded; or"] + #[doc = "* The stash is not bonded but it has a staking lock left behind; or"] + #[doc = "* If the stash has an associated ledger and its state is inconsistent; or"] + #[doc = "* If the ledger is not corrupted *but* its staking lock is out of sync."] + #[doc = ""] + #[doc = "The `maybe_*` input parameters will overwrite the corresponding data and metadata of the"] + #[doc = "ledger associated with the stash. If the input parameters are not set, the ledger will"] + #[doc = "be reset values from on-chain state."] + pub fn restore_ledger( + &self, + stash: types::restore_ledger::Stash, + maybe_controller: types::restore_ledger::MaybeController, + maybe_total: types::restore_ledger::MaybeTotal, + maybe_unlocking: types::restore_ledger::MaybeUnlocking, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Staking", + "restore_ledger", + types::RestoreLedger { + stash, + maybe_controller, + maybe_total, + maybe_unlocking, + }, + [ + 199u8, 92u8, 58u8, 85u8, 126u8, 61u8, 68u8, 207u8, 29u8, 62u8, 9u8, + 161u8, 162u8, 101u8, 180u8, 210u8, 157u8, 88u8, 216u8, 169u8, 169u8, + 229u8, 190u8, 94u8, 40u8, 73u8, 37u8, 64u8, 23u8, 125u8, 117u8, 31u8, + ], + ) + } } } #[doc = "The `Event` enum of this pallet"] @@ -17541,18 +21804,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] #[doc = "the remainder from the maximum amount of reward."] pub struct EraPaid { @@ -17566,23 +21829,23 @@ pub mod api { pub type ValidatorPayout = ::core::primitive::u128; pub type Remainder = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for EraPaid { + impl ::subxt::ext::subxt_core::events::StaticEvent for EraPaid { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "EraPaid"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The nominator has been rewarded by this amount to this destination."] pub struct Rewarded { pub stash: rewarded::Stash, @@ -17591,29 +21854,29 @@ pub mod api { } pub mod rewarded { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; pub type Dest = runtime_types::pallet_staking::RewardDestination< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Rewarded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Rewarded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Rewarded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] pub struct Slashed { pub staker: slashed::Staker, @@ -17621,26 +21884,26 @@ pub mod api { } pub mod slashed { use super::runtime_types; - pub type Staker = ::subxt_core::utils::AccountId32; + pub type Staker = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Slashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Slashed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] pub struct SlashReported { @@ -17650,27 +21913,27 @@ pub mod api { } pub mod slash_reported { use super::runtime_types; - pub type Validator = ::subxt_core::utils::AccountId32; + pub type Validator = ::subxt::ext::subxt_core::utils::AccountId32; pub type Fraction = runtime_types::sp_arithmetic::per_things::Perbill; pub type SlashEra = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for SlashReported { + impl ::subxt::ext::subxt_core::events::StaticEvent for SlashReported { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "SlashReported"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed."] pub struct OldSlashingReportDiscarded { @@ -17680,42 +21943,42 @@ pub mod api { use super::runtime_types; pub type SessionIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for OldSlashingReportDiscarded { + impl ::subxt::ext::subxt_core::events::StaticEvent for OldSlashingReportDiscarded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "OldSlashingReportDiscarded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new set of stakers was elected."] pub struct StakersElected; - impl ::subxt_core::events::StaticEvent for StakersElected { + impl ::subxt::ext::subxt_core::events::StaticEvent for StakersElected { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakersElected"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has bonded this amount. \\[stash, amount\\]"] #[doc = ""] #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] @@ -17726,26 +21989,26 @@ pub mod api { } pub mod bonded { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Bonded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Bonded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Bonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has unbonded this amount."] pub struct Unbonded { pub stash: unbonded::Stash, @@ -17753,26 +22016,26 @@ pub mod api { } pub mod unbonded { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Unbonded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Unbonded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] pub struct Withdrawn { @@ -17781,26 +22044,26 @@ pub mod api { } pub mod withdrawn { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Withdrawn { + impl ::subxt::ext::subxt_core::events::StaticEvent for Withdrawn { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Withdrawn"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A nominator has been kicked from a validator."] pub struct Kicked { pub nominator: kicked::Nominator, @@ -17808,70 +22071,70 @@ pub mod api { } pub mod kicked { use super::runtime_types; - pub type Nominator = ::subxt_core::utils::AccountId32; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Nominator = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Kicked { + impl ::subxt::ext::subxt_core::events::StaticEvent for Kicked { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Kicked"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; - impl ::subxt_core::events::StaticEvent for StakingElectionFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for StakingElectionFailed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakingElectionFailed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An account has stopped participating as either a validator or nominator."] pub struct Chilled { pub stash: chilled::Stash, } pub mod chilled { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Chilled { + impl ::subxt::ext::subxt_core::events::StaticEvent for Chilled { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Chilled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: payout_started::EraIndex, @@ -17880,25 +22143,25 @@ pub mod api { pub mod payout_started { use super::runtime_types; pub type EraIndex = ::core::primitive::u32; - pub type ValidatorStash = ::subxt_core::utils::AccountId32; + pub type ValidatorStash = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for PayoutStarted { + impl ::subxt::ext::subxt_core::events::StaticEvent for PayoutStarted { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "PayoutStarted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A validator has set their preferences."] pub struct ValidatorPrefsSet { pub stash: validator_prefs_set::Stash, @@ -17906,26 +22169,26 @@ pub mod api { } pub mod validator_prefs_set { use super::runtime_types; - pub type Stash = ::subxt_core::utils::AccountId32; + pub type Stash = ::subxt::ext::subxt_core::utils::AccountId32; pub type Prefs = runtime_types::pallet_staking::ValidatorPrefs; } - impl ::subxt_core::events::StaticEvent for ValidatorPrefsSet { + impl ::subxt::ext::subxt_core::events::StaticEvent for ValidatorPrefsSet { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "ValidatorPrefsSet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Voters size limit reached."] pub struct SnapshotVotersSizeExceeded { pub size: snapshot_voters_size_exceeded::Size, @@ -17934,23 +22197,23 @@ pub mod api { use super::runtime_types; pub type Size = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for SnapshotVotersSizeExceeded { + impl ::subxt::ext::subxt_core::events::StaticEvent for SnapshotVotersSizeExceeded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "SnapshotVotersSizeExceeded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Targets size limit reached."] pub struct SnapshotTargetsSizeExceeded { pub size: snapshot_targets_size_exceeded::Size, @@ -17959,23 +22222,23 @@ pub mod api { use super::runtime_types; pub type Size = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for SnapshotTargetsSizeExceeded { + impl ::subxt::ext::subxt_core::events::StaticEvent for SnapshotTargetsSizeExceeded { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "SnapshotTargetsSizeExceeded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new force era mode was set."] pub struct ForceEra { pub mode: force_era::Mode, @@ -17984,10 +22247,35 @@ pub mod api { use super::runtime_types; pub type Mode = runtime_types::pallet_staking::Forcing; } - impl ::subxt_core::events::StaticEvent for ForceEra { + impl ::subxt::ext::subxt_core::events::StaticEvent for ForceEra { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "ForceEra"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Report of a controller batch deprecation."] + pub struct ControllerBatchDeprecated { + pub failures: controller_batch_deprecated::Failures, + } + pub mod controller_batch_deprecated { + use super::runtime_types; + pub type Failures = ::core::primitive::u32; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for ControllerBatchDeprecated { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ControllerBatchDeprecated"; + } } pub mod storage { use super::runtime_types; @@ -18003,13 +22291,14 @@ pub mod api { } pub mod invulnerables { use super::runtime_types; - pub type Invulnerables = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Invulnerables = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } pub mod bonded { use super::runtime_types; - pub type Bonded = ::subxt_core::utils::AccountId32; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Bonded = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod min_nominator_bond { use super::runtime_types; @@ -18030,19 +22319,19 @@ pub mod api { pub mod ledger { use super::runtime_types; pub type Ledger = runtime_types::pallet_staking::StakingLedger; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod payee { use super::runtime_types; pub type Payee = runtime_types::pallet_staking::RewardDestination< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod validators { use super::runtime_types; pub type Validators = runtime_types::pallet_staking::ValidatorPrefs; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod counter_for_validators { use super::runtime_types; @@ -18055,12 +22344,21 @@ pub mod api { pub mod nominators { use super::runtime_types; pub type Nominators = runtime_types::pallet_staking::Nominations; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod counter_for_nominators { use super::runtime_types; pub type CounterForNominators = ::core::primitive::u32; } + pub mod virtual_stakers { + use super::runtime_types; + pub type VirtualStakers = (); + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; + } + pub mod counter_for_virtual_stakers { + use super::runtime_types; + pub type CounterForVirtualStakers = ::core::primitive::u32; + } pub mod max_nominators_count { use super::runtime_types; pub type MaxNominatorsCount = ::core::primitive::u32; @@ -18081,49 +22379,50 @@ pub mod api { pub mod eras_stakers { use super::runtime_types; pub type ErasStakers = runtime_types::sp_staking::Exposure< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod eras_stakers_overview { use super::runtime_types; pub type ErasStakersOverview = runtime_types::sp_staking::PagedExposureMetadata<::core::primitive::u128>; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod eras_stakers_clipped { use super::runtime_types; pub type ErasStakersClipped = runtime_types::sp_staking::Exposure< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod eras_stakers_paged { use super::runtime_types; pub type ErasStakersPaged = runtime_types::sp_staking::ExposurePage< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; pub type Param2 = ::core::primitive::u32; } pub mod claimed_rewards { use super::runtime_types; - pub type ClaimedRewards = ::subxt_core::alloc::vec::Vec<::core::primitive::u32>; + pub type ClaimedRewards = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod eras_validator_prefs { use super::runtime_types; pub type ErasValidatorPrefs = runtime_types::pallet_staking::ValidatorPrefs; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod eras_validator_reward { use super::runtime_types; @@ -18133,7 +22432,7 @@ pub mod api { pub mod eras_reward_points { use super::runtime_types; pub type ErasRewardPoints = runtime_types::pallet_staking::EraRewardPoints< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type Param0 = ::core::primitive::u32; } @@ -18146,6 +22445,10 @@ pub mod api { use super::runtime_types; pub type ForceEra = runtime_types::pallet_staking::Forcing; } + pub mod max_staked_rewards { + use super::runtime_types; + pub type MaxStakedRewards = runtime_types::sp_arithmetic::per_things::Percent; + } pub mod slash_reward_fraction { use super::runtime_types; pub type SlashRewardFraction = @@ -18157,9 +22460,9 @@ pub mod api { } pub mod unapplied_slashes { use super::runtime_types; - pub type UnappliedSlashes = ::subxt_core::alloc::vec::Vec< + pub type UnappliedSlashes = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::pallet_staking::UnappliedSlash< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >, >; @@ -18167,7 +22470,7 @@ pub mod api { } pub mod bonded_eras { use super::runtime_types; - pub type BondedEras = ::subxt_core::alloc::vec::Vec<( + pub type BondedEras = ::subxt::ext::subxt_core::alloc::vec::Vec<( ::core::primitive::u32, ::core::primitive::u32, )>; @@ -18179,37 +22482,35 @@ pub mod api { ::core::primitive::u128, ); pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod nominator_slash_in_era { use super::runtime_types; pub type NominatorSlashInEra = ::core::primitive::u128; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod slashing_spans { use super::runtime_types; pub type SlashingSpans = runtime_types::pallet_staking::slashing::SlashingSpans; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod span_slash { use super::runtime_types; pub type SpanSlash = runtime_types::pallet_staking::slashing::SpanRecord< ::core::primitive::u128, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; pub type Param1 = ::core::primitive::u32; } pub mod current_planned_session { use super::runtime_types; pub type CurrentPlannedSession = ::core::primitive::u32; } - pub mod offending_validators { + pub mod disabled_validators { use super::runtime_types; - pub type OffendingValidators = ::subxt_core::alloc::vec::Vec<( - ::core::primitive::u32, - ::core::primitive::bool, - )>; + pub type DisabledValidators = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>; } pub mod chill_threshold { use super::runtime_types; @@ -18221,14 +22522,14 @@ pub mod api { #[doc = " The ideal number of active validators."] pub fn validator_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::validator_count::ValidatorCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ValidatorCount", (), @@ -18243,14 +22544,14 @@ pub mod api { #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::minimum_validator_count::MinimumValidatorCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "MinimumValidatorCount", (), @@ -18266,14 +22567,14 @@ pub mod api { #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::invulnerables::Invulnerables, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Invulnerables", (), @@ -18290,14 +22591,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bonded::Bonded, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Bonded", (), @@ -18315,17 +22616,21 @@ pub mod api { pub fn bonded( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::bonded::Param0, + >, types::bonded::Bonded, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Bonded", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 99u8, 128u8, 108u8, 100u8, 235u8, 102u8, 243u8, 95u8, 61u8, 206u8, 220u8, 49u8, 155u8, 85u8, 236u8, 110u8, 99u8, 21u8, 117u8, 127u8, @@ -18337,14 +22642,14 @@ pub mod api { #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_nominator_bond::MinNominatorBond, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "MinNominatorBond", (), @@ -18359,14 +22664,14 @@ pub mod api { #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_validator_bond::MinValidatorBond, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "MinValidatorBond", (), @@ -18381,14 +22686,14 @@ pub mod api { #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::minimum_active_stake::MinimumActiveStake, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "MinimumActiveStake", (), @@ -18404,14 +22709,14 @@ pub mod api { #[doc = " If set to `0`, no limit exists."] pub fn min_commission( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_commission::MinCommission, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "MinCommission", (), @@ -18428,14 +22733,14 @@ pub mod api { #[doc = " by [`StakingLedger`] to ensure data and lock consistency."] pub fn ledger_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::ledger::Ledger, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Ledger", (), @@ -18453,17 +22758,21 @@ pub mod api { pub fn ledger( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::ledger::Param0, + >, types::ledger::Ledger, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Ledger", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 109u8, 240u8, 70u8, 127u8, 227u8, 170u8, 76u8, 152u8, 52u8, 24u8, 90u8, 23u8, 56u8, 59u8, 16u8, 55u8, 68u8, 214u8, 235u8, 142u8, 189u8, 234u8, @@ -18476,14 +22785,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::payee::Payee, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Payee", (), @@ -18501,17 +22810,21 @@ pub mod api { pub fn payee( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::payee::Param0, + >, types::payee::Payee, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Payee", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 218u8, 38u8, 125u8, 139u8, 146u8, 230u8, 58u8, 61u8, 163u8, 36u8, 81u8, 175u8, 227u8, 148u8, 135u8, 196u8, 132u8, 198u8, 228u8, 137u8, 4u8, @@ -18525,14 +22838,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::validators::Validators, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Validators", (), @@ -18549,17 +22862,21 @@ pub mod api { pub fn validators( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::validators::Param0, + >, types::validators::Validators, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Validators", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, @@ -18570,14 +22887,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_validators::CounterForValidators, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "CounterForValidators", (), @@ -18594,14 +22911,14 @@ pub mod api { #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::max_validators_count::MaxValidatorsCount, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "MaxValidatorsCount", (), @@ -18634,14 +22951,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::nominators::Nominators, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Nominators", (), @@ -18674,17 +22991,21 @@ pub mod api { pub fn nominators( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::nominators::Param0, + >, types::nominators::Nominators, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "Nominators", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 244u8, 174u8, 214u8, 105u8, 215u8, 218u8, 241u8, 145u8, 155u8, 54u8, 219u8, 34u8, 158u8, 224u8, 251u8, 17u8, 245u8, 9u8, 150u8, 36u8, 2u8, @@ -18695,14 +23016,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_nominators::CounterForNominators, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "CounterForNominators", (), @@ -18713,19 +23034,98 @@ pub mod api { ], ) } + #[doc = " Stakers whose funds are managed by other pallets."] + #[doc = ""] + #[doc = " This pallet does not apply any locks on them, therefore they are only virtually bonded. They"] + #[doc = " are expected to be keyless accounts and hence should not be allowed to mutate their ledger"] + #[doc = " directly via this pallet. Instead, these accounts are managed by other pallets and accessed"] + #[doc = " via low level apis. We keep track of them to do minimal integrity checks."] + pub fn virtual_stakers_iter( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::virtual_stakers::VirtualStakers, + (), + (), + ::subxt::ext::subxt_core::utils::Yes, + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Staking", + "VirtualStakers", + (), + [ + 176u8, 114u8, 176u8, 164u8, 4u8, 33u8, 248u8, 152u8, 206u8, 8u8, 241u8, + 209u8, 96u8, 131u8, 145u8, 120u8, 74u8, 141u8, 249u8, 208u8, 93u8, + 157u8, 125u8, 0u8, 63u8, 18u8, 61u8, 195u8, 240u8, 145u8, 15u8, 161u8, + ], + ) + } + #[doc = " Stakers whose funds are managed by other pallets."] + #[doc = ""] + #[doc = " This pallet does not apply any locks on them, therefore they are only virtually bonded. They"] + #[doc = " are expected to be keyless accounts and hence should not be allowed to mutate their ledger"] + #[doc = " directly via this pallet. Instead, these accounts are managed by other pallets and accessed"] + #[doc = " via low level apis. We keep track of them to do minimal integrity checks."] + pub fn virtual_stakers( + &self, + _0: impl ::core::borrow::Borrow, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::virtual_stakers::Param0, + >, + types::virtual_stakers::VirtualStakers, + ::subxt::ext::subxt_core::utils::Yes, + (), + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Staking", + "VirtualStakers", + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + [ + 176u8, 114u8, 176u8, 164u8, 4u8, 33u8, 248u8, 152u8, 206u8, 8u8, 241u8, + 209u8, 96u8, 131u8, 145u8, 120u8, 74u8, 141u8, 249u8, 208u8, 93u8, + 157u8, 125u8, 0u8, 63u8, 18u8, 61u8, 195u8, 240u8, 145u8, 15u8, 161u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_virtual_stakers( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::counter_for_virtual_stakers::CounterForVirtualStakers, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Staking", + "CounterForVirtualStakers", + (), + [ + 50u8, 194u8, 203u8, 237u8, 196u8, 237u8, 212u8, 33u8, 145u8, 68u8, + 29u8, 99u8, 68u8, 153u8, 191u8, 111u8, 104u8, 148u8, 191u8, 92u8, + 249u8, 22u8, 253u8, 98u8, 176u8, 152u8, 237u8, 143u8, 26u8, 5u8, 1u8, + 98u8, + ], + ) + } #[doc = " The maximum nominator count before we stop allowing new validators to join."] #[doc = ""] #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::max_nominators_count::MaxNominatorsCount, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "MaxNominatorsCount", (), @@ -18742,14 +23142,14 @@ pub mod api { #[doc = " set, it might be active or not."] pub fn current_era( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_era::CurrentEra, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "CurrentEra", (), @@ -18767,14 +23167,14 @@ pub mod api { #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::active_era::ActiveEra, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ActiveEra", (), @@ -18792,14 +23192,14 @@ pub mod api { #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_start_session_index::ErasStartSessionIndex, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStartSessionIndex", (), @@ -18817,19 +23217,21 @@ pub mod api { pub fn eras_start_session_index( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_start_session_index::Param0, >, types::eras_start_session_index::ErasStartSessionIndex, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStartSessionIndex", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 104u8, 76u8, 102u8, 20u8, 9u8, 146u8, 55u8, 204u8, 12u8, 15u8, 117u8, 22u8, 54u8, 230u8, 98u8, 105u8, 191u8, 136u8, 140u8, 65u8, 48u8, 29u8, @@ -18847,14 +23249,14 @@ pub mod api { #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] pub fn eras_stakers_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_stakers::ErasStakers, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakers", (), @@ -18877,17 +23279,21 @@ pub mod api { pub fn eras_stakers_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::eras_stakers::Param0, + >, types::eras_stakers::ErasStakers, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakers", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, @@ -18908,26 +23314,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers::Param1, >, ), types::eras_stakers::ErasStakers, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakers", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, @@ -18951,14 +23361,14 @@ pub mod api { #[doc = " If stakers hasn't been set or has been removed then empty overview is returned."] pub fn eras_stakers_overview_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_stakers_overview::ErasStakersOverview, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersOverview", (), @@ -18985,19 +23395,21 @@ pub mod api { pub fn eras_stakers_overview_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_overview::Param0, >, types::eras_stakers_overview::ErasStakersOverview, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersOverview", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 235u8, 255u8, 39u8, 72u8, 235u8, 168u8, 98u8, 191u8, 30u8, 195u8, 141u8, 103u8, 167u8, 115u8, 74u8, 170u8, 117u8, 153u8, 151u8, 186u8, @@ -19022,26 +23434,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_overview::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_overview::Param1, >, ), types::eras_stakers_overview::ErasStakersOverview, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersOverview", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 235u8, 255u8, 39u8, 72u8, 235u8, 168u8, 98u8, 191u8, 30u8, 195u8, @@ -19069,14 +23485,14 @@ pub mod api { #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] pub fn eras_stakers_clipped_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_stakers_clipped::ErasStakersClipped, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersClipped", (), @@ -19107,19 +23523,21 @@ pub mod api { pub fn eras_stakers_clipped_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_clipped::Param0, >, types::eras_stakers_clipped::ErasStakersClipped, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersClipped", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, @@ -19148,26 +23566,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_clipped::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_clipped::Param1, >, ), types::eras_stakers_clipped::ErasStakersClipped, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersClipped", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, @@ -19185,14 +23607,14 @@ pub mod api { #[doc = " This is cleared after [`Config::HistoryDepth`] eras."] pub fn eras_stakers_paged_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_stakers_paged::ErasStakersPaged, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersPaged", (), @@ -19213,19 +23635,21 @@ pub mod api { pub fn eras_stakers_paged_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_paged::Param0, >, types::eras_stakers_paged::ErasStakersPaged, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersPaged", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 111u8, 11u8, 84u8, 186u8, 98u8, 173u8, 68u8, 65u8, 58u8, 241u8, 211u8, 126u8, 10u8, 96u8, 40u8, 20u8, 233u8, 238u8, 116u8, 113u8, 215u8, @@ -19244,26 +23668,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_paged::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_paged::Param1, >, ), types::eras_stakers_paged::ErasStakersPaged, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersPaged", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 111u8, 11u8, 84u8, 186u8, 98u8, 173u8, 68u8, 65u8, 58u8, 241u8, 211u8, @@ -19284,30 +23712,36 @@ pub mod api { _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, _2: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_paged::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_paged::Param1, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_stakers_paged::Param2, >, ), types::eras_stakers_paged::ErasStakersPaged, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasStakersPaged", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_2.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _2.borrow(), + ), ), [ 111u8, 11u8, 84u8, 186u8, 98u8, 173u8, 68u8, 65u8, 58u8, 241u8, 211u8, @@ -19325,14 +23759,14 @@ pub mod api { #[doc = " It is removed after [`Config::HistoryDepth`] eras."] pub fn claimed_rewards_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::claimed_rewards::ClaimedRewards, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ClaimedRewards", (), @@ -19352,19 +23786,21 @@ pub mod api { pub fn claimed_rewards_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::claimed_rewards::Param0, >, types::claimed_rewards::ClaimedRewards, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ClaimedRewards", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 44u8, 248u8, 79u8, 211u8, 69u8, 179u8, 60u8, 185u8, 3u8, 175u8, 51u8, 137u8, 222u8, 150u8, 73u8, 60u8, 178u8, 0u8, 179u8, 117u8, 37u8, 86u8, @@ -19382,26 +23818,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::claimed_rewards::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::claimed_rewards::Param1, >, ), types::claimed_rewards::ClaimedRewards, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ClaimedRewards", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 44u8, 248u8, 79u8, 211u8, 69u8, 179u8, 60u8, 185u8, 3u8, 175u8, 51u8, @@ -19417,14 +23857,14 @@ pub mod api { #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] pub fn eras_validator_prefs_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_validator_prefs::ErasValidatorPrefs, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasValidatorPrefs", (), @@ -19443,19 +23883,21 @@ pub mod api { pub fn eras_validator_prefs_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_validator_prefs::Param0, >, types::eras_validator_prefs::ErasValidatorPrefs, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasValidatorPrefs", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, @@ -19472,26 +23914,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_validator_prefs::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_validator_prefs::Param1, >, ), types::eras_validator_prefs::ErasValidatorPrefs, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasValidatorPrefs", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, @@ -19505,14 +23951,14 @@ pub mod api { #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_validator_reward::ErasValidatorReward, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasValidatorReward", (), @@ -19529,19 +23975,21 @@ pub mod api { pub fn eras_validator_reward( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_validator_reward::Param0, >, types::eras_validator_reward::ErasValidatorReward, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasValidatorReward", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, @@ -19553,14 +24001,14 @@ pub mod api { #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_reward_points::ErasRewardPoints, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasRewardPoints", (), @@ -19576,19 +24024,21 @@ pub mod api { pub fn eras_reward_points( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_reward_points::Param0, >, types::eras_reward_points::ErasRewardPoints, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasRewardPoints", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 135u8, 0u8, 85u8, 241u8, 213u8, 133u8, 30u8, 192u8, 251u8, 191u8, 41u8, 38u8, 233u8, 236u8, 218u8, 246u8, 166u8, 93u8, 46u8, 37u8, 48u8, 187u8, @@ -19600,14 +24050,14 @@ pub mod api { #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::eras_total_stake::ErasTotalStake, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasTotalStake", (), @@ -19624,19 +24074,21 @@ pub mod api { pub fn eras_total_stake( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::eras_total_stake::Param0, >, types::eras_total_stake::ErasTotalStake, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ErasTotalStake", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, @@ -19648,14 +24100,14 @@ pub mod api { #[doc = " Mode of era forcing."] pub fn force_era( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::force_era::ForceEra, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ForceEra", (), @@ -19667,19 +24119,42 @@ pub mod api { ], ) } + #[doc = " Maximum staked rewards, i.e. the percentage of the era inflation that"] + #[doc = " is used for stake rewards."] + #[doc = " See [Era payout](./index.html#era-payout)."] + pub fn max_staked_rewards( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::max_staked_rewards::MaxStakedRewards, + ::subxt::ext::subxt_core::utils::Yes, + (), + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Staking", + "MaxStakedRewards", + (), + [ + 115u8, 208u8, 243u8, 76u8, 110u8, 71u8, 154u8, 80u8, 193u8, 138u8, + 75u8, 11u8, 24u8, 51u8, 112u8, 125u8, 153u8, 151u8, 216u8, 67u8, 214u8, + 4u8, 94u8, 229u8, 32u8, 186u8, 140u8, 150u8, 100u8, 233u8, 88u8, 53u8, + ], + ) + } #[doc = " The percentage of the slash that is distributed to reporters."] #[doc = ""] #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::slash_reward_fraction::SlashRewardFraction, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "SlashRewardFraction", (), @@ -19695,14 +24170,14 @@ pub mod api { #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::canceled_slash_payout::CanceledSlashPayout, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "CanceledSlashPayout", (), @@ -19717,14 +24192,14 @@ pub mod api { #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::unapplied_slashes::UnappliedSlashes, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "UnappliedSlashes", (), @@ -19740,19 +24215,21 @@ pub mod api { pub fn unapplied_slashes( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::unapplied_slashes::Param0, >, types::unapplied_slashes::UnappliedSlashes, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "UnappliedSlashes", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 158u8, 134u8, 7u8, 21u8, 200u8, 222u8, 197u8, 166u8, 199u8, 39u8, 1u8, 167u8, 164u8, 154u8, 165u8, 118u8, 92u8, 223u8, 219u8, 136u8, 196u8, @@ -19767,14 +24244,14 @@ pub mod api { #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bonded_eras::BondedEras, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "BondedEras", (), @@ -19790,14 +24267,14 @@ pub mod api { #[doc = " and slash value of the era."] pub fn validator_slash_in_era_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::validator_slash_in_era::ValidatorSlashInEra, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ValidatorSlashInEra", (), @@ -19813,19 +24290,21 @@ pub mod api { pub fn validator_slash_in_era_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::validator_slash_in_era::Param0, >, types::validator_slash_in_era::ValidatorSlashInEra, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ValidatorSlashInEra", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, @@ -19839,26 +24318,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::validator_slash_in_era::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::validator_slash_in_era::Param1, >, ), types::validator_slash_in_era::ValidatorSlashInEra, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ValidatorSlashInEra", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, @@ -19870,14 +24353,14 @@ pub mod api { #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::nominator_slash_in_era::NominatorSlashInEra, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "NominatorSlashInEra", (), @@ -19892,19 +24375,21 @@ pub mod api { pub fn nominator_slash_in_era_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::nominator_slash_in_era::Param0, >, types::nominator_slash_in_era::NominatorSlashInEra, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "NominatorSlashInEra", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, @@ -19917,26 +24402,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::nominator_slash_in_era::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::nominator_slash_in_era::Param1, >, ), types::nominator_slash_in_era::NominatorSlashInEra, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "NominatorSlashInEra", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, @@ -19948,14 +24437,14 @@ pub mod api { #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::slashing_spans::SlashingSpans, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "SlashingSpans", (), @@ -19971,17 +24460,21 @@ pub mod api { pub fn slashing_spans( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::slashing_spans::Param0, + >, types::slashing_spans::SlashingSpans, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "SlashingSpans", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 74u8, 169u8, 189u8, 252u8, 193u8, 191u8, 114u8, 107u8, 158u8, 125u8, 252u8, 35u8, 177u8, 129u8, 99u8, 24u8, 77u8, 223u8, 238u8, 24u8, 237u8, @@ -19994,14 +24487,14 @@ pub mod api { #[doc = " as well as how much reward has been paid out."] pub fn span_slash_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::span_slash::SpanSlash, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "SpanSlash", (), @@ -20017,17 +24510,21 @@ pub mod api { pub fn span_slash_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::span_slash::Param0, + >, types::span_slash::SpanSlash, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "SpanSlash", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, @@ -20041,22 +24538,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::span_slash::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::span_slash::Param1, + >, ), types::span_slash::SpanSlash, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "SpanSlash", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, @@ -20070,14 +24575,14 @@ pub mod api { #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_planned_session::CurrentPlannedSession, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "CurrentPlannedSession", (), @@ -20088,33 +24593,30 @@ pub mod api { ], ) } - #[doc = " Indices of validators that have offended in the active era and whether they are currently"] - #[doc = " disabled."] + #[doc = " Indices of validators that have offended in the active era. The offenders are disabled for a"] + #[doc = " whole era. For this reason they are kept here - only staking pallet knows about eras. The"] + #[doc = " implementor of [`DisablingStrategy`] defines if a validator should be disabled which"] + #[doc = " implicitly means that the implementor also controls the max number of disabled validators."] #[doc = ""] - #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] - #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] - #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] - #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] - #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] - #[doc = " the era ends."] - pub fn offending_validators( + #[doc = " The vec is always kept sorted so that we can find whether a given validator has previously"] + #[doc = " offended using binary search."] + pub fn disabled_validators( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), - types::offending_validators::OffendingValidators, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + types::disabled_validators::DisabledValidators, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", - "OffendingValidators", + "DisabledValidators", (), [ - 201u8, 31u8, 141u8, 182u8, 160u8, 180u8, 37u8, 226u8, 50u8, 65u8, - 103u8, 11u8, 38u8, 120u8, 200u8, 219u8, 219u8, 98u8, 185u8, 137u8, - 154u8, 20u8, 130u8, 163u8, 126u8, 185u8, 33u8, 194u8, 76u8, 172u8, - 70u8, 220u8, + 213u8, 19u8, 168u8, 234u8, 187u8, 200u8, 180u8, 97u8, 234u8, 189u8, + 36u8, 233u8, 158u8, 184u8, 45u8, 35u8, 129u8, 213u8, 133u8, 8u8, 104u8, + 183u8, 46u8, 68u8, 154u8, 240u8, 132u8, 22u8, 247u8, 11u8, 54u8, 221u8, ], ) } @@ -20123,14 +24625,14 @@ pub mod api { #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::chill_threshold::ChillThreshold, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Staking", "ChillThreshold", (), @@ -20169,8 +24671,10 @@ pub mod api { #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Staking", "HistoryDepth", [ @@ -20184,8 +24688,10 @@ pub mod api { #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Staking", "SessionsPerEra", [ @@ -20199,8 +24705,10 @@ pub mod api { #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Staking", "BondingDuration", [ @@ -20217,8 +24725,10 @@ pub mod api { #[doc = " should be applied immediately, without opportunity for intervention."] pub fn slash_defer_duration( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Staking", "SlashDeferDuration", [ @@ -20242,8 +24752,10 @@ pub mod api { #[doc = " without handling it in a migration."] pub fn max_exposure_page_size( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Staking", "MaxExposurePageSize", [ @@ -20266,8 +24778,10 @@ pub mod api { #[doc = " this effect."] pub fn max_unlocking_chunks( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Staking", "MaxUnlockingChunks", [ @@ -20295,19 +24809,31 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_keys`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Sets the session key(s) of the function caller to `keys`."] + #[doc = "Allows an account to set its session key prior to becoming a validator."] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be signed."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] + #[doc = " fixed."] pub struct SetKeys { pub keys: set_keys::Keys, pub proof: set_keys::Proof, @@ -20315,57 +24841,91 @@ pub mod api { pub mod set_keys { use super::runtime_types; pub type Keys = runtime_types::tangle_testnet_runtime::opaque::SessionKeys; - pub type Proof = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Proof = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetKeys { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetKeys { const PALLET: &'static str = "Session"; const CALL: &'static str = "set_keys"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::purge_keys`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Removes any session key(s) of the function caller."] + #[doc = ""] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] + #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] + #[doc = "means being a controller account) or directly convertible into a validator ID (which"] + #[doc = "usually means being a stash account)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] + #[doc = " `T::Keys::key_ids()` which is fixed."] pub struct PurgeKeys; - impl ::subxt_core::blocks::StaticExtrinsic for PurgeKeys { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PurgeKeys { const PALLET: &'static str = "Session"; const CALL: &'static str = "purge_keys"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::set_keys`]."] + #[doc = "Sets the session key(s) of the function caller to `keys`."] + #[doc = "Allows an account to set its session key prior to becoming a validator."] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be signed."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] + #[doc = " fixed."] pub fn set_keys( &self, keys: types::set_keys::Keys, proof: types::set_keys::Proof, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Session", "set_keys", types::SetKeys { keys, proof }, [ - 198u8, 58u8, 144u8, 226u8, 111u8, 226u8, 216u8, 212u8, 82u8, 116u8, - 160u8, 253u8, 180u8, 252u8, 117u8, 151u8, 175u8, 116u8, 92u8, 82u8, - 228u8, 139u8, 243u8, 50u8, 196u8, 252u8, 240u8, 118u8, 253u8, 245u8, - 20u8, 226u8, + 228u8, 24u8, 198u8, 80u8, 11u8, 55u8, 61u8, 63u8, 97u8, 52u8, 16u8, + 194u8, 244u8, 83u8, 205u8, 189u8, 19u8, 158u8, 195u8, 163u8, 162u8, + 154u8, 168u8, 176u8, 206u8, 179u8, 171u8, 98u8, 27u8, 32u8, 60u8, 72u8, ], ) } - #[doc = "See [`Pallet::purge_keys`]."] + #[doc = "Removes any session key(s) of the function caller."] + #[doc = ""] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] + #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] + #[doc = "means being a controller account) or directly convertible into a validator ID (which"] + #[doc = "usually means being a stash account)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] + #[doc = " `T::Keys::key_ids()` which is fixed."] pub fn purge_keys( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Session", "purge_keys", types::PurgeKeys {}, @@ -20384,18 +24944,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] pub struct NewSession { @@ -20405,7 +24965,7 @@ pub mod api { use super::runtime_types; pub type SessionIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for NewSession { + impl ::subxt::ext::subxt_core::events::StaticEvent for NewSession { const PALLET: &'static str = "Session"; const EVENT: &'static str = "NewSession"; } @@ -20416,8 +24976,9 @@ pub mod api { use super::runtime_types; pub mod validators { use super::runtime_types; - pub type Validators = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Validators = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } pub mod current_index { use super::runtime_types; @@ -20429,24 +24990,24 @@ pub mod api { } pub mod queued_keys { use super::runtime_types; - pub type QueuedKeys = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + pub type QueuedKeys = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::tangle_testnet_runtime::opaque::SessionKeys, )>; } pub mod disabled_validators { use super::runtime_types; pub type DisabledValidators = - ::subxt_core::alloc::vec::Vec<::core::primitive::u32>; + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>; } pub mod next_keys { use super::runtime_types; pub type NextKeys = runtime_types::tangle_testnet_runtime::opaque::SessionKeys; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod key_owner { use super::runtime_types; - pub type KeyOwner = ::subxt_core::utils::AccountId32; + pub type KeyOwner = ::subxt::ext::subxt_core::utils::AccountId32; pub type Param0 = runtime_types::sp_core::crypto::KeyTypeId; pub type Param1 = [::core::primitive::u8]; } @@ -20456,14 +25017,14 @@ pub mod api { #[doc = " The current set of validators."] pub fn validators( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::validators::Validators, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "Validators", (), @@ -20478,14 +25039,14 @@ pub mod api { #[doc = " Current index of the session."] pub fn current_index( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_index::CurrentIndex, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "CurrentIndex", (), @@ -20501,14 +25062,14 @@ pub mod api { #[doc = " has changed in the queued validator set."] pub fn queued_changed( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::queued_changed::QueuedChanged, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "QueuedChanged", (), @@ -20524,21 +25085,21 @@ pub mod api { #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::queued_keys::QueuedKeys, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "QueuedKeys", (), [ - 216u8, 27u8, 59u8, 207u8, 116u8, 44u8, 89u8, 114u8, 88u8, 97u8, 160u8, - 35u8, 82u8, 91u8, 187u8, 14u8, 229u8, 114u8, 91u8, 94u8, 108u8, 91u8, - 99u8, 90u8, 127u8, 211u8, 78u8, 56u8, 183u8, 184u8, 135u8, 254u8, + 232u8, 66u8, 243u8, 215u8, 174u8, 100u8, 75u8, 44u8, 98u8, 40u8, 166u8, + 83u8, 9u8, 54u8, 94u8, 197u8, 135u8, 15u8, 181u8, 251u8, 14u8, 185u8, + 2u8, 97u8, 190u8, 184u8, 43u8, 48u8, 157u8, 18u8, 116u8, 194u8, ], ) } @@ -20549,14 +25110,14 @@ pub mod api { #[doc = " a new set of identities."] pub fn disabled_validators( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::disabled_validators::DisabledValidators, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "DisabledValidators", (), @@ -20570,22 +25131,21 @@ pub mod api { #[doc = " The next session keys for a validator."] pub fn next_keys_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_keys::NextKeys, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "NextKeys", (), [ - 63u8, 202u8, 188u8, 188u8, 181u8, 211u8, 192u8, 102u8, 236u8, 143u8, - 178u8, 237u8, 251u8, 116u8, 231u8, 105u8, 71u8, 253u8, 92u8, 128u8, - 145u8, 238u8, 124u8, 68u8, 111u8, 32u8, 29u8, 82u8, 217u8, 213u8, 51u8, - 166u8, + 51u8, 114u8, 107u8, 2u8, 144u8, 184u8, 167u8, 66u8, 213u8, 2u8, 91u8, + 69u8, 17u8, 28u8, 34u8, 5u8, 89u8, 79u8, 23u8, 55u8, 5u8, 222u8, 177u8, + 132u8, 194u8, 54u8, 56u8, 167u8, 57u8, 48u8, 230u8, 149u8, ], ) } @@ -20593,36 +25153,39 @@ pub mod api { pub fn next_keys( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::next_keys::Param0, + >, types::next_keys::NextKeys, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "NextKeys", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 63u8, 202u8, 188u8, 188u8, 181u8, 211u8, 192u8, 102u8, 236u8, 143u8, - 178u8, 237u8, 251u8, 116u8, 231u8, 105u8, 71u8, 253u8, 92u8, 128u8, - 145u8, 238u8, 124u8, 68u8, 111u8, 32u8, 29u8, 82u8, 217u8, 213u8, 51u8, - 166u8, + 51u8, 114u8, 107u8, 2u8, 144u8, 184u8, 167u8, 66u8, 213u8, 2u8, 91u8, + 69u8, 17u8, 28u8, 34u8, 5u8, 89u8, 79u8, 23u8, 55u8, 5u8, 222u8, 177u8, + 132u8, 194u8, 54u8, 56u8, 167u8, 57u8, 48u8, 230u8, 149u8, ], ) } #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::key_owner::KeyOwner, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "KeyOwner", (), @@ -20638,17 +25201,21 @@ pub mod api { pub fn key_owner_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::key_owner::Param0, + >, types::key_owner::KeyOwner, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "KeyOwner", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, @@ -20662,22 +25229,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::key_owner::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::key_owner::Param1, + >, ), types::key_owner::KeyOwner, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Session", "KeyOwner", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, @@ -20700,7 +25275,7 @@ pub mod api { pub mod historical_sessions { use super::runtime_types; pub type HistoricalSessions = - (::subxt_core::utils::H256, ::core::primitive::u32); + (::subxt::ext::subxt_core::utils::H256, ::core::primitive::u32); pub type Param0 = ::core::primitive::u32; } pub mod stored_range { @@ -20713,14 +25288,14 @@ pub mod api { #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::historical_sessions::HistoricalSessions, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Historical", "HistoricalSessions", (), @@ -20736,19 +25311,21 @@ pub mod api { pub fn historical_sessions( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::historical_sessions::Param0, >, types::historical_sessions::HistoricalSessions, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Historical", "HistoricalSessions", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 9u8, 138u8, 247u8, 141u8, 178u8, 146u8, 124u8, 81u8, 162u8, 211u8, 205u8, 149u8, 222u8, 254u8, 253u8, 188u8, 170u8, 242u8, 218u8, 41u8, @@ -20760,14 +25337,14 @@ pub mod api { #[doc = " The range of historical sessions we store. [first, last)"] pub fn stored_range( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::stored_range::StoredRange, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Historical", "StoredRange", (), @@ -20795,102 +25372,39 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::propose_spend`]."] - pub struct ProposeSpend { - #[codec(compact)] - pub value: propose_spend::Value, - pub beneficiary: propose_spend::Beneficiary, - } - pub mod propose_spend { - use super::runtime_types; - pub type Value = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, - ::core::primitive::u32, - >; - } - impl ::subxt_core::blocks::StaticExtrinsic for ProposeSpend { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "propose_spend"; - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::reject_proposal`]."] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: reject_proposal::ProposalId, - } - pub mod reject_proposal { - use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; - } - impl ::subxt_core::blocks::StaticExtrinsic for RejectProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "reject_proposal"; - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::approve_proposal`]."] - pub struct ApproveProposal { - #[codec(compact)] - pub proposal_id: approve_proposal::ProposalId, - } - pub mod approve_proposal { - use super::runtime_types; - pub type ProposalId = ::core::primitive::u32; - } - impl ::subxt_core::blocks::StaticExtrinsic for ApproveProposal { - const PALLET: &'static str = "Treasury"; - const CALL: &'static str = "approve_proposal"; - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::spend_local`]."] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`."] + #[doc = ""] + #[doc = "### Details"] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::SpendApproved`] if successful."] pub struct SpendLocal { #[codec(compact)] pub amount: spend_local::Amount, @@ -20899,29 +25413,53 @@ pub mod api { pub mod spend_local { use super::runtime_types; pub type Amount = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Beneficiary = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SpendLocal { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SpendLocal { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "spend_local"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_approval`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::RejectOrigin`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `proposal_id`: The index of a proposal"] + #[doc = ""] + #[doc = "### Complexity"] + #[doc = "- O(A) where `A` is the number of approvals"] + #[doc = ""] + #[doc = "### Errors"] + #[doc = "- [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the"] + #[doc = " approval queue, i.e., the proposal has not been approved. This could also mean the"] + #[doc = " proposal does not exist altogether, thus there is no way it would have been approved"] + #[doc = " in the first place."] pub struct RemoveApproval { #[codec(compact)] pub proposal_id: remove_approval::ProposalId, @@ -20930,56 +25468,108 @@ pub mod api { use super::runtime_types; pub type ProposalId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveApproval { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveApproval { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "remove_approval"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::spend`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least"] + #[doc = "`amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted"] + #[doc = "for assertion using the [`Config::BalanceConverter`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "Create an approved spend for transferring a specific `amount` of `asset_kind` to a"] + #[doc = "designated beneficiary. The spend must be claimed using the `payout` dispatchable within"] + #[doc = "the [`Config::PayoutPeriod`]."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `asset_kind`: An indicator of the specific asset class to be spent."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The beneficiary of the spend."] + #[doc = "- `valid_from`: The block number from which the spend can be claimed. It can refer to"] + #[doc = " the past if the resulting spend has not yet expired according to the"] + #[doc = " [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after"] + #[doc = " approval."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::AssetSpendApproved`] if successful."] pub struct Spend { - pub asset_kind: ::subxt_core::alloc::boxed::Box, + pub asset_kind: ::subxt::ext::subxt_core::alloc::boxed::Box, #[codec(compact)] pub amount: spend::Amount, - pub beneficiary: ::subxt_core::alloc::boxed::Box, + pub beneficiary: + ::subxt::ext::subxt_core::alloc::boxed::Box, pub valid_from: spend::ValidFrom, } pub mod spend { use super::runtime_types; pub type AssetKind = (); pub type Amount = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::AccountId32; + pub type Beneficiary = ::subxt::ext::subxt_core::utils::AccountId32; pub type ValidFrom = ::core::option::Option<::core::primitive::u64>; } - impl ::subxt_core::blocks::StaticExtrinsic for Spend { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Spend { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "spend"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::payout`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Claim a spend."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be signed"] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "Spends must be claimed within some temporal bounds. A spend may be claimed within one"] + #[doc = "[`Config::PayoutPeriod`] from the `valid_from` block."] + #[doc = "In case of a payout failure, the spend status must be updated with the `check_status`"] + #[doc = "dispatchable before retrying with the current function."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::Paid`] if successful."] pub struct Payout { pub index: payout::Index, } @@ -20987,24 +25577,46 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Payout { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Payout { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "payout"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::check_status`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Check the status of the spend and remove it from the storage if processed."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be signed."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "The status check is a prerequisite for retrying a failed payout."] + #[doc = "If a spend has either succeeded or expired, it is removed from the storage by this"] + #[doc = "function. In such instances, transaction fees are refunded."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::PaymentFailed`] if the spend payout has failed."] + #[doc = "Emits [`Event::SpendProcessed`] if the spend payout has succeed."] pub struct CheckStatus { pub index: check_status::Index, } @@ -21012,24 +25624,43 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CheckStatus { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CheckStatus { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "check_status"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::void_spend`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Void previously approved spend."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::RejectOrigin`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "A spend void is only possible if the payout has not been attempted yet."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::AssetSpendVoided`] if successful."] pub struct VoidSpend { pub index: void_spend::Index, } @@ -21037,69 +25668,36 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for VoidSpend { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for VoidSpend { const PALLET: &'static str = "Treasury"; const CALL: &'static str = "void_spend"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::propose_spend`]."] - pub fn propose_spend( - &self, - value: types::propose_spend::Value, - beneficiary: types::propose_spend::Beneficiary, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "Treasury", - "propose_spend", - types::ProposeSpend { value, beneficiary }, - [ - 82u8, 0u8, 77u8, 68u8, 172u8, 126u8, 179u8, 217u8, 173u8, 214u8, 69u8, - 227u8, 243u8, 252u8, 100u8, 30u8, 205u8, 80u8, 99u8, 57u8, 63u8, 59u8, - 142u8, 81u8, 38u8, 22u8, 243u8, 165u8, 131u8, 193u8, 135u8, 171u8, - ], - ) - } - #[doc = "See [`Pallet::reject_proposal`]."] - pub fn reject_proposal( - &self, - proposal_id: types::reject_proposal::ProposalId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "Treasury", - "reject_proposal", - types::RejectProposal { proposal_id }, - [ - 18u8, 166u8, 80u8, 141u8, 222u8, 230u8, 4u8, 36u8, 7u8, 76u8, 12u8, - 40u8, 145u8, 114u8, 12u8, 43u8, 223u8, 78u8, 189u8, 222u8, 120u8, 80u8, - 225u8, 215u8, 119u8, 68u8, 200u8, 15u8, 25u8, 172u8, 192u8, 173u8, - ], - ) - } - #[doc = "See [`Pallet::approve_proposal`]."] - pub fn approve_proposal( - &self, - proposal_id: types::approve_proposal::ProposalId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "Treasury", - "approve_proposal", - types::ApproveProposal { proposal_id }, - [ - 154u8, 176u8, 152u8, 97u8, 167u8, 177u8, 78u8, 9u8, 235u8, 229u8, - 199u8, 193u8, 214u8, 3u8, 16u8, 30u8, 4u8, 104u8, 27u8, 184u8, 100u8, - 65u8, 179u8, 13u8, 91u8, 62u8, 115u8, 5u8, 219u8, 211u8, 251u8, 153u8, - ], - ) - } - #[doc = "See [`Pallet::spend_local`]."] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`."] + #[doc = ""] + #[doc = "### Details"] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::SpendApproved`] if successful."] pub fn spend_local( &self, amount: types::spend_local::Amount, beneficiary: types::spend_local::Beneficiary, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Treasury", "spend_local", types::SpendLocal { amount, beneficiary }, @@ -21110,12 +25708,32 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_approval`]."] + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::RejectOrigin`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `proposal_id`: The index of a proposal"] + #[doc = ""] + #[doc = "### Complexity"] + #[doc = "- O(A) where `A` is the number of approvals"] + #[doc = ""] + #[doc = "### Errors"] + #[doc = "- [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the"] + #[doc = " approval queue, i.e., the proposal has not been approved. This could also mean the"] + #[doc = " proposal does not exist altogether, thus there is no way it would have been approved"] + #[doc = " in the first place."] pub fn remove_approval( &self, proposal_id: types::remove_approval::ProposalId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Treasury", "remove_approval", types::RemoveApproval { proposal_id }, @@ -21127,21 +25745,50 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::spend`]."] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least"] + #[doc = "`amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted"] + #[doc = "for assertion using the [`Config::BalanceConverter`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "Create an approved spend for transferring a specific `amount` of `asset_kind` to a"] + #[doc = "designated beneficiary. The spend must be claimed using the `payout` dispatchable within"] + #[doc = "the [`Config::PayoutPeriod`]."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `asset_kind`: An indicator of the specific asset class to be spent."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The beneficiary of the spend."] + #[doc = "- `valid_from`: The block number from which the spend can be claimed. It can refer to"] + #[doc = " the past if the resulting spend has not yet expired according to the"] + #[doc = " [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after"] + #[doc = " approval."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::AssetSpendApproved`] if successful."] pub fn spend( &self, asset_kind: types::spend::AssetKind, amount: types::spend::Amount, beneficiary: types::spend::Beneficiary, valid_from: types::spend::ValidFrom, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Treasury", "spend", types::Spend { - asset_kind: ::subxt_core::alloc::boxed::Box::new(asset_kind), + asset_kind: ::subxt::ext::subxt_core::alloc::boxed::Box::new( + asset_kind, + ), amount, - beneficiary: ::subxt_core::alloc::boxed::Box::new(beneficiary), + beneficiary: ::subxt::ext::subxt_core::alloc::boxed::Box::new( + beneficiary, + ), valid_from, }, [ @@ -21152,12 +25799,30 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::payout`]."] + #[doc = "Claim a spend."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be signed"] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "Spends must be claimed within some temporal bounds. A spend may be claimed within one"] + #[doc = "[`Config::PayoutPeriod`] from the `valid_from` block."] + #[doc = "In case of a payout failure, the spend status must be updated with the `check_status`"] + #[doc = "dispatchable before retrying with the current function."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::Paid`] if successful."] pub fn payout( &self, index: types::payout::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Treasury", "payout", types::Payout { index }, @@ -21168,12 +25833,30 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::check_status`]."] + #[doc = "Check the status of the spend and remove it from the storage if processed."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be signed."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "The status check is a prerequisite for retrying a failed payout."] + #[doc = "If a spend has either succeeded or expired, it is removed from the storage by this"] + #[doc = "function. In such instances, transaction fees are refunded."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::PaymentFailed`] if the spend payout has failed."] + #[doc = "Emits [`Event::SpendProcessed`] if the spend payout has succeed."] pub fn check_status( &self, index: types::check_status::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Treasury", "check_status", types::CheckStatus { index }, @@ -21184,12 +25867,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::void_spend`]."] + #[doc = "Void previously approved spend."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::RejectOrigin`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "A spend void is only possible if the payout has not been attempted yet."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::AssetSpendVoided`] if successful."] pub fn void_spend( &self, index: types::void_spend::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Treasury", "void_spend", types::VoidSpend { index }, @@ -21207,43 +25905,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "New proposal."] - pub struct Proposed { - pub proposal_index: proposed::ProposalIndex, - } - pub mod proposed { - use super::runtime_types; - pub type ProposalIndex = ::core::primitive::u32; - } - impl ::subxt_core::events::StaticEvent for Proposed { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { pub budget_remaining: spending::BudgetRemaining, @@ -21252,23 +25925,23 @@ pub mod api { use super::runtime_types; pub type BudgetRemaining = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Spending { + impl ::subxt::ext::subxt_core::events::StaticEvent for Spending { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Spending"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some funds have been allocated."] pub struct Awarded { pub proposal_index: awarded::ProposalIndex, @@ -21279,52 +25952,25 @@ pub mod api { use super::runtime_types; pub type ProposalIndex = ::core::primitive::u32; pub type Award = ::core::primitive::u128; - pub type Account = ::subxt_core::utils::AccountId32; + pub type Account = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Awarded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Awarded { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Awarded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "A proposal was rejected; funds were slashed."] - pub struct Rejected { - pub proposal_index: rejected::ProposalIndex, - pub slashed: rejected::Slashed, - } - pub mod rejected { - use super::runtime_types; - pub type ProposalIndex = ::core::primitive::u32; - pub type Slashed = ::core::primitive::u128; - } - impl ::subxt_core::events::StaticEvent for Rejected { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some of our funds have been burnt."] pub struct Burnt { pub burnt_funds: burnt::BurntFunds, @@ -21333,23 +25979,23 @@ pub mod api { use super::runtime_types; pub type BurntFunds = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Burnt { + impl ::subxt::ext::subxt_core::events::StaticEvent for Burnt { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Burnt"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { pub rollover_balance: rollover::RolloverBalance, @@ -21358,23 +26004,23 @@ pub mod api { use super::runtime_types; pub type RolloverBalance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Rollover { + impl ::subxt::ext::subxt_core::events::StaticEvent for Rollover { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Rollover"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Some funds have been deposited."] pub struct Deposit { pub value: deposit::Value, @@ -21383,23 +26029,23 @@ pub mod api { use super::runtime_types; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Deposit { + impl ::subxt::ext::subxt_core::events::StaticEvent for Deposit { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Deposit"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new spend proposal has been approved."] pub struct SpendApproved { pub proposal_index: spend_approved::ProposalIndex, @@ -21410,25 +26056,25 @@ pub mod api { use super::runtime_types; pub type ProposalIndex = ::core::primitive::u32; pub type Amount = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::AccountId32; + pub type Beneficiary = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for SpendApproved { + impl ::subxt::ext::subxt_core::events::StaticEvent for SpendApproved { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "SpendApproved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The inactive funds of the pallet have been updated."] pub struct UpdatedInactive { pub reactivated: updated_inactive::Reactivated, @@ -21439,23 +26085,23 @@ pub mod api { pub type Reactivated = ::core::primitive::u128; pub type Deactivated = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for UpdatedInactive { + impl ::subxt::ext::subxt_core::events::StaticEvent for UpdatedInactive { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "UpdatedInactive"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new asset spend proposal has been approved."] pub struct AssetSpendApproved { pub index: asset_spend_approved::Index, @@ -21470,27 +26116,27 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type AssetKind = (); pub type Amount = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::AccountId32; + pub type Beneficiary = ::subxt::ext::subxt_core::utils::AccountId32; pub type ValidFrom = ::core::primitive::u64; pub type ExpireAt = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for AssetSpendApproved { + impl ::subxt::ext::subxt_core::events::StaticEvent for AssetSpendApproved { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "AssetSpendApproved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An approved spend was voided."] pub struct AssetSpendVoided { pub index: asset_spend_voided::Index, @@ -21499,23 +26145,23 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for AssetSpendVoided { + impl ::subxt::ext::subxt_core::events::StaticEvent for AssetSpendVoided { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "AssetSpendVoided"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A payment happened."] pub struct Paid { pub index: paid::Index, @@ -21526,23 +26172,23 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type PaymentId = (); } - impl ::subxt_core::events::StaticEvent for Paid { + impl ::subxt::ext::subxt_core::events::StaticEvent for Paid { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Paid"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A payment failed and can be retried."] pub struct PaymentFailed { pub index: payment_failed::Index, @@ -21553,23 +26199,23 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type PaymentId = (); } - impl ::subxt_core::events::StaticEvent for PaymentFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for PaymentFailed { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "PaymentFailed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A spend was processed and removed from the storage. It might have been successfully"] #[doc = "paid or it may have expired."] pub struct SpendProcessed { @@ -21579,7 +26225,7 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for SpendProcessed { + impl ::subxt::ext::subxt_core::events::StaticEvent for SpendProcessed { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "SpendProcessed"; } @@ -21595,7 +26241,7 @@ pub mod api { pub mod proposals { use super::runtime_types; pub type Proposals = runtime_types::pallet_treasury::Proposal< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u32; @@ -21620,7 +26266,7 @@ pub mod api { pub type Spends = runtime_types::pallet_treasury::SpendStatus< (), ::core::primitive::u128, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64, (), >; @@ -21632,14 +26278,14 @@ pub mod api { #[doc = " Number of proposals that have been made."] pub fn proposal_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::proposal_count::ProposalCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "ProposalCount", (), @@ -21653,14 +26299,14 @@ pub mod api { #[doc = " Proposals that have been made."] pub fn proposals_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::proposals::Proposals, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "Proposals", (), @@ -21676,17 +26322,21 @@ pub mod api { pub fn proposals( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::proposals::Param0, + >, types::proposals::Proposals, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "Proposals", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 207u8, 135u8, 145u8, 146u8, 48u8, 10u8, 252u8, 40u8, 20u8, 115u8, 205u8, 41u8, 173u8, 83u8, 115u8, 46u8, 106u8, 40u8, 130u8, 157u8, @@ -21698,14 +26348,14 @@ pub mod api { #[doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::deactivated::Deactivated, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "Deactivated", (), @@ -21720,14 +26370,14 @@ pub mod api { #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::approvals::Approvals, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "Approvals", (), @@ -21741,14 +26391,14 @@ pub mod api { #[doc = " The count of spends that have been made."] pub fn spend_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::spend_count::SpendCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "SpendCount", (), @@ -21763,14 +26413,14 @@ pub mod api { #[doc = " Spends that have been approved and being processed."] pub fn spends_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::spends::Spends, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "Spends", (), @@ -21785,17 +26435,21 @@ pub mod api { pub fn spends( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::spends::Param0, + >, types::spends::Spends, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Treasury", "Spends", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 156u8, 92u8, 96u8, 152u8, 53u8, 132u8, 115u8, 226u8, 178u8, 130u8, 50u8, 11u8, 217u8, 191u8, 189u8, 65u8, 91u8, 94u8, 176u8, 90u8, 76u8, @@ -21809,59 +26463,13 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] - #[doc = " An accepted proposal gets these back. A rejected proposal does not."] - pub fn proposal_bond( - &self, - ) -> ::subxt_core::constants::address::StaticAddress< - runtime_types::sp_arithmetic::per_things::Permill, - > { - ::subxt_core::constants::address::StaticAddress::new_static( - "Treasury", - "ProposalBond", - [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ], - ) - } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_minimum( - &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( - "Treasury", - "ProposalBondMinimum", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_maximum( - &self, - ) -> ::subxt_core::constants::address::StaticAddress< - ::core::option::Option<::core::primitive::u128>, - > { - ::subxt_core::constants::address::StaticAddress::new_static( - "Treasury", - "ProposalBondMaximum", - [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, - 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, - 147u8, - ], - ) - } #[doc = " Period between successive spends."] pub fn spend_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Treasury", "SpendPeriod", [ @@ -21875,10 +26483,10 @@ pub mod api { #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_arithmetic::per_things::Permill, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Treasury", "Burn", [ @@ -21891,10 +26499,10 @@ pub mod api { #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::frame_support::PalletId, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Treasury", "PalletId", [ @@ -21909,8 +26517,10 @@ pub mod api { #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Treasury", "MaxApprovals", [ @@ -21924,8 +26534,10 @@ pub mod api { #[doc = " The period during which an approved treasury spend has to be claimed."] pub fn payout_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Treasury", "PayoutPeriod", [ @@ -21953,19 +26565,34 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::propose_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Propose a new bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] + #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] + #[doc = "or slashed when rejected."] + #[doc = ""] + #[doc = "- `curator`: The curator account whom will manage this bounty."] + #[doc = "- `fee`: The curator fee."] + #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] + #[doc = "- `description`: The description of this bounty."] pub struct ProposeBounty { #[codec(compact)] pub value: propose_bounty::Value, @@ -21974,26 +26601,37 @@ pub mod api { pub mod propose_bounty { use super::runtime_types; pub type Value = ::core::primitive::u128; - pub type Description = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Description = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for ProposeBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ProposeBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "propose_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::approve_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct ApproveBounty { #[codec(compact)] pub bounty_id: approve_bounty::BountyId, @@ -22002,24 +26640,33 @@ pub mod api { use super::runtime_types; pub type BountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ApproveBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ApproveBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "approve_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::propose_curator`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Propose a curator to a funded bounty."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct ProposeCurator { #[codec(compact)] pub bounty_id: propose_curator::BountyId, @@ -22030,30 +26677,50 @@ pub mod api { pub mod propose_curator { use super::runtime_types; pub type BountyId = ::core::primitive::u32; - pub type Curator = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Curator = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Fee = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ProposeCurator { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ProposeCurator { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "propose_curator"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unassign_curator`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unassign curator from a bounty."] + #[doc = ""] + #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] + #[doc = ""] + #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] + #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] + #[doc = ""] + #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] + #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] + #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] + #[doc = ""] + #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] + #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] + #[doc = "we should pick a new curator. In this case the curator should also be slashed."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct UnassignCurator { #[codec(compact)] pub bounty_id: unassign_curator::BountyId, @@ -22062,24 +26729,34 @@ pub mod api { use super::runtime_types; pub type BountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for UnassignCurator { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UnassignCurator { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "unassign_curator"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::accept_curator`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Accept the curator role for a bounty."] + #[doc = "A deposit will be reserved from curator and refund upon successful payout."] + #[doc = ""] + #[doc = "May only be called from the curator."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct AcceptCurator { #[codec(compact)] pub bounty_id: accept_curator::BountyId, @@ -22088,24 +26765,37 @@ pub mod api { use super::runtime_types; pub type BountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for AcceptCurator { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AcceptCurator { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "accept_curator"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::award_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] + #[doc = "after a delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to award."] + #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct AwardBounty { #[codec(compact)] pub bounty_id: award_bounty::BountyId, @@ -22114,29 +26804,40 @@ pub mod api { pub mod award_bounty { use super::runtime_types; pub type BountyId = ::core::primitive::u32; - pub type Beneficiary = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Beneficiary = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for AwardBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AwardBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "award_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Claim the payout from an awarded bounty after payout delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to claim."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct ClaimBounty { #[codec(compact)] pub bounty_id: claim_bounty::BountyId, @@ -22145,24 +26846,36 @@ pub mod api { use super::runtime_types; pub type BountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ClaimBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "claim_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::close_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] + #[doc = "the curator deposit will be unreserved if possible."] + #[doc = ""] + #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to cancel."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct CloseBounty { #[codec(compact)] pub bounty_id: close_bounty::BountyId, @@ -22171,24 +26884,36 @@ pub mod api { use super::runtime_types; pub type BountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CloseBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CloseBounty { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "close_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::extend_bounty_expiry`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Extend the expiry time of an active bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to extend."] + #[doc = "- `remark`: additional information."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct ExtendBountyExpiry { #[codec(compact)] pub bounty_id: extend_bounty_expiry::BountyId, @@ -22197,22 +26922,34 @@ pub mod api { pub mod extend_bounty_expiry { use super::runtime_types; pub type BountyId = ::core::primitive::u32; - pub type Remark = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Remark = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for ExtendBountyExpiry { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExtendBountyExpiry { const PALLET: &'static str = "Bounties"; const CALL: &'static str = "extend_bounty_expiry"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::propose_bounty`]."] + #[doc = "Propose a new bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] + #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] + #[doc = "or slashed when rejected."] + #[doc = ""] + #[doc = "- `curator`: The curator account whom will manage this bounty."] + #[doc = "- `fee`: The curator fee."] + #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] + #[doc = "- `description`: The description of this bounty."] pub fn propose_bounty( &self, value: types::propose_bounty::Value, description: types::propose_bounty::Description, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "propose_bounty", types::ProposeBounty { value, description }, @@ -22223,12 +26960,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::approve_bounty`]."] + #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn approve_bounty( &self, bounty_id: types::approve_bounty::BountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "approve_bounty", types::ApproveBounty { bounty_id }, @@ -22240,14 +26983,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::propose_curator`]."] + #[doc = "Propose a curator to a funded bounty."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn propose_curator( &self, bounty_id: types::propose_curator::BountyId, curator: types::propose_curator::Curator, fee: types::propose_curator::Fee, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "propose_curator", types::ProposeCurator { bounty_id, curator, fee }, @@ -22259,12 +27007,28 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unassign_curator`]."] + #[doc = "Unassign curator from a bounty."] + #[doc = ""] + #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] + #[doc = ""] + #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] + #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] + #[doc = ""] + #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] + #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] + #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] + #[doc = ""] + #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] + #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] + #[doc = "we should pick a new curator. In this case the curator should also be slashed."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn unassign_curator( &self, bounty_id: types::unassign_curator::BountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "unassign_curator", types::UnassignCurator { bounty_id }, @@ -22276,12 +27040,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::accept_curator`]."] + #[doc = "Accept the curator role for a bounty."] + #[doc = "A deposit will be reserved from curator and refund upon successful payout."] + #[doc = ""] + #[doc = "May only be called from the curator."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn accept_curator( &self, bounty_id: types::accept_curator::BountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "accept_curator", types::AcceptCurator { bounty_id }, @@ -22292,13 +27062,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::award_bounty`]."] + #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] + #[doc = "after a delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to award."] + #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn award_bounty( &self, bounty_id: types::award_bounty::BountyId, beneficiary: types::award_bounty::Beneficiary, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "award_bounty", types::AwardBounty { bounty_id, beneficiary }, @@ -22309,12 +27088,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_bounty`]."] + #[doc = "Claim the payout from an awarded bounty after payout delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to claim."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn claim_bounty( &self, bounty_id: types::claim_bounty::BountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "claim_bounty", types::ClaimBounty { bounty_id }, @@ -22326,12 +27112,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::close_bounty`]."] + #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] + #[doc = "the curator deposit will be unreserved if possible."] + #[doc = ""] + #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to cancel."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn close_bounty( &self, bounty_id: types::close_bounty::BountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "close_bounty", types::CloseBounty { bounty_id }, @@ -22343,13 +27137,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::extend_bounty_expiry`]."] + #[doc = "Extend the expiry time of an active bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to extend."] + #[doc = "- `remark`: additional information."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn extend_bounty_expiry( &self, bounty_id: types::extend_bounty_expiry::BountyId, remark: types::extend_bounty_expiry::Remark, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Bounties", "extend_bounty_expiry", types::ExtendBountyExpiry { bounty_id, remark }, @@ -22368,18 +27171,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "New bounty proposal."] pub struct BountyProposed { pub index: bounty_proposed::Index, @@ -22388,23 +27191,23 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for BountyProposed { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyProposed { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyProposed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty proposal was rejected; funds were slashed."] pub struct BountyRejected { pub index: bounty_rejected::Index, @@ -22415,23 +27218,23 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Bond = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for BountyRejected { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyRejected { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyRejected"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty proposal is funded and became active."] pub struct BountyBecameActive { pub index: bounty_became_active::Index, @@ -22440,23 +27243,23 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for BountyBecameActive { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyBecameActive { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyBecameActive"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty is awarded to a beneficiary."] pub struct BountyAwarded { pub index: bounty_awarded::Index, @@ -22465,25 +27268,25 @@ pub mod api { pub mod bounty_awarded { use super::runtime_types; pub type Index = ::core::primitive::u32; - pub type Beneficiary = ::subxt_core::utils::AccountId32; + pub type Beneficiary = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for BountyAwarded { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyAwarded { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyAwarded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty is claimed by beneficiary."] pub struct BountyClaimed { pub index: bounty_claimed::Index, @@ -22494,25 +27297,25 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; pub type Payout = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::AccountId32; + pub type Beneficiary = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for BountyClaimed { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyClaimed { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyClaimed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty is cancelled."] pub struct BountyCanceled { pub index: bounty_canceled::Index, @@ -22521,23 +27324,23 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for BountyCanceled { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyCanceled { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyCanceled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty expiry is extended."] pub struct BountyExtended { pub index: bounty_extended::Index, @@ -22546,23 +27349,23 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for BountyExtended { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyExtended { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyExtended"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty is approved."] pub struct BountyApproved { pub index: bounty_approved::Index, @@ -22571,23 +27374,23 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for BountyApproved { + impl ::subxt::ext::subxt_core::events::StaticEvent for BountyApproved { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyApproved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty curator is proposed."] pub struct CuratorProposed { pub bounty_id: curator_proposed::BountyId, @@ -22596,25 +27399,25 @@ pub mod api { pub mod curator_proposed { use super::runtime_types; pub type BountyId = ::core::primitive::u32; - pub type Curator = ::subxt_core::utils::AccountId32; + pub type Curator = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for CuratorProposed { + impl ::subxt::ext::subxt_core::events::StaticEvent for CuratorProposed { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "CuratorProposed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty curator is unassigned."] pub struct CuratorUnassigned { pub bounty_id: curator_unassigned::BountyId, @@ -22623,23 +27426,23 @@ pub mod api { use super::runtime_types; pub type BountyId = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for CuratorUnassigned { + impl ::subxt::ext::subxt_core::events::StaticEvent for CuratorUnassigned { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "CuratorUnassigned"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A bounty curator is accepted."] pub struct CuratorAccepted { pub bounty_id: curator_accepted::BountyId, @@ -22648,9 +27451,9 @@ pub mod api { pub mod curator_accepted { use super::runtime_types; pub type BountyId = ::core::primitive::u32; - pub type Curator = ::subxt_core::utils::AccountId32; + pub type Curator = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for CuratorAccepted { + impl ::subxt::ext::subxt_core::events::StaticEvent for CuratorAccepted { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "CuratorAccepted"; } @@ -22666,7 +27469,7 @@ pub mod api { pub mod bounties { use super::runtime_types; pub type Bounties = runtime_types::pallet_bounties::Bounty< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u64, >; @@ -22693,14 +27496,14 @@ pub mod api { #[doc = " Number of bounty proposals that have been made."] pub fn bounty_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bounty_count::BountyCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Bounties", "BountyCount", (), @@ -22715,14 +27518,14 @@ pub mod api { #[doc = " Bounties that have been made."] pub fn bounties_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bounties::Bounties, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Bounties", "Bounties", (), @@ -22737,17 +27540,21 @@ pub mod api { pub fn bounties( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::bounties::Param0, + >, types::bounties::Bounties, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Bounties", "Bounties", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 61u8, 113u8, 145u8, 206u8, 130u8, 71u8, 78u8, 125u8, 214u8, 253u8, 128u8, 143u8, 36u8, 0u8, 201u8, 132u8, 215u8, 58u8, 129u8, 34u8, 46u8, @@ -22758,14 +27565,14 @@ pub mod api { #[doc = " The description of each bounty."] pub fn bounty_descriptions_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bounty_descriptions::BountyDescriptions, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Bounties", "BountyDescriptions", (), @@ -22780,19 +27587,21 @@ pub mod api { pub fn bounty_descriptions( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::bounty_descriptions::Param0, >, types::bounty_descriptions::BountyDescriptions, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Bounties", "BountyDescriptions", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, @@ -22803,14 +27612,14 @@ pub mod api { #[doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bounty_approvals::BountyApprovals, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Bounties", "BountyApprovals", (), @@ -22830,8 +27639,10 @@ pub mod api { #[doc = " The amount held on deposit for placing a bounty proposal."] pub fn bounty_deposit_base( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "BountyDepositBase", [ @@ -22844,8 +27655,10 @@ pub mod api { #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] pub fn bounty_deposit_payout_delay( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "BountyDepositPayoutDelay", [ @@ -22859,8 +27672,10 @@ pub mod api { #[doc = " Bounty duration in blocks."] pub fn bounty_update_period( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "BountyUpdatePeriod", [ @@ -22877,10 +27692,10 @@ pub mod api { #[doc = " `CuratorDepositMin`."] pub fn curator_deposit_multiplier( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_arithmetic::per_things::Permill, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "CuratorDepositMultiplier", [ @@ -22893,10 +27708,10 @@ pub mod api { #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_max( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< ::core::option::Option<::core::primitive::u128>, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "CuratorDepositMax", [ @@ -22910,10 +27725,10 @@ pub mod api { #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< ::core::option::Option<::core::primitive::u128>, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "CuratorDepositMin", [ @@ -22927,8 +27742,10 @@ pub mod api { #[doc = " Minimum value for a bounty."] pub fn bounty_value_minimum( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "BountyValueMinimum", [ @@ -22941,8 +27758,10 @@ pub mod api { #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "DataDepositPerByte", [ @@ -22957,8 +27776,10 @@ pub mod api { #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] pub fn maximum_reason_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Bounties", "MaximumReasonLength", [ @@ -22986,19 +27807,41 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_child_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Add a new child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of parent"] + #[doc = "bounty and the parent bounty must be in \"active\" state."] + #[doc = ""] + #[doc = "Child-bounty gets added successfully & fund gets transferred from"] + #[doc = "parent bounty to child-bounty account, if parent bounty has enough"] + #[doc = "funds, else the call fails."] + #[doc = ""] + #[doc = "Upper bound to maximum number of active child bounties that can be"] + #[doc = "added are managed via runtime trait config"] + #[doc = "[`Config::MaxActiveChildBountyCount`]."] + #[doc = ""] + #[doc = "If the call is success, the status of child-bounty is updated to"] + #[doc = "\"Added\"."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] + #[doc = "- `value`: Value for executing the proposal."] + #[doc = "- `description`: Text description for the child-bounty."] pub struct AddChildBounty { #[codec(compact)] pub parent_bounty_id: add_child_bounty::ParentBountyId, @@ -23010,26 +27853,45 @@ pub mod api { use super::runtime_types; pub type ParentBountyId = ::core::primitive::u32; pub type Value = ::core::primitive::u128; - pub type Description = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Description = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for AddChildBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AddChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "add_child_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::propose_curator`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Propose curator for funded child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be curator of parent bounty."] + #[doc = ""] + #[doc = "Parent bounty must be in active state, for this child-bounty call to"] + #[doc = "work."] + #[doc = ""] + #[doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] + #[doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] + #[doc = "call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "- `curator`: Address of child-bounty curator."] + #[doc = "- `fee`: payment fee to child-bounty curator for execution."] pub struct ProposeCurator { #[codec(compact)] pub parent_bounty_id: propose_curator::ParentBountyId, @@ -23043,30 +27905,52 @@ pub mod api { use super::runtime_types; pub type ParentBountyId = ::core::primitive::u32; pub type ChildBountyId = ::core::primitive::u32; - pub type Curator = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Curator = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Fee = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ProposeCurator { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ProposeCurator { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "propose_curator"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::accept_curator`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Accept the curator role for the child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this"] + #[doc = "child-bounty."] + #[doc = ""] + #[doc = "A deposit will be reserved from the curator and refund upon"] + #[doc = "successful payout or cancellation."] + #[doc = ""] + #[doc = "Fee for curator is deducted from curator fee of parent bounty."] + #[doc = ""] + #[doc = "Parent bounty must be in active state, for this child-bounty call to"] + #[doc = "work."] + #[doc = ""] + #[doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] + #[doc = "call. And state of child-bounty is moved to \"Active\" on successful"] + #[doc = "call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub struct AcceptCurator { #[codec(compact)] pub parent_bounty_id: accept_curator::ParentBountyId, @@ -23078,24 +27962,61 @@ pub mod api { pub type ParentBountyId = ::core::primitive::u32; pub type ChildBountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for AcceptCurator { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AcceptCurator { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "accept_curator"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unassign_curator`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unassign curator from a child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] + #[doc = "the curator of the parent bounty, or any signed origin."] + #[doc = ""] + #[doc = "For the origin other than T::RejectOrigin and the child-bounty"] + #[doc = "curator, parent bounty must be in active state, for this call to"] + #[doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] + #[doc = "this call irrespective of the parent bounty state."] + #[doc = ""] + #[doc = "If this function is called by the `RejectOrigin` or the"] + #[doc = "parent bounty curator, we assume that the child-bounty curator is"] + #[doc = "malicious or inactive. As a result, child-bounty curator deposit is"] + #[doc = "slashed."] + #[doc = ""] + #[doc = "If the origin is the child-bounty curator, we take this as a sign"] + #[doc = "that they are unable to do their job, and are willingly giving up."] + #[doc = "We could slash the deposit, but for now we allow them to unreserve"] + #[doc = "their deposit and exit without issue. (We may want to change this if"] + #[doc = "it is abused.)"] + #[doc = ""] + #[doc = "Finally, the origin can be anyone iff the child-bounty curator is"] + #[doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] + #[doc = "inactive state of child-bounty curator."] + #[doc = ""] + #[doc = "This allows anyone in the community to call out that a child-bounty"] + #[doc = "curator is not doing their due diligence, and we should pick a new"] + #[doc = "one. In this case the child-bounty curator deposit is slashed."] + #[doc = ""] + #[doc = "State of child-bounty is moved to Added state on successful call"] + #[doc = "completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub struct UnassignCurator { #[codec(compact)] pub parent_bounty_id: unassign_curator::ParentBountyId, @@ -23107,24 +28028,44 @@ pub mod api { pub type ParentBountyId = ::core::primitive::u32; pub type ChildBountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for UnassignCurator { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UnassignCurator { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "unassign_curator"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::award_child_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Award child-bounty to a beneficiary."] + #[doc = ""] + #[doc = "The beneficiary will be able to claim the funds after a delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the parent curator or"] + #[doc = "curator of this child-bounty."] + #[doc = ""] + #[doc = "Parent bounty must be in active state, for this child-bounty call to"] + #[doc = "work."] + #[doc = ""] + #[doc = "Child-bounty must be in active state, for processing the call. And"] + #[doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] + #[doc = "completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "- `beneficiary`: Beneficiary account."] pub struct AwardChildBounty { #[codec(compact)] pub parent_bounty_id: award_child_bounty::ParentBountyId, @@ -23136,29 +28077,48 @@ pub mod api { use super::runtime_types; pub type ParentBountyId = ::core::primitive::u32; pub type ChildBountyId = ::core::primitive::u32; - pub type Beneficiary = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Beneficiary = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for AwardChildBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AwardChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "award_child_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_child_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Claim the payout from an awarded child-bounty after payout delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call may be any signed origin."] + #[doc = ""] + #[doc = "Call works independent of parent bounty state, No need for parent"] + #[doc = "bounty to be in active state."] + #[doc = ""] + #[doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] + #[doc = "paid & curator deposit is unreserved."] + #[doc = ""] + #[doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] + #[doc = "call. And instance of child-bounty is removed from the state on"] + #[doc = "successful call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub struct ClaimChildBounty { #[codec(compact)] pub parent_bounty_id: claim_child_bounty::ParentBountyId, @@ -23170,24 +28130,49 @@ pub mod api { pub type ParentBountyId = ::core::primitive::u32; pub type ChildBountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ClaimChildBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "claim_child_bounty"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::close_child_bounty`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] + #[doc = "are transferred to parent bounty account. The child-bounty curator"] + #[doc = "deposit may be unreserved if possible."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be either parent curator or"] + #[doc = "`T::RejectOrigin`."] + #[doc = ""] + #[doc = "If the state of child-bounty is `Active`, curator deposit is"] + #[doc = "unreserved."] + #[doc = ""] + #[doc = "If the state of child-bounty is `PendingPayout`, call fails &"] + #[doc = "returns `PendingPayout` error."] + #[doc = ""] + #[doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] + #[doc = "active state, for this child-bounty call to work. For origin"] + #[doc = "T::RejectOrigin execution is forced."] + #[doc = ""] + #[doc = "Instance of child-bounty is removed from the state on successful"] + #[doc = "call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub struct CloseChildBounty { #[codec(compact)] pub parent_bounty_id: close_child_bounty::ParentBountyId, @@ -23199,21 +28184,39 @@ pub mod api { pub type ParentBountyId = ::core::primitive::u32; pub type ChildBountyId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CloseChildBounty { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CloseChildBounty { const PALLET: &'static str = "ChildBounties"; const CALL: &'static str = "close_child_bounty"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::add_child_bounty`]."] + #[doc = "Add a new child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of parent"] + #[doc = "bounty and the parent bounty must be in \"active\" state."] + #[doc = ""] + #[doc = "Child-bounty gets added successfully & fund gets transferred from"] + #[doc = "parent bounty to child-bounty account, if parent bounty has enough"] + #[doc = "funds, else the call fails."] + #[doc = ""] + #[doc = "Upper bound to maximum number of active child bounties that can be"] + #[doc = "added are managed via runtime trait config"] + #[doc = "[`Config::MaxActiveChildBountyCount`]."] + #[doc = ""] + #[doc = "If the call is success, the status of child-bounty is updated to"] + #[doc = "\"Added\"."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] + #[doc = "- `value`: Value for executing the proposal."] + #[doc = "- `description`: Text description for the child-bounty."] pub fn add_child_bounty( &self, parent_bounty_id: types::add_child_bounty::ParentBountyId, value: types::add_child_bounty::Value, description: types::add_child_bounty::Description, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ChildBounties", "add_child_bounty", types::AddChildBounty { parent_bounty_id, value, description }, @@ -23225,15 +28228,29 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::propose_curator`]."] + #[doc = "Propose curator for funded child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be curator of parent bounty."] + #[doc = ""] + #[doc = "Parent bounty must be in active state, for this child-bounty call to"] + #[doc = "work."] + #[doc = ""] + #[doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] + #[doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] + #[doc = "call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "- `curator`: Address of child-bounty curator."] + #[doc = "- `fee`: payment fee to child-bounty curator for execution."] pub fn propose_curator( &self, parent_bounty_id: types::propose_curator::ParentBountyId, child_bounty_id: types::propose_curator::ChildBountyId, curator: types::propose_curator::Curator, fee: types::propose_curator::Fee, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ChildBounties", "propose_curator", types::ProposeCurator { parent_bounty_id, child_bounty_id, curator, fee }, @@ -23244,13 +28261,31 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::accept_curator`]."] + #[doc = "Accept the curator role for the child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this"] + #[doc = "child-bounty."] + #[doc = ""] + #[doc = "A deposit will be reserved from the curator and refund upon"] + #[doc = "successful payout or cancellation."] + #[doc = ""] + #[doc = "Fee for curator is deducted from curator fee of parent bounty."] + #[doc = ""] + #[doc = "Parent bounty must be in active state, for this child-bounty call to"] + #[doc = "work."] + #[doc = ""] + #[doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] + #[doc = "call. And state of child-bounty is moved to \"Active\" on successful"] + #[doc = "call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn accept_curator( &self, parent_bounty_id: types::accept_curator::ParentBountyId, child_bounty_id: types::accept_curator::ChildBountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ChildBounties", "accept_curator", types::AcceptCurator { parent_bounty_id, child_bounty_id }, @@ -23262,13 +28297,46 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unassign_curator`]."] + #[doc = "Unassign curator from a child-bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] + #[doc = "the curator of the parent bounty, or any signed origin."] + #[doc = ""] + #[doc = "For the origin other than T::RejectOrigin and the child-bounty"] + #[doc = "curator, parent bounty must be in active state, for this call to"] + #[doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] + #[doc = "this call irrespective of the parent bounty state."] + #[doc = ""] + #[doc = "If this function is called by the `RejectOrigin` or the"] + #[doc = "parent bounty curator, we assume that the child-bounty curator is"] + #[doc = "malicious or inactive. As a result, child-bounty curator deposit is"] + #[doc = "slashed."] + #[doc = ""] + #[doc = "If the origin is the child-bounty curator, we take this as a sign"] + #[doc = "that they are unable to do their job, and are willingly giving up."] + #[doc = "We could slash the deposit, but for now we allow them to unreserve"] + #[doc = "their deposit and exit without issue. (We may want to change this if"] + #[doc = "it is abused.)"] + #[doc = ""] + #[doc = "Finally, the origin can be anyone iff the child-bounty curator is"] + #[doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] + #[doc = "inactive state of child-bounty curator."] + #[doc = ""] + #[doc = "This allows anyone in the community to call out that a child-bounty"] + #[doc = "curator is not doing their due diligence, and we should pick a new"] + #[doc = "one. In this case the child-bounty curator deposit is slashed."] + #[doc = ""] + #[doc = "State of child-bounty is moved to Added state on successful call"] + #[doc = "completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn unassign_curator( &self, parent_bounty_id: types::unassign_curator::ParentBountyId, child_bounty_id: types::unassign_curator::ChildBountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ChildBounties", "unassign_curator", types::UnassignCurator { parent_bounty_id, child_bounty_id }, @@ -23280,14 +28348,30 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::award_child_bounty`]."] + #[doc = "Award child-bounty to a beneficiary."] + #[doc = ""] + #[doc = "The beneficiary will be able to claim the funds after a delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the parent curator or"] + #[doc = "curator of this child-bounty."] + #[doc = ""] + #[doc = "Parent bounty must be in active state, for this child-bounty call to"] + #[doc = "work."] + #[doc = ""] + #[doc = "Child-bounty must be in active state, for processing the call. And"] + #[doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] + #[doc = "completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] + #[doc = "- `beneficiary`: Beneficiary account."] pub fn award_child_bounty( &self, parent_bounty_id: types::award_child_bounty::ParentBountyId, child_bounty_id: types::award_child_bounty::ChildBountyId, beneficiary: types::award_child_bounty::Beneficiary, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ChildBounties", "award_child_bounty", types::AwardChildBounty { parent_bounty_id, child_bounty_id, beneficiary }, @@ -23299,13 +28383,28 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_child_bounty`]."] + #[doc = "Claim the payout from an awarded child-bounty after payout delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call may be any signed origin."] + #[doc = ""] + #[doc = "Call works independent of parent bounty state, No need for parent"] + #[doc = "bounty to be in active state."] + #[doc = ""] + #[doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] + #[doc = "paid & curator deposit is unreserved."] + #[doc = ""] + #[doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] + #[doc = "call. And instance of child-bounty is removed from the state on"] + #[doc = "successful call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn claim_child_bounty( &self, parent_bounty_id: types::claim_child_bounty::ParentBountyId, child_bounty_id: types::claim_child_bounty::ChildBountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ChildBounties", "claim_child_bounty", types::ClaimChildBounty { parent_bounty_id, child_bounty_id }, @@ -23316,13 +28415,34 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::close_child_bounty`]."] + #[doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] + #[doc = "are transferred to parent bounty account. The child-bounty curator"] + #[doc = "deposit may be unreserved if possible."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be either parent curator or"] + #[doc = "`T::RejectOrigin`."] + #[doc = ""] + #[doc = "If the state of child-bounty is `Active`, curator deposit is"] + #[doc = "unreserved."] + #[doc = ""] + #[doc = "If the state of child-bounty is `PendingPayout`, call fails &"] + #[doc = "returns `PendingPayout` error."] + #[doc = ""] + #[doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] + #[doc = "active state, for this child-bounty call to work. For origin"] + #[doc = "T::RejectOrigin execution is forced."] + #[doc = ""] + #[doc = "Instance of child-bounty is removed from the state on successful"] + #[doc = "call completion."] + #[doc = ""] + #[doc = "- `parent_bounty_id`: Index of parent bounty."] + #[doc = "- `child_bounty_id`: Index of child bounty."] pub fn close_child_bounty( &self, parent_bounty_id: types::close_child_bounty::ParentBountyId, child_bounty_id: types::close_child_bounty::ChildBountyId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ChildBounties", "close_child_bounty", types::CloseChildBounty { parent_bounty_id, child_bounty_id }, @@ -23340,18 +28460,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A child-bounty is added."] pub struct Added { pub index: added::Index, @@ -23362,23 +28482,23 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type ChildIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Added { + impl ::subxt::ext::subxt_core::events::StaticEvent for Added { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Added"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A child-bounty is awarded to a beneficiary."] pub struct Awarded { pub index: awarded::Index, @@ -23389,25 +28509,25 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; pub type ChildIndex = ::core::primitive::u32; - pub type Beneficiary = ::subxt_core::utils::AccountId32; + pub type Beneficiary = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Awarded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Awarded { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Awarded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A child-bounty is claimed by beneficiary."] pub struct Claimed { pub index: claimed::Index, @@ -23420,25 +28540,25 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type ChildIndex = ::core::primitive::u32; pub type Payout = ::core::primitive::u128; - pub type Beneficiary = ::subxt_core::utils::AccountId32; + pub type Beneficiary = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Claimed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Claimed { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Claimed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A child-bounty is cancelled."] pub struct Canceled { pub index: canceled::Index, @@ -23449,7 +28569,7 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type ChildIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Canceled { + impl ::subxt::ext::subxt_core::events::StaticEvent for Canceled { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Canceled"; } @@ -23470,7 +28590,7 @@ pub mod api { pub mod child_bounties { use super::runtime_types; pub type ChildBounties = runtime_types::pallet_child_bounties::ChildBounty< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u64, >; @@ -23496,14 +28616,14 @@ pub mod api { #[doc = " Number of total child bounties."] pub fn child_bounty_count( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::child_bounty_count::ChildBountyCount, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildBountyCount", (), @@ -23518,14 +28638,14 @@ pub mod api { #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::parent_child_bounties::ParentChildBounties, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ParentChildBounties", (), @@ -23541,19 +28661,21 @@ pub mod api { pub fn parent_child_bounties( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::parent_child_bounties::Param0, >, types::parent_child_bounties::ParentChildBounties, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ParentChildBounties", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, @@ -23564,14 +28686,14 @@ pub mod api { #[doc = " Child bounties that have been added."] pub fn child_bounties_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::child_bounties::ChildBounties, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildBounties", (), @@ -23587,17 +28709,21 @@ pub mod api { pub fn child_bounties_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::child_bounties::Param0, + >, types::child_bounties::ChildBounties, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildBounties", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 147u8, 73u8, 192u8, 132u8, 112u8, 28u8, 88u8, 203u8, 183u8, 170u8, 198u8, 134u8, 5u8, 80u8, 131u8, 179u8, 28u8, 249u8, 195u8, 139u8, @@ -23611,26 +28737,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::child_bounties::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::child_bounties::Param1, >, ), types::child_bounties::ChildBounties, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildBounties", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 147u8, 73u8, 192u8, 132u8, 112u8, 28u8, 88u8, 203u8, 183u8, 170u8, @@ -23643,14 +28773,14 @@ pub mod api { #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::child_bounty_descriptions::ChildBountyDescriptions, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildBountyDescriptions", (), @@ -23665,19 +28795,21 @@ pub mod api { pub fn child_bounty_descriptions( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::child_bounty_descriptions::Param0, >, types::child_bounty_descriptions::ChildBountyDescriptions, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildBountyDescriptions", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, @@ -23688,14 +28820,14 @@ pub mod api { #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::children_curator_fees::ChildrenCuratorFees, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildrenCuratorFees", (), @@ -23710,19 +28842,21 @@ pub mod api { pub fn children_curator_fees( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::children_curator_fees::Param0, >, types::children_curator_fees::ChildrenCuratorFees, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ChildBounties", "ChildrenCuratorFees", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, @@ -23739,8 +28873,10 @@ pub mod api { #[doc = " Maximum number of child bounties that can be added to a parent bounty."] pub fn max_active_child_bounty_count( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ChildBounties", "MaxActiveChildBountyCount", [ @@ -23754,8 +28890,10 @@ pub mod api { #[doc = " Minimum value for a child-bounty."] pub fn child_bounty_value_minimum( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ChildBounties", "ChildBountyValueMinimum", [ @@ -23782,103 +28920,144 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::rebag`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] + #[doc = "changed its score that it should properly fall into a different bag than its current"] + #[doc = "one."] + #[doc = ""] + #[doc = "Anyone can call this function about any potentially dislocated account."] + #[doc = ""] + #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] + #[doc = "`ScoreProvider`."] + #[doc = ""] + #[doc = "If `dislocated` does not exists, it returns an error."] pub struct Rebag { pub dislocated: rebag::Dislocated, } pub mod rebag { use super::runtime_types; - pub type Dislocated = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Dislocated = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Rebag { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Rebag { const PALLET: &'static str = "BagsList"; const CALL: &'static str = "rebag"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::put_in_front_of`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`."] pub struct PutInFrontOf { pub lighter: put_in_front_of::Lighter, } pub mod put_in_front_of { use super::runtime_types; - pub type Lighter = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Lighter = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for PutInFrontOf { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PutInFrontOf { const PALLET: &'static str = "BagsList"; const CALL: &'static str = "put_in_front_of"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::put_in_front_of_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct PutInFrontOfOther { pub heavier: put_in_front_of_other::Heavier, pub lighter: put_in_front_of_other::Lighter, } pub mod put_in_front_of_other { use super::runtime_types; - pub type Heavier = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Heavier = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Lighter = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Lighter = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for PutInFrontOfOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PutInFrontOfOther { const PALLET: &'static str = "BagsList"; const CALL: &'static str = "put_in_front_of_other"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::rebag`]."] + #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] + #[doc = "changed its score that it should properly fall into a different bag than its current"] + #[doc = "one."] + #[doc = ""] + #[doc = "Anyone can call this function about any potentially dislocated account."] + #[doc = ""] + #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] + #[doc = "`ScoreProvider`."] + #[doc = ""] + #[doc = "If `dislocated` does not exists, it returns an error."] pub fn rebag( &self, dislocated: types::rebag::Dislocated, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "BagsList", "rebag", types::Rebag { dislocated }, @@ -23889,12 +29068,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::put_in_front_of`]."] + #[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`."] pub fn put_in_front_of( &self, lighter: types::put_in_front_of::Lighter, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "BagsList", "put_in_front_of", types::PutInFrontOf { lighter }, @@ -23905,13 +29093,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::put_in_front_of_other`]."] + #[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."] pub fn put_in_front_of_other( &self, heavier: types::put_in_front_of_other::Heavier, lighter: types::put_in_front_of_other::Lighter, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "BagsList", "put_in_front_of_other", types::PutInFrontOfOther { heavier, lighter }, @@ -23930,18 +29121,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Moved an account from one bag to another."] pub struct Rebagged { pub who: rebagged::Who, @@ -23950,27 +29141,27 @@ pub mod api { } pub mod rebagged { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type From = ::core::primitive::u64; pub type To = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for Rebagged { + impl ::subxt::ext::subxt_core::events::StaticEvent for Rebagged { const PALLET: &'static str = "BagsList"; const EVENT: &'static str = "Rebagged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Updated the score of some account to the given amount."] pub struct ScoreUpdated { pub who: score_updated::Who, @@ -23978,10 +29169,10 @@ pub mod api { } pub mod score_updated { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type NewScore = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for ScoreUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for ScoreUpdated { const PALLET: &'static str = "BagsList"; const EVENT: &'static str = "ScoreUpdated"; } @@ -23993,7 +29184,7 @@ pub mod api { pub mod list_nodes { use super::runtime_types; pub type ListNodes = runtime_types::pallet_bags_list::list::Node; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod counter_for_list_nodes { use super::runtime_types; @@ -24012,14 +29203,14 @@ pub mod api { #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::list_nodes::ListNodes, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "BagsList", "ListNodes", (), @@ -24036,17 +29227,21 @@ pub mod api { pub fn list_nodes( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::list_nodes::Param0, + >, types::list_nodes::ListNodes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "BagsList", "ListNodes", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 240u8, 139u8, 78u8, 185u8, 159u8, 185u8, 33u8, 229u8, 171u8, 222u8, 54u8, 81u8, 104u8, 170u8, 49u8, 232u8, 29u8, 117u8, 193u8, 68u8, 225u8, @@ -24057,14 +29252,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_list_nodes::CounterForListNodes, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "BagsList", "CounterForListNodes", (), @@ -24081,14 +29276,14 @@ pub mod api { #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::list_bags::ListBags, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "BagsList", "ListBags", (), @@ -24105,17 +29300,21 @@ pub mod api { pub fn list_bags( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::list_bags::Param0, + >, types::list_bags::ListBags, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "BagsList", "ListBags", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 98u8, 52u8, 177u8, 147u8, 244u8, 169u8, 45u8, 213u8, 76u8, 163u8, 47u8, 96u8, 197u8, 245u8, 17u8, 208u8, 86u8, 15u8, 233u8, 156u8, 165u8, 44u8, @@ -24174,10 +29373,10 @@ pub mod api { #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] pub fn bag_thresholds( &self, - ) -> ::subxt_core::constants::address::StaticAddress< - ::subxt_core::alloc::vec::Vec<::core::primitive::u64>, + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u64>, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "BagsList", "BagThresholds", [ @@ -24204,19 +29403,32 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::join`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] + #[doc = "pools account and immediately increases the pools bond."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "* An account can only be a member of a single pool."] + #[doc = "* An account cannot join the same pool multiple times."] + #[doc = "* This call will *not* dust the member account, so the member must have at least"] + #[doc = " `existential deposit + amount` in their account."] + #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] pub struct Join { #[codec(compact)] pub amount: join::Amount, @@ -24227,24 +29439,34 @@ pub mod api { pub type Amount = ::core::primitive::u128; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Join { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Join { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "join"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::bond_extra`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] + #[doc = ""] + #[doc = "Additional funds can come from either the free balance of the account, of from the"] + #[doc = "accumulated rewards, see [`BondExtra`]."] + #[doc = ""] + #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] + #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] pub struct BondExtra { pub extra: bond_extra::Extra, } @@ -24253,43 +29475,88 @@ pub mod api { pub type Extra = runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>; } - impl ::subxt_core::blocks::StaticExtrinsic for BondExtra { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "bond_extra"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_payout`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct ClaimPayout; - impl ::subxt_core::blocks::StaticExtrinsic for ClaimPayout { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimPayout { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_payout"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unbond`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] + #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] + #[doc = "rewards would be forfeited."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch."] + #[doc = ""] + #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] + #[doc = " as a kick."] + #[doc = "* The pool is destroying and the member is not the depositor."] + #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] + #[doc = "`member_account`):"] + #[doc = ""] + #[doc = "* The caller is not the depositor."] + #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] + #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] + #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] + #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] + #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] + #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] + #[doc = "staking system."] pub struct Unbond { pub member_account: unbond::MemberAccount, #[codec(compact)] @@ -24297,30 +29564,39 @@ pub mod api { } pub mod unbond { use super::runtime_types; - pub type MemberAccount = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type MemberAccount = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type UnbondingPoints = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Unbond { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Unbond { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "unbond"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct PoolWithdrawUnbonded { pub pool_id: pool_withdraw_unbonded::PoolId, pub num_slashing_spans: pool_withdraw_unbonded::NumSlashingSpans, @@ -24330,54 +29606,99 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type NumSlashingSpans = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for PoolWithdrawUnbonded { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PoolWithdrawUnbonded { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "pool_withdraw_unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::withdraw_unbonded`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`]."] pub struct WithdrawUnbonded { pub member_account: withdraw_unbonded::MemberAccount, pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, } pub mod withdraw_unbonded { use super::runtime_types; - pub type MemberAccount = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type MemberAccount = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type NumSlashingSpans = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for WithdrawUnbonded { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for WithdrawUnbonded { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "withdraw_unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct Create { #[codec(compact)] pub amount: create::Amount, @@ -24388,37 +29709,46 @@ pub mod api { pub mod create { use super::runtime_types; pub type Amount = ::core::primitive::u128; - pub type Root = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Root = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Nominator = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Nominator = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Bouncer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Bouncer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Create { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "create"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create_with_pool_id`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Create a new delegation pool with a previously used pool id"] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "same as `create` with the inclusion of"] + #[doc = "* `pool_id` - `A valid PoolId."] pub struct CreateWithPoolId { #[codec(compact)] pub amount: create_with_pool_id::Amount, @@ -24430,38 +29760,53 @@ pub mod api { pub mod create_with_pool_id { use super::runtime_types; pub type Amount = ::core::primitive::u128; - pub type Root = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Root = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Nominator = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Nominator = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Bouncer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Bouncer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CreateWithPoolId { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CreateWithPoolId { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "create_with_pool_id"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::nominate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct Nominate { pub pool_id: nominate::PoolId, pub validators: nominate::Validators, @@ -24469,27 +29814,41 @@ pub mod api { pub mod nominate { use super::runtime_types; pub type PoolId = ::core::primitive::u32; - pub type Validators = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Validators = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for Nominate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "nominate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_state`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a new state for the pool."] + #[doc = ""] + #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] + #[doc = "change again."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be either:"] + #[doc = ""] + #[doc = "1. signed by the bouncer, or the root role of the pool,"] + #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] + #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] pub struct SetState { pub pool_id: set_state::PoolId, pub state: set_state::State, @@ -24499,24 +29858,31 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type State = runtime_types::pallet_nomination_pools::PoolState; } - impl ::subxt_core::blocks::StaticExtrinsic for SetState { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetState { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_state"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_metadata`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a new metadata for the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] + #[doc = "pool."] pub struct SetMetadata { pub pool_id: set_metadata::PoolId, pub metadata: set_metadata::Metadata, @@ -24524,26 +29890,41 @@ pub mod api { pub mod set_metadata { use super::runtime_types; pub type PoolId = ::core::primitive::u32; - pub type Metadata = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Metadata = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMetadata { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_metadata"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_configs`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`]."] pub struct SetConfigs { pub min_join_bond: set_configs::MinJoinBond, pub min_create_bond: set_configs::MinCreateBond, @@ -24568,24 +29949,34 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetConfigs { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetConfigs { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_configs"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::update_roles`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Update the roles of the pool."] + #[doc = ""] + #[doc = "The root is the only entity that can change any of the roles, including itself,"] + #[doc = "excluding the depositor, who can never change."] + #[doc = ""] + #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] + #[doc = "most pool members and they should be informed of changes to pool roles."] pub struct UpdateRoles { pub pool_id: update_roles::PoolId, pub new_root: update_roles::NewRoot, @@ -24596,33 +29987,52 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; pub type NewRoot = runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type NewNominator = runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type NewBouncer = runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for UpdateRoles { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UpdateRoles { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "update_roles"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::chill`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct Chill { pub pool_id: chill::PoolId, } @@ -24630,55 +30040,77 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Chill { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "chill"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::bond_extra_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`."] pub struct BondExtraOther { pub member: bond_extra_other::Member, pub extra: bond_extra_other::Extra, } pub mod bond_extra_other { use super::runtime_types; - pub type Member = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Member = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Extra = runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>; } - impl ::subxt_core::blocks::StaticExtrinsic for BondExtraOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for BondExtraOther { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "bond_extra_other"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_claim_permission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct SetClaimPermission { pub permission: set_claim_permission::Permission, } @@ -24686,49 +30118,64 @@ pub mod api { use super::runtime_types; pub type Permission = runtime_types::pallet_nomination_pools::ClaimPermission; } - impl ::subxt_core::blocks::StaticExtrinsic for SetClaimPermission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetClaimPermission { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_claim_permission"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_payout_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct ClaimPayoutOther { pub other: claim_payout_other::Other, } pub mod claim_payout_other { use super::runtime_types; - pub type Other = ::subxt_core::utils::AccountId32; + pub type Other = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::blocks::StaticExtrinsic for ClaimPayoutOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimPayoutOther { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_payout_other"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the commission of a pool."] + #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] + #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] + #[doc = ""] + #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] pub struct SetCommission { pub pool_id: set_commission::PoolId, pub new_commission: set_commission::NewCommission, @@ -24738,27 +30185,35 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type NewCommission = ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommission { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission_max`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the maximum commission of a pool."] + #[doc = ""] + #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] + #[doc = "- Current commission will be lowered in the event it is higher than a new max"] + #[doc = " commission."] pub struct SetCommissionMax { pub pool_id: set_commission_max::PoolId, pub max_commission: set_commission_max::MaxCommission, @@ -24768,24 +30223,31 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommissionMax { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommissionMax { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission_max"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission_change_rate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the commission change rate for a pool."] + #[doc = ""] + #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] + #[doc = "restrictive than the current."] pub struct SetCommissionChangeRate { pub pool_id: set_commission_change_rate::PoolId, pub change_rate: set_commission_change_rate::ChangeRate, @@ -24798,24 +30260,32 @@ pub mod api { ::core::primitive::u64, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommissionChangeRate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommissionChangeRate { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission_change_rate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_commission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Claim pending commission."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] + #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] + #[doc = "is reset to zero. the current."] pub struct ClaimCommission { pub pool_id: claim_commission::PoolId, } @@ -24823,24 +30293,34 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ClaimCommission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimCommission { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_commission"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::adjust_pool_deposit`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct AdjustPoolDeposit { pub pool_id: adjust_pool_deposit::PoolId, } @@ -24848,24 +30328,31 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for AdjustPoolDeposit { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AdjustPoolDeposit { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "adjust_pool_deposit"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission_claim_permission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct SetCommissionClaimPermission { pub pool_id: set_commission_claim_permission::PoolId, pub permission: set_commission_claim_permission::Permission, @@ -24875,24 +30362,148 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Permission = ::core::option::Option< runtime_types::pallet_nomination_pools::CommissionClaimPermission< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommissionClaimPermission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommissionClaimPermission { const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission_claim_permission"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] + pub struct ApplySlash { + pub member_account: apply_slash::MemberAccount, + } + pub mod apply_slash { + use super::runtime_types; + pub type MemberAccount = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ApplySlash { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "apply_slash"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`]"] + pub struct MigrateDelegation { + pub member_account: migrate_delegation::MemberAccount, + } + pub mod migrate_delegation { + use super::runtime_types; + pub type MemberAccount = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for MigrateDelegation { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "migrate_delegation"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] + pub struct MigratePoolToDelegateStake { + pub pool_id: migrate_pool_to_delegate_stake::PoolId, + } + pub mod migrate_pool_to_delegate_stake { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for MigratePoolToDelegateStake { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "migrate_pool_to_delegate_stake"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::join`]."] + #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] + #[doc = "pools account and immediately increases the pools bond."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "* An account can only be a member of a single pool."] + #[doc = "* An account cannot join the same pool multiple times."] + #[doc = "* This call will *not* dust the member account, so the member must have at least"] + #[doc = " `existential deposit + amount` in their account."] + #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] pub fn join( &self, amount: types::join::Amount, pool_id: types::join::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "join", types::Join { amount, pool_id }, @@ -24903,12 +30514,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra`]."] + #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] + #[doc = ""] + #[doc = "Additional funds can come from either the free balance of the account, of from the"] + #[doc = "accumulated rewards, see [`BondExtra`]."] + #[doc = ""] + #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] + #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] pub fn bond_extra( &self, extra: types::bond_extra::Extra, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "bond_extra", types::BondExtra { extra }, @@ -24920,11 +30537,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_payout`]."] + #[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."] pub fn claim_payout( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "claim_payout", types::ClaimPayout {}, @@ -24935,13 +30559,43 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unbond`]."] + #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] + #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] + #[doc = "rewards would be forfeited."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch."] + #[doc = ""] + #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] + #[doc = " as a kick."] + #[doc = "* The pool is destroying and the member is not the depositor."] + #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] + #[doc = "`member_account`):"] + #[doc = ""] + #[doc = "* The caller is not the depositor."] + #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] + #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] + #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] + #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] + #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] + #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] + #[doc = "staking system."] pub fn unbond( &self, member_account: types::unbond::MemberAccount, unbonding_points: types::unbond::UnbondingPoints, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "unbond", types::Unbond { member_account, unbonding_points }, @@ -24952,13 +30606,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + #[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."] pub fn pool_withdraw_unbonded( &self, pool_id: types::pool_withdraw_unbonded::PoolId, num_slashing_spans: types::pool_withdraw_unbonded::NumSlashingSpans, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "pool_withdraw_unbonded", types::PoolWithdrawUnbonded { pool_id, num_slashing_spans }, @@ -24970,13 +30630,34 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::withdraw_unbonded`]."] + #[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`]."] pub fn withdraw_unbonded( &self, member_account: types::withdraw_unbonded::MemberAccount, num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "withdraw_unbonded", types::WithdrawUnbonded { member_account, num_slashing_spans }, @@ -24988,15 +30669,31 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create`]."] + #[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."] pub fn create( &self, amount: types::create::Amount, root: types::create::Root, nominator: types::create::Nominator, bouncer: types::create::Bouncer, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "create", types::Create { amount, root, nominator, bouncer }, @@ -25007,7 +30704,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create_with_pool_id`]."] + #[doc = "Create a new delegation pool with a previously used pool id"] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "same as `create` with the inclusion of"] + #[doc = "* `pool_id` - `A valid PoolId."] pub fn create_with_pool_id( &self, amount: types::create_with_pool_id::Amount, @@ -25015,8 +30717,8 @@ pub mod api { nominator: types::create_with_pool_id::Nominator, bouncer: types::create_with_pool_id::Bouncer, pool_id: types::create_with_pool_id::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "create_with_pool_id", types::CreateWithPoolId { amount, root, nominator, bouncer, pool_id }, @@ -25028,13 +30730,24 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::nominate`]."] + #[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."] pub fn nominate( &self, pool_id: types::nominate::PoolId, validators: types::nominate::Validators, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "nominate", types::Nominate { pool_id, validators }, @@ -25045,13 +30758,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_state`]."] + #[doc = "Set a new state for the pool."] + #[doc = ""] + #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] + #[doc = "change again."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be either:"] + #[doc = ""] + #[doc = "1. signed by the bouncer, or the root role of the pool,"] + #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] + #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] pub fn set_state( &self, pool_id: types::set_state::PoolId, state: types::set_state::State, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_state", types::SetState { pool_id, state }, @@ -25062,13 +30784,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_metadata`]."] + #[doc = "Set a new metadata for the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] + #[doc = "pool."] pub fn set_metadata( &self, pool_id: types::set_metadata::PoolId, metadata: types::set_metadata::Metadata, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_metadata", types::SetMetadata { pool_id, metadata }, @@ -25079,7 +30804,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_configs`]."] + #[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`]."] pub fn set_configs( &self, min_join_bond: types::set_configs::MinJoinBond, @@ -25088,8 +30823,8 @@ pub mod api { max_members: types::set_configs::MaxMembers, max_members_per_pool: types::set_configs::MaxMembersPerPool, global_max_commission: types::set_configs::GlobalMaxCommission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_configs", types::SetConfigs { @@ -25108,15 +30843,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::update_roles`]."] + #[doc = "Update the roles of the pool."] + #[doc = ""] + #[doc = "The root is the only entity that can change any of the roles, including itself,"] + #[doc = "excluding the depositor, who can never change."] + #[doc = ""] + #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] + #[doc = "most pool members and they should be informed of changes to pool roles."] pub fn update_roles( &self, pool_id: types::update_roles::PoolId, new_root: types::update_roles::NewRoot, new_nominator: types::update_roles::NewNominator, new_bouncer: types::update_roles::NewBouncer, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "update_roles", types::UpdateRoles { pool_id, new_root, new_nominator, new_bouncer }, @@ -25128,12 +30869,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::chill`]."] + #[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."] pub fn chill( &self, pool_id: types::chill::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "chill", types::Chill { pool_id }, @@ -25144,13 +30900,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra_other`]."] + #[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`."] pub fn bond_extra_other( &self, member: types::bond_extra_other::Member, extra: types::bond_extra_other::Extra, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "bond_extra_other", types::BondExtraOther { member, extra }, @@ -25162,12 +30926,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_claim_permission`]."] + #[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."] pub fn set_claim_permission( &self, permission: types::set_claim_permission::Permission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_claim_permission", types::SetClaimPermission { permission }, @@ -25178,12 +30949,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_payout_other`]."] + #[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."] pub fn claim_payout_other( &self, other: types::claim_payout_other::Other, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "claim_payout_other", types::ClaimPayoutOther { other }, @@ -25195,13 +30969,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission`]."] + #[doc = "Set the commission of a pool."] + #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] + #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] + #[doc = ""] + #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] pub fn set_commission( &self, pool_id: types::set_commission::PoolId, new_commission: types::set_commission::NewCommission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_commission", types::SetCommission { pool_id, new_commission }, @@ -25212,13 +30990,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_max`]."] + #[doc = "Set the maximum commission of a pool."] + #[doc = ""] + #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] + #[doc = "- Current commission will be lowered in the event it is higher than a new max"] + #[doc = " commission."] pub fn set_commission_max( &self, pool_id: types::set_commission_max::PoolId, max_commission: types::set_commission_max::MaxCommission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_commission_max", types::SetCommissionMax { pool_id, max_commission }, @@ -25230,13 +31012,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_change_rate`]."] + #[doc = "Set the commission change rate for a pool."] + #[doc = ""] + #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] + #[doc = "restrictive than the current."] pub fn set_commission_change_rate( &self, pool_id: types::set_commission_change_rate::PoolId, change_rate: types::set_commission_change_rate::ChangeRate, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::SetCommissionChangeRate, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_commission_change_rate", types::SetCommissionChangeRate { pool_id, change_rate }, @@ -25248,12 +31035,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_commission`]."] + #[doc = "Claim pending commission."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] + #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] + #[doc = "is reset to zero. the current."] pub fn claim_commission( &self, pool_id: types::claim_commission::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "claim_commission", types::ClaimCommission { pool_id }, @@ -25264,12 +31055,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::adjust_pool_deposit`]."] + #[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."] pub fn adjust_pool_deposit( &self, pool_id: types::adjust_pool_deposit::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "adjust_pool_deposit", types::AdjustPoolDeposit { pool_id }, @@ -25280,13 +31078,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_claim_permission`]."] + #[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."] pub fn set_commission_claim_permission( &self, pool_id: types::set_commission_claim_permission::PoolId, permission: types::set_commission_claim_permission::Permission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::SetCommissionClaimPermission, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "NominationPools", "set_commission_claim_permission", types::SetCommissionClaimPermission { pool_id, permission }, @@ -25297,6 +31100,79 @@ pub mod api { ], ) } + #[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."] + pub fn apply_slash( + &self, + member_account: types::apply_slash::MemberAccount, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "NominationPools", + "apply_slash", + types::ApplySlash { member_account }, + [ + 2u8, 86u8, 29u8, 116u8, 16u8, 255u8, 232u8, 230u8, 97u8, 46u8, 104u8, + 167u8, 171u8, 19u8, 51u8, 170u8, 98u8, 108u8, 58u8, 181u8, 17u8, 193u8, + 172u8, 221u8, 119u8, 17u8, 249u8, 154u8, 61u8, 159u8, 31u8, 72u8, + ], + ) + } + #[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`]"] + pub fn migrate_delegation( + &self, + member_account: types::migrate_delegation::MemberAccount, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "NominationPools", + "migrate_delegation", + types::MigrateDelegation { member_account }, + [ + 26u8, 77u8, 30u8, 239u8, 89u8, 129u8, 167u8, 107u8, 181u8, 47u8, 99u8, + 75u8, 90u8, 160u8, 86u8, 222u8, 233u8, 63u8, 208u8, 149u8, 44u8, 127u8, + 9u8, 25u8, 249u8, 170u8, 186u8, 28u8, 100u8, 168u8, 13u8, 39u8, + ], + ) + } + #[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."] + pub fn migrate_pool_to_delegate_stake( + &self, + pool_id: types::migrate_pool_to_delegate_stake::PoolId, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::MigratePoolToDelegateStake, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "NominationPools", + "migrate_pool_to_delegate_stake", + types::MigratePoolToDelegateStake { pool_id }, + [ + 63u8, 137u8, 37u8, 37u8, 79u8, 184u8, 127u8, 89u8, 85u8, 219u8, 64u8, + 6u8, 32u8, 115u8, 52u8, 74u8, 212u8, 117u8, 0u8, 128u8, 149u8, 225u8, + 94u8, 113u8, 4u8, 209u8, 136u8, 188u8, 224u8, 220u8, 125u8, 167u8, + ], + ) + } } } #[doc = "Events of this pallet."] @@ -25304,18 +31180,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool has been created."] pub struct Created { pub depositor: created::Depositor, @@ -25323,26 +31199,26 @@ pub mod api { } pub mod created { use super::runtime_types; - pub type Depositor = ::subxt_core::utils::AccountId32; + pub type Depositor = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Created { + impl ::subxt::ext::subxt_core::events::StaticEvent for Created { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Created"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has became bonded in a pool."] pub struct Bonded { pub member: bonded::Member, @@ -25352,28 +31228,28 @@ pub mod api { } pub mod bonded { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Bonded = ::core::primitive::u128; pub type Joined = ::core::primitive::bool; } - impl ::subxt_core::events::StaticEvent for Bonded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Bonded { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Bonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A payout has been made to a member."] pub struct PaidOut { pub member: paid_out::Member, @@ -25382,27 +31258,27 @@ pub mod api { } pub mod paid_out { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Payout = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for PaidOut { + impl ::subxt::ext::subxt_core::events::StaticEvent for PaidOut { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PaidOut"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has unbonded from their pool."] #[doc = ""] #[doc = "- `balance` is the corresponding balance of the number of points that has been"] @@ -25423,29 +31299,29 @@ pub mod api { } pub mod unbonded { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; pub type Points = ::core::primitive::u128; pub type Era = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Unbonded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Unbonded { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has withdrawn from their pool."] #[doc = ""] #[doc = "The given number of `points` have been dissolved in return of `balance`."] @@ -25460,28 +31336,28 @@ pub mod api { } pub mod withdrawn { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; pub type Points = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Withdrawn { + impl ::subxt::ext::subxt_core::events::StaticEvent for Withdrawn { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Withdrawn"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool has been destroyed."] pub struct Destroyed { pub pool_id: destroyed::PoolId, @@ -25490,23 +31366,23 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Destroyed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Destroyed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Destroyed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The state of a pool has changed"] pub struct StateChanged { pub pool_id: state_changed::PoolId, @@ -25517,23 +31393,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type NewState = runtime_types::pallet_nomination_pools::PoolState; } - impl ::subxt_core::events::StaticEvent for StateChanged { + impl ::subxt::ext::subxt_core::events::StaticEvent for StateChanged { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "StateChanged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has been removed from a pool."] #[doc = ""] #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] @@ -25544,25 +31420,25 @@ pub mod api { pub mod member_removed { use super::runtime_types; pub type PoolId = ::core::primitive::u32; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for MemberRemoved { + impl ::subxt::ext::subxt_core::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "MemberRemoved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] pub struct RolesUpdated { @@ -25572,27 +31448,30 @@ pub mod api { } pub mod roles_updated { use super::runtime_types; - pub type Root = ::core::option::Option<::subxt_core::utils::AccountId32>; - pub type Bouncer = ::core::option::Option<::subxt_core::utils::AccountId32>; - pub type Nominator = ::core::option::Option<::subxt_core::utils::AccountId32>; - } - impl ::subxt_core::events::StaticEvent for RolesUpdated { + pub type Root = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + pub type Bouncer = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + pub type Nominator = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for RolesUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "RolesUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] pub struct PoolSlashed { pub pool_id: pool_slashed::PoolId, @@ -25603,23 +31482,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for PoolSlashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolSlashed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolSlashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] pub struct UnbondingPoolSlashed { pub pool_id: unbonding_pool_slashed::PoolId, @@ -25632,23 +31511,23 @@ pub mod api { pub type Era = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for UnbondingPoolSlashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for UnbondingPoolSlashed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "UnbondingPoolSlashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool's commission setting has been changed."] pub struct PoolCommissionUpdated { pub pool_id: pool_commission_updated::PoolId, @@ -25659,26 +31538,26 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Current = ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>; } - impl ::subxt_core::events::StaticEvent for PoolCommissionUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool's maximum commission setting has been changed."] pub struct PoolMaxCommissionUpdated { pub pool_id: pool_max_commission_updated::PoolId, @@ -25689,23 +31568,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; } - impl ::subxt_core::events::StaticEvent for PoolMaxCommissionUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolMaxCommissionUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolMaxCommissionUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool's commission `change_rate` has been changed."] pub struct PoolCommissionChangeRateUpdated { pub pool_id: pool_commission_change_rate_updated::PoolId, @@ -25718,23 +31597,23 @@ pub mod api { ::core::primitive::u64, >; } - impl ::subxt_core::events::StaticEvent for PoolCommissionChangeRateUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionChangeRateUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Pool commission claim permission has been updated."] pub struct PoolCommissionClaimPermissionUpdated { pub pool_id: pool_commission_claim_permission_updated::PoolId, @@ -25745,27 +31624,27 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Permission = ::core::option::Option< runtime_types::pallet_nomination_pools::CommissionClaimPermission< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::events::StaticEvent for PoolCommissionClaimPermissionUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionClaimPermissionUpdated { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionClaimPermissionUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Pool commission has been claimed."] pub struct PoolCommissionClaimed { pub pool_id: pool_commission_claimed::PoolId, @@ -25776,23 +31655,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Commission = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for PoolCommissionClaimed { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionClaimed { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionClaimed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Topped up deficit in frozen ED of the reward pool."] pub struct MinBalanceDeficitAdjusted { pub pool_id: min_balance_deficit_adjusted::PoolId, @@ -25803,23 +31682,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for MinBalanceDeficitAdjusted { + impl ::subxt::ext::subxt_core::events::StaticEvent for MinBalanceDeficitAdjusted { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "MinBalanceDeficitAdjusted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Claimed excess frozen ED of af the reward pool."] pub struct MinBalanceExcessAdjusted { pub pool_id: min_balance_excess_adjusted::PoolId, @@ -25830,7 +31709,7 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for MinBalanceExcessAdjusted { + impl ::subxt::ext::subxt_core::events::StaticEvent for MinBalanceExcessAdjusted { const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "MinBalanceExcessAdjusted"; } @@ -25871,7 +31750,7 @@ pub mod api { pub mod pool_members { use super::runtime_types; pub type PoolMembers = runtime_types::pallet_nomination_pools::PoolMember; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod counter_for_pool_members { use super::runtime_types; @@ -25922,7 +31801,7 @@ pub mod api { pub mod reverse_pool_id_lookup { use super::runtime_types; pub type ReversePoolIdLookup = ::core::primitive::u32; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod counter_for_reverse_pool_id_lookup { use super::runtime_types; @@ -25932,7 +31811,7 @@ pub mod api { use super::runtime_types; pub type ClaimPermissions = runtime_types::pallet_nomination_pools::ClaimPermission; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -25944,14 +31823,14 @@ pub mod api { #[doc = " `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s."] pub fn total_value_locked( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::total_value_locked::TotalValueLocked, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "TotalValueLocked", (), @@ -25965,14 +31844,14 @@ pub mod api { #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_join_bond::MinJoinBond, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "MinJoinBond", (), @@ -25992,14 +31871,14 @@ pub mod api { #[doc = " while all other accounts leave."] pub fn min_create_bond( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_create_bond::MinCreateBond, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "MinCreateBond", (), @@ -26015,14 +31894,14 @@ pub mod api { #[doc = " pools can exist."] pub fn max_pools( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::max_pools::MaxPools, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "MaxPools", (), @@ -26038,14 +31917,14 @@ pub mod api { #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::max_pool_members::MaxPoolMembers, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "MaxPoolMembers", (), @@ -26061,14 +31940,14 @@ pub mod api { #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::max_pool_members_per_pool::MaxPoolMembersPerPool, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "MaxPoolMembersPerPool", (), @@ -26084,14 +31963,14 @@ pub mod api { #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] pub fn global_max_commission( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::global_max_commission::GlobalMaxCommission, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "GlobalMaxCommission", (), @@ -26108,14 +31987,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::pool_members::PoolMembers, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "PoolMembers", (), @@ -26133,17 +32012,21 @@ pub mod api { pub fn pool_members( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::pool_members::Param0, + >, types::pool_members::PoolMembers, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "PoolMembers", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 71u8, 14u8, 198u8, 220u8, 13u8, 117u8, 189u8, 187u8, 123u8, 105u8, 247u8, 41u8, 154u8, 176u8, 134u8, 226u8, 195u8, 136u8, 193u8, 6u8, @@ -26155,14 +32038,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_pool_members::CounterForPoolMembers, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "CounterForPoolMembers", (), @@ -26177,14 +32060,14 @@ pub mod api { #[doc = " Storage for bonded pools."] pub fn bonded_pools_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bonded_pools::BondedPools, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "BondedPools", (), @@ -26200,17 +32083,21 @@ pub mod api { pub fn bonded_pools( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::bonded_pools::Param0, + >, types::bonded_pools::BondedPools, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "BondedPools", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 237u8, 73u8, 210u8, 142u8, 175u8, 108u8, 4u8, 196u8, 31u8, 179u8, 149u8, 14u8, 4u8, 10u8, 103u8, 135u8, 221u8, 118u8, 124u8, 94u8, 106u8, @@ -26222,14 +32109,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_bonded_pools::CounterForBondedPools, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "CounterForBondedPools", (), @@ -26241,17 +32128,17 @@ pub mod api { ) } #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] - #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + #[doc = " claimed, the balance comes out of the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::reward_pools::RewardPools, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "RewardPools", (), @@ -26264,21 +32151,25 @@ pub mod api { ) } #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] - #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + #[doc = " claimed, the balance comes out of the reward pool. Keyed by the bonded pools account."] pub fn reward_pools( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::reward_pools::Param0, + >, types::reward_pools::RewardPools, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "RewardPools", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, @@ -26290,14 +32181,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_reward_pools::CounterForRewardPools, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "CounterForRewardPools", (), @@ -26313,14 +32204,14 @@ pub mod api { #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::sub_pools_storage::SubPoolsStorage, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "SubPoolsStorage", (), @@ -26336,19 +32227,21 @@ pub mod api { pub fn sub_pools_storage( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::sub_pools_storage::Param0, >, types::sub_pools_storage::SubPoolsStorage, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "SubPoolsStorage", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, @@ -26359,14 +32252,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_sub_pools_storage::CounterForSubPoolsStorage, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "CounterForSubPoolsStorage", (), @@ -26381,14 +32274,14 @@ pub mod api { #[doc = " Metadata for the pool."] pub fn metadata_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::metadata::Metadata, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "Metadata", (), @@ -26403,17 +32296,21 @@ pub mod api { pub fn metadata( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::metadata::Param0, + >, types::metadata::Metadata, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "Metadata", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, @@ -26424,14 +32321,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_metadata::CounterForMetadata, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "CounterForMetadata", (), @@ -26446,14 +32343,14 @@ pub mod api { #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::last_pool_id::LastPoolId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "LastPoolId", (), @@ -26467,18 +32364,18 @@ pub mod api { } #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] + #[doc = " This is only used for slashing and on automatic withdraw update. In all other instances, the"] + #[doc = " pool id is used, and the accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::reverse_pool_id_lookup::ReversePoolIdLookup, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "ReversePoolIdLookup", (), @@ -26491,24 +32388,26 @@ pub mod api { } #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] - #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] - #[doc = " accounts are deterministically derived from it."] + #[doc = " This is only used for slashing and on automatic withdraw update. In all other instances, the"] + #[doc = " pool id is used, and the accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::reverse_pool_id_lookup::Param0, >, types::reverse_pool_id_lookup::ReversePoolIdLookup, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "ReversePoolIdLookup", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, @@ -26519,14 +32418,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_reverse_pool_id_lookup::CounterForReversePoolIdLookup, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "CounterForReversePoolIdLookup", (), @@ -26541,21 +32440,21 @@ pub mod api { #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::claim_permissions::ClaimPermissions, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "ClaimPermissions", (), [ - 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, - 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, - 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + 127u8, 58u8, 154u8, 103u8, 97u8, 80u8, 68u8, 18u8, 167u8, 41u8, 93u8, + 100u8, 94u8, 81u8, 82u8, 98u8, 13u8, 162u8, 122u8, 199u8, 216u8, 139u8, + 238u8, 97u8, 174u8, 102u8, 11u8, 250u8, 247u8, 174u8, 185u8, 134u8, ], ) } @@ -26563,23 +32462,25 @@ pub mod api { pub fn claim_permissions( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::claim_permissions::Param0, >, types::claim_permissions::ClaimPermissions, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "NominationPools", "ClaimPermissions", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, - 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, - 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + 127u8, 58u8, 154u8, 103u8, 97u8, 80u8, 68u8, 18u8, 167u8, 41u8, 93u8, + 100u8, 94u8, 81u8, 82u8, 98u8, 13u8, 162u8, 122u8, 199u8, 216u8, 139u8, + 238u8, 97u8, 174u8, 102u8, 11u8, 250u8, 247u8, 174u8, 185u8, 134u8, ], ) } @@ -26592,10 +32493,10 @@ pub mod api { #[doc = " The nomination pool's pallet id."] pub fn pallet_id( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::frame_support::PalletId, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "NominationPools", "PalletId", [ @@ -26619,8 +32520,10 @@ pub mod api { #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] pub fn max_points_to_balance( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u8> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u8, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "NominationPools", "MaxPointsToBalance", [ @@ -26634,8 +32537,10 @@ pub mod api { #[doc = " The maximum number of simultaneous unbonding chunks that can exist per member."] pub fn max_unbonding( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "NominationPools", "MaxUnbonding", [ @@ -26663,24 +32568,28 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Anonymously schedule a task."] pub struct Schedule { pub when: schedule::When, pub maybe_periodic: schedule::MaybePeriodic, pub priority: schedule::Priority, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod schedule { use super::runtime_types; @@ -26690,24 +32599,28 @@ pub mod api { pub type Priority = ::core::primitive::u8; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for Schedule { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Schedule { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel an anonymously scheduled task."] pub struct Cancel { pub when: cancel::When, pub index: cancel::Index, @@ -26717,30 +32630,34 @@ pub mod api { pub type When = ::core::primitive::u64; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Cancel { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Cancel { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "cancel"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_named`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule a named task."] pub struct ScheduleNamed { pub id: schedule_named::Id, pub when: schedule_named::When, pub maybe_periodic: schedule_named::MaybePeriodic, pub priority: schedule_named::Priority, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod schedule_named { use super::runtime_types; @@ -26751,24 +32668,28 @@ pub mod api { pub type Priority = ::core::primitive::u8; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for ScheduleNamed { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleNamed { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_named"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_named`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel a named scheduled task."] pub struct CancelNamed { pub id: cancel_named::Id, } @@ -26776,29 +32697,33 @@ pub mod api { use super::runtime_types; pub type Id = [::core::primitive::u8; 32usize]; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelNamed { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelNamed { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "cancel_named"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_after`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Anonymously schedule a task after a delay."] pub struct ScheduleAfter { pub after: schedule_after::After, pub maybe_periodic: schedule_after::MaybePeriodic, pub priority: schedule_after::Priority, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod schedule_after { use super::runtime_types; @@ -26808,30 +32733,35 @@ pub mod api { pub type Priority = ::core::primitive::u8; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for ScheduleAfter { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleAfter { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_after"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_named_after`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedule a named task after a delay."] pub struct ScheduleNamedAfter { pub id: schedule_named_after::Id, pub after: schedule_named_after::After, pub maybe_periodic: schedule_named_after::MaybePeriodic, pub priority: schedule_named_after::Priority, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: + ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod schedule_named_after { use super::runtime_types; @@ -26842,44 +32772,190 @@ pub mod api { pub type Priority = ::core::primitive::u8; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for ScheduleNamedAfter { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleNamedAfter { const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_named_after"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] + #[doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] + #[doc = "succeeds."] + #[doc = ""] + #[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] + #[doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] + #[doc = "normally while the task is retrying."] + #[doc = ""] + #[doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] + #[doc = "clones of the original task. Their retry configuration will be derived from the"] + #[doc = "original task's configuration, but will have a lower value for `remaining` than the"] + #[doc = "original `total_retries`."] + pub struct SetRetry { + pub task: set_retry::Task, + pub retries: set_retry::Retries, + pub period: set_retry::Period, + } + pub mod set_retry { + use super::runtime_types; + pub type Task = (::core::primitive::u64, ::core::primitive::u32); + pub type Retries = ::core::primitive::u8; + pub type Period = ::core::primitive::u64; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetRetry { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "set_retry"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] + #[doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] + #[doc = "it succeeds."] + #[doc = ""] + #[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] + #[doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] + #[doc = "normally while the task is retrying."] + #[doc = ""] + #[doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] + #[doc = "clones of the original task. Their retry configuration will be derived from the"] + #[doc = "original task's configuration, but will have a lower value for `remaining` than the"] + #[doc = "original `total_retries`."] + pub struct SetRetryNamed { + pub id: set_retry_named::Id, + pub retries: set_retry_named::Retries, + pub period: set_retry_named::Period, + } + pub mod set_retry_named { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type Retries = ::core::primitive::u8; + pub type Period = ::core::primitive::u64; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetRetryNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "set_retry_named"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Removes the retry configuration of a task."] + pub struct CancelRetry { + pub task: cancel_retry::Task, + } + pub mod cancel_retry { + use super::runtime_types; + pub type Task = (::core::primitive::u64, ::core::primitive::u32); + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelRetry { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_retry"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel the retry configuration of a named task."] + pub struct CancelRetryNamed { + pub id: cancel_retry_named::Id, + } + pub mod cancel_retry_named { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelRetryNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_retry_named"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::schedule`]."] + #[doc = "Anonymously schedule a task."] pub fn schedule( &self, when: types::schedule::When, maybe_periodic: types::schedule::MaybePeriodic, priority: types::schedule::Priority, call: types::schedule::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Scheduler", "schedule", types::Schedule { when, maybe_periodic, priority, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 172u8, 50u8, 35u8, 23u8, 54u8, 113u8, 214u8, 69u8, 196u8, 132u8, 6u8, - 102u8, 37u8, 157u8, 139u8, 8u8, 82u8, 94u8, 204u8, 223u8, 86u8, 77u8, - 147u8, 223u8, 158u8, 108u8, 239u8, 250u8, 154u8, 244u8, 63u8, 204u8, + 231u8, 50u8, 48u8, 163u8, 172u8, 241u8, 62u8, 232u8, 73u8, 141u8, 52u8, + 120u8, 48u8, 206u8, 147u8, 196u8, 75u8, 243u8, 218u8, 158u8, 149u8, + 245u8, 179u8, 54u8, 70u8, 237u8, 84u8, 93u8, 17u8, 99u8, 232u8, 213u8, ], ) } - #[doc = "See [`Pallet::cancel`]."] + #[doc = "Cancel an anonymously scheduled task."] pub fn cancel( &self, when: types::cancel::When, index: types::cancel::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Scheduler", "cancel", types::Cancel { when, index }, @@ -26891,7 +32967,7 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_named`]."] + #[doc = "Schedule a named task."] pub fn schedule_named( &self, id: types::schedule_named::Id, @@ -26899,8 +32975,8 @@ pub mod api { maybe_periodic: types::schedule_named::MaybePeriodic, priority: types::schedule_named::Priority, call: types::schedule_named::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Scheduler", "schedule_named", types::ScheduleNamed { @@ -26908,21 +32984,22 @@ pub mod api { when, maybe_periodic, priority, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 220u8, 143u8, 82u8, 181u8, 21u8, 3u8, 79u8, 159u8, 10u8, 68u8, 48u8, - 35u8, 45u8, 86u8, 44u8, 252u8, 194u8, 7u8, 175u8, 241u8, 71u8, 223u8, - 245u8, 129u8, 151u8, 2u8, 18u8, 250u8, 15u8, 174u8, 28u8, 78u8, + 190u8, 9u8, 18u8, 217u8, 78u8, 116u8, 8u8, 175u8, 78u8, 55u8, 94u8, + 43u8, 232u8, 230u8, 222u8, 112u8, 134u8, 66u8, 156u8, 160u8, 119u8, + 78u8, 229u8, 154u8, 138u8, 29u8, 210u8, 49u8, 128u8, 152u8, 77u8, + 225u8, ], ) } - #[doc = "See [`Pallet::cancel_named`]."] + #[doc = "Cancel a named scheduled task."] pub fn cancel_named( &self, id: types::cancel_named::Id, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Scheduler", "cancel_named", types::CancelNamed { id }, @@ -26933,31 +33010,31 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_after`]."] + #[doc = "Anonymously schedule a task after a delay."] pub fn schedule_after( &self, after: types::schedule_after::After, maybe_periodic: types::schedule_after::MaybePeriodic, priority: types::schedule_after::Priority, call: types::schedule_after::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Scheduler", "schedule_after", types::ScheduleAfter { after, maybe_periodic, priority, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 233u8, 35u8, 97u8, 23u8, 228u8, 177u8, 235u8, 90u8, 119u8, 20u8, 126u8, - 52u8, 154u8, 212u8, 145u8, 57u8, 244u8, 165u8, 91u8, 62u8, 14u8, 57u8, - 84u8, 124u8, 46u8, 113u8, 208u8, 82u8, 91u8, 164u8, 145u8, 128u8, + 178u8, 38u8, 14u8, 42u8, 40u8, 212u8, 83u8, 109u8, 3u8, 66u8, 98u8, + 95u8, 228u8, 32u8, 62u8, 93u8, 48u8, 44u8, 250u8, 12u8, 223u8, 120u8, + 189u8, 20u8, 120u8, 100u8, 20u8, 232u8, 51u8, 8u8, 113u8, 2u8, ], ) } - #[doc = "See [`Pallet::schedule_named_after`]."] + #[doc = "Schedule a named task after a delay."] pub fn schedule_named_after( &self, id: types::schedule_named_after::Id, @@ -26965,8 +33042,9 @@ pub mod api { maybe_periodic: types::schedule_named_after::MaybePeriodic, priority: types::schedule_named_after::Priority, call: types::schedule_named_after::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Scheduler", "schedule_named_after", types::ScheduleNamedAfter { @@ -26974,16 +33052,106 @@ pub mod api { after, maybe_periodic, priority, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 136u8, 163u8, 57u8, 226u8, 54u8, 135u8, 91u8, 220u8, 214u8, 151u8, - 216u8, 52u8, 66u8, 98u8, 16u8, 134u8, 202u8, 216u8, 230u8, 234u8, - 225u8, 170u8, 172u8, 253u8, 219u8, 93u8, 1u8, 2u8, 160u8, 101u8, 157u8, + 39u8, 134u8, 110u8, 143u8, 37u8, 229u8, 91u8, 160u8, 137u8, 241u8, + 230u8, 51u8, 213u8, 87u8, 46u8, 220u8, 151u8, 83u8, 32u8, 92u8, 111u8, + 70u8, 175u8, 6u8, 183u8, 78u8, 17u8, 135u8, 193u8, 117u8, 54u8, 4u8, + ], + ) + } + #[doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] + #[doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] + #[doc = "succeeds."] + #[doc = ""] + #[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] + #[doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] + #[doc = "normally while the task is retrying."] + #[doc = ""] + #[doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] + #[doc = "clones of the original task. Their retry configuration will be derived from the"] + #[doc = "original task's configuration, but will have a lower value for `remaining` than the"] + #[doc = "original `total_retries`."] + pub fn set_retry( + &self, + task: types::set_retry::Task, + retries: types::set_retry::Retries, + period: types::set_retry::Period, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Scheduler", + "set_retry", + types::SetRetry { task, retries, period }, + [ + 141u8, 127u8, 140u8, 59u8, 49u8, 27u8, 68u8, 94u8, 172u8, 128u8, 117u8, + 109u8, 133u8, 232u8, 217u8, 191u8, 243u8, 61u8, 123u8, 98u8, 72u8, + 28u8, 28u8, 248u8, 51u8, 153u8, 34u8, 199u8, 101u8, 81u8, 114u8, 197u8, + ], + ) + } + #[doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] + #[doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] + #[doc = "it succeeds."] + #[doc = ""] + #[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] + #[doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] + #[doc = "normally while the task is retrying."] + #[doc = ""] + #[doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] + #[doc = "clones of the original task. Their retry configuration will be derived from the"] + #[doc = "original task's configuration, but will have a lower value for `remaining` than the"] + #[doc = "original `total_retries`."] + pub fn set_retry_named( + &self, + id: types::set_retry_named::Id, + retries: types::set_retry_named::Retries, + period: types::set_retry_named::Period, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Scheduler", + "set_retry_named", + types::SetRetryNamed { id, retries, period }, + [ + 212u8, 211u8, 252u8, 200u8, 203u8, 195u8, 137u8, 109u8, 94u8, 157u8, + 179u8, 143u8, 214u8, 195u8, 220u8, 154u8, 97u8, 125u8, 99u8, 146u8, + 70u8, 80u8, 81u8, 243u8, 99u8, 68u8, 0u8, 31u8, 252u8, 117u8, 107u8, 125u8, ], ) } + #[doc = "Removes the retry configuration of a task."] + pub fn cancel_retry( + &self, + task: types::cancel_retry::Task, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Scheduler", + "cancel_retry", + types::CancelRetry { task }, + [ + 117u8, 113u8, 9u8, 5u8, 1u8, 107u8, 63u8, 82u8, 139u8, 110u8, 230u8, + 112u8, 64u8, 158u8, 224u8, 56u8, 183u8, 39u8, 82u8, 0u8, 204u8, 220u8, + 139u8, 182u8, 37u8, 156u8, 180u8, 120u8, 143u8, 252u8, 3u8, 236u8, + ], + ) + } + #[doc = "Cancel the retry configuration of a named task."] + pub fn cancel_retry_named( + &self, + id: types::cancel_retry_named::Id, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Scheduler", + "cancel_retry_named", + types::CancelRetryNamed { id }, + [ + 76u8, 157u8, 253u8, 113u8, 162u8, 54u8, 98u8, 21u8, 62u8, 44u8, 155u8, + 202u8, 2u8, 28u8, 153u8, 219u8, 67u8, 166u8, 206u8, 79u8, 139u8, 3u8, + 119u8, 182u8, 254u8, 134u8, 143u8, 121u8, 155u8, 220u8, 192u8, 209u8, + ], + ) + } } } #[doc = "Events type."] @@ -26991,18 +33159,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Scheduled some task."] pub struct Scheduled { pub when: scheduled::When, @@ -27013,23 +33181,23 @@ pub mod api { pub type When = ::core::primitive::u64; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Scheduled { + impl ::subxt::ext::subxt_core::events::StaticEvent for Scheduled { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Scheduled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Canceled some task."] pub struct Canceled { pub when: canceled::When, @@ -27040,23 +33208,23 @@ pub mod api { pub type When = ::core::primitive::u64; pub type Index = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Canceled { + impl ::subxt::ext::subxt_core::events::StaticEvent for Canceled { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Canceled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Dispatched some task."] pub struct Dispatched { pub task: dispatched::Task, @@ -27070,23 +33238,81 @@ pub mod api { pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for Dispatched { + impl ::subxt::ext::subxt_core::events::StaticEvent for Dispatched { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Dispatched"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Set a retry configuration for some task."] + pub struct RetrySet { + pub task: retry_set::Task, + pub id: retry_set::Id, + pub period: retry_set::Period, + pub retries: retry_set::Retries, + } + pub mod retry_set { + use super::runtime_types; + pub type Task = (::core::primitive::u64, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; + pub type Period = ::core::primitive::u64; + pub type Retries = ::core::primitive::u8; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for RetrySet { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "RetrySet"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Cancel a retry configuration for some task."] + pub struct RetryCancelled { + pub task: retry_cancelled::Task, + pub id: retry_cancelled::Id, + } + pub mod retry_cancelled { + use super::runtime_types; + pub type Task = (::core::primitive::u64, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for RetryCancelled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "RetryCancelled"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task: call_unavailable::Task, @@ -27097,23 +33323,23 @@ pub mod api { pub type Task = (::core::primitive::u64, ::core::primitive::u32); pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; } - impl ::subxt_core::events::StaticEvent for CallUnavailable { + impl ::subxt::ext::subxt_core::events::StaticEvent for CallUnavailable { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "CallUnavailable"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The given task was unable to be renewed since the agenda is full at that block."] pub struct PeriodicFailed { pub task: periodic_failed::Task, @@ -27124,23 +33350,51 @@ pub mod api { pub type Task = (::core::primitive::u64, ::core::primitive::u32); pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; } - impl ::subxt_core::events::StaticEvent for PeriodicFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for PeriodicFailed { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "PeriodicFailed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "The given task was unable to be retried since the agenda is full at that block or there"] + #[doc = "was not enough weight to reschedule it."] + pub struct RetryFailed { + pub task: retry_failed::Task, + pub id: retry_failed::Id, + } + pub mod retry_failed { + use super::runtime_types; + pub type Task = (::core::primitive::u64, ::core::primitive::u32); + pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for RetryFailed { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "RetryFailed"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task: permanently_overweight::Task, @@ -27151,7 +33405,7 @@ pub mod api { pub type Task = (::core::primitive::u64, ::core::primitive::u32); pub type Id = ::core::option::Option<[::core::primitive::u8; 32usize]>; } - impl ::subxt_core::events::StaticEvent for PermanentlyOverweight { + impl ::subxt::ext::subxt_core::events::StaticEvent for PermanentlyOverweight { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "PermanentlyOverweight"; } @@ -27176,12 +33430,19 @@ pub mod api { >, ::core::primitive::u64, runtime_types::tangle_testnet_runtime::OriginCaller, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, >; pub type Param0 = ::core::primitive::u64; } + pub mod retries { + use super::runtime_types; + pub type Retries = + runtime_types::pallet_scheduler::RetryConfig<::core::primitive::u64>; + pub type Param0 = ::core::primitive::u64; + pub type Param1 = ::core::primitive::u32; + } pub mod lookup { use super::runtime_types; pub type Lookup = (::core::primitive::u64, ::core::primitive::u32); @@ -27192,14 +33453,14 @@ pub mod api { impl StorageApi { pub fn incomplete_since( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::incomplete_since::IncompleteSince, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Scheduler", "IncompleteSince", (), @@ -27214,14 +33475,14 @@ pub mod api { #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::agenda::Agenda, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Scheduler", "Agenda", (), @@ -27237,17 +33498,21 @@ pub mod api { pub fn agenda( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::agenda::Param0, + >, types::agenda::Agenda, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Scheduler", "Agenda", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 207u8, 229u8, 12u8, 111u8, 82u8, 163u8, 230u8, 234u8, 172u8, 240u8, 41u8, 179u8, 64u8, 235u8, 253u8, 139u8, 75u8, 150u8, 218u8, 97u8, @@ -27256,20 +33521,104 @@ pub mod api { ], ) } + #[doc = " Retry configurations for items to be executed, indexed by task address."] + pub fn retries_iter( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::retries::Retries, + (), + (), + ::subxt::ext::subxt_core::utils::Yes, + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Scheduler", + "Retries", + (), + [ + 226u8, 140u8, 93u8, 197u8, 220u8, 2u8, 34u8, 112u8, 64u8, 9u8, 110u8, + 98u8, 192u8, 87u8, 138u8, 168u8, 186u8, 72u8, 27u8, 14u8, 187u8, 75u8, + 219u8, 119u8, 211u8, 224u8, 212u8, 196u8, 127u8, 117u8, 69u8, 82u8, + ], + ) + } + #[doc = " Retry configurations for items to be executed, indexed by task address."] + pub fn retries_iter1( + &self, + _0: impl ::core::borrow::Borrow, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::retries::Param0, + >, + types::retries::Retries, + (), + (), + ::subxt::ext::subxt_core::utils::Yes, + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Scheduler", + "Retries", + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + [ + 226u8, 140u8, 93u8, 197u8, 220u8, 2u8, 34u8, 112u8, 64u8, 9u8, 110u8, + 98u8, 192u8, 87u8, 138u8, 168u8, 186u8, 72u8, 27u8, 14u8, 187u8, 75u8, + 219u8, 119u8, 211u8, 224u8, 212u8, 196u8, 127u8, 117u8, 69u8, 82u8, + ], + ) + } + #[doc = " Retry configurations for items to be executed, indexed by task address."] + pub fn retries( + &self, + _0: impl ::core::borrow::Borrow, + _1: impl ::core::borrow::Borrow, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ( + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::retries::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::retries::Param1, + >, + ), + types::retries::Retries, + ::subxt::ext::subxt_core::utils::Yes, + (), + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Scheduler", + "Retries", + ( + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), + ), + [ + 226u8, 140u8, 93u8, 197u8, 220u8, 2u8, 34u8, 112u8, 64u8, 9u8, 110u8, + 98u8, 192u8, 87u8, 138u8, 168u8, 186u8, 72u8, 27u8, 14u8, 187u8, 75u8, + 219u8, 119u8, 211u8, 224u8, 212u8, 196u8, 127u8, 117u8, 69u8, 82u8, + ], + ) + } #[doc = " Lookup from a name to the block number and index of the task."] #[doc = ""] #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] #[doc = " identities."] pub fn lookup_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::lookup::Lookup, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Scheduler", "Lookup", (), @@ -27288,17 +33637,21 @@ pub mod api { pub fn lookup( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::lookup::Param0, + >, types::lookup::Lookup, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Scheduler", "Lookup", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 43u8, 113u8, 203u8, 163u8, 123u8, 137u8, 242u8, 150u8, 151u8, 218u8, 249u8, 222u8, 109u8, 245u8, 242u8, 112u8, 45u8, 96u8, 67u8, 162u8, @@ -27316,10 +33669,10 @@ pub mod api { #[doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::sp_weights::weight_v2::Weight, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Scheduler", "MaximumWeight", [ @@ -27337,8 +33690,10 @@ pub mod api { #[doc = " higher limit under `runtime-benchmarks` feature."] pub fn max_scheduled_per_block( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Scheduler", "MaxScheduledPerBlock", [ @@ -27366,139 +33721,180 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::note_preimage`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Register a preimage on-chain."] + #[doc = ""] + #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] + #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub struct NotePreimage { pub bytes: note_preimage::Bytes, } pub mod note_preimage { use super::runtime_types; - pub type Bytes = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Bytes = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for NotePreimage { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for NotePreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "note_preimage"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unnote_preimage`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Clear an unrequested preimage from the runtime storage."] + #[doc = ""] + #[doc = "If `len` is provided, then it will be a much cheaper operation."] + #[doc = ""] + #[doc = "- `hash`: The hash of the preimage to be removed from the store."] + #[doc = "- `len`: The length of the preimage of `hash`."] pub struct UnnotePreimage { pub hash: unnote_preimage::Hash, } pub mod unnote_preimage { use super::runtime_types; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for UnnotePreimage { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UnnotePreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "unnote_preimage"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::request_preimage`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] + #[doc = ""] + #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] + #[doc = "a user may have paid, and take the control of the preimage out of their hands."] pub struct RequestPreimage { pub hash: request_preimage::Hash, } pub mod request_preimage { use super::runtime_types; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for RequestPreimage { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RequestPreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "request_preimage"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unrequest_preimage`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Clear a previously made request for a preimage."] + #[doc = ""] + #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub struct UnrequestPreimage { pub hash: unrequest_preimage::Hash, } pub mod unrequest_preimage { use super::runtime_types; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for UnrequestPreimage { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UnrequestPreimage { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "unrequest_preimage"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::ensure_updated`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct EnsureUpdated { pub hashes: ensure_updated::Hashes, } pub mod ensure_updated { use super::runtime_types; - pub type Hashes = ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>; + pub type Hashes = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for EnsureUpdated { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for EnsureUpdated { const PALLET: &'static str = "Preimage"; const CALL: &'static str = "ensure_updated"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::note_preimage`]."] + #[doc = "Register a preimage on-chain."] + #[doc = ""] + #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] + #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub fn note_preimage( &self, bytes: types::note_preimage::Bytes, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Preimage", "note_preimage", types::NotePreimage { bytes }, @@ -27509,12 +33905,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unnote_preimage`]."] + #[doc = "Clear an unrequested preimage from the runtime storage."] + #[doc = ""] + #[doc = "If `len` is provided, then it will be a much cheaper operation."] + #[doc = ""] + #[doc = "- `hash`: The hash of the preimage to be removed from the store."] + #[doc = "- `len`: The length of the preimage of `hash`."] pub fn unnote_preimage( &self, hash: types::unnote_preimage::Hash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Preimage", "unnote_preimage", types::UnnotePreimage { hash }, @@ -27526,12 +33927,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::request_preimage`]."] + #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] + #[doc = ""] + #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] + #[doc = "a user may have paid, and take the control of the preimage out of their hands."] pub fn request_preimage( &self, hash: types::request_preimage::Hash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Preimage", "request_preimage", types::RequestPreimage { hash }, @@ -27542,12 +33946,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unrequest_preimage`]."] + #[doc = "Clear a previously made request for a preimage."] + #[doc = ""] + #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub fn unrequest_preimage( &self, hash: types::unrequest_preimage::Hash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Preimage", "unrequest_preimage", types::UnrequestPreimage { hash }, @@ -27559,12 +33966,14 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::ensure_updated`]."] + #[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."] pub fn ensure_updated( &self, hashes: types::ensure_updated::Hashes, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Preimage", "ensure_updated", types::EnsureUpdated { hashes }, @@ -27583,77 +33992,77 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A preimage has been noted."] pub struct Noted { pub hash: noted::Hash, } pub mod noted { use super::runtime_types; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Noted { + impl ::subxt::ext::subxt_core::events::StaticEvent for Noted { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Noted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A preimage has been requested."] pub struct Requested { pub hash: requested::Hash, } pub mod requested { use super::runtime_types; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Requested { + impl ::subxt::ext::subxt_core::events::StaticEvent for Requested { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Requested"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A preimage has ben cleared."] pub struct Cleared { pub hash: cleared::Hash, } pub mod cleared { use super::runtime_types; - pub type Hash = ::subxt_core::utils::H256; + pub type Hash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Cleared { + impl ::subxt::ext::subxt_core::events::StaticEvent for Cleared { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Cleared"; } @@ -27665,18 +34074,18 @@ pub mod api { pub mod status_for { use super::runtime_types; pub type StatusFor = runtime_types::pallet_preimage::OldRequestStatus< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod request_status_for { use super::runtime_types; pub type RequestStatusFor = runtime_types::pallet_preimage::RequestStatus< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, (), >; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod preimage_for { use super::runtime_types; @@ -27684,7 +34093,7 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; pub type Param1 = ::core::primitive::u32; } } @@ -27693,14 +34102,14 @@ pub mod api { #[doc = " The request status of a given hash."] pub fn status_for_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::status_for::StatusFor, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Preimage", "StatusFor", (), @@ -27716,17 +34125,21 @@ pub mod api { pub fn status_for( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::status_for::Param0, + >, types::status_for::StatusFor, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Preimage", "StatusFor", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8, 126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8, @@ -27738,14 +34151,14 @@ pub mod api { #[doc = " The request status of a given hash."] pub fn request_status_for_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::request_status_for::RequestStatusFor, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Preimage", "RequestStatusFor", (), @@ -27760,19 +34173,21 @@ pub mod api { pub fn request_status_for( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::request_status_for::Param0, >, types::request_status_for::RequestStatusFor, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Preimage", "RequestStatusFor", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 60u8, 36u8, 88u8, 121u8, 15u8, 71u8, 245u8, 91u8, 235u8, 58u8, 109u8, 17u8, 249u8, 135u8, 4u8, 132u8, 170u8, 173u8, 142u8, 101u8, 167u8, @@ -27782,14 +34197,14 @@ pub mod api { } pub fn preimage_for_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::preimage_for::PreimageFor, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Preimage", "PreimageFor", (), @@ -27804,17 +34219,21 @@ pub mod api { pub fn preimage_for_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::preimage_for::Param0, + >, types::preimage_for::PreimageFor, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Preimage", "PreimageFor", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, @@ -27827,26 +34246,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::preimage_for::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::preimage_for::Param1, >, ), types::preimage_for::PreimageFor, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Preimage", "PreimageFor", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, @@ -27867,18 +34290,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] #[doc = "\\[kind, timeslot\\]."] @@ -27889,9 +34312,10 @@ pub mod api { pub mod offence { use super::runtime_types; pub type Kind = [::core::primitive::u8; 16usize]; - pub type Timeslot = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Timeslot = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::events::StaticEvent for Offence { + impl ::subxt::ext::subxt_core::events::StaticEvent for Offence { const PALLET: &'static str = "Offences"; const EVENT: &'static str = "Offence"; } @@ -27903,21 +34327,22 @@ pub mod api { pub mod reports { use super::runtime_types; pub type Reports = runtime_types::sp_staking::offence::OffenceDetails< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ( - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::sp_staking::Exposure< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >, ), >; - pub type Param0 = ::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H256; } pub mod concurrent_reports_index { use super::runtime_types; - pub type ConcurrentReportsIndex = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>; + pub type ConcurrentReportsIndex = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >; pub type Param0 = [::core::primitive::u8; 16usize]; pub type Param1 = [::core::primitive::u8]; } @@ -27927,14 +34352,14 @@ pub mod api { #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::reports::Reports, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Offences", "Reports", (), @@ -27949,17 +34374,21 @@ pub mod api { pub fn reports( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::reports::Param0, + >, types::reports::Reports, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Offences", "Reports", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 140u8, 14u8, 199u8, 180u8, 83u8, 5u8, 23u8, 57u8, 241u8, 41u8, 240u8, 35u8, 80u8, 12u8, 115u8, 16u8, 2u8, 15u8, 22u8, 77u8, 25u8, 92u8, @@ -27970,14 +34399,14 @@ pub mod api { #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::concurrent_reports_index::ConcurrentReportsIndex, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Offences", "ConcurrentReportsIndex", (), @@ -27993,19 +34422,21 @@ pub mod api { pub fn concurrent_reports_index_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::concurrent_reports_index::Param0, >, types::concurrent_reports_index::ConcurrentReportsIndex, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Offences", "ConcurrentReportsIndex", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, @@ -28019,26 +34450,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::concurrent_reports_index::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::concurrent_reports_index::Param1, >, ), types::concurrent_reports_index::ConcurrentReportsIndex, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Offences", "ConcurrentReportsIndex", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, @@ -28065,19 +34500,26 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::pause`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Pause a call."] + #[doc = ""] + #[doc = "Can only be called by [`Config::PauseOrigin`]."] + #[doc = "Emits an [`Event::CallPaused`] event on success."] pub struct Pause { pub full_name: pause::FullName, } @@ -28092,24 +34534,31 @@ pub mod api { >, ); } - impl ::subxt_core::blocks::StaticExtrinsic for Pause { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Pause { const PALLET: &'static str = "TxPause"; const CALL: &'static str = "pause"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unpause`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Un-pause a call."] + #[doc = ""] + #[doc = "Can only be called by [`Config::UnpauseOrigin`]."] + #[doc = "Emits an [`Event::CallUnpaused`] event on success."] pub struct Unpause { pub ident: unpause::Ident, } @@ -28124,19 +34573,22 @@ pub mod api { >, ); } - impl ::subxt_core::blocks::StaticExtrinsic for Unpause { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Unpause { const PALLET: &'static str = "TxPause"; const CALL: &'static str = "unpause"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::pause`]."] + #[doc = "Pause a call."] + #[doc = ""] + #[doc = "Can only be called by [`Config::PauseOrigin`]."] + #[doc = "Emits an [`Event::CallPaused`] event on success."] pub fn pause( &self, full_name: types::pause::FullName, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "TxPause", "pause", types::Pause { full_name }, @@ -28147,12 +34599,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unpause`]."] + #[doc = "Un-pause a call."] + #[doc = ""] + #[doc = "Can only be called by [`Config::UnpauseOrigin`]."] + #[doc = "Emits an [`Event::CallUnpaused`] event on success."] pub fn unpause( &self, ident: types::unpause::Ident, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "TxPause", "unpause", types::Unpause { ident }, @@ -28171,18 +34626,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "This pallet, or a specific call is now paused."] pub struct CallPaused { pub full_name: call_paused::FullName, @@ -28198,23 +34653,23 @@ pub mod api { >, ); } - impl ::subxt_core::events::StaticEvent for CallPaused { + impl ::subxt::ext::subxt_core::events::StaticEvent for CallPaused { const PALLET: &'static str = "TxPause"; const EVENT: &'static str = "CallPaused"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "This pallet, or a specific call is now unpaused."] pub struct CallUnpaused { pub full_name: call_unpaused::FullName, @@ -28230,7 +34685,7 @@ pub mod api { >, ); } - impl ::subxt_core::events::StaticEvent for CallUnpaused { + impl ::subxt::ext::subxt_core::events::StaticEvent for CallUnpaused { const PALLET: &'static str = "TxPause"; const EVENT: &'static str = "CallUnpaused"; } @@ -28255,14 +34710,14 @@ pub mod api { #[doc = " The set of calls that are explicitly paused."] pub fn paused_calls_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::paused_calls::PausedCalls, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "TxPause", "PausedCalls", (), @@ -28277,17 +34732,21 @@ pub mod api { pub fn paused_calls_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::paused_calls::Param0, + >, types::paused_calls::PausedCalls, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "TxPause", "PausedCalls", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 36u8, 9u8, 29u8, 154u8, 39u8, 47u8, 237u8, 97u8, 176u8, 241u8, 153u8, 131u8, 20u8, 16u8, 73u8, 63u8, 27u8, 21u8, 107u8, 5u8, 147u8, 198u8, @@ -28300,26 +34759,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::paused_calls::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::paused_calls::Param1, >, ), types::paused_calls::PausedCalls, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "TxPause", "PausedCalls", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 36u8, 9u8, 29u8, 154u8, 39u8, 47u8, 237u8, 97u8, 176u8, 241u8, 153u8, @@ -28339,8 +34802,10 @@ pub mod api { #[doc = " TOO LONG NAMES WILL BE TREATED AS PAUSED."] pub fn max_name_len( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "TxPause", "MaxNameLen", [ @@ -28368,19 +34833,25 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::heartbeat`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "## Complexity:"] + #[doc = "- `O(K)` where K is length of `Keys` (heartbeat.validators_len)"] + #[doc = " - `O(K)`: decoding of length `K`"] pub struct Heartbeat { pub heartbeat: heartbeat::Heartbeat, pub signature: heartbeat::Signature, @@ -28392,27 +34863,29 @@ pub mod api { pub type Signature = runtime_types::pallet_im_online::sr25519::app_sr25519::Signature; } - impl ::subxt_core::blocks::StaticExtrinsic for Heartbeat { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Heartbeat { const PALLET: &'static str = "ImOnline"; const CALL: &'static str = "heartbeat"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::heartbeat`]."] + #[doc = "## Complexity:"] + #[doc = "- `O(K)` where K is length of `Keys` (heartbeat.validators_len)"] + #[doc = " - `O(K)`: decoding of length `K`"] pub fn heartbeat( &self, heartbeat: types::heartbeat::Heartbeat, signature: types::heartbeat::Signature, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "ImOnline", "heartbeat", types::Heartbeat { heartbeat, signature }, [ - 104u8, 32u8, 33u8, 190u8, 92u8, 252u8, 37u8, 90u8, 116u8, 64u8, 13u8, - 87u8, 210u8, 182u8, 139u8, 111u8, 168u8, 61u8, 130u8, 57u8, 83u8, 16u8, - 52u8, 84u8, 97u8, 148u8, 243u8, 59u8, 194u8, 211u8, 14u8, 169u8, + 86u8, 12u8, 154u8, 158u8, 95u8, 229u8, 80u8, 51u8, 84u8, 204u8, 197u8, + 113u8, 87u8, 57u8, 93u8, 200u8, 154u8, 111u8, 147u8, 246u8, 193u8, + 192u8, 4u8, 178u8, 115u8, 104u8, 42u8, 251u8, 104u8, 152u8, 17u8, 41u8, ], ) } @@ -28423,18 +34896,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new heartbeat was received from `AuthorityId`."] pub struct HeartbeatReceived { pub authority_id: heartbeat_received::AuthorityId, @@ -28444,57 +34917,57 @@ pub mod api { pub type AuthorityId = runtime_types::pallet_im_online::sr25519::app_sr25519::Public; } - impl ::subxt_core::events::StaticEvent for HeartbeatReceived { + impl ::subxt::ext::subxt_core::events::StaticEvent for HeartbeatReceived { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "HeartbeatReceived"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "At the end of the session, no offence was committed."] pub struct AllGood; - impl ::subxt_core::events::StaticEvent for AllGood { + impl ::subxt::ext::subxt_core::events::StaticEvent for AllGood { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "AllGood"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "At the end of the session, at least one validator was found to be offline."] pub struct SomeOffline { pub offline: some_offline::Offline, } pub mod some_offline { use super::runtime_types; - pub type Offline = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + pub type Offline = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::sp_staking::Exposure< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >, )>; } - impl ::subxt_core::events::StaticEvent for SomeOffline { + impl ::subxt::ext::subxt_core::events::StaticEvent for SomeOffline { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "SomeOffline"; } @@ -28524,7 +34997,7 @@ pub mod api { use super::runtime_types; pub type AuthoredBlocks = ::core::primitive::u32; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -28542,14 +35015,14 @@ pub mod api { #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] pub fn heartbeat_after( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::heartbeat_after::HeartbeatAfter, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "HeartbeatAfter", (), @@ -28563,36 +35036,36 @@ pub mod api { #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::keys::Keys, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "Keys", (), [ - 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, - 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, - 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, - 29u8, 218u8, + 35u8, 71u8, 73u8, 255u8, 160u8, 250u8, 38u8, 205u8, 32u8, 139u8, 236u8, + 83u8, 194u8, 12u8, 20u8, 221u8, 114u8, 94u8, 196u8, 246u8, 136u8, + 175u8, 70u8, 98u8, 91u8, 50u8, 236u8, 131u8, 131u8, 146u8, 150u8, + 192u8, ], ) } #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::received_heartbeats::ReceivedHeartbeats, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "ReceivedHeartbeats", (), @@ -28607,19 +35080,21 @@ pub mod api { pub fn received_heartbeats_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::received_heartbeats::Param0, >, types::received_heartbeats::ReceivedHeartbeats, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "ReceivedHeartbeats", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, @@ -28632,26 +35107,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::received_heartbeats::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::received_heartbeats::Param1, >, ), types::received_heartbeats::ReceivedHeartbeats, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "ReceivedHeartbeats", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, @@ -28664,14 +35143,14 @@ pub mod api { #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::authored_blocks::AuthoredBlocks, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "AuthoredBlocks", (), @@ -28688,19 +35167,21 @@ pub mod api { pub fn authored_blocks_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::authored_blocks::Param0, >, types::authored_blocks::AuthoredBlocks, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "AuthoredBlocks", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, @@ -28715,26 +35196,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::authored_blocks::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::authored_blocks::Param1, >, ), types::authored_blocks::AuthoredBlocks, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "ImOnline", "AuthoredBlocks", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, @@ -28756,8 +35241,10 @@ pub mod api { #[doc = " multiple pallets send unsigned transactions."] pub fn unsigned_priority( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "ImOnline", "UnsignedPriority", [ @@ -28785,119 +35272,184 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_registrar`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct AddRegistrar { pub account: add_registrar::Account, } pub mod add_registrar { use super::runtime_types; - pub type Account = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Account = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for AddRegistrar { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AddRegistrar { const PALLET: &'static str = "Identity"; const CALL: &'static str = "add_registrar"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_identity`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct SetIdentity { - pub info: ::subxt_core::alloc::boxed::Box, + pub info: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod set_identity { use super::runtime_types; pub type Info = runtime_types::pallet_identity::legacy::IdentityInfo; } - impl ::subxt_core::blocks::StaticExtrinsic for SetIdentity { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetIdentity { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_identity"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_subs`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct SetSubs { pub subs: set_subs::Subs, } pub mod set_subs { use super::runtime_types; - pub type Subs = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + pub type Subs = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::pallet_identity::types::Data, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetSubs { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetSubs { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_subs"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::clear_identity`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct ClearIdentity; - impl ::subxt_core::blocks::StaticExtrinsic for ClearIdentity { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClearIdentity { const PALLET: &'static str = "Identity"; const CALL: &'static str = "clear_identity"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::request_judgement`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Request a judgement from a registrar."] + #[doc = ""] + #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] + #[doc = "given."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] + #[doc = "registered identity."] + #[doc = ""] + #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] + #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] + #[doc = ""] + #[doc = "```nocompile"] + #[doc = "Self::registrars().get(reg_index).unwrap().fee"] + #[doc = "```"] + #[doc = ""] + #[doc = "Emits `JudgementRequested` if successful."] pub struct RequestJudgement { #[codec(compact)] pub reg_index: request_judgement::RegIndex, @@ -28909,24 +35461,37 @@ pub mod api { pub type RegIndex = ::core::primitive::u32; pub type MaxFee = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for RequestJudgement { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RequestJudgement { const PALLET: &'static str = "Identity"; const CALL: &'static str = "request_judgement"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_request`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct CancelRequest { pub reg_index: cancel_request::RegIndex, } @@ -28934,24 +35499,34 @@ pub mod api { use super::runtime_types; pub type RegIndex = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelRequest { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelRequest { const PALLET: &'static str = "Identity"; const CALL: &'static str = "cancel_request"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_fee`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct SetFee { #[codec(compact)] pub index: set_fee::Index, @@ -28963,24 +35538,34 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Fee = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for SetFee { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetFee { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_fee"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_account_id`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct SetAccountId { #[codec(compact)] pub index: set_account_id::Index, @@ -28989,29 +35574,39 @@ pub mod api { pub mod set_account_id { use super::runtime_types; pub type Index = ::core::primitive::u32; - pub type New = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type New = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetAccountId { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetAccountId { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_account_id"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_fields`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct SetFields { #[codec(compact)] pub index: set_fields::Index, @@ -29022,24 +35617,42 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Fields = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for SetFields { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetFields { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_fields"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::provide_judgement`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct ProvideJudgement { #[codec(compact)] pub reg_index: provide_judgement::RegIndex, @@ -29050,167 +35663,229 @@ pub mod api { pub mod provide_judgement { use super::runtime_types; pub type RegIndex = ::core::primitive::u32; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Judgement = runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>; - pub type Identity = ::subxt_core::utils::H256; + pub type Identity = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for ProvideJudgement { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ProvideJudgement { const PALLET: &'static str = "Identity"; const CALL: &'static str = "provide_judgement"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::kill_identity`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct KillIdentity { pub target: kill_identity::Target, } pub mod kill_identity { use super::runtime_types; - pub type Target = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Target = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for KillIdentity { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for KillIdentity { const PALLET: &'static str = "Identity"; const CALL: &'static str = "kill_identity"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_sub`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Add the given account to the sender's subs."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] pub struct AddSub { pub sub: add_sub::Sub, pub data: add_sub::Data, } pub mod add_sub { use super::runtime_types; - pub type Sub = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Sub = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Data = runtime_types::pallet_identity::types::Data; } - impl ::subxt_core::blocks::StaticExtrinsic for AddSub { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AddSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "add_sub"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::rename_sub`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Alter the associated name of the given sub-account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] pub struct RenameSub { pub sub: rename_sub::Sub, pub data: rename_sub::Data, } pub mod rename_sub { use super::runtime_types; - pub type Sub = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Sub = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type Data = runtime_types::pallet_identity::types::Data; } - impl ::subxt_core::blocks::StaticExtrinsic for RenameSub { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RenameSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "rename_sub"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_sub`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove the given account from the sender's subs."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] pub struct RemoveSub { pub sub: remove_sub::Sub, } pub mod remove_sub { use super::runtime_types; - pub type Sub = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Sub = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveSub { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "remove_sub"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::quit_sub`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove the sender as a sub-account."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender (*not* the original depositor)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "super-identity."] + #[doc = ""] + #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] + #[doc = "controller of an account is maliciously registered as a sub-account."] pub struct QuitSub; - impl ::subxt_core::blocks::StaticExtrinsic for QuitSub { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for QuitSub { const PALLET: &'static str = "Identity"; const CALL: &'static str = "quit_sub"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_username_authority`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct AddUsernameAuthority { pub authority: add_username_authority::Authority, pub suffix: add_username_authority::Suffix, @@ -29218,59 +35893,76 @@ pub mod api { } pub mod add_username_authority { use super::runtime_types; - pub type Authority = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Authority = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Suffix = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Suffix = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Allocation = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for AddUsernameAuthority { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AddUsernameAuthority { const PALLET: &'static str = "Identity"; const CALL: &'static str = "add_username_authority"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_username_authority`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove `authority` from the username authorities."] pub struct RemoveUsernameAuthority { pub authority: remove_username_authority::Authority, } pub mod remove_username_authority { use super::runtime_types; - pub type Authority = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Authority = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveUsernameAuthority { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveUsernameAuthority { const PALLET: &'static str = "Identity"; const CALL: &'static str = "remove_username_authority"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_username_for`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`."] pub struct SetUsernameFor { pub who: set_username_for::Who, pub username: set_username_for::Username, @@ -29278,32 +35970,38 @@ pub mod api { } pub mod set_username_for { use super::runtime_types; - pub type Who = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Who = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Username = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Username = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Signature = ::core::option::Option; } - impl ::subxt_core::blocks::StaticExtrinsic for SetUsernameFor { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetUsernameFor { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_username_for"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::accept_username`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Accept a given username that an `authority` granted. The call must include the full"] + #[doc = "username, as in `username.suffix`."] pub struct AcceptUsername { pub username: accept_username::Username, } @@ -29313,24 +36011,30 @@ pub mod api { ::core::primitive::u8, >; } - impl ::subxt_core::blocks::StaticExtrinsic for AcceptUsername { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AcceptUsername { const PALLET: &'static str = "Identity"; const CALL: &'static str = "accept_username"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_expired_approval`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`."] pub struct RemoveExpiredApproval { pub username: remove_expired_approval::Username, } @@ -29340,24 +36044,28 @@ pub mod api { ::core::primitive::u8, >; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveExpiredApproval { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveExpiredApproval { const PALLET: &'static str = "Identity"; const CALL: &'static str = "remove_expired_approval"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_primary_username`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a given username as the primary. The username should include the suffix."] pub struct SetPrimaryUsername { pub username: set_primary_username::Username, } @@ -29367,24 +36075,29 @@ pub mod api { ::core::primitive::u8, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetPrimaryUsername { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetPrimaryUsername { const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_primary_username"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_dangling_username`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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`."] pub struct RemoveDanglingUsername { pub username: remove_dangling_username::Username, } @@ -29394,19 +36107,25 @@ pub mod api { ::core::primitive::u8, >; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveDanglingUsername { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveDanglingUsername { const PALLET: &'static str = "Identity"; const CALL: &'static str = "remove_dangling_username"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::add_registrar`]."] + #[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."] pub fn add_registrar( &self, account: types::add_registrar::Account, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "add_registrar", types::AddRegistrar { account }, @@ -29417,15 +36136,26 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_identity`]."] + #[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."] pub fn set_identity( &self, info: types::set_identity::Info, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "set_identity", - types::SetIdentity { info: ::subxt_core::alloc::boxed::Box::new(info) }, + types::SetIdentity { + info: ::subxt::ext::subxt_core::alloc::boxed::Box::new(info), + }, [ 18u8, 86u8, 67u8, 10u8, 116u8, 254u8, 94u8, 95u8, 166u8, 30u8, 204u8, 189u8, 174u8, 70u8, 191u8, 255u8, 149u8, 93u8, 156u8, 120u8, 105u8, @@ -29434,12 +36164,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_subs`]."] + #[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."] pub fn set_subs( &self, subs: types::set_subs::Subs, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "set_subs", types::SetSubs { subs }, @@ -29451,11 +36189,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clear_identity`]."] + #[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."] pub fn clear_identity( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "clear_identity", types::ClearIdentity {}, @@ -29467,13 +36212,28 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::request_judgement`]."] + #[doc = "Request a judgement from a registrar."] + #[doc = ""] + #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] + #[doc = "given."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] + #[doc = "registered identity."] + #[doc = ""] + #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] + #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] + #[doc = ""] + #[doc = "```nocompile"] + #[doc = "Self::registrars().get(reg_index).unwrap().fee"] + #[doc = "```"] + #[doc = ""] + #[doc = "Emits `JudgementRequested` if successful."] pub fn request_judgement( &self, reg_index: types::request_judgement::RegIndex, max_fee: types::request_judgement::MaxFee, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "request_judgement", types::RequestJudgement { reg_index, max_fee }, @@ -29484,12 +36244,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_request`]."] + #[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."] pub fn cancel_request( &self, reg_index: types::cancel_request::RegIndex, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "cancel_request", types::CancelRequest { reg_index }, @@ -29501,13 +36270,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_fee`]."] + #[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."] pub fn set_fee( &self, index: types::set_fee::Index, fee: types::set_fee::Fee, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "set_fee", types::SetFee { index, fee }, @@ -29519,13 +36294,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_account_id`]."] + #[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."] pub fn set_account_id( &self, index: types::set_account_id::Index, new: types::set_account_id::New, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "set_account_id", types::SetAccountId { index, new }, @@ -29537,13 +36318,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_fields`]."] + #[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."] pub fn set_fields( &self, index: types::set_fields::Index, fields: types::set_fields::Fields, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "set_fields", types::SetFields { index, fields }, @@ -29555,15 +36342,29 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::provide_judgement`]."] + #[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."] pub fn provide_judgement( &self, reg_index: types::provide_judgement::RegIndex, target: types::provide_judgement::Target, judgement: types::provide_judgement::Judgement, identity: types::provide_judgement::Identity, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "provide_judgement", types::ProvideJudgement { reg_index, target, judgement, identity }, @@ -29575,12 +36376,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kill_identity`]."] + #[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."] pub fn kill_identity( &self, target: types::kill_identity::Target, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "kill_identity", types::KillIdentity { target }, @@ -29591,13 +36403,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::add_sub`]."] + #[doc = "Add the given account to the sender's subs."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] pub fn add_sub( &self, sub: types::add_sub::Sub, data: types::add_sub::Data, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "add_sub", types::AddSub { sub, data }, @@ -29608,13 +36426,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::rename_sub`]."] + #[doc = "Alter the associated name of the given sub-account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] pub fn rename_sub( &self, sub: types::rename_sub::Sub, data: types::rename_sub::Data, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "rename_sub", types::RenameSub { sub, data }, @@ -29625,12 +36446,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_sub`]."] + #[doc = "Remove the given account from the sender's subs."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "sub identity of `sub`."] pub fn remove_sub( &self, sub: types::remove_sub::Sub, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "remove_sub", types::RemoveSub { sub }, @@ -29642,9 +36469,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::quit_sub`]."] - pub fn quit_sub(&self) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + #[doc = "Remove the sender as a sub-account."] + #[doc = ""] + #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] + #[doc = "to the sender (*not* the original depositor)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] + #[doc = "super-identity."] + #[doc = ""] + #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] + #[doc = "controller of an account is maliciously registered as a sub-account."] + pub fn quit_sub( + &self, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "quit_sub", types::QuitSub {}, @@ -29656,14 +36494,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::add_username_authority`]."] + #[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."] pub fn add_username_authority( &self, authority: types::add_username_authority::Authority, suffix: types::add_username_authority::Suffix, allocation: types::add_username_authority::Allocation, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "add_username_authority", types::AddUsernameAuthority { authority, suffix, allocation }, @@ -29674,12 +36516,14 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_username_authority`]."] + #[doc = "Remove `authority` from the username authorities."] pub fn remove_username_authority( &self, authority: types::remove_username_authority::Authority, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::RemoveUsernameAuthority, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "remove_username_authority", types::RemoveUsernameAuthority { authority }, @@ -29690,30 +36534,40 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_username_for`]."] + #[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`."] pub fn set_username_for( &self, who: types::set_username_for::Who, username: types::set_username_for::Username, signature: types::set_username_for::Signature, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "set_username_for", types::SetUsernameFor { who, username, signature }, [ - 2u8, 132u8, 48u8, 100u8, 26u8, 161u8, 176u8, 128u8, 201u8, 9u8, 239u8, - 116u8, 188u8, 205u8, 2u8, 24u8, 91u8, 91u8, 199u8, 151u8, 248u8, 47u8, - 250u8, 83u8, 216u8, 218u8, 153u8, 119u8, 34u8, 47u8, 33u8, 219u8, + 119u8, 226u8, 95u8, 20u8, 246u8, 247u8, 166u8, 193u8, 29u8, 99u8, + 186u8, 184u8, 70u8, 45u8, 77u8, 247u8, 11u8, 153u8, 26u8, 121u8, 243u8, + 250u8, 188u8, 85u8, 210u8, 43u8, 4u8, 220u8, 173u8, 191u8, 106u8, + 221u8, ], ) } - #[doc = "See [`Pallet::accept_username`]."] + #[doc = "Accept a given username that an `authority` granted. The call must include the full"] + #[doc = "username, as in `username.suffix`."] pub fn accept_username( &self, username: types::accept_username::Username, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "accept_username", types::AcceptUsername { username }, @@ -29724,12 +36578,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_expired_approval`]."] + #[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`."] pub fn remove_expired_approval( &self, username: types::remove_expired_approval::Username, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::RemoveExpiredApproval, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "remove_expired_approval", types::RemoveExpiredApproval { username }, @@ -29740,12 +36598,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_primary_username`]."] + #[doc = "Set a given username as the primary. The username should include the suffix."] pub fn set_primary_username( &self, username: types::set_primary_username::Username, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "set_primary_username", types::SetPrimaryUsername { username }, @@ -29756,12 +36615,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_dangling_username`]."] + #[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`."] pub fn remove_dangling_username( &self, username: types::remove_dangling_username::Username, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::RemoveDanglingUsername, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Identity", "remove_dangling_username", types::RemoveDanglingUsername { username }, @@ -29779,43 +36641,43 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { pub who: identity_set::Who, } pub mod identity_set { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for IdentitySet { + impl ::subxt::ext::subxt_core::events::StaticEvent for IdentitySet { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentitySet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { pub who: identity_cleared::Who, @@ -29823,26 +36685,26 @@ pub mod api { } pub mod identity_cleared { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Deposit = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for IdentityCleared { + impl ::subxt::ext::subxt_core::events::StaticEvent for IdentityCleared { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityCleared"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { pub who: identity_killed::Who, @@ -29850,26 +36712,26 @@ pub mod api { } pub mod identity_killed { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Deposit = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for IdentityKilled { + impl ::subxt::ext::subxt_core::events::StaticEvent for IdentityKilled { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityKilled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { pub who: judgement_requested::Who, @@ -29877,26 +36739,26 @@ pub mod api { } pub mod judgement_requested { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for JudgementRequested { + impl ::subxt::ext::subxt_core::events::StaticEvent for JudgementRequested { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementRequested"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { pub who: judgement_unrequested::Who, @@ -29904,26 +36766,26 @@ pub mod api { } pub mod judgement_unrequested { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for JudgementUnrequested { + impl ::subxt::ext::subxt_core::events::StaticEvent for JudgementUnrequested { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementUnrequested"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { pub target: judgement_given::Target, @@ -29931,26 +36793,26 @@ pub mod api { } pub mod judgement_given { use super::runtime_types; - pub type Target = ::subxt_core::utils::AccountId32; + pub type Target = ::subxt::ext::subxt_core::utils::AccountId32; pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for JudgementGiven { + impl ::subxt::ext::subxt_core::events::StaticEvent for JudgementGiven { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementGiven"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A registrar was added."] pub struct RegistrarAdded { pub registrar_index: registrar_added::RegistrarIndex, @@ -29959,23 +36821,23 @@ pub mod api { use super::runtime_types; pub type RegistrarIndex = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for RegistrarAdded { + impl ::subxt::ext::subxt_core::events::StaticEvent for RegistrarAdded { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "RegistrarAdded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { pub sub: sub_identity_added::Sub, @@ -29984,27 +36846,27 @@ pub mod api { } pub mod sub_identity_added { use super::runtime_types; - pub type Sub = ::subxt_core::utils::AccountId32; - pub type Main = ::subxt_core::utils::AccountId32; + pub type Sub = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Main = ::subxt::ext::subxt_core::utils::AccountId32; pub type Deposit = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for SubIdentityAdded { + impl ::subxt::ext::subxt_core::events::StaticEvent for SubIdentityAdded { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityAdded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { pub sub: sub_identity_removed::Sub, @@ -30013,27 +36875,27 @@ pub mod api { } pub mod sub_identity_removed { use super::runtime_types; - pub type Sub = ::subxt_core::utils::AccountId32; - pub type Main = ::subxt_core::utils::AccountId32; + pub type Sub = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Main = ::subxt::ext::subxt_core::utils::AccountId32; pub type Deposit = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for SubIdentityRemoved { + impl ::subxt::ext::subxt_core::events::StaticEvent for SubIdentityRemoved { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRemoved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { @@ -30043,77 +36905,77 @@ pub mod api { } pub mod sub_identity_revoked { use super::runtime_types; - pub type Sub = ::subxt_core::utils::AccountId32; - pub type Main = ::subxt_core::utils::AccountId32; + pub type Sub = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Main = ::subxt::ext::subxt_core::utils::AccountId32; pub type Deposit = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for SubIdentityRevoked { + impl ::subxt::ext::subxt_core::events::StaticEvent for SubIdentityRevoked { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRevoked"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A username authority was added."] pub struct AuthorityAdded { pub authority: authority_added::Authority, } pub mod authority_added { use super::runtime_types; - pub type Authority = ::subxt_core::utils::AccountId32; + pub type Authority = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for AuthorityAdded { + impl ::subxt::ext::subxt_core::events::StaticEvent for AuthorityAdded { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "AuthorityAdded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A username authority was removed."] pub struct AuthorityRemoved { pub authority: authority_removed::Authority, } pub mod authority_removed { use super::runtime_types; - pub type Authority = ::subxt_core::utils::AccountId32; + pub type Authority = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for AuthorityRemoved { + impl ::subxt::ext::subxt_core::events::StaticEvent for AuthorityRemoved { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "AuthorityRemoved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A username was set for `who`."] pub struct UsernameSet { pub who: username_set::Who, @@ -30121,28 +36983,28 @@ pub mod api { } pub mod username_set { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; } - impl ::subxt_core::events::StaticEvent for UsernameSet { + impl ::subxt::ext::subxt_core::events::StaticEvent for UsernameSet { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "UsernameSet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A username was queued, but `who` must accept it prior to `expiration`."] pub struct UsernameQueued { pub who: username_queued::Who, @@ -30151,54 +37013,54 @@ pub mod api { } pub mod username_queued { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; pub type Expiration = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for UsernameQueued { + impl ::subxt::ext::subxt_core::events::StaticEvent for UsernameQueued { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "UsernameQueued"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A queued username passed its expiration without being claimed and was removed."] pub struct PreapprovalExpired { pub whose: preapproval_expired::Whose, } pub mod preapproval_expired { use super::runtime_types; - pub type Whose = ::subxt_core::utils::AccountId32; + pub type Whose = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for PreapprovalExpired { + impl ::subxt::ext::subxt_core::events::StaticEvent for PreapprovalExpired { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "PreapprovalExpired"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A username was set as a primary and can be looked up from `who`."] pub struct PrimaryUsernameSet { pub who: primary_username_set::Who, @@ -30206,28 +37068,28 @@ pub mod api { } pub mod primary_username_set { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; } - impl ::subxt_core::events::StaticEvent for PrimaryUsernameSet { + impl ::subxt::ext::subxt_core::events::StaticEvent for PrimaryUsernameSet { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "PrimaryUsernameSet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A dangling username (as in, a username corresponding to an account that has removed its"] #[doc = "identity) has been removed."] pub struct DanglingUsernameRemoved { @@ -30236,12 +37098,12 @@ pub mod api { } pub mod dangling_username_removed { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; } - impl ::subxt_core::events::StaticEvent for DanglingUsernameRemoved { + impl ::subxt::ext::subxt_core::events::StaticEvent for DanglingUsernameRemoved { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "DanglingUsernameRemoved"; } @@ -30263,25 +37125,25 @@ pub mod api { >, >, ); - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod super_of { use super::runtime_types; pub type SuperOf = ( - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::pallet_identity::types::Data, ); - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod subs_of { use super::runtime_types; pub type SubsOf = ( ::core::primitive::u128, runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, ); - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod registrars { use super::runtime_types; @@ -30290,7 +37152,7 @@ pub mod api { ::core::option::Option< runtime_types::pallet_identity::types::RegistrarInfo< ::core::primitive::u128, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64, >, >, @@ -30304,11 +37166,11 @@ pub mod api { ::core::primitive::u8, >, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod account_of_username { use super::runtime_types; - pub type AccountOfUsername = ::subxt_core::utils::AccountId32; + pub type AccountOfUsername = ::subxt::ext::subxt_core::utils::AccountId32; pub type Param0 = runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; @@ -30316,7 +37178,7 @@ pub mod api { pub mod pending_usernames { use super::runtime_types; pub type PendingUsernames = - (::subxt_core::utils::AccountId32, ::core::primitive::u64); + (::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64); pub type Param0 = runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; @@ -30330,14 +37192,14 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::identity_of::IdentityOf, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "IdentityOf", (), @@ -30355,17 +37217,21 @@ pub mod api { pub fn identity_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::identity_of::Param0, + >, types::identity_of::IdentityOf, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "IdentityOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 0u8, 73u8, 213u8, 52u8, 49u8, 235u8, 238u8, 43u8, 119u8, 12u8, 35u8, 162u8, 230u8, 24u8, 246u8, 200u8, 44u8, 254u8, 13u8, 84u8, 10u8, 27u8, @@ -30377,14 +37243,14 @@ pub mod api { #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::super_of::SuperOf, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "SuperOf", (), @@ -30400,17 +37266,21 @@ pub mod api { pub fn super_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::super_of::Param0, + >, types::super_of::SuperOf, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "SuperOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 84u8, 72u8, 64u8, 14u8, 56u8, 9u8, 143u8, 100u8, 141u8, 163u8, 36u8, 55u8, 38u8, 254u8, 164u8, 17u8, 3u8, 110u8, 88u8, 175u8, 161u8, 65u8, @@ -30425,14 +37295,14 @@ pub mod api { #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::subs_of::SubsOf, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "SubsOf", (), @@ -30452,17 +37322,21 @@ pub mod api { pub fn subs_of( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::subs_of::Param0, + >, types::subs_of::SubsOf, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "SubsOf", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 164u8, 140u8, 52u8, 123u8, 220u8, 118u8, 147u8, 3u8, 67u8, 22u8, 191u8, 18u8, 186u8, 21u8, 154u8, 8u8, 205u8, 224u8, 163u8, 173u8, 174u8, @@ -30477,14 +37351,14 @@ pub mod api { #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::registrars::Registrars, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "Registrars", (), @@ -30499,14 +37373,14 @@ pub mod api { #[doc = " A map of the accounts who are authorized to grant usernames."] pub fn username_authorities_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::username_authorities::UsernameAuthorities, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "UsernameAuthorities", (), @@ -30521,19 +37395,21 @@ pub mod api { pub fn username_authorities( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::username_authorities::Param0, >, types::username_authorities::UsernameAuthorities, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "UsernameAuthorities", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 89u8, 102u8, 60u8, 184u8, 127u8, 244u8, 3u8, 61u8, 209u8, 78u8, 178u8, 44u8, 159u8, 27u8, 7u8, 0u8, 22u8, 116u8, 42u8, 240u8, 130u8, 93u8, @@ -30548,14 +37424,14 @@ pub mod api { #[doc = " primary username."] pub fn account_of_username_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::account_of_username::AccountOfUsername, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "AccountOfUsername", (), @@ -30575,19 +37451,21 @@ pub mod api { pub fn account_of_username( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::account_of_username::Param0, >, types::account_of_username::AccountOfUsername, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "AccountOfUsername", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 131u8, 96u8, 207u8, 217u8, 223u8, 54u8, 51u8, 156u8, 8u8, 238u8, 134u8, 57u8, 42u8, 110u8, 180u8, 107u8, 30u8, 109u8, 162u8, 110u8, 178u8, @@ -30604,14 +37482,14 @@ pub mod api { #[doc = " First tuple item is the account and second is the acceptance deadline."] pub fn pending_usernames_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::pending_usernames::PendingUsernames, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "PendingUsernames", (), @@ -30632,19 +37510,21 @@ pub mod api { pub fn pending_usernames( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::pending_usernames::Param0, >, types::pending_usernames::PendingUsernames, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Identity", "PendingUsernames", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 223u8, 53u8, 146u8, 168u8, 52u8, 5u8, 197u8, 129u8, 163u8, 221u8, 112u8, 242u8, 120u8, 199u8, 172u8, 187u8, 53u8, 49u8, 11u8, 175u8, @@ -30662,8 +37542,10 @@ pub mod api { #[doc = " The amount held on deposit for a registered identity."] pub fn basic_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "BasicDeposit", [ @@ -30676,8 +37558,10 @@ pub mod api { #[doc = " The amount held on deposit per encoded byte for a registered identity."] pub fn byte_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "ByteDeposit", [ @@ -30692,8 +37576,10 @@ pub mod api { #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "SubAccountDeposit", [ @@ -30706,8 +37592,10 @@ pub mod api { #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "MaxSubAccounts", [ @@ -30718,12 +37606,14 @@ pub mod api { ], ) } - #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] + #[doc = " Maximum number of registrars allowed in the system. Needed to bound the complexity"] #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "MaxRegistrars", [ @@ -30737,8 +37627,10 @@ pub mod api { #[doc = " The number of blocks within which a username grant must be accepted."] pub fn pending_username_expiration( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u64> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u64, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "PendingUsernameExpiration", [ @@ -30752,8 +37644,10 @@ pub mod api { #[doc = " The maximum length of a suffix."] pub fn max_suffix_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "MaxSuffixLength", [ @@ -30767,8 +37661,10 @@ pub mod api { #[doc = " The maximum length of a username, including its suffix and any system-added delimiters."] pub fn max_username_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Identity", "MaxUsernameLength", [ @@ -30796,156 +37692,244 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::batch`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Send a batch of dispatch calls."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] + #[doc = ""] + #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] + #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] + #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] + #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] + #[doc = "event is deposited."] pub struct Batch { pub calls: batch::Calls, } pub mod batch { use super::runtime_types; - pub type Calls = ::subxt_core::alloc::vec::Vec< + pub type Calls = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_testnet_runtime::RuntimeCall, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Batch { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Batch { const PALLET: &'static str = "Utility"; const CALL: &'static str = "batch"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::as_derivative`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Send a call through an indexed pseudonym of the sender."] + #[doc = ""] + #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] + #[doc = "use the same filter as the origin of this call."] + #[doc = ""] + #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] + #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] + #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] + #[doc = "in the Multisig pallet instead."] + #[doc = ""] + #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] pub struct AsDerivative { pub index: as_derivative::Index, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod as_derivative { use super::runtime_types; pub type Index = ::core::primitive::u16; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for AsDerivative { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AsDerivative { const PALLET: &'static str = "Utility"; const CALL: &'static str = "as_derivative"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::batch_all`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Send a batch of dispatch calls and atomically execute them."] + #[doc = "The whole transaction will rollback and fail if any of the calls failed."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] pub struct BatchAll { pub calls: batch_all::Calls, } pub mod batch_all { use super::runtime_types; - pub type Calls = ::subxt_core::alloc::vec::Vec< + pub type Calls = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_testnet_runtime::RuntimeCall, >; } - impl ::subxt_core::blocks::StaticExtrinsic for BatchAll { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for BatchAll { const PALLET: &'static str = "Utility"; const CALL: &'static str = "batch_all"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::dispatch_as`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Dispatches a function call with a provided origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub struct DispatchAs { - pub as_origin: ::subxt_core::alloc::boxed::Box, - pub call: ::subxt_core::alloc::boxed::Box, + pub as_origin: + ::subxt::ext::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod dispatch_as { use super::runtime_types; pub type AsOrigin = runtime_types::tangle_testnet_runtime::OriginCaller; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for DispatchAs { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for DispatchAs { const PALLET: &'static str = "Utility"; const CALL: &'static str = "dispatch_as"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_batch`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Send a batch of dispatch calls."] + #[doc = "Unlike `batch`, it allows errors and won't interrupt."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] pub struct ForceBatch { pub calls: force_batch::Calls, } pub mod force_batch { use super::runtime_types; - pub type Calls = ::subxt_core::alloc::vec::Vec< + pub type Calls = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_testnet_runtime::RuntimeCall, >; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceBatch { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceBatch { const PALLET: &'static str = "Utility"; const CALL: &'static str = "force_batch"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::with_weight`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Dispatch a function call with a specified weight."] + #[doc = ""] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Root origin to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] pub struct WithWeight { - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, pub weight: with_weight::Weight, } pub mod with_weight { @@ -30953,120 +37937,184 @@ pub mod api { pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } - impl ::subxt_core::blocks::StaticExtrinsic for WithWeight { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for WithWeight { const PALLET: &'static str = "Utility"; const CALL: &'static str = "with_weight"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::batch`]."] + #[doc = "Send a batch of dispatch calls."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] + #[doc = ""] + #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] + #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] + #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] + #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] + #[doc = "event is deposited."] pub fn batch( &self, calls: types::batch::Calls, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Utility", "batch", types::Batch { calls }, [ - 140u8, 125u8, 137u8, 17u8, 92u8, 49u8, 42u8, 87u8, 241u8, 3u8, 158u8, - 123u8, 197u8, 253u8, 120u8, 0u8, 156u8, 171u8, 19u8, 57u8, 191u8, - 220u8, 130u8, 128u8, 48u8, 32u8, 34u8, 47u8, 109u8, 38u8, 156u8, 73u8, + 133u8, 31u8, 37u8, 18u8, 114u8, 74u8, 93u8, 227u8, 174u8, 121u8, 85u8, + 35u8, 208u8, 66u8, 203u8, 35u8, 125u8, 155u8, 191u8, 229u8, 118u8, + 172u8, 106u8, 76u8, 220u8, 97u8, 227u8, 63u8, 163u8, 225u8, 60u8, 95u8, ], ) } - #[doc = "See [`Pallet::as_derivative`]."] + #[doc = "Send a call through an indexed pseudonym of the sender."] + #[doc = ""] + #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] + #[doc = "use the same filter as the origin of this call."] + #[doc = ""] + #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] + #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] + #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] + #[doc = "in the Multisig pallet instead."] + #[doc = ""] + #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] pub fn as_derivative( &self, index: types::as_derivative::Index, call: types::as_derivative::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Utility", "as_derivative", types::AsDerivative { index, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 163u8, 19u8, 207u8, 187u8, 41u8, 39u8, 8u8, 185u8, 181u8, 86u8, 13u8, - 78u8, 150u8, 248u8, 50u8, 27u8, 47u8, 143u8, 48u8, 231u8, 124u8, 205u8, - 79u8, 73u8, 14u8, 224u8, 121u8, 122u8, 155u8, 215u8, 127u8, 216u8, + 136u8, 12u8, 16u8, 80u8, 206u8, 214u8, 108u8, 163u8, 195u8, 71u8, 2u8, + 197u8, 150u8, 99u8, 79u8, 79u8, 13u8, 14u8, 187u8, 172u8, 33u8, 33u8, + 229u8, 12u8, 68u8, 20u8, 76u8, 232u8, 49u8, 194u8, 0u8, 127u8, ], ) } - #[doc = "See [`Pallet::batch_all`]."] + #[doc = "Send a batch of dispatch calls and atomically execute them."] + #[doc = "The whole transaction will rollback and fail if any of the calls failed."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] pub fn batch_all( &self, calls: types::batch_all::Calls, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Utility", "batch_all", types::BatchAll { calls }, [ - 152u8, 2u8, 27u8, 38u8, 114u8, 242u8, 115u8, 122u8, 244u8, 126u8, - 182u8, 33u8, 23u8, 67u8, 11u8, 189u8, 177u8, 128u8, 182u8, 194u8, 44u8, - 51u8, 164u8, 131u8, 65u8, 231u8, 16u8, 246u8, 180u8, 78u8, 106u8, - 245u8, + 94u8, 230u8, 52u8, 165u8, 33u8, 164u8, 109u8, 226u8, 199u8, 255u8, + 101u8, 92u8, 130u8, 64u8, 123u8, 112u8, 99u8, 51u8, 49u8, 200u8, 192u8, + 193u8, 194u8, 180u8, 191u8, 34u8, 84u8, 187u8, 192u8, 138u8, 189u8, + 119u8, ], ) } - #[doc = "See [`Pallet::dispatch_as`]."] + #[doc = "Dispatches a function call with a provided origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] pub fn dispatch_as( &self, as_origin: types::dispatch_as::AsOrigin, call: types::dispatch_as::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Utility", "dispatch_as", types::DispatchAs { - as_origin: ::subxt_core::alloc::boxed::Box::new(as_origin), - call: ::subxt_core::alloc::boxed::Box::new(call), + as_origin: ::subxt::ext::subxt_core::alloc::boxed::Box::new(as_origin), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 75u8, 39u8, 40u8, 217u8, 241u8, 205u8, 4u8, 52u8, 76u8, 191u8, 181u8, - 59u8, 164u8, 151u8, 216u8, 190u8, 229u8, 48u8, 15u8, 59u8, 174u8, - 218u8, 122u8, 25u8, 129u8, 220u8, 17u8, 60u8, 230u8, 251u8, 238u8, - 89u8, + 103u8, 220u8, 33u8, 8u8, 195u8, 199u8, 58u8, 179u8, 4u8, 37u8, 77u8, + 252u8, 89u8, 27u8, 164u8, 37u8, 63u8, 199u8, 200u8, 98u8, 206u8, 15u8, + 8u8, 5u8, 239u8, 34u8, 221u8, 191u8, 22u8, 40u8, 28u8, 190u8, ], ) } - #[doc = "See [`Pallet::force_batch`]."] + #[doc = "Send a batch of dispatch calls."] + #[doc = "Unlike `batch`, it allows errors and won't interrupt."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] pub fn force_batch( &self, calls: types::force_batch::Calls, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Utility", "force_batch", types::ForceBatch { calls }, [ - 36u8, 18u8, 46u8, 202u8, 183u8, 40u8, 9u8, 29u8, 66u8, 243u8, 108u8, - 18u8, 73u8, 96u8, 23u8, 65u8, 118u8, 93u8, 148u8, 41u8, 201u8, 70u8, - 32u8, 235u8, 111u8, 59u8, 254u8, 49u8, 121u8, 253u8, 104u8, 36u8, + 108u8, 147u8, 48u8, 12u8, 203u8, 192u8, 144u8, 187u8, 247u8, 32u8, + 228u8, 147u8, 33u8, 163u8, 140u8, 91u8, 109u8, 161u8, 188u8, 207u8, + 77u8, 189u8, 113u8, 5u8, 223u8, 155u8, 51u8, 72u8, 189u8, 119u8, 0u8, + 56u8, ], ) } - #[doc = "See [`Pallet::with_weight`]."] + #[doc = "Dispatch a function call with a specified weight."] + #[doc = ""] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Root origin to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] pub fn with_weight( &self, call: types::with_weight::Call, weight: types::with_weight::Weight, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Utility", "with_weight", types::WithWeight { - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), weight, }, [ - 199u8, 14u8, 161u8, 109u8, 74u8, 66u8, 81u8, 36u8, 150u8, 180u8, 215u8, - 34u8, 111u8, 54u8, 104u8, 71u8, 164u8, 161u8, 171u8, 194u8, 130u8, - 154u8, 26u8, 85u8, 41u8, 224u8, 67u8, 192u8, 127u8, 77u8, 141u8, 128u8, + 105u8, 116u8, 196u8, 44u8, 62u8, 4u8, 159u8, 203u8, 174u8, 219u8, + 206u8, 189u8, 133u8, 169u8, 102u8, 255u8, 172u8, 59u8, 221u8, 64u8, + 180u8, 62u8, 159u8, 26u8, 169u8, 54u8, 20u8, 105u8, 115u8, 253u8, + 249u8, 104u8, ], ) } @@ -31077,18 +38125,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] #[doc = "well as the error."] pub struct BatchInterrupted { @@ -31100,80 +38148,80 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Error = runtime_types::sp_runtime::DispatchError; } - impl ::subxt_core::events::StaticEvent for BatchInterrupted { + impl ::subxt::ext::subxt_core::events::StaticEvent for BatchInterrupted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchInterrupted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; - impl ::subxt_core::events::StaticEvent for BatchCompleted { + impl ::subxt::ext::subxt_core::events::StaticEvent for BatchCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompleted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors; - impl ::subxt_core::events::StaticEvent for BatchCompletedWithErrors { + impl ::subxt::ext::subxt_core::events::StaticEvent for BatchCompletedWithErrors { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompletedWithErrors"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; - impl ::subxt_core::events::StaticEvent for ItemCompleted { + impl ::subxt::ext::subxt_core::events::StaticEvent for ItemCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemCompleted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { pub error: item_failed::Error, @@ -31182,23 +38230,23 @@ pub mod api { use super::runtime_types; pub type Error = runtime_types::sp_runtime::DispatchError; } - impl ::subxt_core::events::StaticEvent for ItemFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for ItemFailed { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemFailed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A call was dispatched."] pub struct DispatchedAs { pub result: dispatched_as::Result, @@ -31208,7 +38256,7 @@ pub mod api { pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for DispatchedAs { + impl ::subxt::ext::subxt_core::events::StaticEvent for DispatchedAs { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "DispatchedAs"; } @@ -31220,8 +38268,10 @@ pub mod api { #[doc = " The limit on the number of batched calls."] pub fn batched_calls_limit( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Utility", "batched_calls_limit", [ @@ -31249,83 +38299,176 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::as_multi_threshold_1`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] + #[doc = "multi-signature, but do not participate in the approval process."] + #[doc = "- `call`: The call to be executed."] + #[doc = ""] + #[doc = "Result is equivalent to the dispatched result."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub struct AsMultiThreshold1 { pub other_signatories: as_multi_threshold1::OtherSignatories, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: + ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod as_multi_threshold1 { use super::runtime_types; - pub type OtherSignatories = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type OtherSignatories = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for AsMultiThreshold1 { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AsMultiThreshold1 { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "as_multi_threshold_1"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::as_multi`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] + #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] + #[doc = ""] + #[doc = "If there are enough, then dispatch the call."] + #[doc = ""] + #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] + #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] + #[doc = "is cancelled."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] + #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] + #[doc = "transaction index) of the first approval transaction."] + #[doc = "- `call`: The call to be executed."] + #[doc = ""] + #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] + #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] + #[doc = ""] + #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] + #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] + #[doc = "may be found in the deposited `MultisigExecuted` event."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(S + Z + Call)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] + #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] + #[doc = "- One event."] + #[doc = "- The weight of the `call`."] + #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] + #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub struct AsMulti { pub threshold: as_multi::Threshold, pub other_signatories: as_multi::OtherSignatories, pub maybe_timepoint: as_multi::MaybeTimepoint, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, pub max_weight: as_multi::MaxWeight, } pub mod as_multi { use super::runtime_types; pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type OtherSignatories = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; pub type MaybeTimepoint = ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, >; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; } - impl ::subxt_core::blocks::StaticExtrinsic for AsMulti { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AsMulti { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "as_multi"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::approve_as_multi`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] + #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] + #[doc = ""] + #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] + #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] + #[doc = "is cancelled."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] + #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] + #[doc = "transaction index) of the first approval transaction."] + #[doc = "- `call_hash`: The hash of the call to be executed."] + #[doc = ""] + #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(S)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] + #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] + #[doc = "- One event."] + #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] + #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub struct ApproveAsMulti { pub threshold: approve_as_multi::Threshold, pub other_signatories: approve_as_multi::OtherSignatories, @@ -31336,32 +38479,57 @@ pub mod api { pub mod approve_as_multi { use super::runtime_types; pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type OtherSignatories = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; pub type MaybeTimepoint = ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, >; pub type CallHash = [::core::primitive::u8; 32usize]; pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; } - impl ::subxt_core::blocks::StaticExtrinsic for ApproveAsMulti { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ApproveAsMulti { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "approve_as_multi"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_as_multi`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] + #[doc = "for this operation will be unreserved on success."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] + #[doc = "transaction for this dispatch."] + #[doc = "- `call_hash`: The hash of the call to be executed."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(S)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- One event."] + #[doc = "- I/O: 1 read `O(S)`, one remove."] + #[doc = "- Storage: removes one item."] pub struct CancelAsMulti { pub threshold: cancel_as_multi::Threshold, pub other_signatories: cancel_as_multi::OtherSignatories, @@ -31371,41 +38539,91 @@ pub mod api { pub mod cancel_as_multi { use super::runtime_types; pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type OtherSignatories = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; pub type Timepoint = runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>; pub type CallHash = [::core::primitive::u8; 32usize]; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelAsMulti { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelAsMulti { const PALLET: &'static str = "Multisig"; const CALL: &'static str = "cancel_as_multi"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::as_multi_threshold_1`]."] + #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] + #[doc = "multi-signature, but do not participate in the approval process."] + #[doc = "- `call`: The call to be executed."] + #[doc = ""] + #[doc = "Result is equivalent to the dispatched result."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub fn as_multi_threshold_1( &self, other_signatories: types::as_multi_threshold1::OtherSignatories, call: types::as_multi_threshold1::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Multisig", "as_multi_threshold_1", types::AsMultiThreshold1 { other_signatories, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 109u8, 130u8, 118u8, 78u8, 114u8, 71u8, 17u8, 211u8, 158u8, 85u8, 19u8, - 207u8, 24u8, 250u8, 148u8, 125u8, 110u8, 241u8, 226u8, 219u8, 1u8, - 175u8, 227u8, 226u8, 93u8, 229u8, 187u8, 171u8, 90u8, 251u8, 171u8, - 143u8, + 18u8, 55u8, 9u8, 211u8, 178u8, 133u8, 162u8, 179u8, 52u8, 129u8, 26u8, + 52u8, 226u8, 34u8, 232u8, 105u8, 69u8, 164u8, 51u8, 36u8, 88u8, 172u8, + 70u8, 151u8, 203u8, 212u8, 112u8, 141u8, 237u8, 172u8, 156u8, 244u8, ], ) } - #[doc = "See [`Pallet::as_multi`]."] + #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] + #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] + #[doc = ""] + #[doc = "If there are enough, then dispatch the call."] + #[doc = ""] + #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] + #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] + #[doc = "is cancelled."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] + #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] + #[doc = "transaction index) of the first approval transaction."] + #[doc = "- `call`: The call to be executed."] + #[doc = ""] + #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] + #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] + #[doc = ""] + #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] + #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] + #[doc = "may be found in the deposited `MultisigExecuted` event."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(S + Z + Call)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] + #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] + #[doc = "- One event."] + #[doc = "- The weight of the `call`."] + #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] + #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn as_multi( &self, threshold: types::as_multi::Threshold, @@ -31413,26 +38631,54 @@ pub mod api { maybe_timepoint: types::as_multi::MaybeTimepoint, call: types::as_multi::Call, max_weight: types::as_multi::MaxWeight, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Multisig", "as_multi", types::AsMulti { threshold, other_signatories, maybe_timepoint, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), max_weight, }, [ - 133u8, 223u8, 152u8, 72u8, 4u8, 175u8, 165u8, 243u8, 129u8, 252u8, - 134u8, 245u8, 61u8, 197u8, 24u8, 80u8, 223u8, 74u8, 74u8, 127u8, 235u8, - 128u8, 24u8, 248u8, 254u8, 253u8, 227u8, 9u8, 221u8, 172u8, 183u8, - 13u8, + 89u8, 17u8, 34u8, 191u8, 245u8, 184u8, 93u8, 170u8, 125u8, 169u8, 41u8, + 234u8, 239u8, 87u8, 46u8, 65u8, 218u8, 43u8, 169u8, 169u8, 135u8, 13u8, + 96u8, 74u8, 24u8, 48u8, 116u8, 11u8, 127u8, 233u8, 124u8, 68u8, ], ) } - #[doc = "See [`Pallet::approve_as_multi`]."] + #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] + #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] + #[doc = ""] + #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] + #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] + #[doc = "is cancelled."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] + #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] + #[doc = "transaction index) of the first approval transaction."] + #[doc = "- `call_hash`: The hash of the call to be executed."] + #[doc = ""] + #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(S)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] + #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] + #[doc = "- One event."] + #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] + #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn approve_as_multi( &self, threshold: types::approve_as_multi::Threshold, @@ -31440,8 +38686,8 @@ pub mod api { maybe_timepoint: types::approve_as_multi::MaybeTimepoint, call_hash: types::approve_as_multi::CallHash, max_weight: types::approve_as_multi::MaxWeight, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Multisig", "approve_as_multi", types::ApproveAsMulti { @@ -31458,15 +38704,35 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_as_multi`]."] + #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] + #[doc = "for this operation will be unreserved on success."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] + #[doc = "transaction for this dispatch."] + #[doc = "- `call_hash`: The hash of the call to be executed."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(S)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- One event."] + #[doc = "- I/O: 1 read `O(S)`, one remove."] + #[doc = "- Storage: removes one item."] pub fn cancel_as_multi( &self, threshold: types::cancel_as_multi::Threshold, other_signatories: types::cancel_as_multi::OtherSignatories, timepoint: types::cancel_as_multi::Timepoint, call_hash: types::cancel_as_multi::CallHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Multisig", "cancel_as_multi", types::CancelAsMulti { threshold, other_signatories, timepoint, call_hash }, @@ -31485,18 +38751,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new multisig operation has begun."] pub struct NewMultisig { pub approving: new_multisig::Approving, @@ -31505,27 +38771,27 @@ pub mod api { } pub mod new_multisig { use super::runtime_types; - pub type Approving = ::subxt_core::utils::AccountId32; - pub type Multisig = ::subxt_core::utils::AccountId32; + pub type Approving = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Multisig = ::subxt::ext::subxt_core::utils::AccountId32; pub type CallHash = [::core::primitive::u8; 32usize]; } - impl ::subxt_core::events::StaticEvent for NewMultisig { + impl ::subxt::ext::subxt_core::events::StaticEvent for NewMultisig { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "NewMultisig"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { pub approving: multisig_approval::Approving, @@ -31535,29 +38801,29 @@ pub mod api { } pub mod multisig_approval { use super::runtime_types; - pub type Approving = ::subxt_core::utils::AccountId32; + pub type Approving = ::subxt::ext::subxt_core::utils::AccountId32; pub type Timepoint = runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>; - pub type Multisig = ::subxt_core::utils::AccountId32; + pub type Multisig = ::subxt::ext::subxt_core::utils::AccountId32; pub type CallHash = [::core::primitive::u8; 32usize]; } - impl ::subxt_core::events::StaticEvent for MultisigApproval { + impl ::subxt::ext::subxt_core::events::StaticEvent for MultisigApproval { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigApproval"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { pub approving: multisig_executed::Approving, @@ -31568,31 +38834,31 @@ pub mod api { } pub mod multisig_executed { use super::runtime_types; - pub type Approving = ::subxt_core::utils::AccountId32; + pub type Approving = ::subxt::ext::subxt_core::utils::AccountId32; pub type Timepoint = runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>; - pub type Multisig = ::subxt_core::utils::AccountId32; + pub type Multisig = ::subxt::ext::subxt_core::utils::AccountId32; pub type CallHash = [::core::primitive::u8; 32usize]; pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for MultisigExecuted { + impl ::subxt::ext::subxt_core::events::StaticEvent for MultisigExecuted { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigExecuted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { pub cancelling: multisig_cancelled::Cancelling, @@ -31602,13 +38868,13 @@ pub mod api { } pub mod multisig_cancelled { use super::runtime_types; - pub type Cancelling = ::subxt_core::utils::AccountId32; + pub type Cancelling = ::subxt::ext::subxt_core::utils::AccountId32; pub type Timepoint = runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>; - pub type Multisig = ::subxt_core::utils::AccountId32; + pub type Multisig = ::subxt::ext::subxt_core::utils::AccountId32; pub type CallHash = [::core::primitive::u8; 32usize]; } - impl ::subxt_core::events::StaticEvent for MultisigCancelled { + impl ::subxt::ext::subxt_core::events::StaticEvent for MultisigCancelled { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigCancelled"; } @@ -31622,9 +38888,9 @@ pub mod api { pub type Multisigs = runtime_types::pallet_multisig::Multisig< ::core::primitive::u64, ::core::primitive::u128, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; pub type Param1 = [::core::primitive::u8; 32usize]; } } @@ -31633,14 +38899,14 @@ pub mod api { #[doc = " The set of open multisig operations."] pub fn multisigs_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::multisigs::Multisigs, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Multisig", "Multisigs", (), @@ -31656,17 +38922,21 @@ pub mod api { pub fn multisigs_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::multisigs::Param0, + >, types::multisigs::Multisigs, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Multisig", "Multisigs", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 69u8, 190u8, 134u8, 80u8, 236u8, 248u8, 25u8, 153u8, 154u8, 71u8, 192u8, 101u8, 159u8, 179u8, 0u8, 228u8, 93u8, 125u8, 99u8, 229u8, @@ -31680,22 +38950,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::multisigs::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::multisigs::Param1, + >, ), types::multisigs::Multisigs, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Multisig", "Multisigs", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 69u8, 190u8, 134u8, 80u8, 236u8, 248u8, 25u8, 153u8, 154u8, 71u8, @@ -31719,8 +38997,10 @@ pub mod api { #[doc = " `32 + sizeof(AccountId)` bytes."] pub fn deposit_base( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Multisig", "DepositBase", [ @@ -31735,8 +39015,10 @@ pub mod api { #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] pub fn deposit_factor( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Multisig", "DepositFactor", [ @@ -31749,8 +39031,10 @@ pub mod api { #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Multisig", "MaxSignatories", [ @@ -31778,19 +39062,23 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::transact`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Transact an Ethereum transaction."] pub struct Transact { pub transaction: transact::Transaction, } @@ -31798,19 +39086,19 @@ pub mod api { use super::runtime_types; pub type Transaction = runtime_types::ethereum::transaction::TransactionV2; } - impl ::subxt_core::blocks::StaticExtrinsic for Transact { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Transact { const PALLET: &'static str = "Ethereum"; const CALL: &'static str = "transact"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::transact`]."] + #[doc = "Transact an Ethereum transaction."] pub fn transact( &self, transaction: types::transact::Transaction, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Ethereum", "transact", types::Transact { transaction }, @@ -31828,18 +39116,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An ethereum transaction was successfully executed."] pub struct Executed { pub from: executed::From, @@ -31850,13 +39138,14 @@ pub mod api { } pub mod executed { use super::runtime_types; - pub type From = ::subxt_core::utils::H160; - pub type To = ::subxt_core::utils::H160; - pub type TransactionHash = ::subxt_core::utils::H256; + pub type From = ::subxt::ext::subxt_core::utils::H160; + pub type To = ::subxt::ext::subxt_core::utils::H160; + pub type TransactionHash = ::subxt::ext::subxt_core::utils::H256; pub type ExitReason = runtime_types::evm_core::error::ExitReason; - pub type ExtraData = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type ExtraData = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::events::StaticEvent for Executed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Executed { const PALLET: &'static str = "Ethereum"; const EVENT: &'static str = "Executed"; } @@ -31867,7 +39156,7 @@ pub mod api { use super::runtime_types; pub mod pending { use super::runtime_types; - pub type Pending = ::subxt_core::alloc::vec::Vec<( + pub type Pending = ::subxt::ext::subxt_core::alloc::vec::Vec<( runtime_types::ethereum::transaction::TransactionV2, runtime_types::fp_rpc::TransactionStatus, runtime_types::ethereum::receipt::ReceiptV3, @@ -31881,17 +39170,19 @@ pub mod api { } pub mod current_receipts { use super::runtime_types; - pub type CurrentReceipts = - ::subxt_core::alloc::vec::Vec; + pub type CurrentReceipts = ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::ethereum::receipt::ReceiptV3, + >; } pub mod current_transaction_statuses { use super::runtime_types; - pub type CurrentTransactionStatuses = - ::subxt_core::alloc::vec::Vec; + pub type CurrentTransactionStatuses = ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::fp_rpc::TransactionStatus, + >; } pub mod block_hash { use super::runtime_types; - pub type BlockHash = ::subxt_core::utils::H256; + pub type BlockHash = ::subxt::ext::subxt_core::utils::H256; pub type Param0 = runtime_types::primitive_types::U256; } } @@ -31900,14 +39191,14 @@ pub mod api { #[doc = " Current building block's transactions and receipts."] pub fn pending( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::pending::Pending, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Ethereum", "Pending", (), @@ -31922,14 +39213,14 @@ pub mod api { #[doc = " The current Ethereum block."] pub fn current_block( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_block::CurrentBlock, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Ethereum", "CurrentBlock", (), @@ -31944,14 +39235,14 @@ pub mod api { #[doc = " The current Ethereum receipts."] pub fn current_receipts( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_receipts::CurrentReceipts, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Ethereum", "CurrentReceipts", (), @@ -31965,14 +39256,14 @@ pub mod api { #[doc = " The current transaction statuses."] pub fn current_transaction_statuses( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_transaction_statuses::CurrentTransactionStatuses, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Ethereum", "CurrentTransactionStatuses", (), @@ -31985,14 +39276,14 @@ pub mod api { } pub fn block_hash_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::block_hash::BlockHash, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Ethereum", "BlockHash", (), @@ -32006,17 +39297,21 @@ pub mod api { pub fn block_hash( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::block_hash::Param0, + >, types::block_hash::BlockHash, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Ethereum", "BlockHash", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 131u8, 87u8, 201u8, 82u8, 203u8, 241u8, 176u8, 149u8, 39u8, 243u8, 227u8, 1u8, 86u8, 62u8, 6u8, 231u8, 55u8, 6u8, 212u8, 96u8, 207u8, @@ -32041,46 +39336,54 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::withdraw`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Withdraw balance from EVM into currency/balances pallet."] pub struct Withdraw { pub address: withdraw::Address, pub value: withdraw::Value, } pub mod withdraw { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; pub type Value = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Withdraw { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Withdraw { const PALLET: &'static str = "EVM"; const CALL: &'static str = "withdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::call`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] pub struct Call { pub source: call::Source, pub target: call::Target, @@ -32094,38 +39397,46 @@ pub mod api { } pub mod call { use super::runtime_types; - pub type Source = ::subxt_core::utils::H160; - pub type Target = ::subxt_core::utils::H160; - pub type Input = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Source = ::subxt::ext::subxt_core::utils::H160; + pub type Target = ::subxt::ext::subxt_core::utils::H160; + pub type Input = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Value = runtime_types::primitive_types::U256; pub type GasLimit = ::core::primitive::u64; pub type MaxFeePerGas = runtime_types::primitive_types::U256; pub type MaxPriorityFeePerGas = ::core::option::Option; pub type Nonce = ::core::option::Option; - pub type AccessList = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + pub type AccessList = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for Call { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Call { const PALLET: &'static str = "EVM"; const CALL: &'static str = "call"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] + #[doc = "Ethereum."] pub struct Create { pub source: create::Source, pub init: create::Init, @@ -32138,37 +39449,44 @@ pub mod api { } pub mod create { use super::runtime_types; - pub type Source = ::subxt_core::utils::H160; - pub type Init = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Source = ::subxt::ext::subxt_core::utils::H160; + pub type Init = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; pub type Value = runtime_types::primitive_types::U256; pub type GasLimit = ::core::primitive::u64; pub type MaxFeePerGas = runtime_types::primitive_types::U256; pub type MaxPriorityFeePerGas = ::core::option::Option; pub type Nonce = ::core::option::Option; - pub type AccessList = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + pub type AccessList = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for Create { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "EVM"; const CALL: &'static str = "create"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create2`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Issue an EVM create2 operation."] pub struct Create2 { pub source: create2::Source, pub init: create2::Init, @@ -32182,34 +39500,37 @@ pub mod api { } pub mod create2 { use super::runtime_types; - pub type Source = ::subxt_core::utils::H160; - pub type Init = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Salt = ::subxt_core::utils::H256; + pub type Source = ::subxt::ext::subxt_core::utils::H160; + pub type Init = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Salt = ::subxt::ext::subxt_core::utils::H256; pub type Value = runtime_types::primitive_types::U256; pub type GasLimit = ::core::primitive::u64; pub type MaxFeePerGas = runtime_types::primitive_types::U256; pub type MaxPriorityFeePerGas = ::core::option::Option; pub type Nonce = ::core::option::Option; - pub type AccessList = ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + pub type AccessList = ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for Create2 { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Create2 { const PALLET: &'static str = "EVM"; const CALL: &'static str = "create2"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::withdraw`]."] + #[doc = "Withdraw balance from EVM into currency/balances pallet."] pub fn withdraw( &self, address: types::withdraw::Address, value: types::withdraw::Value, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "EVM", "withdraw", types::Withdraw { address, value }, @@ -32220,7 +39541,7 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::call`]."] + #[doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] pub fn call( &self, source: types::call::Source, @@ -32232,8 +39553,8 @@ pub mod api { max_priority_fee_per_gas: types::call::MaxPriorityFeePerGas, nonce: types::call::Nonce, access_list: types::call::AccessList, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "EVM", "call", types::Call { @@ -32255,7 +39576,8 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create`]."] + #[doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] + #[doc = "Ethereum."] pub fn create( &self, source: types::create::Source, @@ -32266,8 +39588,8 @@ pub mod api { max_priority_fee_per_gas: types::create::MaxPriorityFeePerGas, nonce: types::create::Nonce, access_list: types::create::AccessList, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "EVM", "create", types::Create { @@ -32287,7 +39609,7 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create2`]."] + #[doc = "Issue an EVM create2 operation."] pub fn create2( &self, source: types::create2::Source, @@ -32299,8 +39621,8 @@ pub mod api { max_priority_fee_per_gas: types::create2::MaxPriorityFeePerGas, nonce: types::create2::Nonce, access_list: types::create2::AccessList, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "EVM", "create2", types::Create2 { @@ -32329,18 +39651,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Ethereum events from contracts."] pub struct Log { pub log: log::Log, @@ -32349,107 +39671,107 @@ pub mod api { use super::runtime_types; pub type Log = runtime_types::ethereum::log::Log; } - impl ::subxt_core::events::StaticEvent for Log { + impl ::subxt::ext::subxt_core::events::StaticEvent for Log { const PALLET: &'static str = "EVM"; const EVENT: &'static str = "Log"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A contract has been created at given address."] pub struct Created { pub address: created::Address, } pub mod created { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; } - impl ::subxt_core::events::StaticEvent for Created { + impl ::subxt::ext::subxt_core::events::StaticEvent for Created { const PALLET: &'static str = "EVM"; const EVENT: &'static str = "Created"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A contract was attempted to be created, but the execution failed."] pub struct CreatedFailed { pub address: created_failed::Address, } pub mod created_failed { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; } - impl ::subxt_core::events::StaticEvent for CreatedFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for CreatedFailed { const PALLET: &'static str = "EVM"; const EVENT: &'static str = "CreatedFailed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A contract has been executed successfully with states applied."] pub struct Executed { pub address: executed::Address, } pub mod executed { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; } - impl ::subxt_core::events::StaticEvent for Executed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Executed { const PALLET: &'static str = "EVM"; const EVENT: &'static str = "Executed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] pub struct ExecutedFailed { pub address: executed_failed::Address, } pub mod executed_failed { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; + pub type Address = ::subxt::ext::subxt_core::utils::H160; } - impl ::subxt_core::events::StaticEvent for ExecutedFailed { + impl ::subxt::ext::subxt_core::events::StaticEvent for ExecutedFailed { const PALLET: &'static str = "EVM"; const EVENT: &'static str = "ExecutedFailed"; } @@ -32460,38 +39782,39 @@ pub mod api { use super::runtime_types; pub mod account_codes { use super::runtime_types; - pub type AccountCodes = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Param0 = ::subxt_core::utils::H160; + pub type AccountCodes = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Param0 = ::subxt::ext::subxt_core::utils::H160; } pub mod account_codes_metadata { use super::runtime_types; pub type AccountCodesMetadata = runtime_types::pallet_evm::CodeMetadata; - pub type Param0 = ::subxt_core::utils::H160; + pub type Param0 = ::subxt::ext::subxt_core::utils::H160; } pub mod account_storages { use super::runtime_types; - pub type AccountStorages = ::subxt_core::utils::H256; - pub type Param0 = ::subxt_core::utils::H160; - pub type Param1 = ::subxt_core::utils::H256; + pub type AccountStorages = ::subxt::ext::subxt_core::utils::H256; + pub type Param0 = ::subxt::ext::subxt_core::utils::H160; + pub type Param1 = ::subxt::ext::subxt_core::utils::H256; } pub mod suicided { use super::runtime_types; pub type Suicided = (); - pub type Param0 = ::subxt_core::utils::H160; + pub type Param0 = ::subxt::ext::subxt_core::utils::H160; } } pub struct StorageApi; impl StorageApi { pub fn account_codes_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::account_codes::AccountCodes, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "AccountCodes", (), @@ -32505,17 +39828,21 @@ pub mod api { pub fn account_codes( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::account_codes::Param0, + >, types::account_codes::AccountCodes, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "AccountCodes", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 49u8, 73u8, 188u8, 164u8, 3u8, 40u8, 187u8, 216u8, 70u8, 119u8, 176u8, 187u8, 76u8, 24u8, 49u8, 174u8, 54u8, 98u8, 208u8, 255u8, 38u8, 214u8, @@ -32525,14 +39852,14 @@ pub mod api { } pub fn account_codes_metadata_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::account_codes_metadata::AccountCodesMetadata, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "AccountCodesMetadata", (), @@ -32547,19 +39874,21 @@ pub mod api { pub fn account_codes_metadata( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::account_codes_metadata::Param0, >, types::account_codes_metadata::AccountCodesMetadata, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "AccountCodesMetadata", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 17u8, 83u8, 22u8, 15u8, 158u8, 242u8, 39u8, 174u8, 61u8, 230u8, 0u8, 161u8, 173u8, 242u8, 155u8, 156u8, 149u8, 108u8, 47u8, 129u8, 190u8, @@ -32570,14 +39899,14 @@ pub mod api { } pub fn account_storages_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::account_storages::AccountStorages, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "AccountStorages", (), @@ -32591,19 +39920,21 @@ pub mod api { pub fn account_storages_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::account_storages::Param0, >, types::account_storages::AccountStorages, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "AccountStorages", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 63u8, 69u8, 109u8, 3u8, 190u8, 233u8, 39u8, 122u8, 94u8, 37u8, 74u8, 90u8, 197u8, 191u8, 12u8, 119u8, 165u8, 61u8, 217u8, 15u8, 36u8, 167u8, @@ -32615,26 +39946,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::account_storages::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::account_storages::Param1, >, ), types::account_storages::AccountStorages, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "AccountStorages", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 63u8, 69u8, 109u8, 3u8, 190u8, 233u8, 39u8, 122u8, 94u8, 37u8, 74u8, @@ -32645,14 +39980,14 @@ pub mod api { } pub fn suicided_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::suicided::Suicided, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "Suicided", (), @@ -32666,17 +40001,21 @@ pub mod api { pub fn suicided( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::suicided::Param0, + >, types::suicided::Suicided, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVM", "Suicided", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 5u8, 137u8, 180u8, 131u8, 216u8, 217u8, 148u8, 127u8, 9u8, 159u8, 14u8, 25u8, 56u8, 99u8, 55u8, 151u8, 140u8, 143u8, 188u8, 172u8, 33u8, 91u8, @@ -32704,14 +40043,14 @@ pub mod api { #[doc = " The EVM chain ID."] pub fn chain_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::chain_id::ChainId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "EVMChainId", "ChainId", (), @@ -32738,19 +40077,22 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::note_min_gas_price_target`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct NoteMinGasPriceTarget { pub target: note_min_gas_price_target::Target, } @@ -32758,19 +40100,20 @@ pub mod api { use super::runtime_types; pub type Target = runtime_types::primitive_types::U256; } - impl ::subxt_core::blocks::StaticExtrinsic for NoteMinGasPriceTarget { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for NoteMinGasPriceTarget { const PALLET: &'static str = "DynamicFee"; const CALL: &'static str = "note_min_gas_price_target"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::note_min_gas_price_target`]."] pub fn note_min_gas_price_target( &self, target: types::note_min_gas_price_target::Target, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::NoteMinGasPriceTarget, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "DynamicFee", "note_min_gas_price_target", types::NoteMinGasPriceTarget { target }, @@ -32800,14 +40143,14 @@ pub mod api { impl StorageApi { pub fn min_gas_price( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_gas_price::MinGasPrice, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "DynamicFee", "MinGasPrice", (), @@ -32820,14 +40163,14 @@ pub mod api { } pub fn target_min_gas_price( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::target_min_gas_price::TargetMinGasPrice, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "DynamicFee", "TargetMinGasPrice", (), @@ -32853,19 +40196,22 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_base_fee_per_gas`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SetBaseFeePerGas { pub fee: set_base_fee_per_gas::Fee, } @@ -32873,24 +40219,27 @@ pub mod api { use super::runtime_types; pub type Fee = runtime_types::primitive_types::U256; } - impl ::subxt_core::blocks::StaticExtrinsic for SetBaseFeePerGas { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetBaseFeePerGas { const PALLET: &'static str = "BaseFee"; const CALL: &'static str = "set_base_fee_per_gas"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_elasticity`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SetElasticity { pub elasticity: set_elasticity::Elasticity, } @@ -32898,19 +40247,18 @@ pub mod api { use super::runtime_types; pub type Elasticity = runtime_types::sp_arithmetic::per_things::Permill; } - impl ::subxt_core::blocks::StaticExtrinsic for SetElasticity { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetElasticity { const PALLET: &'static str = "BaseFee"; const CALL: &'static str = "set_elasticity"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::set_base_fee_per_gas`]."] pub fn set_base_fee_per_gas( &self, fee: types::set_base_fee_per_gas::Fee, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "BaseFee", "set_base_fee_per_gas", types::SetBaseFeePerGas { fee }, @@ -32922,12 +40270,11 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_elasticity`]."] pub fn set_elasticity( &self, elasticity: types::set_elasticity::Elasticity, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "BaseFee", "set_elasticity", types::SetElasticity { elasticity }, @@ -32945,18 +40292,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NewBaseFeePerGas { pub fee: new_base_fee_per_gas::Fee, } @@ -32964,41 +40311,41 @@ pub mod api { use super::runtime_types; pub type Fee = runtime_types::primitive_types::U256; } - impl ::subxt_core::events::StaticEvent for NewBaseFeePerGas { + impl ::subxt::ext::subxt_core::events::StaticEvent for NewBaseFeePerGas { const PALLET: &'static str = "BaseFee"; const EVENT: &'static str = "NewBaseFeePerGas"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BaseFeeOverflow; - impl ::subxt_core::events::StaticEvent for BaseFeeOverflow { + impl ::subxt::ext::subxt_core::events::StaticEvent for BaseFeeOverflow { const PALLET: &'static str = "BaseFee"; const EVENT: &'static str = "BaseFeeOverflow"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NewElasticity { pub elasticity: new_elasticity::Elasticity, } @@ -33006,7 +40353,7 @@ pub mod api { use super::runtime_types; pub type Elasticity = runtime_types::sp_arithmetic::per_things::Permill; } - impl ::subxt_core::events::StaticEvent for NewElasticity { + impl ::subxt::ext::subxt_core::events::StaticEvent for NewElasticity { const PALLET: &'static str = "BaseFee"; const EVENT: &'static str = "NewElasticity"; } @@ -33028,14 +40375,14 @@ pub mod api { impl StorageApi { pub fn base_fee_per_gas( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::base_fee_per_gas::BaseFeePerGas, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "BaseFee", "BaseFeePerGas", (), @@ -33048,14 +40395,14 @@ pub mod api { } pub fn elasticity( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::elasticity::Elasticity, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "BaseFee", "Elasticity", (), @@ -33083,39 +40430,53 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::hotfix_inc_account_sufficients`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Increment `sufficients` for existing accounts having a nonzero `nonce` but zero `sufficients`, `consumers` and `providers` value."] + #[doc = "This state was caused by a previous bug in EVM create account dispatchable."] + #[doc = ""] + #[doc = "Any accounts in the input list not satisfying the above condition will remain unaffected."] pub struct HotfixIncAccountSufficients { pub addresses: hotfix_inc_account_sufficients::Addresses, } pub mod hotfix_inc_account_sufficients { use super::runtime_types; - pub type Addresses = ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H160>; + pub type Addresses = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H160, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for HotfixIncAccountSufficients { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for HotfixIncAccountSufficients { const PALLET: &'static str = "HotfixSufficients"; const CALL: &'static str = "hotfix_inc_account_sufficients"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::hotfix_inc_account_sufficients`]."] + #[doc = "Increment `sufficients` for existing accounts having a nonzero `nonce` but zero `sufficients`, `consumers` and `providers` value."] + #[doc = "This state was caused by a previous bug in EVM create account dispatchable."] + #[doc = ""] + #[doc = "Any accounts in the input list not satisfying the above condition will remain unaffected."] pub fn hotfix_inc_account_sufficients( &self, addresses: types::hotfix_inc_account_sufficients::Addresses, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::HotfixIncAccountSufficients, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "HotfixSufficients", "hotfix_inc_account_sufficients", types::HotfixIncAccountSufficients { addresses }, @@ -33144,19 +40505,46 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Make a claim to collect your tokens."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "Unsigned Validation:"] + #[doc = "A call to claim is deemed valid if the signature provided matches"] + #[doc = "the expected signed message of:"] + #[doc = ""] + #[doc = "> Ethereum Signed Message:"] + #[doc = "> (configured prefix string)(address)"] + #[doc = ""] + #[doc = "and `address` matches the `dest` account."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `dest`: The destination account to payout the claim."] + #[doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] + #[doc = " described above."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "Weight includes logic to validate unsigned `claim` call."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] pub struct Claim { pub dest: claim::Dest, pub signer: claim::Signer, @@ -33173,24 +40561,42 @@ pub mod api { pub type Signature = runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature; } - impl ::subxt_core::blocks::StaticExtrinsic for Claim { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Claims"; const CALL: &'static str = "claim"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::mint_claim`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Mint a new claim to collect native tokens."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `who`: The Ethereum address allowed to collect this claim."] + #[doc = "- `value`: The number of native tokens that will be claimed."] + #[doc = "- `vesting_schedule`: An optional vesting schedule for these native tokens."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "We assume worst case that both vesting and statement is being inserted."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] pub struct MintClaim { pub who: mint_claim::Who, pub value: mint_claim::Value, @@ -33211,24 +40617,54 @@ pub mod api { pub type Statement = ::core::option::Option; } - impl ::subxt_core::blocks::StaticExtrinsic for MintClaim { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for MintClaim { const PALLET: &'static str = "Claims"; const CALL: &'static str = "mint_claim"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_attest`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Make a claim to collect your native tokens by signing a statement."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "Unsigned Validation:"] + #[doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] + #[doc = "the expected signed message of:"] + #[doc = ""] + #[doc = "> Ethereum Signed Message:"] + #[doc = "> (configured prefix string)(address)(statement)"] + #[doc = ""] + #[doc = "and `address` matches the `dest` account; the `statement` must match that which is"] + #[doc = "expected according to your purchase arrangement."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `dest`: The destination account to payout the claim."] + #[doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] + #[doc = " described above."] + #[doc = "- `statement`: The identity of the statement which is being attested to in the"] + #[doc = " signature."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "Weight includes logic to validate unsigned `claim_attest` call."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] pub struct ClaimAttest { pub dest: claim_attest::Dest, pub signer: claim_attest::Signer, @@ -33245,26 +40681,30 @@ pub mod api { >; pub type Signature = runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature; - pub type Statement = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Statement = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for ClaimAttest { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimAttest { const PALLET: &'static str = "Claims"; const CALL: &'static str = "claim_attest"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::move_claim`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct MoveClaim { pub old: move_claim::Old, pub new: move_claim::New, @@ -33274,24 +40714,29 @@ pub mod api { pub type Old = runtime_types::pallet_airdrop_claims::utils::MultiAddress; pub type New = runtime_types::pallet_airdrop_claims::utils::MultiAddress; } - impl ::subxt_core::blocks::StaticExtrinsic for MoveClaim { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for MoveClaim { const PALLET: &'static str = "Claims"; const CALL: &'static str = "move_claim"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_set_expiry_config`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the value for expiryconfig"] + #[doc = "Can only be called by ForceOrigin"] pub struct ForceSetExpiryConfig { pub expiry_block: force_set_expiry_config::ExpiryBlock, pub dest: force_set_expiry_config::Dest, @@ -33301,24 +40746,28 @@ pub mod api { pub type ExpiryBlock = ::core::primitive::u64; pub type Dest = runtime_types::pallet_airdrop_claims::utils::MultiAddress; } - impl ::subxt_core::blocks::StaticExtrinsic for ForceSetExpiryConfig { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ForceSetExpiryConfig { const PALLET: &'static str = "Claims"; const CALL: &'static str = "force_set_expiry_config"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_signed`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Claim from signed origin"] pub struct ClaimSigned { pub dest: claim_signed::Dest, } @@ -33328,40 +40777,77 @@ pub mod api { runtime_types::pallet_airdrop_claims::utils::MultiAddress, >; } - impl ::subxt_core::blocks::StaticExtrinsic for ClaimSigned { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimSigned { const PALLET: &'static str = "Claims"; const CALL: &'static str = "claim_signed"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::claim`]."] + #[doc = "Make a claim to collect your tokens."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "Unsigned Validation:"] + #[doc = "A call to claim is deemed valid if the signature provided matches"] + #[doc = "the expected signed message of:"] + #[doc = ""] + #[doc = "> Ethereum Signed Message:"] + #[doc = "> (configured prefix string)(address)"] + #[doc = ""] + #[doc = "and `address` matches the `dest` account."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `dest`: The destination account to payout the claim."] + #[doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] + #[doc = " described above."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "Weight includes logic to validate unsigned `claim` call."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] pub fn claim( &self, dest: types::claim::Dest, signer: types::claim::Signer, signature: types::claim::Signature, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Claims", "claim", types::Claim { dest, signer, signature }, [ - 179u8, 122u8, 199u8, 92u8, 100u8, 225u8, 109u8, 4u8, 235u8, 4u8, 141u8, - 223u8, 155u8, 237u8, 212u8, 236u8, 195u8, 253u8, 224u8, 107u8, 217u8, - 181u8, 55u8, 161u8, 211u8, 251u8, 32u8, 110u8, 117u8, 29u8, 12u8, 81u8, + 174u8, 87u8, 36u8, 13u8, 129u8, 107u8, 7u8, 172u8, 33u8, 255u8, 26u8, + 144u8, 100u8, 170u8, 87u8, 71u8, 69u8, 246u8, 25u8, 150u8, 154u8, 46u8, + 145u8, 113u8, 28u8, 9u8, 137u8, 144u8, 239u8, 195u8, 147u8, 27u8, ], ) } - #[doc = "See [`Pallet::mint_claim`]."] + #[doc = "Mint a new claim to collect native tokens."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `who`: The Ethereum address allowed to collect this claim."] + #[doc = "- `value`: The number of native tokens that will be claimed."] + #[doc = "- `vesting_schedule`: An optional vesting schedule for these native tokens."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "We assume worst case that both vesting and statement is being inserted."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] pub fn mint_claim( &self, who: types::mint_claim::Who, value: types::mint_claim::Value, vesting_schedule: types::mint_claim::VestingSchedule, statement: types::mint_claim::Statement, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Claims", "mint_claim", types::MintClaim { who, value, vesting_schedule, statement }, @@ -33373,32 +40859,58 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_attest`]."] + #[doc = "Make a claim to collect your native tokens by signing a statement."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "Unsigned Validation:"] + #[doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] + #[doc = "the expected signed message of:"] + #[doc = ""] + #[doc = "> Ethereum Signed Message:"] + #[doc = "> (configured prefix string)(address)(statement)"] + #[doc = ""] + #[doc = "and `address` matches the `dest` account; the `statement` must match that which is"] + #[doc = "expected according to your purchase arrangement."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `dest`: The destination account to payout the claim."] + #[doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] + #[doc = " described above."] + #[doc = "- `statement`: The identity of the statement which is being attested to in the"] + #[doc = " signature."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "Weight includes logic to validate unsigned `claim_attest` call."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] pub fn claim_attest( &self, dest: types::claim_attest::Dest, signer: types::claim_attest::Signer, signature: types::claim_attest::Signature, statement: types::claim_attest::Statement, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Claims", "claim_attest", types::ClaimAttest { dest, signer, signature, statement }, [ - 136u8, 113u8, 8u8, 143u8, 192u8, 60u8, 29u8, 118u8, 8u8, 99u8, 46u8, - 66u8, 17u8, 40u8, 193u8, 222u8, 56u8, 241u8, 22u8, 1u8, 174u8, 142u8, - 232u8, 89u8, 231u8, 239u8, 123u8, 213u8, 22u8, 63u8, 180u8, 14u8, + 107u8, 31u8, 239u8, 61u8, 103u8, 231u8, 139u8, 136u8, 92u8, 195u8, + 182u8, 139u8, 173u8, 131u8, 153u8, 42u8, 104u8, 123u8, 8u8, 8u8, 135u8, + 149u8, 164u8, 140u8, 56u8, 147u8, 15u8, 89u8, 126u8, 154u8, 139u8, + 71u8, ], ) } - #[doc = "See [`Pallet::move_claim`]."] pub fn move_claim( &self, old: types::move_claim::Old, new: types::move_claim::New, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Claims", "move_claim", types::MoveClaim { old, new }, @@ -33409,13 +40921,15 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_set_expiry_config`]."] + #[doc = "Set the value for expiryconfig"] + #[doc = "Can only be called by ForceOrigin"] pub fn force_set_expiry_config( &self, expiry_block: types::force_set_expiry_config::ExpiryBlock, dest: types::force_set_expiry_config::Dest, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Claims", "force_set_expiry_config", types::ForceSetExpiryConfig { expiry_block, dest }, @@ -33427,12 +40941,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_signed`]."] + #[doc = "Claim from signed origin"] pub fn claim_signed( &self, dest: types::claim_signed::Dest, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Claims", "claim_signed", types::ClaimSigned { dest }, @@ -33451,18 +40965,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Someone claimed some native tokens."] pub struct Claimed { pub recipient: claimed::Recipient, @@ -33471,11 +40985,11 @@ pub mod api { } pub mod claimed { use super::runtime_types; - pub type Recipient = ::subxt_core::utils::AccountId32; + pub type Recipient = ::subxt::ext::subxt_core::utils::AccountId32; pub type Source = runtime_types::pallet_airdrop_claims::utils::MultiAddress; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Claimed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Claimed { const PALLET: &'static str = "Claims"; const EVENT: &'static str = "Claimed"; } @@ -33517,14 +41031,14 @@ pub mod api { impl StorageApi { pub fn claims_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::claims::Claims, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "Claims", (), @@ -33538,17 +41052,21 @@ pub mod api { pub fn claims( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::claims::Param0, + >, types::claims::Claims, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "Claims", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 175u8, 97u8, 79u8, 164u8, 220u8, 228u8, 14u8, 49u8, 136u8, 218u8, 96u8, 209u8, 66u8, 54u8, 156u8, 95u8, 86u8, 234u8, 219u8, 166u8, 181u8, 93u8, @@ -33558,14 +41076,14 @@ pub mod api { } pub fn total( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::total::Total, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "Total", (), @@ -33580,14 +41098,14 @@ pub mod api { #[doc = " Expiry block and account to deposit expired funds"] pub fn expiry_config( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::expiry_config::ExpiryConfig, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "ExpiryConfig", (), @@ -33604,14 +41122,14 @@ pub mod api { #[doc = " The block number is when the vesting should start."] pub fn vesting_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::vesting::Vesting, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "Vesting", (), @@ -33630,17 +41148,21 @@ pub mod api { pub fn vesting( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::vesting::Param0, + >, types::vesting::Vesting, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "Vesting", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 166u8, 245u8, 205u8, 165u8, 58u8, 90u8, 122u8, 157u8, 28u8, 220u8, 114u8, 22u8, 73u8, 221u8, 230u8, 238u8, 57u8, 16u8, 66u8, 5u8, 63u8, @@ -33652,14 +41174,14 @@ pub mod api { #[doc = " The statement kind that must be signed, if any."] pub fn signing_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::signing::Signing, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "Signing", (), @@ -33674,17 +41196,21 @@ pub mod api { pub fn signing( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::signing::Param0, + >, types::signing::Signing, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Claims", "Signing", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 210u8, 2u8, 184u8, 130u8, 98u8, 38u8, 101u8, 191u8, 250u8, 166u8, 246u8, 153u8, 175u8, 181u8, 174u8, 232u8, 58u8, 4u8, 40u8, 112u8, 68u8, @@ -33700,10 +41226,10 @@ pub mod api { impl ConstantsApi { pub fn prefix( &self, - ) -> ::subxt_core::constants::address::StaticAddress< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Claims", "Prefix", [ @@ -33731,52 +41257,76 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::proxy`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Dispatch the given `call` from an account that the sender is authorised for through"] + #[doc = "`add_proxy`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] + #[doc = "- `call`: The call to be made by the `real` account."] pub struct Proxy { pub real: proxy::Real, pub force_proxy_type: proxy::ForceProxyType, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod proxy { use super::runtime_types; - pub type Real = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Real = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type ForceProxyType = ::core::option::Option; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for Proxy { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Proxy { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "proxy"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_proxy`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Register a proxy account for the sender that is able to make calls on its behalf."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `proxy`: The account that the `caller` would like to make a proxy."] + #[doc = "- `proxy_type`: The permissions allowed for this proxy account."] + #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] + #[doc = "zero."] pub struct AddProxy { pub delegate: add_proxy::Delegate, pub proxy_type: add_proxy::ProxyType, @@ -33784,31 +41334,41 @@ pub mod api { } pub mod add_proxy { use super::runtime_types; - pub type Delegate = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type ProxyType = runtime_types::tangle_testnet_runtime::ProxyType; pub type Delay = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for AddProxy { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AddProxy { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "add_proxy"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_proxy`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unregister a proxy account for the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] + #[doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub struct RemoveProxy { pub delegate: remove_proxy::Delegate, pub proxy_type: remove_proxy::ProxyType, @@ -33816,50 +41376,80 @@ pub mod api { } pub mod remove_proxy { use super::runtime_types; - pub type Delegate = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type ProxyType = runtime_types::tangle_testnet_runtime::ProxyType; pub type Delay = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveProxy { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveProxy { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "remove_proxy"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_proxies`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unregister all proxy accounts for the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] + #[doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub struct RemoveProxies; - impl ::subxt_core::blocks::StaticExtrinsic for RemoveProxies { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveProxies { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "remove_proxies"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create_pure`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] + #[doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] + #[doc = ""] + #[doc = "Requires a `Signed` origin."] + #[doc = ""] + #[doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] + #[doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] + #[doc = "allow for maximum flexibility."] + #[doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] + #[doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] + #[doc = "want to use `0`."] + #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] + #[doc = "zero."] + #[doc = ""] + #[doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] + #[doc = "same sender, with the same parameters."] + #[doc = ""] + #[doc = "Fails if there are insufficient funds to pay for deposit."] pub struct CreatePure { pub proxy_type: create_pure::ProxyType, pub delay: create_pure::Delay, @@ -33871,24 +41461,43 @@ pub mod api { pub type Delay = ::core::primitive::u64; pub type Index = ::core::primitive::u16; } - impl ::subxt_core::blocks::StaticExtrinsic for CreatePure { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CreatePure { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "create_pure"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::kill_pure`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Removes a previously spawned pure proxy."] + #[doc = ""] + #[doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] + #[doc = "inaccessible."] + #[doc = ""] + #[doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] + #[doc = "`pure` with corresponding parameters."] + #[doc = ""] + #[doc = "- `spawner`: The account that originally called `pure` to create this account."] + #[doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] + #[doc = "- `proxy_type`: The proxy type originally passed to `pure`."] + #[doc = "- `height`: The height of the chain when the call to `pure` was processed."] + #[doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] + #[doc = ""] + #[doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] + #[doc = "account whose `pure` call has corresponding parameters."] pub struct KillPure { pub spawner: kill_pure::Spawner, pub proxy_type: kill_pure::ProxyType, @@ -33900,8 +41509,8 @@ pub mod api { } pub mod kill_pure { use super::runtime_types; - pub type Spawner = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Spawner = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type ProxyType = runtime_types::tangle_testnet_runtime::ProxyType; @@ -33909,172 +41518,245 @@ pub mod api { pub type Height = ::core::primitive::u64; pub type ExtIndex = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for KillPure { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for KillPure { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "kill_pure"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::announce`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Publish the hash of a proxy-call that will be made in the future."] + #[doc = ""] + #[doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] + #[doc = "if the delay associated with the proxy relationship is greater than zero."] + #[doc = ""] + #[doc = "No more than `MaxPending` announcements may be made at any one time."] + #[doc = ""] + #[doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] + #[doc = "`AnnouncementDepositBase` if there are no other pending announcements."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub struct Announce { pub real: announce::Real, pub call_hash: announce::CallHash, } pub mod announce { use super::runtime_types; - pub type Real = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Real = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type CallHash = ::subxt_core::utils::H256; + pub type CallHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for Announce { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Announce { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "announce"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_announcement`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove a given announcement."] + #[doc = ""] + #[doc = "May be called by a proxy account to remove a call they previously announced and return"] + #[doc = "the deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub struct RemoveAnnouncement { pub real: remove_announcement::Real, pub call_hash: remove_announcement::CallHash, } pub mod remove_announcement { use super::runtime_types; - pub type Real = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Real = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type CallHash = ::subxt_core::utils::H256; + pub type CallHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for RemoveAnnouncement { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RemoveAnnouncement { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "remove_announcement"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::reject_announcement`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Remove the given announcement of a delegate."] + #[doc = ""] + #[doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] + #[doc = "(`delegate`) has announced they want to execute. The deposit is returned."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `delegate`: The account that previously announced the call."] + #[doc = "- `call_hash`: The hash of the call to be made."] pub struct RejectAnnouncement { pub delegate: reject_announcement::Delegate, pub call_hash: reject_announcement::CallHash, } pub mod reject_announcement { use super::runtime_types; - pub type Delegate = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type CallHash = ::subxt_core::utils::H256; + pub type CallHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::blocks::StaticExtrinsic for RejectAnnouncement { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for RejectAnnouncement { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "reject_announcement"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::proxy_announced`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Dispatch the given `call` from an account that the sender is authorized for through"] + #[doc = "`add_proxy`."] + #[doc = ""] + #[doc = "Removes any corresponding announcement(s)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] + #[doc = "- `call`: The call to be made by the `real` account."] pub struct ProxyAnnounced { pub delegate: proxy_announced::Delegate, pub real: proxy_announced::Real, pub force_proxy_type: proxy_announced::ForceProxyType, - pub call: ::subxt_core::alloc::boxed::Box, + pub call: ::subxt::ext::subxt_core::alloc::boxed::Box, } pub mod proxy_announced { use super::runtime_types; - pub type Delegate = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Delegate = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Real = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Real = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type ForceProxyType = ::core::option::Option; pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; } - impl ::subxt_core::blocks::StaticExtrinsic for ProxyAnnounced { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ProxyAnnounced { const PALLET: &'static str = "Proxy"; const CALL: &'static str = "proxy_announced"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::proxy`]."] + #[doc = "Dispatch the given `call` from an account that the sender is authorised for through"] + #[doc = "`add_proxy`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] + #[doc = "- `call`: The call to be made by the `real` account."] pub fn proxy( &self, real: types::proxy::Real, force_proxy_type: types::proxy::ForceProxyType, call: types::proxy::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "proxy", types::Proxy { real, force_proxy_type, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 169u8, 48u8, 144u8, 251u8, 197u8, 224u8, 202u8, 54u8, 70u8, 32u8, - 104u8, 11u8, 230u8, 199u8, 152u8, 197u8, 23u8, 181u8, 12u8, 123u8, - 83u8, 128u8, 41u8, 58u8, 46u8, 144u8, 30u8, 85u8, 151u8, 166u8, 124u8, - 184u8, + 64u8, 63u8, 78u8, 51u8, 212u8, 101u8, 4u8, 194u8, 145u8, 138u8, 123u8, + 74u8, 219u8, 2u8, 56u8, 55u8, 63u8, 248u8, 3u8, 127u8, 69u8, 249u8, + 221u8, 199u8, 229u8, 96u8, 198u8, 5u8, 196u8, 137u8, 112u8, 77u8, ], ) } - #[doc = "See [`Pallet::add_proxy`]."] + #[doc = "Register a proxy account for the sender that is able to make calls on its behalf."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `proxy`: The account that the `caller` would like to make a proxy."] + #[doc = "- `proxy_type`: The permissions allowed for this proxy account."] + #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] + #[doc = "zero."] pub fn add_proxy( &self, delegate: types::add_proxy::Delegate, proxy_type: types::add_proxy::ProxyType, delay: types::add_proxy::Delay, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "add_proxy", types::AddProxy { delegate, proxy_type, delay }, @@ -34085,14 +41767,20 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_proxy`]."] + #[doc = "Unregister a proxy account for the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] + #[doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub fn remove_proxy( &self, delegate: types::remove_proxy::Delegate, proxy_type: types::remove_proxy::ProxyType, delay: types::remove_proxy::Delay, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "remove_proxy", types::RemoveProxy { delegate, proxy_type, delay }, @@ -34103,11 +41791,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_proxies`]."] + #[doc = "Unregister all proxy accounts for the sender."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] + #[doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub fn remove_proxies( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "remove_proxies", types::RemoveProxies {}, @@ -34119,14 +41812,31 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create_pure`]."] + #[doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] + #[doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] + #[doc = ""] + #[doc = "Requires a `Signed` origin."] + #[doc = ""] + #[doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] + #[doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] + #[doc = "allow for maximum flexibility."] + #[doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] + #[doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] + #[doc = "want to use `0`."] + #[doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] + #[doc = "zero."] + #[doc = ""] + #[doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] + #[doc = "same sender, with the same parameters."] + #[doc = ""] + #[doc = "Fails if there are insufficient funds to pay for deposit."] pub fn create_pure( &self, proxy_type: types::create_pure::ProxyType, delay: types::create_pure::Delay, index: types::create_pure::Index, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "create_pure", types::CreatePure { proxy_type, delay, index }, @@ -34137,7 +41847,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kill_pure`]."] + #[doc = "Removes a previously spawned pure proxy."] + #[doc = ""] + #[doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] + #[doc = "inaccessible."] + #[doc = ""] + #[doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] + #[doc = "`pure` with corresponding parameters."] + #[doc = ""] + #[doc = "- `spawner`: The account that originally called `pure` to create this account."] + #[doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] + #[doc = "- `proxy_type`: The proxy type originally passed to `pure`."] + #[doc = "- `height`: The height of the chain when the call to `pure` was processed."] + #[doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] + #[doc = ""] + #[doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] + #[doc = "account whose `pure` call has corresponding parameters."] pub fn kill_pure( &self, spawner: types::kill_pure::Spawner, @@ -34145,8 +41870,8 @@ pub mod api { index: types::kill_pure::Index, height: types::kill_pure::Height, ext_index: types::kill_pure::ExtIndex, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "kill_pure", types::KillPure { spawner, proxy_type, index, height, ext_index }, @@ -34157,13 +41882,27 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::announce`]."] + #[doc = "Publish the hash of a proxy-call that will be made in the future."] + #[doc = ""] + #[doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] + #[doc = "if the delay associated with the proxy relationship is greater than zero."] + #[doc = ""] + #[doc = "No more than `MaxPending` announcements may be made at any one time."] + #[doc = ""] + #[doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] + #[doc = "`AnnouncementDepositBase` if there are no other pending announcements."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn announce( &self, real: types::announce::Real, call_hash: types::announce::CallHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "announce", types::Announce { real, call_hash }, @@ -34174,13 +41913,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_announcement`]."] + #[doc = "Remove a given announcement."] + #[doc = ""] + #[doc = "May be called by a proxy account to remove a call they previously announced and return"] + #[doc = "the deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn remove_announcement( &self, real: types::remove_announcement::Real, call_hash: types::remove_announcement::CallHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "remove_announcement", types::RemoveAnnouncement { real, call_hash }, @@ -34191,13 +41940,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::reject_announcement`]."] + #[doc = "Remove the given announcement of a delegate."] + #[doc = ""] + #[doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] + #[doc = "(`delegate`) has announced they want to execute. The deposit is returned."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `delegate`: The account that previously announced the call."] + #[doc = "- `call_hash`: The hash of the call to be made."] pub fn reject_announcement( &self, delegate: types::reject_announcement::Delegate, call_hash: types::reject_announcement::CallHash, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "reject_announcement", types::RejectAnnouncement { delegate, call_hash }, @@ -34208,27 +41967,37 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::proxy_announced`]."] + #[doc = "Dispatch the given `call` from an account that the sender is authorized for through"] + #[doc = "`add_proxy`."] + #[doc = ""] + #[doc = "Removes any corresponding announcement(s)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `real`: The account that the proxy will make a call on behalf of."] + #[doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] + #[doc = "- `call`: The call to be made by the `real` account."] pub fn proxy_announced( &self, delegate: types::proxy_announced::Delegate, real: types::proxy_announced::Real, force_proxy_type: types::proxy_announced::ForceProxyType, call: types::proxy_announced::Call, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Proxy", "proxy_announced", types::ProxyAnnounced { delegate, real, force_proxy_type, - call: ::subxt_core::alloc::boxed::Box::new(call), + call: ::subxt::ext::subxt_core::alloc::boxed::Box::new(call), }, [ - 55u8, 99u8, 129u8, 82u8, 208u8, 8u8, 164u8, 162u8, 119u8, 221u8, 92u8, - 195u8, 99u8, 81u8, 236u8, 166u8, 122u8, 16u8, 49u8, 247u8, 198u8, 33u8, - 52u8, 204u8, 52u8, 191u8, 28u8, 57u8, 158u8, 238u8, 174u8, 141u8, + 169u8, 216u8, 101u8, 24u8, 21u8, 117u8, 230u8, 241u8, 203u8, 8u8, 17u8, + 165u8, 149u8, 113u8, 110u8, 12u8, 193u8, 111u8, 101u8, 164u8, 212u8, + 154u8, 172u8, 221u8, 89u8, 58u8, 62u8, 128u8, 190u8, 81u8, 44u8, 24u8, ], ) } @@ -34239,18 +42008,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proxy was executed correctly, with the given."] pub struct ProxyExecuted { pub result: proxy_executed::Result, @@ -34260,23 +42029,23 @@ pub mod api { pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt_core::events::StaticEvent for ProxyExecuted { + impl ::subxt::ext::subxt_core::events::StaticEvent for ProxyExecuted { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyExecuted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pure account has been created by new proxy with given"] #[doc = "disambiguation index and proxy type."] pub struct PureCreated { @@ -34287,28 +42056,28 @@ pub mod api { } pub mod pure_created { use super::runtime_types; - pub type Pure = ::subxt_core::utils::AccountId32; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Pure = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type ProxyType = runtime_types::tangle_testnet_runtime::ProxyType; pub type DisambiguationIndex = ::core::primitive::u16; } - impl ::subxt_core::events::StaticEvent for PureCreated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PureCreated { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "PureCreated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An announcement was placed to make a call in the future."] pub struct Announced { pub real: announced::Real, @@ -34317,27 +42086,27 @@ pub mod api { } pub mod announced { use super::runtime_types; - pub type Real = ::subxt_core::utils::AccountId32; - pub type Proxy = ::subxt_core::utils::AccountId32; - pub type CallHash = ::subxt_core::utils::H256; + pub type Real = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Proxy = ::subxt::ext::subxt_core::utils::AccountId32; + pub type CallHash = ::subxt::ext::subxt_core::utils::H256; } - impl ::subxt_core::events::StaticEvent for Announced { + impl ::subxt::ext::subxt_core::events::StaticEvent for Announced { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "Announced"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proxy was added."] pub struct ProxyAdded { pub delegator: proxy_added::Delegator, @@ -34347,28 +42116,28 @@ pub mod api { } pub mod proxy_added { use super::runtime_types; - pub type Delegator = ::subxt_core::utils::AccountId32; - pub type Delegatee = ::subxt_core::utils::AccountId32; + pub type Delegator = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Delegatee = ::subxt::ext::subxt_core::utils::AccountId32; pub type ProxyType = runtime_types::tangle_testnet_runtime::ProxyType; pub type Delay = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for ProxyAdded { + impl ::subxt::ext::subxt_core::events::StaticEvent for ProxyAdded { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyAdded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A proxy was removed."] pub struct ProxyRemoved { pub delegator: proxy_removed::Delegator, @@ -34378,12 +42147,12 @@ pub mod api { } pub mod proxy_removed { use super::runtime_types; - pub type Delegator = ::subxt_core::utils::AccountId32; - pub type Delegatee = ::subxt_core::utils::AccountId32; + pub type Delegator = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Delegatee = ::subxt::ext::subxt_core::utils::AccountId32; pub type ProxyType = runtime_types::tangle_testnet_runtime::ProxyType; pub type Delay = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for ProxyRemoved { + impl ::subxt::ext::subxt_core::events::StaticEvent for ProxyRemoved { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyRemoved"; } @@ -34397,28 +42166,28 @@ pub mod api { pub type Proxies = ( runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_proxy::ProxyDefinition< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::tangle_testnet_runtime::ProxyType, ::core::primitive::u64, >, >, ::core::primitive::u128, ); - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod announcements { use super::runtime_types; pub type Announcements = ( runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_proxy::Announcement< - ::subxt_core::utils::AccountId32, - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::H256, ::core::primitive::u64, >, >, ::core::primitive::u128, ); - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -34427,14 +42196,14 @@ pub mod api { #[doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::proxies::Proxies, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Proxy", "Proxies", (), @@ -34451,17 +42220,21 @@ pub mod api { pub fn proxies( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::proxies::Param0, + >, types::proxies::Proxies, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Proxy", "Proxies", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 223u8, 41u8, 16u8, 124u8, 14u8, 158u8, 113u8, 7u8, 229u8, 203u8, 172u8, 71u8, 221u8, 164u8, 20u8, 177u8, 252u8, 14u8, 117u8, 176u8, 21u8, @@ -34473,14 +42246,14 @@ pub mod api { #[doc = " The announcements made by the proxy (key)."] pub fn announcements_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::announcements::Announcements, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Proxy", "Announcements", (), @@ -34495,17 +42268,21 @@ pub mod api { pub fn announcements( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::announcements::Param0, + >, types::announcements::Announcements, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Proxy", "Announcements", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 36u8, 91u8, 194u8, 19u8, 186u8, 110u8, 217u8, 123u8, 101u8, 197u8, 249u8, 185u8, 42u8, 5u8, 244u8, 249u8, 18u8, 156u8, 41u8, 19u8, 86u8, @@ -34525,8 +42302,10 @@ pub mod api { #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] pub fn proxy_deposit_base( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Proxy", "ProxyDepositBase", [ @@ -34543,8 +42322,10 @@ pub mod api { #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] pub fn proxy_deposit_factor( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Proxy", "ProxyDepositFactor", [ @@ -34557,8 +42338,10 @@ pub mod api { #[doc = " The maximum amount of proxies allowed for a single account."] pub fn max_proxies( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Proxy", "MaxProxies", [ @@ -34572,8 +42355,10 @@ pub mod api { #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] pub fn max_pending( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Proxy", "MaxPending", [ @@ -34590,8 +42375,10 @@ pub mod api { #[doc = " bytes)."] pub fn announcement_deposit_base( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Proxy", "AnnouncementDepositBase", [ @@ -34607,8 +42394,10 @@ pub mod api { #[doc = " into a pre-existing storage value."] pub fn announcement_deposit_factor( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Proxy", "AnnouncementDepositFactor", [ @@ -34635,19 +42424,23 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::join_operators`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allows an account to join as an operator by providing a stake."] pub struct JoinOperators { pub bond_amount: join_operators::BondAmount, } @@ -34655,81 +42448,97 @@ pub mod api { use super::runtime_types; pub type BondAmount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for JoinOperators { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for JoinOperators { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "join_operators"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_leave_operators`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedules an operator to leave."] pub struct ScheduleLeaveOperators; - impl ::subxt_core::blocks::StaticExtrinsic for ScheduleLeaveOperators { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleLeaveOperators { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "schedule_leave_operators"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_leave_operators`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancels a scheduled leave for an operator."] pub struct CancelLeaveOperators; - impl ::subxt_core::blocks::StaticExtrinsic for CancelLeaveOperators { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelLeaveOperators { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "cancel_leave_operators"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute_leave_operators`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Executes a scheduled leave for an operator."] pub struct ExecuteLeaveOperators; - impl ::subxt_core::blocks::StaticExtrinsic for ExecuteLeaveOperators { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExecuteLeaveOperators { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "execute_leave_operators"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::operator_bond_more`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allows an operator to increase their stake."] pub struct OperatorBondMore { pub additional_bond: operator_bond_more::AdditionalBond, } @@ -34737,24 +42546,28 @@ pub mod api { use super::runtime_types; pub type AdditionalBond = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for OperatorBondMore { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for OperatorBondMore { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "operator_bond_more"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_operator_unstake`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedules an operator to decrease their stake."] pub struct ScheduleOperatorUnstake { pub unstake_amount: schedule_operator_unstake::UnstakeAmount, } @@ -34762,100 +42575,120 @@ pub mod api { use super::runtime_types; pub type UnstakeAmount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ScheduleOperatorUnstake { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleOperatorUnstake { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "schedule_operator_unstake"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute_operator_unstake`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Executes a scheduled stake decrease for an operator."] pub struct ExecuteOperatorUnstake; - impl ::subxt_core::blocks::StaticExtrinsic for ExecuteOperatorUnstake { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExecuteOperatorUnstake { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "execute_operator_unstake"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_operator_unstake`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancels a scheduled stake decrease for an operator."] pub struct CancelOperatorUnstake; - impl ::subxt_core::blocks::StaticExtrinsic for CancelOperatorUnstake { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelOperatorUnstake { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "cancel_operator_unstake"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::go_offline`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allows an operator to go offline."] pub struct GoOffline; - impl ::subxt_core::blocks::StaticExtrinsic for GoOffline { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for GoOffline { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "go_offline"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::go_online`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allows an operator to go online."] pub struct GoOnline; - impl ::subxt_core::blocks::StaticExtrinsic for GoOnline { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for GoOnline { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "go_online"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::deposit`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allows a user to deposit an asset."] pub struct Deposit { pub asset_id: deposit::AssetId, pub amount: deposit::Amount, @@ -34865,24 +42698,28 @@ pub mod api { pub type AssetId = ::core::primitive::u128; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Deposit { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Deposit { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "deposit"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_withdraw`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedules an withdraw request."] pub struct ScheduleWithdraw { pub asset_id: schedule_withdraw::AssetId, pub amount: schedule_withdraw::Amount, @@ -34892,43 +42729,51 @@ pub mod api { pub type AssetId = ::core::primitive::u128; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ScheduleWithdraw { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleWithdraw { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "schedule_withdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute_withdraw`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Executes a scheduled withdraw request."] pub struct ExecuteWithdraw; - impl ::subxt_core::blocks::StaticExtrinsic for ExecuteWithdraw { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExecuteWithdraw { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "execute_withdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_withdraw`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancels a scheduled withdraw request."] pub struct CancelWithdraw { pub asset_id: cancel_withdraw::AssetId, pub amount: cancel_withdraw::Amount, @@ -34938,24 +42783,28 @@ pub mod api { pub type AssetId = ::core::primitive::u128; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelWithdraw { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelWithdraw { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "cancel_withdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::delegate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Allows a user to delegate an amount of an asset to an operator."] pub struct Delegate { pub operator: delegate::Operator, pub asset_id: delegate::AssetId, @@ -34963,28 +42812,32 @@ pub mod api { } pub mod delegate { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type AssetId = ::core::primitive::u128; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Delegate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Delegate { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "delegate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_delegator_unstake`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Schedules a request to reduce a delegator's stake."] pub struct ScheduleDelegatorUnstake { pub operator: schedule_delegator_unstake::Operator, pub asset_id: schedule_delegator_unstake::AssetId, @@ -34992,47 +42845,55 @@ pub mod api { } pub mod schedule_delegator_unstake { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type AssetId = ::core::primitive::u128; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for ScheduleDelegatorUnstake { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ScheduleDelegatorUnstake { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "schedule_delegator_unstake"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute_delegator_unstake`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Executes a scheduled request to reduce a delegator's stake."] pub struct ExecuteDelegatorUnstake; - impl ::subxt_core::blocks::StaticExtrinsic for ExecuteDelegatorUnstake { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ExecuteDelegatorUnstake { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "execute_delegator_unstake"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_delegator_unstake`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Cancels a scheduled request to reduce a delegator's stake."] pub struct CancelDelegatorUnstake { pub operator: cancel_delegator_unstake::Operator, pub asset_id: cancel_delegator_unstake::AssetId, @@ -35040,57 +42901,65 @@ pub mod api { } pub mod cancel_delegator_unstake { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type AssetId = ::core::primitive::u128; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for CancelDelegatorUnstake { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CancelDelegatorUnstake { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "cancel_delegator_unstake"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_incentive_apy_and_cap`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Sets the APY and cap for a specific asset."] pub struct SetIncentiveApyAndCap { - pub pool_id: set_incentive_apy_and_cap::PoolId, + pub vault_id: set_incentive_apy_and_cap::VaultId, pub apy: set_incentive_apy_and_cap::Apy, pub cap: set_incentive_apy_and_cap::Cap, } pub mod set_incentive_apy_and_cap { use super::runtime_types; - pub type PoolId = ::core::primitive::u128; + pub type VaultId = ::core::primitive::u128; pub type Apy = runtime_types::sp_arithmetic::per_things::Percent; pub type Cap = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for SetIncentiveApyAndCap { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetIncentiveApyAndCap { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "set_incentive_apy_and_cap"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::whitelist_blueprint_for_rewards`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Whitelists a blueprint for rewards."] pub struct WhitelistBlueprintForRewards { pub blueprint_id: whitelist_blueprint_for_rewards::BlueprintId, } @@ -35098,49 +42967,53 @@ pub mod api { use super::runtime_types; pub type BlueprintId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for WhitelistBlueprintForRewards { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for WhitelistBlueprintForRewards { const PALLET: &'static str = "MultiAssetDelegation"; const CALL: &'static str = "whitelist_blueprint_for_rewards"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::manage_asset_in_pool`]."] - pub struct ManageAssetInPool { - pub pool_id: manage_asset_in_pool::PoolId, - pub asset_id: manage_asset_in_pool::AssetId, - pub action: manage_asset_in_pool::Action, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Manage asset id to vault rewards"] + pub struct ManageAssetInVault { + pub vault_id: manage_asset_in_vault::VaultId, + pub asset_id: manage_asset_in_vault::AssetId, + pub action: manage_asset_in_vault::Action, } - pub mod manage_asset_in_pool { + pub mod manage_asset_in_vault { use super::runtime_types; - pub type PoolId = ::core::primitive::u128; + pub type VaultId = ::core::primitive::u128; pub type AssetId = ::core::primitive::u128; pub type Action = runtime_types::pallet_multi_asset_delegation::types::rewards::AssetAction; } - impl ::subxt_core::blocks::StaticExtrinsic for ManageAssetInPool { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ManageAssetInVault { const PALLET: &'static str = "MultiAssetDelegation"; - const CALL: &'static str = "manage_asset_in_pool"; + const CALL: &'static str = "manage_asset_in_vault"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::join_operators`]."] + #[doc = "Allows an account to join as an operator by providing a stake."] pub fn join_operators( &self, bond_amount: types::join_operators::BondAmount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "join_operators", types::JoinOperators { bond_amount }, @@ -35152,11 +43025,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_leave_operators`]."] + #[doc = "Schedules an operator to leave."] pub fn schedule_leave_operators( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ScheduleLeaveOperators, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "schedule_leave_operators", types::ScheduleLeaveOperators {}, @@ -35167,11 +43042,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_leave_operators`]."] + #[doc = "Cancels a scheduled leave for an operator."] pub fn cancel_leave_operators( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "cancel_leave_operators", types::CancelLeaveOperators {}, @@ -35182,11 +43058,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::execute_leave_operators`]."] + #[doc = "Executes a scheduled leave for an operator."] pub fn execute_leave_operators( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ExecuteLeaveOperators, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "execute_leave_operators", types::ExecuteLeaveOperators {}, @@ -35198,12 +43076,12 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::operator_bond_more`]."] + #[doc = "Allows an operator to increase their stake."] pub fn operator_bond_more( &self, additional_bond: types::operator_bond_more::AdditionalBond, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "operator_bond_more", types::OperatorBondMore { additional_bond }, @@ -35215,12 +43093,14 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_operator_unstake`]."] + #[doc = "Schedules an operator to decrease their stake."] pub fn schedule_operator_unstake( &self, unstake_amount: types::schedule_operator_unstake::UnstakeAmount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ScheduleOperatorUnstake, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "schedule_operator_unstake", types::ScheduleOperatorUnstake { unstake_amount }, @@ -35231,11 +43111,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::execute_operator_unstake`]."] + #[doc = "Executes a scheduled stake decrease for an operator."] pub fn execute_operator_unstake( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ExecuteOperatorUnstake, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "execute_operator_unstake", types::ExecuteOperatorUnstake {}, @@ -35246,11 +43128,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_operator_unstake`]."] + #[doc = "Cancels a scheduled stake decrease for an operator."] pub fn cancel_operator_unstake( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::CancelOperatorUnstake, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "cancel_operator_unstake", types::CancelOperatorUnstake {}, @@ -35261,11 +43145,11 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::go_offline`]."] + #[doc = "Allows an operator to go offline."] pub fn go_offline( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "go_offline", types::GoOffline {}, @@ -35277,11 +43161,11 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::go_online`]."] + #[doc = "Allows an operator to go online."] pub fn go_online( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "go_online", types::GoOnline {}, @@ -35293,13 +43177,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::deposit`]."] + #[doc = "Allows a user to deposit an asset."] pub fn deposit( &self, asset_id: types::deposit::AssetId, amount: types::deposit::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "deposit", types::Deposit { asset_id, amount }, @@ -35311,13 +43195,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_withdraw`]."] + #[doc = "Schedules an withdraw request."] pub fn schedule_withdraw( &self, asset_id: types::schedule_withdraw::AssetId, amount: types::schedule_withdraw::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "schedule_withdraw", types::ScheduleWithdraw { asset_id, amount }, @@ -35329,11 +43213,11 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::execute_withdraw`]."] + #[doc = "Executes a scheduled withdraw request."] pub fn execute_withdraw( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "execute_withdraw", types::ExecuteWithdraw {}, @@ -35344,13 +43228,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_withdraw`]."] + #[doc = "Cancels a scheduled withdraw request."] pub fn cancel_withdraw( &self, asset_id: types::cancel_withdraw::AssetId, amount: types::cancel_withdraw::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "cancel_withdraw", types::CancelWithdraw { asset_id, amount }, @@ -35361,14 +43245,14 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::delegate`]."] + #[doc = "Allows a user to delegate an amount of an asset to an operator."] pub fn delegate( &self, operator: types::delegate::Operator, asset_id: types::delegate::AssetId, amount: types::delegate::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "delegate", types::Delegate { operator, asset_id, amount }, @@ -35379,14 +43263,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_delegator_unstake`]."] + #[doc = "Schedules a request to reduce a delegator's stake."] pub fn schedule_delegator_unstake( &self, operator: types::schedule_delegator_unstake::Operator, asset_id: types::schedule_delegator_unstake::AssetId, amount: types::schedule_delegator_unstake::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ScheduleDelegatorUnstake, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "schedule_delegator_unstake", types::ScheduleDelegatorUnstake { operator, asset_id, amount }, @@ -35397,11 +43283,13 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::execute_delegator_unstake`]."] + #[doc = "Executes a scheduled request to reduce a delegator's stake."] pub fn execute_delegator_unstake( &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::ExecuteDelegatorUnstake, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "execute_delegator_unstake", types::ExecuteDelegatorUnstake {}, @@ -35412,14 +43300,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_delegator_unstake`]."] + #[doc = "Cancels a scheduled request to reduce a delegator's stake."] pub fn cancel_delegator_unstake( &self, operator: types::cancel_delegator_unstake::Operator, asset_id: types::cancel_delegator_unstake::AssetId, amount: types::cancel_delegator_unstake::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::CancelDelegatorUnstake, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "cancel_delegator_unstake", types::CancelDelegatorUnstake { operator, asset_id, amount }, @@ -35431,31 +43321,35 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_incentive_apy_and_cap`]."] + #[doc = "Sets the APY and cap for a specific asset."] pub fn set_incentive_apy_and_cap( &self, - pool_id: types::set_incentive_apy_and_cap::PoolId, + vault_id: types::set_incentive_apy_and_cap::VaultId, apy: types::set_incentive_apy_and_cap::Apy, cap: types::set_incentive_apy_and_cap::Cap, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::SetIncentiveApyAndCap, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "set_incentive_apy_and_cap", - types::SetIncentiveApyAndCap { pool_id, apy, cap }, + types::SetIncentiveApyAndCap { vault_id, apy, cap }, [ - 14u8, 124u8, 76u8, 147u8, 132u8, 187u8, 69u8, 246u8, 153u8, 108u8, - 236u8, 19u8, 141u8, 104u8, 228u8, 176u8, 13u8, 231u8, 149u8, 132u8, - 226u8, 11u8, 170u8, 90u8, 3u8, 159u8, 241u8, 193u8, 97u8, 196u8, 212u8, - 241u8, + 176u8, 74u8, 10u8, 166u8, 121u8, 38u8, 138u8, 18u8, 107u8, 106u8, + 229u8, 224u8, 59u8, 92u8, 15u8, 203u8, 132u8, 253u8, 4u8, 144u8, 218u8, + 106u8, 239u8, 142u8, 237u8, 241u8, 177u8, 94u8, 61u8, 183u8, 144u8, + 145u8, ], ) } - #[doc = "See [`Pallet::whitelist_blueprint_for_rewards`]."] + #[doc = "Whitelists a blueprint for rewards."] pub fn whitelist_blueprint_for_rewards( &self, blueprint_id: types::whitelist_blueprint_for_rewards::BlueprintId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::WhitelistBlueprintForRewards, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", "whitelist_blueprint_for_rewards", types::WhitelistBlueprintForRewards { blueprint_id }, @@ -35467,22 +43361,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::manage_asset_in_pool`]."] - pub fn manage_asset_in_pool( + #[doc = "Manage asset id to vault rewards"] + pub fn manage_asset_in_vault( &self, - pool_id: types::manage_asset_in_pool::PoolId, - asset_id: types::manage_asset_in_pool::AssetId, - action: types::manage_asset_in_pool::Action, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + vault_id: types::manage_asset_in_vault::VaultId, + asset_id: types::manage_asset_in_vault::AssetId, + action: types::manage_asset_in_vault::Action, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "MultiAssetDelegation", - "manage_asset_in_pool", - types::ManageAssetInPool { pool_id, asset_id, action }, + "manage_asset_in_vault", + types::ManageAssetInVault { vault_id, asset_id, action }, [ - 144u8, 244u8, 190u8, 106u8, 70u8, 105u8, 245u8, 42u8, 187u8, 243u8, - 43u8, 73u8, 15u8, 92u8, 193u8, 21u8, 58u8, 142u8, 169u8, 139u8, 164u8, - 7u8, 151u8, 182u8, 188u8, 214u8, 193u8, 162u8, 151u8, 16u8, 166u8, - 43u8, + 148u8, 94u8, 58u8, 190u8, 112u8, 51u8, 136u8, 40u8, 105u8, 143u8, 71u8, + 172u8, 40u8, 71u8, 175u8, 236u8, 203u8, 248u8, 29u8, 86u8, 112u8, 66u8, + 33u8, 197u8, 130u8, 45u8, 66u8, 182u8, 231u8, 151u8, 170u8, 241u8, ], ) } @@ -35493,118 +43387,118 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has joined."] pub struct OperatorJoined { pub who: operator_joined::Who, } pub mod operator_joined { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorJoined { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorJoined { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorJoined"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has scheduled to leave."] pub struct OperatorLeavingScheduled { pub who: operator_leaving_scheduled::Who, } pub mod operator_leaving_scheduled { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorLeavingScheduled { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorLeavingScheduled { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorLeavingScheduled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has cancelled their leave request."] pub struct OperatorLeaveCancelled { pub who: operator_leave_cancelled::Who, } pub mod operator_leave_cancelled { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorLeaveCancelled { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorLeaveCancelled { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorLeaveCancelled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has executed their leave request."] pub struct OperatorLeaveExecuted { pub who: operator_leave_executed::Who, } pub mod operator_leave_executed { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorLeaveExecuted { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorLeaveExecuted { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorLeaveExecuted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has increased their stake."] pub struct OperatorBondMore { pub who: operator_bond_more::Who, @@ -35612,26 +43506,26 @@ pub mod api { } pub mod operator_bond_more { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type AdditionalBond = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for OperatorBondMore { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorBondMore { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorBondMore"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has scheduled to decrease their stake."] pub struct OperatorBondLessScheduled { pub who: operator_bond_less_scheduled::Who, @@ -35639,126 +43533,126 @@ pub mod api { } pub mod operator_bond_less_scheduled { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type UnstakeAmount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for OperatorBondLessScheduled { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorBondLessScheduled { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorBondLessScheduled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has executed their stake decrease."] pub struct OperatorBondLessExecuted { pub who: operator_bond_less_executed::Who, } pub mod operator_bond_less_executed { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorBondLessExecuted { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorBondLessExecuted { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorBondLessExecuted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has cancelled their stake decrease request."] pub struct OperatorBondLessCancelled { pub who: operator_bond_less_cancelled::Who, } pub mod operator_bond_less_cancelled { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorBondLessCancelled { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorBondLessCancelled { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorBondLessCancelled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has gone offline."] pub struct OperatorWentOffline { pub who: operator_went_offline::Who, } pub mod operator_went_offline { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorWentOffline { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorWentOffline { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorWentOffline"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has gone online."] pub struct OperatorWentOnline { pub who: operator_went_online::Who, } pub mod operator_went_online { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for OperatorWentOnline { + impl ::subxt::ext::subxt_core::events::StaticEvent for OperatorWentOnline { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "OperatorWentOnline"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A deposit has been made."] pub struct Deposited { pub who: deposited::Who, @@ -35767,27 +43661,27 @@ pub mod api { } pub mod deposited { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Deposited { + impl ::subxt::ext::subxt_core::events::StaticEvent for Deposited { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "Deposited"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An withdraw has been scheduled."] pub struct Scheduledwithdraw { pub who: scheduledwithdraw::Who, @@ -35796,77 +43690,77 @@ pub mod api { } pub mod scheduledwithdraw { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Scheduledwithdraw { + impl ::subxt::ext::subxt_core::events::StaticEvent for Scheduledwithdraw { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "Scheduledwithdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An withdraw has been executed."] pub struct Executedwithdraw { pub who: executedwithdraw::Who, } pub mod executedwithdraw { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Executedwithdraw { + impl ::subxt::ext::subxt_core::events::StaticEvent for Executedwithdraw { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "Executedwithdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An withdraw has been cancelled."] pub struct Cancelledwithdraw { pub who: cancelledwithdraw::Who, } pub mod cancelledwithdraw { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for Cancelledwithdraw { + impl ::subxt::ext::subxt_core::events::StaticEvent for Cancelledwithdraw { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "Cancelledwithdraw"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A delegation has been made."] pub struct Delegated { pub who: delegated::Who, @@ -35876,28 +43770,28 @@ pub mod api { } pub mod delegated { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Delegated { + impl ::subxt::ext::subxt_core::events::StaticEvent for Delegated { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "Delegated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A delegator unstake request has been scheduled."] pub struct ScheduledDelegatorBondLess { pub who: scheduled_delegator_bond_less::Who, @@ -35907,107 +43801,107 @@ pub mod api { } pub mod scheduled_delegator_bond_less { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; pub type AssetId = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for ScheduledDelegatorBondLess { + impl ::subxt::ext::subxt_core::events::StaticEvent for ScheduledDelegatorBondLess { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "ScheduledDelegatorBondLess"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A delegator unstake request has been executed."] pub struct ExecutedDelegatorBondLess { pub who: executed_delegator_bond_less::Who, } pub mod executed_delegator_bond_less { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for ExecutedDelegatorBondLess { + impl ::subxt::ext::subxt_core::events::StaticEvent for ExecutedDelegatorBondLess { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "ExecutedDelegatorBondLess"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A delegator unstake request has been cancelled."] pub struct CancelledDelegatorBondLess { pub who: cancelled_delegator_bond_less::Who, } pub mod cancelled_delegator_bond_less { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for CancelledDelegatorBondLess { + impl ::subxt::ext::subxt_core::events::StaticEvent for CancelledDelegatorBondLess { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "CancelledDelegatorBondLess"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Event emitted when an incentive APY and cap are set for a reward pool"] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Event emitted when an incentive APY and cap are set for a reward vault"] pub struct IncentiveAPYAndCapSet { - pub pool_id: incentive_apy_and_cap_set::PoolId, + pub vault_id: incentive_apy_and_cap_set::VaultId, pub apy: incentive_apy_and_cap_set::Apy, pub cap: incentive_apy_and_cap_set::Cap, } pub mod incentive_apy_and_cap_set { use super::runtime_types; - pub type PoolId = ::core::primitive::u128; + pub type VaultId = ::core::primitive::u128; pub type Apy = runtime_types::sp_arithmetic::per_things::Percent; pub type Cap = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for IncentiveAPYAndCapSet { + impl ::subxt::ext::subxt_core::events::StaticEvent for IncentiveAPYAndCapSet { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "IncentiveAPYAndCapSet"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Event emitted when a blueprint is whitelisted for rewards"] pub struct BlueprintWhitelisted { pub blueprint_id: blueprint_whitelisted::BlueprintId, @@ -36016,41 +43910,41 @@ pub mod api { use super::runtime_types; pub type BlueprintId = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for BlueprintWhitelisted { + impl ::subxt::ext::subxt_core::events::StaticEvent for BlueprintWhitelisted { const PALLET: &'static str = "MultiAssetDelegation"; const EVENT: &'static str = "BlueprintWhitelisted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Asset has been updated to reward pool"] - pub struct AssetUpdatedInPool { - pub who: asset_updated_in_pool::Who, - pub pool_id: asset_updated_in_pool::PoolId, - pub asset_id: asset_updated_in_pool::AssetId, - pub action: asset_updated_in_pool::Action, - } - pub mod asset_updated_in_pool { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "Asset has been updated to reward vault"] + pub struct AssetUpdatedInVault { + pub who: asset_updated_in_vault::Who, + pub vault_id: asset_updated_in_vault::VaultId, + pub asset_id: asset_updated_in_vault::AssetId, + pub action: asset_updated_in_vault::Action, + } + pub mod asset_updated_in_vault { use super::runtime_types; - pub type Who = ::subxt_core::utils::AccountId32; - pub type PoolId = ::core::primitive::u128; + pub type Who = ::subxt::ext::subxt_core::utils::AccountId32; + pub type VaultId = ::core::primitive::u128; pub type AssetId = ::core::primitive::u128; pub type Action = runtime_types::pallet_multi_asset_delegation::types::rewards::AssetAction; } - impl ::subxt_core::events::StaticEvent for AssetUpdatedInPool { + impl ::subxt::ext::subxt_core::events::StaticEvent for AssetUpdatedInVault { const PALLET: &'static str = "MultiAssetDelegation"; - const EVENT: &'static str = "AssetUpdatedInPool"; + const EVENT: &'static str = "AssetUpdatedInVault"; } } pub mod storage { @@ -36059,8 +43953,8 @@ pub mod api { use super::runtime_types; pub mod operators { use super::runtime_types; - pub type Operators = runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorMetadata < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u128 > ; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Operators = runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorMetadata < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u128 > ; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod current_round { use super::runtime_types; @@ -36068,23 +43962,24 @@ pub mod api { } pub mod at_stake { use super::runtime_types; - pub type AtStake = runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorSnapshot < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u128 > ; + pub type AtStake = runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorSnapshot < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u128 > ; pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod delegators { use super::runtime_types; - pub type Delegators = runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: DelegatorMetadata < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u128 > ; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Delegators = runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: DelegatorMetadata < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u128 > ; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } - pub mod reward_pools { + pub mod reward_vaults { use super::runtime_types; - pub type RewardPools = ::subxt_core::alloc::vec::Vec<::core::primitive::u128>; + pub type RewardVaults = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u128>; pub type Param0 = ::core::primitive::u128; } - pub mod asset_lookup_reward_pools { + pub mod asset_lookup_reward_vaults { use super::runtime_types; - pub type AssetLookupRewardPools = ::core::primitive::u128; + pub type AssetLookupRewardVaults = ::core::primitive::u128; pub type Param0 = ::core::primitive::u128; } pub mod reward_config_storage { @@ -36101,14 +43996,14 @@ pub mod api { #[doc = " Storage for operator information."] pub fn operators_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::operators::Operators, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "Operators", (), @@ -36124,17 +44019,21 @@ pub mod api { pub fn operators( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::operators::Param0, + >, types::operators::Operators, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "Operators", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 142u8, 248u8, 178u8, 68u8, 67u8, 114u8, 211u8, 90u8, 106u8, 188u8, 23u8, 230u8, 72u8, 190u8, 46u8, 12u8, 223u8, 19u8, 242u8, 35u8, 177u8, @@ -36146,14 +44045,14 @@ pub mod api { #[doc = " Storage for the current round."] pub fn current_round( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::current_round::CurrentRound, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "CurrentRound", (), @@ -36168,14 +44067,14 @@ pub mod api { #[doc = " Snapshot of collator delegation stake at the start of the round."] pub fn at_stake_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::at_stake::AtStake, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "AtStake", (), @@ -36190,17 +44089,21 @@ pub mod api { pub fn at_stake_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::at_stake::Param0, + >, types::at_stake::AtStake, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "AtStake", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 103u8, 69u8, 78u8, 81u8, 1u8, 242u8, 233u8, 40u8, 135u8, 38u8, 63u8, 65u8, 146u8, 83u8, 53u8, 208u8, 85u8, 157u8, 223u8, 47u8, 202u8, 190u8, @@ -36213,22 +44116,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::at_stake::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::at_stake::Param1, + >, ), types::at_stake::AtStake, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "AtStake", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 103u8, 69u8, 78u8, 81u8, 1u8, 242u8, 233u8, 40u8, 135u8, 38u8, 63u8, @@ -36240,14 +44151,14 @@ pub mod api { #[doc = " Storage for delegator information."] pub fn delegators_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::delegators::Delegators, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "Delegators", (), @@ -36263,17 +44174,21 @@ pub mod api { pub fn delegators( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::delegators::Param0, + >, types::delegators::Delegators, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "Delegators", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 188u8, 252u8, 192u8, 65u8, 173u8, 39u8, 31u8, 73u8, 153u8, 225u8, 224u8, 38u8, 87u8, 15u8, 139u8, 12u8, 211u8, 11u8, 132u8, 3u8, 176u8, @@ -36282,91 +44197,101 @@ pub mod api { ], ) } - #[doc = " Storage for the reward pools"] - pub fn reward_pools_iter( + #[doc = " Storage for the reward vaults"] + pub fn reward_vaults_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), - types::reward_pools::RewardPools, + types::reward_vaults::RewardVaults, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", - "RewardPools", + "RewardVaults", (), [ - 144u8, 56u8, 52u8, 17u8, 82u8, 26u8, 196u8, 227u8, 117u8, 83u8, 117u8, - 67u8, 76u8, 9u8, 130u8, 255u8, 238u8, 252u8, 64u8, 130u8, 82u8, 30u8, - 169u8, 33u8, 246u8, 206u8, 249u8, 141u8, 220u8, 28u8, 51u8, 40u8, + 191u8, 72u8, 49u8, 249u8, 166u8, 45u8, 60u8, 215u8, 67u8, 118u8, 9u8, + 75u8, 33u8, 45u8, 192u8, 197u8, 210u8, 85u8, 205u8, 130u8, 236u8, + 219u8, 57u8, 14u8, 150u8, 246u8, 242u8, 131u8, 218u8, 190u8, 155u8, + 50u8, ], ) } - #[doc = " Storage for the reward pools"] - pub fn reward_pools( + #[doc = " Storage for the reward vaults"] + pub fn reward_vaults( &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::reward_pools::RewardPools, - ::subxt_core::utils::Yes, + _0: impl ::core::borrow::Borrow, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::reward_vaults::Param0, + >, + types::reward_vaults::RewardVaults, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", - "RewardPools", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + "RewardVaults", + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 144u8, 56u8, 52u8, 17u8, 82u8, 26u8, 196u8, 227u8, 117u8, 83u8, 117u8, - 67u8, 76u8, 9u8, 130u8, 255u8, 238u8, 252u8, 64u8, 130u8, 82u8, 30u8, - 169u8, 33u8, 246u8, 206u8, 249u8, 141u8, 220u8, 28u8, 51u8, 40u8, + 191u8, 72u8, 49u8, 249u8, 166u8, 45u8, 60u8, 215u8, 67u8, 118u8, 9u8, + 75u8, 33u8, 45u8, 192u8, 197u8, 210u8, 85u8, 205u8, 130u8, 236u8, + 219u8, 57u8, 14u8, 150u8, 246u8, 242u8, 131u8, 218u8, 190u8, 155u8, + 50u8, ], ) } - #[doc = " Storage for the reward pools"] - pub fn asset_lookup_reward_pools_iter( + #[doc = " Storage for the reward vaults"] + pub fn asset_lookup_reward_vaults_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), - types::asset_lookup_reward_pools::AssetLookupRewardPools, + types::asset_lookup_reward_vaults::AssetLookupRewardVaults, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", - "AssetLookupRewardPools", + "AssetLookupRewardVaults", (), [ - 9u8, 54u8, 14u8, 131u8, 23u8, 116u8, 24u8, 89u8, 217u8, 68u8, 226u8, - 247u8, 101u8, 208u8, 45u8, 22u8, 94u8, 240u8, 85u8, 31u8, 220u8, 28u8, - 126u8, 67u8, 143u8, 135u8, 123u8, 214u8, 10u8, 208u8, 114u8, 138u8, + 77u8, 190u8, 158u8, 161u8, 51u8, 82u8, 84u8, 39u8, 128u8, 21u8, 33u8, + 248u8, 135u8, 227u8, 136u8, 199u8, 68u8, 229u8, 79u8, 149u8, 106u8, + 196u8, 45u8, 29u8, 228u8, 141u8, 16u8, 154u8, 139u8, 153u8, 128u8, + 23u8, ], ) } - #[doc = " Storage for the reward pools"] - pub fn asset_lookup_reward_pools( + #[doc = " Storage for the reward vaults"] + pub fn asset_lookup_reward_vaults( &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< - types::asset_lookup_reward_pools::Param0, + _0: impl ::core::borrow::Borrow, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::asset_lookup_reward_vaults::Param0, >, - types::asset_lookup_reward_pools::AssetLookupRewardPools, - ::subxt_core::utils::Yes, + types::asset_lookup_reward_vaults::AssetLookupRewardVaults, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", - "AssetLookupRewardPools", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + "AssetLookupRewardVaults", + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 9u8, 54u8, 14u8, 131u8, 23u8, 116u8, 24u8, 89u8, 217u8, 68u8, 226u8, - 247u8, 101u8, 208u8, 45u8, 22u8, 94u8, 240u8, 85u8, 31u8, 220u8, 28u8, - 126u8, 67u8, 143u8, 135u8, 123u8, 214u8, 10u8, 208u8, 114u8, 138u8, + 77u8, 190u8, 158u8, 161u8, 51u8, 82u8, 84u8, 39u8, 128u8, 21u8, 33u8, + 248u8, 135u8, 227u8, 136u8, 199u8, 68u8, 229u8, 79u8, 149u8, 106u8, + 196u8, 45u8, 29u8, 228u8, 141u8, 16u8, 154u8, 139u8, 153u8, 128u8, + 23u8, ], ) } @@ -36374,14 +44299,14 @@ pub mod api { #[doc = " blueprints."] pub fn reward_config_storage( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::reward_config_storage::RewardConfigStorage, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "MultiAssetDelegation", "RewardConfigStorage", (), @@ -36401,8 +44326,10 @@ pub mod api { #[doc = " The minimum amount of stake required for an operator."] pub fn min_operator_bond_amount( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "MultiAssetDelegation", "MinOperatorBondAmount", [ @@ -36415,8 +44342,10 @@ pub mod api { #[doc = " The minimum amount of stake required for a delegate."] pub fn min_delegate_amount( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u128> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u128, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "MultiAssetDelegation", "MinDelegateAmount", [ @@ -36429,8 +44358,10 @@ pub mod api { #[doc = " The duration for which the stake is locked."] pub fn bond_duration( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "MultiAssetDelegation", "BondDuration", [ @@ -36444,8 +44375,10 @@ pub mod api { #[doc = " Number of rounds that operators remain bonded before the exit request is executable."] pub fn leave_operators_delay( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "MultiAssetDelegation", "LeaveOperatorsDelay", [ @@ -36459,8 +44392,10 @@ pub mod api { #[doc = " Number of rounds operator requests to decrease self-stake must wait to be executable."] pub fn operator_bond_less_delay( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "MultiAssetDelegation", "OperatorBondLessDelay", [ @@ -36474,8 +44409,10 @@ pub mod api { #[doc = " Number of rounds that delegators remain bonded before the exit request is executable."] pub fn leave_delegators_delay( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "MultiAssetDelegation", "LeaveDelegatorsDelay", [ @@ -36489,8 +44426,10 @@ pub mod api { #[doc = " Number of rounds that delegation unstake requests must wait before being executable."] pub fn delegation_bond_less_delay( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "MultiAssetDelegation", "DelegationBondLessDelay", [ @@ -36518,19 +44457,30 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::create_blueprint`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Create a new service blueprint."] + #[doc = ""] + #[doc = "A Service Blueprint is a template for a service that can be instantiated later on by a"] + #[doc = "user."] + #[doc = ""] + #[doc = "# Parameters"] + #[doc = "- `origin`: The account that is creating the service blueprint."] + #[doc = "- `blueprint`: The blueprint of the service."] pub struct CreateBlueprint { pub blueprint: create_blueprint::Blueprint, } @@ -36539,24 +44489,36 @@ pub mod api { pub type Blueprint = runtime_types::tangle_primitives::services::ServiceBlueprint; } - impl ::subxt_core::blocks::StaticExtrinsic for CreateBlueprint { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CreateBlueprint { const PALLET: &'static str = "Services"; const CALL: &'static str = "create_blueprint"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::pre_register`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Pre-register the caller as an operator for a specific blueprint."] + #[doc = ""] + #[doc = "The caller can pre-register for a blueprint, which will emit a `PreRegistration` event."] + #[doc = "This event can be listened to by the operator node to execute the custom blueprint's"] + #[doc = "registration function."] + #[doc = ""] + #[doc = "# Parameters"] + #[doc = "- `origin`: The account that is pre-registering for the service blueprint."] + #[doc = "- `blueprint_id`: The ID of the service blueprint."] pub struct PreRegister { #[codec(compact)] pub blueprint_id: pre_register::BlueprintId, @@ -36565,24 +44527,31 @@ pub mod api { use super::runtime_types; pub type BlueprintId = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for PreRegister { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PreRegister { const PALLET: &'static str = "Services"; const CALL: &'static str = "pre_register"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::register`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Register the caller as an operator for a specific blueprint."] + #[doc = ""] + #[doc = "The caller may require an approval first before they can accept to provide the service"] + #[doc = "for the users."] pub struct Register { #[codec(compact)] pub blueprint_id: register::BlueprintId, @@ -36594,30 +44563,38 @@ pub mod api { pub type BlueprintId = ::core::primitive::u64; pub type Preferences = runtime_types::tangle_primitives::services::OperatorPreferences; - pub type RegistrationArgs = ::subxt_core::alloc::vec::Vec< + pub type RegistrationArgs = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Register { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Register { const PALLET: &'static str = "Services"; const CALL: &'static str = "register"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::unregister`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unregister the caller from being an operator for the service blueprint"] + #[doc = "so that, no more services will assigned to the caller for this specific blueprint."] + #[doc = "Note that, the caller needs to keep providing service for other active service"] + #[doc = "that uses this blueprint, until the end of service time, otherwise they may get reported"] + #[doc = "and slashed."] pub struct Unregister { #[codec(compact)] pub blueprint_id: unregister::BlueprintId, @@ -36626,120 +44603,153 @@ pub mod api { use super::runtime_types; pub type BlueprintId = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for Unregister { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Unregister { const PALLET: &'static str = "Services"; const CALL: &'static str = "unregister"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::update_approval_preference`."] - pub struct UpdateApprovalPreference { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Update the price targets for the caller for a specific service blueprint."] + #[doc = ""] + #[doc = "See [`Self::register`] for more information."] + pub struct UpdatePriceTargets { #[codec(compact)] - pub blueprint_id: update_approval_preference::BlueprintId, - pub approval_preference: update_approval_preference::ApprovalPreference, + pub blueprint_id: update_price_targets::BlueprintId, + pub price_targets: update_price_targets::PriceTargets, } - pub mod update_approval_preference { + pub mod update_price_targets { use super::runtime_types; pub type BlueprintId = ::core::primitive::u64; - pub type ApprovalPreference = - runtime_types::tangle_primitives::services::ApprovalPreference; + pub type PriceTargets = + runtime_types::tangle_primitives::services::PriceTargets; } - impl ::subxt_core::blocks::StaticExtrinsic for UpdateApprovalPreference { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UpdatePriceTargets { const PALLET: &'static str = "Services"; - const CALL: &'static str = "update_approval_preference"; + const CALL: &'static str = "update_price_targets"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::request`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Request a new service to be initiated using the provided blueprint with a list of"] + #[doc = "operators that will run your service. Optionally, you can specifiy who is permitted"] + #[doc = "caller of this service, by default only the caller is allowed to call the service."] pub struct Request { #[codec(compact)] pub blueprint_id: request::BlueprintId, pub permitted_callers: request::PermittedCallers, - pub service_providers: request::ServiceProviders, + pub operators: request::Operators, + pub request_args: request::RequestArgs, + pub assets: request::Assets, #[codec(compact)] pub ttl: request::Ttl, - pub request_args: request::RequestArgs, } pub mod request { use super::runtime_types; pub type BlueprintId = ::core::primitive::u64; - pub type PermittedCallers = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; - pub type ServiceProviders = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; - pub type Ttl = ::core::primitive::u64; - pub type RequestArgs = ::subxt_core::alloc::vec::Vec< + pub type PermittedCallers = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; + pub type Operators = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; + pub type RequestArgs = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; + pub type Assets = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u128>; + pub type Ttl = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for Request { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Request { const PALLET: &'static str = "Services"; const CALL: &'static str = "request"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::approve`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Approve a service request, so that the service can be initiated."] + #[doc = ""] + #[doc = "The `restaking_percent` is the percentage of the restaked tokens that will be exposed to"] + #[doc = "the service."] pub struct Approve { #[codec(compact)] pub request_id: approve::RequestId, + #[codec(compact)] + pub restaking_percent: approve::RestakingPercent, } pub mod approve { use super::runtime_types; pub type RequestId = ::core::primitive::u64; + pub type RestakingPercent = runtime_types::sp_arithmetic::per_things::Percent; } - impl ::subxt_core::blocks::StaticExtrinsic for Approve { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Approve { const PALLET: &'static str = "Services"; const CALL: &'static str = "approve"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::reject`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Reject a service request."] + #[doc = "The service will not be initiated, and the requester will need to update the service"] + #[doc = "request."] pub struct Reject { #[codec(compact)] pub request_id: reject::RequestId, @@ -36748,24 +44758,28 @@ pub mod api { use super::runtime_types; pub type RequestId = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for Reject { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Reject { const PALLET: &'static str = "Services"; const CALL: &'static str = "reject"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::terminate`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Terminates the service by the owner of the service."] pub struct Terminate { #[codec(compact)] pub service_id: terminate::ServiceId, @@ -36774,24 +44788,29 @@ pub mod api { use super::runtime_types; pub type ServiceId = ::core::primitive::u64; } - impl ::subxt_core::blocks::StaticExtrinsic for Terminate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Terminate { const PALLET: &'static str = "Services"; const CALL: &'static str = "terminate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::call`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Call a Job in the service."] + #[doc = "The caller needs to be the owner of the service, or a permitted caller."] pub struct Call { #[codec(compact)] pub service_id: call::ServiceId, @@ -36803,30 +44822,34 @@ pub mod api { use super::runtime_types; pub type ServiceId = ::core::primitive::u64; pub type Job = ::core::primitive::u8; - pub type Args = ::subxt_core::alloc::vec::Vec< + pub type Args = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::blocks::StaticExtrinsic for Call { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Call { const PALLET: &'static str = "Services"; const CALL: &'static str = "call"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See `Pallet::submit_result`."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Submit the job result by using the service ID and call ID."] pub struct SubmitResult { #[codec(compact)] pub service_id: submit_result::ServiceId, @@ -36838,41 +44861,131 @@ pub mod api { use super::runtime_types; pub type ServiceId = ::core::primitive::u64; pub type CallId = ::core::primitive::u64; - pub type Result = ::subxt_core::alloc::vec::Vec< + pub type Result = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SubmitResult { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SubmitResult { const PALLET: &'static str = "Services"; const CALL: &'static str = "submit_result"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Slash an operator (offender) for a service id with a given percent of their exposed stake for that service."] + #[doc = ""] + #[doc = "The caller needs to be an authorized Slash Origin for this service."] + #[doc = "Note that this does not apply the slash directly, but instead schedules a deferred call to apply the slash"] + #[doc = "by another entity."] + pub struct Slash { + pub offender: slash::Offender, + #[codec(compact)] + pub service_id: slash::ServiceId, + #[codec(compact)] + pub percent: slash::Percent, + } + pub mod slash { + use super::runtime_types; + pub type Offender = ::subxt::ext::subxt_core::utils::AccountId32; + pub type ServiceId = ::core::primitive::u64; + pub type Percent = runtime_types::sp_arithmetic::per_things::Percent; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Slash { + const PALLET: &'static str = "Services"; + const CALL: &'static str = "slash"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Dispute an [UnappliedSlash] for a given era and index."] + #[doc = ""] + #[doc = "The caller needs to be an authorized Dispute Origin for the service in the [UnappliedSlash]."] + pub struct Dispute { + #[codec(compact)] + pub era: dispute::Era, + #[codec(compact)] + pub index: dispute::Index, + } + pub mod dispute { + use super::runtime_types; + pub type Era = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Dispute { + const PALLET: &'static str = "Services"; + const CALL: &'static str = "dispute"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See `Pallet::create_blueprint`."] + #[doc = "Create a new service blueprint."] + #[doc = ""] + #[doc = "A Service Blueprint is a template for a service that can be instantiated later on by a"] + #[doc = "user."] + #[doc = ""] + #[doc = "# Parameters"] + #[doc = "- `origin`: The account that is creating the service blueprint."] + #[doc = "- `blueprint`: The blueprint of the service."] pub fn create_blueprint( &self, blueprint: types::create_blueprint::Blueprint, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "create_blueprint", types::CreateBlueprint { blueprint }, [ - 203u8, 166u8, 83u8, 86u8, 223u8, 244u8, 31u8, 30u8, 85u8, 255u8, 43u8, - 184u8, 202u8, 224u8, 12u8, 74u8, 57u8, 224u8, 106u8, 2u8, 37u8, 217u8, - 61u8, 214u8, 12u8, 255u8, 127u8, 110u8, 16u8, 213u8, 249u8, 198u8, + 242u8, 254u8, 204u8, 105u8, 189u8, 10u8, 250u8, 225u8, 217u8, 31u8, + 250u8, 222u8, 81u8, 115u8, 244u8, 237u8, 248u8, 162u8, 154u8, 167u8, + 0u8, 62u8, 9u8, 226u8, 171u8, 159u8, 234u8, 77u8, 80u8, 188u8, 165u8, + 79u8, ], ) } - #[doc = "See `Pallet::pre_register`."] + #[doc = "Pre-register the caller as an operator for a specific blueprint."] + #[doc = ""] + #[doc = "The caller can pre-register for a blueprint, which will emit a `PreRegistration` event."] + #[doc = "This event can be listened to by the operator node to execute the custom blueprint's"] + #[doc = "registration function."] + #[doc = ""] + #[doc = "# Parameters"] + #[doc = "- `origin`: The account that is pre-registering for the service blueprint."] + #[doc = "- `blueprint_id`: The ID of the service blueprint."] pub fn pre_register( &self, blueprint_id: types::pre_register::BlueprintId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "pre_register", types::PreRegister { blueprint_id }, @@ -36883,31 +44996,37 @@ pub mod api { ], ) } - #[doc = "See `Pallet::register`."] + #[doc = "Register the caller as an operator for a specific blueprint."] + #[doc = ""] + #[doc = "The caller may require an approval first before they can accept to provide the service"] + #[doc = "for the users."] pub fn register( &self, blueprint_id: types::register::BlueprintId, preferences: types::register::Preferences, registration_args: types::register::RegistrationArgs, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "register", types::Register { blueprint_id, preferences, registration_args }, [ - 204u8, 245u8, 91u8, 161u8, 225u8, 220u8, 59u8, 68u8, 189u8, 32u8, - 170u8, 218u8, 247u8, 143u8, 130u8, 136u8, 73u8, 156u8, 60u8, 154u8, - 135u8, 35u8, 244u8, 12u8, 137u8, 55u8, 63u8, 108u8, 154u8, 230u8, - 218u8, 26u8, + 55u8, 119u8, 184u8, 246u8, 106u8, 51u8, 174u8, 112u8, 134u8, 83u8, 8u8, + 14u8, 97u8, 158u8, 51u8, 75u8, 95u8, 82u8, 96u8, 139u8, 135u8, 212u8, + 55u8, 160u8, 221u8, 21u8, 91u8, 7u8, 111u8, 70u8, 33u8, 162u8, ], ) } - #[doc = "See `Pallet::unregister`."] + #[doc = "Unregister the caller from being an operator for the service blueprint"] + #[doc = "so that, no more services will assigned to the caller for this specific blueprint."] + #[doc = "Note that, the caller needs to keep providing service for other active service"] + #[doc = "that uses this blueprint, until the end of service time, otherwise they may get reported"] + #[doc = "and slashed."] pub fn unregister( &self, blueprint_id: types::unregister::BlueprintId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "unregister", types::Unregister { blueprint_id }, @@ -36918,72 +45037,86 @@ pub mod api { ], ) } - #[doc = "See `Pallet::update_approval_preference`."] - pub fn update_approval_preference( + #[doc = "Update the price targets for the caller for a specific service blueprint."] + #[doc = ""] + #[doc = "See [`Self::register`] for more information."] + pub fn update_price_targets( &self, - blueprint_id: types::update_approval_preference::BlueprintId, - approval_preference: types::update_approval_preference::ApprovalPreference, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + blueprint_id: types::update_price_targets::BlueprintId, + price_targets: types::update_price_targets::PriceTargets, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", - "update_approval_preference", - types::UpdateApprovalPreference { blueprint_id, approval_preference }, + "update_price_targets", + types::UpdatePriceTargets { blueprint_id, price_targets }, [ - 150u8, 101u8, 19u8, 2u8, 197u8, 0u8, 109u8, 208u8, 93u8, 192u8, 3u8, - 1u8, 129u8, 181u8, 28u8, 50u8, 249u8, 87u8, 137u8, 22u8, 63u8, 189u8, - 220u8, 24u8, 120u8, 130u8, 181u8, 203u8, 253u8, 107u8, 4u8, 159u8, + 64u8, 243u8, 239u8, 182u8, 174u8, 160u8, 96u8, 140u8, 62u8, 187u8, + 247u8, 111u8, 78u8, 96u8, 33u8, 159u8, 95u8, 203u8, 204u8, 31u8, 254u8, + 57u8, 114u8, 219u8, 245u8, 19u8, 201u8, 6u8, 205u8, 145u8, 138u8, + 100u8, ], ) } - #[doc = "See `Pallet::request`."] + #[doc = "Request a new service to be initiated using the provided blueprint with a list of"] + #[doc = "operators that will run your service. Optionally, you can specifiy who is permitted"] + #[doc = "caller of this service, by default only the caller is allowed to call the service."] pub fn request( &self, blueprint_id: types::request::BlueprintId, permitted_callers: types::request::PermittedCallers, - service_providers: types::request::ServiceProviders, - ttl: types::request::Ttl, + operators: types::request::Operators, request_args: types::request::RequestArgs, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + assets: types::request::Assets, + ttl: types::request::Ttl, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "request", types::Request { blueprint_id, permitted_callers, - service_providers, - ttl, + operators, request_args, + assets, + ttl, }, [ - 16u8, 241u8, 59u8, 140u8, 246u8, 142u8, 27u8, 242u8, 212u8, 6u8, 82u8, - 105u8, 115u8, 99u8, 133u8, 123u8, 5u8, 147u8, 224u8, 140u8, 139u8, - 246u8, 202u8, 200u8, 76u8, 93u8, 45u8, 156u8, 43u8, 244u8, 131u8, - 170u8, + 137u8, 228u8, 248u8, 75u8, 210u8, 4u8, 219u8, 114u8, 117u8, 107u8, + 241u8, 88u8, 242u8, 212u8, 231u8, 100u8, 105u8, 110u8, 54u8, 116u8, + 175u8, 133u8, 186u8, 155u8, 11u8, 249u8, 21u8, 203u8, 39u8, 42u8, 87u8, + 151u8, ], ) } - #[doc = "See `Pallet::approve`."] + #[doc = "Approve a service request, so that the service can be initiated."] + #[doc = ""] + #[doc = "The `restaking_percent` is the percentage of the restaked tokens that will be exposed to"] + #[doc = "the service."] pub fn approve( &self, request_id: types::approve::RequestId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + restaking_percent: types::approve::RestakingPercent, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "approve", - types::Approve { request_id }, + types::Approve { request_id, restaking_percent }, [ - 248u8, 232u8, 185u8, 96u8, 244u8, 127u8, 41u8, 179u8, 130u8, 237u8, - 105u8, 221u8, 26u8, 83u8, 199u8, 91u8, 0u8, 241u8, 218u8, 78u8, 209u8, - 104u8, 40u8, 141u8, 68u8, 89u8, 213u8, 52u8, 20u8, 255u8, 120u8, 109u8, + 72u8, 64u8, 87u8, 137u8, 74u8, 76u8, 114u8, 137u8, 14u8, 170u8, 131u8, + 34u8, 144u8, 202u8, 182u8, 61u8, 8u8, 166u8, 232u8, 86u8, 41u8, 12u8, + 111u8, 231u8, 49u8, 153u8, 158u8, 24u8, 153u8, 96u8, 49u8, 209u8, ], ) } - #[doc = "See `Pallet::reject`."] + #[doc = "Reject a service request."] + #[doc = "The service will not be initiated, and the requester will need to update the service"] + #[doc = "request."] pub fn reject( &self, request_id: types::reject::RequestId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "reject", types::Reject { request_id }, @@ -36995,12 +45128,12 @@ pub mod api { ], ) } - #[doc = "See `Pallet::terminate`."] + #[doc = "Terminates the service by the owner of the service."] pub fn terminate( &self, service_id: types::terminate::ServiceId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "terminate", types::Terminate { service_id }, @@ -37011,14 +45144,15 @@ pub mod api { ], ) } - #[doc = "See `Pallet::call`."] + #[doc = "Call a Job in the service."] + #[doc = "The caller needs to be the owner of the service, or a permitted caller."] pub fn call( &self, service_id: types::call::ServiceId, job: types::call::Job, args: types::call::Args, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "call", types::Call { service_id, job, args }, @@ -37030,14 +45164,14 @@ pub mod api { ], ) } - #[doc = "See `Pallet::submit_result`."] + #[doc = "Submit the job result by using the service ID and call ID."] pub fn submit_result( &self, service_id: types::submit_result::ServiceId, call_id: types::submit_result::CallId, result: types::submit_result::Result, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Services", "submit_result", types::SubmitResult { service_id, call_id, result }, @@ -37049,6 +45183,47 @@ pub mod api { ], ) } + #[doc = "Slash an operator (offender) for a service id with a given percent of their exposed stake for that service."] + #[doc = ""] + #[doc = "The caller needs to be an authorized Slash Origin for this service."] + #[doc = "Note that this does not apply the slash directly, but instead schedules a deferred call to apply the slash"] + #[doc = "by another entity."] + pub fn slash( + &self, + offender: types::slash::Offender, + service_id: types::slash::ServiceId, + percent: types::slash::Percent, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Services", + "slash", + types::Slash { offender, service_id, percent }, + [ + 230u8, 228u8, 230u8, 48u8, 57u8, 70u8, 72u8, 244u8, 232u8, 45u8, 172u8, + 52u8, 3u8, 157u8, 216u8, 203u8, 191u8, 112u8, 8u8, 104u8, 35u8, 0u8, + 58u8, 17u8, 238u8, 8u8, 221u8, 138u8, 70u8, 24u8, 173u8, 185u8, + ], + ) + } + #[doc = "Dispute an [UnappliedSlash] for a given era and index."] + #[doc = ""] + #[doc = "The caller needs to be an authorized Dispute Origin for the service in the [UnappliedSlash]."] + pub fn dispute( + &self, + era: types::dispute::Era, + index: types::dispute::Index, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( + "Services", + "dispute", + types::Dispute { era, index }, + [ + 11u8, 20u8, 40u8, 197u8, 106u8, 155u8, 43u8, 220u8, 65u8, 245u8, 83u8, + 57u8, 99u8, 72u8, 115u8, 215u8, 198u8, 123u8, 58u8, 211u8, 238u8, + 194u8, 87u8, 11u8, 18u8, 9u8, 248u8, 159u8, 49u8, 138u8, 39u8, 69u8, + ], + ) + } } } #[doc = "The `Event` enum of this pallet"] @@ -37056,18 +45231,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new service blueprint has been created."] pub struct BlueprintCreated { pub owner: blueprint_created::Owner, @@ -37075,26 +45250,26 @@ pub mod api { } pub mod blueprint_created { use super::runtime_types; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; pub type BlueprintId = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for BlueprintCreated { + impl ::subxt::ext::subxt_core::events::StaticEvent for BlueprintCreated { const PALLET: &'static str = "Services"; const EVENT: &'static str = "BlueprintCreated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has pre-registered for a service blueprint."] pub struct PreRegistration { pub operator: pre_registration::Operator, @@ -37102,26 +45277,26 @@ pub mod api { } pub mod pre_registration { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type BlueprintId = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for PreRegistration { + impl ::subxt::ext::subxt_core::events::StaticEvent for PreRegistration { const PALLET: &'static str = "Services"; const EVENT: &'static str = "PreRegistration"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An new operator has been registered."] pub struct Registered { pub provider: registered::Provider, @@ -37131,33 +45306,33 @@ pub mod api { } pub mod registered { use super::runtime_types; - pub type Provider = ::subxt_core::utils::AccountId32; + pub type Provider = ::subxt::ext::subxt_core::utils::AccountId32; pub type BlueprintId = ::core::primitive::u64; pub type Preferences = runtime_types::tangle_primitives::services::OperatorPreferences; - pub type RegistrationArgs = ::subxt_core::alloc::vec::Vec< + pub type RegistrationArgs = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::events::StaticEvent for Registered { + impl ::subxt::ext::subxt_core::events::StaticEvent for Registered { const PALLET: &'static str = "Services"; const EVENT: &'static str = "Registered"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An operator has been unregistered."] pub struct Unregistered { pub operator: unregistered::Operator, @@ -37165,56 +45340,55 @@ pub mod api { } pub mod unregistered { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type BlueprintId = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for Unregistered { + impl ::subxt::ext::subxt_core::events::StaticEvent for Unregistered { const PALLET: &'static str = "Services"; const EVENT: &'static str = "Unregistered"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The approval preference for an operator has been updated."] - pub struct ApprovalPreferenceUpdated { - pub operator: approval_preference_updated::Operator, - pub blueprint_id: approval_preference_updated::BlueprintId, - pub approval_preference: approval_preference_updated::ApprovalPreference, - } - pub mod approval_preference_updated { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "The price targets for an operator has been updated."] + pub struct PriceTargetsUpdated { + pub operator: price_targets_updated::Operator, + pub blueprint_id: price_targets_updated::BlueprintId, + pub price_targets: price_targets_updated::PriceTargets, + } + pub mod price_targets_updated { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type BlueprintId = ::core::primitive::u64; - pub type ApprovalPreference = - runtime_types::tangle_primitives::services::ApprovalPreference; + pub type PriceTargets = runtime_types::tangle_primitives::services::PriceTargets; } - impl ::subxt_core::events::StaticEvent for ApprovalPreferenceUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PriceTargetsUpdated { const PALLET: &'static str = "Services"; - const EVENT: &'static str = "ApprovalPreferenceUpdated"; + const EVENT: &'static str = "PriceTargetsUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A new service has been requested."] pub struct ServiceRequested { pub owner: service_requested::Owner, @@ -37222,33 +45396,39 @@ pub mod api { pub blueprint_id: service_requested::BlueprintId, pub pending_approvals: service_requested::PendingApprovals, pub approved: service_requested::Approved, + pub assets: service_requested::Assets, } pub mod service_requested { use super::runtime_types; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; pub type RequestId = ::core::primitive::u64; pub type BlueprintId = ::core::primitive::u64; - pub type PendingApprovals = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; - pub type Approved = ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type PendingApprovals = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; + pub type Approved = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; + pub type Assets = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u128>; } - impl ::subxt_core::events::StaticEvent for ServiceRequested { + impl ::subxt::ext::subxt_core::events::StaticEvent for ServiceRequested { const PALLET: &'static str = "Services"; const EVENT: &'static str = "ServiceRequested"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A service request has been approved."] pub struct ServiceRequestApproved { pub operator: service_request_approved::Operator, @@ -37259,30 +45439,33 @@ pub mod api { } pub mod service_request_approved { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type RequestId = ::core::primitive::u64; pub type BlueprintId = ::core::primitive::u64; - pub type PendingApprovals = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; - pub type Approved = ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type PendingApprovals = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; + pub type Approved = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } - impl ::subxt_core::events::StaticEvent for ServiceRequestApproved { + impl ::subxt::ext::subxt_core::events::StaticEvent for ServiceRequestApproved { const PALLET: &'static str = "Services"; const EVENT: &'static str = "ServiceRequestApproved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A service request has been rejected."] pub struct ServiceRequestRejected { pub operator: service_request_rejected::Operator, @@ -37291,92 +45474,61 @@ pub mod api { } pub mod service_request_rejected { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type RequestId = ::core::primitive::u64; pub type BlueprintId = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for ServiceRequestRejected { + impl ::subxt::ext::subxt_core::events::StaticEvent for ServiceRequestRejected { const PALLET: &'static str = "Services"; const EVENT: &'static str = "ServiceRequestRejected"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "A service request has been updated or modified."] - pub struct ServiceRequestUpdated { - pub owner: service_request_updated::Owner, - pub request_id: service_request_updated::RequestId, - pub blueprint_id: service_request_updated::BlueprintId, - pub pending_approvals: service_request_updated::PendingApprovals, - pub approved: service_request_updated::Approved, - } - pub mod service_request_updated { - use super::runtime_types; - pub type Owner = ::subxt_core::utils::AccountId32; - pub type RequestId = ::core::primitive::u64; - pub type BlueprintId = ::core::primitive::u64; - pub type PendingApprovals = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; - pub type Approved = ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; - } - impl ::subxt_core::events::StaticEvent for ServiceRequestUpdated { - const PALLET: &'static str = "Services"; - const EVENT: &'static str = "ServiceRequestUpdated"; - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A service has been initiated."] pub struct ServiceInitiated { pub owner: service_initiated::Owner, pub request_id: service_initiated::RequestId, pub service_id: service_initiated::ServiceId, pub blueprint_id: service_initiated::BlueprintId, + pub assets: service_initiated::Assets, } pub mod service_initiated { use super::runtime_types; - pub type Owner = ::subxt_core::utils::AccountId32; - pub type RequestId = ::core::option::Option<::core::primitive::u64>; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; + pub type RequestId = ::core::primitive::u64; pub type ServiceId = ::core::primitive::u64; pub type BlueprintId = ::core::primitive::u64; + pub type Assets = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u128>; } - impl ::subxt_core::events::StaticEvent for ServiceInitiated { + impl ::subxt::ext::subxt_core::events::StaticEvent for ServiceInitiated { const PALLET: &'static str = "Services"; const EVENT: &'static str = "ServiceInitiated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A service has been terminated."] pub struct ServiceTerminated { pub owner: service_terminated::Owner, @@ -37385,27 +45537,27 @@ pub mod api { } pub mod service_terminated { use super::runtime_types; - pub type Owner = ::subxt_core::utils::AccountId32; + pub type Owner = ::subxt::ext::subxt_core::utils::AccountId32; pub type ServiceId = ::core::primitive::u64; pub type BlueprintId = ::core::primitive::u64; } - impl ::subxt_core::events::StaticEvent for ServiceTerminated { + impl ::subxt::ext::subxt_core::events::StaticEvent for ServiceTerminated { const PALLET: &'static str = "Services"; const EVENT: &'static str = "ServiceTerminated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A job has been called."] pub struct JobCalled { pub caller: job_called::Caller, @@ -37416,33 +45568,33 @@ pub mod api { } pub mod job_called { use super::runtime_types; - pub type Caller = ::subxt_core::utils::AccountId32; + pub type Caller = ::subxt::ext::subxt_core::utils::AccountId32; pub type ServiceId = ::core::primitive::u64; pub type CallId = ::core::primitive::u64; pub type Job = ::core::primitive::u8; - pub type Args = ::subxt_core::alloc::vec::Vec< + pub type Args = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::events::StaticEvent for JobCalled { + impl ::subxt::ext::subxt_core::events::StaticEvent for JobCalled { const PALLET: &'static str = "Services"; const EVENT: &'static str = "JobCalled"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A job result has been submitted."] pub struct JobResultSubmitted { pub operator: job_result_submitted::Operator, @@ -37453,33 +45605,33 @@ pub mod api { } pub mod job_result_submitted { use super::runtime_types; - pub type Operator = ::subxt_core::utils::AccountId32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; pub type ServiceId = ::core::primitive::u64; pub type CallId = ::core::primitive::u64; pub type Job = ::core::primitive::u8; - pub type Result = ::subxt_core::alloc::vec::Vec< + pub type Result = ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::events::StaticEvent for JobResultSubmitted { + impl ::subxt::ext::subxt_core::events::StaticEvent for JobResultSubmitted { const PALLET: &'static str = "Services"; const EVENT: &'static str = "JobResultSubmitted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "An EVM log has been emitted during an execution."] pub struct EvmLog { pub address: evm_log::Address, @@ -37488,27 +45640,29 @@ pub mod api { } pub mod evm_log { use super::runtime_types; - pub type Address = ::subxt_core::utils::H160; - pub type Topics = ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>; - pub type Data = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Address = ::subxt::ext::subxt_core::utils::H160; + pub type Topics = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >; + pub type Data = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::events::StaticEvent for EvmLog { + impl ::subxt::ext::subxt_core::events::StaticEvent for EvmLog { const PALLET: &'static str = "Services"; const EVENT: &'static str = "EvmLog"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "EVM execution reverted with a reason."] pub struct EvmReverted { pub from: evm_reverted::From, @@ -37518,15 +45672,85 @@ pub mod api { } pub mod evm_reverted { use super::runtime_types; - pub type From = ::subxt_core::utils::H160; - pub type To = ::subxt_core::utils::H160; - pub type Data = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Reason = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type From = ::subxt::ext::subxt_core::utils::H160; + pub type To = ::subxt::ext::subxt_core::utils::H160; + pub type Data = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Reason = ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::events::StaticEvent for EvmReverted { + impl ::subxt::ext::subxt_core::events::StaticEvent for EvmReverted { const PALLET: &'static str = "Services"; const EVENT: &'static str = "EvmReverted"; } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "An Operator has an unapplied slash."] + pub struct UnappliedSlash { + pub index: unapplied_slash::Index, + pub operator: unapplied_slash::Operator, + pub amount: unapplied_slash::Amount, + pub service_id: unapplied_slash::ServiceId, + pub blueprint_id: unapplied_slash::BlueprintId, + pub era: unapplied_slash::Era, + } + pub mod unapplied_slash { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type ServiceId = ::core::primitive::u64; + pub type BlueprintId = ::core::primitive::u64; + pub type Era = ::core::primitive::u32; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for UnappliedSlash { + const PALLET: &'static str = "Services"; + const EVENT: &'static str = "UnappliedSlash"; + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + #[doc = "An Unapplied Slash got discarded."] + pub struct SlashDiscarded { + pub index: slash_discarded::Index, + pub operator: slash_discarded::Operator, + pub amount: slash_discarded::Amount, + pub service_id: slash_discarded::ServiceId, + pub blueprint_id: slash_discarded::BlueprintId, + pub era: slash_discarded::Era, + } + pub mod slash_discarded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Operator = ::subxt::ext::subxt_core::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type ServiceId = ::core::primitive::u64; + pub type BlueprintId = ::core::primitive::u64; + pub type Era = ::core::primitive::u32; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for SlashDiscarded { + const PALLET: &'static str = "Services"; + const EVENT: &'static str = "SlashDiscarded"; + } } pub mod storage { use super::runtime_types; @@ -37548,10 +45772,14 @@ pub mod api { use super::runtime_types; pub type NextJobCallId = ::core::primitive::u64; } + pub mod next_unapplied_slash_index { + use super::runtime_types; + pub type NextUnappliedSlashIndex = ::core::primitive::u32; + } pub mod blueprints { use super::runtime_types; pub type Blueprints = ( - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::tangle_primitives::services::ServiceBlueprint, ); pub type Param0 = ::core::primitive::u64; @@ -37561,22 +45789,24 @@ pub mod api { pub type Operators = runtime_types::tangle_primitives::services::OperatorPreferences; pub type Param0 = ::core::primitive::u64; - pub type Param1 = ::subxt_core::utils::AccountId32; + pub type Param1 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod service_requests { use super::runtime_types; pub type ServiceRequests = runtime_types::tangle_primitives::services::ServiceRequest< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64, + ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u64; } pub mod instances { use super::runtime_types; pub type Instances = runtime_types::tangle_primitives::services::Service< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u64, + ::core::primitive::u128, >; pub type Param0 = ::core::primitive::u64; } @@ -37586,12 +45816,12 @@ pub mod api { runtime_types::bounded_collections::bounded_btree_set::BoundedBTreeSet< ::core::primitive::u64, >; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod job_calls { use super::runtime_types; pub type JobCalls = runtime_types::tangle_primitives::services::JobCall< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type Param0 = ::core::primitive::u64; pub type Param1 = ::core::primitive::u64; @@ -37599,16 +45829,26 @@ pub mod api { pub mod job_results { use super::runtime_types; pub type JobResults = runtime_types::tangle_primitives::services::JobCallResult< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type Param0 = ::core::primitive::u64; pub type Param1 = ::core::primitive::u64; } + pub mod unapplied_slashes { + use super::runtime_types; + pub type UnappliedSlashes = + runtime_types::pallet_services::types::UnappliedSlash< + ::subxt::ext::subxt_core::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } pub mod operators_profile { use super::runtime_types; pub type OperatorsProfile = runtime_types::tangle_primitives::services::OperatorProfile; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -37616,14 +45856,14 @@ pub mod api { #[doc = " The next free ID for a service blueprint."] pub fn next_blueprint_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_blueprint_id::NextBlueprintId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "NextBlueprintId", (), @@ -37637,14 +45877,14 @@ pub mod api { #[doc = " The next free ID for a service request."] pub fn next_service_request_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_service_request_id::NextServiceRequestId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "NextServiceRequestId", (), @@ -37658,14 +45898,14 @@ pub mod api { #[doc = " The next free ID for a service Instance."] pub fn next_instance_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_instance_id::NextInstanceId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "NextInstanceId", (), @@ -37679,14 +45919,14 @@ pub mod api { #[doc = " The next free ID for a service call."] pub fn next_job_call_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::next_job_call_id::NextJobCallId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "NextJobCallId", (), @@ -37697,24 +45937,47 @@ pub mod api { ], ) } + #[doc = " The next free ID for a unapplied slash."] + pub fn next_unapplied_slash_index( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::next_unapplied_slash_index::NextUnappliedSlashIndex, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Services", + "NextUnappliedSlashIndex", + (), + [ + 140u8, 233u8, 25u8, 123u8, 172u8, 43u8, 141u8, 60u8, 203u8, 69u8, + 231u8, 163u8, 190u8, 51u8, 102u8, 76u8, 70u8, 188u8, 154u8, 127u8, + 246u8, 42u8, 27u8, 176u8, 50u8, 178u8, 222u8, 57u8, 57u8, 220u8, 60u8, + 74u8, + ], + ) + } #[doc = " The service blueprints along with their owner."] pub fn blueprints_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::blueprints::Blueprints, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "Blueprints", (), [ - 5u8, 185u8, 39u8, 34u8, 198u8, 63u8, 152u8, 13u8, 202u8, 174u8, 186u8, - 25u8, 6u8, 133u8, 204u8, 115u8, 88u8, 55u8, 5u8, 242u8, 21u8, 124u8, - 49u8, 88u8, 224u8, 163u8, 242u8, 228u8, 196u8, 133u8, 214u8, 171u8, + 139u8, 54u8, 53u8, 146u8, 217u8, 215u8, 98u8, 222u8, 251u8, 167u8, + 116u8, 132u8, 151u8, 242u8, 202u8, 45u8, 69u8, 144u8, 15u8, 57u8, + 191u8, 132u8, 232u8, 145u8, 227u8, 190u8, 215u8, 159u8, 118u8, 206u8, + 138u8, 153u8, ], ) } @@ -37722,21 +45985,26 @@ pub mod api { pub fn blueprints( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::blueprints::Param0, + >, types::blueprints::Blueprints, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "Blueprints", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 5u8, 185u8, 39u8, 34u8, 198u8, 63u8, 152u8, 13u8, 202u8, 174u8, 186u8, - 25u8, 6u8, 133u8, 204u8, 115u8, 88u8, 55u8, 5u8, 242u8, 21u8, 124u8, - 49u8, 88u8, 224u8, 163u8, 242u8, 228u8, 196u8, 133u8, 214u8, 171u8, + 139u8, 54u8, 53u8, 146u8, 217u8, 215u8, 98u8, 222u8, 251u8, 167u8, + 116u8, 132u8, 151u8, 242u8, 202u8, 45u8, 69u8, 144u8, 15u8, 57u8, + 191u8, 132u8, 232u8, 145u8, 227u8, 190u8, 215u8, 159u8, 118u8, 206u8, + 138u8, 153u8, ], ) } @@ -37744,21 +46012,21 @@ pub mod api { #[doc = " Blueprint ID -> Operator -> Operator Preferences"] pub fn operators_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::operators::Operators, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "Operators", (), [ - 175u8, 94u8, 215u8, 216u8, 65u8, 112u8, 95u8, 19u8, 154u8, 48u8, 102u8, - 133u8, 46u8, 197u8, 71u8, 61u8, 81u8, 196u8, 91u8, 54u8, 24u8, 207u8, - 36u8, 18u8, 55u8, 216u8, 100u8, 66u8, 39u8, 55u8, 47u8, 203u8, + 93u8, 238u8, 51u8, 207u8, 28u8, 222u8, 167u8, 25u8, 219u8, 57u8, 14u8, + 79u8, 66u8, 6u8, 236u8, 103u8, 26u8, 247u8, 189u8, 151u8, 134u8, 181u8, + 93u8, 99u8, 252u8, 39u8, 181u8, 54u8, 212u8, 155u8, 57u8, 8u8, ], ) } @@ -37767,21 +46035,25 @@ pub mod api { pub fn operators_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::operators::Param0, + >, types::operators::Operators, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "Operators", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 175u8, 94u8, 215u8, 216u8, 65u8, 112u8, 95u8, 19u8, 154u8, 48u8, 102u8, - 133u8, 46u8, 197u8, 71u8, 61u8, 81u8, 196u8, 91u8, 54u8, 24u8, 207u8, - 36u8, 18u8, 55u8, 216u8, 100u8, 66u8, 39u8, 55u8, 47u8, 203u8, + 93u8, 238u8, 51u8, 207u8, 28u8, 222u8, 167u8, 25u8, 219u8, 57u8, 14u8, + 79u8, 66u8, 6u8, 236u8, 103u8, 26u8, 247u8, 189u8, 151u8, 134u8, 181u8, + 93u8, 99u8, 252u8, 39u8, 181u8, 54u8, 212u8, 155u8, 57u8, 8u8, ], ) } @@ -37791,27 +46063,35 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::operators::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::operators::Param1, + >, ), types::operators::Operators, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "Operators", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ - 175u8, 94u8, 215u8, 216u8, 65u8, 112u8, 95u8, 19u8, 154u8, 48u8, 102u8, - 133u8, 46u8, 197u8, 71u8, 61u8, 81u8, 196u8, 91u8, 54u8, 24u8, 207u8, - 36u8, 18u8, 55u8, 216u8, 100u8, 66u8, 39u8, 55u8, 47u8, 203u8, + 93u8, 238u8, 51u8, 207u8, 28u8, 222u8, 167u8, 25u8, 219u8, 57u8, 14u8, + 79u8, 66u8, 6u8, 236u8, 103u8, 26u8, 247u8, 189u8, 151u8, 134u8, 181u8, + 93u8, 99u8, 252u8, 39u8, 181u8, 54u8, 212u8, 155u8, 57u8, 8u8, ], ) } @@ -37819,21 +46099,21 @@ pub mod api { #[doc = " Request ID -> Service Request"] pub fn service_requests_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::service_requests::ServiceRequests, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "ServiceRequests", (), [ - 139u8, 116u8, 51u8, 102u8, 57u8, 59u8, 242u8, 171u8, 64u8, 239u8, - 195u8, 219u8, 190u8, 227u8, 6u8, 27u8, 97u8, 127u8, 74u8, 21u8, 181u8, - 202u8, 54u8, 8u8, 161u8, 45u8, 143u8, 241u8, 81u8, 203u8, 223u8, 98u8, + 135u8, 208u8, 92u8, 144u8, 230u8, 140u8, 76u8, 70u8, 14u8, 253u8, + 187u8, 44u8, 212u8, 132u8, 113u8, 135u8, 181u8, 79u8, 18u8, 19u8, 8u8, + 74u8, 145u8, 95u8, 8u8, 33u8, 170u8, 75u8, 116u8, 108u8, 151u8, 224u8, ], ) } @@ -37842,23 +46122,25 @@ pub mod api { pub fn service_requests( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::service_requests::Param0, >, types::service_requests::ServiceRequests, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "ServiceRequests", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 139u8, 116u8, 51u8, 102u8, 57u8, 59u8, 242u8, 171u8, 64u8, 239u8, - 195u8, 219u8, 190u8, 227u8, 6u8, 27u8, 97u8, 127u8, 74u8, 21u8, 181u8, - 202u8, 54u8, 8u8, 161u8, 45u8, 143u8, 241u8, 81u8, 203u8, 223u8, 98u8, + 135u8, 208u8, 92u8, 144u8, 230u8, 140u8, 76u8, 70u8, 14u8, 253u8, + 187u8, 44u8, 212u8, 132u8, 113u8, 135u8, 181u8, 79u8, 18u8, 19u8, 8u8, + 74u8, 145u8, 95u8, 8u8, 33u8, 170u8, 75u8, 116u8, 108u8, 151u8, 224u8, ], ) } @@ -37866,22 +46148,21 @@ pub mod api { #[doc = " Service ID -> Service"] pub fn instances_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::instances::Instances, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "Instances", (), [ - 23u8, 60u8, 55u8, 29u8, 241u8, 164u8, 199u8, 144u8, 71u8, 190u8, 14u8, - 81u8, 133u8, 10u8, 142u8, 158u8, 126u8, 80u8, 206u8, 209u8, 174u8, - 74u8, 246u8, 188u8, 164u8, 220u8, 105u8, 159u8, 73u8, 143u8, 85u8, - 147u8, + 86u8, 166u8, 251u8, 232u8, 110u8, 184u8, 109u8, 201u8, 252u8, 167u8, + 245u8, 44u8, 15u8, 117u8, 138u8, 92u8, 114u8, 15u8, 110u8, 176u8, 59u8, + 8u8, 192u8, 154u8, 94u8, 83u8, 235u8, 134u8, 217u8, 98u8, 184u8, 96u8, ], ) } @@ -37890,22 +46171,25 @@ pub mod api { pub fn instances( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::instances::Param0, + >, types::instances::Instances, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "Instances", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 23u8, 60u8, 55u8, 29u8, 241u8, 164u8, 199u8, 144u8, 71u8, 190u8, 14u8, - 81u8, 133u8, 10u8, 142u8, 158u8, 126u8, 80u8, 206u8, 209u8, 174u8, - 74u8, 246u8, 188u8, 164u8, 220u8, 105u8, 159u8, 73u8, 143u8, 85u8, - 147u8, + 86u8, 166u8, 251u8, 232u8, 110u8, 184u8, 109u8, 201u8, 252u8, 167u8, + 245u8, 44u8, 15u8, 117u8, 138u8, 92u8, 114u8, 15u8, 110u8, 176u8, 59u8, + 8u8, 192u8, 154u8, 94u8, 83u8, 235u8, 134u8, 217u8, 98u8, 184u8, 96u8, ], ) } @@ -37913,14 +46197,14 @@ pub mod api { #[doc = " User Account ID -> Service ID"] pub fn user_services_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::user_services::UserServices, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "UserServices", (), @@ -37937,17 +46221,21 @@ pub mod api { pub fn user_services( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::user_services::Param0, + >, types::user_services::UserServices, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "UserServices", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 228u8, 80u8, 139u8, 177u8, 57u8, 117u8, 175u8, 212u8, 37u8, 201u8, 176u8, 12u8, 79u8, 136u8, 65u8, 250u8, 105u8, 37u8, 13u8, 176u8, 86u8, @@ -37960,14 +46248,14 @@ pub mod api { #[doc = " Service ID -> Call ID -> Job Call"] pub fn job_calls_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::job_calls::JobCalls, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "JobCalls", (), @@ -37984,17 +46272,21 @@ pub mod api { pub fn job_calls_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::job_calls::Param0, + >, types::job_calls::JobCalls, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "JobCalls", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 101u8, 28u8, 142u8, 190u8, 194u8, 80u8, 51u8, 249u8, 248u8, 125u8, 227u8, 138u8, 123u8, 163u8, 193u8, 43u8, 85u8, 3u8, 249u8, 93u8, 112u8, @@ -38009,22 +46301,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::job_calls::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::job_calls::Param1, + >, ), types::job_calls::JobCalls, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "JobCalls", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 101u8, 28u8, 142u8, 190u8, 194u8, 80u8, 51u8, 249u8, 248u8, 125u8, @@ -38038,14 +46338,14 @@ pub mod api { #[doc = " Service ID -> Call ID -> Job Call Result"] pub fn job_results_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::job_results::JobResults, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "JobResults", (), @@ -38062,17 +46362,21 @@ pub mod api { pub fn job_results_iter1( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::job_results::Param0, + >, types::job_results::JobResults, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "JobResults", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 51u8, 245u8, 21u8, 132u8, 225u8, 158u8, 160u8, 42u8, 194u8, 236u8, 59u8, 218u8, 135u8, 187u8, 180u8, 144u8, 27u8, 20u8, 113u8, 14u8, @@ -38087,26 +46391,30 @@ pub mod api { &self, _0: impl ::core::borrow::Borrow, _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< ( - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::job_results::Param0, >, - ::subxt_core::storage::address::StaticStorageKey< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::job_results::Param1, >, ), types::job_results::JobResults, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "JobResults", ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), ), [ 51u8, 245u8, 21u8, 132u8, 225u8, 158u8, 160u8, 42u8, 194u8, 236u8, @@ -38116,46 +46424,141 @@ pub mod api { ], ) } + #[doc = " All unapplied slashes that are queued for later."] + #[doc = ""] + #[doc = " EraIndex -> Index -> UnappliedSlash"] + pub fn unapplied_slashes_iter( + &self, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + (), + types::unapplied_slashes::UnappliedSlashes, + (), + (), + ::subxt::ext::subxt_core::utils::Yes, + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Services", + "UnappliedSlashes", + (), + [ + 223u8, 174u8, 85u8, 241u8, 227u8, 154u8, 43u8, 144u8, 199u8, 118u8, + 187u8, 255u8, 252u8, 48u8, 64u8, 124u8, 73u8, 110u8, 144u8, 247u8, + 91u8, 46u8, 248u8, 6u8, 203u8, 30u8, 110u8, 45u8, 78u8, 194u8, 58u8, + 125u8, + ], + ) + } + #[doc = " All unapplied slashes that are queued for later."] + #[doc = ""] + #[doc = " EraIndex -> Index -> UnappliedSlash"] + pub fn unapplied_slashes_iter1( + &self, + _0: impl ::core::borrow::Borrow, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::unapplied_slashes::Param0, + >, + types::unapplied_slashes::UnappliedSlashes, + (), + (), + ::subxt::ext::subxt_core::utils::Yes, + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Services", + "UnappliedSlashes", + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + [ + 223u8, 174u8, 85u8, 241u8, 227u8, 154u8, 43u8, 144u8, 199u8, 118u8, + 187u8, 255u8, 252u8, 48u8, 64u8, 124u8, 73u8, 110u8, 144u8, 247u8, + 91u8, 46u8, 248u8, 6u8, 203u8, 30u8, 110u8, 45u8, 78u8, 194u8, 58u8, + 125u8, + ], + ) + } + #[doc = " All unapplied slashes that are queued for later."] + #[doc = ""] + #[doc = " EraIndex -> Index -> UnappliedSlash"] + pub fn unapplied_slashes( + &self, + _0: impl ::core::borrow::Borrow, + _1: impl ::core::borrow::Borrow, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ( + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::unapplied_slashes::Param0, + >, + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::unapplied_slashes::Param1, + >, + ), + types::unapplied_slashes::UnappliedSlashes, + ::subxt::ext::subxt_core::utils::Yes, + (), + (), + > { + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( + "Services", + "UnappliedSlashes", + ( + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _1.borrow(), + ), + ), + [ + 223u8, 174u8, 85u8, 241u8, 227u8, 154u8, 43u8, 144u8, 199u8, 118u8, + 187u8, 255u8, 252u8, 48u8, 64u8, 124u8, 73u8, 110u8, 144u8, 247u8, + 91u8, 46u8, 248u8, 6u8, 203u8, 30u8, 110u8, 45u8, 78u8, 194u8, 58u8, + 125u8, + ], + ) + } pub fn operators_profile_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::operators_profile::OperatorsProfile, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "OperatorsProfile", (), [ - 187u8, 96u8, 245u8, 44u8, 238u8, 169u8, 69u8, 44u8, 209u8, 127u8, - 169u8, 188u8, 60u8, 70u8, 17u8, 69u8, 200u8, 49u8, 27u8, 60u8, 179u8, - 198u8, 226u8, 207u8, 151u8, 248u8, 86u8, 97u8, 149u8, 68u8, 42u8, 66u8, + 148u8, 139u8, 113u8, 73u8, 167u8, 41u8, 2u8, 55u8, 48u8, 228u8, 14u8, + 63u8, 148u8, 159u8, 25u8, 74u8, 126u8, 39u8, 211u8, 235u8, 103u8, 79u8, + 45u8, 21u8, 86u8, 231u8, 13u8, 148u8, 92u8, 175u8, 197u8, 21u8, ], ) } pub fn operators_profile( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::operators_profile::Param0, >, types::operators_profile::OperatorsProfile, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Services", "OperatorsProfile", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 187u8, 96u8, 245u8, 44u8, 238u8, 169u8, 69u8, 44u8, 209u8, 127u8, - 169u8, 188u8, 60u8, 70u8, 17u8, 69u8, 200u8, 49u8, 27u8, 60u8, 179u8, - 198u8, 226u8, 207u8, 151u8, 248u8, 86u8, 97u8, 149u8, 68u8, 42u8, 66u8, + 148u8, 139u8, 113u8, 73u8, 167u8, 41u8, 2u8, 55u8, 48u8, 228u8, 14u8, + 63u8, 148u8, 159u8, 25u8, 74u8, 126u8, 39u8, 211u8, 235u8, 103u8, 79u8, + 45u8, 21u8, 86u8, 231u8, 13u8, 148u8, 92u8, 175u8, 197u8, 21u8, ], ) } @@ -38168,10 +46571,10 @@ pub mod api { #[doc = " `PalletId` for the services pallet."] pub fn pallet_id( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::frame_support::PalletId, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "PalletId", [ @@ -38184,8 +46587,10 @@ pub mod api { #[doc = " Maximum number of fields in a job call."] pub fn max_fields( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxFields", [ @@ -38199,8 +46604,10 @@ pub mod api { #[doc = " Maximum size of a field in a job call."] pub fn max_fields_size( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxFieldsSize", [ @@ -38214,8 +46621,10 @@ pub mod api { #[doc = " Maximum length of metadata string length."] pub fn max_metadata_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxMetadataLength", [ @@ -38229,8 +46638,10 @@ pub mod api { #[doc = " Maximum number of jobs per service."] pub fn max_jobs_per_service( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxJobsPerService", [ @@ -38244,8 +46655,10 @@ pub mod api { #[doc = " Maximum number of Operators per service."] pub fn max_operators_per_service( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxOperatorsPerService", [ @@ -38259,8 +46672,10 @@ pub mod api { #[doc = " Maximum number of permitted callers per service."] pub fn max_permitted_callers( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxPermittedCallers", [ @@ -38274,8 +46689,10 @@ pub mod api { #[doc = " Maximum number of services per operator."] pub fn max_services_per_operator( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxServicesPerOperator", [ @@ -38289,8 +46706,10 @@ pub mod api { #[doc = " Maximum number of blueprints per operator."] pub fn max_blueprints_per_operator( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxBlueprintsPerOperator", [ @@ -38304,8 +46723,10 @@ pub mod api { #[doc = " Maximum number of services per user."] pub fn max_services_per_user( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxServicesPerUser", [ @@ -38319,8 +46740,10 @@ pub mod api { #[doc = " Maximum number of binaries per gadget."] pub fn max_binaries_per_gadget( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxBinariesPerGadget", [ @@ -38334,8 +46757,10 @@ pub mod api { #[doc = " Maximum number of sources per gadget."] pub fn max_sources_per_gadget( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxSourcesPerGadget", [ @@ -38349,8 +46774,10 @@ pub mod api { #[doc = " Git owner maximum length."] pub fn max_git_owner_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxGitOwnerLength", [ @@ -38364,8 +46791,10 @@ pub mod api { #[doc = " Git repository maximum length."] pub fn max_git_repo_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxGitRepoLength", [ @@ -38379,8 +46808,10 @@ pub mod api { #[doc = " Git tag maximum length."] pub fn max_git_tag_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxGitTagLength", [ @@ -38394,8 +46825,10 @@ pub mod api { #[doc = " binary name maximum length."] pub fn max_binary_name_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxBinaryNameLength", [ @@ -38409,8 +46842,10 @@ pub mod api { #[doc = " IPFS hash maximum length."] pub fn max_ipfs_hash_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxIpfsHashLength", [ @@ -38424,8 +46859,10 @@ pub mod api { #[doc = " Container registry maximum length."] pub fn max_container_registry_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxContainerRegistryLength", [ @@ -38439,8 +46876,10 @@ pub mod api { #[doc = " Container image name maximum length."] pub fn max_container_image_name_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxContainerImageNameLength", [ @@ -38454,8 +46893,10 @@ pub mod api { #[doc = " Container image tag maximum length."] pub fn max_container_image_tag_length( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Services", "MaxContainerImageTagLength", [ @@ -38466,6 +46907,43 @@ pub mod api { ], ) } + #[doc = " Maximum number of assets per service."] + pub fn max_assets_per_service( + &self, + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( + "Services", + "MaxAssetsPerService", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of eras that slashes are deferred by, after computation."] + #[doc = ""] + #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] + #[doc = " should be applied immediately, without opportunity for intervention."] + pub fn slash_defer_duration( + &self, + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( + "Services", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } } } } @@ -38483,19 +46961,30 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::join`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] + #[doc = "pools account and immediately increases the pools bond."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "* This call will *not* dust the member account, so the member must have at least"] + #[doc = " `existential deposit + amount` in their account."] + #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] pub struct Join { #[codec(compact)] pub amount: join::Amount, @@ -38506,24 +46995,34 @@ pub mod api { pub type Amount = ::core::primitive::u128; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Join { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Join { const PALLET: &'static str = "Lst"; const CALL: &'static str = "join"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::bond_extra`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] + #[doc = ""] + #[doc = "Additional funds can come from either the free balance of the account, of from the"] + #[doc = "accumulated rewards, see [`BondExtra`]."] + #[doc = ""] + #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] + #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] pub struct BondExtra { pub pool_id: bond_extra::PoolId, pub extra: bond_extra::Extra, @@ -38534,24 +47033,58 @@ pub mod api { pub type Extra = runtime_types::pallet_tangle_lst::types::BondExtra<::core::primitive::u128>; } - impl ::subxt_core::blocks::StaticExtrinsic for BondExtra { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "Lst"; const CALL: &'static str = "bond_extra"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unbond`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] + #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] + #[doc = "rewards would be forfeited."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch."] + #[doc = ""] + #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] + #[doc = " as a kick."] + #[doc = "* The pool is destroying and the member is not the depositor."] + #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] + #[doc = "`member_account`):"] + #[doc = ""] + #[doc = "* The caller is not the depositor."] + #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] + #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] + #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] + #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] + #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] + #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] + #[doc = "staking system."] pub struct Unbond { pub member_account: unbond::MemberAccount, pub pool_id: unbond::PoolId, @@ -38560,31 +47093,40 @@ pub mod api { } pub mod unbond { use super::runtime_types; - pub type MemberAccount = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type MemberAccount = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type PoolId = ::core::primitive::u32; pub type UnbondingPoints = ::core::primitive::u128; } - impl ::subxt_core::blocks::StaticExtrinsic for Unbond { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Unbond { const PALLET: &'static str = "Lst"; const CALL: &'static str = "unbond"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct PoolWithdrawUnbonded { pub pool_id: pool_withdraw_unbonded::PoolId, pub num_slashing_spans: pool_withdraw_unbonded::NumSlashingSpans, @@ -38594,24 +47136,46 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type NumSlashingSpans = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for PoolWithdrawUnbonded { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for PoolWithdrawUnbonded { const PALLET: &'static str = "Lst"; const CALL: &'static str = "pool_withdraw_unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::withdraw_unbonded`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] + #[doc = "error is returned."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch"] + #[doc = ""] + #[doc = "* The pool is in destroy mode and the target is not the depositor."] + #[doc = "* The target is the depositor and they are the only member in the sub pools."] + #[doc = "* The pool is blocked and the caller is either the root or bouncer."] + #[doc = ""] + #[doc = "# Conditions for permissioned dispatch"] + #[doc = ""] + #[doc = "* The caller is the target and they are not the depositor."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If the target is the depositor, the pool will be destroyed."] pub struct WithdrawUnbonded { pub member_account: withdraw_unbonded::MemberAccount, pub pool_id: withdraw_unbonded::PoolId, @@ -38619,72 +47183,105 @@ pub mod api { } pub mod withdraw_unbonded { use super::runtime_types; - pub type MemberAccount = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type MemberAccount = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type PoolId = ::core::primitive::u32; pub type NumSlashingSpans = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for WithdrawUnbonded { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for WithdrawUnbonded { const PALLET: &'static str = "Lst"; const CALL: &'static str = "withdraw_unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct Create { #[codec(compact)] pub amount: create::Amount, pub root: create::Root, pub nominator: create::Nominator, pub bouncer: create::Bouncer, + pub name: create::Name, } pub mod create { use super::runtime_types; pub type Amount = ::core::primitive::u128; - pub type Root = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Root = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Nominator = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Nominator = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Bouncer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Bouncer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; + pub type Name = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for Create { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "Lst"; const CALL: &'static str = "create"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::create_with_pool_id`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Create a new delegation pool with a previously used pool id"] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "same as `create` with the inclusion of"] + #[doc = "* `pool_id` - `A valid PoolId."] pub struct CreateWithPoolId { #[codec(compact)] pub amount: create_with_pool_id::Amount, @@ -38692,42 +47289,56 @@ pub mod api { pub nominator: create_with_pool_id::Nominator, pub bouncer: create_with_pool_id::Bouncer, pub pool_id: create_with_pool_id::PoolId, + pub name: create_with_pool_id::Name, } pub mod create_with_pool_id { use super::runtime_types; pub type Amount = ::core::primitive::u128; - pub type Root = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Root = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Nominator = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Nominator = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; - pub type Bouncer = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Bouncer = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type PoolId = ::core::primitive::u32; + pub type Name = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for CreateWithPoolId { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for CreateWithPoolId { const PALLET: &'static str = "Lst"; const CALL: &'static str = "create_with_pool_id"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::nominate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Nominate on behalf of the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] + #[doc = "root role."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] pub struct Nominate { pub pool_id: nominate::PoolId, pub validators: nominate::Validators, @@ -38735,27 +47346,41 @@ pub mod api { pub mod nominate { use super::runtime_types; pub type PoolId = ::core::primitive::u32; - pub type Validators = - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>; + pub type Validators = ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >; } - impl ::subxt_core::blocks::StaticExtrinsic for Nominate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "Lst"; const CALL: &'static str = "nominate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_state`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a new state for the pool."] + #[doc = ""] + #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] + #[doc = "change again."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be either:"] + #[doc = ""] + #[doc = "1. signed by the bouncer, or the root role of the pool,"] + #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] + #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] pub struct SetState { pub pool_id: set_state::PoolId, pub state: set_state::State, @@ -38765,24 +47390,31 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type State = runtime_types::pallet_tangle_lst::types::pools::PoolState; } - impl ::subxt_core::blocks::StaticExtrinsic for SetState { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetState { const PALLET: &'static str = "Lst"; const CALL: &'static str = "set_state"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_metadata`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set a new metadata for the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] + #[doc = "pool."] pub struct SetMetadata { pub pool_id: set_metadata::PoolId, pub metadata: set_metadata::Metadata, @@ -38790,26 +47422,41 @@ pub mod api { pub mod set_metadata { use super::runtime_types; pub type PoolId = ::core::primitive::u32; - pub type Metadata = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; + pub type Metadata = + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetMetadata { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Lst"; const CALL: &'static str = "set_metadata"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_configs`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Update configurations for the nomination pools. The origin for this call must be"] + #[doc = "Root."] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] + #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] + #[doc = "* `max_pools` - Set [`MaxPools`]."] + #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] + #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] + #[doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] pub struct SetConfigs { pub min_join_bond: set_configs::MinJoinBond, pub min_create_bond: set_configs::MinCreateBond, @@ -38829,24 +47476,34 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetConfigs { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetConfigs { const PALLET: &'static str = "Lst"; const CALL: &'static str = "set_configs"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::update_roles`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Update the roles of the pool."] + #[doc = ""] + #[doc = "The root is the only entity that can change any of the roles, including itself,"] + #[doc = "excluding the depositor, who can never change."] + #[doc = ""] + #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] + #[doc = "most pool members and they should be informed of changes to pool roles."] pub struct UpdateRoles { pub pool_id: update_roles::PoolId, pub new_root: update_roles::NewRoot, @@ -38857,33 +47514,43 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; pub type NewRoot = runtime_types::pallet_tangle_lst::types::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type NewNominator = runtime_types::pallet_tangle_lst::types::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; pub type NewBouncer = runtime_types::pallet_tangle_lst::types::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >; } - impl ::subxt_core::blocks::StaticExtrinsic for UpdateRoles { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for UpdateRoles { const PALLET: &'static str = "Lst"; const CALL: &'static str = "update_roles"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::chill`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Chill on behalf of the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] + #[doc = "root role, same as [`Pallet::nominate`]."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] pub struct Chill { pub pool_id: chill::PoolId, } @@ -38891,24 +47558,36 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for Chill { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "Lst"; const CALL: &'static str = "chill"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::bond_extra_other`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] + #[doc = "pools."] + #[doc = ""] + #[doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] + #[doc = "other`."] + #[doc = ""] + #[doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] + #[doc = "`other` members assuming set_claim_permission for the given member is"] + #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] pub struct BondExtraOther { pub member: bond_extra_other::Member, pub pool_id: bond_extra_other::PoolId, @@ -38916,32 +47595,40 @@ pub mod api { } pub mod bond_extra_other { use super::runtime_types; - pub type Member = ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + pub type Member = ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >; pub type PoolId = ::core::primitive::u32; pub type Extra = runtime_types::pallet_tangle_lst::types::BondExtra<::core::primitive::u128>; } - impl ::subxt_core::blocks::StaticExtrinsic for BondExtraOther { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for BondExtraOther { const PALLET: &'static str = "Lst"; const CALL: &'static str = "bond_extra_other"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the commission of a pool."] + #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] + #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] + #[doc = ""] + #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] pub struct SetCommission { pub pool_id: set_commission::PoolId, pub new_commission: set_commission::NewCommission, @@ -38951,27 +47638,35 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type NewCommission = ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommission { const PALLET: &'static str = "Lst"; const CALL: &'static str = "set_commission"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission_max`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the maximum commission of a pool."] + #[doc = ""] + #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] + #[doc = "- Current commission will be lowered in the event it is higher than a new max"] + #[doc = " commission."] pub struct SetCommissionMax { pub pool_id: set_commission_max::PoolId, pub max_commission: set_commission_max::MaxCommission, @@ -38981,24 +47676,31 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommissionMax { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommissionMax { const PALLET: &'static str = "Lst"; const CALL: &'static str = "set_commission_max"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission_change_rate`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Set the commission change rate for a pool."] + #[doc = ""] + #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] + #[doc = "restrictive than the current."] pub struct SetCommissionChangeRate { pub pool_id: set_commission_change_rate::PoolId, pub change_rate: set_commission_change_rate::ChangeRate, @@ -39011,24 +47713,32 @@ pub mod api { ::core::primitive::u64, >; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommissionChangeRate { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommissionChangeRate { const PALLET: &'static str = "Lst"; const CALL: &'static str = "set_commission_change_rate"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_commission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Claim pending commission."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] + #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] + #[doc = "is reset to zero. the current."] pub struct ClaimCommission { pub pool_id: claim_commission::PoolId, } @@ -39036,24 +47746,34 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for ClaimCommission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for ClaimCommission { const PALLET: &'static str = "Lst"; const CALL: &'static str = "claim_commission"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::adjust_pool_deposit`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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."] pub struct AdjustPoolDeposit { pub pool_id: adjust_pool_deposit::PoolId, } @@ -39061,24 +47781,31 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::blocks::StaticExtrinsic for AdjustPoolDeposit { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for AdjustPoolDeposit { const PALLET: &'static str = "Lst"; const CALL: &'static str = "adjust_pool_deposit"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_commission_claim_permission`]."] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[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 conifigure commission claim permissions."] pub struct SetCommissionClaimPermission { pub pool_id: set_commission_claim_permission::PoolId, pub permission: set_commission_claim_permission::Permission, @@ -39086,22 +47813,29 @@ pub mod api { pub mod set_commission_claim_permission { use super::runtime_types; pub type PoolId = ::core::primitive::u32; - pub type Permission = :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionClaimPermission < :: subxt_core :: utils :: AccountId32 > > ; + pub type Permission = :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionClaimPermission < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } - impl ::subxt_core::blocks::StaticExtrinsic for SetCommissionClaimPermission { + impl ::subxt::ext::subxt_core::blocks::StaticExtrinsic for SetCommissionClaimPermission { const PALLET: &'static str = "Lst"; const CALL: &'static str = "set_commission_claim_permission"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::join`]."] + #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] + #[doc = "pools account and immediately increases the pools bond."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "* This call will *not* dust the member account, so the member must have at least"] + #[doc = " `existential deposit + amount` in their account."] + #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] pub fn join( &self, amount: types::join::Amount, pool_id: types::join::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "join", types::Join { amount, pool_id }, @@ -39112,13 +47846,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra`]."] + #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] + #[doc = ""] + #[doc = "Additional funds can come from either the free balance of the account, of from the"] + #[doc = "accumulated rewards, see [`BondExtra`]."] + #[doc = ""] + #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] + #[doc = "See `bond_extra_other` to bond pending rewards of `other` members."] pub fn bond_extra( &self, pool_id: types::bond_extra::PoolId, extra: types::bond_extra::Extra, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "bond_extra", types::BondExtra { pool_id, extra }, @@ -39129,14 +47869,44 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unbond`]."] + #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] + #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] + #[doc = "rewards would be forfeited."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch."] + #[doc = ""] + #[doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] + #[doc = " as a kick."] + #[doc = "* The pool is destroying and the member is not the depositor."] + #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] + #[doc = "`member_account`):"] + #[doc = ""] + #[doc = "* The caller is not the depositor."] + #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] + #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] + #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] + #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] + #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] + #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] + #[doc = "staking system."] pub fn unbond( &self, member_account: types::unbond::MemberAccount, pool_id: types::unbond::PoolId, unbonding_points: types::unbond::UnbondingPoints, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "unbond", types::Unbond { member_account, pool_id, unbonding_points }, @@ -39148,13 +47918,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + #[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."] pub fn pool_withdraw_unbonded( &self, pool_id: types::pool_withdraw_unbonded::PoolId, num_slashing_spans: types::pool_withdraw_unbonded::NumSlashingSpans, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "pool_withdraw_unbonded", types::PoolWithdrawUnbonded { pool_id, num_slashing_spans }, @@ -39166,14 +47942,32 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::withdraw_unbonded`]."] + #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] + #[doc = "error is returned."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch"] + #[doc = ""] + #[doc = "* The pool is in destroy mode and the target is not the depositor."] + #[doc = "* The target is the depositor and they are the only member in the sub pools."] + #[doc = "* The pool is blocked and the caller is either the root or bouncer."] + #[doc = ""] + #[doc = "# Conditions for permissioned dispatch"] + #[doc = ""] + #[doc = "* The caller is the target and they are not the depositor."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If the target is the depositor, the pool will be destroyed."] pub fn withdraw_unbonded( &self, member_account: types::withdraw_unbonded::MemberAccount, pool_id: types::withdraw_unbonded::PoolId, num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "withdraw_unbonded", types::WithdrawUnbonded { member_account, pool_id, num_slashing_spans }, @@ -39185,26 +47979,48 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create`]."] + #[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."] pub fn create( &self, amount: types::create::Amount, root: types::create::Root, nominator: types::create::Nominator, bouncer: types::create::Bouncer, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + name: types::create::Name, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "create", - types::Create { amount, root, nominator, bouncer }, + types::Create { amount, root, nominator, bouncer, name }, [ - 178u8, 5u8, 192u8, 56u8, 49u8, 78u8, 47u8, 174u8, 224u8, 191u8, 143u8, - 247u8, 33u8, 141u8, 180u8, 96u8, 236u8, 234u8, 181u8, 72u8, 254u8, - 148u8, 228u8, 85u8, 30u8, 187u8, 8u8, 24u8, 255u8, 247u8, 196u8, 229u8, + 239u8, 129u8, 154u8, 41u8, 75u8, 3u8, 59u8, 37u8, 188u8, 180u8, 80u8, + 113u8, 144u8, 8u8, 109u8, 74u8, 49u8, 169u8, 191u8, 69u8, 233u8, 77u8, + 181u8, 141u8, 206u8, 98u8, 156u8, 150u8, 222u8, 115u8, 55u8, 130u8, ], ) } - #[doc = "See [`Pallet::create_with_pool_id`]."] + #[doc = "Create a new delegation pool with a previously used pool id"] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "same as `create` with the inclusion of"] + #[doc = "* `pool_id` - `A valid PoolId."] pub fn create_with_pool_id( &self, amount: types::create_with_pool_id::Amount, @@ -39212,26 +48028,33 @@ pub mod api { nominator: types::create_with_pool_id::Nominator, bouncer: types::create_with_pool_id::Bouncer, pool_id: types::create_with_pool_id::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + name: types::create_with_pool_id::Name, + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "create_with_pool_id", - types::CreateWithPoolId { amount, root, nominator, bouncer, pool_id }, + types::CreateWithPoolId { amount, root, nominator, bouncer, pool_id, name }, [ - 3u8, 35u8, 125u8, 15u8, 31u8, 212u8, 98u8, 154u8, 127u8, 158u8, 202u8, - 73u8, 141u8, 248u8, 238u8, 102u8, 183u8, 24u8, 69u8, 211u8, 128u8, - 152u8, 205u8, 19u8, 215u8, 167u8, 221u8, 77u8, 210u8, 219u8, 69u8, - 246u8, + 137u8, 34u8, 91u8, 95u8, 224u8, 103u8, 22u8, 234u8, 130u8, 89u8, 149u8, + 215u8, 153u8, 34u8, 228u8, 222u8, 100u8, 123u8, 82u8, 65u8, 178u8, + 107u8, 204u8, 157u8, 217u8, 198u8, 227u8, 62u8, 110u8, 242u8, 228u8, + 99u8, ], ) } - #[doc = "See [`Pallet::nominate`]."] + #[doc = "Nominate on behalf of the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] + #[doc = "root role."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] pub fn nominate( &self, pool_id: types::nominate::PoolId, validators: types::nominate::Validators, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "nominate", types::Nominate { pool_id, validators }, @@ -39242,13 +48065,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_state`]."] + #[doc = "Set a new state for the pool."] + #[doc = ""] + #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] + #[doc = "change again."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be either:"] + #[doc = ""] + #[doc = "1. signed by the bouncer, or the root role of the pool,"] + #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] + #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] pub fn set_state( &self, pool_id: types::set_state::PoolId, state: types::set_state::State, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "set_state", types::SetState { pool_id, state }, @@ -39259,13 +48091,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_metadata`]."] + #[doc = "Set a new metadata for the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] + #[doc = "pool."] pub fn set_metadata( &self, pool_id: types::set_metadata::PoolId, metadata: types::set_metadata::Metadata, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "set_metadata", types::SetMetadata { pool_id, metadata }, @@ -39276,15 +48111,25 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_configs`]."] + #[doc = "Update configurations for the nomination pools. The origin for this call must be"] + #[doc = "Root."] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] + #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] + #[doc = "* `max_pools` - Set [`MaxPools`]."] + #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] + #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] + #[doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] pub fn set_configs( &self, min_join_bond: types::set_configs::MinJoinBond, min_create_bond: types::set_configs::MinCreateBond, max_pools: types::set_configs::MaxPools, global_max_commission: types::set_configs::GlobalMaxCommission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "set_configs", types::SetConfigs { @@ -39301,15 +48146,21 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::update_roles`]."] + #[doc = "Update the roles of the pool."] + #[doc = ""] + #[doc = "The root is the only entity that can change any of the roles, including itself,"] + #[doc = "excluding the depositor, who can never change."] + #[doc = ""] + #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] + #[doc = "most pool members and they should be informed of changes to pool roles."] pub fn update_roles( &self, pool_id: types::update_roles::PoolId, new_root: types::update_roles::NewRoot, new_nominator: types::update_roles::NewNominator, new_bouncer: types::update_roles::NewBouncer, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "update_roles", types::UpdateRoles { pool_id, new_root, new_nominator, new_bouncer }, @@ -39321,12 +48172,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::chill`]."] + #[doc = "Chill on behalf of the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] + #[doc = "root role, same as [`Pallet::nominate`]."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] pub fn chill( &self, pool_id: types::chill::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "chill", types::Chill { pool_id }, @@ -39337,14 +48194,22 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra_other`]."] + #[doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] + #[doc = "pools."] + #[doc = ""] + #[doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] + #[doc = "other`."] + #[doc = ""] + #[doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] + #[doc = "`other` members assuming set_claim_permission for the given member is"] + #[doc = "`PermissionlessAll` or `PermissionlessCompound`."] pub fn bond_extra_other( &self, member: types::bond_extra_other::Member, pool_id: types::bond_extra_other::PoolId, extra: types::bond_extra_other::Extra, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "bond_extra_other", types::BondExtraOther { member, pool_id, extra }, @@ -39355,13 +48220,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission`]."] + #[doc = "Set the commission of a pool."] + #[doc = "Both a commission percentage and a commission payee must be provided in the `current`"] + #[doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] + #[doc = ""] + #[doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] pub fn set_commission( &self, pool_id: types::set_commission::PoolId, new_commission: types::set_commission::NewCommission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "set_commission", types::SetCommission { pool_id, new_commission }, @@ -39372,13 +48241,17 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_max`]."] + #[doc = "Set the maximum commission of a pool."] + #[doc = ""] + #[doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] + #[doc = "- Current commission will be lowered in the event it is higher than a new max"] + #[doc = " commission."] pub fn set_commission_max( &self, pool_id: types::set_commission_max::PoolId, max_commission: types::set_commission_max::MaxCommission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "set_commission_max", types::SetCommissionMax { pool_id, max_commission }, @@ -39390,13 +48263,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_change_rate`]."] + #[doc = "Set the commission change rate for a pool."] + #[doc = ""] + #[doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] + #[doc = "restrictive than the current."] pub fn set_commission_change_rate( &self, pool_id: types::set_commission_change_rate::PoolId, change_rate: types::set_commission_change_rate::ChangeRate, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::SetCommissionChangeRate, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "set_commission_change_rate", types::SetCommissionChangeRate { pool_id, change_rate }, @@ -39408,12 +48286,16 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_commission`]."] + #[doc = "Claim pending commission."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] + #[doc = "commission is paid out and added to total claimed commission`. Total pending commission"] + #[doc = "is reset to zero. the current."] pub fn claim_commission( &self, pool_id: types::claim_commission::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "claim_commission", types::ClaimCommission { pool_id }, @@ -39424,12 +48306,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::adjust_pool_deposit`]."] + #[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."] pub fn adjust_pool_deposit( &self, pool_id: types::adjust_pool_deposit::PoolId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload + { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "adjust_pool_deposit", types::AdjustPoolDeposit { pool_id }, @@ -39440,13 +48329,18 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_claim_permission`]."] + #[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 conifigure commission claim permissions."] pub fn set_commission_claim_permission( &self, pool_id: types::set_commission_claim_permission::PoolId, permission: types::set_commission_claim_permission::Permission, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( + ) -> ::subxt::ext::subxt_core::tx::payload::StaticPayload< + types::SetCommissionClaimPermission, + > { + ::subxt::ext::subxt_core::tx::payload::StaticPayload::new_static( "Lst", "set_commission_claim_permission", types::SetCommissionClaimPermission { pool_id, permission }, @@ -39464,18 +48358,18 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool has been created."] pub struct Created { pub depositor: created::Depositor, @@ -39483,26 +48377,26 @@ pub mod api { } pub mod created { use super::runtime_types; - pub type Depositor = ::subxt_core::utils::AccountId32; + pub type Depositor = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Created { + impl ::subxt::ext::subxt_core::events::StaticEvent for Created { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "Created"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has became bonded in a pool."] pub struct Bonded { pub member: bonded::Member, @@ -39512,28 +48406,28 @@ pub mod api { } pub mod bonded { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Bonded = ::core::primitive::u128; pub type Joined = ::core::primitive::bool; } - impl ::subxt_core::events::StaticEvent for Bonded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Bonded { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "Bonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A payout has been made to a member."] pub struct PaidOut { pub member: paid_out::Member, @@ -39542,27 +48436,27 @@ pub mod api { } pub mod paid_out { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Payout = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for PaidOut { + impl ::subxt::ext::subxt_core::events::StaticEvent for PaidOut { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "PaidOut"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has unbonded from their pool."] #[doc = ""] #[doc = "- `balance` is the corresponding balance of the number of points that has been"] @@ -39583,29 +48477,29 @@ pub mod api { } pub mod unbonded { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; pub type Points = ::core::primitive::u128; pub type Era = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Unbonded { + impl ::subxt::ext::subxt_core::events::StaticEvent for Unbonded { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "Unbonded"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has withdrawn from their pool."] #[doc = ""] #[doc = "The given number of `points` have been dissolved in return of `balance`."] @@ -39620,28 +48514,28 @@ pub mod api { } pub mod withdrawn { use super::runtime_types; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; pub type PoolId = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; pub type Points = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for Withdrawn { + impl ::subxt::ext::subxt_core::events::StaticEvent for Withdrawn { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "Withdrawn"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool has been destroyed."] pub struct Destroyed { pub pool_id: destroyed::PoolId, @@ -39650,23 +48544,23 @@ pub mod api { use super::runtime_types; pub type PoolId = ::core::primitive::u32; } - impl ::subxt_core::events::StaticEvent for Destroyed { + impl ::subxt::ext::subxt_core::events::StaticEvent for Destroyed { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "Destroyed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The state of a pool has changed"] pub struct StateChanged { pub pool_id: state_changed::PoolId, @@ -39677,23 +48571,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type NewState = runtime_types::pallet_tangle_lst::types::pools::PoolState; } - impl ::subxt_core::events::StaticEvent for StateChanged { + impl ::subxt::ext::subxt_core::events::StaticEvent for StateChanged { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "StateChanged"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A member has been removed from a pool."] #[doc = ""] #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] @@ -39704,25 +48598,25 @@ pub mod api { pub mod member_removed { use super::runtime_types; pub type PoolId = ::core::primitive::u32; - pub type Member = ::subxt_core::utils::AccountId32; + pub type Member = ::subxt::ext::subxt_core::utils::AccountId32; } - impl ::subxt_core::events::StaticEvent for MemberRemoved { + impl ::subxt::ext::subxt_core::events::StaticEvent for MemberRemoved { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "MemberRemoved"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] pub struct RolesUpdated { @@ -39732,27 +48626,30 @@ pub mod api { } pub mod roles_updated { use super::runtime_types; - pub type Root = ::core::option::Option<::subxt_core::utils::AccountId32>; - pub type Bouncer = ::core::option::Option<::subxt_core::utils::AccountId32>; - pub type Nominator = ::core::option::Option<::subxt_core::utils::AccountId32>; - } - impl ::subxt_core::events::StaticEvent for RolesUpdated { + pub type Root = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + pub type Bouncer = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + pub type Nominator = + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>; + } + impl ::subxt::ext::subxt_core::events::StaticEvent for RolesUpdated { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "RolesUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] pub struct PoolSlashed { pub pool_id: pool_slashed::PoolId, @@ -39763,23 +48660,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for PoolSlashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolSlashed { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "PoolSlashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] pub struct UnbondingPoolSlashed { pub pool_id: unbonding_pool_slashed::PoolId, @@ -39792,23 +48689,23 @@ pub mod api { pub type Era = ::core::primitive::u32; pub type Balance = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for UnbondingPoolSlashed { + impl ::subxt::ext::subxt_core::events::StaticEvent for UnbondingPoolSlashed { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "UnbondingPoolSlashed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool's commission setting has been changed."] pub struct PoolCommissionUpdated { pub pool_id: pool_commission_updated::PoolId, @@ -39819,26 +48716,26 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Current = ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>; } - impl ::subxt_core::events::StaticEvent for PoolCommissionUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionUpdated { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "PoolCommissionUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool's maximum commission setting has been changed."] pub struct PoolMaxCommissionUpdated { pub pool_id: pool_max_commission_updated::PoolId, @@ -39849,23 +48746,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; } - impl ::subxt_core::events::StaticEvent for PoolMaxCommissionUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolMaxCommissionUpdated { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "PoolMaxCommissionUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "A pool's commission `change_rate` has been changed."] pub struct PoolCommissionChangeRateUpdated { pub pool_id: pool_commission_change_rate_updated::PoolId, @@ -39879,23 +48776,23 @@ pub mod api { ::core::primitive::u64, >; } - impl ::subxt_core::events::StaticEvent for PoolCommissionChangeRateUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionChangeRateUpdated { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Pool commission claim permission has been updated."] pub struct PoolCommissionClaimPermissionUpdated { pub pool_id: pool_commission_claim_permission_updated::PoolId, @@ -39906,27 +48803,27 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Permission = ::core::option::Option< runtime_types::pallet_tangle_lst::types::commission::CommissionClaimPermission< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >; } - impl ::subxt_core::events::StaticEvent for PoolCommissionClaimPermissionUpdated { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionClaimPermissionUpdated { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "PoolCommissionClaimPermissionUpdated"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Pool commission has been claimed."] pub struct PoolCommissionClaimed { pub pool_id: pool_commission_claimed::PoolId, @@ -39937,23 +48834,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Commission = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for PoolCommissionClaimed { + impl ::subxt::ext::subxt_core::events::StaticEvent for PoolCommissionClaimed { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "PoolCommissionClaimed"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Topped up deficit in frozen ED of the reward pool."] pub struct MinBalanceDeficitAdjusted { pub pool_id: min_balance_deficit_adjusted::PoolId, @@ -39964,23 +48861,23 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for MinBalanceDeficitAdjusted { + impl ::subxt::ext::subxt_core::events::StaticEvent for MinBalanceDeficitAdjusted { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "MinBalanceDeficitAdjusted"; } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] #[doc = "Claimed excess frozen ED of af the reward pool."] pub struct MinBalanceExcessAdjusted { pub pool_id: min_balance_excess_adjusted::PoolId, @@ -39991,7 +48888,7 @@ pub mod api { pub type PoolId = ::core::primitive::u32; pub type Amount = ::core::primitive::u128; } - impl ::subxt_core::events::StaticEvent for MinBalanceExcessAdjusted { + impl ::subxt::ext::subxt_core::events::StaticEvent for MinBalanceExcessAdjusted { const PALLET: &'static str = "Lst"; const EVENT: &'static str = "MinBalanceExcessAdjusted"; } @@ -40070,7 +48967,7 @@ pub mod api { use super::runtime_types; pub type UnbondingMembers = runtime_types::pallet_tangle_lst::types::pools::PoolMember; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod counter_for_unbonding_members { use super::runtime_types; @@ -40079,7 +48976,7 @@ pub mod api { pub mod reverse_pool_id_lookup { use super::runtime_types; pub type ReversePoolIdLookup = ::core::primitive::u32; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } pub mod counter_for_reverse_pool_id_lookup { use super::runtime_types; @@ -40089,7 +48986,7 @@ pub mod api { use super::runtime_types; pub type ClaimPermissions = runtime_types::pallet_tangle_lst::types::ClaimPermission; - pub type Param0 = ::subxt_core::utils::AccountId32; + pub type Param0 = ::subxt::ext::subxt_core::utils::AccountId32; } } pub struct StorageApi; @@ -40101,14 +48998,14 @@ pub mod api { #[doc = " `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s."] pub fn total_value_locked( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::total_value_locked::TotalValueLocked, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "TotalValueLocked", (), @@ -40122,14 +49019,14 @@ pub mod api { #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_join_bond::MinJoinBond, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "MinJoinBond", (), @@ -40149,14 +49046,14 @@ pub mod api { #[doc = " while all other accounts leave."] pub fn min_create_bond( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::min_create_bond::MinCreateBond, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "MinCreateBond", (), @@ -40172,14 +49069,14 @@ pub mod api { #[doc = " pools can exist."] pub fn max_pools( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::max_pools::MaxPools, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "MaxPools", (), @@ -40196,14 +49093,14 @@ pub mod api { #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] pub fn global_max_commission( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::global_max_commission::GlobalMaxCommission, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "GlobalMaxCommission", (), @@ -40218,21 +49115,22 @@ pub mod api { #[doc = " Storage for bonded pools."] pub fn bonded_pools_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::bonded_pools::BondedPools, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "BondedPools", (), [ - 73u8, 70u8, 85u8, 166u8, 147u8, 233u8, 221u8, 180u8, 201u8, 84u8, 90u8, - 116u8, 240u8, 145u8, 234u8, 29u8, 7u8, 55u8, 182u8, 214u8, 88u8, 187u8, - 6u8, 127u8, 205u8, 221u8, 33u8, 203u8, 65u8, 25u8, 158u8, 204u8, + 194u8, 144u8, 89u8, 142u8, 96u8, 110u8, 180u8, 204u8, 76u8, 33u8, + 113u8, 159u8, 247u8, 156u8, 25u8, 208u8, 194u8, 82u8, 24u8, 225u8, + 139u8, 79u8, 199u8, 63u8, 30u8, 0u8, 20u8, 51u8, 57u8, 19u8, 176u8, + 9u8, ], ) } @@ -40240,35 +49138,40 @@ pub mod api { pub fn bonded_pools( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::bonded_pools::Param0, + >, types::bonded_pools::BondedPools, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "BondedPools", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ - 73u8, 70u8, 85u8, 166u8, 147u8, 233u8, 221u8, 180u8, 201u8, 84u8, 90u8, - 116u8, 240u8, 145u8, 234u8, 29u8, 7u8, 55u8, 182u8, 214u8, 88u8, 187u8, - 6u8, 127u8, 205u8, 221u8, 33u8, 203u8, 65u8, 25u8, 158u8, 204u8, + 194u8, 144u8, 89u8, 142u8, 96u8, 110u8, 180u8, 204u8, 76u8, 33u8, + 113u8, 159u8, 247u8, 156u8, 25u8, 208u8, 194u8, 82u8, 24u8, 225u8, + 139u8, 79u8, 199u8, 63u8, 30u8, 0u8, 20u8, 51u8, 57u8, 19u8, 176u8, + 9u8, ], ) } #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_bonded_pools::CounterForBondedPools, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "CounterForBondedPools", (), @@ -40283,14 +49186,14 @@ pub mod api { #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::reward_pools::RewardPools, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "RewardPools", (), @@ -40307,17 +49210,21 @@ pub mod api { pub fn reward_pools( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::reward_pools::Param0, + >, types::reward_pools::RewardPools, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "RewardPools", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, @@ -40329,14 +49236,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_reward_pools::CounterForRewardPools, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "CounterForRewardPools", (), @@ -40352,14 +49259,14 @@ pub mod api { #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::sub_pools_storage::SubPoolsStorage, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "SubPoolsStorage", (), @@ -40375,19 +49282,21 @@ pub mod api { pub fn sub_pools_storage( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::sub_pools_storage::Param0, >, types::sub_pools_storage::SubPoolsStorage, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "SubPoolsStorage", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, @@ -40398,14 +49307,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_sub_pools_storage::CounterForSubPoolsStorage, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "CounterForSubPoolsStorage", (), @@ -40420,14 +49329,14 @@ pub mod api { #[doc = " Metadata for the pool."] pub fn metadata_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::metadata::Metadata, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "Metadata", (), @@ -40442,17 +49351,21 @@ pub mod api { pub fn metadata( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< + types::metadata::Param0, + >, types::metadata::Metadata, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "Metadata", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, @@ -40463,14 +49376,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_metadata::CounterForMetadata, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "CounterForMetadata", (), @@ -40485,14 +49398,14 @@ pub mod api { #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::last_pool_id::LastPoolId, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "LastPoolId", (), @@ -40509,14 +49422,14 @@ pub mod api { #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn unbonding_members_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::unbonding_members::UnbondingMembers, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "UnbondingMembers", (), @@ -40533,19 +49446,21 @@ pub mod api { pub fn unbonding_members( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::unbonding_members::Param0, >, types::unbonding_members::UnbondingMembers, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "UnbondingMembers", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 12u8, 3u8, 231u8, 163u8, 207u8, 37u8, 152u8, 52u8, 81u8, 171u8, 162u8, 70u8, 37u8, 199u8, 254u8, 172u8, 124u8, 50u8, 6u8, 69u8, 166u8, 184u8, @@ -40556,14 +49471,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_unbonding_members( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_unbonding_members::CounterForUnbondingMembers, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "CounterForUnbondingMembers", (), @@ -40581,14 +49496,14 @@ pub mod api { #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::reverse_pool_id_lookup::ReversePoolIdLookup, (), (), - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "ReversePoolIdLookup", (), @@ -40606,19 +49521,21 @@ pub mod api { pub fn reverse_pool_id_lookup( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::reverse_pool_id_lookup::Param0, >, types::reverse_pool_id_lookup::ReversePoolIdLookup, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "ReversePoolIdLookup", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, @@ -40629,14 +49546,14 @@ pub mod api { #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::counter_for_reverse_pool_id_lookup::CounterForReversePoolIdLookup, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "CounterForReversePoolIdLookup", (), @@ -40651,14 +49568,14 @@ pub mod api { #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_iter( &self, - ) -> ::subxt_core::storage::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< (), types::claim_permissions::ClaimPermissions, (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "ClaimPermissions", (), @@ -40673,19 +49590,21 @@ pub mod api { pub fn claim_permissions( &self, _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< + ) -> ::subxt::ext::subxt_core::storage::address::StaticAddress< + ::subxt::ext::subxt_core::storage::address::StaticStorageKey< types::claim_permissions::Param0, >, types::claim_permissions::ClaimPermissions, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, + ::subxt::ext::subxt_core::utils::Yes, (), > { - ::subxt_core::storage::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::storage::address::StaticAddress::new_static( "Lst", "ClaimPermissions", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), + ::subxt::ext::subxt_core::storage::address::StaticStorageKey::new( + _0.borrow(), + ), [ 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, @@ -40702,10 +49621,10 @@ pub mod api { #[doc = " The nomination pool's pallet id."] pub fn pallet_id( &self, - ) -> ::subxt_core::constants::address::StaticAddress< + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< runtime_types::frame_support::PalletId, > { - ::subxt_core::constants::address::StaticAddress::new_static( + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Lst", "PalletId", [ @@ -40729,8 +49648,10 @@ pub mod api { #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] pub fn max_points_to_balance( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u8> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u8, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Lst", "MaxPointsToBalance", [ @@ -40744,8 +49665,10 @@ pub mod api { #[doc = " The maximum number of simultaneous unbonding chunks that can exist per member."] pub fn max_unbonding( &self, - ) -> ::subxt_core::constants::address::StaticAddress<::core::primitive::u32> { - ::subxt_core::constants::address::StaticAddress::new_static( + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( "Lst", "MaxUnbonding", [ @@ -40756,3633 +49679,2016 @@ pub mod api { ], ) } + #[doc = " The maximum length of a pool name."] + pub fn max_name_length( + &self, + ) -> ::subxt::ext::subxt_core::constants::address::StaticAddress< + ::core::primitive::u32, + > { + ::subxt::ext::subxt_core::constants::address::StaticAddress::new_static( + "Lst", + "MaxNameLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } } } } - pub mod sygma_access_segregator { - use super::root_mod; + pub mod runtime_types { use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::sygma_access_segregator::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::sygma_access_segregator::pallet::Call; - pub mod calls { - use super::root_mod; + pub mod bounded_collections { use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod bounded_btree_map { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::grant_access`]."] - pub struct GrantAccess { - pub pallet_index: grant_access::PalletIndex, - pub extrinsic_name: grant_access::ExtrinsicName, - pub who: grant_access::Who, - } - pub mod grant_access { - use super::runtime_types; - pub type PalletIndex = ::core::primitive::u8; - pub type ExtrinsicName = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Who = ::subxt_core::utils::AccountId32; - } - impl ::subxt_core::blocks::StaticExtrinsic for GrantAccess { - const PALLET: &'static str = "SygmaAccessSegregator"; - const CALL: &'static str = "grant_access"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::grant_access`]."] - pub fn grant_access( - &self, - pallet_index: types::grant_access::PalletIndex, - extrinsic_name: types::grant_access::ExtrinsicName, - who: types::grant_access::Who, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaAccessSegregator", - "grant_access", - types::GrantAccess { pallet_index, extrinsic_name, who }, - [ - 185u8, 40u8, 56u8, 85u8, 235u8, 128u8, 138u8, 81u8, 241u8, 226u8, - 243u8, 229u8, 229u8, 137u8, 11u8, 51u8, 160u8, 220u8, 0u8, 72u8, 166u8, - 39u8, 71u8, 11u8, 100u8, 14u8, 80u8, 40u8, 127u8, 175u8, 4u8, 209u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::sygma_access_segregator::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Extrinsic access grant to someone"] - #[doc = "args: [pallet_index, extrinsic_name, who]"] - pub struct AccessGranted { - pub pallet_index: access_granted::PalletIndex, - pub extrinsic_name: access_granted::ExtrinsicName, - pub who: access_granted::Who, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct BoundedBTreeMap<_0, _1>( + pub ::subxt::ext::subxt_core::utils::KeyedVec<_0, _1>, + ); } - pub mod access_granted { + pub mod bounded_btree_set { use super::runtime_types; - pub type PalletIndex = ::core::primitive::u8; - pub type ExtrinsicName = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type Who = ::subxt_core::utils::AccountId32; - } - impl ::subxt_core::events::StaticEvent for AccessGranted { - const PALLET: &'static str = "SygmaAccessSegregator"; - const EVENT: &'static str = "AccessGranted"; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct BoundedBTreeSet<_0>(pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>); } - } - pub mod storage { - use super::runtime_types; - pub mod types { + pub mod bounded_vec { use super::runtime_types; - pub mod extrinsic_access { - use super::runtime_types; - pub type ExtrinsicAccess = ::subxt_core::utils::AccountId32; - pub type Param0 = ::core::primitive::u8; - pub type Param1 = [::core::primitive::u8]; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Mapping signature of extrinsic to account has access"] - #[doc = " (pallet_index, extrinsic_name) => account"] - pub fn extrinsic_access_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::extrinsic_access::ExtrinsicAccess, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaAccessSegregator", - "ExtrinsicAccess", - (), - [ - 143u8, 8u8, 210u8, 166u8, 233u8, 63u8, 77u8, 117u8, 102u8, 251u8, - 152u8, 17u8, 82u8, 36u8, 48u8, 64u8, 76u8, 17u8, 41u8, 121u8, 223u8, - 92u8, 47u8, 160u8, 18u8, 213u8, 171u8, 111u8, 144u8, 197u8, 171u8, 9u8, - ], - ) - } - #[doc = " Mapping signature of extrinsic to account has access"] - #[doc = " (pallet_index, extrinsic_name) => account"] - pub fn extrinsic_access_iter1( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< - types::extrinsic_access::Param0, - >, - types::extrinsic_access::ExtrinsicAccess, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaAccessSegregator", - "ExtrinsicAccess", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 143u8, 8u8, 210u8, 166u8, 233u8, 63u8, 77u8, 117u8, 102u8, 251u8, - 152u8, 17u8, 82u8, 36u8, 48u8, 64u8, 76u8, 17u8, 41u8, 121u8, 223u8, - 92u8, 47u8, 160u8, 18u8, 213u8, 171u8, 111u8, 144u8, 197u8, 171u8, 9u8, - ], - ) - } - #[doc = " Mapping signature of extrinsic to account has access"] - #[doc = " (pallet_index, extrinsic_name) => account"] - pub fn extrinsic_access( - &self, - _0: impl ::core::borrow::Borrow, - _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ( - ::subxt_core::storage::address::StaticStorageKey< - types::extrinsic_access::Param0, - >, - ::subxt_core::storage::address::StaticStorageKey< - types::extrinsic_access::Param1, - >, - ), - types::extrinsic_access::ExtrinsicAccess, - ::subxt_core::utils::Yes, - (), - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaAccessSegregator", - "ExtrinsicAccess", - ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), - ), - [ - 143u8, 8u8, 210u8, 166u8, 233u8, 63u8, 77u8, 117u8, 102u8, 251u8, - 152u8, 17u8, 82u8, 36u8, 48u8, 64u8, 76u8, 17u8, 41u8, 121u8, 223u8, - 92u8, 47u8, 160u8, 18u8, 213u8, 171u8, 111u8, 144u8, 197u8, 171u8, 9u8, - ], - ) - } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + serde :: Deserialize, + serde :: Serialize, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct BoundedVec<_0>(pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>); } - } - } - pub mod sygma_basic_fee_handler { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::sygma_basic_feehandler::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::sygma_basic_feehandler::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod weak_bounded_vec { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_fee`]."] - pub struct SetFee { - pub domain: set_fee::Domain, - pub asset: ::subxt_core::alloc::boxed::Box, - pub amount: set_fee::Amount, - } - pub mod set_fee { - use super::runtime_types; - pub type Domain = ::core::primitive::u8; - pub type Asset = runtime_types::staging_xcm::v4::asset::AssetId; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt_core::blocks::StaticExtrinsic for SetFee { - const PALLET: &'static str = "SygmaBasicFeeHandler"; - const CALL: &'static str = "set_fee"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set_fee`]."] - pub fn set_fee( - &self, - domain: types::set_fee::Domain, - asset: types::set_fee::Asset, - amount: types::set_fee::Amount, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBasicFeeHandler", - "set_fee", - types::SetFee { - domain, - asset: ::subxt_core::alloc::boxed::Box::new(asset), - amount, - }, - [ - 58u8, 170u8, 100u8, 165u8, 141u8, 86u8, 99u8, 27u8, 15u8, 93u8, 156u8, - 122u8, 173u8, 215u8, 13u8, 5u8, 172u8, 248u8, 149u8, 245u8, 82u8, - 224u8, 143u8, 135u8, 123u8, 236u8, 235u8, 118u8, 236u8, 85u8, 215u8, - 151u8, - ], - ) - } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct WeakBoundedVec<_0>(pub ::subxt::ext::subxt_core::alloc::vec::Vec<_0>); } } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::sygma_basic_feehandler::pallet::Event; - pub mod events { + pub mod ethbloom { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Fee set for a specific asset"] - #[doc = "args: [domain, asset, amount]"] - pub struct FeeSet { - pub domain: fee_set::Domain, - pub asset: fee_set::Asset, - pub amount: fee_set::Amount, - } - pub mod fee_set { - use super::runtime_types; - pub type Domain = ::core::primitive::u8; - pub type Asset = runtime_types::staging_xcm::v4::asset::AssetId; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt_core::events::StaticEvent for FeeSet { - const PALLET: &'static str = "SygmaBasicFeeHandler"; - const EVENT: &'static str = "FeeSet"; - } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct Bloom(pub [::core::primitive::u8; 256usize]); } - pub mod storage { + pub mod ethereum { use super::runtime_types; - pub mod types { + pub mod block { use super::runtime_types; - pub mod asset_fees { - use super::runtime_types; - pub type AssetFees = ::core::primitive::u128; - pub type Param0 = ::core::primitive::u8; - pub type Param1 = runtime_types::staging_xcm::v4::asset::AssetId; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Mapping fungible asset id to corresponding fee amount"] - pub fn asset_fees_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::asset_fees::AssetFees, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBasicFeeHandler", - "AssetFees", - (), - [ - 226u8, 116u8, 228u8, 2u8, 119u8, 37u8, 33u8, 123u8, 53u8, 245u8, 143u8, - 236u8, 108u8, 254u8, 249u8, 187u8, 149u8, 128u8, 109u8, 87u8, 100u8, - 6u8, 253u8, 156u8, 31u8, 2u8, 94u8, 73u8, 134u8, 3u8, 173u8, 83u8, - ], - ) - } - #[doc = " Mapping fungible asset id to corresponding fee amount"] - pub fn asset_fees_iter1( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::asset_fees::AssetFees, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBasicFeeHandler", - "AssetFees", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 226u8, 116u8, 228u8, 2u8, 119u8, 37u8, 33u8, 123u8, 53u8, 245u8, 143u8, - 236u8, 108u8, 254u8, 249u8, 187u8, 149u8, 128u8, 109u8, 87u8, 100u8, - 6u8, 253u8, 156u8, 31u8, 2u8, 94u8, 73u8, 134u8, 3u8, 173u8, 83u8, - ], - ) - } - #[doc = " Mapping fungible asset id to corresponding fee amount"] - pub fn asset_fees( - &self, - _0: impl ::core::borrow::Borrow, - _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ( - ::subxt_core::storage::address::StaticStorageKey, - ::subxt_core::storage::address::StaticStorageKey, - ), - types::asset_fees::AssetFees, - ::subxt_core::utils::Yes, - (), - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBasicFeeHandler", - "AssetFees", - ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), - ), - [ - 226u8, 116u8, 228u8, 2u8, 119u8, 37u8, 33u8, 123u8, 53u8, 245u8, 143u8, - 236u8, 108u8, 254u8, 249u8, 187u8, 149u8, 128u8, 109u8, 87u8, 100u8, - 6u8, 253u8, 156u8, 31u8, 2u8, 94u8, 73u8, 134u8, 3u8, 173u8, 83u8, - ], - ) + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Block<_0> { + pub header: runtime_types::ethereum::header::Header, + pub transactions: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, + pub ommers: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::ethereum::header::Header, + >, } } - } - } - pub mod sygma_fee_handler_router { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::sygma_fee_handler_router::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::sygma_fee_handler_router::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod header { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_fee_handler`]."] - pub struct SetFeeHandler { - pub domain: set_fee_handler::Domain, - pub asset: ::subxt_core::alloc::boxed::Box, - pub handler_type: set_fee_handler::HandlerType, - } - pub mod set_fee_handler { - use super::runtime_types; - pub type Domain = ::core::primitive::u8; - pub type Asset = runtime_types::staging_xcm::v4::asset::AssetId; - pub type HandlerType = - runtime_types::sygma_fee_handler_router::pallet::FeeHandlerType; - } - impl ::subxt_core::blocks::StaticExtrinsic for SetFeeHandler { - const PALLET: &'static str = "SygmaFeeHandlerRouter"; - const CALL: &'static str = "set_fee_handler"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set_fee_handler`]."] - pub fn set_fee_handler( - &self, - domain: types::set_fee_handler::Domain, - asset: types::set_fee_handler::Asset, - handler_type: types::set_fee_handler::HandlerType, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaFeeHandlerRouter", - "set_fee_handler", - types::SetFeeHandler { - domain, - asset: ::subxt_core::alloc::boxed::Box::new(asset), - handler_type, - }, - [ - 24u8, 82u8, 62u8, 232u8, 23u8, 161u8, 105u8, 181u8, 130u8, 2u8, 39u8, - 110u8, 197u8, 41u8, 171u8, 162u8, 173u8, 117u8, 30u8, 208u8, 126u8, - 50u8, 73u8, 255u8, 221u8, 53u8, 94u8, 152u8, 29u8, 89u8, 207u8, 171u8, - ], - ) + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Header { + pub parent_hash: ::subxt::ext::subxt_core::utils::H256, + pub ommers_hash: ::subxt::ext::subxt_core::utils::H256, + pub beneficiary: ::subxt::ext::subxt_core::utils::H160, + pub state_root: ::subxt::ext::subxt_core::utils::H256, + pub transactions_root: ::subxt::ext::subxt_core::utils::H256, + pub receipts_root: ::subxt::ext::subxt_core::utils::H256, + pub logs_bloom: runtime_types::ethbloom::Bloom, + pub difficulty: runtime_types::primitive_types::U256, + pub number: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub gas_used: runtime_types::primitive_types::U256, + pub timestamp: ::core::primitive::u64, + pub extra_data: + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + pub mix_hash: ::subxt::ext::subxt_core::utils::H256, + pub nonce: runtime_types::ethereum_types::hash::H64, } } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::sygma_fee_handler_router::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When fee handler was set for a specific (domain, asset) pair"] - #[doc = "args: [dest_domain_id, asset_id, handler_type]"] - pub struct FeeHandlerSet { - pub domain: fee_handler_set::Domain, - pub asset: fee_handler_set::Asset, - pub handler_type: fee_handler_set::HandlerType, - } - pub mod fee_handler_set { - use super::runtime_types; - pub type Domain = ::core::primitive::u8; - pub type Asset = runtime_types::staging_xcm::v4::asset::AssetId; - pub type HandlerType = - runtime_types::sygma_fee_handler_router::pallet::FeeHandlerType; - } - impl ::subxt_core::events::StaticEvent for FeeHandlerSet { - const PALLET: &'static str = "SygmaFeeHandlerRouter"; - const EVENT: &'static str = "FeeHandlerSet"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { + pub mod log { use super::runtime_types; - pub mod handler_type { - use super::runtime_types; - pub type HandlerType = - runtime_types::sygma_fee_handler_router::pallet::FeeHandlerType; - pub type Param0 = ::core::primitive::u8; - pub type Param1 = runtime_types::staging_xcm::v4::asset::AssetId; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Return the Fee handler type based on domainID and assetID"] - pub fn handler_type_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::handler_type::HandlerType, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaFeeHandlerRouter", - "HandlerType", - (), - [ - 131u8, 32u8, 132u8, 221u8, 111u8, 250u8, 191u8, 86u8, 230u8, 207u8, - 214u8, 98u8, 19u8, 247u8, 144u8, 179u8, 50u8, 60u8, 78u8, 94u8, 192u8, - 174u8, 252u8, 231u8, 137u8, 139u8, 62u8, 71u8, 10u8, 230u8, 216u8, - 212u8, - ], - ) - } - #[doc = " Return the Fee handler type based on domainID and assetID"] - pub fn handler_type_iter1( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::handler_type::HandlerType, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaFeeHandlerRouter", - "HandlerType", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 131u8, 32u8, 132u8, 221u8, 111u8, 250u8, 191u8, 86u8, 230u8, 207u8, - 214u8, 98u8, 19u8, 247u8, 144u8, 179u8, 50u8, 60u8, 78u8, 94u8, 192u8, - 174u8, 252u8, 231u8, 137u8, 139u8, 62u8, 71u8, 10u8, 230u8, 216u8, - 212u8, - ], - ) - } - #[doc = " Return the Fee handler type based on domainID and assetID"] - pub fn handler_type( - &self, - _0: impl ::core::borrow::Borrow, - _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ( - ::subxt_core::storage::address::StaticStorageKey< - types::handler_type::Param0, - >, - ::subxt_core::storage::address::StaticStorageKey< - types::handler_type::Param1, - >, - ), - types::handler_type::HandlerType, - ::subxt_core::utils::Yes, - (), - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaFeeHandlerRouter", - "HandlerType", - ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), - ), - [ - 131u8, 32u8, 132u8, 221u8, 111u8, 250u8, 191u8, 86u8, 230u8, 207u8, - 214u8, 98u8, 19u8, 247u8, 144u8, 179u8, 50u8, 60u8, 78u8, 94u8, 192u8, - 174u8, 252u8, 231u8, 137u8, 139u8, 62u8, 71u8, 10u8, 230u8, 216u8, - 212u8, - ], - ) + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Log { + pub address: ::subxt::ext::subxt_core::utils::H160, + pub topics: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, + pub data: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, } } - } - } - pub mod sygma_percentage_fee_handler { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::sygma_percentage_feehandler::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::sygma_percentage_feehandler::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod receipt { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_fee_rate`]."] - pub struct SetFeeRate { - pub domain: set_fee_rate::Domain, - pub asset: ::subxt_core::alloc::boxed::Box, - pub fee_rate_basis_point: set_fee_rate::FeeRateBasisPoint, - pub fee_lower_bound: set_fee_rate::FeeLowerBound, - pub fee_upper_bound: set_fee_rate::FeeUpperBound, - } - pub mod set_fee_rate { - use super::runtime_types; - pub type Domain = ::core::primitive::u8; - pub type Asset = runtime_types::staging_xcm::v4::asset::AssetId; - pub type FeeRateBasisPoint = ::core::primitive::u32; - pub type FeeLowerBound = ::core::primitive::u128; - pub type FeeUpperBound = ::core::primitive::u128; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct EIP658ReceiptData { + pub status_code: ::core::primitive::u8, + pub used_gas: runtime_types::primitive_types::U256, + pub logs_bloom: runtime_types::ethbloom::Bloom, + pub logs: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::ethereum::log::Log, + >, } - impl ::subxt_core::blocks::StaticExtrinsic for SetFeeRate { - const PALLET: &'static str = "SygmaPercentageFeeHandler"; - const CALL: &'static str = "set_fee_rate"; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum ReceiptV3 { + #[codec(index = 0)] + Legacy(runtime_types::ethereum::receipt::EIP658ReceiptData), + #[codec(index = 1)] + EIP2930(runtime_types::ethereum::receipt::EIP658ReceiptData), + #[codec(index = 2)] + EIP1559(runtime_types::ethereum::receipt::EIP658ReceiptData), } } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set_fee_rate`]."] - pub fn set_fee_rate( - &self, - domain: types::set_fee_rate::Domain, - asset: types::set_fee_rate::Asset, - fee_rate_basis_point: types::set_fee_rate::FeeRateBasisPoint, - fee_lower_bound: types::set_fee_rate::FeeLowerBound, - fee_upper_bound: types::set_fee_rate::FeeUpperBound, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaPercentageFeeHandler", - "set_fee_rate", - types::SetFeeRate { - domain, - asset: ::subxt_core::alloc::boxed::Box::new(asset), - fee_rate_basis_point, - fee_lower_bound, - fee_upper_bound, - }, - [ - 149u8, 3u8, 81u8, 161u8, 144u8, 52u8, 210u8, 213u8, 198u8, 213u8, 2u8, - 71u8, 200u8, 204u8, 57u8, 227u8, 2u8, 224u8, 131u8, 151u8, 49u8, 125u8, - 176u8, 188u8, 118u8, 130u8, 79u8, 72u8, 151u8, 49u8, 20u8, 1u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::sygma_percentage_feehandler::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Fee set rate for a specific asset and domain"] - #[doc = "args: [domain, asset, rate_basis_point, fee_lower_bound, fee_upper_bound]"] - pub struct FeeRateSet { - pub domain: fee_rate_set::Domain, - pub asset: fee_rate_set::Asset, - pub rate_basis_point: fee_rate_set::RateBasisPoint, - pub fee_lower_bound: fee_rate_set::FeeLowerBound, - pub fee_upper_bound: fee_rate_set::FeeUpperBound, - } - pub mod fee_rate_set { - use super::runtime_types; - pub type Domain = ::core::primitive::u8; - pub type Asset = runtime_types::staging_xcm::v4::asset::AssetId; - pub type RateBasisPoint = ::core::primitive::u32; - pub type FeeLowerBound = ::core::primitive::u128; - pub type FeeUpperBound = ::core::primitive::u128; - } - impl ::subxt_core::events::StaticEvent for FeeRateSet { - const PALLET: &'static str = "SygmaPercentageFeeHandler"; - const EVENT: &'static str = "FeeRateSet"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod asset_fee_rate { - use super::runtime_types; - pub type AssetFeeRate = - (::core::primitive::u32, ::core::primitive::u128, ::core::primitive::u128); - pub type Param0 = ::core::primitive::u8; - pub type Param1 = runtime_types::staging_xcm::v4::asset::AssetId; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Mapping fungible asset id with domain id to fee rate and its lower bound, upperbound"] - pub fn asset_fee_rate_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::asset_fee_rate::AssetFeeRate, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaPercentageFeeHandler", - "AssetFeeRate", - (), - [ - 219u8, 84u8, 17u8, 190u8, 134u8, 94u8, 11u8, 248u8, 86u8, 201u8, 219u8, - 162u8, 70u8, 38u8, 12u8, 50u8, 115u8, 127u8, 102u8, 227u8, 78u8, 108u8, - 237u8, 106u8, 85u8, 101u8, 113u8, 208u8, 87u8, 187u8, 239u8, 166u8, - ], - ) - } - #[doc = " Mapping fungible asset id with domain id to fee rate and its lower bound, upperbound"] - pub fn asset_fee_rate_iter1( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::asset_fee_rate::AssetFeeRate, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaPercentageFeeHandler", - "AssetFeeRate", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 219u8, 84u8, 17u8, 190u8, 134u8, 94u8, 11u8, 248u8, 86u8, 201u8, 219u8, - 162u8, 70u8, 38u8, 12u8, 50u8, 115u8, 127u8, 102u8, 227u8, 78u8, 108u8, - 237u8, 106u8, 85u8, 101u8, 113u8, 208u8, 87u8, 187u8, 239u8, 166u8, - ], - ) - } - #[doc = " Mapping fungible asset id with domain id to fee rate and its lower bound, upperbound"] - pub fn asset_fee_rate( - &self, - _0: impl ::core::borrow::Borrow, - _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ( - ::subxt_core::storage::address::StaticStorageKey< - types::asset_fee_rate::Param0, - >, - ::subxt_core::storage::address::StaticStorageKey< - types::asset_fee_rate::Param1, - >, - ), - types::asset_fee_rate::AssetFeeRate, - ::subxt_core::utils::Yes, - (), - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaPercentageFeeHandler", - "AssetFeeRate", - ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), - ), - [ - 219u8, 84u8, 17u8, 190u8, 134u8, 94u8, 11u8, 248u8, 86u8, 201u8, 219u8, - 162u8, 70u8, 38u8, 12u8, 50u8, 115u8, 127u8, 102u8, 227u8, 78u8, 108u8, - 237u8, 106u8, 85u8, 101u8, 113u8, 208u8, 87u8, 187u8, 239u8, 166u8, - ], - ) - } - } - } - } - pub mod sygma_bridge { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::sygma_bridge::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::sygma_bridge::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { + pub mod transaction { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::pause_bridge`]."] - pub struct PauseBridge { - pub dest_domain_id: pause_bridge::DestDomainId, - } - pub mod pause_bridge { - use super::runtime_types; - pub type DestDomainId = ::core::primitive::u8; - } - impl ::subxt_core::blocks::StaticExtrinsic for PauseBridge { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "pause_bridge"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct AccessListItem { + pub address: ::subxt::ext::subxt_core::utils::H160, + pub storage_keys: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unpause_bridge`]."] - pub struct UnpauseBridge { - pub dest_domain_id: unpause_bridge::DestDomainId, - } - pub mod unpause_bridge { - use super::runtime_types; - pub type DestDomainId = ::core::primitive::u8; - } - impl ::subxt_core::blocks::StaticExtrinsic for UnpauseBridge { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "unpause_bridge"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct EIP1559Transaction { + pub chain_id: ::core::primitive::u64, + pub nonce: runtime_types::primitive_types::U256, + pub max_priority_fee_per_gas: runtime_types::primitive_types::U256, + pub max_fee_per_gas: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub action: runtime_types::ethereum::transaction::TransactionAction, + pub value: runtime_types::primitive_types::U256, + pub input: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + pub access_list: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::ethereum::transaction::AccessListItem, + >, + pub odd_y_parity: ::core::primitive::bool, + pub r: ::subxt::ext::subxt_core::utils::H256, + pub s: ::subxt::ext::subxt_core::utils::H256, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_mpc_address`]."] - pub struct SetMpcAddress { - pub addr: set_mpc_address::Addr, - } - pub mod set_mpc_address { - use super::runtime_types; - pub type Addr = runtime_types::sygma_traits::MpcAddress; - } - impl ::subxt_core::blocks::StaticExtrinsic for SetMpcAddress { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "set_mpc_address"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct EIP2930Transaction { + pub chain_id: ::core::primitive::u64, + pub nonce: runtime_types::primitive_types::U256, + pub gas_price: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub action: runtime_types::ethereum::transaction::TransactionAction, + pub value: runtime_types::primitive_types::U256, + pub input: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + pub access_list: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::ethereum::transaction::AccessListItem, + >, + pub odd_y_parity: ::core::primitive::bool, + pub r: ::subxt::ext::subxt_core::utils::H256, + pub s: ::subxt::ext::subxt_core::utils::H256, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::register_domain`]."] - pub struct RegisterDomain { - pub dest_domain_id: register_domain::DestDomainId, - pub dest_chain_id: register_domain::DestChainId, - } - pub mod register_domain { - use super::runtime_types; - pub type DestDomainId = ::core::primitive::u8; - pub type DestChainId = runtime_types::primitive_types::U256; - } - impl ::subxt_core::blocks::StaticExtrinsic for RegisterDomain { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "register_domain"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct LegacyTransaction { + pub nonce: runtime_types::primitive_types::U256, + pub gas_price: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub action: runtime_types::ethereum::transaction::TransactionAction, + pub value: runtime_types::primitive_types::U256, + pub input: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + pub signature: runtime_types::ethereum::transaction::TransactionSignature, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unregister_domain`]."] - pub struct UnregisterDomain { - pub dest_domain_id: unregister_domain::DestDomainId, - pub dest_chain_id: unregister_domain::DestChainId, - } - pub mod unregister_domain { - use super::runtime_types; - pub type DestDomainId = ::core::primitive::u8; - pub type DestChainId = runtime_types::primitive_types::U256; - } - impl ::subxt_core::blocks::StaticExtrinsic for UnregisterDomain { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "unregister_domain"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum TransactionAction { + #[codec(index = 0)] + Call(::subxt::ext::subxt_core::utils::H160), + #[codec(index = 1)] + Create, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::deposit`]."] - pub struct Deposit { - pub asset: ::subxt_core::alloc::boxed::Box, - pub dest: ::subxt_core::alloc::boxed::Box, - } - pub mod deposit { - use super::runtime_types; - pub type Asset = runtime_types::staging_xcm::v4::asset::Asset; - pub type Dest = runtime_types::staging_xcm::v4::location::Location; - } - impl ::subxt_core::blocks::StaticExtrinsic for Deposit { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "deposit"; - } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct TransactionRecoveryId(pub ::core::primitive::u64); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::retry`]."] - pub struct Retry { - pub deposit_on_block_height: retry::DepositOnBlockHeight, - pub dest_domain_id: retry::DestDomainId, - } - pub mod retry { - use super::runtime_types; - pub type DepositOnBlockHeight = ::core::primitive::u128; - pub type DestDomainId = ::core::primitive::u8; - } - impl ::subxt_core::blocks::StaticExtrinsic for Retry { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "retry"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct TransactionSignature { + pub v: runtime_types::ethereum::transaction::TransactionRecoveryId, + pub r: ::subxt::ext::subxt_core::utils::H256, + pub s: ::subxt::ext::subxt_core::utils::H256, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute_proposal`]."] - pub struct ExecuteProposal { - pub proposals: execute_proposal::Proposals, - pub signature: execute_proposal::Signature, - } - pub mod execute_proposal { - use super::runtime_types; - pub type Proposals = ::subxt_core::alloc::vec::Vec< - runtime_types::sygma_bridge::pallet::Proposal, - >; - pub type Signature = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - } - impl ::subxt_core::blocks::StaticExtrinsic for ExecuteProposal { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "execute_proposal"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum TransactionV2 { + #[codec(index = 0)] + Legacy(runtime_types::ethereum::transaction::LegacyTransaction), + #[codec(index = 1)] + EIP2930(runtime_types::ethereum::transaction::EIP2930Transaction), + #[codec(index = 2)] + EIP1559(runtime_types::ethereum::transaction::EIP1559Transaction), } + } + } + pub mod ethereum_types { + use super::runtime_types; + pub mod hash { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::pause_all_bridges`]."] - pub struct PauseAllBridges; - impl ::subxt_core::blocks::StaticExtrinsic for PauseAllBridges { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "pause_all_bridges"; - } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct H64(pub [::core::primitive::u8; 8usize]); + } + } + pub mod evm { + use super::runtime_types; + pub mod backend { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "See [`Pallet::unpause_all_bridges`]."] - pub struct UnpauseAllBridges; - impl ::subxt_core::blocks::StaticExtrinsic for UnpauseAllBridges { - const PALLET: &'static str = "SygmaBridge"; - const CALL: &'static str = "unpause_all_bridges"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Basic { + pub balance: runtime_types::primitive_types::U256, + pub nonce: runtime_types::primitive_types::U256, } } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::pause_bridge`]."] - pub fn pause_bridge( - &self, - dest_domain_id: types::pause_bridge::DestDomainId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "pause_bridge", - types::PauseBridge { dest_domain_id }, - [ - 10u8, 137u8, 109u8, 62u8, 31u8, 5u8, 35u8, 50u8, 97u8, 197u8, 155u8, - 107u8, 107u8, 21u8, 143u8, 217u8, 62u8, 234u8, 232u8, 181u8, 60u8, - 245u8, 92u8, 203u8, 171u8, 127u8, 91u8, 189u8, 93u8, 208u8, 25u8, 17u8, - ], - ) - } - #[doc = "See [`Pallet::unpause_bridge`]."] - pub fn unpause_bridge( - &self, - dest_domain_id: types::unpause_bridge::DestDomainId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "unpause_bridge", - types::UnpauseBridge { dest_domain_id }, - [ - 130u8, 132u8, 45u8, 19u8, 181u8, 193u8, 70u8, 236u8, 117u8, 9u8, 61u8, - 231u8, 56u8, 99u8, 162u8, 55u8, 182u8, 7u8, 105u8, 3u8, 98u8, 236u8, - 142u8, 249u8, 109u8, 37u8, 11u8, 30u8, 67u8, 145u8, 224u8, 161u8, - ], - ) - } - #[doc = "See [`Pallet::set_mpc_address`]."] - pub fn set_mpc_address( - &self, - addr: types::set_mpc_address::Addr, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "set_mpc_address", - types::SetMpcAddress { addr }, - [ - 100u8, 154u8, 190u8, 95u8, 29u8, 77u8, 55u8, 125u8, 94u8, 139u8, 219u8, - 144u8, 57u8, 213u8, 186u8, 19u8, 95u8, 20u8, 154u8, 106u8, 5u8, 201u8, - 60u8, 232u8, 221u8, 32u8, 165u8, 221u8, 93u8, 21u8, 164u8, 0u8, - ], - ) - } - #[doc = "See [`Pallet::register_domain`]."] - pub fn register_domain( - &self, - dest_domain_id: types::register_domain::DestDomainId, - dest_chain_id: types::register_domain::DestChainId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "register_domain", - types::RegisterDomain { dest_domain_id, dest_chain_id }, - [ - 84u8, 151u8, 240u8, 168u8, 87u8, 209u8, 247u8, 224u8, 38u8, 248u8, 2u8, - 246u8, 45u8, 204u8, 212u8, 53u8, 235u8, 230u8, 74u8, 206u8, 221u8, - 209u8, 226u8, 229u8, 73u8, 42u8, 148u8, 21u8, 47u8, 148u8, 245u8, - 239u8, - ], - ) - } - #[doc = "See [`Pallet::unregister_domain`]."] - pub fn unregister_domain( - &self, - dest_domain_id: types::unregister_domain::DestDomainId, - dest_chain_id: types::unregister_domain::DestChainId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "unregister_domain", - types::UnregisterDomain { dest_domain_id, dest_chain_id }, - [ - 226u8, 34u8, 249u8, 217u8, 73u8, 22u8, 203u8, 90u8, 29u8, 25u8, 91u8, - 67u8, 175u8, 239u8, 225u8, 25u8, 28u8, 12u8, 214u8, 116u8, 147u8, - 178u8, 231u8, 86u8, 171u8, 148u8, 16u8, 139u8, 196u8, 180u8, 204u8, - 125u8, - ], - ) - } - #[doc = "See [`Pallet::deposit`]."] - pub fn deposit( - &self, - asset: types::deposit::Asset, - dest: types::deposit::Dest, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "deposit", - types::Deposit { - asset: ::subxt_core::alloc::boxed::Box::new(asset), - dest: ::subxt_core::alloc::boxed::Box::new(dest), - }, - [ - 249u8, 115u8, 223u8, 93u8, 180u8, 104u8, 78u8, 159u8, 95u8, 222u8, - 88u8, 244u8, 87u8, 54u8, 172u8, 17u8, 230u8, 125u8, 83u8, 244u8, 97u8, - 111u8, 237u8, 134u8, 156u8, 235u8, 136u8, 45u8, 118u8, 139u8, 210u8, - 193u8, - ], - ) + } + pub mod evm_core { + use super::runtime_types; + pub mod error { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum ExitError { + #[codec(index = 0)] + StackUnderflow, + #[codec(index = 1)] + StackOverflow, + #[codec(index = 2)] + InvalidJump, + #[codec(index = 3)] + InvalidRange, + #[codec(index = 4)] + DesignatedInvalid, + #[codec(index = 5)] + CallTooDeep, + #[codec(index = 6)] + CreateCollision, + #[codec(index = 7)] + CreateContractLimit, + #[codec(index = 15)] + InvalidCode(runtime_types::evm_core::opcode::Opcode), + #[codec(index = 8)] + OutOfOffset, + #[codec(index = 9)] + OutOfGas, + #[codec(index = 10)] + OutOfFund, + #[codec(index = 11)] + PCUnderflow, + #[codec(index = 12)] + CreateEmpty, + #[codec(index = 13)] + Other(::subxt::ext::subxt_core::alloc::string::String), + #[codec(index = 14)] + MaxNonce, } - #[doc = "See [`Pallet::retry`]."] - pub fn retry( - &self, - deposit_on_block_height: types::retry::DepositOnBlockHeight, - dest_domain_id: types::retry::DestDomainId, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "retry", - types::Retry { deposit_on_block_height, dest_domain_id }, - [ - 104u8, 139u8, 100u8, 85u8, 8u8, 43u8, 70u8, 177u8, 205u8, 8u8, 71u8, - 142u8, 228u8, 199u8, 78u8, 145u8, 16u8, 120u8, 229u8, 177u8, 48u8, - 143u8, 42u8, 237u8, 216u8, 136u8, 190u8, 240u8, 164u8, 115u8, 236u8, - 36u8, - ], - ) + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum ExitFatal { + #[codec(index = 0)] + NotSupported, + #[codec(index = 1)] + UnhandledInterrupt, + #[codec(index = 2)] + CallErrorAsFatal(runtime_types::evm_core::error::ExitError), + #[codec(index = 3)] + Other(::subxt::ext::subxt_core::alloc::string::String), } - #[doc = "See [`Pallet::execute_proposal`]."] - pub fn execute_proposal( - &self, - proposals: types::execute_proposal::Proposals, - signature: types::execute_proposal::Signature, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "execute_proposal", - types::ExecuteProposal { proposals, signature }, - [ - 135u8, 91u8, 69u8, 116u8, 25u8, 204u8, 82u8, 180u8, 143u8, 63u8, 192u8, - 253u8, 22u8, 182u8, 251u8, 176u8, 243u8, 233u8, 157u8, 119u8, 137u8, - 228u8, 69u8, 169u8, 242u8, 105u8, 36u8, 46u8, 233u8, 229u8, 68u8, 10u8, - ], - ) + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum ExitReason { + #[codec(index = 0)] + Succeed(runtime_types::evm_core::error::ExitSucceed), + #[codec(index = 1)] + Error(runtime_types::evm_core::error::ExitError), + #[codec(index = 2)] + Revert(runtime_types::evm_core::error::ExitRevert), + #[codec(index = 3)] + Fatal(runtime_types::evm_core::error::ExitFatal), } - #[doc = "See [`Pallet::pause_all_bridges`]."] - pub fn pause_all_bridges( - &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "pause_all_bridges", - types::PauseAllBridges {}, - [ - 29u8, 144u8, 141u8, 39u8, 167u8, 6u8, 113u8, 96u8, 225u8, 146u8, 88u8, - 50u8, 244u8, 142u8, 216u8, 169u8, 30u8, 194u8, 5u8, 250u8, 92u8, 99u8, - 79u8, 36u8, 117u8, 126u8, 176u8, 31u8, 147u8, 21u8, 213u8, 218u8, - ], - ) + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum ExitRevert { + #[codec(index = 0)] + Reverted, } - #[doc = "See [`Pallet::unpause_all_bridges`]."] - pub fn unpause_all_bridges( - &self, - ) -> ::subxt_core::tx::payload::StaticPayload { - ::subxt_core::tx::payload::StaticPayload::new_static( - "SygmaBridge", - "unpause_all_bridges", - types::UnpauseAllBridges {}, - [ - 136u8, 87u8, 74u8, 154u8, 210u8, 227u8, 130u8, 104u8, 149u8, 24u8, - 107u8, 242u8, 201u8, 134u8, 125u8, 187u8, 148u8, 191u8, 234u8, 53u8, - 187u8, 232u8, 117u8, 145u8, 105u8, 163u8, 3u8, 228u8, 11u8, 122u8, - 194u8, 127u8, - ], - ) + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum ExitSucceed { + #[codec(index = 0)] + Stopped, + #[codec(index = 1)] + Returned, + #[codec(index = 2)] + Suicided, } } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::sygma_bridge::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When initial bridge transfer send to dest domain"] - #[doc = "args: [dest_domain_id, resource_id, deposit_nonce, sender, transfer_type,"] - #[doc = "deposit_data, handler_response, ]"] - pub struct Deposit { - pub dest_domain_id: deposit::DestDomainId, - pub resource_id: deposit::ResourceId, - pub deposit_nonce: deposit::DepositNonce, - pub sender: deposit::Sender, - pub transfer_type: deposit::TransferType, - pub deposit_data: deposit::DepositData, - pub handler_response: deposit::HandlerResponse, - } - pub mod deposit { - use super::runtime_types; - pub type DestDomainId = ::core::primitive::u8; - pub type ResourceId = [::core::primitive::u8; 32usize]; - pub type DepositNonce = ::core::primitive::u64; - pub type Sender = ::subxt_core::utils::AccountId32; - pub type TransferType = runtime_types::sygma_traits::TransferType; - pub type DepositData = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type HandlerResponse = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - } - impl ::subxt_core::events::StaticEvent for Deposit { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When proposal was executed successfully"] - pub struct ProposalExecution { - pub origin_domain_id: proposal_execution::OriginDomainId, - pub deposit_nonce: proposal_execution::DepositNonce, - pub data_hash: proposal_execution::DataHash, - } - pub mod proposal_execution { + pub mod opcode { use super::runtime_types; - pub type OriginDomainId = ::core::primitive::u8; - pub type DepositNonce = ::core::primitive::u64; - pub type DataHash = [::core::primitive::u8; 32usize]; - } - impl ::subxt_core::events::StaticEvent for ProposalExecution { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "ProposalExecution"; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Opcode(pub ::core::primitive::u8); } + } + pub mod finality_grandpa { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When proposal was faild to execute"] - pub struct FailedHandlerExecution { - pub error: failed_handler_execution::Error, - pub origin_domain_id: failed_handler_execution::OriginDomainId, - pub deposit_nonce: failed_handler_execution::DepositNonce, - } - pub mod failed_handler_execution { - use super::runtime_types; - pub type Error = ::subxt_core::alloc::vec::Vec<::core::primitive::u8>; - pub type OriginDomainId = ::core::primitive::u8; - pub type DepositNonce = ::core::primitive::u64; - } - impl ::subxt_core::events::StaticEvent for FailedHandlerExecution { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "FailedHandlerExecution"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct Equivocation<_0, _1, _2> { + pub round_number: ::core::primitive::u64, + pub identity: _0, + pub first: (_1, _2), + pub second: (_1, _2), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When user is going to retry a bridge transfer"] - #[doc = "args: [deposit_on_block_height, dest_domain_id, sender]"] - pub struct Retry { - pub deposit_on_block_height: retry::DepositOnBlockHeight, - pub dest_domain_id: retry::DestDomainId, - pub sender: retry::Sender, - } - pub mod retry { - use super::runtime_types; - pub type DepositOnBlockHeight = ::core::primitive::u128; - pub type DestDomainId = ::core::primitive::u8; - pub type Sender = ::subxt_core::utils::AccountId32; - } - impl ::subxt_core::events::StaticEvent for Retry { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "Retry"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct Precommit<_0, _1> { + pub target_hash: _0, + pub target_number: _1, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When bridge is paused"] - #[doc = "args: [dest_domain_id]"] - pub struct BridgePaused { - pub dest_domain_id: bridge_paused::DestDomainId, - } - pub mod bridge_paused { - use super::runtime_types; - pub type DestDomainId = ::core::primitive::u8; - } - impl ::subxt_core::events::StaticEvent for BridgePaused { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "BridgePaused"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct Prevote<_0, _1> { + pub target_hash: _0, + pub target_number: _1, } + } + pub mod fp_evm { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When bridge is unpaused"] - #[doc = "args: [dest_domain_id]"] - pub struct BridgeUnpaused { - pub dest_domain_id: bridge_unpaused::DestDomainId, - } - pub mod bridge_unpaused { - use super::runtime_types; - pub type DestDomainId = ::core::primitive::u8; - } - impl ::subxt_core::events::StaticEvent for BridgeUnpaused { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "BridgeUnpaused"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct ExecutionInfoV2<_0> { + pub exit_reason: runtime_types::evm_core::error::ExitReason, + pub value: _0, + pub used_gas: runtime_types::fp_evm::UsedGas, + pub weight_info: ::core::option::Option, + pub logs: + ::subxt::ext::subxt_core::alloc::vec::Vec, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When registering a new dest domainID with its corresponding chainID"] - pub struct RegisterDestDomain { - pub sender: register_dest_domain::Sender, - pub domain_id: register_dest_domain::DomainId, - pub chain_id: register_dest_domain::ChainId, - } - pub mod register_dest_domain { - use super::runtime_types; - pub type Sender = ::subxt_core::utils::AccountId32; - pub type DomainId = ::core::primitive::u8; - pub type ChainId = runtime_types::primitive_types::U256; - } - impl ::subxt_core::events::StaticEvent for RegisterDestDomain { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "RegisterDestDomain"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct UsedGas { + pub standard: runtime_types::primitive_types::U256, + pub effective: runtime_types::primitive_types::U256, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When unregistering a dest domainID with its corresponding chainID"] - pub struct UnregisterDestDomain { - pub sender: unregister_dest_domain::Sender, - pub domain_id: unregister_dest_domain::DomainId, - pub chain_id: unregister_dest_domain::ChainId, - } - pub mod unregister_dest_domain { - use super::runtime_types; - pub type Sender = ::subxt_core::utils::AccountId32; - pub type DomainId = ::core::primitive::u8; - pub type ChainId = runtime_types::primitive_types::U256; - } - impl ::subxt_core::events::StaticEvent for UnregisterDestDomain { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "UnregisterDestDomain"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct WeightInfo { + pub ref_time_limit: ::core::option::Option<::core::primitive::u64>, + pub proof_size_limit: ::core::option::Option<::core::primitive::u64>, + pub ref_time_usage: ::core::option::Option<::core::primitive::u64>, + pub proof_size_usage: ::core::option::Option<::core::primitive::u64>, } + } + pub mod fp_rpc { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When bridge fee is collected"] - pub struct FeeCollected { - pub fee_payer: fee_collected::FeePayer, - pub dest_domain_id: fee_collected::DestDomainId, - pub resource_id: fee_collected::ResourceId, - pub fee_amount: fee_collected::FeeAmount, - pub fee_asset_id: fee_collected::FeeAssetId, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct TransactionStatus { + pub transaction_hash: ::subxt::ext::subxt_core::utils::H256, + pub transaction_index: ::core::primitive::u32, + pub from: ::subxt::ext::subxt_core::utils::H160, + pub to: ::core::option::Option<::subxt::ext::subxt_core::utils::H160>, + pub contract_address: ::core::option::Option<::subxt::ext::subxt_core::utils::H160>, + pub logs: + ::subxt::ext::subxt_core::alloc::vec::Vec, + pub logs_bloom: runtime_types::ethbloom::Bloom, } - pub mod fee_collected { + } + pub mod fp_self_contained { + use super::runtime_types; + pub mod unchecked_extrinsic { use super::runtime_types; - pub type FeePayer = ::subxt_core::utils::AccountId32; - pub type DestDomainId = ::core::primitive::u8; - pub type ResourceId = [::core::primitive::u8; 32usize]; - pub type FeeAmount = ::core::primitive::u128; - pub type FeeAssetId = runtime_types::staging_xcm::v4::asset::AssetId; - } - impl ::subxt_core::events::StaticEvent for FeeCollected { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "FeeCollected"; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct UncheckedExtrinsic<_0, _1, _2, _3>( + pub ::subxt::ext::subxt_core::utils::UncheckedExtrinsic<_0, _1, _2, _3>, + ); } + } + pub mod frame_metadata_hash_extension { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When all bridges are paused"] - pub struct AllBridgePaused { - pub sender: all_bridge_paused::Sender, - } - pub mod all_bridge_paused { - use super::runtime_types; - pub type Sender = ::subxt_core::utils::AccountId32; - } - impl ::subxt_core::events::StaticEvent for AllBridgePaused { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "AllBridgePaused"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct CheckMetadataHash { + pub mode: runtime_types::frame_metadata_hash_extension::Mode, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "When all bridges are unpaused"] - pub struct AllBridgeUnpaused { - pub sender: all_bridge_unpaused::Sender, - } - pub mod all_bridge_unpaused { - use super::runtime_types; - pub type Sender = ::subxt_core::utils::AccountId32; - } - impl ::subxt_core::events::StaticEvent for AllBridgeUnpaused { - const PALLET: &'static str = "SygmaBridge"; - const EVENT: &'static str = "AllBridgeUnpaused"; + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub enum Mode { + #[codec(index = 0)] + Disabled, + #[codec(index = 1)] + Enabled, } } - pub mod storage { + pub mod frame_support { use super::runtime_types; - pub mod types { + pub mod dispatch { use super::runtime_types; - pub mod deposit_counts { - use super::runtime_types; - pub type DepositCounts = ::core::primitive::u64; - pub type Param0 = ::core::primitive::u8; - } - pub mod is_paused { - use super::runtime_types; - pub type IsPaused = ::core::primitive::bool; - pub type Param0 = ::core::primitive::u8; - } - pub mod mpc_addr { - use super::runtime_types; - pub type MpcAddr = runtime_types::sygma_traits::MpcAddress; - } - pub mod used_nonces { - use super::runtime_types; - pub type UsedNonces = ::core::primitive::u64; - pub type Param0 = ::core::primitive::u8; - pub type Param1 = ::core::primitive::u64; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum DispatchClass { + #[codec(index = 0)] + Normal, + #[codec(index = 1)] + Operational, + #[codec(index = 2)] + Mandatory, } - pub mod dest_domain_ids { - use super::runtime_types; - pub type DestDomainIds = ::core::primitive::bool; - pub type Param0 = ::core::primitive::u8; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct DispatchInfo { + pub weight: runtime_types::sp_weights::weight_v2::Weight, + pub class: runtime_types::frame_support::dispatch::DispatchClass, + pub pays_fee: runtime_types::frame_support::dispatch::Pays, } - pub mod dest_chain_ids { - use super::runtime_types; - pub type DestChainIds = runtime_types::primitive_types::U256; - pub type Param0 = ::core::primitive::u8; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum Pays { + #[codec(index = 0)] + Yes, + #[codec(index = 1)] + No, } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Deposit counter of dest domain"] - pub fn deposit_counts_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::deposit_counts::DepositCounts, - (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "DepositCounts", - (), - [ - 244u8, 239u8, 58u8, 175u8, 187u8, 13u8, 115u8, 85u8, 31u8, 153u8, - 189u8, 124u8, 67u8, 2u8, 96u8, 104u8, 141u8, 2u8, 161u8, 168u8, 188u8, - 18u8, 40u8, 199u8, 65u8, 66u8, 86u8, 4u8, 5u8, 120u8, 83u8, 8u8, - ], - ) - } - #[doc = " Deposit counter of dest domain"] - pub fn deposit_counts( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::deposit_counts::DepositCounts, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "DepositCounts", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 244u8, 239u8, 58u8, 175u8, 187u8, 13u8, 115u8, 85u8, 31u8, 153u8, - 189u8, 124u8, 67u8, 2u8, 96u8, 104u8, 141u8, 2u8, 161u8, 168u8, 188u8, - 18u8, 40u8, 199u8, 65u8, 66u8, 86u8, 4u8, 5u8, 120u8, 83u8, 8u8, - ], - ) - } - #[doc = " Bridge Pause indicator"] - #[doc = " Bridge is unpaused initially, until pause"] - #[doc = " After mpc address setup, bridge should be paused until ready to unpause"] - pub fn is_paused_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::is_paused::IsPaused, - (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "IsPaused", - (), - [ - 189u8, 110u8, 62u8, 199u8, 114u8, 121u8, 96u8, 148u8, 204u8, 117u8, - 168u8, 103u8, 72u8, 240u8, 2u8, 185u8, 3u8, 225u8, 107u8, 240u8, 162u8, - 156u8, 188u8, 10u8, 92u8, 61u8, 142u8, 64u8, 57u8, 155u8, 152u8, 168u8, - ], - ) - } - #[doc = " Bridge Pause indicator"] - #[doc = " Bridge is unpaused initially, until pause"] - #[doc = " After mpc address setup, bridge should be paused until ready to unpause"] - pub fn is_paused( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::is_paused::IsPaused, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "IsPaused", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 189u8, 110u8, 62u8, 199u8, 114u8, 121u8, 96u8, 148u8, 204u8, 117u8, - 168u8, 103u8, 72u8, 240u8, 2u8, 185u8, 3u8, 225u8, 107u8, 240u8, 162u8, - 156u8, 188u8, 10u8, 92u8, 61u8, 142u8, 64u8, 57u8, 155u8, 152u8, 168u8, - ], - ) - } - #[doc = " Pre-set MPC address"] - pub fn mpc_addr( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::mpc_addr::MpcAddr, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "MpcAddr", - (), - [ - 250u8, 141u8, 162u8, 218u8, 132u8, 223u8, 173u8, 108u8, 121u8, 159u8, - 29u8, 116u8, 42u8, 107u8, 135u8, 156u8, 46u8, 6u8, 171u8, 91u8, 38u8, - 140u8, 202u8, 31u8, 3u8, 63u8, 171u8, 108u8, 181u8, 236u8, 113u8, - 155u8, - ], - ) - } - #[doc = " Mark whether a deposit nonce was used. Used to mark execution status of a proposal."] - pub fn used_nonces_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::used_nonces::UsedNonces, - (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "UsedNonces", - (), - [ - 79u8, 48u8, 187u8, 95u8, 248u8, 174u8, 128u8, 139u8, 1u8, 177u8, 189u8, - 64u8, 97u8, 224u8, 234u8, 109u8, 238u8, 182u8, 88u8, 91u8, 136u8, - 202u8, 78u8, 17u8, 85u8, 35u8, 34u8, 92u8, 34u8, 242u8, 189u8, 113u8, - ], - ) - } - #[doc = " Mark whether a deposit nonce was used. Used to mark execution status of a proposal."] - pub fn used_nonces_iter1( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::used_nonces::UsedNonces, - (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "UsedNonces", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 79u8, 48u8, 187u8, 95u8, 248u8, 174u8, 128u8, 139u8, 1u8, 177u8, 189u8, - 64u8, 97u8, 224u8, 234u8, 109u8, 238u8, 182u8, 88u8, 91u8, 136u8, - 202u8, 78u8, 17u8, 85u8, 35u8, 34u8, 92u8, 34u8, 242u8, 189u8, 113u8, - ], - ) - } - #[doc = " Mark whether a deposit nonce was used. Used to mark execution status of a proposal."] - pub fn used_nonces( - &self, - _0: impl ::core::borrow::Borrow, - _1: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ( - ::subxt_core::storage::address::StaticStorageKey< - types::used_nonces::Param0, - >, - ::subxt_core::storage::address::StaticStorageKey< - types::used_nonces::Param1, - >, - ), - types::used_nonces::UsedNonces, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "UsedNonces", - ( - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - ::subxt_core::storage::address::StaticStorageKey::new(_1.borrow()), - ), - [ - 79u8, 48u8, 187u8, 95u8, 248u8, 174u8, 128u8, 139u8, 1u8, 177u8, 189u8, - 64u8, 97u8, 224u8, 234u8, 109u8, 238u8, 182u8, 88u8, 91u8, 136u8, - 202u8, 78u8, 17u8, 85u8, 35u8, 34u8, 92u8, 34u8, 242u8, 189u8, 113u8, - ], - ) - } - #[doc = " Mark supported dest domainID"] - pub fn dest_domain_ids_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::dest_domain_ids::DestDomainIds, - (), - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "DestDomainIds", - (), - [ - 196u8, 96u8, 128u8, 71u8, 63u8, 199u8, 126u8, 151u8, 151u8, 174u8, - 165u8, 144u8, 187u8, 251u8, 157u8, 33u8, 96u8, 54u8, 83u8, 174u8, 36u8, - 189u8, 200u8, 67u8, 88u8, 166u8, 169u8, 233u8, 196u8, 218u8, 34u8, - 40u8, - ], - ) - } - #[doc = " Mark supported dest domainID"] - pub fn dest_domain_ids( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey< - types::dest_domain_ids::Param0, - >, - types::dest_domain_ids::DestDomainIds, - ::subxt_core::utils::Yes, - ::subxt_core::utils::Yes, - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "DestDomainIds", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 196u8, 96u8, 128u8, 71u8, 63u8, 199u8, 126u8, 151u8, 151u8, 174u8, - 165u8, 144u8, 187u8, 251u8, 157u8, 33u8, 96u8, 54u8, 83u8, 174u8, 36u8, - 189u8, 200u8, 67u8, 88u8, 166u8, 169u8, 233u8, 196u8, 218u8, 34u8, - 40u8, - ], - ) - } - #[doc = " Mark the pairs for supported dest domainID with its corresponding chainID"] - #[doc = " The chainID is not directly used in pallet, this map is designed more about rechecking the"] - #[doc = " domainID"] - pub fn dest_chain_ids_iter( - &self, - ) -> ::subxt_core::storage::address::StaticAddress< - (), - types::dest_chain_ids::DestChainIds, - (), - (), - ::subxt_core::utils::Yes, - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "DestChainIds", - (), - [ - 21u8, 202u8, 192u8, 112u8, 21u8, 196u8, 42u8, 158u8, 86u8, 44u8, 133u8, - 121u8, 91u8, 44u8, 176u8, 79u8, 236u8, 210u8, 57u8, 57u8, 241u8, 89u8, - 188u8, 46u8, 170u8, 83u8, 90u8, 240u8, 57u8, 233u8, 15u8, 20u8, - ], - ) - } - #[doc = " Mark the pairs for supported dest domainID with its corresponding chainID"] - #[doc = " The chainID is not directly used in pallet, this map is designed more about rechecking the"] - #[doc = " domainID"] - pub fn dest_chain_ids( - &self, - _0: impl ::core::borrow::Borrow, - ) -> ::subxt_core::storage::address::StaticAddress< - ::subxt_core::storage::address::StaticStorageKey, - types::dest_chain_ids::DestChainIds, - ::subxt_core::utils::Yes, - (), - (), - > { - ::subxt_core::storage::address::StaticAddress::new_static( - "SygmaBridge", - "DestChainIds", - ::subxt_core::storage::address::StaticStorageKey::new(_0.borrow()), - [ - 21u8, 202u8, 192u8, 112u8, 21u8, 196u8, 42u8, 158u8, 86u8, 44u8, 133u8, - 121u8, 91u8, 44u8, 176u8, 79u8, 236u8, 210u8, 57u8, 57u8, 241u8, 89u8, - 188u8, 46u8, 170u8, 83u8, 90u8, 240u8, 57u8, 233u8, 15u8, 20u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " Bridge transfer reserve accounts mapping with designated assets"] - pub fn transfer_reserve_accounts( - &self, - ) -> ::subxt_core::constants::address::StaticAddress< - ::subxt_core::utils::KeyedVec< - runtime_types::staging_xcm::v4::asset::AssetId, - ::subxt_core::utils::AccountId32, - >, - > { - ::subxt_core::constants::address::StaticAddress::new_static( - "SygmaBridge", - "TransferReserveAccounts", - [ - 144u8, 215u8, 249u8, 200u8, 205u8, 135u8, 143u8, 34u8, 249u8, 252u8, - 193u8, 60u8, 176u8, 245u8, 227u8, 210u8, 244u8, 18u8, 152u8, 48u8, - 117u8, 174u8, 144u8, 229u8, 187u8, 135u8, 227u8, 253u8, 162u8, 120u8, - 9u8, 171u8, - ], - ) - } - #[doc = " EIP712 Verifying contract address"] - #[doc = " This is used in EIP712 typed data domain"] - pub fn dest_verifying_contract_address( - &self, - ) -> ::subxt_core::constants::address::StaticAddress<::subxt_core::utils::H160> { - ::subxt_core::constants::address::StaticAddress::new_static( - "SygmaBridge", - "DestVerifyingContractAddress", - [ - 184u8, 103u8, 76u8, 37u8, 218u8, 155u8, 125u8, 78u8, 138u8, 122u8, - 255u8, 132u8, 124u8, 68u8, 65u8, 163u8, 97u8, 77u8, 80u8, 33u8, 69u8, - 55u8, 69u8, 230u8, 83u8, 135u8, 254u8, 221u8, 222u8, 177u8, 10u8, - 189u8, - ], - ) - } - #[doc = " Pallet ChainID"] - #[doc = " This is used in EIP712 typed data domain"] - pub fn eip712_chain_id( - &self, - ) -> ::subxt_core::constants::address::StaticAddress< - runtime_types::primitive_types::U256, - > { - ::subxt_core::constants::address::StaticAddress::new_static( - "SygmaBridge", - "EIP712ChainID", - [ - 183u8, 66u8, 226u8, 178u8, 103u8, 160u8, 66u8, 51u8, 57u8, 19u8, 99u8, - 192u8, 108u8, 194u8, 76u8, 29u8, 76u8, 203u8, 196u8, 114u8, 108u8, - 53u8, 17u8, 246u8, 61u8, 132u8, 91u8, 202u8, 170u8, 12u8, 123u8, 30u8, - ], - ) - } - #[doc = " Fee reserve account"] - pub fn fee_reserve_account( - &self, - ) -> ::subxt_core::constants::address::StaticAddress<::subxt_core::utils::AccountId32> - { - ::subxt_core::constants::address::StaticAddress::new_static( - "SygmaBridge", - "FeeReserveAccount", - [ - 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, - 155u8, 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, - 204u8, 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, - 135u8, - ], - ) - } - #[doc = " AssetId and ResourceId pairs"] - pub fn resource_pairs( - &self, - ) -> ::subxt_core::constants::address::StaticAddress< - ::subxt_core::alloc::vec::Vec<( - runtime_types::staging_xcm::v4::asset::AssetId, - [::core::primitive::u8; 32usize], - )>, - > { - ::subxt_core::constants::address::StaticAddress::new_static( - "SygmaBridge", - "ResourcePairs", - [ - 208u8, 136u8, 61u8, 11u8, 87u8, 64u8, 83u8, 110u8, 69u8, 229u8, 21u8, - 107u8, 123u8, 91u8, 168u8, 208u8, 226u8, 198u8, 110u8, 107u8, 114u8, - 150u8, 152u8, 73u8, 74u8, 118u8, 56u8, 4u8, 77u8, 234u8, 57u8, 249u8, - ], - ) - } - } - } - } - pub mod runtime_types { - use super::runtime_types; - pub mod bounded_collections { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct BoundedBTreeMap<_0, _1>(pub ::subxt_core::utils::KeyedVec<_0, _1>); - } - pub mod bounded_btree_set { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct BoundedBTreeSet<_0>(pub ::subxt_core::alloc::vec::Vec<_0>); - } - pub mod bounded_vec { - use super::runtime_types; + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct PerDispatchClass<_0> { + pub normal: _0, + pub operational: _0, + pub mandatory: _0, + } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, - serde :: Deserialize, - serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct BoundedVec<_0>(pub ::subxt_core::alloc::vec::Vec<_0>); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Root, + #[codec(index = 1)] + Signed(_0), + #[codec(index = 2)] + None, + } } - pub mod weak_bounded_vec { + pub mod traits { use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct WeakBoundedVec<_0>(pub ::subxt_core::alloc::vec::Vec<_0>); + pub mod preimages { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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 tokens { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum BalanceStatus { + #[codec(index = 0)] + Free, + #[codec(index = 1)] + Reserved, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct IdAmount<_0, _1> { + pub id: _0, + pub amount: _1, + } + } + } } - } - pub mod ethbloom { - use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Bloom(pub [::core::primitive::u8; 256usize]); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct PalletId(pub [::core::primitive::u8; 8usize]); } - pub mod ethereum { + pub mod frame_system { use super::runtime_types; - pub mod block { + pub mod extensions { use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Block<_0> { - pub header: runtime_types::ethereum::header::Header, - pub transactions: ::subxt_core::alloc::vec::Vec<_0>, - pub ommers: - ::subxt_core::alloc::vec::Vec, + pub mod check_genesis { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct CheckGenesis; + } + pub mod check_mortality { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); + } + pub mod check_non_zero_sender { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct CheckNonZeroSender; + } + pub mod check_nonce { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); + } + pub mod check_spec_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct CheckSpecVersion; + } + pub mod check_tx_version { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct CheckTxVersion; + } + pub mod check_weight { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct CheckWeight; } } - pub mod header { + pub mod limits { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Header { - pub parent_hash: ::subxt_core::utils::H256, - pub ommers_hash: ::subxt_core::utils::H256, - pub beneficiary: ::subxt_core::utils::H160, - pub state_root: ::subxt_core::utils::H256, - pub transactions_root: ::subxt_core::utils::H256, - pub receipts_root: ::subxt_core::utils::H256, - pub logs_bloom: runtime_types::ethbloom::Bloom, - pub difficulty: runtime_types::primitive_types::U256, - pub number: runtime_types::primitive_types::U256, - pub gas_limit: runtime_types::primitive_types::U256, - pub gas_used: runtime_types::primitive_types::U256, - pub timestamp: ::core::primitive::u64, - pub extra_data: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - pub mix_hash: ::subxt_core::utils::H256, - pub nonce: runtime_types::ethereum_types::hash::H64, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct BlockLength { + pub max: runtime_types::frame_support::dispatch::PerDispatchClass< + ::core::primitive::u32, + >, } - } - pub mod log { - use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Log { - pub address: ::subxt_core::utils::H160, - pub topics: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, - pub data: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct BlockWeights { + pub base_block: runtime_types::sp_weights::weight_v2::Weight, + pub max_block: runtime_types::sp_weights::weight_v2::Weight, + pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::frame_system::limits::WeightsPerClass, + >, } - } - pub mod receipt { - use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct EIP658ReceiptData { - pub status_code: ::core::primitive::u8, - pub used_gas: runtime_types::primitive_types::U256, - pub logs_bloom: runtime_types::ethbloom::Bloom, - pub logs: ::subxt_core::alloc::vec::Vec, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct WeightsPerClass { + pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, + pub max_extrinsic: + ::core::option::Option, + pub max_total: + ::core::option::Option, + pub reserved: + ::core::option::Option, } + } + pub mod pallet { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum ReceiptV3 { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { #[codec(index = 0)] - Legacy(runtime_types::ethereum::receipt::EIP658ReceiptData), + #[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)] - EIP2930(runtime_types::ethereum::receipt::EIP658ReceiptData), + #[doc = "Set the number of pages in the WebAssembly environment's heap."] + set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] - EIP1559(runtime_types::ethereum::receipt::EIP658ReceiptData), + #[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>, + }, } - } - pub mod transaction { - use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct AccessListItem { - pub address: ::subxt_core::utils::H160, - pub storage_keys: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct EIP1559Transaction { - pub chain_id: ::core::primitive::u64, - pub nonce: runtime_types::primitive_types::U256, - pub max_priority_fee_per_gas: runtime_types::primitive_types::U256, - pub max_fee_per_gas: runtime_types::primitive_types::U256, - pub gas_limit: runtime_types::primitive_types::U256, - pub action: runtime_types::ethereum::transaction::TransactionAction, - pub value: runtime_types::primitive_types::U256, - pub input: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - pub access_list: ::subxt_core::alloc::vec::Vec< - runtime_types::ethereum::transaction::AccessListItem, - >, - pub odd_y_parity: ::core::primitive::bool, - pub r: ::subxt_core::utils::H256, - pub s: ::subxt_core::utils::H256, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct EIP2930Transaction { - pub chain_id: ::core::primitive::u64, - pub nonce: runtime_types::primitive_types::U256, - pub gas_price: runtime_types::primitive_types::U256, - pub gas_limit: runtime_types::primitive_types::U256, - pub action: runtime_types::ethereum::transaction::TransactionAction, - pub value: runtime_types::primitive_types::U256, - pub input: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - pub access_list: ::subxt_core::alloc::vec::Vec< - runtime_types::ethereum::transaction::AccessListItem, - >, - pub odd_y_parity: ::core::primitive::bool, - pub r: ::subxt_core::utils::H256, - pub s: ::subxt_core::utils::H256, + #[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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct LegacyTransaction { - pub nonce: runtime_types::primitive_types::U256, - pub gas_price: runtime_types::primitive_types::U256, - pub gas_limit: runtime_types::primitive_types::U256, - pub action: runtime_types::ethereum::transaction::TransactionAction, - pub value: runtime_types::primitive_types::U256, - pub input: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - pub signature: runtime_types::ethereum::transaction::TransactionSignature, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum TransactionAction { - #[codec(index = 0)] - Call(::subxt_core::utils::H160), - #[codec(index = 1)] - Create, - } - #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct TransactionRecoveryId(pub ::core::primitive::u64); - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct TransactionSignature { - pub v: runtime_types::ethereum::transaction::TransactionRecoveryId, - pub r: ::subxt_core::utils::H256, - pub s: ::subxt_core::utils::H256, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum TransactionV2 { - #[codec(index = 0)] - Legacy(runtime_types::ethereum::transaction::LegacyTransaction), - #[codec(index = 1)] - EIP2930(runtime_types::ethereum::transaction::EIP2930Transaction), - #[codec(index = 2)] - EIP1559(runtime_types::ethereum::transaction::EIP1559Transaction), - } - } - } - pub mod ethereum_types { - use super::runtime_types; - pub mod hash { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct H64(pub [::core::primitive::u8; 8usize]); - } - } - pub mod evm { - use super::runtime_types; - pub mod backend { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Basic { - pub balance: runtime_types::primitive_types::U256, - pub nonce: runtime_types::primitive_types::U256, - } - } - } - pub mod evm_core { - use super::runtime_types; - pub mod error { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum ExitError { + #[doc = "Event for the System pallet."] + pub enum Event { #[codec(index = 0)] - StackUnderflow, + #[doc = "An extrinsic completed successfully."] + ExtrinsicSuccess { + dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + }, #[codec(index = 1)] - StackOverflow, + #[doc = "An extrinsic failed."] + ExtrinsicFailed { + dispatch_error: runtime_types::sp_runtime::DispatchError, + dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + }, #[codec(index = 2)] - InvalidJump, + #[doc = "`:code` was updated."] + CodeUpdated, #[codec(index = 3)] - InvalidRange, + #[doc = "A new account was created."] + NewAccount { account: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 4)] - DesignatedInvalid, + #[doc = "An account was reaped."] + KilledAccount { account: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 5)] - CallTooDeep, + #[doc = "On on-chain remark happened."] + Remarked { + sender: ::subxt::ext::subxt_core::utils::AccountId32, + hash: ::subxt::ext::subxt_core::utils::H256, + }, #[codec(index = 6)] - CreateCollision, - #[codec(index = 7)] - CreateContractLimit, - #[codec(index = 15)] - InvalidCode(runtime_types::evm_core::opcode::Opcode), - #[codec(index = 8)] - OutOfOffset, - #[codec(index = 9)] - OutOfGas, - #[codec(index = 10)] - OutOfFund, - #[codec(index = 11)] - PCUnderflow, - #[codec(index = 12)] - CreateEmpty, - #[codec(index = 13)] - Other(::subxt_core::alloc::string::String), - #[codec(index = 14)] - MaxNonce, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum ExitFatal { - #[codec(index = 0)] - NotSupported, - #[codec(index = 1)] - UnhandledInterrupt, - #[codec(index = 2)] - CallErrorAsFatal(runtime_types::evm_core::error::ExitError), - #[codec(index = 3)] - Other(::subxt_core::alloc::string::String), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum ExitReason { - #[codec(index = 0)] - Succeed(runtime_types::evm_core::error::ExitSucceed), - #[codec(index = 1)] - Error(runtime_types::evm_core::error::ExitError), - #[codec(index = 2)] - Revert(runtime_types::evm_core::error::ExitRevert), - #[codec(index = 3)] - Fatal(runtime_types::evm_core::error::ExitFatal), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum ExitRevert { - #[codec(index = 0)] - Reverted, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum ExitSucceed { - #[codec(index = 0)] - Stopped, - #[codec(index = 1)] - Returned, - #[codec(index = 2)] - Suicided, + #[doc = "An upgrade was authorized."] + UpgradeAuthorized { + code_hash: ::subxt::ext::subxt_core::utils::H256, + check_version: ::core::primitive::bool, + }, } } - pub mod opcode { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Opcode(pub ::core::primitive::u8); - } - } - pub mod finality_grandpa { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Equivocation<_0, _1, _2> { - pub round_number: ::core::primitive::u64, - pub identity: _0, - pub first: (_1, _2), - pub second: (_1, _2), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - } - pub mod fp_evm { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct ExecutionInfoV2<_0> { - pub exit_reason: runtime_types::evm_core::error::ExitReason, - pub value: _0, - pub used_gas: runtime_types::fp_evm::UsedGas, - pub weight_info: ::core::option::Option, - pub logs: ::subxt_core::alloc::vec::Vec, - } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct UsedGas { - pub standard: runtime_types::primitive_types::U256, - pub effective: runtime_types::primitive_types::U256, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct WeightInfo { - pub ref_time_limit: ::core::option::Option<::core::primitive::u64>, - pub proof_size_limit: ::core::option::Option<::core::primitive::u64>, - pub ref_time_usage: ::core::option::Option<::core::primitive::u64>, - pub proof_size_usage: ::core::option::Option<::core::primitive::u64>, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct CodeUpgradeAuthorization { + pub code_hash: ::subxt::ext::subxt_core::utils::H256, + pub check_version: ::core::primitive::bool, } - } - pub mod fp_rpc { - use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct TransactionStatus { - pub transaction_hash: ::subxt_core::utils::H256, - pub transaction_index: ::core::primitive::u32, - pub from: ::subxt_core::utils::H160, - pub to: ::core::option::Option<::subxt_core::utils::H160>, - pub contract_address: ::core::option::Option<::subxt_core::utils::H160>, - pub logs: ::subxt_core::alloc::vec::Vec, - pub logs_bloom: runtime_types::ethbloom::Bloom, - } - } - pub mod fp_self_contained { - use super::runtime_types; - pub mod unchecked_extrinsic { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct UncheckedExtrinsic<_0, _1, _2, _3>( - pub ::subxt_core::utils::UncheckedExtrinsic<_0, _1, _2, _3>, - ); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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>, } - } - pub mod frame_metadata_hash_extension { - use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckMetadataHash { - pub mode: runtime_types::frame_metadata_hash_extension::Mode, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct LastRuntimeUpgradeInfo { + #[codec(compact)] + pub spec_version: ::core::primitive::u32, + pub spec_name: ::subxt::ext::subxt_core::alloc::string::String, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum Mode { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub enum Phase { #[codec(index = 0)] - Disabled, + ApplyExtrinsic(::core::primitive::u32), #[codec(index = 1)] - Enabled, + Finalization, + #[codec(index = 2)] + Initialization, } } - pub mod frame_support { + pub mod pallet_airdrop_claims { use super::runtime_types; - pub mod dispatch { + pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum DispatchClass { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { #[codec(index = 0)] - Normal, + #[doc = "Make a claim to collect your tokens."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "Unsigned Validation:"] + #[doc = "A call to claim is deemed valid if the signature provided matches"] + #[doc = "the expected signed message of:"] + #[doc = ""] + #[doc = "> Ethereum Signed Message:"] + #[doc = "> (configured prefix string)(address)"] + #[doc = ""] + #[doc = "and `address` matches the `dest` account."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `dest`: The destination account to payout the claim."] + #[doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] + #[doc = " described above."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "Weight includes logic to validate unsigned `claim` call."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] + claim { + dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signature: + runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + }, #[codec(index = 1)] - Operational, + #[doc = "Mint a new claim to collect native tokens."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `who`: The Ethereum address allowed to collect this claim."] + #[doc = "- `value`: The number of native tokens that will be claimed."] + #[doc = "- `vesting_schedule`: An optional vesting schedule for these native tokens."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "We assume worst case that both vesting and statement is being inserted."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] + mint_claim { + who: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + value: ::core::primitive::u128, + vesting_schedule: ::core::option::Option< + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u64, + )>, + >, + statement: ::core::option::Option< + runtime_types::pallet_airdrop_claims::StatementKind, + >, + }, #[codec(index = 2)] - Mandatory, + #[doc = "Make a claim to collect your native tokens by signing a statement."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "Unsigned Validation:"] + #[doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] + #[doc = "the expected signed message of:"] + #[doc = ""] + #[doc = "> Ethereum Signed Message:"] + #[doc = "> (configured prefix string)(address)(statement)"] + #[doc = ""] + #[doc = "and `address` matches the `dest` account; the `statement` must match that which is"] + #[doc = "expected according to your purchase arrangement."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `dest`: The destination account to payout the claim."] + #[doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] + #[doc = " described above."] + #[doc = "- `statement`: The identity of the statement which is being attested to in the"] + #[doc = " signature."] + #[doc = ""] + #[doc = ""] + #[doc = "The weight of this call is invariant over the input parameters."] + #[doc = "Weight includes logic to validate unsigned `claim_attest` call."] + #[doc = ""] + #[doc = "Total Complexity: O(1)"] + #[doc = ""] + claim_attest { + dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signature: + runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + statement: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 4)] + move_claim { + old: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + new: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + }, + #[codec(index = 5)] + #[doc = "Set the value for expiryconfig"] + #[doc = "Can only be called by ForceOrigin"] + force_set_expiry_config { + expiry_block: ::core::primitive::u64, + dest: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + }, + #[codec(index = 6)] + #[doc = "Claim from signed origin"] + claim_signed { + dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct DispatchInfo { - pub weight: runtime_types::sp_weights::weight_v2::Weight, - pub class: runtime_types::frame_support::dispatch::DispatchClass, - pub pays_fee: runtime_types::frame_support::dispatch::Pays, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum Pays { + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { #[codec(index = 0)] - Yes, + #[doc = "Invalid Ethereum signature."] + InvalidEthereumSignature, #[codec(index = 1)] - No, + #[doc = "Invalid Native (sr25519) signature"] + InvalidNativeSignature, + #[codec(index = 2)] + #[doc = "Invalid Native account decoding"] + InvalidNativeAccount, + #[codec(index = 3)] + #[doc = "Ethereum address has no claim."] + SignerHasNoClaim, + #[codec(index = 4)] + #[doc = "Account ID sending transaction has no claim."] + SenderHasNoClaim, + #[codec(index = 5)] + #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a"] + #[doc = "logic error."] + PotUnderflow, + #[codec(index = 6)] + #[doc = "A needed statement was not included."] + InvalidStatement, + #[codec(index = 7)] + #[doc = "The account already has a vested balance."] + VestedBalanceExists, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum RawOrigin<_0> { + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { #[codec(index = 0)] - Root, - #[codec(index = 1)] - Signed(_0), - #[codec(index = 2)] - None, + #[doc = "Someone claimed some native tokens."] + Claimed { + recipient: ::subxt::ext::subxt_core::utils::AccountId32, + source: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + amount: ::core::primitive::u128, + }, } } - pub mod traits { + pub mod utils { use super::runtime_types; - pub mod preimages { + pub mod ethereum_address { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum Bounded<_0, _1> { - #[codec(index = 0)] - Legacy { - hash: ::subxt_core::utils::H256, - }, - #[codec(index = 1)] - Inline( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ), - #[codec(index = 2)] - Lookup { - hash: ::subxt_core::utils::H256, - len: ::core::primitive::u32, - }, - __Ignore(::core::marker::PhantomData<(_0, _1)>), - } - } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum BalanceStatus { - #[codec(index = 0)] - Free, - #[codec(index = 1)] - Reserved, - } - } - } - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct PalletId(pub [::core::primitive::u8; 8usize]); - } - pub mod frame_system { - use super::runtime_types; - pub mod extensions { - use super::runtime_types; - pub mod check_genesis { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckGenesis; - } - pub mod check_mortality { - use super::runtime_types; + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); - } - pub mod check_non_zero_sender { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckNonZeroSender; - } - pub mod check_nonce { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); - } - pub mod check_spec_version { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckSpecVersion; - } - pub mod check_tx_version { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckTxVersion; - } - pub mod check_weight { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CheckWeight; - } - } - pub mod limits { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct BlockLength { - pub max: runtime_types::frame_support::dispatch::PerDispatchClass< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct BlockWeights { - pub base_block: runtime_types::sp_weights::weight_v2::Weight, - pub max_block: runtime_types::sp_weights::weight_v2::Weight, - pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass< - runtime_types::frame_system::limits::WeightsPerClass, - >, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct WeightsPerClass { - pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, - pub max_extrinsic: - ::core::option::Option, - pub max_total: - ::core::option::Option, - pub reserved: - ::core::option::Option, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::remark`]."] - remark { remark: ::subxt_core::alloc::vec::Vec<::core::primitive::u8> }, - #[codec(index = 1)] - #[doc = "See [`Pallet::set_heap_pages`]."] - set_heap_pages { pages: ::core::primitive::u64 }, - #[codec(index = 2)] - #[doc = "See [`Pallet::set_code`]."] - set_code { code: ::subxt_core::alloc::vec::Vec<::core::primitive::u8> }, - #[codec(index = 3)] - #[doc = "See [`Pallet::set_code_without_checks`]."] - set_code_without_checks { - code: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::set_storage`]."] - set_storage { - items: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - )>, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::kill_storage`]."] - kill_storage { - keys: ::subxt_core::alloc::vec::Vec< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - >, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::kill_prefix`]."] - kill_prefix { - prefix: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::remark_with_event`]."] - remark_with_event { - remark: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 9)] - #[doc = "See [`Pallet::authorize_upgrade`]."] - authorize_upgrade { code_hash: ::subxt_core::utils::H256 }, - #[codec(index = 10)] - #[doc = "See [`Pallet::authorize_upgrade_without_checks`]."] - authorize_upgrade_without_checks { code_hash: ::subxt_core::utils::H256 }, - #[codec(index = 11)] - #[doc = "See [`Pallet::apply_authorized_upgrade`]."] - apply_authorized_upgrade { - code: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Error for the System pallet"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The name of specification does not match between the current runtime"] - #[doc = "and the new runtime."] - InvalidSpecName, - #[codec(index = 1)] - #[doc = "The specification version is not allowed to decrease between the current runtime"] - #[doc = "and the new runtime."] - SpecVersionNeedsToIncrease, - #[codec(index = 2)] - #[doc = "Failed to extract the runtime version from the new runtime."] - #[doc = ""] - #[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."] - FailedToExtractRuntimeVersion, - #[codec(index = 3)] - #[doc = "Suicide called when the account has non-default composite data."] - NonDefaultComposite, - #[codec(index = 4)] - #[doc = "There is a non-zero reference count preventing the account from being purged."] - NonZeroRefCount, - #[codec(index = 5)] - #[doc = "The origin filter prevent the call to be dispatched."] - CallFiltered, - #[codec(index = 6)] - #[doc = "No upgrade authorized."] - NothingAuthorized, - #[codec(index = 7)] - #[doc = "The submitted code is not authorized."] - Unauthorized, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Event for the System pallet."] - pub enum Event { - #[codec(index = 0)] - #[doc = "An extrinsic completed successfully."] - ExtrinsicSuccess { - dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, - }, - #[codec(index = 1)] - #[doc = "An extrinsic failed."] - ExtrinsicFailed { - dispatch_error: runtime_types::sp_runtime::DispatchError, - dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, - }, - #[codec(index = 2)] - #[doc = "`:code` was updated."] - CodeUpdated, - #[codec(index = 3)] - #[doc = "A new account was created."] - NewAccount { account: ::subxt_core::utils::AccountId32 }, - #[codec(index = 4)] - #[doc = "An account was reaped."] - KilledAccount { account: ::subxt_core::utils::AccountId32 }, - #[codec(index = 5)] - #[doc = "On on-chain remark happened."] - Remarked { - sender: ::subxt_core::utils::AccountId32, - hash: ::subxt_core::utils::H256, - }, - #[codec(index = 6)] - #[doc = "An upgrade was authorized."] - UpgradeAuthorized { - code_hash: ::subxt_core::utils::H256, - check_version: ::core::primitive::bool, - }, - } - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct CodeUpgradeAuthorization { - pub code_hash: ::subxt_core::utils::H256, - pub check_version: ::core::primitive::bool, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: ::subxt_core::alloc::vec::Vec<_1>, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: ::core::primitive::u32, - pub spec_name: ::subxt_core::alloc::string::String, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum Phase { - #[codec(index = 0)] - ApplyExtrinsic(::core::primitive::u32), - #[codec(index = 1)] - Finalization, - #[codec(index = 2)] - Initialization, - } - } - pub mod pallet_airdrop_claims { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::claim`]."] - claim { - dest: ::core::option::Option< - runtime_types::pallet_airdrop_claims::utils::MultiAddress, - >, - signer: ::core::option::Option< - runtime_types::pallet_airdrop_claims::utils::MultiAddress, - >, - signature: - runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::mint_claim`]."] - mint_claim { - who: runtime_types::pallet_airdrop_claims::utils::MultiAddress, - value: ::core::primitive::u128, - vesting_schedule: ::core::option::Option< - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u64, - )>, - >, - statement: ::core::option::Option< - runtime_types::pallet_airdrop_claims::StatementKind, - >, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::claim_attest`]."] - claim_attest { - dest: ::core::option::Option< - runtime_types::pallet_airdrop_claims::utils::MultiAddress, - >, - signer: ::core::option::Option< - runtime_types::pallet_airdrop_claims::utils::MultiAddress, - >, - signature: - runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, - statement: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::move_claim`]."] - move_claim { - old: runtime_types::pallet_airdrop_claims::utils::MultiAddress, - new: runtime_types::pallet_airdrop_claims::utils::MultiAddress, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::force_set_expiry_config`]."] - force_set_expiry_config { - expiry_block: ::core::primitive::u64, - dest: runtime_types::pallet_airdrop_claims::utils::MultiAddress, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::claim_signed`]."] - claim_signed { - dest: ::core::option::Option< - runtime_types::pallet_airdrop_claims::utils::MultiAddress, - >, - }, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid Ethereum signature."] - InvalidEthereumSignature, - #[codec(index = 1)] - #[doc = "Invalid Native (sr25519) signature"] - InvalidNativeSignature, - #[codec(index = 2)] - #[doc = "Invalid Native account decoding"] - InvalidNativeAccount, - #[codec(index = 3)] - #[doc = "Ethereum address has no claim."] - SignerHasNoClaim, - #[codec(index = 4)] - #[doc = "Account ID sending transaction has no claim."] - SenderHasNoClaim, - #[codec(index = 5)] - #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a"] - #[doc = "logic error."] - PotUnderflow, - #[codec(index = 6)] - #[doc = "A needed statement was not included."] - InvalidStatement, - #[codec(index = 7)] - #[doc = "The account already has a vested balance."] - VestedBalanceExists, - } + pub enum MultiAddress { + # [codec (index = 0)] EVM (runtime_types :: pallet_airdrop_claims :: utils :: ethereum_address :: EthereumAddress ,) , # [codec (index = 1)] Native (:: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Someone claimed some native tokens."] - Claimed { - recipient: ::subxt_core::utils::AccountId32, - source: runtime_types::pallet_airdrop_claims::utils::MultiAddress, - amount: ::core::primitive::u128, - }, - } - } - pub mod utils { - use super::runtime_types; - pub mod ethereum_address { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum MultiAddress { - # [codec (index = 0)] EVM (runtime_types :: pallet_airdrop_claims :: utils :: ethereum_address :: EthereumAddress ,) , # [codec (index = 1)] Native (:: subxt_core :: utils :: AccountId32 ,) , } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] pub enum MultiAddressSignature { # [codec (index = 0)] EVM (runtime_types :: pallet_airdrop_claims :: utils :: ethereum_address :: EcdsaSignature ,) , # [codec (index = 1)] Native (runtime_types :: pallet_airdrop_claims :: utils :: Sr25519Signature ,) , } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Sr25519Signature(pub runtime_types::sp_core::sr25519::Signature); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Sr25519Signature(pub [::core::primitive::u8; 64usize]); } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum StatementKind { #[codec(index = 0)] Regular, @@ -44395,38 +51701,78 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::create`]."] + #[doc = "Issue a new class of fungible assets from a public origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially and its owner is the origin."] + #[doc = ""] + #[doc = "The origin must conform to the configured `CreateOrigin` and have sufficient funds free."] + #[doc = ""] + #[doc = "Funds of sender are reserved by `AssetDeposit`."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."] + #[doc = "- `admin`: The admin of this class of assets. The admin is the initial address of each"] + #[doc = "member of the asset class's admin team."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `Created` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] create { #[codec(compact)] id: ::core::primitive::u128, - admin: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + admin: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, min_balance: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "See [`Pallet::force_create`]."] + #[doc = "Issue a new class of fungible assets from a privileged origin."] + #[doc = ""] + #[doc = "This new asset class has no assets initially."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin`."] + #[doc = ""] + #[doc = "Unlike `create`, no funds are reserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the new asset. This must not be currently in use to identify"] + #[doc = "an existing asset. If [`NextAssetId`] is set, then this must be equal to it."] + #[doc = "- `owner`: The owner of this class of assets. The owner has full superuser permissions"] + #[doc = "over this asset, but may later change and configure the permissions using"] + #[doc = "`transfer_ownership` and `set_team`."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = ""] + #[doc = "Emits `ForceCreated` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] force_create { #[codec(compact)] id: ::core::primitive::u128, - owner: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, is_sufficient: ::core::primitive::bool, @@ -44434,203 +51780,446 @@ pub mod api { min_balance: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "See [`Pallet::start_destroy`]."] + #[doc = "Start the process of destroying a fungible asset class."] + #[doc = ""] + #[doc = "`start_destroy` is the first in a series of extrinsics that should be called, to allow"] + #[doc = "destruction of an asset class."] + #[doc = ""] + #[doc = "The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "The asset class must be frozen before calling `start_destroy`."] start_destroy { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::destroy_accounts`]."] + #[doc = "Destroy all accounts associated with a given asset."] + #[doc = ""] + #[doc = "`destroy_accounts` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedAccounts` event."] destroy_accounts { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "See [`Pallet::destroy_approvals`]."] + #[doc = "Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit)."] + #[doc = ""] + #[doc = "`destroy_approvals` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state."] + #[doc = ""] + #[doc = "Due to weight restrictions, this function may need to be called multiple times to fully"] + #[doc = "destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each call emits the `Event::DestroyedApprovals` event."] destroy_approvals { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 5)] - #[doc = "See [`Pallet::finish_destroy`]."] + #[doc = "Complete destroying asset and unreserve currency."] + #[doc = ""] + #[doc = "`finish_destroy` should only be called after `start_destroy` has been called, and the"] + #[doc = "asset is in a `Destroying` state. All accounts or approvals should be destroyed before"] + #[doc = "hand."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be destroyed. This must identify an existing"] + #[doc = " asset."] + #[doc = ""] + #[doc = "Each successful call emits the `Event::Destroyed` event."] finish_destroy { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 6)] - #[doc = "See [`Pallet::mint`]."] + #[doc = "Mint assets of a particular class."] + #[doc = ""] + #[doc = "The origin must be Signed and the sender must be the Issuer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount minted."] + #[doc = "- `beneficiary`: The account to be credited with the minted assets."] + #[doc = "- `amount`: The amount of the asset to be minted."] + #[doc = ""] + #[doc = "Emits `Issued` event when successful."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`."] mint { #[codec(compact)] id: ::core::primitive::u128, - beneficiary: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 7)] - #[doc = "See [`Pallet::burn`]."] + #[doc = "Reduce the balance of `who` by as much as possible up to `amount` assets of `id`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Manager of the asset `id`."] + #[doc = ""] + #[doc = "Bails with `NoAccount` if the `who` is already dead."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount burned."] + #[doc = "- `who`: The account to be debited from."] + #[doc = "- `amount`: The maximum amount by which `who`'s balance should be reduced."] + #[doc = ""] + #[doc = "Emits `Burned` with the actual amount burned. If this takes the balance to below the"] + #[doc = "minimum for the asset, then the amount burned is increased to take it to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Post-existence of `who`; Pre & post Zombie-status of `who`."] burn { #[codec(compact)] id: ::core::primitive::u128, - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 8)] - #[doc = "See [`Pallet::transfer`]."] + #[doc = "Move some assets from the sender account to another."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] transfer { #[codec(compact)] id: ::core::primitive::u128, - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 9)] - #[doc = "See [`Pallet::transfer_keep_alive`]."] + #[doc = "Move some assets from the sender account to another, keeping the sender account alive."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `target`: The account to be credited."] + #[doc = "- `amount`: The amount by which the sender's balance of assets should be reduced and"] + #[doc = "`target`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the sender balance above zero but below"] + #[doc = "the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of"] + #[doc = "`target`."] transfer_keep_alive { #[codec(compact)] id: ::core::primitive::u128, - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 10)] - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Move some assets from one account to another."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to have some amount transferred."] + #[doc = "- `source`: The account to be debited."] + #[doc = "- `dest`: The account to be credited."] + #[doc = "- `amount`: The amount by which the `source`'s balance of assets should be reduced and"] + #[doc = "`dest`'s balance increased. The amount actually transferred may be slightly greater in"] + #[doc = "the case that the transfer would otherwise take the `source` balance above zero but"] + #[doc = "below the minimum balance. Must be greater than zero."] + #[doc = ""] + #[doc = "Emits `Transferred` with the actual amount transferred. If this takes the source balance"] + #[doc = "to below the minimum for the asset, then the amount transferred is increased to take it"] + #[doc = "to zero."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + #[doc = "Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of"] + #[doc = "`dest`."] force_transfer { #[codec(compact)] id: ::core::primitive::u128, - source: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + source: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - dest: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + dest: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 11)] - #[doc = "See [`Pallet::freeze`]."] + #[doc = "Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`"] + #[doc = "must already exist as an entry in `Account`s of the asset. If you want to freeze an"] + #[doc = "account that does not have an entry, use `touch_other` first."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] freeze { #[codec(compact)] id: ::core::primitive::u128, - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 12)] - #[doc = "See [`Pallet::thaw`]."] + #[doc = "Allow unprivileged transfers to and from an account again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `who`: The account to be unfrozen."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] thaw { #[codec(compact)] id: ::core::primitive::u128, - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 13)] - #[doc = "See [`Pallet::freeze_asset`]."] + #[doc = "Disallow further unprivileged transfers for the asset class."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = ""] + #[doc = "Emits `Frozen`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] freeze_asset { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 14)] - #[doc = "See [`Pallet::thaw_asset`]."] + #[doc = "Allow unprivileged transfers for the asset again."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Admin of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be thawed."] + #[doc = ""] + #[doc = "Emits `Thawed`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] thaw_asset { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 15)] - #[doc = "See [`Pallet::transfer_ownership`]."] + #[doc = "Change the Owner of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = ""] + #[doc = "Emits `OwnerChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] transfer_ownership { #[codec(compact)] id: ::core::primitive::u128, - owner: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 16)] - #[doc = "See [`Pallet::set_team`]."] + #[doc = "Change the Issuer, Admin and Freezer of an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to be frozen."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = ""] + #[doc = "Emits `TeamChanged`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] set_team { #[codec(compact)] id: ::core::primitive::u128, - issuer: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + issuer: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - admin: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + admin: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - freezer: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + freezer: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 17)] - #[doc = "See [`Pallet::set_metadata`]."] + #[doc = "Set the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Funds of sender are reserved according to the formula:"] + #[doc = "`MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into"] + #[doc = "account any already reserved funds."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] set_metadata { #[codec(compact)] id: ::core::primitive::u128, - name: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - symbol: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + name: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + symbol: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, decimals: ::core::primitive::u8, }, #[codec(index = 18)] - #[doc = "See [`Pallet::clear_metadata`]."] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Owner of the asset `id`."] + #[doc = ""] + #[doc = "Any deposit is freed for the asset owner."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] clear_metadata { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 19)] - #[doc = "See [`Pallet::force_set_metadata`]."] + #[doc = "Force the metadata for an asset to some value."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is left alone."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to update."] + #[doc = "- `name`: The user friendly name of this asset. Limited in length by `StringLimit`."] + #[doc = "- `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`."] + #[doc = "- `decimals`: The number of decimals this asset uses to represent one unit."] + #[doc = ""] + #[doc = "Emits `MetadataSet`."] + #[doc = ""] + #[doc = "Weight: `O(N + S)` where N and S are the length of the name and symbol respectively."] force_set_metadata { #[codec(compact)] id: ::core::primitive::u128, - name: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - symbol: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + name: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + symbol: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, decimals: ::core::primitive::u8, is_frozen: ::core::primitive::bool, }, #[codec(index = 20)] - #[doc = "See [`Pallet::force_clear_metadata`]."] + #[doc = "Clear the metadata for an asset."] + #[doc = ""] + #[doc = "Origin must be ForceOrigin."] + #[doc = ""] + #[doc = "Any deposit is returned."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset to clear."] + #[doc = ""] + #[doc = "Emits `MetadataCleared`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] force_clear_metadata { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 21)] - #[doc = "See [`Pallet::force_asset_status`]."] + #[doc = "Alter the attributes of a given asset."] + #[doc = ""] + #[doc = "Origin must be `ForceOrigin`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The new Owner of this asset."] + #[doc = "- `issuer`: The new Issuer of this asset."] + #[doc = "- `admin`: The new Admin of this asset."] + #[doc = "- `freezer`: The new Freezer of this asset."] + #[doc = "- `min_balance`: The minimum balance of this new asset that any single account must"] + #[doc = "have. If an account's balance is reduced below this, then it collapses to zero."] + #[doc = "- `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient"] + #[doc = "value to account for the state bloat associated with its balance storage. If set to"] + #[doc = "`true`, then non-zero balances may be stored without a `consumer` reference (and thus"] + #[doc = "an ED in the Balances pallet or whatever else is used to control user-account state"] + #[doc = "growth)."] + #[doc = "- `is_frozen`: Whether this asset class is frozen except for permissioned/admin"] + #[doc = "instructions."] + #[doc = ""] + #[doc = "Emits `AssetStatusChanged` with the identity of the asset."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] force_asset_status { #[codec(compact)] id: ::core::primitive::u128, - owner: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - issuer: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + issuer: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - admin: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + admin: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - freezer: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + freezer: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] @@ -44639,121 +52228,240 @@ pub mod api { is_frozen: ::core::primitive::bool, }, #[codec(index = 22)] - #[doc = "See [`Pallet::approve_transfer`]."] + #[doc = "Approve an amount of asset for transfer by a delegated third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed."] + #[doc = ""] + #[doc = "Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account"] + #[doc = "for the purpose of holding the approval. If some non-zero amount of assets is already"] + #[doc = "approved from signing account to `delegate`, then it is topped up or unreserved to"] + #[doc = "meet the right value."] + #[doc = ""] + #[doc = "NOTE: The signing account does not need to own `amount` of assets at the point of"] + #[doc = "making this call."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account to delegate permission to transfer asset."] + #[doc = "- `amount`: The amount of asset that may be transferred by `delegate`. If there is"] + #[doc = "already an approval in place, then this acts additively."] + #[doc = ""] + #[doc = "Emits `ApprovedTransfer` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] approve_transfer { #[codec(compact)] id: ::core::primitive::u128, - delegate: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 23)] - #[doc = "See [`Pallet::cancel_approval`]."] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place between signer and"] + #[doc = "`delegate`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] cancel_approval { #[codec(compact)] id: ::core::primitive::u128, - delegate: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 24)] - #[doc = "See [`Pallet::force_cancel_approval`]."] + #[doc = "Cancel all of some asset approved for delegated transfer by a third-party account."] + #[doc = ""] + #[doc = "Origin must be either ForceOrigin or Signed origin with the signer being the Admin"] + #[doc = "account of the asset `id`."] + #[doc = ""] + #[doc = "Unreserves any deposit previously reserved by `approve_transfer` for the approval."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `delegate`: The account delegated permission to transfer asset."] + #[doc = ""] + #[doc = "Emits `ApprovalCancelled` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] force_cancel_approval { #[codec(compact)] id: ::core::primitive::u128, - owner: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - delegate: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 25)] - #[doc = "See [`Pallet::transfer_approved`]."] - transfer_approved { - #[codec(compact)] + #[doc = "Transfer some asset balance from a previously delegated account to some third-party"] + #[doc = "account."] + #[doc = ""] + #[doc = "Origin must be Signed and there must be an approval in place by the `owner` to the"] + #[doc = "signer."] + #[doc = ""] + #[doc = "If the entire amount approved for transfer is transferred, then any deposit previously"] + #[doc = "reserved by `approve_transfer` is unreserved."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `owner`: The account which previously approved for a transfer of at least `amount` and"] + #[doc = "from which the asset balance will be withdrawn."] + #[doc = "- `destination`: The account to which the asset balance of `amount` will be transferred."] + #[doc = "- `amount`: The amount of assets to transfer."] + #[doc = ""] + #[doc = "Emits `TransferredApproved` on success."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] + transfer_approved { + #[codec(compact)] id: ::core::primitive::u128, - owner: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - destination: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + destination: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 26)] - #[doc = "See [`Pallet::touch`]."] + #[doc = "Create an asset account for non-provider assets."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed; the signer account must have sufficient funds for a deposit"] + #[doc = " to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] touch { #[codec(compact)] id: ::core::primitive::u128, }, #[codec(index = 27)] - #[doc = "See [`Pallet::refund`]."] + #[doc = "Return the deposit (if any) of an asset account or a consumer reference (if any) of an"] + #[doc = "account."] + #[doc = ""] + #[doc = "The origin must be Signed."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for which the caller would like the deposit"] + #[doc = " refunded."] + #[doc = "- `allow_burn`: If `true` then assets may be destroyed in order to complete the refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] refund { #[codec(compact)] id: ::core::primitive::u128, allow_burn: ::core::primitive::bool, }, #[codec(index = 28)] - #[doc = "See [`Pallet::set_min_balance`]."] + #[doc = "Sets the minimum balance of an asset."] + #[doc = ""] + #[doc = "Only works if there aren't any accounts that are holding the asset or if"] + #[doc = "the new value of `min_balance` is less than the old one."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender has to be the Owner of the"] + #[doc = "asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset."] + #[doc = "- `min_balance`: The new value of `min_balance`."] + #[doc = ""] + #[doc = "Emits `AssetMinBalanceChanged` event when successful."] set_min_balance { #[codec(compact)] id: ::core::primitive::u128, min_balance: ::core::primitive::u128, }, #[codec(index = 29)] - #[doc = "See [`Pallet::touch_other`]."] + #[doc = "Create an asset account for `who`."] + #[doc = ""] + #[doc = "A deposit will be taken from the signer account."] + #[doc = ""] + #[doc = "- `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account"] + #[doc = " must have sufficient funds for a deposit to be taken."] + #[doc = "- `id`: The identifier of the asset for the account to be created."] + #[doc = "- `who`: The account to be created."] + #[doc = ""] + #[doc = "Emits `Touched` event when successful."] touch_other { #[codec(compact)] id: ::core::primitive::u128, - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 30)] - #[doc = "See [`Pallet::refund_other`]."] + #[doc = "Return the deposit (if any) of a target asset account. Useful if you are the depositor."] + #[doc = ""] + #[doc = "The origin must be Signed and either the account owner, depositor, or asset `Admin`. In"] + #[doc = "order to burn a non-zero balance of the asset, the caller must be the account and should"] + #[doc = "use `refund`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the asset for the account holding a deposit."] + #[doc = "- `who`: The account to refund."] + #[doc = ""] + #[doc = "Emits `Refunded` event when successful."] refund_other { #[codec(compact)] id: ::core::primitive::u128, - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 31)] - #[doc = "See [`Pallet::block`]."] + #[doc = "Disallow further unprivileged transfers of an asset `id` to and from an account `who`."] + #[doc = ""] + #[doc = "Origin must be Signed and the sender should be the Freezer of the asset `id`."] + #[doc = ""] + #[doc = "- `id`: The identifier of the account's asset."] + #[doc = "- `who`: The account to be unblocked."] + #[doc = ""] + #[doc = "Emits `Blocked`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] block { #[codec(compact)] id: ::core::primitive::u128, - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -44819,76 +52527,83 @@ pub mod api { #[codec(index = 19)] #[doc = "Callback action resulted in error"] CallbackFailed, + #[codec(index = 20)] + #[doc = "The asset ID must be equal to the [`NextAssetId`]."] + BadAssetId, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Some asset class was created."] Created { asset_id: ::core::primitive::u128, - creator: ::subxt_core::utils::AccountId32, - owner: ::subxt_core::utils::AccountId32, + creator: ::subxt::ext::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 1)] #[doc = "Some assets were issued."] Issued { asset_id: ::core::primitive::u128, - owner: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Some assets were transferred."] Transferred { asset_id: ::core::primitive::u128, - from: ::subxt_core::utils::AccountId32, - to: ::subxt_core::utils::AccountId32, + from: ::subxt::ext::subxt_core::utils::AccountId32, + to: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "Some assets were destroyed."] Burned { asset_id: ::core::primitive::u128, - owner: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, balance: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "The management team changed."] TeamChanged { asset_id: ::core::primitive::u128, - issuer: ::subxt_core::utils::AccountId32, - admin: ::subxt_core::utils::AccountId32, - freezer: ::subxt_core::utils::AccountId32, + issuer: ::subxt::ext::subxt_core::utils::AccountId32, + admin: ::subxt::ext::subxt_core::utils::AccountId32, + freezer: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 5)] #[doc = "The owner changed."] OwnerChanged { asset_id: ::core::primitive::u128, - owner: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 6)] #[doc = "Some account `who` was frozen."] Frozen { asset_id: ::core::primitive::u128, - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 7)] #[doc = "Some account `who` was thawed."] Thawed { asset_id: ::core::primitive::u128, - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 8)] #[doc = "Some asset `asset_id` was frozen."] @@ -44920,14 +52635,14 @@ pub mod api { #[doc = "Some asset class was force-created."] ForceCreated { asset_id: ::core::primitive::u128, - owner: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 15)] #[doc = "New metadata has been set for an asset."] MetadataSet { asset_id: ::core::primitive::u128, - name: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - symbol: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + name: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + symbol: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, decimals: ::core::primitive::u8, is_frozen: ::core::primitive::bool, }, @@ -44938,25 +52653,25 @@ pub mod api { #[doc = "(Additional) funds have been approved for transfer to a destination account."] ApprovedTransfer { asset_id: ::core::primitive::u128, - source: ::subxt_core::utils::AccountId32, - delegate: ::subxt_core::utils::AccountId32, + source: ::subxt::ext::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 18)] #[doc = "An approval for account `delegate` was cancelled by `owner`."] ApprovalCancelled { asset_id: ::core::primitive::u128, - owner: ::subxt_core::utils::AccountId32, - delegate: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 19)] #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] #[doc = "the approved `delegate`."] TransferredApproved { asset_id: ::core::primitive::u128, - owner: ::subxt_core::utils::AccountId32, - delegate: ::subxt_core::utils::AccountId32, - destination: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::AccountId32, + destination: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 20)] @@ -44972,32 +52687,50 @@ pub mod api { #[doc = "Some account `who` was created with a deposit from `depositor`."] Touched { asset_id: ::core::primitive::u128, - who: ::subxt_core::utils::AccountId32, - depositor: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, + depositor: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 23)] #[doc = "Some account `who` was blocked."] Blocked { asset_id: ::core::primitive::u128, - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, + }, + #[codec(index = 24)] + #[doc = "Some assets were deposited (e.g. for transaction fees)."] + Deposited { + asset_id: ::core::primitive::u128, + who: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 25)] + #[doc = "Some assets were withdrawn from the account (e.g. for transaction fees)."] + Withdrawn { + asset_id: ::core::primitive::u128, + who: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, }, } } pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum AccountStatus { #[codec(index = 0)] Liquid, @@ -45007,35 +52740,43 @@ pub mod api { Blocked, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Approval<_0, _1> { pub amount: _0, pub deposit: _1, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AssetAccount<_0, _1, _2, _3> { pub balance: _0, pub status: runtime_types::pallet_assets::types::AccountStatus, @@ -45045,18 +52786,22 @@ pub mod api { pub __ignore: ::core::marker::PhantomData<_1>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AssetDetails<_0, _1, _2> { pub owner: _1, pub issuer: _1, @@ -45072,18 +52817,22 @@ pub mod api { pub status: runtime_types::pallet_assets::types::AssetStatus, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AssetMetadata<_0, _1> { pub deposit: _0, pub name: _1, @@ -45092,18 +52841,22 @@ pub mod api { pub is_frozen: ::core::primitive::bool, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum AssetStatus { #[codec(index = 0)] Live, @@ -45113,18 +52866,22 @@ pub mod api { Destroying, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ExistenceReason<_0, _1> { #[codec(index = 0)] Consumer, @@ -45144,24 +52901,31 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::report_equivocation`]."] + #[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_core::alloc::boxed::Box< + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u64, @@ -45172,9 +52936,16 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + #[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_core::alloc::boxed::Box< + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u64, @@ -45185,24 +52956,31 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "See [`Pallet::plan_config_change`]."] + #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] + #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] + #[doc = "Multiple calls to this method will replace any existing planned config change that had"] + #[doc = "not been enacted yet."] plan_config_change { config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -45225,35 +53003,43 @@ pub mod api { pub mod list { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Bag { - pub head: ::core::option::Option<::subxt_core::utils::AccountId32>, - pub tail: ::core::option::Option<::subxt_core::utils::AccountId32>, + pub head: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>, + pub tail: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ListError { #[codec(index = 0)] Duplicate, @@ -45265,22 +53051,26 @@ pub mod api { NodeNotFound, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Node { - pub id: ::subxt_core::utils::AccountId32, - pub prev: ::core::option::Option<::subxt_core::utils::AccountId32>, - pub next: ::core::option::Option<::subxt_core::utils::AccountId32>, + 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, } @@ -45288,62 +53078,90 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::rebag`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + dislocated: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::put_in_front_of`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + lighter: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 2)] - #[doc = "See [`Pallet::put_in_front_of_other`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + heavier: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - lighter: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + lighter: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -45351,31 +53169,35 @@ pub mod api { List(runtime_types::pallet_bags_list::list::ListError), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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_core::utils::AccountId32, + 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_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, new_score: ::core::primitive::u64, }, } @@ -45386,108 +53208,172 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::transfer_allow_death`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + dest: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] + #[doc = "may be specified."] force_transfer { - source: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + source: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - dest: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + dest: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::transfer_keep_alive`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + dest: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "See [`Pallet::transfer_all`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + dest: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "See [`Pallet::force_unreserve`]."] + #[doc = "Unreserve some balance from a user by force."] + #[doc = ""] + #[doc = "Can only be called by ROOT."] force_unreserve { - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, amount: ::core::primitive::u128, }, #[codec(index = 6)] - #[doc = "See [`Pallet::upgrade_accounts`]."] + #[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_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + who: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, }, #[codec(index = 8)] - #[doc = "See [`Pallet::force_set_balance`]."] + #[doc = "Set the regular balance of a given account."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] force_set_balance { - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] new_free: ::core::primitive::u128, }, #[codec(index = 9)] - #[doc = "See [`Pallet::force_adjust_total_issuance`]."] + #[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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -45528,64 +53414,68 @@ pub mod api { DeltaZero, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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_core::utils::AccountId32, + 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_core::utils::AccountId32, + account: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "Transfer succeeded."] Transfer { - from: ::subxt_core::utils::AccountId32, - to: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, - to: ::subxt_core::utils::AccountId32, + 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, @@ -45593,48 +53483,48 @@ pub mod api { #[codec(index = 7)] #[doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { - who: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 14)] #[doc = "An account was upgraded."] - Upgraded { who: ::subxt_core::utils::AccountId32 }, + 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 }, @@ -45644,25 +53534,25 @@ pub mod api { #[codec(index = 17)] #[doc = "Some balance was locked."] Locked { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 18)] #[doc = "Some balance was unlocked."] Unlocked { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 19)] #[doc = "Some balance was frozen."] Frozen { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 20)] #[doc = "Some balance was thawed."] Thawed { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 21)] @@ -45676,18 +53566,22 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AccountData<_0> { pub free: _0, pub reserved: _0, @@ -45695,18 +53589,22 @@ pub mod api { pub flags: runtime_types::pallet_balances::types::ExtraFlags, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum AdjustmentDirection { #[codec(index = 0)] Increase, @@ -45714,68 +53612,63 @@ pub mod api { Decrease, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct BalanceLock<_0> { pub id: [::core::primitive::u8; 8usize], pub amount: _0, pub reasons: runtime_types::pallet_balances::types::Reasons, } #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ExtraFlags(pub ::core::primitive::u128); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct IdAmount<_0, _1> { - pub id: _0, - pub amount: _1, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] pub enum Reasons { #[codec(index = 0)] Fee, @@ -45785,18 +53678,22 @@ pub mod api { All, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ReserveData<_0, _1> { pub id: _0, pub amount: _1, @@ -45808,40 +53705,46 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::set_base_fee_per_gas`]."] set_base_fee_per_gas { fee: runtime_types::primitive_types::U256 }, #[codec(index = 1)] - #[doc = "See [`Pallet::set_elasticity`]."] set_elasticity { elasticity: runtime_types::sp_arithmetic::per_things::Permill }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -45858,100 +53761,185 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::propose_bounty`]."] + #[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_core::alloc::vec::Vec<::core::primitive::u8>, + description: + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "See [`Pallet::approve_bounty`]."] + #[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 = "See [`Pallet::propose_curator`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + curator: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] fee: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::unassign_curator`]."] + #[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 = "See [`Pallet::accept_curator`]."] + #[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 = "See [`Pallet::award_bounty`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 6)] - #[doc = "See [`Pallet::claim_bounty`]."] + #[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 = "See [`Pallet::close_bounty`]."] + #[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 = "See [`Pallet::extend_bounty_expiry`]."] + #[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_core::alloc::vec::Vec<::core::primitive::u8>, + remark: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -45990,18 +53978,22 @@ pub mod api { TooManyQueued, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -46017,14 +54009,14 @@ pub mod api { #[doc = "A bounty is awarded to a beneficiary."] BountyAwarded { index: ::core::primitive::u32, - beneficiary: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 5)] #[doc = "A bounty is cancelled."] @@ -46039,7 +54031,7 @@ pub mod api { #[doc = "A bounty curator is proposed."] CuratorProposed { bounty_id: ::core::primitive::u32, - curator: ::subxt_core::utils::AccountId32, + curator: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 9)] #[doc = "A bounty curator is unassigned."] @@ -46048,23 +54040,23 @@ pub mod api { #[doc = "A bounty curator is accepted."] CuratorAccepted { bounty_id: ::core::primitive::u32, - curator: ::subxt_core::utils::AccountId32, + curator: ::subxt::ext::subxt_core::utils::AccountId32, }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Bounty<_0, _1, _2> { pub proposer: _0, pub value: _1, @@ -46074,18 +54066,18 @@ pub mod api { pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum BountyStatus<_0, _1> { #[codec(index = 0)] Proposed, @@ -46106,45 +54098,100 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::add_child_bounty`]."] + #[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_core::alloc::vec::Vec<::core::primitive::u8>, + description: + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "See [`Pallet::propose_curator`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + curator: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] fee: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "See [`Pallet::accept_curator`]."] + #[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, @@ -46152,7 +54199,40 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::unassign_curator`]."] + #[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, @@ -46160,19 +54240,50 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "See [`Pallet::award_child_bounty`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 5)] - #[doc = "See [`Pallet::claim_child_bounty`]."] + #[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, @@ -46180,7 +54291,28 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "See [`Pallet::close_child_bounty`]."] + #[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, @@ -46189,18 +54321,22 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -46214,18 +54350,22 @@ pub mod api { TooManyChildBounties, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -46236,7 +54376,7 @@ pub mod api { Awarded { index: ::core::primitive::u32, child_index: ::core::primitive::u32, - beneficiary: ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 2)] #[doc = "A child-bounty is claimed by beneficiary."] @@ -46244,7 +54384,7 @@ pub mod api { index: ::core::primitive::u32, child_index: ::core::primitive::u32, payout: ::core::primitive::u128, - beneficiary: ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 3)] #[doc = "A child-bounty is cancelled."] @@ -46252,18 +54392,18 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChildBounty<_0, _1, _2> { pub parent_bounty: ::core::primitive::u32, pub value: _1, @@ -46272,18 +54412,18 @@ pub mod api { pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ChildBountyStatus<_0, _1> { #[codec(index = 0)] Added, @@ -46300,63 +54440,152 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::set_members`]."] + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "The dispatch of this call must be `SetMembersOrigin`."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] set_members { - new_members: - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - prime: ::core::option::Option<::subxt_core::utils::AccountId32>, + new_members: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, + prime: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "See [`Pallet::execute`]."] + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "## Complexity:"] + #[doc = "- `O(B + M + P)` where:"] + #[doc = "- `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = "- `M` members-count (code-bounded)"] + #[doc = "- `P` complexity of dispatching `proposal`"] execute { - proposal: ::subxt_core::alloc::boxed::Box< + proposal: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::propose`]."] + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] propose { #[codec(compact)] threshold: ::core::primitive::u32, - proposal: ::subxt_core::alloc::boxed::Box< + proposal: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::vote`]."] + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "## Complexity"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] vote { - proposal: ::subxt_core::utils::H256, + proposal: ::subxt::ext::subxt_core::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "See [`Pallet::disapprove_proposal`]."] - disapprove_proposal { proposal_hash: ::subxt_core::utils::H256 }, + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(P) where P is the number of max proposals"] + disapprove_proposal { proposal_hash: ::subxt::ext::subxt_core::utils::H256 }, #[codec(index = 6)] - #[doc = "See [`Pallet::close`]."] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] close { - proposal_hash: ::subxt_core::utils::H256, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, #[codec(compact)] index: ::core::primitive::u32, proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, @@ -46365,18 +54594,22 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -46414,81 +54647,85 @@ pub mod api { PrimeAccountNotMember, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] Proposed { - account: ::subxt_core::utils::AccountId32, + account: ::subxt::ext::subxt_core::utils::AccountId32, proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt_core::utils::H256, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, threshold: ::core::primitive::u32, }, #[codec(index = 1)] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] Voted { - account: ::subxt_core::utils::AccountId32, - proposal_hash: ::subxt_core::utils::H256, + account: ::subxt::ext::subxt_core::utils::AccountId32, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, voted: ::core::primitive::bool, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "A motion was approved by the required threshold."] - Approved { proposal_hash: ::subxt_core::utils::H256 }, + Approved { proposal_hash: ::subxt::ext::subxt_core::utils::H256 }, #[codec(index = 3)] #[doc = "A motion was not approved by the required threshold."] - Disapproved { proposal_hash: ::subxt_core::utils::H256 }, + Disapproved { proposal_hash: ::subxt::ext::subxt_core::utils::H256 }, #[codec(index = 4)] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] Executed { - proposal_hash: ::subxt_core::utils::H256, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 5)] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] MemberExecuted { - proposal_hash: ::subxt_core::utils::H256, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 6)] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] Closed { - proposal_hash: ::subxt_core::utils::H256, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, yes: ::core::primitive::u32, no: ::core::primitive::u32, }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RawOrigin<_0> { #[codec(index = 0)] Members(::core::primitive::u32, ::core::primitive::u32), @@ -46498,23 +54735,23 @@ pub mod api { _Phantom, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Votes<_0, _1> { pub index: ::core::primitive::u32, pub threshold: ::core::primitive::u32, - pub ayes: ::subxt_core::alloc::vec::Vec<_0>, - pub nays: ::subxt_core::alloc::vec::Vec<_0>, + pub ayes: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, + pub nays: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, pub end: _1, } } @@ -46523,18 +54760,22 @@ pub mod api { pub mod conviction { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Conviction { #[codec(index = 0)] None, @@ -46555,22 +54796,34 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::propose`]."] + #[doc = "Propose a sensitive action to be taken."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] + #[doc = "have funds to cover the deposit."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the proposal preimage."] + #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] + #[doc = ""] + #[doc = "Emits `Proposed`."] propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -46580,13 +54833,24 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "See [`Pallet::second`]."] + #[doc = "Signals agreement with a particular proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] + #[doc = "must have funds to cover the deposit, equal to the original deposit."] + #[doc = ""] + #[doc = "- `proposal`: The index of the proposal to second."] second { #[codec(compact)] proposal: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::vote`]."] + #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] + #[doc = "otherwise it is a vote to keep the status quo."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to vote for."] + #[doc = "- `vote`: The vote configuration."] vote { #[codec(compact)] ref_index: ::core::primitive::u32, @@ -46595,10 +54859,22 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::emergency_cancel`]."] + #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] + #[doc = ""] + #[doc = "-`ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] emergency_cancel { ref_index: ::core::primitive::u32 }, #[codec(index = 4)] - #[doc = "See [`Pallet::external_propose`]."] + #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -46606,7 +54882,17 @@ pub mod api { >, }, #[codec(index = 5)] - #[doc = "See [`Pallet::external_propose_majority`]."] + #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] + #[doc = "an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] external_propose_majority { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -46614,7 +54900,17 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "See [`Pallet::external_propose_default`]."] + #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] + #[doc = "schedule an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] external_propose_default { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -46622,89 +54918,236 @@ pub mod api { >, }, #[codec(index = 7)] - #[doc = "See [`Pallet::fast_track`]."] + #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] + #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] + #[doc = "but it is not a majority-carries referendum then it fails."] + #[doc = ""] + #[doc = "The dispatch of this call must be `FastTrackOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the current external proposal."] + #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] + #[doc = "\tMust be always greater than zero."] + #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] + #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] + #[doc = " enacted. This doesn't have a minimum amount."] + #[doc = ""] + #[doc = "Emits `Started`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] fast_track { - proposal_hash: ::subxt_core::utils::H256, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, voting_period: ::core::primitive::u64, delay: ::core::primitive::u64, }, #[codec(index = 8)] - #[doc = "See [`Pallet::veto_external`]."] - veto_external { proposal_hash: ::subxt_core::utils::H256 }, + #[doc = "Veto and blacklist the external proposal hash."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `VetoOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] + #[doc = ""] + #[doc = "Emits `Vetoed`."] + #[doc = ""] + #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + veto_external { proposal_hash: ::subxt::ext::subxt_core::utils::H256 }, #[codec(index = 9)] - #[doc = "See [`Pallet::cancel_referendum`]."] + #[doc = "Remove a referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "# Weight: `O(1)`."] cancel_referendum { #[codec(compact)] ref_index: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "See [`Pallet::delegate`]."] + #[doc = "Delegate the voting power (with some given conviction) of the sending account."] + #[doc = ""] + #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] + #[doc = "time appropriate for the conviction's lock period."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] + #[doc = " - be delegating already; or"] + #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] + #[doc = " through `reap_vote` or `unvote`)."] + #[doc = ""] + #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] + #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] + #[doc = " account is undelegated, the funds will be locked for the corresponding period."] + #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] + #[doc = " be more than the account's current balance."] + #[doc = ""] + #[doc = "Emits `Delegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] delegate { - to: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + to: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, conviction: runtime_types::pallet_democracy::conviction::Conviction, balance: ::core::primitive::u128, }, #[codec(index = 11)] - #[doc = "See [`Pallet::undelegate`]."] + #[doc = "Undelegate the voting power of the sending account."] + #[doc = ""] + #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] + #[doc = "of the conviction with which the delegation was issued."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] + #[doc = "currently delegating."] + #[doc = ""] + #[doc = "Emits `Undelegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] undelegate, #[codec(index = 12)] - #[doc = "See [`Pallet::clear_public_proposals`]."] + #[doc = "Clears all public proposals."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] clear_public_proposals, #[codec(index = 13)] - #[doc = "See [`Pallet::unlock`]."] + #[doc = "Unlock tokens that have an expired lock."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account to remove the lock on."] + #[doc = ""] + #[doc = "Weight: `O(R)` with R number of vote of target."] unlock { - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 14)] - #[doc = "See [`Pallet::remove_vote`]."] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If:"] + #[doc = "- the referendum was cancelled, or"] + #[doc = "- the referendum is ongoing, or"] + #[doc = "- the referendum has ended such that"] + #[doc = " - the vote of the account was in opposition to the result; or"] + #[doc = " - there was no conviction to the account's vote; or"] + #[doc = " - the account made a split vote"] + #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] + #[doc = "funds being available."] + #[doc = ""] + #[doc = "If, however, the referendum has ended and:"] + #[doc = "- it finished corresponding to the vote of the account, and"] + #[doc = "- the account made a standard vote with conviction, and"] + #[doc = "- the lock period of the conviction is not over"] + #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] + #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] + #[doc = "of both the amount locked and the time is it locked for)."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] + #[doc = "registered for referendum `index`."] + #[doc = ""] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] remove_vote { index: ::core::primitive::u32 }, #[codec(index = 15)] - #[doc = "See [`Pallet::remove_other_vote`]."] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] + #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] + #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] + #[doc = "because the conviction period is over."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] + #[doc = " referendum `index`."] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "See [`Pallet::blacklist`]."] + #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] + #[doc = "proposed again."] + #[doc = ""] + #[doc = "If called on a queued public or external proposal, then this will result in it being"] + #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] + #[doc = "then it will be cancelled."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] + #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] + #[doc = "cancelled."] + #[doc = ""] + #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] + #[doc = " reasonable value)."] blacklist { - proposal_hash: ::subxt_core::utils::H256, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 17)] - #[doc = "See [`Pallet::cancel_proposal`]."] + #[doc = "Remove a proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] + #[doc = ""] + #[doc = "- `prop_index`: The index of the proposal to cancel."] + #[doc = ""] + #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { #[codec(compact)] prop_index: ::core::primitive::u32, }, #[codec(index = 18)] - #[doc = "See [`Pallet::set_metadata`]."] + #[doc = "Set or clear a metadata of a proposal or a referendum."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "- `origin`: Must correspond to the `MetadataOwner`."] + #[doc = " - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`"] + #[doc = " threshold."] + #[doc = " - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`"] + #[doc = " threshold."] + #[doc = " - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`"] + #[doc = " threshold."] + #[doc = " - `Signed` by a creator for a public proposal."] + #[doc = " - `Signed` to clear a metadata for a finished referendum."] + #[doc = " - `Root` to set a metadata for an ongoing referendum."] + #[doc = "- `owner`: an identifier of a metadata owner."] + #[doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] set_metadata { owner: runtime_types::pallet_democracy::types::MetadataOwner, - maybe_hash: ::core::option::Option<::subxt_core::utils::H256>, + maybe_hash: ::core::option::Option<::subxt::ext::subxt_core::utils::H256>, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -46782,18 +55225,22 @@ pub mod api { PreimageNotExist, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -46829,35 +55276,35 @@ pub mod api { #[codec(index = 7)] #[doc = "An account has delegated their vote to another account."] Delegated { - who: ::subxt_core::utils::AccountId32, - target: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 8)] #[doc = "An account has cancelled a previous delegation operation."] - Undelegated { account: ::subxt_core::utils::AccountId32 }, + Undelegated { account: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 9)] #[doc = "An external proposal has been vetoed."] Vetoed { - who: ::subxt_core::utils::AccountId32, - proposal_hash: ::subxt_core::utils::H256, + who: ::subxt::ext::subxt_core::utils::AccountId32, + proposal_hash: ::subxt::ext::subxt_core::utils::H256, until: ::core::primitive::u64, }, #[codec(index = 10)] #[doc = "A proposal_hash has been blacklisted permanently."] - Blacklisted { proposal_hash: ::subxt_core::utils::H256 }, + Blacklisted { proposal_hash: ::subxt::ext::subxt_core::utils::H256 }, #[codec(index = 11)] #[doc = "An account has voted in a referendum"] Voted { - voter: ::subxt_core::utils::AccountId32, + voter: ::subxt::ext::subxt_core::utils::AccountId32, ref_index: ::core::primitive::u32, vote: runtime_types::pallet_democracy::vote::AccountVote< ::core::primitive::u128, >, }, #[codec(index = 12)] - #[doc = "An account has secconded a proposal"] + #[doc = "An account has seconded a proposal"] Seconded { - seconder: ::subxt_core::utils::AccountId32, + seconder: ::subxt::ext::subxt_core::utils::AccountId32, prop_index: ::core::primitive::u32, }, #[codec(index = 13)] @@ -46867,55 +55314,63 @@ pub mod api { #[doc = "Metadata for a proposal or a referendum has been set."] MetadataSet { owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt_core::utils::H256, + hash: ::subxt::ext::subxt_core::utils::H256, }, #[codec(index = 15)] #[doc = "Metadata for a proposal or a referendum has been cleared."] MetadataCleared { owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt_core::utils::H256, + hash: ::subxt::ext::subxt_core::utils::H256, }, #[codec(index = 16)] #[doc = "Metadata has been transferred to new owner."] MetadataTransferred { prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt_core::utils::H256, + hash: ::subxt::ext::subxt_core::utils::H256, }, } } pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Delegations<_0> { pub votes: _0, pub capital: _0, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum MetadataOwner { #[codec(index = 0)] External, @@ -46925,18 +55380,22 @@ pub mod api { Referendum(::core::primitive::u32), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ReferendumInfo<_0, _1, _2> { #[codec(index = 0)] Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), @@ -46944,18 +55403,22 @@ pub mod api { Finished { approved: ::core::primitive::bool, end: _0 }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ReferendumStatus<_0, _1, _2> { pub end: _0, pub proposal: _1, @@ -46964,18 +55427,22 @@ pub mod api { pub tally: runtime_types::pallet_democracy::types::Tally<_2>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Tally<_0> { pub ayes: _0, pub nays: _0, @@ -46985,18 +55452,22 @@ pub mod api { pub mod vote { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum AccountVote<_0> { #[codec(index = 0)] Standard { vote: runtime_types::pallet_democracy::vote::Vote, balance: _0 }, @@ -47004,47 +55475,59 @@ pub mod api { Split { aye: _0, nay: _0 }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Vote(pub ::core::primitive::u8); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Voting<_0, _1, _2> { #[codec(index = 0)] Direct { @@ -47068,18 +55551,22 @@ pub mod api { pub mod vote_threshold { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum VoteThreshold { #[codec(index = 0)] SuperMajorityApprove, @@ -47095,22 +55582,25 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::note_min_gas_price_target`]."] note_min_gas_price_target { target: runtime_types::primitive_types::U256 }, } } @@ -47120,34 +55610,42 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_testnet_runtime :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: subxt_core :: alloc :: vec :: Vec < (:: subxt_core :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt_core :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_testnet_runtime :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + # [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 :: tangle_testnet_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 :: tangle_testnet_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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Error of the pallet that can be returned in response to dispatches."] pub enum Error { #[codec(index = 0)] @@ -47193,36 +55691,41 @@ pub mod api { #[doc = "Submitted solution has too many winners"] TooManyWinners, #[codec(index = 14)] - #[doc = "Sumission was prepared for a different round."] + #[doc = "Submission was prepared for a different round."] PreDispatchDifferentRound, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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 submited in the signed phase by a miner with the `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_core::utils::AccountId32>, + origin: + ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>, prev_ejected: ::core::primitive::bool, }, #[codec(index = 1)] @@ -47240,13 +55743,13 @@ pub mod api { #[codec(index = 3)] #[doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { - account: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + account: ::subxt::ext::subxt_core::utils::AccountId32, value: ::core::primitive::u128, }, #[codec(index = 5)] @@ -47265,18 +55768,22 @@ pub mod api { pub mod signed { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SignedSubmission<_0, _1, _2> { pub who: _0, pub deposit: _1, @@ -47286,18 +55793,18 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ElectionCompute { #[codec(index = 0)] OnChain, @@ -47311,18 +55818,18 @@ pub mod api { Emergency, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Phase<_0> { #[codec(index = 0)] Off, @@ -47334,74 +55841,76 @@ pub mod api { Emergency, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RawSolution<_0> { pub solution: _0, pub score: runtime_types::sp_npos_elections::ElectionScore, pub round: ::core::primitive::u32, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReadySolution { pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::subxt_core::utils::AccountId32, - runtime_types::sp_npos_elections::Support<::subxt_core::utils::AccountId32>, + ::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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RoundSnapshot<_0, _1> { - pub voters: ::subxt_core::alloc::vec::Vec<_1>, - pub targets: ::subxt_core::alloc::vec::Vec<_0>, + pub voters: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>, + pub targets: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SolutionOrSnapshotSize { #[codec(compact)] pub voters: ::core::primitive::u32, @@ -47414,71 +55923,159 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::vote`]."] + #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] + #[doc = "set the initial votes, or update already existing votes."] + #[doc = ""] + #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] + #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] + #[doc = ""] + #[doc = "The `votes` should:"] + #[doc = " - not be empty."] + #[doc = " - be less than the number of possible candidates. Note that all current members and"] + #[doc = " runners-up are also automatically candidates for the next round."] + #[doc = ""] + #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] + #[doc = "lock and keep some for further operations."] vote { - votes: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + votes: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "See [`Pallet::remove_voter`]."] + #[doc = "Remove `origin` as a voter."] + #[doc = ""] + #[doc = "This removes the lock and returns the deposit."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter, #[codec(index = 2)] - #[doc = "See [`Pallet::submit_candidacy`]."] + #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] + #[doc = ""] + #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] + #[doc = "or leave the system while their deposit is slashed."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] + #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] + #[doc = ""] + #[doc = "The number of current candidates must be provided as witness data."] + #[doc = "## Complexity"] + #[doc = "O(C + log(C)) where C is candidate_count."] submit_candidacy { #[codec(compact)] candidate_count: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::renounce_candidacy`]."] + #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] + #[doc = "outcomes exist:"] + #[doc = ""] + #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] + #[doc = " unreserved, returned and origin is removed as a candidate."] + #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] + #[doc = " origin is removed as a runner-up."] + #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] + #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] + #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] + #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] + #[doc = " next round."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] + #[doc = "The type of renouncing must be provided as witness data."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = " - Renouncing::Candidate(count): O(count + log(count))"] + #[doc = " - Renouncing::Member: O(1)"] + #[doc = " - Renouncing::RunnerUp: O(1)"] renounce_candidacy { renouncing: runtime_types::pallet_elections_phragmen::Renouncing, }, #[codec(index = 4)] - #[doc = "See [`Pallet::remove_member`]."] + #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] + #[doc = "the outgoing member is slashed."] + #[doc = ""] + #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] + #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] + #[doc = "started, else, nothing happens."] + #[doc = ""] + #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] + #[doc = "it is returned."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "Note that this does not affect the designated block number of the next election."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check details of remove_and_replace_member() and do_phragmen()."] remove_member { - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, slash_bond: ::core::primitive::bool, rerun_election: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "See [`Pallet::clean_defunct_voters`]."] + #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] + #[doc = "deposit of the removed voters are returned."] + #[doc = ""] + #[doc = "This is an root function to be used only for cleaning the state."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Check is_defunct_voter() details."] clean_defunct_voters { num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -47534,18 +56131,22 @@ pub mod api { InvalidReplacement, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -47555,8 +56156,8 @@ pub mod api { #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] #[doc = "begin with."] NewTerm { - new_members: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + new_members: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, )>, }, @@ -47570,40 +56171,40 @@ pub mod api { #[codec(index = 3)] #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] #[doc = "`EmptyTerm`."] - MemberKicked { member: ::subxt_core::utils::AccountId32 }, + MemberKicked { member: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 4)] #[doc = "Someone has renounced their candidacy."] - Renounced { candidate: ::subxt_core::utils::AccountId32 }, + Renounced { candidate: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 5)] #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] #[doc = "runner-up."] #[doc = ""] #[doc = "Note that old members and runners-up are also candidates."] CandidateSlashed { - candidate: ::subxt_core::utils::AccountId32, + candidate: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 6)] #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] SeatHolderSlashed { - seat_holder: ::subxt_core::utils::AccountId32, + seat_holder: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Renouncing { #[codec(index = 0)] Member, @@ -47613,38 +56214,38 @@ pub mod api { Candidate(#[codec(compact)] ::core::primitive::u32), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SeatHolder<_0, _1> { pub who: _0, pub stake: _1, pub deposit: _1, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Voter<_0, _1> { - pub votes: ::subxt_core::alloc::vec::Vec<_0>, + pub votes: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, pub stake: _1, pub deposit: _1, } @@ -47654,37 +56255,45 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::transact`]."] + #[doc = "Transact an Ethereum transaction."] transact { transaction: runtime_types::ethereum::transaction::TransactionV2 }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -47695,47 +56304,52 @@ pub mod api { PreLogExists, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "An ethereum transaction was successfully executed."] Executed { - from: ::subxt_core::utils::H160, - to: ::subxt_core::utils::H160, - transaction_hash: ::subxt_core::utils::H256, + from: ::subxt::ext::subxt_core::utils::H160, + to: ::subxt::ext::subxt_core::utils::H160, + transaction_hash: ::subxt::ext::subxt_core::utils::H256, exit_reason: runtime_types::evm_core::error::ExitReason, - extra_data: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + extra_data: + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RawOrigin { #[codec(index = 0)] - EthereumTransaction(::subxt_core::utils::H160), + EthereumTransaction(::subxt::ext::subxt_core::utils::H160), } } pub mod pallet_evm { @@ -47743,87 +56357,105 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::withdraw`]."] - withdraw { address: ::subxt_core::utils::H160, value: ::core::primitive::u128 }, + #[doc = "Withdraw balance from EVM into currency/balances pallet."] + withdraw { + address: ::subxt::ext::subxt_core::utils::H160, + value: ::core::primitive::u128, + }, #[codec(index = 1)] - #[doc = "See [`Pallet::call`]."] + #[doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] call { - source: ::subxt_core::utils::H160, - target: ::subxt_core::utils::H160, - input: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + source: ::subxt::ext::subxt_core::utils::H160, + target: ::subxt::ext::subxt_core::utils::H160, + input: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, value: runtime_types::primitive_types::U256, gas_limit: ::core::primitive::u64, max_fee_per_gas: runtime_types::primitive_types::U256, max_priority_fee_per_gas: ::core::option::Option, nonce: ::core::option::Option, - access_list: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + access_list: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>, }, #[codec(index = 2)] - #[doc = "See [`Pallet::create`]."] + #[doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] + #[doc = "Ethereum."] create { - source: ::subxt_core::utils::H160, - init: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + source: ::subxt::ext::subxt_core::utils::H160, + init: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, value: runtime_types::primitive_types::U256, gas_limit: ::core::primitive::u64, max_fee_per_gas: runtime_types::primitive_types::U256, max_priority_fee_per_gas: ::core::option::Option, nonce: ::core::option::Option, - access_list: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + access_list: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>, }, #[codec(index = 3)] - #[doc = "See [`Pallet::create2`]."] + #[doc = "Issue an EVM create2 operation."] create2 { - source: ::subxt_core::utils::H160, - init: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - salt: ::subxt_core::utils::H256, + source: ::subxt::ext::subxt_core::utils::H160, + init: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + salt: ::subxt::ext::subxt_core::utils::H256, value: runtime_types::primitive_types::U256, gas_limit: ::core::primitive::u64, max_fee_per_gas: runtime_types::primitive_types::U256, max_priority_fee_per_gas: ::core::option::Option, nonce: ::core::option::Option, - access_list: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::H160, - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, + access_list: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::H160, + ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, )>, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -47867,18 +56499,22 @@ pub mod api { Undefined, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -47886,34 +56522,34 @@ pub mod api { Log { log: runtime_types::ethereum::log::Log }, #[codec(index = 1)] #[doc = "A contract has been created at given address."] - Created { address: ::subxt_core::utils::H160 }, + Created { address: ::subxt::ext::subxt_core::utils::H160 }, #[codec(index = 2)] #[doc = "A contract was attempted to be created, but the execution failed."] - CreatedFailed { address: ::subxt_core::utils::H160 }, + CreatedFailed { address: ::subxt::ext::subxt_core::utils::H160 }, #[codec(index = 3)] #[doc = "A contract has been executed successfully with states applied."] - Executed { address: ::subxt_core::utils::H160 }, + Executed { address: ::subxt::ext::subxt_core::utils::H160 }, #[codec(index = 4)] #[doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] - ExecutedFailed { address: ::subxt_core::utils::H160 }, + ExecutedFailed { address: ::subxt::ext::subxt_core::utils::H160 }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeMetadata { pub size: ::core::primitive::u64, - pub hash: ::subxt_core::utils::H256, + pub hash: ::subxt::ext::subxt_core::utils::H256, } } pub mod pallet_grandpa { @@ -47921,62 +56557,92 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::report_equivocation`]."] + #[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_core::alloc::boxed::Box< + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, ::core::primitive::u64, >, >, key_owner_proof: runtime_types::sp_core::Void, }, #[codec(index = 1)] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + #[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_core::alloc::boxed::Box< + equivocation_proof: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt_core::utils::H256, + ::subxt::ext::subxt_core::utils::H256, ::core::primitive::u64, >, >, key_owner_proof: runtime_types::sp_core::Void, }, #[codec(index = 2)] - #[doc = "See [`Pallet::note_stalled`]."] + #[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::u64, best_finalized_block_number: ::core::primitive::u64, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -48004,24 +56670,28 @@ pub mod api { DuplicateOffenceReport, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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_core::alloc::vec::Vec<( + authority_set: ::subxt::ext::subxt_core::alloc::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, @@ -48035,18 +56705,18 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StoredPendingChange<_0> { pub scheduled_at: _0, pub delay: _0, @@ -48058,18 +56728,18 @@ pub mod api { pub forced: ::core::option::Option<_0>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum StoredState<_0> { #[codec(index = 0)] Live, @@ -48086,39 +56756,52 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::hotfix_inc_account_sufficients`]."] + #[doc = "Increment `sufficients` for existing accounts having a nonzero `nonce` but zero `sufficients`, `consumers` and `providers` value."] + #[doc = "This state was caused by a previous bug in EVM create account dispatchable."] + #[doc = ""] + #[doc = "Any accounts in the input list not satisfying the above condition will remain unaffected."] hotfix_inc_account_sufficients { - addresses: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H160>, + addresses: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H160, + >, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -48132,18 +56815,22 @@ pub mod api { pub mod legacy { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct IdentityInfo { pub additional: runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::pallet_identity::types::Data, @@ -48162,48 +56849,97 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Identity pallet declaration."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::add_registrar`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + account: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::set_identity`]."] + #[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_core::alloc::boxed::Box< + info: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::pallet_identity::legacy::IdentityInfo, >, }, #[codec(index = 2)] - #[doc = "See [`Pallet::set_subs`]."] + #[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_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + subs: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::pallet_identity::types::Data, )>, }, #[codec(index = 3)] - #[doc = "See [`Pallet::clear_identity`]."] + #[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 = "See [`Pallet::request_judgement`]."] + #[doc = "Request a judgement from a registrar."] + #[doc = ""] + #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] + #[doc = "given."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] + #[doc = "registered identity."] + #[doc = ""] + #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] + #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] + #[doc = ""] + #[doc = "```nocompile"] + #[doc = "Self::registrars().get(reg_index).unwrap().fee"] + #[doc = "```"] + #[doc = ""] + #[doc = "Emits `JudgementRequested` if successful."] request_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, @@ -48211,10 +56947,25 @@ pub mod api { max_fee: ::core::primitive::u128, }, #[codec(index = 5)] - #[doc = "See [`Pallet::cancel_request`]."] + #[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 = "See [`Pallet::set_fee`]."] + #[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, @@ -48222,125 +56973,201 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 7)] - #[doc = "See [`Pallet::set_account_id`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + new: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 8)] - #[doc = "See [`Pallet::set_fields`]."] + #[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 = "See [`Pallet::provide_judgement`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, - identity: ::subxt_core::utils::H256, + identity: ::subxt::ext::subxt_core::utils::H256, }, #[codec(index = 10)] - #[doc = "See [`Pallet::kill_identity`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 11)] - #[doc = "See [`Pallet::add_sub`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + sub: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 12)] - #[doc = "See [`Pallet::rename_sub`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + sub: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 13)] - #[doc = "See [`Pallet::remove_sub`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + sub: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 14)] - #[doc = "See [`Pallet::quit_sub`]."] + #[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 = "See [`Pallet::add_username_authority`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + authority: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - suffix: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + suffix: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, allocation: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "See [`Pallet::remove_username_authority`]."] + #[doc = "Remove `authority` from the username authorities."] remove_username_authority { - authority: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + authority: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 17)] - #[doc = "See [`Pallet::set_username_for`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - username: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + username: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, signature: ::core::option::Option, }, #[codec(index = 18)] - #[doc = "See [`Pallet::accept_username`]."] + #[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 = "See [`Pallet::remove_expired_approval`]."] + #[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 = "See [`Pallet::set_primary_username`]."] + #[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 = "See [`Pallet::remove_dangling_username`]."] + #[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, @@ -48348,18 +57175,22 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -48442,51 +57273,55 @@ pub mod api { NotExpired, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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_core::utils::AccountId32 }, + IdentitySet { who: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 1)] #[doc = "A name was cleared, and the given balance returned."] IdentityCleared { - who: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + 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_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 4)] #[doc = "A judgement request was retracted."] JudgementUnrequested { - who: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 6)] @@ -48495,35 +57330,35 @@ pub mod api { #[codec(index = 7)] #[doc = "A sub-identity was added to an identity and the deposit paid."] SubIdentityAdded { - sub: ::subxt_core::utils::AccountId32, - main: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, - main: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, - main: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32 }, + AuthorityAdded { authority: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 11)] #[doc = "A username authority was removed."] - AuthorityRemoved { authority: ::subxt_core::utils::AccountId32 }, + AuthorityRemoved { authority: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 12)] #[doc = "A username was set for `who`."] UsernameSet { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, username: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, @@ -48531,7 +57366,7 @@ pub mod api { #[codec(index = 13)] #[doc = "A username was queued, but `who` must accept it prior to `expiration`."] UsernameQueued { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, username: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, @@ -48539,11 +57374,11 @@ pub mod api { }, #[codec(index = 14)] #[doc = "A queued username passed its expiration without being claimed and was removed."] - PreapprovalExpired { whose: ::subxt_core::utils::AccountId32 }, + 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_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, username: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, @@ -48552,7 +57387,7 @@ pub mod api { #[doc = "A dangling username (as in, a username corresponding to an account that has removed its"] #[doc = "identity) has been removed."] DanglingUsernameRemoved { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, username: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, @@ -48562,35 +57397,43 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct AuthorityProperties<_0> { pub suffix: _0, pub allocation: ::core::primitive::u32, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Data { #[codec(index = 0)] None, @@ -48670,18 +57513,22 @@ pub mod api { ShaThree256([::core::primitive::u8; 32usize]), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Judgement<_0> { #[codec(index = 0)] Unknown, @@ -48699,36 +57546,44 @@ pub mod api { Erroneous, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct RegistrarInfo<_0, _1, _2> { pub account: _1, pub fee: _0, pub fields: _2, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Registration<_0, _2> { pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, @@ -48744,22 +57599,28 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::heartbeat`]."] + #[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::u64>, @@ -48767,18 +57628,22 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -48789,18 +57654,22 @@ pub mod api { DuplicatedHeartbeat, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -48814,10 +57683,10 @@ pub mod api { #[codec(index = 2)] #[doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { - offline: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::utils::AccountId32, + offline: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::utils::AccountId32, runtime_types::sp_staking::Exposure< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u128, >, )>, @@ -48829,48 +57698,56 @@ pub mod api { pub mod app_sr25519 { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 64usize]); } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Heartbeat<_0> { pub block_number: _0, pub session_index: ::core::primitive::u32, @@ -48883,62 +57760,126 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::claim`]."] + #[doc = "Assign an previously unassigned index."] + #[doc = ""] + #[doc = "Payment: `Deposit` is reserved from the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be claimed. This must not be in use."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] - #[doc = "See [`Pallet::transfer`]."] + #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] + #[doc = "is effectively transferred to the new account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] transfer { - new: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + new: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::free`]."] + #[doc = "Free up an index owned by the sender."] + #[doc = ""] + #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] + #[doc = ""] + #[doc = "- `index`: the index to be freed. This must be owned by the sender."] + #[doc = ""] + #[doc = "Emits `IndexFreed` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] free { index: ::core::primitive::u32 }, #[codec(index = 3)] - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] + #[doc = "held, then any deposit is reimbursed to its current owner."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `index`: the index to be (re-)assigned."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] force_transfer { - new: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + new: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, index: ::core::primitive::u32, freeze: ::core::primitive::bool, }, #[codec(index = 4)] - #[doc = "See [`Pallet::freeze`]."] + #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] + #[doc = "deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] + #[doc = "non-frozen account `index`."] + #[doc = ""] + #[doc = "- `index`: the index to be frozen in place."] + #[doc = ""] + #[doc = "Emits `IndexFrozen` if successful."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] freeze { index: ::core::primitive::u32 }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -48958,24 +57899,28 @@ pub mod api { Permanent, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A account index was assigned."] IndexAssigned { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, index: ::core::primitive::u32, }, #[codec(index = 1)] @@ -48985,7 +57930,7 @@ pub mod api { #[doc = "A account index has been frozen to its current account ID."] IndexFrozen { index: ::core::primitive::u32, - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, }, } } @@ -48995,34 +57940,42 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The callable functions (extrinsics) of the pallet."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::join_operators`]."] join_operators { bond_amount : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "See [`Pallet::schedule_leave_operators`]."] schedule_leave_operators , # [codec (index = 2)] # [doc = "See [`Pallet::cancel_leave_operators`]."] cancel_leave_operators , # [codec (index = 3)] # [doc = "See [`Pallet::execute_leave_operators`]."] execute_leave_operators , # [codec (index = 4)] # [doc = "See [`Pallet::operator_bond_more`]."] operator_bond_more { additional_bond : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "See [`Pallet::schedule_operator_unstake`]."] schedule_operator_unstake { unstake_amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "See [`Pallet::execute_operator_unstake`]."] execute_operator_unstake , # [codec (index = 7)] # [doc = "See [`Pallet::cancel_operator_unstake`]."] cancel_operator_unstake , # [codec (index = 8)] # [doc = "See [`Pallet::go_offline`]."] go_offline , # [codec (index = 9)] # [doc = "See [`Pallet::go_online`]."] go_online , # [codec (index = 10)] # [doc = "See [`Pallet::deposit`]."] deposit { asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "See [`Pallet::schedule_withdraw`]."] schedule_withdraw { asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "See [`Pallet::execute_withdraw`]."] execute_withdraw , # [codec (index = 13)] # [doc = "See [`Pallet::cancel_withdraw`]."] cancel_withdraw { asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 14)] # [doc = "See [`Pallet::delegate`]."] delegate { operator : :: subxt_core :: utils :: AccountId32 , asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 15)] # [doc = "See [`Pallet::schedule_delegator_unstake`]."] schedule_delegator_unstake { operator : :: subxt_core :: utils :: AccountId32 , asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 16)] # [doc = "See [`Pallet::execute_delegator_unstake`]."] execute_delegator_unstake , # [codec (index = 17)] # [doc = "See [`Pallet::cancel_delegator_unstake`]."] cancel_delegator_unstake { operator : :: subxt_core :: utils :: AccountId32 , asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_incentive_apy_and_cap`]."] set_incentive_apy_and_cap { pool_id : :: core :: primitive :: u128 , apy : runtime_types :: sp_arithmetic :: per_things :: Percent , cap : :: core :: primitive :: u128 , } , # [codec (index = 20)] # [doc = "See [`Pallet::whitelist_blueprint_for_rewards`]."] whitelist_blueprint_for_rewards { blueprint_id : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::manage_asset_in_pool`]."] manage_asset_in_pool { pool_id : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , action : runtime_types :: pallet_multi_asset_delegation :: types :: rewards :: AssetAction , } , } + # [codec (index = 0)] # [doc = "Allows an account to join as an operator by providing a stake."] join_operators { bond_amount : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Schedules an operator to leave."] schedule_leave_operators , # [codec (index = 2)] # [doc = "Cancels a scheduled leave for an operator."] cancel_leave_operators , # [codec (index = 3)] # [doc = "Executes a scheduled leave for an operator."] execute_leave_operators , # [codec (index = 4)] # [doc = "Allows an operator to increase their stake."] operator_bond_more { additional_bond : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Schedules an operator to decrease their stake."] schedule_operator_unstake { unstake_amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Executes a scheduled stake decrease for an operator."] execute_operator_unstake , # [codec (index = 7)] # [doc = "Cancels a scheduled stake decrease for an operator."] cancel_operator_unstake , # [codec (index = 8)] # [doc = "Allows an operator to go offline."] go_offline , # [codec (index = 9)] # [doc = "Allows an operator to go online."] go_online , # [codec (index = 10)] # [doc = "Allows a user to deposit an asset."] deposit { asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Schedules an withdraw request."] schedule_withdraw { asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "Executes a scheduled withdraw request."] execute_withdraw , # [codec (index = 13)] # [doc = "Cancels a scheduled withdraw request."] cancel_withdraw { asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 14)] # [doc = "Allows a user to delegate an amount of an asset to an operator."] delegate { operator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 15)] # [doc = "Schedules a request to reduce a delegator's stake."] schedule_delegator_unstake { operator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 16)] # [doc = "Executes a scheduled request to reduce a delegator's stake."] execute_delegator_unstake , # [codec (index = 17)] # [doc = "Cancels a scheduled request to reduce a delegator's stake."] cancel_delegator_unstake { operator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , asset_id : :: core :: primitive :: u128 , amount : :: core :: primitive :: u128 , } , # [codec (index = 19)] # [doc = "Sets the APY and cap for a specific asset."] set_incentive_apy_and_cap { vault_id : :: core :: primitive :: u128 , apy : runtime_types :: sp_arithmetic :: per_things :: Percent , cap : :: core :: primitive :: u128 , } , # [codec (index = 20)] # [doc = "Whitelists a blueprint for rewards."] whitelist_blueprint_for_rewards { blueprint_id : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Manage asset id to vault rewards"] manage_asset_in_vault { vault_id : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , action : runtime_types :: pallet_multi_asset_delegation :: types :: rewards :: AssetAction , } , } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Errors emitted by the pallet."] pub enum Error { #[codec(index = 0)] @@ -49107,67 +58060,79 @@ pub mod api { #[doc = "No matching withdraw reqests found"] NoMatchingwithdrawRequest, #[codec(index = 27)] - #[doc = "Asset already exists in a reward pool"] - AssetAlreadyInPool, + #[doc = "Asset already exists in a reward vault"] + AssetAlreadyInVault, #[codec(index = 28)] - #[doc = "Asset not found in reward pool"] - AssetNotInPool, + #[doc = "Asset not found in reward vault"] + AssetNotInVault, #[codec(index = 29)] - #[doc = "The reward pool does not exist"] - PoolNotFound, + #[doc = "The reward vault does not exist"] + VaultNotFound, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Events emitted by the pallet."] pub enum Event { - # [codec (index = 0)] # [doc = "An operator has joined."] OperatorJoined { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "An operator has scheduled to leave."] OperatorLeavingScheduled { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "An operator has cancelled their leave request."] OperatorLeaveCancelled { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "An operator has executed their leave request."] OperatorLeaveExecuted { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An operator has increased their stake."] OperatorBondMore { who : :: subxt_core :: utils :: AccountId32 , additional_bond : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "An operator has scheduled to decrease their stake."] OperatorBondLessScheduled { who : :: subxt_core :: utils :: AccountId32 , unstake_amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "An operator has executed their stake decrease."] OperatorBondLessExecuted { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 7)] # [doc = "An operator has cancelled their stake decrease request."] OperatorBondLessCancelled { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "An operator has gone offline."] OperatorWentOffline { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "An operator has gone online."] OperatorWentOnline { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "A deposit has been made."] Deposited { who : :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "An withdraw has been scheduled."] Scheduledwithdraw { who : :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "An withdraw has been executed."] Executedwithdraw { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "An withdraw has been cancelled."] Cancelledwithdraw { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 14)] # [doc = "A delegation has been made."] Delegated { who : :: subxt_core :: utils :: AccountId32 , operator : :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 15)] # [doc = "A delegator unstake request has been scheduled."] ScheduledDelegatorBondLess { who : :: subxt_core :: utils :: AccountId32 , operator : :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 16)] # [doc = "A delegator unstake request has been executed."] ExecutedDelegatorBondLess { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 17)] # [doc = "A delegator unstake request has been cancelled."] CancelledDelegatorBondLess { who : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 18)] # [doc = "Event emitted when an incentive APY and cap are set for a reward pool"] IncentiveAPYAndCapSet { pool_id : :: core :: primitive :: u128 , apy : runtime_types :: sp_arithmetic :: per_things :: Percent , cap : :: core :: primitive :: u128 , } , # [codec (index = 19)] # [doc = "Event emitted when a blueprint is whitelisted for rewards"] BlueprintWhitelisted { blueprint_id : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "Asset has been updated to reward pool"] AssetUpdatedInPool { who : :: subxt_core :: utils :: AccountId32 , pool_id : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , action : runtime_types :: pallet_multi_asset_delegation :: types :: rewards :: AssetAction , } , } + # [codec (index = 0)] # [doc = "An operator has joined."] OperatorJoined { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "An operator has scheduled to leave."] OperatorLeavingScheduled { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "An operator has cancelled their leave request."] OperatorLeaveCancelled { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "An operator has executed their leave request."] OperatorLeaveExecuted { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An operator has increased their stake."] OperatorBondMore { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , additional_bond : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "An operator has scheduled to decrease their stake."] OperatorBondLessScheduled { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , unstake_amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "An operator has executed their stake decrease."] OperatorBondLessExecuted { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 7)] # [doc = "An operator has cancelled their stake decrease request."] OperatorBondLessCancelled { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "An operator has gone offline."] OperatorWentOffline { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "An operator has gone online."] OperatorWentOnline { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 10)] # [doc = "A deposit has been made."] Deposited { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "An withdraw has been scheduled."] Scheduledwithdraw { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "An withdraw has been executed."] Executedwithdraw { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "An withdraw has been cancelled."] Cancelledwithdraw { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 14)] # [doc = "A delegation has been made."] Delegated { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , operator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 15)] # [doc = "A delegator unstake request has been scheduled."] ScheduledDelegatorBondLess { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , operator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , } , # [codec (index = 16)] # [doc = "A delegator unstake request has been executed."] ExecutedDelegatorBondLess { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 17)] # [doc = "A delegator unstake request has been cancelled."] CancelledDelegatorBondLess { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 18)] # [doc = "Event emitted when an incentive APY and cap are set for a reward vault"] IncentiveAPYAndCapSet { vault_id : :: core :: primitive :: u128 , apy : runtime_types :: sp_arithmetic :: per_things :: Percent , cap : :: core :: primitive :: u128 , } , # [codec (index = 19)] # [doc = "Event emitted when a blueprint is whitelisted for rewards"] BlueprintWhitelisted { blueprint_id : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "Asset has been updated to reward vault"] AssetUpdatedInVault { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , vault_id : :: core :: primitive :: u128 , asset_id : :: core :: primitive :: u128 , action : runtime_types :: pallet_multi_asset_delegation :: types :: rewards :: AssetAction , } , } } pub mod types { use super::runtime_types; pub mod delegator { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct BondInfoDelegator<_0, _1, _2> { pub operator: _0, pub amount: _1, pub asset_id: _2, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct BondLessRequest<_0, _1, _2> { pub operator: _0, pub asset_id: _1, @@ -49175,32 +58140,40 @@ pub mod api { pub requested_round: ::core::primitive::u32, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct DelegatorMetadata < _0 , _1 , _2 > { pub deposits : :: subxt_core :: utils :: KeyedVec < _1 , _1 > , pub withdraw_requests : :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: WithdrawRequest < _1 , _1 > > , pub delegations : :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: BondInfoDelegator < _0 , _1 , _1 > > , pub delegator_unstake_requests : :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: BondLessRequest < _0 , _1 , _1 > > , pub status : runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: DelegatorStatus , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _2 > } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct DelegatorMetadata < _0 , _1 , _2 > { pub deposits : :: subxt :: ext :: subxt_core :: utils :: KeyedVec < _1 , _1 > , pub withdraw_requests : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: WithdrawRequest < _1 , _1 > > , pub delegations : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: BondInfoDelegator < _0 , _1 , _1 > > , pub delegator_unstake_requests : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: BondLessRequest < _0 , _1 , _1 > > , pub status : runtime_types :: pallet_multi_asset_delegation :: types :: delegator :: DelegatorStatus , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _2 > } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum DelegatorStatus { #[codec(index = 0)] Active, @@ -49208,18 +58181,22 @@ pub mod api { LeavingScheduled(::core::primitive::u32), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct WithdrawRequest<_0, _1> { pub asset_id: _0, pub amount: _1, @@ -49229,81 +58206,101 @@ pub mod api { pub mod operator { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct DelegatorBond<_0, _1, _2> { pub delegator: _0, pub amount: _1, pub asset_id: _2, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct OperatorBondLessRequest<_0> { pub amount: _0, pub request_time: ::core::primitive::u32, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct OperatorMetadata < _0 , _1 , _2 > { pub stake : _1 , pub delegation_count : :: core :: primitive :: u32 , pub request : :: core :: option :: Option < runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorBondLessRequest < _1 > > , pub delegations : :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: operator :: DelegatorBond < _0 , _1 , _1 > > , pub status : runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorStatus , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _2 > } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct OperatorMetadata < _0 , _1 , _2 > { pub stake : _1 , pub delegation_count : :: core :: primitive :: u32 , pub request : :: core :: option :: Option < runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorBondLessRequest < _1 > > , pub delegations : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: operator :: DelegatorBond < _0 , _1 , _1 > > , pub status : runtime_types :: pallet_multi_asset_delegation :: types :: operator :: OperatorStatus , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _2 > } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct OperatorSnapshot < _0 , _1 , _2 > { pub stake : _1 , pub delegations : :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: operator :: DelegatorBond < _0 , _1 , _1 > > , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _2 > } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct OperatorSnapshot < _0 , _1 , _2 > { pub stake : _1 , pub delegations : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_multi_asset_delegation :: types :: operator :: DelegatorBond < _0 , _1 , _1 > > , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _2 > } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum OperatorStatus { #[codec(index = 0)] Active, @@ -49316,18 +58313,22 @@ pub mod api { pub mod rewards { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum AssetAction { #[codec(index = 0)] Add, @@ -49335,33 +58336,41 @@ pub mod api { Remove, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct RewardConfig < _0 , _1 > { pub configs : :: subxt_core :: utils :: KeyedVec < _0 , runtime_types :: pallet_multi_asset_delegation :: types :: rewards :: RewardConfigForAssetPool < _0 > > , pub whitelisted_blueprint_ids : :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _1 > } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct RewardConfig < _0 , _1 > { pub configs : :: subxt :: ext :: subxt_core :: utils :: KeyedVec < _0 , runtime_types :: pallet_multi_asset_delegation :: types :: rewards :: RewardConfigForAssetVault < _0 > > , pub whitelisted_blueprint_ids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _1 > } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct RewardConfigForAssetPool<_0> { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct RewardConfigForAssetVault<_0> { pub apy: runtime_types::sp_arithmetic::per_things::Percent, pub cap: _0, } @@ -49373,49 +58382,134 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::as_multi_threshold_1`]."] + #[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_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - call: ::subxt_core::alloc::boxed::Box< + 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::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::as_multi`]."] + #[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_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + 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::u64>, >, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "See [`Pallet::approve_as_multi`]."] + #[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_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + 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::u64>, >, @@ -49423,29 +58517,54 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] - #[doc = "See [`Pallet::cancel_as_multi`]."] + #[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_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + other_signatories: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, call_hash: [::core::primitive::u8; 32usize], }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -49492,43 +58611,47 @@ pub mod api { AlreadyStored, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] NewMultisig { - approving: ::subxt_core::utils::AccountId32, - multisig: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + approving: ::subxt::ext::subxt_core::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, - multisig: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + approving: ::subxt::ext::subxt_core::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, - multisig: ::subxt_core::utils::AccountId32, + multisig: ::subxt::ext::subxt_core::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -49536,27 +58659,27 @@ pub mod api { #[codec(index = 3)] #[doc = "A multisig operation has been cancelled."] MultisigCancelled { - cancelling: ::subxt_core::utils::AccountId32, + cancelling: ::subxt::ext::subxt_core::utils::AccountId32, timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, - multisig: ::subxt_core::utils::AccountId32, + multisig: ::subxt::ext::subxt_core::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Multisig<_0, _1, _2> { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, @@ -49564,18 +58687,18 @@ pub mod api { pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Timepoint<_0> { pub height: _0, pub index: ::core::primitive::u32, @@ -49586,119 +58709,257 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::join`]."] + #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] + #[doc = "pools account and immediately increases the pools bond."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "* An account can only be a member of a single pool."] + #[doc = "* An account cannot join the same pool multiple times."] + #[doc = "* This call will *not* dust the member account, so the member must have at least"] + #[doc = " `existential deposit + amount` in their account."] + #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] join { #[codec(compact)] amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "See [`Pallet::bond_extra`]."] + #[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 = "See [`Pallet::claim_payout`]."] + #[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 = "See [`Pallet::unbond`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + member_account: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, #[codec(compact)] unbonding_points: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + #[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 = "See [`Pallet::withdraw_unbonded`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + member_account: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "See [`Pallet::create`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + root: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - nominator: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + nominator: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - bouncer: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + bouncer: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 7)] - #[doc = "See [`Pallet::create_with_pool_id`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + root: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - nominator: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + nominator: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - bouncer: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + bouncer: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, pool_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "See [`Pallet::nominate`]."] + #[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_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + validators: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, }, #[codec(index = 9)] - #[doc = "See [`Pallet::set_state`]."] + #[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 = "See [`Pallet::set_metadata`]."] + #[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_core::alloc::vec::Vec<::core::primitive::u8>, + metadata: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, #[codec(index = 11)] - #[doc = "See [`Pallet::set_configs`]."] + #[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, @@ -49720,27 +58981,56 @@ pub mod api { >, }, #[codec(index = 12)] - #[doc = "See [`Pallet::update_roles`]."] + #[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_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, }, #[codec(index = 13)] - #[doc = "See [`Pallet::chill`]."] + #[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 = "See [`Pallet::bond_extra_other`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + member: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, extra: runtime_types::pallet_nomination_pools::BondExtra< @@ -49748,30 +59038,50 @@ pub mod api { >, }, #[codec(index = 15)] - #[doc = "See [`Pallet::set_claim_permission`]."] + #[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 = "See [`Pallet::claim_payout_other`]."] - claim_payout_other { other: ::subxt_core::utils::AccountId32 }, + #[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 = "See [`Pallet::set_commission`]."] + #[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_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>, }, #[codec(index = 18)] - #[doc = "See [`Pallet::set_commission_max`]."] + #[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 = "See [`Pallet::set_commission_change_rate`]."] + #[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< @@ -49779,35 +59089,93 @@ pub mod api { >, }, #[codec(index = 20)] - #[doc = "See [`Pallet::claim_commission`]."] + #[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 = "See [`Pallet::adjust_pool_deposit`]."] + #[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 = "See [`Pallet::set_commission_claim_permission`]."] + #[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_core::utils::AccountId32, + ::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, + ::core::primitive::u32, + >, + }, + #[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, + ::core::primitive::u32, + >, + }, + #[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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum DefensiveError { #[codec(index = 0)] NotEnoughSpaceInUnbondPool, @@ -49819,20 +59187,28 @@ pub mod api { SubPoolsNotFound, #[codec(index = 4)] BondedStashKilledPrematurely, + #[codec(index = 5)] + DelegationUnsupported, + #[codec(index = 6)] + SlashNotApplied, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -49939,32 +59315,48 @@ pub mod api { #[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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Events of this pallet."] pub enum Event { #[codec(index = 0)] #[doc = "A pool has been created."] Created { - depositor: ::subxt_core::utils::AccountId32, + 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_core::utils::AccountId32, + member: ::subxt::ext::subxt_core::utils::AccountId32, pool_id: ::core::primitive::u32, bonded: ::core::primitive::u128, joined: ::core::primitive::bool, @@ -49972,7 +59364,7 @@ pub mod api { #[codec(index = 2)] #[doc = "A payout has been made to a member."] PaidOut { - member: ::subxt_core::utils::AccountId32, + member: ::subxt::ext::subxt_core::utils::AccountId32, pool_id: ::core::primitive::u32, payout: ::core::primitive::u128, }, @@ -49989,7 +59381,7 @@ pub mod api { #[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_core::utils::AccountId32, + member: ::subxt::ext::subxt_core::utils::AccountId32, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -50003,7 +59395,7 @@ pub mod api { #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] #[doc = "will be 1."] Withdrawn { - member: ::subxt_core::utils::AccountId32, + member: ::subxt::ext::subxt_core::utils::AccountId32, pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, points: ::core::primitive::u128, @@ -50023,15 +59415,17 @@ pub mod api { #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id: ::core::primitive::u32, - member: ::subxt_core::utils::AccountId32, + member: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 8)] #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] #[doc = "can never change."] RolesUpdated { - root: ::core::option::Option<::subxt_core::utils::AccountId32>, - bouncer: ::core::option::Option<::subxt_core::utils::AccountId32>, - nominator: ::core::option::Option<::subxt_core::utils::AccountId32>, + 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`."] @@ -50052,7 +59446,7 @@ pub mod api { pool_id: ::core::primitive::u32, current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>, }, #[codec(index = 12)] @@ -50075,7 +59469,7 @@ pub mod api { pool_id: ::core::primitive::u32, permission: ::core::option::Option< runtime_types::pallet_nomination_pools::CommissionClaimPermission< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, }, @@ -50099,36 +59493,40 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum FreezeReason { #[codec(index = 0)] PoolMinBalance, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum BondExtra<_0> { #[codec(index = 0)] FreeBalance(_0), @@ -50136,40 +59534,40 @@ pub mod api { Rewards, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BondedPoolInner { pub commission: runtime_types::pallet_nomination_pools::Commission, pub member_counter: ::core::primitive::u32, pub points: ::core::primitive::u128, pub roles: runtime_types::pallet_nomination_pools::PoolRoles< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, pub state: runtime_types::pallet_nomination_pools::PoolState, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ClaimPermission { #[codec(index = 0)] Permissioned, @@ -50181,22 +59579,22 @@ pub mod api { PermissionlessAll, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Commission { pub current: ::core::option::Option<( runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, )>, pub max: ::core::option::Option, pub change_rate: ::core::option::Option< @@ -50207,40 +59605,40 @@ pub mod api { pub throttle_from: ::core::option::Option<::core::primitive::u64>, pub claim_permission: ::core::option::Option< runtime_types::pallet_nomination_pools::CommissionClaimPermission< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CommissionChangeRate<_0> { pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, pub min_delay: _0, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum CommissionClaimPermission<_0> { #[codec(index = 0)] Permissionless, @@ -50248,18 +59646,18 @@ pub mod api { Account(_0), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -50269,18 +59667,18 @@ pub mod api { Remove, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PoolMember { pub pool_id: ::core::primitive::u32, pub points: ::core::primitive::u128, @@ -50293,18 +59691,18 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PoolRoles<_0> { pub depositor: _0, pub root: ::core::option::Option<_0>, @@ -50312,18 +59710,18 @@ pub mod api { pub bouncer: ::core::option::Option<_0>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PoolState { #[codec(index = 0)] Open, @@ -50333,18 +59731,18 @@ pub mod api { Destroying, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RewardPool { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, @@ -50354,18 +59752,18 @@ pub mod api { pub total_commission_claimed: ::core::primitive::u128, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubPools { pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, pub with_era: @@ -50375,18 +59773,18 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UnbondPool { pub points: ::core::primitive::u128, pub balance: ::core::primitive::u128, @@ -50397,18 +59795,22 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Events type."] pub enum Event { #[codec(index = 0)] @@ -50417,7 +59819,7 @@ pub mod api { #[doc = "\\[kind, timeslot\\]."] Offence { kind: [::core::primitive::u8; 16usize], - timeslot: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + timeslot: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, } } @@ -50427,51 +59829,78 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::note_preimage`]."] - note_preimage { bytes: ::subxt_core::alloc::vec::Vec<::core::primitive::u8> }, + #[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 = "See [`Pallet::unnote_preimage`]."] - unnote_preimage { hash: ::subxt_core::utils::H256 }, + #[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 = "See [`Pallet::request_preimage`]."] - request_preimage { hash: ::subxt_core::utils::H256 }, + #[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 = "See [`Pallet::unrequest_preimage`]."] - unrequest_preimage { hash: ::subxt_core::utils::H256 }, + #[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 = "See [`Pallet::ensure_updated`]."] + #[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_core::alloc::vec::Vec<::subxt_core::utils::H256>, + hashes: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -50498,63 +59927,74 @@ pub mod api { #[codec(index = 7)] #[doc = "Too few hashes were requested to be upgraded (i.e. zero)."] TooFew, + #[codec(index = 8)] + #[doc = "No ticket with a cost was returned by [`Config::Consideration`] to store the preimage."] + NoCost, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A preimage has been noted."] - Noted { hash: ::subxt_core::utils::H256 }, + Noted { hash: ::subxt::ext::subxt_core::utils::H256 }, #[codec(index = 1)] #[doc = "A preimage has been requested."] - Requested { hash: ::subxt_core::utils::H256 }, + Requested { hash: ::subxt::ext::subxt_core::utils::H256 }, #[codec(index = 2)] #[doc = "A preimage has ben cleared."] - Cleared { hash: ::subxt_core::utils::H256 }, + Cleared { hash: ::subxt::ext::subxt_core::utils::H256 }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum HoldReason { #[codec(index = 0)] Preimage, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OldRequestStatus<_0, _1> { #[codec(index = 0)] Unrequested { deposit: (_0, _1), len: ::core::primitive::u32 }, @@ -50566,18 +60006,18 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RequestStatus<_0, _1> { #[codec(index = 0)] Unrequested { ticket: (_0, _1), len: ::core::primitive::u32 }, @@ -50594,69 +60034,132 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::proxy`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + real: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, force_proxy_type: ::core::option::Option< runtime_types::tangle_testnet_runtime::ProxyType, >, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::add_proxy`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, proxy_type: runtime_types::tangle_testnet_runtime::ProxyType, delay: ::core::primitive::u64, }, #[codec(index = 2)] - #[doc = "See [`Pallet::remove_proxy`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, proxy_type: runtime_types::tangle_testnet_runtime::ProxyType, delay: ::core::primitive::u64, }, #[codec(index = 3)] - #[doc = "See [`Pallet::remove_proxies`]."] + #[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 = "See [`Pallet::create_pure`]."] + #[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::tangle_testnet_runtime::ProxyType, delay: ::core::primitive::u64, index: ::core::primitive::u16, }, #[codec(index = 5)] - #[doc = "See [`Pallet::kill_pure`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + spawner: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, proxy_type: runtime_types::tangle_testnet_runtime::ProxyType, @@ -50667,64 +60170,110 @@ pub mod api { ext_index: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "See [`Pallet::announce`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + real: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - call_hash: ::subxt_core::utils::H256, + call_hash: ::subxt::ext::subxt_core::utils::H256, }, #[codec(index = 7)] - #[doc = "See [`Pallet::remove_announcement`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + real: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - call_hash: ::subxt_core::utils::H256, + call_hash: ::subxt::ext::subxt_core::utils::H256, }, #[codec(index = 8)] - #[doc = "See [`Pallet::reject_announcement`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - call_hash: ::subxt_core::utils::H256, + call_hash: ::subxt::ext::subxt_core::utils::H256, }, #[codec(index = 9)] - #[doc = "See [`Pallet::proxy_announced`]."] + #[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_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + delegate: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - real: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + real: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, force_proxy_type: ::core::option::Option< runtime_types::tangle_testnet_runtime::ProxyType, >, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -50753,18 +60302,22 @@ pub mod api { NoSelfProxy, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -50777,67 +60330,67 @@ pub mod api { #[doc = "A pure account has been created by new proxy with given"] #[doc = "disambiguation index and proxy type."] PureCreated { - pure: ::subxt_core::utils::AccountId32, - who: ::subxt_core::utils::AccountId32, + pure: ::subxt::ext::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, proxy_type: runtime_types::tangle_testnet_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_core::utils::AccountId32, - proxy: ::subxt_core::utils::AccountId32, - call_hash: ::subxt_core::utils::H256, + 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_core::utils::AccountId32, - delegatee: ::subxt_core::utils::AccountId32, + delegator: ::subxt::ext::subxt_core::utils::AccountId32, + delegatee: ::subxt::ext::subxt_core::utils::AccountId32, proxy_type: runtime_types::tangle_testnet_runtime::ProxyType, delay: ::core::primitive::u64, }, #[codec(index = 4)] #[doc = "A proxy was removed."] ProxyRemoved { - delegator: ::subxt_core::utils::AccountId32, - delegatee: ::subxt_core::utils::AccountId32, + delegator: ::subxt::ext::subxt_core::utils::AccountId32, + delegatee: ::subxt::ext::subxt_core::utils::AccountId32, proxy_type: runtime_types::tangle_testnet_runtime::ProxyType, delay: ::core::primitive::u64, }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Announcement<_0, _1, _2> { pub real: _0, pub call_hash: _1, pub height: _2, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ProxyDefinition<_0, _1, _2> { pub delegate: _0, pub proxy_type: _1, @@ -50849,22 +60402,26 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::schedule`]."] + #[doc = "Anonymously schedule a task."] schedule { when: ::core::primitive::u64, maybe_periodic: ::core::option::Option<( @@ -50872,15 +60429,15 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::cancel`]."] + #[doc = "Cancel an anonymously scheduled task."] cancel { when: ::core::primitive::u64, index: ::core::primitive::u32 }, #[codec(index = 2)] - #[doc = "See [`Pallet::schedule_named`]."] + #[doc = "Schedule a named task."] schedule_named { id: [::core::primitive::u8; 32usize], when: ::core::primitive::u64, @@ -50889,15 +60446,15 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::cancel_named`]."] + #[doc = "Cancel a named scheduled task."] cancel_named { id: [::core::primitive::u8; 32usize] }, #[codec(index = 4)] - #[doc = "See [`Pallet::schedule_after`]."] + #[doc = "Anonymously schedule a task after a delay."] schedule_after { after: ::core::primitive::u64, maybe_periodic: ::core::option::Option<( @@ -50905,12 +60462,12 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 5)] - #[doc = "See [`Pallet::schedule_named_after`]."] + #[doc = "Schedule a named task after a delay."] schedule_named_after { id: [::core::primitive::u8; 32usize], after: ::core::primitive::u64, @@ -50919,24 +60476,70 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, + #[codec(index = 6)] + #[doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] + #[doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] + #[doc = "succeeds."] + #[doc = ""] + #[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] + #[doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] + #[doc = "normally while the task is retrying."] + #[doc = ""] + #[doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] + #[doc = "clones of the original task. Their retry configuration will be derived from the"] + #[doc = "original task's configuration, but will have a lower value for `remaining` than the"] + #[doc = "original `total_retries`."] + set_retry { + task: (::core::primitive::u64, ::core::primitive::u32), + retries: ::core::primitive::u8, + period: ::core::primitive::u64, + }, + #[codec(index = 7)] + #[doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] + #[doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] + #[doc = "it succeeds."] + #[doc = ""] + #[doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] + #[doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] + #[doc = "normally while the task is retrying."] + #[doc = ""] + #[doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] + #[doc = "clones of the original task. Their retry configuration will be derived from the"] + #[doc = "original task's configuration, but will have a lower value for `remaining` than the"] + #[doc = "original `total_retries`."] + set_retry_named { + id: [::core::primitive::u8; 32usize], + retries: ::core::primitive::u8, + period: ::core::primitive::u64, + }, + #[codec(index = 8)] + #[doc = "Removes the retry configuration of a task."] + cancel_retry { task: (::core::primitive::u64, ::core::primitive::u32) }, + #[codec(index = 9)] + #[doc = "Cancel the retry configuration of a named task."] + cancel_retry_named { id: [::core::primitive::u8; 32usize] }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -50956,18 +60559,22 @@ pub mod api { Named, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Events type."] pub enum Event { #[codec(index = 0)] @@ -50985,18 +60592,39 @@ pub mod api { ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 3)] + #[doc = "Set a retry configuration for some task."] + RetrySet { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + period: ::core::primitive::u64, + retries: ::core::primitive::u8, + }, + #[codec(index = 4)] + #[doc = "Cancel a retry configuration for some task."] + RetryCancelled { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + #[codec(index = 5)] #[doc = "The call for the provided hash was not found so the task has been aborted."] CallUnavailable { task: (::core::primitive::u64, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, }, - #[codec(index = 4)] + #[codec(index = 6)] #[doc = "The given task was unable to be renewed since the agenda is full at that block."] PeriodicFailed { task: (::core::primitive::u64, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, }, - #[codec(index = 5)] + #[codec(index = 7)] + #[doc = "The given task was unable to be retried since the agenda is full at that block or there"] + #[doc = "was not enough weight to reschedule it."] + RetryFailed { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + #[codec(index = 8)] #[doc = "The given task can never be executed since it is overweight."] PermanentlyOverweight { task: (::core::primitive::u64, ::core::primitive::u32), @@ -51005,18 +60633,36 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct RetryConfig<_0> { + pub total_retries: ::core::primitive::u8, + pub remaining: ::core::primitive::u8, + pub period: _0, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Scheduled<_0, _1, _2, _3, _4> { pub maybe_id: ::core::option::Option<_0>, pub priority: ::core::primitive::u8, @@ -51032,133 +60678,200 @@ pub mod api { pub mod module { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See `Pallet::create_blueprint`."] + #[doc = "Create a new service blueprint."] + #[doc = ""] + #[doc = "A Service Blueprint is a template for a service that can be instantiated later on by a"] + #[doc = "user."] + #[doc = ""] + #[doc = "# Parameters"] + #[doc = "- `origin`: The account that is creating the service blueprint."] + #[doc = "- `blueprint`: The blueprint of the service."] create_blueprint { blueprint: runtime_types::tangle_primitives::services::ServiceBlueprint, }, #[codec(index = 1)] - #[doc = "See `Pallet::pre_register`."] + #[doc = "Pre-register the caller as an operator for a specific blueprint."] + #[doc = ""] + #[doc = "The caller can pre-register for a blueprint, which will emit a `PreRegistration` event."] + #[doc = "This event can be listened to by the operator node to execute the custom blueprint's"] + #[doc = "registration function."] + #[doc = ""] + #[doc = "# Parameters"] + #[doc = "- `origin`: The account that is pre-registering for the service blueprint."] + #[doc = "- `blueprint_id`: The ID of the service blueprint."] pre_register { #[codec(compact)] blueprint_id: ::core::primitive::u64, }, #[codec(index = 2)] - #[doc = "See `Pallet::register`."] + #[doc = "Register the caller as an operator for a specific blueprint."] + #[doc = ""] + #[doc = "The caller may require an approval first before they can accept to provide the service"] + #[doc = "for the users."] register { #[codec(compact)] blueprint_id: ::core::primitive::u64, preferences: runtime_types::tangle_primitives::services::OperatorPreferences, - registration_args: ::subxt_core::alloc::vec::Vec< + registration_args: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, }, #[codec(index = 3)] - #[doc = "See `Pallet::unregister`."] + #[doc = "Unregister the caller from being an operator for the service blueprint"] + #[doc = "so that, no more services will assigned to the caller for this specific blueprint."] + #[doc = "Note that, the caller needs to keep providing service for other active service"] + #[doc = "that uses this blueprint, until the end of service time, otherwise they may get reported"] + #[doc = "and slashed."] unregister { #[codec(compact)] blueprint_id: ::core::primitive::u64, }, #[codec(index = 4)] - #[doc = "See `Pallet::update_approval_preference`."] - update_approval_preference { + #[doc = "Update the price targets for the caller for a specific service blueprint."] + #[doc = ""] + #[doc = "See [`Self::register`] for more information."] + update_price_targets { #[codec(compact)] blueprint_id: ::core::primitive::u64, - approval_preference: - runtime_types::tangle_primitives::services::ApprovalPreference, + price_targets: runtime_types::tangle_primitives::services::PriceTargets, }, #[codec(index = 5)] - #[doc = "See `Pallet::request`."] + #[doc = "Request a new service to be initiated using the provided blueprint with a list of"] + #[doc = "operators that will run your service. Optionally, you can specifiy who is permitted"] + #[doc = "caller of this service, by default only the caller is allowed to call the service."] request { #[codec(compact)] blueprint_id: ::core::primitive::u64, - permitted_callers: - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - service_providers: - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - #[codec(compact)] - ttl: ::core::primitive::u64, - request_args: ::subxt_core::alloc::vec::Vec< + permitted_callers: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, + operators: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, + request_args: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, + assets: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u128>, + #[codec(compact)] + ttl: ::core::primitive::u64, }, #[codec(index = 6)] - #[doc = "See `Pallet::approve`."] + #[doc = "Approve a service request, so that the service can be initiated."] + #[doc = ""] + #[doc = "The `restaking_percent` is the percentage of the restaked tokens that will be exposed to"] + #[doc = "the service."] approve { #[codec(compact)] request_id: ::core::primitive::u64, + #[codec(compact)] + restaking_percent: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 7)] - #[doc = "See `Pallet::reject`."] + #[doc = "Reject a service request."] + #[doc = "The service will not be initiated, and the requester will need to update the service"] + #[doc = "request."] reject { #[codec(compact)] request_id: ::core::primitive::u64, }, #[codec(index = 8)] - #[doc = "See `Pallet::terminate`."] + #[doc = "Terminates the service by the owner of the service."] terminate { #[codec(compact)] service_id: ::core::primitive::u64, }, #[codec(index = 9)] - #[doc = "See `Pallet::call`."] + #[doc = "Call a Job in the service."] + #[doc = "The caller needs to be the owner of the service, or a permitted caller."] call { #[codec(compact)] service_id: ::core::primitive::u64, #[codec(compact)] job: ::core::primitive::u8, - args: ::subxt_core::alloc::vec::Vec< + args: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, }, #[codec(index = 10)] - #[doc = "See `Pallet::submit_result`."] + #[doc = "Submit the job result by using the service ID and call ID."] submit_result { #[codec(compact)] service_id: ::core::primitive::u64, #[codec(compact)] call_id: ::core::primitive::u64, - result: ::subxt_core::alloc::vec::Vec< + result: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, }, + #[codec(index = 11)] + #[doc = "Slash an operator (offender) for a service id with a given percent of their exposed stake for that service."] + #[doc = ""] + #[doc = "The caller needs to be an authorized Slash Origin for this service."] + #[doc = "Note that this does not apply the slash directly, but instead schedules a deferred call to apply the slash"] + #[doc = "by another entity."] + slash { + offender: ::subxt::ext::subxt_core::utils::AccountId32, + #[codec(compact)] + service_id: ::core::primitive::u64, + #[codec(compact)] + percent: runtime_types::sp_arithmetic::per_things::Percent, + }, + #[codec(index = 12)] + #[doc = "Dispute an [UnappliedSlash] for a given era and index."] + #[doc = ""] + #[doc = "The caller needs to be an authorized Dispute Origin for the service in the [UnappliedSlash]."] + dispute { + #[codec(compact)] + era: ::core::primitive::u32, + #[codec(compact)] + index: ::core::primitive::u32, + }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -51221,162 +60934,237 @@ pub mod api { #[doc = "An error occurred while encoding the EVM ABI."] EVMAbiEncode, #[codec(index = 19)] + #[doc = "An error occurred while decoding the EVM ABI."] + EVMAbiDecode, + #[codec(index = 20)] #[doc = "Operator profile not found."] OperatorProfileNotFound, - #[codec(index = 20)] + #[codec(index = 21)] #[doc = "Maximum number of services per Provider reached."] MaxServicesPerProviderExceeded, - #[codec(index = 21)] + #[codec(index = 22)] #[doc = "The operator is not active, ensure operator status is ACTIVE in multi-asset-delegation"] OperatorNotActive, + #[codec(index = 23)] + #[doc = "No assets provided for the service, at least one asset is required."] + NoAssetsProvided, + #[codec(index = 24)] + #[doc = "The maximum number of assets per service has been exceeded."] + MaxAssetsPerServiceExceeded, + #[codec(index = 25)] + #[doc = "Offender is not a registered operator."] + OffenderNotOperator, + #[codec(index = 26)] + #[doc = "Offender is not an active operator."] + OffenderNotActiveOperator, + #[codec(index = 27)] + #[doc = "The Service Blueprint did not return a slashing origin for this service."] + NoSlashingOrigin, + #[codec(index = 28)] + #[doc = "The Service Blueprint did not return a dispute origin for this service."] + NoDisputeOrigin, + #[codec(index = 29)] + #[doc = "The Unapplied Slash are not found."] + UnappliedSlashNotFound, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new service blueprint has been created."] BlueprintCreated { - owner: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, blueprint_id: ::core::primitive::u64, }, #[codec(index = 1)] #[doc = "An operator has pre-registered for a service blueprint."] PreRegistration { - operator: ::subxt_core::utils::AccountId32, + operator: ::subxt::ext::subxt_core::utils::AccountId32, blueprint_id: ::core::primitive::u64, }, #[codec(index = 2)] #[doc = "An new operator has been registered."] Registered { - provider: ::subxt_core::utils::AccountId32, + provider: ::subxt::ext::subxt_core::utils::AccountId32, blueprint_id: ::core::primitive::u64, preferences: runtime_types::tangle_primitives::services::OperatorPreferences, - registration_args: ::subxt_core::alloc::vec::Vec< + registration_args: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, }, #[codec(index = 3)] #[doc = "An operator has been unregistered."] Unregistered { - operator: ::subxt_core::utils::AccountId32, + operator: ::subxt::ext::subxt_core::utils::AccountId32, blueprint_id: ::core::primitive::u64, }, #[codec(index = 4)] - #[doc = "The approval preference for an operator has been updated."] - ApprovalPreferenceUpdated { - operator: ::subxt_core::utils::AccountId32, + #[doc = "The price targets for an operator has been updated."] + PriceTargetsUpdated { + operator: ::subxt::ext::subxt_core::utils::AccountId32, blueprint_id: ::core::primitive::u64, - approval_preference: - runtime_types::tangle_primitives::services::ApprovalPreference, + price_targets: runtime_types::tangle_primitives::services::PriceTargets, }, #[codec(index = 5)] #[doc = "A new service has been requested."] ServiceRequested { - owner: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, request_id: ::core::primitive::u64, blueprint_id: ::core::primitive::u64, - pending_approvals: - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - approved: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + pending_approvals: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, + approved: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, + assets: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u128>, }, #[codec(index = 6)] #[doc = "A service request has been approved."] ServiceRequestApproved { - operator: ::subxt_core::utils::AccountId32, + operator: ::subxt::ext::subxt_core::utils::AccountId32, request_id: ::core::primitive::u64, blueprint_id: ::core::primitive::u64, - pending_approvals: - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - approved: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + pending_approvals: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, + approved: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, }, #[codec(index = 7)] #[doc = "A service request has been rejected."] ServiceRequestRejected { - operator: ::subxt_core::utils::AccountId32, + operator: ::subxt::ext::subxt_core::utils::AccountId32, request_id: ::core::primitive::u64, blueprint_id: ::core::primitive::u64, }, #[codec(index = 8)] - #[doc = "A service request has been updated or modified."] - ServiceRequestUpdated { - owner: ::subxt_core::utils::AccountId32, - request_id: ::core::primitive::u64, - blueprint_id: ::core::primitive::u64, - pending_approvals: - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - approved: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, - }, - #[codec(index = 9)] #[doc = "A service has been initiated."] ServiceInitiated { - owner: ::subxt_core::utils::AccountId32, - request_id: ::core::option::Option<::core::primitive::u64>, + owner: ::subxt::ext::subxt_core::utils::AccountId32, + request_id: ::core::primitive::u64, service_id: ::core::primitive::u64, blueprint_id: ::core::primitive::u64, + assets: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u128>, }, - #[codec(index = 10)] + #[codec(index = 9)] #[doc = "A service has been terminated."] ServiceTerminated { - owner: ::subxt_core::utils::AccountId32, + owner: ::subxt::ext::subxt_core::utils::AccountId32, service_id: ::core::primitive::u64, blueprint_id: ::core::primitive::u64, }, - #[codec(index = 11)] + #[codec(index = 10)] #[doc = "A job has been called."] JobCalled { - caller: ::subxt_core::utils::AccountId32, + caller: ::subxt::ext::subxt_core::utils::AccountId32, service_id: ::core::primitive::u64, call_id: ::core::primitive::u64, job: ::core::primitive::u8, - args: ::subxt_core::alloc::vec::Vec< + args: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, }, - #[codec(index = 12)] + #[codec(index = 11)] #[doc = "A job result has been submitted."] JobResultSubmitted { - operator: ::subxt_core::utils::AccountId32, + operator: ::subxt::ext::subxt_core::utils::AccountId32, service_id: ::core::primitive::u64, call_id: ::core::primitive::u64, job: ::core::primitive::u8, - result: ::subxt_core::alloc::vec::Vec< + result: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_primitives::services::field::Field< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, >, }, - #[codec(index = 13)] + #[codec(index = 12)] #[doc = "An EVM log has been emitted during an execution."] EvmLog { - address: ::subxt_core::utils::H160, - topics: ::subxt_core::alloc::vec::Vec<::subxt_core::utils::H256>, - data: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + address: ::subxt::ext::subxt_core::utils::H160, + topics: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::H256, + >, + data: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, - #[codec(index = 14)] + #[codec(index = 13)] #[doc = "EVM execution reverted with a reason."] EvmReverted { - from: ::subxt_core::utils::H160, - to: ::subxt_core::utils::H160, - data: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - reason: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + from: ::subxt::ext::subxt_core::utils::H160, + to: ::subxt::ext::subxt_core::utils::H160, + data: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + reason: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, + #[codec(index = 14)] + #[doc = "An Operator has an unapplied slash."] + UnappliedSlash { + index: ::core::primitive::u32, + operator: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, + service_id: ::core::primitive::u64, + blueprint_id: ::core::primitive::u64, + era: ::core::primitive::u32, + }, + #[codec(index = 15)] + #[doc = "An Unapplied Slash got discarded."] + SlashDiscarded { + index: ::core::primitive::u32, + operator: ::subxt::ext::subxt_core::utils::AccountId32, + amount: ::core::primitive::u128, + service_id: ::core::primitive::u64, + blueprint_id: ::core::primitive::u64, + era: ::core::primitive::u32, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct UnappliedSlash<_0, _1> { + pub service_id: ::core::primitive::u64, + pub operator: _0, + pub own: _1, + pub others: ::subxt::ext::subxt_core::alloc::vec::Vec<(_0, _1)>, + pub reporters: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, + pub payout: _1, } } } @@ -51385,43 +61173,70 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::set_keys`]."] + #[doc = "Sets the session key(s) of the function caller to `keys`."] + #[doc = "Allows an account to set its session key prior to becoming a validator."] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be signed."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] + #[doc = " fixed."] set_keys { keys: runtime_types::tangle_testnet_runtime::opaque::SessionKeys, - proof: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + proof: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "See [`Pallet::purge_keys`]."] + #[doc = "Removes any session key(s) of the function caller."] + #[doc = ""] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] + #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] + #[doc = "means being a controller account) or directly convertible into a validator ID (which"] + #[doc = "usually means being a stash account)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] + #[doc = " `T::Keys::key_ids()` which is fixed."] purge_keys, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Error for the session pallet."] pub enum Error { #[codec(index = 0)] @@ -51441,18 +61256,22 @@ pub mod api { NoAccount, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -51469,144 +61288,388 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::bond`]."] + #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] + #[doc = "be the account that controls it."] + #[doc = ""] + #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Moderate complexity."] + #[doc = "- O(1)."] + #[doc = "- Three extra DB entries."] + #[doc = ""] + #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] + #[doc = "unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed"] + #[doc = "as dust."] bond { #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::bond_extra`]."] + #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] + #[doc = "for staking."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] + #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] + #[doc = "any limitation on the amount that can be added."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- O(1)."] bond_extra { #[codec(compact)] max_additional: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "See [`Pallet::unbond`]."] + #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] + #[doc = "period ends. If this leaves an amount actively bonded less than"] + #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] + #[doc = "the funds out of management ready for transfer."] + #[doc = ""] + #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] + #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] + #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] + #[doc = ""] + #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] + #[doc = "they should call `chill` first in order to free up their bonded funds."] + #[doc = ""] + #[doc = "Emits `Unbonded`."] + #[doc = ""] + #[doc = "See also [`Call::withdraw_unbonded`]."] unbond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::withdraw_unbonded`]."] + #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] + #[doc = ""] + #[doc = "This essentially frees up that balance to be used by the stash account to do whatever"] + #[doc = "it wants."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] + #[doc = ""] + #[doc = "Emits `Withdrawn`."] + #[doc = ""] + #[doc = "See also [`Call::unbond`]."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans` indicates the number of metadata slashing spans to clear when"] + #[doc = "this call results in a complete removal of all the data related to the stash account."] + #[doc = "In this case, the `num_slashing_spans` must be larger or equal to the number of"] + #[doc = "slashing spans associated with the stash account in the [`SlashingSpans`] storage type,"] + #[doc = "otherwise the call will fail. The call weight is directly proportional to"] + #[doc = "`num_slashing_spans`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(S) where S is the number of slashing spans to remove"] + #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] withdraw_unbonded { num_slashing_spans: ::core::primitive::u32 }, #[codec(index = 4)] - #[doc = "See [`Pallet::validate`]."] + #[doc = "Declare the desire to validate for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] validate { prefs: runtime_types::pallet_staking::ValidatorPrefs }, #[codec(index = 5)] - #[doc = "See [`Pallet::nominate`]."] + #[doc = "Declare the desire to nominate `targets` for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] + #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] + #[doc = "- Both the reads and writes follow a similar pattern."] nominate { - targets: ::subxt_core::alloc::vec::Vec< - ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + targets: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, >, }, #[codec(index = 6)] - #[doc = "See [`Pallet::chill`]."] + #[doc = "Declare no desire to either validate or nominate."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains one read."] + #[doc = "- Writes are limited to the `origin` account key."] chill, #[codec(index = 7)] - #[doc = "See [`Pallet::set_payee`]."] + #[doc = "(Re-)set the payment target for a controller."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "---------"] set_payee { payee: runtime_types::pallet_staking::RewardDestination< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, }, #[codec(index = 8)] - #[doc = "See [`Pallet::set_controller`]."] + #[doc = "(Re-)sets the controller of a stash to the stash itself. This function previously"] + #[doc = "accepted a `controller` argument to set the controller to an account other than the"] + #[doc = "stash itself. This functionality has now been removed, now only setting the controller"] + #[doc = "to the stash, if it is not already."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(1)"] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] set_controller, #[codec(index = 9)] - #[doc = "See [`Pallet::set_validator_count`]."] + #[doc = "Sets the ideal number of validators."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "O(1)"] set_validator_count { #[codec(compact)] new: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "See [`Pallet::increase_validator_count`]."] + #[doc = "Increments the ideal number of validators up to maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "Same as [`Self::set_validator_count`]."] increase_validator_count { #[codec(compact)] additional: ::core::primitive::u32, }, #[codec(index = 11)] - #[doc = "See [`Pallet::scale_validator_count`]."] + #[doc = "Scale up the ideal number of validators by a factor up to maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "Same as [`Self::set_validator_count`]."] scale_validator_count { factor: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 12)] - #[doc = "See [`Pallet::force_no_eras`]."] + #[doc = "Force there to be no new eras indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "Thus the election process may be ongoing when this is called. In this case the"] + #[doc = "election will continue until the next era is triggered."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] force_no_eras, #[codec(index = 13)] - #[doc = "See [`Pallet::force_new_era`]."] + #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] + #[doc = "reset to normal (non-forced) behaviour."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] force_new_era, #[codec(index = 14)] - #[doc = "See [`Pallet::set_invulnerables`]."] + #[doc = "Set the validators who cannot be slashed (if any)."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] set_invulnerables { - invulnerables: - ::subxt_core::alloc::vec::Vec<::subxt_core::utils::AccountId32>, + invulnerables: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::AccountId32, + >, }, #[codec(index = 15)] - #[doc = "See [`Pallet::force_unstake`]."] + #[doc = "Force a current staker to become completely unstaked, immediately."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] + #[doc = "details."] force_unstake { - stash: ::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "See [`Pallet::force_new_era_always`]."] + #[doc = "Force there to be a new era at the end of sessions indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] force_new_era_always, #[codec(index = 17)] - #[doc = "See [`Pallet::cancel_deferred_slash`]."] + #[doc = "Cancel enactment of a deferred slash."] + #[doc = ""] + #[doc = "Can be called by the `T::AdminOrigin`."] + #[doc = ""] + #[doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era: ::core::primitive::u32, - slash_indices: ::subxt_core::alloc::vec::Vec<::core::primitive::u32>, + slash_indices: + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>, }, #[codec(index = 18)] - #[doc = "See [`Pallet::payout_stakers`]."] + #[doc = "Pay out next page of the stakers behind a validator for the given era."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator."] + #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] + #[doc = ""] + #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] + #[doc = "it is not one of the stakers."] + #[doc = ""] + #[doc = "The reward payout could be paged in case there are too many nominators backing the"] + #[doc = "`validator_stash`. This call will payout unpaid pages in an ascending order. To claim a"] + #[doc = "specific page, use `payout_stakers_by_page`.`"] + #[doc = ""] + #[doc = "If all pages are claimed, it returns an error `InvalidPage`."] payout_stakers { - validator_stash: ::subxt_core::utils::AccountId32, + validator_stash: ::subxt::ext::subxt_core::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] - #[doc = "See [`Pallet::rebond`]."] + #[doc = "Rebond a portion of the stash scheduled to be unlocked."] + #[doc = ""] + #[doc = "The dispatch origin must be signed by the controller."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- Time complexity: O(L), where L is unlocking chunks"] + #[doc = "- Bounded by `MaxUnlockingChunks`."] rebond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 20)] - #[doc = "See [`Pallet::reap_stash`]."] + #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] + #[doc = "be considered `dust` in the staking system. The requirements are:"] + #[doc = ""] + #[doc = "1. the `total_balance` of the stash is below existential deposit."] + #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] + #[doc = "3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero."] + #[doc = ""] + #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] + #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] + #[doc = ""] + #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] + #[doc = ""] + #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = ""] + #[doc = "## Parameters"] + #[doc = ""] + #[doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] + #[doc = "details."] reap_stash { - stash: ::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] - #[doc = "See [`Pallet::kick`]."] + #[doc = "Remove the given nominations from the calling validator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] + #[doc = " should no longer be nominating this validator."] + #[doc = ""] + #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] + #[doc = "block any further nominations."] kick { - who: ::subxt_core::alloc::vec::Vec< - ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, >, }, #[codec(index = 22)] - #[doc = "See [`Pallet::set_staking_configs`]."] + #[doc = "Update the various staking configurations ."] + #[doc = ""] + #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] + #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] + #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] + #[doc = " should be filled in order for the `chill_other` transaction to work."] + #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] + #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] + #[doc = ""] + #[doc = "RuntimeOrigin must be Root to call this function."] + #[doc = ""] + #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] + #[doc = "to kick people under the new limits, `chill_other` should be called."] set_staking_configs { min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -51631,52 +61694,143 @@ pub mod api { min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, + max_staked_rewards: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, }, #[codec(index = 23)] - #[doc = "See [`Pallet::chill_other`]."] - chill_other { stash: ::subxt_core::utils::AccountId32 }, + #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] + #[doc = ""] + #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] + #[doc = "enforced, and this function behaves just like `chill`."] + #[doc = ""] + #[doc = "If the caller is different than the controller being targeted, the following conditions"] + #[doc = "must be met:"] + #[doc = ""] + #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] + #[doc = ""] + #[doc = "Or:"] + #[doc = ""] + #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] + #[doc = " nominators or validators we must reach before users can start chilling one-another."] + #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] + #[doc = " how close we are to the threshold."] + #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] + #[doc = " if this is a person that should be chilled because they have not met the threshold"] + #[doc = " bond required."] + #[doc = ""] + #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] + #[doc = "who do not satisfy these requirements."] + chill_other { stash: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 24)] - #[doc = "See [`Pallet::force_apply_min_commission`]."] + #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] + #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] + #[doc = "can call this."] force_apply_min_commission { - validator_stash: ::subxt_core::utils::AccountId32, + validator_stash: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 25)] - #[doc = "See [`Pallet::set_min_commission`]."] + #[doc = "Sets the minimum amount of commission that each validators must maintain."] + #[doc = ""] + #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] + #[doc = "by the `T::AdminOrigin`. Root can always call this."] set_min_commission { new: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 26)] - #[doc = "See [`Pallet::payout_stakers_by_page`]."] + #[doc = "Pay out a page of the stakers behind a validator for the given era and page."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator."] + #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] + #[doc = "- `page` is the page index of nominators to pay out with value between 0 and"] + #[doc = " `num_nominators / T::MaxExposurePageSize`."] + #[doc = ""] + #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] + #[doc = "it is not one of the stakers."] + #[doc = ""] + #[doc = "If a validator has more than [`Config::MaxExposurePageSize`] nominators backing"] + #[doc = "them, then the list of nominators is paged, with each page being capped at"] + #[doc = "[`Config::MaxExposurePageSize`.] If a validator has more than one page of nominators,"] + #[doc = "the call needs to be made for each page separately in order for all the nominators"] + #[doc = "backing a validator to receive the reward. The nominators are not sorted across pages"] + #[doc = "and so it should not be assumed the highest staker would be on the topmost page and vice"] + #[doc = "versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost."] payout_stakers_by_page { - validator_stash: ::subxt_core::utils::AccountId32, + validator_stash: ::subxt::ext::subxt_core::utils::AccountId32, era: ::core::primitive::u32, page: ::core::primitive::u32, }, #[codec(index = 27)] - #[doc = "See [`Pallet::update_payee`]."] - update_payee { controller: ::subxt_core::utils::AccountId32 }, + #[doc = "Migrates an account's `RewardDestination::Controller` to"] + #[doc = "`RewardDestination::Account(controller)`."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "This will waive the transaction fee if the `payee` is successfully migrated."] + update_payee { controller: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 28)] - #[doc = "See [`Pallet::deprecate_controller_batch`]."] + #[doc = "Updates a batch of controller accounts to their corresponding stash account if they are"] + #[doc = "not the same. Ignores any controller accounts that do not exist, and does not operate if"] + #[doc = "the stash and controller are already the same."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin must be `T::AdminOrigin`."] deprecate_controller_batch { controllers: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, }, + #[codec(index = 29)] + #[doc = "Restores the state of a ledger which is in an inconsistent state."] + #[doc = ""] + #[doc = "The requirements to restore a ledger are the following:"] + #[doc = "* The stash is bonded; or"] + #[doc = "* The stash is not bonded but it has a staking lock left behind; or"] + #[doc = "* If the stash has an associated ledger and its state is inconsistent; or"] + #[doc = "* If the ledger is not corrupted *but* its staking lock is out of sync."] + #[doc = ""] + #[doc = "The `maybe_*` input parameters will overwrite the corresponding data and metadata of the"] + #[doc = "ledger associated with the stash. If the input parameters are not set, the ledger will"] + #[doc = "be reset values from on-chain state."] + restore_ledger { + stash: ::subxt::ext::subxt_core::utils::AccountId32, + maybe_controller: ::core::option::Option< + ::subxt::ext::subxt_core::utils::AccountId32, + >, + maybe_total: ::core::option::Option<::core::primitive::u128>, + maybe_unlocking: ::core::option::Option< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk< + ::core::primitive::u128, + >, + >, + >, + }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -51686,18 +61840,22 @@ pub mod api { Remove, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -51786,22 +61944,35 @@ pub mod api { #[doc = "Used when attempting to use deprecated controller account logic."] ControllerDeprecated, #[codec(index = 27)] - #[doc = "The user has active restake"] - RestakeActive, + #[doc = "Cannot reset a ledger."] + CannotRestoreLedger, + #[codec(index = 28)] + #[doc = "Provided reward destination is not allowed."] + RewardDestinationRestricted, + #[codec(index = 29)] + #[doc = "Not enough funds available to withdraw."] + NotEnoughFunds, + #[codec(index = 30)] + #[doc = "Operation not allowed for virtual stakers."] + VirtualStakerNotAllowed, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -51815,23 +61986,23 @@ pub mod api { #[codec(index = 1)] #[doc = "The nominator has been rewarded by this amount to this destination."] Rewarded { - stash: ::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, dest: runtime_types::pallet_staking::RewardDestination< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, amount: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { - staker: ::subxt_core::utils::AccountId32, + staker: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] #[doc = "era as been reported."] SlashReported { - validator: ::subxt_core::utils::AccountId32, + validator: ::subxt::ext::subxt_core::utils::AccountId32, fraction: runtime_types::sp_arithmetic::per_things::Perbill, slash_era: ::core::primitive::u32, }, @@ -51848,44 +62019,44 @@ pub mod api { #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] #[doc = "it will not be emitted for staking rewards when they are added to stake."] Bonded { - stash: ::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 7)] #[doc = "An account has unbonded this amount."] Unbonded { - stash: ::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 8)] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue."] Withdrawn { - stash: ::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 9)] #[doc = "A nominator has been kicked from a validator."] Kicked { - nominator: ::subxt_core::utils::AccountId32, - stash: ::subxt_core::utils::AccountId32, + nominator: ::subxt::ext::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 10)] #[doc = "The election failed. No new era is planned."] StakingElectionFailed, #[codec(index = 11)] #[doc = "An account has stopped participating as either a validator or nominator."] - Chilled { stash: ::subxt_core::utils::AccountId32 }, + Chilled { stash: ::subxt::ext::subxt_core::utils::AccountId32 }, #[codec(index = 12)] #[doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index: ::core::primitive::u32, - validator_stash: ::subxt_core::utils::AccountId32, + validator_stash: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 13)] #[doc = "A validator has set their preferences."] ValidatorPrefsSet { - stash: ::subxt_core::utils::AccountId32, + stash: ::subxt::ext::subxt_core::utils::AccountId32, prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 14)] @@ -51897,95 +62068,107 @@ pub mod api { #[codec(index = 16)] #[doc = "A new force era mode was set."] ForceEra { mode: runtime_types::pallet_staking::Forcing }, + #[codec(index = 17)] + #[doc = "Report of a controller batch deprecation."] + ControllerBatchDeprecated { failures: ::core::primitive::u32 }, } } } pub mod slashing { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SlashingSpans { pub span_index: ::core::primitive::u32, pub last_start: ::core::primitive::u32, pub last_nonzero_slash: ::core::primitive::u32, - pub prior: ::subxt_core::alloc::vec::Vec<::core::primitive::u32>, + pub prior: ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u32>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SpanRecord<_0> { pub slashed: _0, pub paid_out: _0, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ActiveEraInfo { pub index: ::core::primitive::u32, pub start: ::core::option::Option<::core::primitive::u64>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EraRewardPoints<_0> { pub total: ::core::primitive::u32, - pub individual: ::subxt_core::utils::KeyedVec<_0, ::core::primitive::u32>, + pub individual: + ::subxt::ext::subxt_core::utils::KeyedVec<_0, ::core::primitive::u32>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Forcing { #[codec(index = 0)] NotForcing, @@ -51997,38 +62180,38 @@ pub mod api { ForceAlways, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Nominations { pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RewardDestination<_0> { #[codec(index = 0)] Staked, @@ -52042,20 +62225,20 @@ pub mod api { None, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StakingLedger { - pub stash: ::subxt_core::utils::AccountId32, + pub stash: ::subxt::ext::subxt_core::utils::AccountId32, #[codec(compact)] pub total: ::core::primitive::u128, #[codec(compact)] @@ -52069,38 +62252,38 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UnappliedSlash<_0, _1> { pub validator: _0, pub own: _1, - pub others: ::subxt_core::alloc::vec::Vec<(_0, _1)>, - pub reporters: ::subxt_core::alloc::vec::Vec<_0>, + pub others: ::subxt::ext::subxt_core::alloc::vec::Vec<(_0, _1)>, + pub reporters: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, pub payout: _1, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UnlockChunk<_0> { #[codec(compact)] pub value: _0, @@ -52108,18 +62291,18 @@ pub mod api { pub era: ::core::primitive::u32, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidatorPrefs { #[codec(compact)] pub commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -52131,71 +62314,89 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::sudo`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] sudo { - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Sudo user to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] sudo_unchecked_weight { - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "See [`Pallet::set_key`]."] + #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] + #[doc = "key."] set_key { - new: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + new: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::sudo_as`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] + #[doc = "a given account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] sudo_as { - who: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 4)] - #[doc = "See [`Pallet::remove_key`]."] + #[doc = "Permanently removes the sudo key."] + #[doc = ""] + #[doc = "**This cannot be un-done.**"] remove_key, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Error for the Sudo pallet."] pub enum Error { #[codec(index = 0)] @@ -52203,18 +62404,22 @@ pub mod api { RequireSudo, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -52226,8 +62431,8 @@ pub mod api { #[codec(index = 1)] #[doc = "The sudo key has been updated."] KeyChanged { - old: ::core::option::Option<::subxt_core::utils::AccountId32>, - new: ::subxt_core::utils::AccountId32, + old: ::core::option::Option<::subxt::ext::subxt_core::utils::AccountId32>, + new: ::subxt::ext::subxt_core::utils::AccountId32, }, #[codec(index = 2)] #[doc = "The key was permanently removed."] @@ -52246,34 +62451,42 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::join`]."] join { # [codec (compact)] amount : :: core :: primitive :: u128 , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::bond_extra`]."] bond_extra { pool_id : :: core :: primitive :: u32 , extra : runtime_types :: pallet_tangle_lst :: types :: BondExtra < :: core :: primitive :: u128 > , } , # [codec (index = 3)] # [doc = "See [`Pallet::unbond`]."] unbond { member_account : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , # [codec (compact)] unbonding_points : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "See [`Pallet::pool_withdraw_unbonded`]."] pool_withdraw_unbonded { pool_id : :: core :: primitive :: u32 , num_slashing_spans : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { member_account : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , num_slashing_spans : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::create`]."] create { # [codec (compact)] amount : :: core :: primitive :: u128 , root : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , } , # [codec (index = 7)] # [doc = "See [`Pallet::create_with_pool_id`]."] create_with_pool_id { # [codec (compact)] amount : :: core :: primitive :: u128 , root : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , nominator : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::nominate`]."] nominate { pool_id : :: core :: primitive :: u32 , validators : :: subxt_core :: alloc :: vec :: Vec < :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 9)] # [doc = "See [`Pallet::set_state`]."] set_state { pool_id : :: core :: primitive :: u32 , state : runtime_types :: pallet_tangle_lst :: types :: pools :: PoolState , } , # [codec (index = 10)] # [doc = "See [`Pallet::set_metadata`]."] set_metadata { pool_id : :: core :: primitive :: u32 , metadata : :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 11)] # [doc = "See [`Pallet::set_configs`]."] set_configs { min_join_bond : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: core :: primitive :: u128 > , min_create_bond : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: core :: primitive :: u128 > , max_pools : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: core :: primitive :: u32 > , global_max_commission : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < runtime_types :: sp_arithmetic :: per_things :: Perbill > , } , # [codec (index = 12)] # [doc = "See [`Pallet::update_roles`]."] update_roles { pool_id : :: core :: primitive :: u32 , new_root : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: subxt_core :: utils :: AccountId32 > , new_nominator : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: subxt_core :: utils :: AccountId32 > , new_bouncer : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 13)] # [doc = "See [`Pallet::chill`]."] chill { pool_id : :: core :: primitive :: u32 , } , # [codec (index = 14)] # [doc = "See [`Pallet::bond_extra_other`]."] bond_extra_other { member : :: subxt_core :: utils :: MultiAddress < :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , extra : runtime_types :: pallet_tangle_lst :: types :: BondExtra < :: core :: primitive :: u128 > , } , # [codec (index = 17)] # [doc = "See [`Pallet::set_commission`]."] set_commission { pool_id : :: core :: primitive :: u32 , new_commission : :: core :: option :: Option < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: subxt_core :: utils :: AccountId32 ,) > , } , # [codec (index = 18)] # [doc = "See [`Pallet::set_commission_max`]."] set_commission_max { pool_id : :: core :: primitive :: u32 , max_commission : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_commission_change_rate`]."] set_commission_change_rate { pool_id : :: core :: primitive :: u32 , change_rate : runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionChangeRate < :: core :: primitive :: u64 > , } , # [codec (index = 20)] # [doc = "See [`Pallet::claim_commission`]."] claim_commission { pool_id : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::adjust_pool_deposit`]."] adjust_pool_deposit { pool_id : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "See [`Pallet::set_commission_claim_permission`]."] set_commission_claim_permission { pool_id : :: core :: primitive :: u32 , permission : :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionClaimPermission < :: subxt_core :: utils :: AccountId32 > > , } , } + # [codec (index = 0)] # [doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] # [doc = "pools account and immediately increases the pools bond."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "* 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 { pool_id : :: core :: primitive :: u32 , extra : runtime_types :: pallet_tangle_lst :: types :: BondExtra < :: core :: primitive :: u128 > , } , # [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 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , # [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."] withdraw_unbonded { member_account : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , 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 , :: core :: primitive :: u32 > , nominator : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [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 , :: core :: primitive :: u32 > , nominator : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , bouncer : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , name : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 8)] # [doc = "Nominate on behalf of the pool."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] # [doc = "root role."] # [doc = ""] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] nominate { pool_id : :: core :: primitive :: u32 , validators : :: 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_tangle_lst :: types :: 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 = "Root."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `min_join_bond` - Set [`MinJoinBond`]."] # [doc = "* `min_create_bond` - Set [`MinCreateBond`]."] # [doc = "* `max_pools` - Set [`MaxPools`]."] # [doc = "* `max_members` - Set [`MaxPoolMembers`]."] # [doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] # [doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] set_configs { min_join_bond : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: core :: primitive :: u128 > , min_create_bond : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: core :: primitive :: u128 > , max_pools : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: core :: primitive :: u32 > , global_max_commission : runtime_types :: pallet_tangle_lst :: types :: 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_tangle_lst :: types :: ConfigOp < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , new_nominator : runtime_types :: pallet_tangle_lst :: types :: ConfigOp < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , new_bouncer : runtime_types :: pallet_tangle_lst :: types :: 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 must be signed by the pool nominator or the pool"] # [doc = "root role, same as [`Pallet::nominate`]."] # [doc = ""] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] chill { pool_id : :: core :: primitive :: u32 , } , # [codec (index = 14)] # [doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] # [doc = "pools."] # [doc = ""] # [doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] # [doc = "other`."] # [doc = ""] # [doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] # [doc = "`other` members assuming set_claim_permission for the given member is"] # [doc = "`PermissionlessAll` or `PermissionlessCompound`."] bond_extra_other { member : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > , pool_id : :: core :: primitive :: u32 , extra : runtime_types :: pallet_tangle_lst :: types :: BondExtra < :: core :: primitive :: u128 > , } , # [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_tangle_lst :: types :: commission :: CommissionChangeRate < :: core :: primitive :: u64 > , } , # [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 conifigure commission claim permissions."] set_commission_claim_permission { pool_id : :: core :: primitive :: u32 , permission : :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionClaimPermission < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > , } , } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum DefensiveError { #[codec(index = 0)] NotEnoughSpaceInUnbondPool, @@ -52287,18 +62500,22 @@ pub mod api { BondedStashKilledPrematurely, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -52409,34 +62626,42 @@ pub mod api { NoBalanceToUnbond, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Events of this pallet."] pub enum Event { - # [codec (index = 0)] # [doc = "A pool has been created."] Created { depositor : :: subxt_core :: utils :: AccountId32 , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "A member has became bonded in a pool."] Bonded { member : :: 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_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_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_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_tangle_lst :: types :: pools :: PoolState , } , # [codec (index = 7)] # [doc = "A member has been removed from a pool."] # [doc = ""] # [doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id : :: core :: primitive :: u32 , member : :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] # [doc = "can never change."] RolesUpdated { root : :: core :: option :: Option < :: subxt_core :: utils :: AccountId32 > , bouncer : :: core :: option :: Option < :: subxt_core :: utils :: AccountId32 > , nominator : :: core :: option :: Option < :: 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_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_tangle_lst :: types :: commission :: CommissionChangeRate < :: core :: primitive :: u64 > , } , # [codec (index = 14)] # [doc = "Pool commission claim permission has been updated."] PoolCommissionClaimPermissionUpdated { pool_id : :: core :: primitive :: u32 , permission : :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionClaimPermission < :: 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 , } , } + # [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_tangle_lst :: types :: pools :: PoolState , } , # [codec (index = 7)] # [doc = "A member has been removed from a pool."] # [doc = ""] # [doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id : :: core :: primitive :: u32 , member : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 8)] # [doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] # [doc = "can never change."] RolesUpdated { root : :: core :: option :: Option < :: subxt :: 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_tangle_lst :: types :: commission :: CommissionChangeRate < :: core :: primitive :: u64 > , } , # [codec (index = 14)] # [doc = "Pool commission claim permission has been updated."] PoolCommissionClaimPermissionUpdated { pool_id : :: core :: primitive :: u32 , permission : :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: 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( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum FreezeReason { #[codec(index = 0)] PoolMinBalance, @@ -52447,73 +62672,113 @@ pub mod api { pub mod bonded_pool { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct BondedPoolInner { pub commission: runtime_types::pallet_tangle_lst::types::commission::Commission, pub roles: runtime_types::pallet_tangle_lst::types::pools::PoolRoles< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, pub state: runtime_types::pallet_tangle_lst::types::pools::PoolState, + pub metadata: + runtime_types::pallet_tangle_lst::types::bonded_pool::PoolMetadata, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct PoolMetadata { + pub name: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, } } pub mod commission { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Commission { pub current : :: core :: option :: Option < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: 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_tangle_lst :: types :: commission :: CommissionChangeRate < :: core :: primitive :: u64 > > , pub throttle_from : :: core :: option :: Option < :: core :: primitive :: u64 > , pub claim_permission : :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionClaimPermission < :: subxt_core :: utils :: AccountId32 > > , } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_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_tangle_lst :: types :: commission :: CommissionChangeRate < :: core :: primitive :: u64 > > , pub throttle_from : :: core :: option :: Option < :: core :: primitive :: u64 > , pub claim_permission : :: core :: option :: Option < runtime_types :: pallet_tangle_lst :: types :: commission :: CommissionClaimPermission < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > , } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct CommissionChangeRate<_0> { pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, pub min_delay: _0, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum CommissionClaimPermission<_0> { #[codec(index = 0)] Permissionless, @@ -52524,18 +62789,22 @@ pub mod api { pub mod pools { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct PoolMember { pub pool_id: ::core::primitive::u32, pub unbonding_eras: @@ -52545,18 +62814,22 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct PoolRoles<_0> { pub depositor: _0, pub root: ::core::option::Option<_0>, @@ -52564,18 +62837,22 @@ pub mod api { pub bouncer: ::core::option::Option<_0>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum PoolState { #[codec(index = 0)] Open, @@ -52588,18 +62865,22 @@ pub mod api { pub mod sub_pools { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct RewardPool { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, @@ -52609,18 +62890,22 @@ pub mod api { pub total_commission_claimed: ::core::primitive::u128, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SubPools { pub no_era: runtime_types::pallet_tangle_lst::types::sub_pools::UnbondPool, pub with_era: @@ -52630,53 +62915,65 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct UnbondPool { pub points: ::core::primitive::u128, pub balance: ::core::primitive::u128, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum BondExtra<_0> { #[codec(index = 0)] FreeBalance(_0), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ClaimPermission { #[codec(index = 0)] Permissioned, @@ -52688,18 +62985,22 @@ pub mod api { PermissionlessAll, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -52715,22 +63016,44 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::set`]."] + #[doc = "Set the current time."] + #[doc = ""] + #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] + #[doc = "phase, if this call hasn't been invoked by that time."] + #[doc = ""] + #[doc = "The timestamp should be greater than the previous one by the amount specified by"] + #[doc = "[`Config::MinimumPeriod`]."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _None_."] + #[doc = ""] + #[doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] + #[doc = "that changing the complexity of this call could result exhausting the resources in a"] + #[doc = "block to execute any other calls."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] + #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] + #[doc = " `on_finalize`)"] + #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] set { #[codec(compact)] now: ::core::primitive::u64, @@ -52743,25 +63066,29 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] #[doc = "has been paid by `who`."] TransactionFeePaid { - who: ::subxt_core::utils::AccountId32, + who: ::subxt::ext::subxt_core::utils::AccountId32, actual_fee: ::core::primitive::u128, tip: ::core::primitive::u128, }, @@ -52770,18 +63097,22 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct FeeDetails<_0> { pub inclusion_fee: ::core::option::Option< runtime_types::pallet_transaction_payment::types::InclusionFee<_0>, @@ -52789,36 +63120,44 @@ pub mod api { pub tip: _0, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct InclusionFee<_0> { pub base_fee: _0, pub len_fee: _0, pub adjusted_weight_fee: _0, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct RuntimeDispatchInfo<_0, _1> { pub weight: _1, pub class: runtime_types::frame_support::dispatch::DispatchClass, @@ -52826,32 +63165,32 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V1Ancient, @@ -52864,225 +63203,316 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::propose_spend`]."] - propose_spend { - #[codec(compact)] - value: ::core::primitive::u128, - beneficiary: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, - ::core::primitive::u32, - >, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::reject_proposal`]."] - reject_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::approve_proposal`]."] - approve_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, #[codec(index = 3)] - #[doc = "See [`Pallet::spend_local`]."] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`."] + #[doc = ""] + #[doc = "### Details"] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::SpendApproved`] if successful."] spend_local { #[codec(compact)] amount: ::core::primitive::u128, - beneficiary: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 4)] - #[doc = "See [`Pallet::remove_approval`]."] + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::RejectOrigin`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `proposal_id`: The index of a proposal"] + #[doc = ""] + #[doc = "### Complexity"] + #[doc = "- O(A) where `A` is the number of approvals"] + #[doc = ""] + #[doc = "### Errors"] + #[doc = "- [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the"] + #[doc = " approval queue, i.e., the proposal has not been approved. This could also mean the"] + #[doc = " proposal does not exist altogether, thus there is no way it would have been approved"] + #[doc = " in the first place."] remove_approval { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "See [`Pallet::spend`]."] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least"] + #[doc = "`amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted"] + #[doc = "for assertion using the [`Config::BalanceConverter`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "Create an approved spend for transferring a specific `amount` of `asset_kind` to a"] + #[doc = "designated beneficiary. The spend must be claimed using the `payout` dispatchable within"] + #[doc = "the [`Config::PayoutPeriod`]."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `asset_kind`: An indicator of the specific asset class to be spent."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The beneficiary of the spend."] + #[doc = "- `valid_from`: The block number from which the spend can be claimed. It can refer to"] + #[doc = " the past if the resulting spend has not yet expired according to the"] + #[doc = " [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after"] + #[doc = " approval."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::AssetSpendApproved`] if successful."] spend { - asset_kind: ::subxt_core::alloc::boxed::Box<()>, + asset_kind: ::subxt::ext::subxt_core::alloc::boxed::Box<()>, #[codec(compact)] amount: ::core::primitive::u128, - beneficiary: - ::subxt_core::alloc::boxed::Box<::subxt_core::utils::AccountId32>, + beneficiary: ::subxt::ext::subxt_core::alloc::boxed::Box< + ::subxt::ext::subxt_core::utils::AccountId32, + >, valid_from: ::core::option::Option<::core::primitive::u64>, }, #[codec(index = 6)] - #[doc = "See [`Pallet::payout`]."] + #[doc = "Claim a spend."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be signed"] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "Spends must be claimed within some temporal bounds. A spend may be claimed within one"] + #[doc = "[`Config::PayoutPeriod`] from the `valid_from` block."] + #[doc = "In case of a payout failure, the spend status must be updated with the `check_status`"] + #[doc = "dispatchable before retrying with the current function."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::Paid`] if successful."] payout { index: ::core::primitive::u32 }, #[codec(index = 7)] - #[doc = "See [`Pallet::check_status`]."] + #[doc = "Check the status of the spend and remove it from the storage if processed."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be signed."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "The status check is a prerequisite for retrying a failed payout."] + #[doc = "If a spend has either succeeded or expired, it is removed from the storage by this"] + #[doc = "function. In such instances, transaction fees are refunded."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::PaymentFailed`] if the spend payout has failed."] + #[doc = "Emits [`Event::SpendProcessed`] if the spend payout has succeed."] check_status { index: ::core::primitive::u32 }, #[codec(index = 8)] - #[doc = "See [`Pallet::void_spend`]."] + #[doc = "Void previously approved spend."] + #[doc = ""] + #[doc = "## Dispatch Origin"] + #[doc = ""] + #[doc = "Must be [`Config::RejectOrigin`]."] + #[doc = ""] + #[doc = "## Details"] + #[doc = ""] + #[doc = "A spend void is only possible if the payout has not been attempted yet."] + #[doc = ""] + #[doc = "### Parameters"] + #[doc = "- `index`: The spend index."] + #[doc = ""] + #[doc = "## Events"] + #[doc = ""] + #[doc = "Emits [`Event::AssetSpendVoided`] if successful."] void_spend { index: ::core::primitive::u32 }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Error for the treasury pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Proposer's balance is too low."] - InsufficientProposersBalance, - #[codec(index = 1)] #[doc = "No proposal, bounty or spend at that index."] InvalidIndex, - #[codec(index = 2)] + #[codec(index = 1)] #[doc = "Too many approvals in the queue."] TooManyApprovals, - #[codec(index = 3)] + #[codec(index = 2)] #[doc = "The spend origin is valid but the amount it is allowed to spend is lower than the"] #[doc = "amount to be spent."] InsufficientPermission, - #[codec(index = 4)] + #[codec(index = 3)] #[doc = "Proposal has not been approved."] ProposalNotApproved, - #[codec(index = 5)] + #[codec(index = 4)] #[doc = "The balance of the asset kind is not convertible to the balance of the native asset."] FailedToConvertBalance, - #[codec(index = 6)] + #[codec(index = 5)] #[doc = "The spend has expired and cannot be claimed."] SpendExpired, - #[codec(index = 7)] + #[codec(index = 6)] #[doc = "The spend is not yet eligible for payout."] EarlyPayout, - #[codec(index = 8)] + #[codec(index = 7)] #[doc = "The payment has already been attempted."] AlreadyAttempted, - #[codec(index = 9)] + #[codec(index = 8)] #[doc = "There was some issue with the mechanism of payment."] PayoutError, - #[codec(index = 10)] + #[codec(index = 9)] #[doc = "The payout was not yet attempted/claimed."] NotAttempted, - #[codec(index = 11)] + #[codec(index = 10)] #[doc = "The payment has neither failed nor succeeded yet."] Inconclusive, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - #[doc = "New proposal."] - Proposed { proposal_index: ::core::primitive::u32 }, - #[codec(index = 1)] #[doc = "We have ended a spend period and will now allocate funds."] Spending { budget_remaining: ::core::primitive::u128 }, - #[codec(index = 2)] + #[codec(index = 1)] #[doc = "Some funds have been allocated."] Awarded { proposal_index: ::core::primitive::u32, award: ::core::primitive::u128, - account: ::subxt_core::utils::AccountId32, + account: ::subxt::ext::subxt_core::utils::AccountId32, }, - #[codec(index = 3)] - #[doc = "A proposal was rejected; funds were slashed."] - Rejected { - proposal_index: ::core::primitive::u32, - slashed: ::core::primitive::u128, - }, - #[codec(index = 4)] + #[codec(index = 2)] #[doc = "Some of our funds have been burnt."] Burnt { burnt_funds: ::core::primitive::u128 }, - #[codec(index = 5)] + #[codec(index = 3)] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] Rollover { rollover_balance: ::core::primitive::u128 }, - #[codec(index = 6)] + #[codec(index = 4)] #[doc = "Some funds have been deposited."] Deposit { value: ::core::primitive::u128 }, - #[codec(index = 7)] + #[codec(index = 5)] #[doc = "A new spend proposal has been approved."] SpendApproved { proposal_index: ::core::primitive::u32, amount: ::core::primitive::u128, - beneficiary: ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::AccountId32, }, - #[codec(index = 8)] + #[codec(index = 6)] #[doc = "The inactive funds of the pallet have been updated."] UpdatedInactive { reactivated: ::core::primitive::u128, deactivated: ::core::primitive::u128, }, - #[codec(index = 9)] + #[codec(index = 7)] #[doc = "A new asset spend proposal has been approved."] AssetSpendApproved { index: ::core::primitive::u32, asset_kind: (), amount: ::core::primitive::u128, - beneficiary: ::subxt_core::utils::AccountId32, + beneficiary: ::subxt::ext::subxt_core::utils::AccountId32, valid_from: ::core::primitive::u64, expire_at: ::core::primitive::u64, }, - #[codec(index = 10)] + #[codec(index = 8)] #[doc = "An approved spend was voided."] AssetSpendVoided { index: ::core::primitive::u32 }, - #[codec(index = 11)] + #[codec(index = 9)] #[doc = "A payment happened."] Paid { index: ::core::primitive::u32, payment_id: () }, - #[codec(index = 12)] + #[codec(index = 10)] #[doc = "A payment failed and can be retried."] PaymentFailed { index: ::core::primitive::u32, payment_id: () }, - #[codec(index = 13)] + #[codec(index = 11)] #[doc = "A spend was processed and removed from the storage. It might have been successfully"] #[doc = "paid or it may have expired."] SpendProcessed { index: ::core::primitive::u32 }, } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PaymentState<_0> { #[codec(index = 0)] Pending, @@ -53092,18 +63522,18 @@ pub mod api { Failed, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Proposal<_0, _1> { pub proposer: _0, pub value: _1, @@ -53111,18 +63541,18 @@ pub mod api { pub bond: _1, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SpendStatus<_0, _1, _2, _3, _4> { pub asset_kind: _0, pub amount: _1, @@ -53139,22 +63569,29 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::pause`]."] + #[doc = "Pause a call."] + #[doc = ""] + #[doc = "Can only be called by [`Config::PauseOrigin`]."] + #[doc = "Emits an [`Event::CallPaused`] event on success."] pause { full_name: ( runtime_types::bounded_collections::bounded_vec::BoundedVec< @@ -53166,7 +63603,10 @@ pub mod api { ), }, #[codec(index = 1)] - #[doc = "See [`Pallet::unpause`]."] + #[doc = "Un-pause a call."] + #[doc = ""] + #[doc = "Can only be called by [`Config::UnpauseOrigin`]."] + #[doc = "Emits an [`Event::CallUnpaused`] event on success."] unpause { ident: ( runtime_types::bounded_collections::bounded_vec::BoundedVec< @@ -53179,18 +63619,22 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -53206,18 +63650,22 @@ pub mod api { NotFound, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -53252,81 +63700,152 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::batch`]."] + #[doc = "Send a batch of dispatch calls."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] + #[doc = ""] + #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] + #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] + #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] + #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] + #[doc = "event is deposited."] batch { - calls: ::subxt_core::alloc::vec::Vec< + calls: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::as_derivative`]."] + #[doc = "Send a call through an indexed pseudonym of the sender."] + #[doc = ""] + #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] + #[doc = "use the same filter as the origin of this call."] + #[doc = ""] + #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] + #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] + #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] + #[doc = "in the Multisig pallet instead."] + #[doc = ""] + #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] as_derivative { index: ::core::primitive::u16, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 2)] - #[doc = "See [`Pallet::batch_all`]."] + #[doc = "Send a batch of dispatch calls and atomically execute them."] + #[doc = "The whole transaction will rollback and fail if any of the calls failed."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] batch_all { - calls: ::subxt_core::alloc::vec::Vec< + calls: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::dispatch_as`]."] + #[doc = "Dispatches a function call with a provided origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(1)."] dispatch_as { - as_origin: ::subxt_core::alloc::boxed::Box< + as_origin: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::OriginCaller, >, - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 4)] - #[doc = "See [`Pallet::force_batch`]."] + #[doc = "Send a batch of dispatch calls."] + #[doc = "Unlike `batch`, it allows errors and won't interrupt."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- O(C) where C is the number of calls to be batched."] force_batch { - calls: ::subxt_core::alloc::vec::Vec< + calls: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 5)] - #[doc = "See [`Pallet::with_weight`]."] + #[doc = "Dispatch a function call with a specified weight."] + #[doc = ""] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Root origin to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] with_weight { - call: ::subxt_core::alloc::boxed::Box< + call: ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_testnet_runtime::RuntimeCall, >, weight: runtime_types::sp_weights::weight_v2::Weight, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] @@ -53334,18 +63853,22 @@ pub mod api { TooManyCalls, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -53381,36 +63904,70 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::vest`]."] + #[doc = "Unlock any vested funds of the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] + #[doc = "locked under this pallet."] + #[doc = ""] + #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] vest, #[codec(index = 1)] - #[doc = "See [`Pallet::vest_other`]."] + #[doc = "Unlock any vested funds of a `target` account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] + #[doc = "locked under this pallet."] + #[doc = ""] + #[doc = "Emits either `VestingCompleted` or `VestingUpdated`."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] vest_other { - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 2)] - #[doc = "See [`Pallet::vested_transfer`]."] + #[doc = "Create a vested transfer."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account receiving the vested funds."] + #[doc = "- `schedule`: The vesting schedule attached to the transfer."] + #[doc = ""] + #[doc = "Emits `VestingCreated`."] + #[doc = ""] + #[doc = "NOTE: This will unlock all schedules through the current block."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] vested_transfer { - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -53419,14 +63976,27 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::force_vested_transfer`]."] + #[doc = "Force a vested transfer."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `source`: The account whose funds should be transferred."] + #[doc = "- `target`: The account that should be transferred the vested funds."] + #[doc = "- `schedule`: The vesting schedule attached to the transfer."] + #[doc = ""] + #[doc = "Emits `VestingCreated`."] + #[doc = ""] + #[doc = "NOTE: This will unlock all schedules through the current block."] + #[doc = ""] + #[doc = "## Complexity"] + #[doc = "- `O(1)`."] force_vested_transfer { - source: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + source: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< @@ -53435,34 +64005,63 @@ pub mod api { >, }, #[codec(index = 4)] - #[doc = "See [`Pallet::merge_schedules`]."] + #[doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] + #[doc = "the highest possible start and end blocks. If both schedules have already started the"] + #[doc = "current block will be used as the schedule start; with the caveat that if one schedule"] + #[doc = "is finished by the current block, the other will be treated as the new merged schedule,"] + #[doc = "unmodified."] + #[doc = ""] + #[doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] + #[doc = "NOTE: This will unlock all schedules through the current block prior to merging."] + #[doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] + #[doc = "and both will be removed."] + #[doc = ""] + #[doc = "Merged schedule attributes:"] + #[doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] + #[doc = " current_block)`."] + #[doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] + #[doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `schedule1_index`: index of the first schedule to merge."] + #[doc = "- `schedule2_index`: index of the second schedule to merge."] merge_schedules { schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] + #[doc = "Force remove a vesting schedule"] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `target`: An account that has a vesting schedule"] + #[doc = "- `schedule_index`: The vesting schedule index that should be removed"] force_remove_vesting_schedule { - target: ::subxt_core::utils::MultiAddress< - ::subxt_core::utils::AccountId32, + target: ::subxt::ext::subxt_core::utils::MultiAddress< + ::subxt::ext::subxt_core::utils::AccountId32, ::core::primitive::u32, >, schedule_index: ::core::primitive::u32, }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "Error for the vesting pallet."] pub enum Error { #[codec(index = 0)] @@ -53483,47 +64082,55 @@ pub mod api { InvalidScheduleParams, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] VestingUpdated { - account: ::subxt_core::utils::AccountId32, + account: ::subxt::ext::subxt_core::utils::AccountId32, unvested: ::core::primitive::u128, }, #[codec(index = 1)] #[doc = "An \\[account\\] has become fully vested."] - VestingCompleted { account: ::subxt_core::utils::AccountId32 }, + VestingCompleted { account: ::subxt::ext::subxt_core::utils::AccountId32 }, } } pub mod vesting_info { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct VestingInfo<_0, _1> { pub locked: _0, pub per_block: _0, @@ -53531,18 +64138,18 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Releases { #[codec(index = 0)] V0, @@ -53553,40 +64160,40 @@ pub mod api { pub mod primitive_types { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct U256(pub [::core::primitive::u64; 4usize]); } pub mod rpc_primitives_txpool { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TxPoolResponse { - pub ready: ::subxt_core::alloc::vec::Vec< + pub ready: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::ethereum::transaction::TransactionV2, >, - pub future: ::subxt_core::alloc::vec::Vec< + pub future: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::ethereum::transaction::TransactionV2, >, } @@ -53596,97 +64203,117 @@ pub mod api { pub mod fixed_point { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct PerU16(pub ::core::primitive::u16); #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Perbill(pub ::core::primitive::u32); #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Percent(pub ::core::primitive::u8); #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Permill(pub ::core::primitive::u32); } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ArithmeticError { #[codec(index = 0)] Underflow, @@ -53701,35 +64328,43 @@ pub mod api { pub mod app { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 32usize]); } pub mod digests { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum NextConfigDescriptor { #[codec(index = 1)] V1 { @@ -53738,18 +64373,22 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum PreDigest { #[codec(index = 1)] Primary(runtime_types::sp_consensus_babe::digests::PrimaryPreDigest), @@ -53761,53 +64400,65 @@ pub mod api { SecondaryVRF(runtime_types::sp_consensus_babe::digests::SecondaryVRFPreDigest), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct PrimaryPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SecondaryPlainPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SecondaryVRFPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, @@ -53815,18 +64466,18 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AllowedSlots { #[codec(index = 0)] PrimarySlots, @@ -53836,23 +64487,23 @@ pub mod api { PrimaryAndSecondaryVRFSlots, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BabeConfiguration { pub slot_duration: ::core::primitive::u64, pub epoch_length: ::core::primitive::u64, pub c: (::core::primitive::u64, ::core::primitive::u64), - pub authorities: ::subxt_core::alloc::vec::Vec<( + pub authorities: ::subxt::ext::subxt_core::alloc::vec::Vec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, @@ -53860,40 +64511,40 @@ pub mod api { pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BabeEpochConfiguration { pub c: (::core::primitive::u64, ::core::primitive::u64), pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Epoch { pub epoch_index: ::core::primitive::u64, pub start_slot: runtime_types::sp_consensus_slots::Slot, pub duration: ::core::primitive::u64, - pub authorities: ::subxt_core::alloc::vec::Vec<( + pub authorities: ::subxt::ext::subxt_core::alloc::vec::Vec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, @@ -53901,20 +64552,20 @@ pub mod api { pub config: runtime_types::sp_consensus_babe::BabeEpochConfiguration, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof( - pub ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, ); } pub mod sp_consensus_grandpa { @@ -53922,47 +64573,55 @@ pub mod api { pub mod app { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Equivocation<_0, _1> { #[codec(index = 0)] Prevote( @@ -53982,54 +64641,38 @@ pub mod api { ), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { pub set_id: ::core::primitive::u64, pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct OpaqueKeyOwnershipProof( - pub ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - ); } pub mod sp_consensus_slots { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { pub offender: _1, pub slot: runtime_types::sp_consensus_slots::Slot, @@ -54037,19 +64680,19 @@ pub mod api { pub second_header: _0, } #[derive( - :: subxt_core :: ext :: codec :: CompactAs, - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Slot(pub ::core::primitive::u64); } pub mod sp_core { @@ -54057,238 +64700,159 @@ pub mod api { pub mod crypto { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); - } - pub mod ecdsa { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Public(pub [::core::primitive::u8; 33usize]); - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Signature(pub [::core::primitive::u8; 65usize]); - } - pub mod ed25519 { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Signature(pub [::core::primitive::u8; 64usize]); + pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod sr25519 { use super::runtime_types; pub mod vrf { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct VrfSignature { pub pre_output: [::core::primitive::u8; 32usize], pub proof: [::core::primitive::u8; 64usize], } } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Public(pub [::core::primitive::u8; 32usize]); - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct OpaqueMetadata(pub ::subxt_core::alloc::vec::Vec<::core::primitive::u8>); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct OpaqueMetadata( + pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Void {} } pub mod sp_inherents { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckInherentsResult { pub okay: ::core::primitive::bool, pub fatal_error: ::core::primitive::bool, pub errors: runtime_types::sp_inherents::InherentData, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentData { - pub data: ::subxt_core::utils::KeyedVec< + pub data: ::subxt::ext::subxt_core::utils::KeyedVec< [::core::primitive::u8; 8usize], - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, >, } } pub mod sp_npos_elections { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ElectionScore { pub minimal_stake: ::core::primitive::u128, pub sum_stake: ::core::primitive::u128, pub sum_stake_squared: ::core::primitive::u128, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Support<_0> { pub total: ::core::primitive::u128, - pub voters: ::subxt_core::alloc::vec::Vec<(_0, ::core::primitive::u128)>, + pub voters: + ::subxt::ext::subxt_core::alloc::vec::Vec<(_0, ::core::primitive::u128)>, } } pub mod sp_runtime { @@ -54298,74 +64862,86 @@ pub mod api { pub mod block { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Block<_0, _1> { pub header: _0, - pub extrinsics: ::subxt_core::alloc::vec::Vec<_1>, + pub extrinsics: ::subxt::ext::subxt_core::alloc::vec::Vec<_1>, } } pub mod digest { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Digest { - pub logs: ::subxt_core::alloc::vec::Vec< + pub logs: ::subxt::ext::subxt_core::alloc::vec::Vec< runtime_types::sp_runtime::generic::digest::DigestItem, >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum DigestItem { #[codec(index = 6)] PreRuntime( [::core::primitive::u8; 4usize], - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, ), #[codec(index = 4)] Consensus( [::core::primitive::u8; 4usize], - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, ), #[codec(index = 5)] Seal( [::core::primitive::u8; 4usize], - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, ), #[codec(index = 0)] - Other(::subxt_core::alloc::vec::Vec<::core::primitive::u8>), + Other(::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>), #[codec(index = 8)] RuntimeEnvironmentUpdated, } @@ -54373,18 +64949,22 @@ pub mod api { pub mod era { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Era { #[codec(index = 0)] Immortal, @@ -54903,1402 +65483,573 @@ pub mod api { pub mod header { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct Header<_0> { - pub parent_hash: ::subxt_core::utils::H256, + pub parent_hash: ::subxt::ext::subxt_core::utils::H256, #[codec(compact)] pub number: _0, - pub state_root: ::subxt_core::utils::H256, - pub extrinsics_root: ::subxt_core::utils::H256, + pub state_root: ::subxt::ext::subxt_core::utils::H256, + pub extrinsics_root: ::subxt::ext::subxt_core::utils::H256, pub digest: runtime_types::sp_runtime::generic::digest::Digest, - } - } - } - pub mod traits { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct BlakeTwo256; - } - pub mod transaction_validity { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum InvalidTransaction { - #[codec(index = 0)] - Call, - #[codec(index = 1)] - Payment, - #[codec(index = 2)] - Future, - #[codec(index = 3)] - Stale, - #[codec(index = 4)] - BadProof, - #[codec(index = 5)] - AncientBirthBlock, - #[codec(index = 6)] - ExhaustsResources, - #[codec(index = 7)] - Custom(::core::primitive::u8), - #[codec(index = 8)] - BadMandatory, - #[codec(index = 9)] - MandatoryValidation, - #[codec(index = 10)] - BadSigner, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum TransactionSource { - #[codec(index = 0)] - InBlock, - #[codec(index = 1)] - Local, - #[codec(index = 2)] - External, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum TransactionValidityError { - #[codec(index = 0)] - Invalid(runtime_types::sp_runtime::transaction_validity::InvalidTransaction), - #[codec(index = 1)] - Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum UnknownTransaction { - #[codec(index = 0)] - CannotLookup, - #[codec(index = 1)] - NoUnsignedValidator, - #[codec(index = 2)] - Custom(::core::primitive::u8), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct ValidTransaction { - pub priority: ::core::primitive::u64, - pub requires: ::subxt_core::alloc::vec::Vec< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - >, - pub provides: ::subxt_core::alloc::vec::Vec< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - >, - pub longevity: ::core::primitive::u64, - pub propagate: ::core::primitive::bool, - } - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum DispatchError { - #[codec(index = 0)] - Other, - #[codec(index = 1)] - CannotLookup, - #[codec(index = 2)] - BadOrigin, - #[codec(index = 3)] - Module(runtime_types::sp_runtime::ModuleError), - #[codec(index = 4)] - ConsumerRemaining, - #[codec(index = 5)] - NoProviders, - #[codec(index = 6)] - TooManyConsumers, - #[codec(index = 7)] - Token(runtime_types::sp_runtime::TokenError), - #[codec(index = 8)] - Arithmetic(runtime_types::sp_arithmetic::ArithmeticError), - #[codec(index = 9)] - Transactional(runtime_types::sp_runtime::TransactionalError), - #[codec(index = 10)] - Exhausted, - #[codec(index = 11)] - Corruption, - #[codec(index = 12)] - Unavailable, - #[codec(index = 13)] - RootNotAllowed, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct ModuleError { - pub index: ::core::primitive::u8, - pub error: [::core::primitive::u8; 4usize], - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum MultiSignature { - #[codec(index = 0)] - Ed25519(runtime_types::sp_core::ed25519::Signature), - #[codec(index = 1)] - Sr25519(runtime_types::sp_core::sr25519::Signature), - #[codec(index = 2)] - Ecdsa(runtime_types::sp_core::ecdsa::Signature), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum TokenError { - #[codec(index = 0)] - FundsUnavailable, - #[codec(index = 1)] - OnlyProvider, - #[codec(index = 2)] - BelowMinimum, - #[codec(index = 3)] - CannotCreate, - #[codec(index = 4)] - UnknownAsset, - #[codec(index = 5)] - Frozen, - #[codec(index = 6)] - Unsupported, - #[codec(index = 7)] - CannotCreateHold, - #[codec(index = 8)] - NotExpendable, - #[codec(index = 9)] - Blocked, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum TransactionalError { - #[codec(index = 0)] - LimitReached, - #[codec(index = 1)] - NoLayer, - } - } - pub mod sp_session { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct MembershipProof { - pub session: ::core::primitive::u32, - pub trie_nodes: ::subxt_core::alloc::vec::Vec< - ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - >, - pub validator_count: ::core::primitive::u32, - } - } - pub mod sp_staking { - use super::runtime_types; - pub mod offence { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct OffenceDetails<_0, _1> { - pub offender: _1, - pub reporters: ::subxt_core::alloc::vec::Vec<_0>, - } - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: ::subxt_core::alloc::vec::Vec< - runtime_types::sp_staking::IndividualExposure<_0, _1>, - >, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct ExposurePage<_0, _1> { - #[codec(compact)] - pub page_total: _1, - pub others: ::subxt_core::alloc::vec::Vec< - runtime_types::sp_staking::IndividualExposure<_0, _1>, - >, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct IndividualExposure<_0, _1> { - pub who: _0, - #[codec(compact)] - pub value: _1, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct PagedExposureMetadata<_0> { - #[codec(compact)] - pub total: _0, - #[codec(compact)] - pub own: _0, - pub nominator_count: ::core::primitive::u32, - pub page_count: ::core::primitive::u32, - } - } - pub mod sp_version { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct RuntimeVersion { - pub spec_name: ::subxt_core::alloc::string::String, - pub impl_name: ::subxt_core::alloc::string::String, - pub authoring_version: ::core::primitive::u32, - pub spec_version: ::core::primitive::u32, - pub impl_version: ::core::primitive::u32, - pub apis: ::subxt_core::alloc::vec::Vec<( - [::core::primitive::u8; 8usize], - ::core::primitive::u32, - )>, - pub transaction_version: ::core::primitive::u32, - pub state_version: ::core::primitive::u8, - } - } - pub mod sp_weights { - use super::runtime_types; - pub mod weight_v2 { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Weight { - #[codec(compact)] - pub ref_time: ::core::primitive::u64, - #[codec(compact)] - pub proof_size: ::core::primitive::u64, - } - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct RuntimeDbWeight { - pub read: ::core::primitive::u64, - pub write: ::core::primitive::u64, - } - } - pub mod staging_xcm { - use super::runtime_types; - pub mod v4 { - use super::runtime_types; - pub mod asset { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Asset { - pub id: runtime_types::staging_xcm::v4::asset::AssetId, - pub fun: runtime_types::staging_xcm::v4::asset::Fungibility, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct AssetId(pub runtime_types::staging_xcm::v4::location::Location); - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum AssetInstance { - #[codec(index = 0)] - Undefined, - #[codec(index = 1)] - Index(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 2)] - Array4([::core::primitive::u8; 4usize]), - #[codec(index = 3)] - Array8([::core::primitive::u8; 8usize]), - #[codec(index = 4)] - Array16([::core::primitive::u8; 16usize]), - #[codec(index = 5)] - Array32([::core::primitive::u8; 32usize]), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum Fungibility { - #[codec(index = 0)] - Fungible(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 1)] - NonFungible(runtime_types::staging_xcm::v4::asset::AssetInstance), - } - } - pub mod junction { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum Junction { - #[codec(index = 0)] - Parachain(#[codec(compact)] ::core::primitive::u32), - #[codec(index = 1)] - AccountId32 { - network: ::core::option::Option< - runtime_types::staging_xcm::v4::junction::NetworkId, - >, - id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - AccountIndex64 { - network: ::core::option::Option< - runtime_types::staging_xcm::v4::junction::NetworkId, - >, - #[codec(compact)] - index: ::core::primitive::u64, - }, - #[codec(index = 3)] - AccountKey20 { - network: ::core::option::Option< - runtime_types::staging_xcm::v4::junction::NetworkId, - >, - key: [::core::primitive::u8; 20usize], - }, - #[codec(index = 4)] - PalletInstance(::core::primitive::u8), - #[codec(index = 5)] - GeneralIndex(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 6)] - GeneralKey { - length: ::core::primitive::u8, - data: [::core::primitive::u8; 32usize], - }, - #[codec(index = 7)] - OnlyChild, - #[codec(index = 8)] - Plurality { - id: runtime_types::xcm::v3::junction::BodyId, - part: runtime_types::xcm::v3::junction::BodyPart, - }, - #[codec(index = 9)] - GlobalConsensus(runtime_types::staging_xcm::v4::junction::NetworkId), - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum NetworkId { - #[codec(index = 0)] - ByGenesis([::core::primitive::u8; 32usize]), - #[codec(index = 1)] - ByFork { - block_number: ::core::primitive::u64, - block_hash: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - Polkadot, - #[codec(index = 3)] - Kusama, - #[codec(index = 4)] - Westend, - #[codec(index = 5)] - Rococo, - #[codec(index = 6)] - Wococo, - #[codec(index = 7)] - Ethereum { - #[codec(compact)] - chain_id: ::core::primitive::u64, - }, - #[codec(index = 8)] - BitcoinCore, - #[codec(index = 9)] - BitcoinCash, - #[codec(index = 10)] - PolkadotBulletin, - } - } - pub mod junctions { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum Junctions { - #[codec(index = 0)] - Here, - #[codec(index = 1)] - X1([runtime_types::staging_xcm::v4::junction::Junction; 1usize]), - #[codec(index = 2)] - X2([runtime_types::staging_xcm::v4::junction::Junction; 2usize]), - #[codec(index = 3)] - X3([runtime_types::staging_xcm::v4::junction::Junction; 3usize]), - #[codec(index = 4)] - X4([runtime_types::staging_xcm::v4::junction::Junction; 4usize]), - #[codec(index = 5)] - X5([runtime_types::staging_xcm::v4::junction::Junction; 5usize]), - #[codec(index = 6)] - X6([runtime_types::staging_xcm::v4::junction::Junction; 6usize]), - #[codec(index = 7)] - X7([runtime_types::staging_xcm::v4::junction::Junction; 7usize]), - #[codec(index = 8)] - X8([runtime_types::staging_xcm::v4::junction::Junction; 8usize]), - } - } - pub mod location { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Location { - pub parents: ::core::primitive::u8, - pub interior: runtime_types::staging_xcm::v4::junctions::Junctions, - } - } - } - } - pub mod sygma_access_segregator { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::grant_access`]."] - grant_access { - pallet_index: ::core::primitive::u8, - extrinsic_name: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - who: ::subxt_core::utils::AccountId32, - }, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Function unimplemented"] - Unimplemented, - #[codec(index = 1)] - #[doc = "Failed to grant extrinsic access permission to an account"] - GrantAccessFailed, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Extrinsic access grant to someone"] - #[doc = "args: [pallet_index, extrinsic_name, who]"] - AccessGranted { - pallet_index: ::core::primitive::u8, - extrinsic_name: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - who: ::subxt_core::utils::AccountId32, - }, - } - } - } - pub mod sygma_basic_feehandler { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::set_fee`]."] - set_fee { - domain: ::core::primitive::u8, - asset: ::subxt_core::alloc::boxed::Box< - runtime_types::staging_xcm::v4::asset::AssetId, - >, - amount: ::core::primitive::u128, - }, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Function unimplemented"] - Unimplemented, - #[codec(index = 1)] - #[doc = "Account has not gained access permission"] - AccessDenied, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Fee set for a specific asset"] - #[doc = "args: [domain, asset, amount]"] - FeeSet { - domain: ::core::primitive::u8, - asset: runtime_types::staging_xcm::v4::asset::AssetId, - amount: ::core::primitive::u128, - }, - } - } - } - pub mod sygma_bridge { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::pause_bridge`]."] - pause_bridge { dest_domain_id: ::core::primitive::u8 }, - #[codec(index = 1)] - #[doc = "See [`Pallet::unpause_bridge`]."] - unpause_bridge { dest_domain_id: ::core::primitive::u8 }, - #[codec(index = 2)] - #[doc = "See [`Pallet::set_mpc_address`]."] - set_mpc_address { addr: runtime_types::sygma_traits::MpcAddress }, - #[codec(index = 3)] - #[doc = "See [`Pallet::register_domain`]."] - register_domain { - dest_domain_id: ::core::primitive::u8, - dest_chain_id: runtime_types::primitive_types::U256, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::unregister_domain`]."] - unregister_domain { - dest_domain_id: ::core::primitive::u8, - dest_chain_id: runtime_types::primitive_types::U256, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::deposit`]."] - deposit { - asset: ::subxt_core::alloc::boxed::Box< - runtime_types::staging_xcm::v4::asset::Asset, - >, - dest: ::subxt_core::alloc::boxed::Box< - runtime_types::staging_xcm::v4::location::Location, - >, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::retry`]."] - retry { - deposit_on_block_height: ::core::primitive::u128, - dest_domain_id: ::core::primitive::u8, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::execute_proposal`]."] - execute_proposal { - proposals: ::subxt_core::alloc::vec::Vec< - runtime_types::sygma_bridge::pallet::Proposal, - >, - signature: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::pause_all_bridges`]."] - pause_all_bridges, - #[codec(index = 9)] - #[doc = "See [`Pallet::unpause_all_bridges`]."] - unpause_all_bridges, + } } + } + pub mod traits { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Account has not gained access permission"] - AccessDenied, - #[codec(index = 1)] - #[doc = "Protected operation, must be performed by relayer"] - BadMpcSignature, - #[codec(index = 2)] - #[doc = "Insufficient balance on sender account"] - InsufficientBalance, - #[codec(index = 3)] - #[doc = "Asset transactor execution failed"] - TransactFailedDeposit, - #[codec(index = 4)] - TransactFailedWithdraw, - #[codec(index = 5)] - TransactFailedFeeDeposit, - #[codec(index = 6)] - TransactFailedHoldInReserved, - #[codec(index = 7)] - TransactFailedReleaseFromReserved, - #[codec(index = 8)] - #[doc = "The withdrawn amount can not cover the fee payment"] - FeeTooExpensive, - #[codec(index = 9)] - #[doc = "MPC address not set"] - MissingMpcAddress, - #[codec(index = 10)] - #[doc = "MPC address can not be updated"] - MpcAddrNotUpdatable, - #[codec(index = 11)] - #[doc = "Bridge is paused"] - BridgePaused, - #[codec(index = 12)] - #[doc = "Bridge is unpaused"] - BridgeUnpaused, - #[codec(index = 13)] - #[doc = "Fee config option missing"] - MissingFeeConfig, - #[codec(index = 14)] - #[doc = "Asset not bound to a resource id"] - AssetNotBound, - #[codec(index = 15)] - #[doc = "Proposal has either failed or succeeded"] - ProposalAlreadyComplete, - #[codec(index = 16)] - #[doc = "Proposal list empty"] - EmptyProposalList, - #[codec(index = 17)] - #[doc = "Transactor operation failed"] - TransactorFailed, - #[codec(index = 18)] - #[doc = "Deposit data not correct"] - InvalidDepositDataInvalidLength, - #[codec(index = 19)] - InvalidDepositDataInvalidAmount, - #[codec(index = 20)] - InvalidDepositDataInvalidRecipientLength, - #[codec(index = 21)] - InvalidDepositDataRecipientLengthNotMatch, - #[codec(index = 22)] - InvalidDepositDataInvalidRecipient, - #[codec(index = 23)] - #[doc = "Dest domain not supported"] - DestDomainNotSupported, - #[codec(index = 24)] - #[doc = "Dest chain id not match"] - DestChainIDNotMatch, - #[codec(index = 25)] - #[doc = "Failed to extract destination data"] - ExtractDestDataFailed, - #[codec(index = 26)] - #[doc = "Failed on the decimal converter"] - DecimalConversionFail, - #[codec(index = 27)] - #[doc = "Deposit nonce has reached max integer value"] - DepositNonceOverflow, - #[codec(index = 28)] - #[doc = "Asset not bound to a liquidity holder account"] - NoLiquidityHolderAccountBound, - #[codec(index = 29)] - #[doc = "Function unimplemented"] - Unimplemented, - } + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct BlakeTwo256; + } + pub mod transaction_validity { + use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum InvalidTransaction { #[codec(index = 0)] - #[doc = "When initial bridge transfer send to dest domain"] - #[doc = "args: [dest_domain_id, resource_id, deposit_nonce, sender, transfer_type,"] - #[doc = "deposit_data, handler_response, ]"] - Deposit { - dest_domain_id: ::core::primitive::u8, - resource_id: [::core::primitive::u8; 32usize], - deposit_nonce: ::core::primitive::u64, - sender: ::subxt_core::utils::AccountId32, - transfer_type: runtime_types::sygma_traits::TransferType, - deposit_data: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - handler_response: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - }, + Call, #[codec(index = 1)] - #[doc = "When proposal was executed successfully"] - ProposalExecution { - origin_domain_id: ::core::primitive::u8, - deposit_nonce: ::core::primitive::u64, - data_hash: [::core::primitive::u8; 32usize], - }, + Payment, #[codec(index = 2)] - #[doc = "When proposal was faild to execute"] - FailedHandlerExecution { - error: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - origin_domain_id: ::core::primitive::u8, - deposit_nonce: ::core::primitive::u64, - }, + Future, #[codec(index = 3)] - #[doc = "When user is going to retry a bridge transfer"] - #[doc = "args: [deposit_on_block_height, dest_domain_id, sender]"] - Retry { - deposit_on_block_height: ::core::primitive::u128, - dest_domain_id: ::core::primitive::u8, - sender: ::subxt_core::utils::AccountId32, - }, + Stale, #[codec(index = 4)] - #[doc = "When bridge is paused"] - #[doc = "args: [dest_domain_id]"] - BridgePaused { dest_domain_id: ::core::primitive::u8 }, + BadProof, #[codec(index = 5)] - #[doc = "When bridge is unpaused"] - #[doc = "args: [dest_domain_id]"] - BridgeUnpaused { dest_domain_id: ::core::primitive::u8 }, + AncientBirthBlock, #[codec(index = 6)] - #[doc = "When registering a new dest domainID with its corresponding chainID"] - RegisterDestDomain { - sender: ::subxt_core::utils::AccountId32, - domain_id: ::core::primitive::u8, - chain_id: runtime_types::primitive_types::U256, - }, + ExhaustsResources, #[codec(index = 7)] - #[doc = "When unregistering a dest domainID with its corresponding chainID"] - UnregisterDestDomain { - sender: ::subxt_core::utils::AccountId32, - domain_id: ::core::primitive::u8, - chain_id: runtime_types::primitive_types::U256, - }, + Custom(::core::primitive::u8), #[codec(index = 8)] - #[doc = "When bridge fee is collected"] - FeeCollected { - fee_payer: ::subxt_core::utils::AccountId32, - dest_domain_id: ::core::primitive::u8, - resource_id: [::core::primitive::u8; 32usize], - fee_amount: ::core::primitive::u128, - fee_asset_id: runtime_types::staging_xcm::v4::asset::AssetId, - }, + BadMandatory, #[codec(index = 9)] - #[doc = "When all bridges are paused"] - AllBridgePaused { sender: ::subxt_core::utils::AccountId32 }, + MandatoryValidation, #[codec(index = 10)] - #[doc = "When all bridges are unpaused"] - AllBridgeUnpaused { sender: ::subxt_core::utils::AccountId32 }, + BadSigner, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Proposal { - pub origin_domain_id: ::core::primitive::u8, - pub deposit_nonce: ::core::primitive::u64, - pub resource_id: [::core::primitive::u8; 32usize], - pub data: ::subxt_core::alloc::vec::Vec<::core::primitive::u8>, - } - } - } - pub mod sygma_fee_handler_router { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum TransactionSource { #[codec(index = 0)] - #[doc = "See [`Pallet::set_fee_handler`]."] - set_fee_handler { - domain: ::core::primitive::u8, - asset: ::subxt_core::alloc::boxed::Box< - runtime_types::staging_xcm::v4::asset::AssetId, - >, - handler_type: - runtime_types::sygma_fee_handler_router::pallet::FeeHandlerType, - }, + InBlock, + #[codec(index = 1)] + Local, + #[codec(index = 2)] + External, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum TransactionValidityError { #[codec(index = 0)] - #[doc = "Account has not gained access permission"] - AccessDenied, + Invalid(runtime_types::sp_runtime::transaction_validity::InvalidTransaction), #[codec(index = 1)] - #[doc = "Function unimplemented"] - Unimplemented, + Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum UnknownTransaction { #[codec(index = 0)] - #[doc = "When fee handler was set for a specific (domain, asset) pair"] - #[doc = "args: [dest_domain_id, asset_id, handler_type]"] - FeeHandlerSet { - domain: ::core::primitive::u8, - asset: runtime_types::staging_xcm::v4::asset::AssetId, - handler_type: - runtime_types::sygma_fee_handler_router::pallet::FeeHandlerType, - }, + CannotLookup, + #[codec(index = 1)] + NoUnsignedValidator, + #[codec(index = 2)] + Custom(::core::primitive::u8), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum FeeHandlerType { - #[codec(index = 0)] - BasicFeeHandler, - #[codec(index = 1)] - PercentageFeeHandler, - #[codec(index = 2)] - DynamicFeeHandler, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct ValidTransaction { + pub priority: ::core::primitive::u64, + pub requires: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + >, + pub provides: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + >, + pub longevity: ::core::primitive::u64, + pub propagate: ::core::primitive::bool, } } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub enum DispatchError { + #[codec(index = 0)] + Other, + #[codec(index = 1)] + CannotLookup, + #[codec(index = 2)] + BadOrigin, + #[codec(index = 3)] + Module(runtime_types::sp_runtime::ModuleError), + #[codec(index = 4)] + ConsumerRemaining, + #[codec(index = 5)] + NoProviders, + #[codec(index = 6)] + TooManyConsumers, + #[codec(index = 7)] + Token(runtime_types::sp_runtime::TokenError), + #[codec(index = 8)] + Arithmetic(runtime_types::sp_arithmetic::ArithmeticError), + #[codec(index = 9)] + Transactional(runtime_types::sp_runtime::TransactionalError), + #[codec(index = 10)] + Exhausted, + #[codec(index = 11)] + Corruption, + #[codec(index = 12)] + Unavailable, + #[codec(index = 13)] + RootNotAllowed, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub enum ExtrinsicInclusionMode { + #[codec(index = 0)] + AllExtrinsics, + #[codec(index = 1)] + OnlyInherents, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct ModuleError { + pub index: ::core::primitive::u8, + pub error: [::core::primitive::u8; 4usize], + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub enum MultiSignature { + #[codec(index = 0)] + Ed25519([::core::primitive::u8; 64usize]), + #[codec(index = 1)] + Sr25519([::core::primitive::u8; 64usize]), + #[codec(index = 2)] + Ecdsa([::core::primitive::u8; 65usize]), + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct OpaqueValue( + pub ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + ); + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub enum TokenError { + #[codec(index = 0)] + FundsUnavailable, + #[codec(index = 1)] + OnlyProvider, + #[codec(index = 2)] + BelowMinimum, + #[codec(index = 3)] + CannotCreate, + #[codec(index = 4)] + UnknownAsset, + #[codec(index = 5)] + Frozen, + #[codec(index = 6)] + Unsupported, + #[codec(index = 7)] + CannotCreateHold, + #[codec(index = 8)] + NotExpendable, + #[codec(index = 9)] + Blocked, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub enum TransactionalError { + #[codec(index = 0)] + LimitReached, + #[codec(index = 1)] + NoLayer, + } } - pub mod sygma_percentage_feehandler { + pub mod sp_session { use super::runtime_types; - pub mod pallet { + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct MembershipProof { + pub session: ::core::primitive::u32, + pub trie_nodes: ::subxt::ext::subxt_core::alloc::vec::Vec< + ::subxt::ext::subxt_core::alloc::vec::Vec<::core::primitive::u8>, + >, + pub validator_count: ::core::primitive::u32, + } + } + pub mod sp_staking { + use super::runtime_types; + pub mod offence { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::set_fee_rate`]."] - set_fee_rate { - domain: ::core::primitive::u8, - asset: ::subxt_core::alloc::boxed::Box< - runtime_types::staging_xcm::v4::asset::AssetId, - >, - fee_rate_basis_point: ::core::primitive::u32, - fee_lower_bound: ::core::primitive::u128, - fee_upper_bound: ::core::primitive::u128, - }, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Function unimplemented"] - Unimplemented, - #[codec(index = 1)] - #[doc = "Account has not gained access permission"] - AccessDenied, - #[codec(index = 2)] - #[doc = "Fee rate is out of range [0, 10000)"] - FeeRateOutOfRange, - #[codec(index = 3)] - #[doc = "Percentage fee bound is invalid"] - InvalidFeeBound, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Fee set rate for a specific asset and domain"] - #[doc = "args: [domain, asset, rate_basis_point, fee_lower_bound, fee_upper_bound]"] - FeeRateSet { - domain: ::core::primitive::u8, - asset: runtime_types::staging_xcm::v4::asset::AssetId, - rate_basis_point: ::core::primitive::u32, - fee_lower_bound: ::core::primitive::u128, - fee_upper_bound: ::core::primitive::u128, - }, + pub struct OffenceDetails<_0, _1> { + pub offender: _1, + pub reporters: ::subxt::ext::subxt_core::alloc::vec::Vec<_0>, } } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct Exposure<_0, _1> { + #[codec(compact)] + pub total: _1, + #[codec(compact)] + pub own: _1, + pub others: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::sp_staking::IndividualExposure<_0, _1>, + >, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct ExposurePage<_0, _1> { + #[codec(compact)] + pub page_total: _1, + pub others: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::sp_staking::IndividualExposure<_0, _1>, + >, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct IndividualExposure<_0, _1> { + pub who: _0, + #[codec(compact)] + pub value: _1, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct PagedExposureMetadata<_0> { + #[codec(compact)] + pub total: _0, + #[codec(compact)] + pub own: _0, + pub nominator_count: ::core::primitive::u32, + pub page_count: ::core::primitive::u32, + } } - pub mod sygma_traits { + pub mod sp_version { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct MpcAddress(pub [::core::primitive::u8; 20usize]); + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct RuntimeVersion { + pub spec_name: ::subxt::ext::subxt_core::alloc::string::String, + pub impl_name: ::subxt::ext::subxt_core::alloc::string::String, + pub authoring_version: ::core::primitive::u32, + pub spec_version: ::core::primitive::u32, + pub impl_version: ::core::primitive::u32, + pub apis: ::subxt::ext::subxt_core::alloc::vec::Vec<( + [::core::primitive::u8; 8usize], + ::core::primitive::u32, + )>, + pub transaction_version: ::core::primitive::u32, + pub state_version: ::core::primitive::u8, + } + } + pub mod sp_weights { + use super::runtime_types; + pub mod weight_v2 { + use super::runtime_types; + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Weight { + #[codec(compact)] + pub ref_time: ::core::primitive::u64, + #[codec(compact)] + pub proof_size: ::core::primitive::u64, + } + } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum TransferType { - #[codec(index = 0)] - FungibleTransfer, - #[codec(index = 1)] - NonFungibleTransfer, - #[codec(index = 2)] - GenericTransfer, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] + pub struct RuntimeDbWeight { + pub read: ::core::primitive::u64, + pub write: ::core::primitive::u64, } } pub mod tangle_primitives { @@ -56308,10 +66059,10 @@ pub mod api { pub mod field { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56319,35 +66070,43 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct BoundedString( pub runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ); #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] #[codec(dumb_trait_bound)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Field<_1> { - # [codec (index = 0)] None , # [codec (index = 1)] Bool (:: core :: primitive :: bool ,) , # [codec (index = 2)] Uint8 (:: core :: primitive :: u8 ,) , # [codec (index = 3)] Int8 (:: core :: primitive :: i8 ,) , # [codec (index = 4)] Uint16 (:: core :: primitive :: u16 ,) , # [codec (index = 5)] Int16 (:: core :: primitive :: i16 ,) , # [codec (index = 6)] Uint32 (:: core :: primitive :: u32 ,) , # [codec (index = 7)] Int32 (:: core :: primitive :: i32 ,) , # [codec (index = 8)] Uint64 (:: core :: primitive :: u64 ,) , # [codec (index = 9)] Int64 (:: core :: primitive :: i64 ,) , # [codec (index = 10)] String (runtime_types :: tangle_primitives :: services :: field :: BoundedString ,) , # [codec (index = 11)] Bytes (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 12)] Array (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_primitives :: services :: field :: Field < _1 > > ,) , # [codec (index = 13)] List (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_primitives :: services :: field :: Field < _1 > > ,) , # [codec (index = 14)] Struct (runtime_types :: tangle_primitives :: services :: field :: BoundedString , :: subxt_core :: alloc :: boxed :: Box < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: tangle_primitives :: services :: field :: BoundedString , runtime_types :: tangle_primitives :: services :: field :: Field < _1 > ,) > > ,) , # [codec (index = 100)] AccountId (_1 ,) , } + # [codec (index = 0)] None , # [codec (index = 1)] Bool (:: core :: primitive :: bool ,) , # [codec (index = 2)] Uint8 (:: core :: primitive :: u8 ,) , # [codec (index = 3)] Int8 (:: core :: primitive :: i8 ,) , # [codec (index = 4)] Uint16 (:: core :: primitive :: u16 ,) , # [codec (index = 5)] Int16 (:: core :: primitive :: i16 ,) , # [codec (index = 6)] Uint32 (:: core :: primitive :: u32 ,) , # [codec (index = 7)] Int32 (:: core :: primitive :: i32 ,) , # [codec (index = 8)] Uint64 (:: core :: primitive :: u64 ,) , # [codec (index = 9)] Int64 (:: core :: primitive :: i64 ,) , # [codec (index = 10)] String (runtime_types :: tangle_primitives :: services :: field :: BoundedString ,) , # [codec (index = 11)] Bytes (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 12)] Array (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_primitives :: services :: field :: Field < _1 > > ,) , # [codec (index = 13)] List (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: tangle_primitives :: services :: field :: Field < _1 > > ,) , # [codec (index = 14)] Struct (runtime_types :: tangle_primitives :: services :: field :: BoundedString , :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: tangle_primitives :: services :: field :: BoundedString , runtime_types :: tangle_primitives :: services :: field :: Field < _1 > ,) > > ,) , # [codec (index = 100)] AccountId (_1 ,) , } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56355,9 +66114,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum FieldType { #[codec(index = 0)] Void, @@ -56385,29 +66148,29 @@ pub mod api { Bytes, #[codec(index = 12)] Optional( - ::subxt_core::alloc::boxed::Box< + ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_primitives::services::field::FieldType, >, ), #[codec(index = 13)] Array( ::core::primitive::u64, - ::subxt_core::alloc::boxed::Box< + ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_primitives::services::field::FieldType, >, ), #[codec(index = 14)] List( - ::subxt_core::alloc::boxed::Box< + ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_primitives::services::field::FieldType, >, ), #[codec(index = 15)] Struct( - ::subxt_core::alloc::boxed::Box< + ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::tangle_primitives::services::field::FieldType, >, - ::subxt_core::alloc::boxed::Box< + ::subxt::ext::subxt_core::alloc::boxed::Box< runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::tangle_primitives::services::field::FieldType, runtime_types::tangle_primitives::services::field::FieldType, @@ -56419,50 +66182,37 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum ApprovalPreference { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Required, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] pub enum ApprovalState { #[codec(index = 0)] Pending, #[codec(index = 1)] - Approved, + Approved { + restaking_percent: runtime_types::sp_arithmetic::per_things::Percent, + }, #[codec(index = 2)] Rejected, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56470,9 +66220,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Architecture { #[codec(index = 0)] Wasm, @@ -56496,10 +66250,33 @@ pub mod api { RiscV64, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + serde :: Deserialize, + serde :: Serialize, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub enum BlueprintManager { + #[codec(index = 0)] + Evm(::subxt::ext::subxt_core::utils::H160), + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56507,19 +66284,23 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ContainerGadget { pub sources: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::tangle_primitives::services::GadgetSource, >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56527,9 +66308,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum Gadget { #[codec(index = 0)] Wasm(runtime_types::tangle_primitives::services::WasmGadget), @@ -56539,10 +66324,10 @@ pub mod api { Container(runtime_types::tangle_primitives::services::ContainerGadget), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56550,9 +66335,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GadgetBinary { pub arch: runtime_types::tangle_primitives::services::Architecture, pub os: runtime_types::tangle_primitives::services::OperatingSystem, @@ -56560,10 +66349,10 @@ pub mod api { pub sha256: [::core::primitive::u8; 32usize], } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56571,17 +66360,21 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GadgetSource { pub fetcher: runtime_types::tangle_primitives::services::GadgetSourceFetcher, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56589,9 +66382,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum GadgetSourceFetcher { #[codec(index = 0)] IPFS( @@ -56609,10 +66406,10 @@ pub mod api { Testing(runtime_types::tangle_primitives::services::TestFetcher), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56620,9 +66417,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct GithubFetcher { pub owner: runtime_types::tangle_primitives::services::field::BoundedString, pub repo: runtime_types::tangle_primitives::services::field::BoundedString, @@ -56632,10 +66433,10 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56643,27 +66444,35 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ImageRegistryFetcher { pub registry: runtime_types::tangle_primitives::services::field::BoundedString, pub image: runtime_types::tangle_primitives::services::field::BoundedString, pub tag: runtime_types::tangle_primitives::services::field::BoundedString, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct JobCall<_1> { pub service_id: ::core::primitive::u64, pub job: ::core::primitive::u8, @@ -56672,18 +66481,22 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct JobCallResult<_1> { pub service_id: ::core::primitive::u64, pub call_id: ::core::primitive::u64, @@ -56692,10 +66505,10 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56703,9 +66516,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct JobDefinition { pub metadata: runtime_types::tangle_primitives::services::JobMetadata, pub params: runtime_types::bounded_collections::bounded_vec::BoundedVec< @@ -56717,10 +66534,10 @@ pub mod api { pub verifier: runtime_types::tangle_primitives::services::JobResultVerifier, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56728,9 +66545,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct JobMetadata { pub name: runtime_types::tangle_primitives::services::field::BoundedString, pub description: ::core::option::Option< @@ -56738,10 +66559,10 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56749,20 +66570,24 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum JobResultVerifier { #[codec(index = 0)] None, #[codec(index = 1)] - Evm(::subxt_core::utils::H160), + Evm(::subxt::ext::subxt_core::utils::H160), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56770,19 +66595,23 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct NativeGadget { pub sources: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::tangle_primitives::services::GadgetSource, >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56790,9 +66619,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum OperatingSystem { #[codec(index = 0)] Unknown, @@ -56806,35 +66639,43 @@ pub mod api { BSD, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct OperatorPreferences { - pub key: runtime_types::sp_core::ecdsa::Public, - pub approval: runtime_types::tangle_primitives::services::ApprovalPreference, + pub key: [::core::primitive::u8; 33usize], + pub price_targets: runtime_types::tangle_primitives::services::PriceTargets, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct OperatorProfile { pub services: runtime_types::bounded_collections::bounded_btree_set::BoundedBTreeSet< @@ -56846,52 +66687,88 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct PriceTargets { + pub cpu: ::core::primitive::u64, + pub mem: ::core::primitive::u64, + pub storage_hdd: ::core::primitive::u64, + pub storage_ssd: ::core::primitive::u64, + pub storage_nvme: ::core::primitive::u64, + } + #[derive( + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct RpcServicesWithBlueprint<_1, _2> { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct RpcServicesWithBlueprint<_1, _2, _3> { pub blueprint_id: ::core::primitive::u64, pub blueprint: runtime_types::tangle_primitives::services::ServiceBlueprint, - pub services: ::subxt_core::alloc::vec::Vec< - runtime_types::tangle_primitives::services::Service<_1, _2>, + pub services: ::subxt::ext::subxt_core::alloc::vec::Vec< + runtime_types::tangle_primitives::services::Service<_1, _2, _3>, >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct Service<_1, _2> { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct Service<_1, _2, _3> { pub id: ::core::primitive::u64, pub blueprint: ::core::primitive::u64, pub owner: _1, pub permitted_callers: runtime_types::bounded_collections::bounded_vec::BoundedVec<_1>, - pub operators: runtime_types::bounded_collections::bounded_vec::BoundedVec<_1>, + pub operators: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + _1, + runtime_types::sp_arithmetic::per_things::Percent, + )>, + pub assets: runtime_types::bounded_collections::bounded_vec::BoundedVec<_3>, pub ttl: _2, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56899,9 +66776,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ServiceBlueprint { pub metadata: runtime_types::tangle_primitives::services::ServiceMetadata, pub jobs: runtime_types::bounded_collections::bounded_vec::BoundedVec< @@ -56918,13 +66799,14 @@ pub mod api { pub request_params: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::tangle_primitives::services::field::FieldType, >, + pub manager: runtime_types::tangle_primitives::services::BlueprintManager, pub gadget: runtime_types::tangle_primitives::services::Gadget, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56932,9 +66814,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct ServiceMetadata { pub name: runtime_types::tangle_primitives::services::field::BoundedString, pub description: ::core::option::Option< @@ -56960,10 +66846,10 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -56971,33 +66857,42 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ServiceRegistrationHook { #[codec(index = 0)] None, #[codec(index = 1)] - Evm(::subxt_core::utils::H160), + Evm(::subxt::ext::subxt_core::utils::H160), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub struct ServiceRequest<_1, _2> { + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] + pub struct ServiceRequest<_1, _2, _3> { pub blueprint: ::core::primitive::u64, pub owner: _1, pub permitted_callers: runtime_types::bounded_collections::bounded_vec::BoundedVec<_1>, + pub assets: runtime_types::bounded_collections::bounded_vec::BoundedVec<_3>, pub ttl: _2, pub args: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::tangle_primitives::services::field::Field<_1>, @@ -57009,10 +66904,10 @@ pub mod api { )>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -57020,20 +66915,24 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum ServiceRequestHook { #[codec(index = 0)] None, #[codec(index = 1)] - Evm(::subxt_core::utils::H160), + Evm(::subxt::ext::subxt_core::utils::H160), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -57041,9 +66940,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct TestFetcher { pub cargo_package: runtime_types::tangle_primitives::services::field::BoundedString, @@ -57051,18 +66954,22 @@ pub mod api { pub base_path: runtime_types::tangle_primitives::services::field::BoundedString, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum TypeCheckError { #[codec(index = 0)] ArgumentTypeMismatch { @@ -57083,10 +66990,10 @@ pub mod api { }, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -57094,9 +67001,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct WasmGadget { pub runtime: runtime_types::tangle_primitives::services::WasmRuntime, pub sources: runtime_types::bounded_collections::bounded_vec::BoundedVec< @@ -57104,10 +67015,10 @@ pub mod api { >, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, @@ -57115,9 +67026,13 @@ pub mod api { serde :: Deserialize, serde :: Serialize, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub enum WasmRuntime { #[codec(index = 0)] Wasmtime, @@ -57131,18 +67046,22 @@ pub mod api { pub mod opaque { use super::runtime_types; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode" + )] pub struct SessionKeys { pub babe: runtime_types::sp_consensus_babe::app::Public, pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, @@ -57150,197 +67069,199 @@ pub mod api { } } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NposSolution16 { - pub votes1: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + pub votes1: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes2: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes2: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, ( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ), - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes3: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes3: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 2usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes4: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes4: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 3usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes5: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes5: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 4usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes6: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes6: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 5usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes7: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes7: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 6usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes8: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes8: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 7usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes9: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes9: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 8usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes10: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes10: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 9usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes11: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes11: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 10usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes12: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes12: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 11usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes13: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes13: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 12usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes14: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes14: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 13usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes15: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes15: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 14usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, - pub votes16: ::subxt_core::alloc::vec::Vec<( - ::subxt_core::ext::codec::Compact<::core::primitive::u32>, + pub votes16: ::subxt::ext::subxt_core::alloc::vec::Vec<( + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u32>, [( - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, - ::subxt_core::ext::codec::Compact< + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact< runtime_types::sp_arithmetic::per_things::PerU16, >, ); 15usize], - ::subxt_core::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::subxt_core::ext::codec::Compact<::core::primitive::u16>, )>, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OriginCaller { #[codec(index = 1)] system( runtime_types::frame_support::dispatch::RawOrigin< - ::subxt_core::utils::AccountId32, + ::subxt::ext::subxt_core::utils::AccountId32, >, ), #[codec(index = 13)] Council( - runtime_types::pallet_collective::RawOrigin<::subxt_core::utils::AccountId32>, + runtime_types::pallet_collective::RawOrigin< + ::subxt::ext::subxt_core::utils::AccountId32, + >, ), #[codec(index = 33)] Ethereum(runtime_types::pallet_ethereum::RawOrigin), @@ -57348,18 +67269,18 @@ pub mod api { Void(runtime_types::sp_core::Void), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ProxyType { #[codec(index = 0)] Any, @@ -57371,32 +67292,32 @@ pub mod api { Staking, } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Runtime; #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeCall { #[codec(index = 1)] System(runtime_types::frame_system::pallet::Call), @@ -57474,30 +67395,20 @@ pub mod api { Services(runtime_types::pallet_services::module::Call), #[codec(index = 52)] Lst(runtime_types::pallet_tangle_lst::pallet::Call), - #[codec(index = 46)] - SygmaAccessSegregator(runtime_types::sygma_access_segregator::pallet::Call), - #[codec(index = 47)] - SygmaBasicFeeHandler(runtime_types::sygma_basic_feehandler::pallet::Call), - #[codec(index = 48)] - SygmaFeeHandlerRouter(runtime_types::sygma_fee_handler_router::pallet::Call), - #[codec(index = 49)] - SygmaPercentageFeeHandler(runtime_types::sygma_percentage_feehandler::pallet::Call), - #[codec(index = 50)] - SygmaBridge(runtime_types::sygma_bridge::pallet::Call), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeError { #[codec(index = 1)] System(runtime_types::frame_system::pallet::Error), @@ -57569,32 +67480,20 @@ pub mod api { Services(runtime_types::pallet_services::module::Error), #[codec(index = 52)] Lst(runtime_types::pallet_tangle_lst::pallet::Error), - #[codec(index = 46)] - SygmaAccessSegregator(runtime_types::sygma_access_segregator::pallet::Error), - #[codec(index = 47)] - SygmaBasicFeeHandler(runtime_types::sygma_basic_feehandler::pallet::Error), - #[codec(index = 48)] - SygmaFeeHandlerRouter(runtime_types::sygma_fee_handler_router::pallet::Error), - #[codec(index = 49)] - SygmaPercentageFeeHandler( - runtime_types::sygma_percentage_feehandler::pallet::Error, - ), - #[codec(index = 50)] - SygmaBridge(runtime_types::sygma_bridge::pallet::Error), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeEvent { #[codec(index = 1)] System(runtime_types::frame_system::pallet::Event), @@ -57668,32 +67567,20 @@ pub mod api { Services(runtime_types::pallet_services::module::Event), #[codec(index = 52)] Lst(runtime_types::pallet_tangle_lst::pallet::Event), - #[codec(index = 46)] - SygmaAccessSegregator(runtime_types::sygma_access_segregator::pallet::Event), - #[codec(index = 47)] - SygmaBasicFeeHandler(runtime_types::sygma_basic_feehandler::pallet::Event), - #[codec(index = 48)] - SygmaFeeHandlerRouter(runtime_types::sygma_fee_handler_router::pallet::Event), - #[codec(index = 49)] - SygmaPercentageFeeHandler( - runtime_types::sygma_percentage_feehandler::pallet::Event, - ), - #[codec(index = 50)] - SygmaBridge(runtime_types::sygma_bridge::pallet::Event), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeFreezeReason { #[codec(index = 24)] NominationPools(runtime_types::pallet_nomination_pools::pallet::FreezeReason), @@ -57701,109 +67588,22 @@ pub mod api { Lst(runtime_types::pallet_tangle_lst::pallet::FreezeReason), } #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, + :: subxt :: ext :: subxt_core :: ext :: codec :: Decode, + :: subxt :: ext :: subxt_core :: ext :: codec :: Encode, + :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType, Clone, Debug, Eq, PartialEq, )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] + # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeHoldReason { #[codec(index = 26)] Preimage(runtime_types::pallet_preimage::pallet::HoldReason), } } - pub mod xcm { - use super::runtime_types; - pub mod v3 { - use super::runtime_types; - pub mod junction { - use super::runtime_types; - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum BodyId { - #[codec(index = 0)] - Unit, - #[codec(index = 1)] - Moniker([::core::primitive::u8; 4usize]), - #[codec(index = 2)] - Index(#[codec(compact)] ::core::primitive::u32), - #[codec(index = 3)] - Executive, - #[codec(index = 4)] - Technical, - #[codec(index = 5)] - Legislative, - #[codec(index = 6)] - Judicial, - #[codec(index = 7)] - Defense, - #[codec(index = 8)] - Administration, - #[codec(index = 9)] - Treasury, - } - #[derive( - :: subxt_core :: ext :: codec :: Decode, - :: subxt_core :: ext :: codec :: Encode, - :: subxt_core :: ext :: scale_decode :: DecodeAsType, - :: subxt_core :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt_core :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt_core :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt_core :: ext :: scale_encode")] - pub enum BodyPart { - #[codec(index = 0)] - Voice, - #[codec(index = 1)] - Members { - #[codec(compact)] - count: ::core::primitive::u32, - }, - #[codec(index = 2)] - Fraction { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - #[codec(index = 3)] - AtLeastProportion { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - #[codec(index = 4)] - MoreThanProportion { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - } - } - } - } } }