diff --git a/proposals/Cargo.toml b/proposals/Cargo.toml index b2d9c94..ed4c290 100644 --- a/proposals/Cargo.toml +++ b/proposals/Cargo.toml @@ -15,7 +15,7 @@ homepage = { workspace = true } [dependencies] scale-codec = { package = 'parity-scale-codec', version = '3.0.0', default-features = false, optional = true, features = ["derive", "max-encoded-len"] } scale-info = { version = "2.1.1", default-features = false, optional = true } -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.43", optional = true } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0", optional = true } num-traits = { version = "0.2.15", default-features = false } typed-builder = { version = "0.14.0", default-features = false, optional = true } tiny-keccak = { version = "2.0.2", features = ["keccak"] } @@ -32,5 +32,5 @@ default = ["std", "evm", "substrate", "scale", "ink"] std = ["scale-codec/std", "scale-info/std", "num-traits/std", "serde", "hex/std", "frame-support/std"] scale = ["scale-codec", "scale-info/derive"] evm = [] -substrate = ["scale", "typed-builder", "frame-support"] +substrate = ["scale", "typed-builder", "frame-support", "serde"] ink = ["scale", "typed-builder"] diff --git a/proposals/src/header.rs b/proposals/src/header.rs index 4cfdb3b..063e405 100644 --- a/proposals/src/header.rs +++ b/proposals/src/header.rs @@ -33,11 +33,23 @@ pub struct FunctionSignature(pub [u8; 4]); scale_codec::MaxEncodedLen ) )] -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] +#[derive(serde::Serialize, serde::Deserialize)] pub struct ResourceId(pub [u8; 32]); /// Proposal Target Chain and its type (6 bytes). -#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, Hash, Ord, PartialOrd)] +#[derive( + Default, + Debug, + Clone, + Copy, + PartialEq, + Eq, + Hash, + Ord, + PartialOrd, + serde::Serialize, + serde::Deserialize, +)] #[cfg_attr( feature = "scale", derive( @@ -47,11 +59,7 @@ pub struct ResourceId(pub [u8; 32]); scale_codec::MaxEncodedLen ) )] -#[cfg_attr( - feature = "std", - derive(Serialize, Deserialize), - serde(tag = "type", content = "id") -)] +#[serde(tag = "type", content = "id")] #[non_exhaustive] pub enum TypedChainId { /// None chain type. @@ -614,7 +622,6 @@ mod tests { assert_eq!(header.nonce(), Nonce::from(0x0001)); } - #[cfg(feature = "std")] #[test] fn serde_works() { #[derive(Debug, Clone, Serialize, Deserialize)] diff --git a/src/evm/contract/protocol_solidity/anchor_handler.rs b/src/evm/contract/protocol_solidity/anchor_handler.rs index fb96b60..a9b255e 100644 --- a/src/evm/contract/protocol_solidity/anchor_handler.rs +++ b/src/evm/contract/protocol_solidity/anchor_handler.rs @@ -7,7 +7,7 @@ pub use anchor_handler_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod anchor_handler_contract { #[rustfmt::skip] @@ -3490,9 +3490,8 @@ pub mod anchor_handler_contract { 51, ]; ///The bytecode of the contract. - pub static ANCHORHANDLERCONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static ANCHORHANDLERCONTRACT_BYTECODE: ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 96, @@ -5879,9 +5878,9 @@ pub mod anchor_handler_contract { 51, ]; ///The deployed bytecode of the contract. - pub static ANCHORHANDLERCONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static ANCHORHANDLERCONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct AnchorHandlerContract(::ethers::contract::Contract); impl ::core::clone::Clone for AnchorHandlerContract { fn clone(&self) -> Self { @@ -5900,7 +5899,10 @@ pub mod anchor_handler_contract { } } impl ::core::fmt::Debug for AnchorHandlerContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(AnchorHandlerContract)) .field(&self.address()) .finish() @@ -5913,13 +5915,11 @@ pub mod anchor_handler_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - ANCHORHANDLERCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + ANCHORHANDLERCONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -6027,12 +6027,16 @@ pub mod anchor_handler_contract { contract_address: ::ethers::core::types::Address, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([184, 250, 55, 54], (resource_id, contract_address)) + .method_hash( + [184, 250, 55, 54], + (resource_id, contract_address), + ) .expect("method not found (this should never happen)") } } - impl From<::ethers::contract::Contract> - for AnchorHandlerContract { + impl + From<::ethers::contract::Contract> for AnchorHandlerContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -6048,7 +6052,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "_bridgeAddress", abi = "_bridgeAddress()")] pub struct BridgeAddressCall; @@ -6063,13 +6067,15 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_contractAddressToResourceID", abi = "_contractAddressToResourceID(address)" )] - pub struct ContractAddressToResourceIDCall(pub ::ethers::core::types::Address); + pub struct ContractAddressToResourceIDCall( + pub ::ethers::core::types::Address, + ); ///Container type for all input parameters for the `_contractWhitelist` function with signature `_contractWhitelist(address)` and selector `0x7f79bea8` #[derive( Clone, @@ -6081,7 +6087,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "_contractWhitelist", abi = "_contractWhitelist(address)")] pub struct ContractWhitelistCall(pub ::ethers::core::types::Address); @@ -6096,7 +6102,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_resourceIDToContractAddress", @@ -6114,7 +6120,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "executeProposal", abi = "executeProposal(bytes32,bytes)")] pub struct ExecuteProposalCall { @@ -6132,7 +6138,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "migrateBridge", abi = "migrateBridge(address)")] pub struct MigrateBridgeCall { @@ -6149,7 +6155,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setResource", abi = "setResource(bytes32,address)")] pub struct SetResourceCall { @@ -6165,7 +6171,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum AnchorHandlerContractCalls { BridgeAddress(BridgeAddressCall), @@ -6179,10 +6185,14 @@ pub mod anchor_handler_contract { impl ::ethers::core::abi::AbiDecode for AnchorHandlerContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::BridgeAddress(decoded)); } if let Ok(decoded) @@ -6203,16 +6213,25 @@ pub mod anchor_handler_contract { ) { return Ok(Self::ResourceIDToContractAddress(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ExecuteProposal(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::MigrateBridge(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::SetResource(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -6246,19 +6265,32 @@ pub mod anchor_handler_contract { } } impl ::core::fmt::Display for AnchorHandlerContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::BridgeAddress(element) => ::core::fmt::Display::fmt(element, f), + Self::BridgeAddress(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ContractAddressToResourceID(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ContractWhitelist(element) => ::core::fmt::Display::fmt(element, f), + Self::ContractWhitelist(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ResourceIDToContractAddress(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ExecuteProposal(element) => ::core::fmt::Display::fmt(element, f), - Self::MigrateBridge(element) => ::core::fmt::Display::fmt(element, f), - Self::SetResource(element) => ::core::fmt::Display::fmt(element, f), + Self::ExecuteProposal(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MigrateBridge(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetResource(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -6268,18 +6300,22 @@ pub mod anchor_handler_contract { } } impl ::core::convert::From - for AnchorHandlerContractCalls { + for AnchorHandlerContractCalls + { fn from(value: ContractAddressToResourceIDCall) -> Self { Self::ContractAddressToResourceID(value) } } - impl ::core::convert::From for AnchorHandlerContractCalls { + impl ::core::convert::From + for AnchorHandlerContractCalls + { fn from(value: ContractWhitelistCall) -> Self { Self::ContractWhitelist(value) } } impl ::core::convert::From - for AnchorHandlerContractCalls { + for AnchorHandlerContractCalls + { fn from(value: ResourceIDToContractAddressCall) -> Self { Self::ResourceIDToContractAddress(value) } @@ -6310,7 +6346,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct BridgeAddressReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `_contractAddressToResourceID` function with signature `_contractAddressToResourceID(address)` and selector `0xec97d3b4` @@ -6324,7 +6360,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ContractAddressToResourceIDReturn(pub [u8; 32]); ///Container type for all return fields from the `_contractWhitelist` function with signature `_contractWhitelist(address)` and selector `0x7f79bea8` @@ -6338,7 +6374,7 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ContractWhitelistReturn(pub bool); ///Container type for all return fields from the `_resourceIDToContractAddress` function with signature `_resourceIDToContractAddress(bytes32)` and selector `0xc54c2a11` @@ -6352,7 +6388,9 @@ pub mod anchor_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] - pub struct ResourceIDToContractAddressReturn(pub ::ethers::core::types::Address); + pub struct ResourceIDToContractAddressReturn( + pub ::ethers::core::types::Address, + ); } diff --git a/src/evm/contract/protocol_solidity/erc20_preset_minter_pauser.rs b/src/evm/contract/protocol_solidity/erc20_preset_minter_pauser.rs index 6d31d33..08cd054 100644 --- a/src/evm/contract/protocol_solidity/erc20_preset_minter_pauser.rs +++ b/src/evm/contract/protocol_solidity/erc20_preset_minter_pauser.rs @@ -7,7 +7,7 @@ pub use erc20_preset_minter_pauser_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod erc20_preset_minter_pauser_contract { #[rustfmt::skip] @@ -7465,9 +7465,9 @@ pub mod erc20_preset_minter_pauser_contract { 51, ]; ///The bytecode of the contract. - pub static ERC20PRESETMINTERPAUSERCONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static ERC20PRESETMINTERPAUSERCONTRACT_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 96, @@ -13782,10 +13782,12 @@ pub mod erc20_preset_minter_pauser_contract { 51, ]; ///The deployed bytecode of the contract. - pub static ERC20PRESETMINTERPAUSERCONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, + pub static ERC20PRESETMINTERPAUSERCONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); + pub struct ERC20PresetMinterPauserContract( + ::ethers::contract::Contract, ); - pub struct ERC20PresetMinterPauserContract(::ethers::contract::Contract); impl ::core::clone::Clone for ERC20PresetMinterPauserContract { fn clone(&self) -> Self { Self(::core::clone::Clone::clone(&self.0)) @@ -13803,7 +13805,10 @@ pub mod erc20_preset_minter_pauser_contract { } } impl ::core::fmt::Debug for ERC20PresetMinterPauserContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(ERC20PresetMinterPauserContract)) .field(&self.address()) .finish() @@ -13816,13 +13821,11 @@ pub mod erc20_preset_minter_pauser_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - ERC20PRESETMINTERPAUSERCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + ERC20PRESETMINTERPAUSERCONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -13892,7 +13895,10 @@ pub mod erc20_preset_minter_pauser_contract { &self, owner: ::ethers::core::types::Address, spender: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([221, 98, 237, 62], (owner, spender)) .expect("method not found (this should never happen)") @@ -13911,7 +13917,10 @@ pub mod erc20_preset_minter_pauser_contract { pub fn balance_of( &self, account: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([112, 160, 130, 49], account) .expect("method not found (this should never happen)") @@ -13936,7 +13945,9 @@ pub mod erc20_preset_minter_pauser_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `decimals` (0x313ce567) function - pub fn decimals(&self) -> ::ethers::contract::builders::ContractCall { + pub fn decimals( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([49, 60, 229, 103], ()) .expect("method not found (this should never happen)") @@ -13977,7 +13988,10 @@ pub mod erc20_preset_minter_pauser_contract { pub fn get_role_member_count( &self, role: [u8; 32], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([202, 21, 200, 115], role) .expect("method not found (this should never happen)") @@ -14025,19 +14039,24 @@ pub mod erc20_preset_minter_pauser_contract { ///Calls the contract's `name` (0x06fdde03) function pub fn name( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall + { self.0 .method_hash([6, 253, 222, 3], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `pause` (0x8456cb59) function - pub fn pause(&self) -> ::ethers::contract::builders::ContractCall { + pub fn pause( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([132, 86, 203, 89], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `paused` (0x5c975abb) function - pub fn paused(&self) -> ::ethers::contract::builders::ContractCall { + pub fn paused( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([92, 151, 90, 187], ()) .expect("method not found (this should never happen)") @@ -14074,7 +14093,8 @@ pub mod erc20_preset_minter_pauser_contract { ///Calls the contract's `symbol` (0x95d89b41) function pub fn symbol( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall + { self.0 .method_hash([149, 216, 155, 65], ()) .expect("method not found (this should never happen)") @@ -14082,7 +14102,10 @@ pub mod erc20_preset_minter_pauser_contract { ///Calls the contract's `totalSupply` (0x18160ddd) function pub fn total_supply( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([24, 22, 13, 221], ()) .expect("method not found (this should never happen)") @@ -14109,7 +14132,9 @@ pub mod erc20_preset_minter_pauser_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `unpause` (0x3f4ba83a) function - pub fn unpause(&self) -> ::ethers::contract::builders::ContractCall { + pub fn unpause( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([63, 75, 168, 58], ()) .expect("method not found (this should never happen)") @@ -14127,7 +14152,11 @@ pub mod erc20_preset_minter_pauser_contract { ///Gets the contract's `Paused` event pub fn paused_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + PausedFilter, + > { self.0.event() } ///Gets the contract's `RoleAdminChanged` event @@ -14188,11 +14217,14 @@ pub mod erc20_preset_minter_pauser_contract { M, ERC20PresetMinterPauserContractEvents, > { - self.0.event_with_filter(::core::default::Default::default()) + self.0 + .event_with_filter(::core::default::Default::default()) } } - impl From<::ethers::contract::Contract> - for ERC20PresetMinterPauserContract { + impl + From<::ethers::contract::Contract> + for ERC20PresetMinterPauserContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -14207,7 +14239,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Approval", abi = "Approval(address,address,uint256)")] pub struct ApprovalFilter { @@ -14227,7 +14259,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Paused", abi = "Paused(address)")] pub struct PausedFilter { @@ -14243,7 +14275,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "RoleAdminChanged", @@ -14267,9 +14299,12 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "RoleGranted", + abi = "RoleGranted(bytes32,address,address)" )] - #[ethevent(name = "RoleGranted", abi = "RoleGranted(bytes32,address,address)")] pub struct RoleGrantedFilter { #[ethevent(indexed)] pub role: [u8; 32], @@ -14288,9 +14323,12 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "RoleRevoked", + abi = "RoleRevoked(bytes32,address,address)" )] - #[ethevent(name = "RoleRevoked", abi = "RoleRevoked(bytes32,address,address)")] pub struct RoleRevokedFilter { #[ethevent(indexed)] pub role: [u8; 32], @@ -14309,7 +14347,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Transfer", abi = "Transfer(address,address,uint256)")] pub struct TransferFilter { @@ -14329,7 +14367,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] pub struct UnpausedFilter { @@ -14344,7 +14382,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum ERC20PresetMinterPauserContractEvents { ApprovalFilter(ApprovalFilter), @@ -14355,17 +14393,25 @@ pub mod erc20_preset_minter_pauser_contract { TransferFilter(TransferFilter), UnpausedFilter(UnpausedFilter), } - impl ::ethers::contract::EthLogDecode for ERC20PresetMinterPauserContractEvents { + impl ::ethers::contract::EthLogDecode + for ERC20PresetMinterPauserContractEvents + { fn decode_log( log: &::ethers::core::abi::RawLog, ) -> ::core::result::Result { if let Ok(decoded) = ApprovalFilter::decode_log(log) { return Ok( - ERC20PresetMinterPauserContractEvents::ApprovalFilter(decoded), + ERC20PresetMinterPauserContractEvents::ApprovalFilter( + decoded, + ), ); } if let Ok(decoded) = PausedFilter::decode_log(log) { - return Ok(ERC20PresetMinterPauserContractEvents::PausedFilter(decoded)); + return Ok( + ERC20PresetMinterPauserContractEvents::PausedFilter( + decoded, + ), + ); } if let Ok(decoded) = RoleAdminChangedFilter::decode_log(log) { return Ok( @@ -14376,79 +14422,110 @@ pub mod erc20_preset_minter_pauser_contract { } if let Ok(decoded) = RoleGrantedFilter::decode_log(log) { return Ok( - ERC20PresetMinterPauserContractEvents::RoleGrantedFilter(decoded), + ERC20PresetMinterPauserContractEvents::RoleGrantedFilter( + decoded, + ), ); } if let Ok(decoded) = RoleRevokedFilter::decode_log(log) { return Ok( - ERC20PresetMinterPauserContractEvents::RoleRevokedFilter(decoded), + ERC20PresetMinterPauserContractEvents::RoleRevokedFilter( + decoded, + ), ); } if let Ok(decoded) = TransferFilter::decode_log(log) { return Ok( - ERC20PresetMinterPauserContractEvents::TransferFilter(decoded), + ERC20PresetMinterPauserContractEvents::TransferFilter( + decoded, + ), ); } if let Ok(decoded) = UnpausedFilter::decode_log(log) { return Ok( - ERC20PresetMinterPauserContractEvents::UnpausedFilter(decoded), + ERC20PresetMinterPauserContractEvents::UnpausedFilter( + decoded, + ), ); } Err(::ethers::core::abi::Error::InvalidData) } } impl ::core::fmt::Display for ERC20PresetMinterPauserContractEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::ApprovalFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::ApprovalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::PausedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::RoleAdminChangedFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::RoleGrantedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::RoleRevokedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::TransferFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::RoleGrantedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RoleRevokedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::TransferFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnpausedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } impl ::core::convert::From - for ERC20PresetMinterPauserContractEvents { + for ERC20PresetMinterPauserContractEvents + { fn from(value: ApprovalFilter) -> Self { Self::ApprovalFilter(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractEvents { + impl ::core::convert::From + for ERC20PresetMinterPauserContractEvents + { fn from(value: PausedFilter) -> Self { Self::PausedFilter(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractEvents { + for ERC20PresetMinterPauserContractEvents + { fn from(value: RoleAdminChangedFilter) -> Self { Self::RoleAdminChangedFilter(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractEvents { + for ERC20PresetMinterPauserContractEvents + { fn from(value: RoleGrantedFilter) -> Self { Self::RoleGrantedFilter(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractEvents { + for ERC20PresetMinterPauserContractEvents + { fn from(value: RoleRevokedFilter) -> Self { Self::RoleRevokedFilter(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractEvents { + for ERC20PresetMinterPauserContractEvents + { fn from(value: TransferFilter) -> Self { Self::TransferFilter(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractEvents { + for ERC20PresetMinterPauserContractEvents + { fn from(value: UnpausedFilter) -> Self { Self::UnpausedFilter(value) } @@ -14464,7 +14541,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "DEFAULT_ADMIN_ROLE", abi = "DEFAULT_ADMIN_ROLE()")] pub struct DefaultAdminRoleCall; @@ -14479,7 +14556,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "MINTER_ROLE", abi = "MINTER_ROLE()")] pub struct MinterRoleCall; @@ -14494,7 +14571,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "PAUSER_ROLE", abi = "PAUSER_ROLE()")] pub struct PauserRoleCall; @@ -14509,7 +14586,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "allowance", abi = "allowance(address,address)")] pub struct AllowanceCall { @@ -14527,7 +14604,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "approve", abi = "approve(address,uint256)")] pub struct ApproveCall { @@ -14545,7 +14622,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "balanceOf", abi = "balanceOf(address)")] pub struct BalanceOfCall { @@ -14562,7 +14639,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "burn", abi = "burn(uint256)")] pub struct BurnCall { @@ -14579,7 +14656,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "burnFrom", abi = "burnFrom(address,uint256)")] pub struct BurnFromCall { @@ -14597,7 +14674,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "decimals", abi = "decimals()")] pub struct DecimalsCall; @@ -14612,9 +14689,12 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "decreaseAllowance", + abi = "decreaseAllowance(address,uint256)" )] - #[ethcall(name = "decreaseAllowance", abi = "decreaseAllowance(address,uint256)")] pub struct DecreaseAllowanceCall { pub spender: ::ethers::core::types::Address, pub subtracted_value: ::ethers::core::types::U256, @@ -14630,7 +14710,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleAdmin", abi = "getRoleAdmin(bytes32)")] pub struct GetRoleAdminCall { @@ -14647,7 +14727,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleMember", abi = "getRoleMember(bytes32,uint256)")] pub struct GetRoleMemberCall { @@ -14665,7 +14745,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleMemberCount", abi = "getRoleMemberCount(bytes32)")] pub struct GetRoleMemberCountCall { @@ -14682,7 +14762,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "grantRole", abi = "grantRole(bytes32,address)")] pub struct GrantRoleCall { @@ -14700,7 +14780,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hasRole", abi = "hasRole(bytes32,address)")] pub struct HasRoleCall { @@ -14718,9 +14798,12 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "increaseAllowance", + abi = "increaseAllowance(address,uint256)" )] - #[ethcall(name = "increaseAllowance", abi = "increaseAllowance(address,uint256)")] pub struct IncreaseAllowanceCall { pub spender: ::ethers::core::types::Address, pub added_value: ::ethers::core::types::U256, @@ -14736,7 +14819,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "mint", abi = "mint(address,uint256)")] pub struct MintCall { @@ -14754,7 +14837,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "name", abi = "name()")] pub struct NameCall; @@ -14769,7 +14852,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "pause", abi = "pause()")] pub struct PauseCall; @@ -14784,7 +14867,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "paused", abi = "paused()")] pub struct PausedCall; @@ -14799,7 +14882,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "renounceRole", abi = "renounceRole(bytes32,address)")] pub struct RenounceRoleCall { @@ -14817,7 +14900,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "revokeRole", abi = "revokeRole(bytes32,address)")] pub struct RevokeRoleCall { @@ -14835,7 +14918,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "supportsInterface", abi = "supportsInterface(bytes4)")] pub struct SupportsInterfaceCall { @@ -14852,7 +14935,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "symbol", abi = "symbol()")] pub struct SymbolCall; @@ -14867,7 +14950,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "totalSupply", abi = "totalSupply()")] pub struct TotalSupplyCall; @@ -14882,7 +14965,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "transfer", abi = "transfer(address,uint256)")] pub struct TransferCall { @@ -14900,9 +14983,12 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "transferFrom", + abi = "transferFrom(address,address,uint256)" )] - #[ethcall(name = "transferFrom", abi = "transferFrom(address,address,uint256)")] pub struct TransferFromCall { pub from: ::ethers::core::types::Address, pub to: ::ethers::core::types::Address, @@ -14919,7 +15005,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unpause", abi = "unpause()")] pub struct UnpauseCall; @@ -14932,7 +15018,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum ERC20PresetMinterPauserContractCalls { DefaultAdminRole(DefaultAdminRoleCall), @@ -14967,44 +15053,54 @@ pub mod erc20_preset_minter_pauser_contract { impl ::ethers::core::abi::AbiDecode for ERC20PresetMinterPauserContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::DefaultAdminRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::MinterRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::PauserRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Allowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Approve(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::BalanceOf(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Burn(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::BurnFrom(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Decimals(decoded)); } if let Ok(decoded) @@ -15013,12 +15109,18 @@ pub mod erc20_preset_minter_pauser_contract { ) { return Ok(Self::DecreaseAllowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetRoleAdmin(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetRoleMember(decoded)); } if let Ok(decoded) @@ -15027,12 +15129,14 @@ pub mod erc20_preset_minter_pauser_contract { ) { return Ok(Self::GetRoleMemberCount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GrantRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::HasRole(decoded)); } if let Ok(decoded) @@ -15041,28 +15145,36 @@ pub mod erc20_preset_minter_pauser_contract { ) { return Ok(Self::IncreaseAllowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Mint(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Name(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Pause(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Paused(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::RenounceRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::RevokeRole(decoded)); } if let Ok(decoded) @@ -15071,24 +15183,33 @@ pub mod erc20_preset_minter_pauser_contract { ) { return Ok(Self::SupportsInterface(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Symbol(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::TotalSupply(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Transfer(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::TransferFrom(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Unpause(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -15109,11 +15230,15 @@ pub mod erc20_preset_minter_pauser_contract { Self::Allowance(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Approve(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Approve(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::BalanceOf(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Burn(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Burn(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::BurnFrom(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -15135,14 +15260,24 @@ pub mod erc20_preset_minter_pauser_contract { Self::GrantRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::HasRole(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::HasRole(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::IncreaseAllowance(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Mint(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Name(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Pause(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Paused(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Mint(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Name(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Pause(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Paused(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::RenounceRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -15152,7 +15287,9 @@ pub mod erc20_preset_minter_pauser_contract { Self::SupportsInterface(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Symbol(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Symbol(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::TotalSupply(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -15162,73 +15299,125 @@ pub mod erc20_preset_minter_pauser_contract { Self::TransferFrom(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Unpause(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Unpause(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } } } } impl ::core::fmt::Display for ERC20PresetMinterPauserContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::DefaultAdminRole(element) => ::core::fmt::Display::fmt(element, f), - Self::MinterRole(element) => ::core::fmt::Display::fmt(element, f), - Self::PauserRole(element) => ::core::fmt::Display::fmt(element, f), - Self::Allowance(element) => ::core::fmt::Display::fmt(element, f), + Self::DefaultAdminRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MinterRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::PauserRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Allowance(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Approve(element) => ::core::fmt::Display::fmt(element, f), - Self::BalanceOf(element) => ::core::fmt::Display::fmt(element, f), + Self::BalanceOf(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Burn(element) => ::core::fmt::Display::fmt(element, f), - Self::BurnFrom(element) => ::core::fmt::Display::fmt(element, f), - Self::Decimals(element) => ::core::fmt::Display::fmt(element, f), - Self::DecreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::GetRoleAdmin(element) => ::core::fmt::Display::fmt(element, f), - Self::GetRoleMember(element) => ::core::fmt::Display::fmt(element, f), + Self::BurnFrom(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Decimals(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::DecreaseAllowance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetRoleAdmin(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetRoleMember(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::GetRoleMemberCount(element) => { ::core::fmt::Display::fmt(element, f) } - Self::GrantRole(element) => ::core::fmt::Display::fmt(element, f), + Self::GrantRole(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::HasRole(element) => ::core::fmt::Display::fmt(element, f), - Self::IncreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), + Self::IncreaseAllowance(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Mint(element) => ::core::fmt::Display::fmt(element, f), Self::Name(element) => ::core::fmt::Display::fmt(element, f), Self::Pause(element) => ::core::fmt::Display::fmt(element, f), Self::Paused(element) => ::core::fmt::Display::fmt(element, f), - Self::RenounceRole(element) => ::core::fmt::Display::fmt(element, f), - Self::RevokeRole(element) => ::core::fmt::Display::fmt(element, f), - Self::SupportsInterface(element) => ::core::fmt::Display::fmt(element, f), + Self::RenounceRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RevokeRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SupportsInterface(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Symbol(element) => ::core::fmt::Display::fmt(element, f), - Self::TotalSupply(element) => ::core::fmt::Display::fmt(element, f), - Self::Transfer(element) => ::core::fmt::Display::fmt(element, f), - Self::TransferFrom(element) => ::core::fmt::Display::fmt(element, f), + Self::TotalSupply(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Transfer(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::TransferFrom(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Unpause(element) => ::core::fmt::Display::fmt(element, f), } } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: DefaultAdminRoleCall) -> Self { Self::DefaultAdminRole(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: MinterRoleCall) -> Self { Self::MinterRole(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: PauserRoleCall) -> Self { Self::PauserRole(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: AllowanceCall) -> Self { Self::Allowance(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: ApproveCall) -> Self { Self::Approve(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: BalanceOfCall) -> Self { Self::BalanceOf(value) } @@ -15238,52 +15427,65 @@ pub mod erc20_preset_minter_pauser_contract { Self::Burn(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: BurnFromCall) -> Self { Self::BurnFrom(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: DecimalsCall) -> Self { Self::Decimals(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: DecreaseAllowanceCall) -> Self { Self::DecreaseAllowance(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: GetRoleAdminCall) -> Self { Self::GetRoleAdmin(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: GetRoleMemberCall) -> Self { Self::GetRoleMember(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: GetRoleMemberCountCall) -> Self { Self::GetRoleMemberCount(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: GrantRoleCall) -> Self { Self::GrantRole(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: HasRoleCall) -> Self { Self::HasRole(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: IncreaseAllowanceCall) -> Self { Self::IncreaseAllowance(value) } @@ -15303,51 +15505,65 @@ pub mod erc20_preset_minter_pauser_contract { Self::Pause(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: PausedCall) -> Self { Self::Paused(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: RenounceRoleCall) -> Self { Self::RenounceRole(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: RevokeRoleCall) -> Self { Self::RevokeRole(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: SupportsInterfaceCall) -> Self { Self::SupportsInterface(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: SymbolCall) -> Self { Self::Symbol(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: TotalSupplyCall) -> Self { Self::TotalSupply(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: TransferCall) -> Self { Self::Transfer(value) } } impl ::core::convert::From - for ERC20PresetMinterPauserContractCalls { + for ERC20PresetMinterPauserContractCalls + { fn from(value: TransferFromCall) -> Self { Self::TransferFrom(value) } } - impl ::core::convert::From for ERC20PresetMinterPauserContractCalls { + impl ::core::convert::From + for ERC20PresetMinterPauserContractCalls + { fn from(value: UnpauseCall) -> Self { Self::Unpause(value) } @@ -15363,7 +15579,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DefaultAdminRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `MINTER_ROLE` function with signature `MINTER_ROLE()` and selector `0xd5391393` @@ -15377,7 +15593,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MinterRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `PAUSER_ROLE` function with signature `PAUSER_ROLE()` and selector `0xe63ab1e9` @@ -15391,7 +15607,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PauserRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `allowance` function with signature `allowance(address,address)` and selector `0xdd62ed3e` @@ -15405,7 +15621,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct AllowanceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `approve` function with signature `approve(address,uint256)` and selector `0x095ea7b3` @@ -15419,7 +15635,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ApproveReturn(pub bool); ///Container type for all return fields from the `balanceOf` function with signature `balanceOf(address)` and selector `0x70a08231` @@ -15433,7 +15649,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct BalanceOfReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `decimals` function with signature `decimals()` and selector `0x313ce567` @@ -15447,7 +15663,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DecimalsReturn(pub u8); ///Container type for all return fields from the `decreaseAllowance` function with signature `decreaseAllowance(address,uint256)` and selector `0xa457c2d7` @@ -15461,7 +15677,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DecreaseAllowanceReturn(pub bool); ///Container type for all return fields from the `getRoleAdmin` function with signature `getRoleAdmin(bytes32)` and selector `0x248a9ca3` @@ -15475,7 +15691,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleAdminReturn(pub [u8; 32]); ///Container type for all return fields from the `getRoleMember` function with signature `getRoleMember(bytes32,uint256)` and selector `0x9010d07c` @@ -15489,7 +15705,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleMemberReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `getRoleMemberCount` function with signature `getRoleMemberCount(bytes32)` and selector `0xca15c873` @@ -15503,7 +15719,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleMemberCountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `hasRole` function with signature `hasRole(bytes32,address)` and selector `0x91d14854` @@ -15517,7 +15733,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HasRoleReturn(pub bool); ///Container type for all return fields from the `increaseAllowance` function with signature `increaseAllowance(address,uint256)` and selector `0x39509351` @@ -15531,7 +15747,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IncreaseAllowanceReturn(pub bool); ///Container type for all return fields from the `name` function with signature `name()` and selector `0x06fdde03` @@ -15545,7 +15761,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct NameReturn(pub ::std::string::String); ///Container type for all return fields from the `paused` function with signature `paused()` and selector `0x5c975abb` @@ -15559,7 +15775,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PausedReturn(pub bool); ///Container type for all return fields from the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7` @@ -15573,7 +15789,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct SupportsInterfaceReturn(pub bool); ///Container type for all return fields from the `symbol` function with signature `symbol()` and selector `0x95d89b41` @@ -15587,7 +15803,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct SymbolReturn(pub ::std::string::String); ///Container type for all return fields from the `totalSupply` function with signature `totalSupply()` and selector `0x18160ddd` @@ -15601,7 +15817,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TotalSupplyReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `transfer` function with signature `transfer(address,uint256)` and selector `0xa9059cbb` @@ -15615,7 +15831,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TransferReturn(pub bool); ///Container type for all return fields from the `transferFrom` function with signature `transferFrom(address,address,uint256)` and selector `0x23b872dd` @@ -15629,7 +15845,7 @@ pub mod erc20_preset_minter_pauser_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TransferFromReturn(pub bool); } diff --git a/src/evm/contract/protocol_solidity/fungible_token_wrapper.rs b/src/evm/contract/protocol_solidity/fungible_token_wrapper.rs index 14a80cf..fc79110 100644 --- a/src/evm/contract/protocol_solidity/fungible_token_wrapper.rs +++ b/src/evm/contract/protocol_solidity/fungible_token_wrapper.rs @@ -7,7 +7,7 @@ pub use fungible_token_wrapper_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod fungible_token_wrapper_contract { #[rustfmt::skip] @@ -18335,9 +18335,9 @@ pub mod fungible_token_wrapper_contract { 51, ]; ///The bytecode of the contract. - pub static FUNGIBLETOKENWRAPPERCONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static FUNGIBLETOKENWRAPPERCONTRACT_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 96, @@ -35413,9 +35413,9 @@ pub mod fungible_token_wrapper_contract { 51, ]; ///The deployed bytecode of the contract. - pub static FUNGIBLETOKENWRAPPERCONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static FUNGIBLETOKENWRAPPERCONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct FungibleTokenWrapperContract(::ethers::contract::Contract); impl ::core::clone::Clone for FungibleTokenWrapperContract { fn clone(&self) -> Self { @@ -35434,7 +35434,10 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::fmt::Debug for FungibleTokenWrapperContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(FungibleTokenWrapperContract)) .field(&self.address()) .finish() @@ -35447,13 +35450,11 @@ pub mod fungible_token_wrapper_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - FUNGIBLETOKENWRAPPERCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + FUNGIBLETOKENWRAPPERCONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -35533,7 +35534,10 @@ pub mod fungible_token_wrapper_contract { &self, owner: ::ethers::core::types::Address, spender: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([221, 98, 237, 62], (owner, spender)) .expect("method not found (this should never happen)") @@ -35552,7 +35556,10 @@ pub mod fungible_token_wrapper_contract { pub fn balance_of( &self, account: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([112, 160, 130, 49], account) .expect("method not found (this should never happen)") @@ -35577,7 +35584,9 @@ pub mod fungible_token_wrapper_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `decimals` (0x313ce567) function - pub fn decimals(&self) -> ::ethers::contract::builders::ContractCall { + pub fn decimals( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([49, 60, 229, 103], ()) .expect("method not found (this should never happen)") @@ -35615,13 +35624,18 @@ pub mod fungible_token_wrapper_contract { pub fn get_amount_to_wrap( &self, deposit: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([150, 205, 77, 254], deposit) .expect("method not found (this should never happen)") } ///Calls the contract's `getFee` (0xced72f87) function - pub fn get_fee(&self) -> ::ethers::contract::builders::ContractCall { + pub fn get_fee( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([206, 215, 47, 135], ()) .expect("method not found (this should never happen)") @@ -35630,7 +35644,10 @@ pub mod fungible_token_wrapper_contract { pub fn get_fee_from_amount( &self, amount_to_wrap: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([133, 192, 10, 232], amount_to_wrap) .expect("method not found (this should never happen)") @@ -35638,7 +35655,10 @@ pub mod fungible_token_wrapper_contract { ///Calls the contract's `getProposalNonce` (0x0b27fb9a) function pub fn get_proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([11, 39, 251, 154], ()) .expect("method not found (this should never happen)") @@ -35669,7 +35689,10 @@ pub mod fungible_token_wrapper_contract { pub fn get_role_member_count( &self, role: [u8; 32], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([202, 21, 200, 115], role) .expect("method not found (this should never happen)") @@ -35809,19 +35832,24 @@ pub mod fungible_token_wrapper_contract { ///Calls the contract's `name` (0x06fdde03) function pub fn name( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall + { self.0 .method_hash([6, 253, 222, 3], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `pause` (0x8456cb59) function - pub fn pause(&self) -> ::ethers::contract::builders::ContractCall { + pub fn pause( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([132, 86, 203, 89], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `paused` (0x5c975abb) function - pub fn paused(&self) -> ::ethers::contract::builders::ContractCall { + pub fn paused( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([92, 151, 90, 187], ()) .expect("method not found (this should never happen)") @@ -35829,7 +35857,10 @@ pub mod fungible_token_wrapper_contract { ///Calls the contract's `proposalNonce` (0xcc3c74a1) function pub fn proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([204, 60, 116, 161], ()) .expect("method not found (this should never happen)") @@ -35914,7 +35945,8 @@ pub mod fungible_token_wrapper_contract { ///Calls the contract's `symbol` (0x95d89b41) function pub fn symbol( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall + { self.0 .method_hash([149, 216, 155, 65], ()) .expect("method not found (this should never happen)") @@ -35934,7 +35966,10 @@ pub mod fungible_token_wrapper_contract { ///Calls the contract's `totalSupply` (0x18160ddd) function pub fn total_supply( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([24, 22, 13, 221], ()) .expect("method not found (this should never happen)") @@ -35961,7 +35996,9 @@ pub mod fungible_token_wrapper_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `unpause` (0x3f4ba83a) function - pub fn unpause(&self) -> ::ethers::contract::builders::ContractCall { + pub fn unpause( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([63, 75, 168, 58], ()) .expect("method not found (this should never happen)") @@ -35984,7 +36021,10 @@ pub mod fungible_token_wrapper_contract { recipient: ::ethers::core::types::Address, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([72, 8, 40, 94], (token_address, amount, recipient)) + .method_hash( + [72, 8, 40, 94], + (token_address, amount, recipient), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `unwrapFor` (0x261c80b6) function @@ -35995,7 +36035,10 @@ pub mod fungible_token_wrapper_contract { amount: ::ethers::core::types::U256, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([38, 28, 128, 182], (sender, token_address, amount)) + .method_hash( + [38, 28, 128, 182], + (sender, token_address, amount), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `updateLimit` (0xfae0959a) function @@ -36034,7 +36077,10 @@ pub mod fungible_token_wrapper_contract { amount: ::ethers::core::types::U256, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([44, 166, 147, 136], (sender, token_address, amount)) + .method_hash( + [44, 166, 147, 136], + (sender, token_address, amount), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `wrapForAndSendTo` (0x7b2e30d6) function @@ -36055,7 +36101,10 @@ pub mod fungible_token_wrapper_contract { ///Calls the contract's `wrappingLimit` (0x1f914382) function pub fn wrapping_limit( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([31, 145, 67, 130], ()) .expect("method not found (this should never happen)") @@ -36113,7 +36162,11 @@ pub mod fungible_token_wrapper_contract { ///Gets the contract's `Paused` event pub fn paused_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + PausedFilter, + > { self.0.event() } ///Gets the contract's `RoleAdminChanged` event @@ -36224,11 +36277,14 @@ pub mod fungible_token_wrapper_contract { M, FungibleTokenWrapperContractEvents, > { - self.0.event_with_filter(::core::default::Default::default()) + self.0 + .event_with_filter(::core::default::Default::default()) } } - impl From<::ethers::contract::Contract> - for FungibleTokenWrapperContract { + impl + From<::ethers::contract::Contract> + for FungibleTokenWrapperContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -36243,7 +36299,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Approval", abi = "Approval(address,address,uint256)")] pub struct ApprovalFilter { @@ -36263,9 +36319,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "FeeRecipientUpdated", + abi = "FeeRecipientUpdated(address)" )] - #[ethevent(name = "FeeRecipientUpdated", abi = "FeeRecipientUpdated(address)")] pub struct FeeRecipientUpdatedFilter { pub fee_recipient: ::ethers::core::types::Address, } @@ -36279,7 +36338,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "FeeUpdated", abi = "FeeUpdated(uint16)")] pub struct FeeUpdatedFilter { @@ -36295,7 +36354,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "HandlerUpdated", abi = "HandlerUpdated(address)")] pub struct HandlerUpdatedFilter { @@ -36311,7 +36370,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "NativeAllowed", abi = "NativeAllowed(bool)")] pub struct NativeAllowedFilter { @@ -36327,7 +36386,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Paused", abi = "Paused(address)")] pub struct PausedFilter { @@ -36343,7 +36402,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "RoleAdminChanged", @@ -36367,9 +36426,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "RoleGranted", + abi = "RoleGranted(bytes32,address,address)" )] - #[ethevent(name = "RoleGranted", abi = "RoleGranted(bytes32,address,address)")] pub struct RoleGrantedFilter { #[ethevent(indexed)] pub role: [u8; 32], @@ -36388,9 +36450,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "RoleRevoked", + abi = "RoleRevoked(bytes32,address,address)" )] - #[ethevent(name = "RoleRevoked", abi = "RoleRevoked(bytes32,address,address)")] pub struct RoleRevokedFilter { #[ethevent(indexed)] pub role: [u8; 32], @@ -36409,7 +36474,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "TokenAdded", abi = "TokenAdded(address)")] pub struct TokenAddedFilter { @@ -36425,7 +36490,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "TokenRemoved", abi = "TokenRemoved(address)")] pub struct TokenRemovedFilter { @@ -36441,7 +36506,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Transfer", abi = "Transfer(address,address,uint256)")] pub struct TransferFilter { @@ -36461,7 +36526,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] pub struct UnpausedFilter { @@ -36477,9 +36542,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "Unwrapping", + abi = "Unwrapping(address,address,address,uint256)" )] - #[ethevent(name = "Unwrapping", abi = "Unwrapping(address,address,address,uint256)")] pub struct UnwrappingFilter { #[ethevent(indexed)] pub sender: ::ethers::core::types::Address, @@ -36499,7 +36567,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "Wrapping", @@ -36525,9 +36593,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "WrappingLimitUpdated", + abi = "WrappingLimitUpdated(uint256)" )] - #[ethevent(name = "WrappingLimitUpdated", abi = "WrappingLimitUpdated(uint256)")] pub struct WrappingLimitUpdatedFilter { pub limit: ::ethers::core::types::U256, } @@ -36540,7 +36611,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum FungibleTokenWrapperContractEvents { ApprovalFilter(ApprovalFilter), @@ -36565,7 +36636,9 @@ pub mod fungible_token_wrapper_contract { log: &::ethers::core::abi::RawLog, ) -> ::core::result::Result { if let Ok(decoded) = ApprovalFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::ApprovalFilter(decoded)); + return Ok(FungibleTokenWrapperContractEvents::ApprovalFilter( + decoded, + )); } if let Ok(decoded) = FeeRecipientUpdatedFilter::decode_log(log) { return Ok( @@ -36575,55 +36648,87 @@ pub mod fungible_token_wrapper_contract { ); } if let Ok(decoded) = FeeUpdatedFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::FeeUpdatedFilter(decoded)); + return Ok( + FungibleTokenWrapperContractEvents::FeeUpdatedFilter( + decoded, + ), + ); } if let Ok(decoded) = HandlerUpdatedFilter::decode_log(log) { return Ok( - FungibleTokenWrapperContractEvents::HandlerUpdatedFilter(decoded), + FungibleTokenWrapperContractEvents::HandlerUpdatedFilter( + decoded, + ), ); } if let Ok(decoded) = NativeAllowedFilter::decode_log(log) { return Ok( - FungibleTokenWrapperContractEvents::NativeAllowedFilter(decoded), + FungibleTokenWrapperContractEvents::NativeAllowedFilter( + decoded, + ), ); } if let Ok(decoded) = PausedFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::PausedFilter(decoded)); + return Ok(FungibleTokenWrapperContractEvents::PausedFilter( + decoded, + )); } if let Ok(decoded) = RoleAdminChangedFilter::decode_log(log) { return Ok( - FungibleTokenWrapperContractEvents::RoleAdminChangedFilter(decoded), + FungibleTokenWrapperContractEvents::RoleAdminChangedFilter( + decoded, + ), ); } if let Ok(decoded) = RoleGrantedFilter::decode_log(log) { return Ok( - FungibleTokenWrapperContractEvents::RoleGrantedFilter(decoded), + FungibleTokenWrapperContractEvents::RoleGrantedFilter( + decoded, + ), ); } if let Ok(decoded) = RoleRevokedFilter::decode_log(log) { return Ok( - FungibleTokenWrapperContractEvents::RoleRevokedFilter(decoded), + FungibleTokenWrapperContractEvents::RoleRevokedFilter( + decoded, + ), ); } if let Ok(decoded) = TokenAddedFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::TokenAddedFilter(decoded)); + return Ok( + FungibleTokenWrapperContractEvents::TokenAddedFilter( + decoded, + ), + ); } if let Ok(decoded) = TokenRemovedFilter::decode_log(log) { return Ok( - FungibleTokenWrapperContractEvents::TokenRemovedFilter(decoded), + FungibleTokenWrapperContractEvents::TokenRemovedFilter( + decoded, + ), ); } if let Ok(decoded) = TransferFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::TransferFilter(decoded)); + return Ok(FungibleTokenWrapperContractEvents::TransferFilter( + decoded, + )); } if let Ok(decoded) = UnpausedFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::UnpausedFilter(decoded)); + return Ok(FungibleTokenWrapperContractEvents::UnpausedFilter( + decoded, + )); } if let Ok(decoded) = UnwrappingFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::UnwrappingFilter(decoded)); + return Ok( + FungibleTokenWrapperContractEvents::UnwrappingFilter( + decoded, + ), + ); } if let Ok(decoded) = WrappingFilter::decode_log(log) { - return Ok(FungibleTokenWrapperContractEvents::WrappingFilter(decoded)); + return Ok(FungibleTokenWrapperContractEvents::WrappingFilter( + decoded, + )); } if let Ok(decoded) = WrappingLimitUpdatedFilter::decode_log(log) { return Ok( @@ -36636,123 +36741,170 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::fmt::Display for FungibleTokenWrapperContractEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::ApprovalFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::ApprovalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::FeeRecipientUpdatedFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::FeeUpdatedFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::FeeUpdatedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::HandlerUpdatedFilter(element) => { ::core::fmt::Display::fmt(element, f) } Self::NativeAllowedFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::PausedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::RoleAdminChangedFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::RoleGrantedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::RoleRevokedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::TokenAddedFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::RoleGrantedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RoleRevokedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::TokenAddedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::TokenRemovedFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::TransferFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnwrappingFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::WrappingFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::TransferFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnpausedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnwrappingFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WrappingFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::WrappingLimitUpdatedFilter(element) => { ::core::fmt::Display::fmt(element, f) } } } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: ApprovalFilter) -> Self { Self::ApprovalFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: FeeRecipientUpdatedFilter) -> Self { Self::FeeRecipientUpdatedFilter(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: FeeUpdatedFilter) -> Self { Self::FeeUpdatedFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: HandlerUpdatedFilter) -> Self { Self::HandlerUpdatedFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: NativeAllowedFilter) -> Self { Self::NativeAllowedFilter(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: PausedFilter) -> Self { Self::PausedFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: RoleAdminChangedFilter) -> Self { Self::RoleAdminChangedFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: RoleGrantedFilter) -> Self { Self::RoleGrantedFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: RoleRevokedFilter) -> Self { Self::RoleRevokedFilter(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: TokenAddedFilter) -> Self { Self::TokenAddedFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: TokenRemovedFilter) -> Self { Self::TokenRemovedFilter(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: TransferFilter) -> Self { Self::TransferFilter(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: UnpausedFilter) -> Self { Self::UnpausedFilter(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: UnwrappingFilter) -> Self { Self::UnwrappingFilter(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractEvents { + impl ::core::convert::From + for FungibleTokenWrapperContractEvents + { fn from(value: WrappingFilter) -> Self { Self::WrappingFilter(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractEvents { + for FungibleTokenWrapperContractEvents + { fn from(value: WrappingLimitUpdatedFilter) -> Self { Self::WrappingLimitUpdatedFilter(value) } @@ -36768,7 +36920,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "DEFAULT_ADMIN_ROLE", abi = "DEFAULT_ADMIN_ROLE()")] pub struct DefaultAdminRoleCall; @@ -36783,7 +36935,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "MINTER_ROLE", abi = "MINTER_ROLE()")] pub struct MinterRoleCall; @@ -36798,7 +36950,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "PAUSER_ROLE", abi = "PAUSER_ROLE()")] pub struct PauserRoleCall; @@ -36813,7 +36965,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "add", abi = "add(address,uint32)")] pub struct AddCall { @@ -36831,7 +36983,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "allowance", abi = "allowance(address,address)")] pub struct AllowanceCall { @@ -36849,7 +37001,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "approve", abi = "approve(address,uint256)")] pub struct ApproveCall { @@ -36867,7 +37019,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "balanceOf", abi = "balanceOf(address)")] pub struct BalanceOfCall { @@ -36884,7 +37036,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "burn", abi = "burn(uint256)")] pub struct BurnCall { @@ -36901,7 +37053,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "burnFrom", abi = "burnFrom(address,uint256)")] pub struct BurnFromCall { @@ -36919,7 +37071,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "decimals", abi = "decimals()")] pub struct DecimalsCall; @@ -36934,9 +37086,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "decreaseAllowance", + abi = "decreaseAllowance(address,uint256)" )] - #[ethcall(name = "decreaseAllowance", abi = "decreaseAllowance(address,uint256)")] pub struct DecreaseAllowanceCall { pub spender: ::ethers::core::types::Address, pub subtracted_value: ::ethers::core::types::U256, @@ -36952,7 +37107,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "feePercentage", abi = "feePercentage()")] pub struct FeePercentageCall; @@ -36967,7 +37122,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "feeRecipient", abi = "feeRecipient()")] pub struct FeeRecipientCall; @@ -36982,7 +37137,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getAmountToWrap", abi = "getAmountToWrap(uint256)")] pub struct GetAmountToWrapCall { @@ -36999,7 +37154,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getFee", abi = "getFee()")] pub struct GetFeeCall; @@ -37014,7 +37169,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getFeeFromAmount", abi = "getFeeFromAmount(uint256)")] pub struct GetFeeFromAmountCall { @@ -37031,7 +37186,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getProposalNonce", abi = "getProposalNonce()")] pub struct GetProposalNonceCall; @@ -37046,7 +37201,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleAdmin", abi = "getRoleAdmin(bytes32)")] pub struct GetRoleAdminCall { @@ -37063,7 +37218,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleMember", abi = "getRoleMember(bytes32,uint256)")] pub struct GetRoleMemberCall { @@ -37081,7 +37236,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleMemberCount", abi = "getRoleMemberCount(bytes32)")] pub struct GetRoleMemberCountCall { @@ -37098,7 +37253,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getTokens", abi = "getTokens()")] pub struct GetTokensCall; @@ -37113,7 +37268,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "grantRole", abi = "grantRole(bytes32,address)")] pub struct GrantRoleCall { @@ -37131,7 +37286,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "handler", abi = "handler()")] pub struct HandlerCall; @@ -37146,7 +37301,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hasRole", abi = "hasRole(bytes32,address)")] pub struct HasRoleCall { @@ -37164,7 +37319,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "historicalTokens", abi = "historicalTokens(uint256)")] pub struct HistoricalTokensCall(pub ::ethers::core::types::U256); @@ -37179,7 +37334,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "historicallyValid", abi = "historicallyValid(address)")] pub struct HistoricallyValidCall(pub ::ethers::core::types::Address); @@ -37194,9 +37349,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "increaseAllowance", + abi = "increaseAllowance(address,uint256)" )] - #[ethcall(name = "increaseAllowance", abi = "increaseAllowance(address,uint256)")] pub struct IncreaseAllowanceCall { pub spender: ::ethers::core::types::Address, pub added_value: ::ethers::core::types::U256, @@ -37212,7 +37370,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "initialize", @@ -37237,7 +37395,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "initialized", abi = "initialized()")] pub struct InitializedCall; @@ -37252,7 +37410,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isNativeAllowed", abi = "isNativeAllowed()")] pub struct IsNativeAllowedCall; @@ -37267,7 +37425,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isValidToken", abi = "isValidToken(address)")] pub struct IsValidTokenCall { @@ -37284,7 +37442,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "mint", abi = "mint(address,uint256)")] pub struct MintCall { @@ -37302,7 +37460,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "name", abi = "name()")] pub struct NameCall; @@ -37317,7 +37475,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "pause", abi = "pause()")] pub struct PauseCall; @@ -37332,7 +37490,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "paused", abi = "paused()")] pub struct PausedCall; @@ -37347,7 +37505,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "proposalNonce", abi = "proposalNonce()")] pub struct ProposalNonceCall; @@ -37362,7 +37520,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "remove", abi = "remove(address,uint32)")] pub struct RemoveCall { @@ -37380,7 +37538,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "renounceRole", abi = "renounceRole(bytes32,address)")] pub struct RenounceRoleCall { @@ -37398,7 +37556,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "revokeRole", abi = "revokeRole(bytes32,address)")] pub struct RevokeRoleCall { @@ -37416,7 +37574,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setFee", abi = "setFee(uint16,uint32)")] pub struct SetFeeCall { @@ -37434,9 +37592,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "setFeeRecipient", + abi = "setFeeRecipient(address,uint32)" )] - #[ethcall(name = "setFeeRecipient", abi = "setFeeRecipient(address,uint32)")] pub struct SetFeeRecipientCall { pub fee_recipient: ::ethers::core::types::Address, pub nonce: u32, @@ -37452,7 +37613,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setHandler", abi = "setHandler(address)")] pub struct SetHandlerCall { @@ -37469,7 +37630,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setNativeAllowed", abi = "setNativeAllowed(bool)")] pub struct SetNativeAllowedCall { @@ -37486,7 +37647,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "supportsInterface", abi = "supportsInterface(bytes4)")] pub struct SupportsInterfaceCall { @@ -37503,7 +37664,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "symbol", abi = "symbol()")] pub struct SymbolCall; @@ -37518,7 +37679,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "tokens", abi = "tokens(uint256)")] pub struct TokensCall(pub ::ethers::core::types::U256); @@ -37533,7 +37694,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "totalSupply", abi = "totalSupply()")] pub struct TotalSupplyCall; @@ -37548,7 +37709,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "transfer", abi = "transfer(address,uint256)")] pub struct TransferCall { @@ -37566,9 +37727,12 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "transferFrom", + abi = "transferFrom(address,address,uint256)" )] - #[ethcall(name = "transferFrom", abi = "transferFrom(address,address,uint256)")] pub struct TransferFromCall { pub from: ::ethers::core::types::Address, pub to: ::ethers::core::types::Address, @@ -37585,7 +37749,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unpause", abi = "unpause()")] pub struct UnpauseCall; @@ -37600,7 +37764,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unwrap", abi = "unwrap(address,uint256)")] pub struct UnwrapCall { @@ -37618,7 +37782,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "unwrapAndSendTo", @@ -37640,7 +37804,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unwrapFor", abi = "unwrapFor(address,address,uint256)")] pub struct UnwrapForCall { @@ -37659,7 +37823,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "updateLimit", abi = "updateLimit(uint256)")] pub struct UpdateLimitCall { @@ -37676,7 +37840,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "valid", abi = "valid(address)")] pub struct ValidCall(pub ::ethers::core::types::Address); @@ -37691,7 +37855,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "wrap", abi = "wrap(address,uint256)")] pub struct WrapCall { @@ -37709,7 +37873,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "wrapFor", abi = "wrapFor(address,address,uint256)")] pub struct WrapForCall { @@ -37728,7 +37892,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "wrapForAndSendTo", @@ -37751,7 +37915,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "wrappingLimit", abi = "wrappingLimit()")] pub struct WrappingLimitCall; @@ -37764,7 +37928,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum FungibleTokenWrapperContractCalls { DefaultAdminRole(DefaultAdminRoleCall), @@ -37830,48 +37994,59 @@ pub mod fungible_token_wrapper_contract { impl ::ethers::core::abi::AbiDecode for FungibleTokenWrapperContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::DefaultAdminRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::MinterRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::PauserRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Add(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Allowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Approve(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::BalanceOf(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Burn(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::BurnFrom(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Decimals(decoded)); } if let Ok(decoded) @@ -37880,40 +38055,58 @@ pub mod fungible_token_wrapper_contract { ) { return Ok(Self::DecreaseAllowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::FeePercentage(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::FeeRecipient(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetAmountToWrap(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetFee(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::GetFeeFromAmount(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::GetProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetRoleAdmin(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetRoleMember(decoded)); } if let Ok(decoded) @@ -37922,26 +38115,31 @@ pub mod fungible_token_wrapper_contract { ) { return Ok(Self::GetRoleMemberCount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetTokens(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GrantRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Handler(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::HasRole(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::HistoricalTokens(decoded)); } if let Ok(decoded) @@ -37956,70 +38154,98 @@ pub mod fungible_token_wrapper_contract { ) { return Ok(Self::IncreaseAllowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Initialize(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::Initialized(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsNativeAllowed(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsValidToken(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Mint(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Name(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Pause(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Paused(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Remove(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::RenounceRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::RevokeRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::SetFee(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::SetFeeRecipient(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::SetHandler(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::SetNativeAllowed(decoded)); } if let Ok(decoded) @@ -38028,66 +38254,91 @@ pub mod fungible_token_wrapper_contract { ) { return Ok(Self::SupportsInterface(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Symbol(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Tokens(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::TotalSupply(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Transfer(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::TransferFrom(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Unpause(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Unwrap(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::UnwrapAndSendTo(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::UnwrapFor(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::UpdateLimit(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Valid(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Wrap(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::WrapFor(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::WrapForAndSendTo(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::WrappingLimit(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -38105,15 +38356,21 @@ pub mod fungible_token_wrapper_contract { Self::PauserRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Add(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Add(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::Allowance(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Approve(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Approve(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::BalanceOf(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Burn(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Burn(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::BurnFrom(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -38132,7 +38389,9 @@ pub mod fungible_token_wrapper_contract { Self::GetAmountToWrap(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::GetFee(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::GetFee(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::GetFeeFromAmount(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -38154,8 +38413,12 @@ pub mod fungible_token_wrapper_contract { Self::GrantRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Handler(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::HasRole(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Handler(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::HasRole(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::HistoricalTokens(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -38177,21 +38440,33 @@ pub mod fungible_token_wrapper_contract { Self::IsValidToken(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Mint(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Name(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Pause(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Paused(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Mint(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Name(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Pause(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Paused(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::ProposalNonce(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Remove(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Remove(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::RenounceRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } Self::RevokeRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::SetFee(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::SetFee(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::SetFeeRecipient(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -38204,8 +38479,12 @@ pub mod fungible_token_wrapper_contract { Self::SupportsInterface(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Symbol(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Tokens(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Symbol(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Tokens(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::TotalSupply(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -38215,8 +38494,12 @@ pub mod fungible_token_wrapper_contract { Self::TransferFrom(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Unpause(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Unwrap(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Unpause(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Unwrap(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::UnwrapAndSendTo(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -38226,9 +38509,15 @@ pub mod fungible_token_wrapper_contract { Self::UpdateLimit(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Valid(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Wrap(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::WrapFor(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Valid(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Wrap(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::WrapFor(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::WrapForAndSendTo(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -38239,84 +38528,170 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::fmt::Display for FungibleTokenWrapperContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::DefaultAdminRole(element) => ::core::fmt::Display::fmt(element, f), - Self::MinterRole(element) => ::core::fmt::Display::fmt(element, f), - Self::PauserRole(element) => ::core::fmt::Display::fmt(element, f), + Self::DefaultAdminRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MinterRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::PauserRole(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Add(element) => ::core::fmt::Display::fmt(element, f), - Self::Allowance(element) => ::core::fmt::Display::fmt(element, f), + Self::Allowance(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Approve(element) => ::core::fmt::Display::fmt(element, f), - Self::BalanceOf(element) => ::core::fmt::Display::fmt(element, f), + Self::BalanceOf(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Burn(element) => ::core::fmt::Display::fmt(element, f), - Self::BurnFrom(element) => ::core::fmt::Display::fmt(element, f), - Self::Decimals(element) => ::core::fmt::Display::fmt(element, f), - Self::DecreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::FeePercentage(element) => ::core::fmt::Display::fmt(element, f), - Self::FeeRecipient(element) => ::core::fmt::Display::fmt(element, f), - Self::GetAmountToWrap(element) => ::core::fmt::Display::fmt(element, f), + Self::BurnFrom(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Decimals(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::DecreaseAllowance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FeePercentage(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FeeRecipient(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetAmountToWrap(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::GetFee(element) => ::core::fmt::Display::fmt(element, f), - Self::GetFeeFromAmount(element) => ::core::fmt::Display::fmt(element, f), - Self::GetProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::GetRoleAdmin(element) => ::core::fmt::Display::fmt(element, f), - Self::GetRoleMember(element) => ::core::fmt::Display::fmt(element, f), + Self::GetFeeFromAmount(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetRoleAdmin(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetRoleMember(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::GetRoleMemberCount(element) => { ::core::fmt::Display::fmt(element, f) } - Self::GetTokens(element) => ::core::fmt::Display::fmt(element, f), - Self::GrantRole(element) => ::core::fmt::Display::fmt(element, f), + Self::GetTokens(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GrantRole(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Handler(element) => ::core::fmt::Display::fmt(element, f), Self::HasRole(element) => ::core::fmt::Display::fmt(element, f), - Self::HistoricalTokens(element) => ::core::fmt::Display::fmt(element, f), - Self::HistoricallyValid(element) => ::core::fmt::Display::fmt(element, f), - Self::IncreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::Initialize(element) => ::core::fmt::Display::fmt(element, f), - Self::Initialized(element) => ::core::fmt::Display::fmt(element, f), - Self::IsNativeAllowed(element) => ::core::fmt::Display::fmt(element, f), - Self::IsValidToken(element) => ::core::fmt::Display::fmt(element, f), + Self::HistoricalTokens(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::HistoricallyValid(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::IncreaseAllowance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Initialize(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Initialized(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::IsNativeAllowed(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::IsValidToken(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Mint(element) => ::core::fmt::Display::fmt(element, f), Self::Name(element) => ::core::fmt::Display::fmt(element, f), Self::Pause(element) => ::core::fmt::Display::fmt(element, f), Self::Paused(element) => ::core::fmt::Display::fmt(element, f), - Self::ProposalNonce(element) => ::core::fmt::Display::fmt(element, f), + Self::ProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Remove(element) => ::core::fmt::Display::fmt(element, f), - Self::RenounceRole(element) => ::core::fmt::Display::fmt(element, f), - Self::RevokeRole(element) => ::core::fmt::Display::fmt(element, f), + Self::RenounceRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RevokeRole(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::SetFee(element) => ::core::fmt::Display::fmt(element, f), - Self::SetFeeRecipient(element) => ::core::fmt::Display::fmt(element, f), - Self::SetHandler(element) => ::core::fmt::Display::fmt(element, f), - Self::SetNativeAllowed(element) => ::core::fmt::Display::fmt(element, f), - Self::SupportsInterface(element) => ::core::fmt::Display::fmt(element, f), + Self::SetFeeRecipient(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetHandler(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetNativeAllowed(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SupportsInterface(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Symbol(element) => ::core::fmt::Display::fmt(element, f), Self::Tokens(element) => ::core::fmt::Display::fmt(element, f), - Self::TotalSupply(element) => ::core::fmt::Display::fmt(element, f), - Self::Transfer(element) => ::core::fmt::Display::fmt(element, f), - Self::TransferFrom(element) => ::core::fmt::Display::fmt(element, f), + Self::TotalSupply(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Transfer(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::TransferFrom(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Unpause(element) => ::core::fmt::Display::fmt(element, f), Self::Unwrap(element) => ::core::fmt::Display::fmt(element, f), - Self::UnwrapAndSendTo(element) => ::core::fmt::Display::fmt(element, f), - Self::UnwrapFor(element) => ::core::fmt::Display::fmt(element, f), - Self::UpdateLimit(element) => ::core::fmt::Display::fmt(element, f), + Self::UnwrapAndSendTo(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnwrapFor(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UpdateLimit(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Valid(element) => ::core::fmt::Display::fmt(element, f), Self::Wrap(element) => ::core::fmt::Display::fmt(element, f), Self::WrapFor(element) => ::core::fmt::Display::fmt(element, f), - Self::WrapForAndSendTo(element) => ::core::fmt::Display::fmt(element, f), - Self::WrappingLimit(element) => ::core::fmt::Display::fmt(element, f), + Self::WrapForAndSendTo(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WrappingLimit(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: DefaultAdminRoleCall) -> Self { Self::DefaultAdminRole(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: MinterRoleCall) -> Self { Self::MinterRole(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: PauserRoleCall) -> Self { Self::PauserRole(value) } @@ -38326,7 +38701,9 @@ pub mod fungible_token_wrapper_contract { Self::Add(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: AllowanceCall) -> Self { Self::Allowance(value) } @@ -38336,7 +38713,9 @@ pub mod fungible_token_wrapper_contract { Self::Approve(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: BalanceOfCall) -> Self { Self::BalanceOf(value) } @@ -38357,23 +38736,29 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: DecreaseAllowanceCall) -> Self { Self::DecreaseAllowance(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: FeePercentageCall) -> Self { Self::FeePercentage(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: FeeRecipientCall) -> Self { Self::FeeRecipient(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: GetAmountToWrapCall) -> Self { Self::GetAmountToWrap(value) } @@ -38384,39 +38769,50 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: GetFeeFromAmountCall) -> Self { Self::GetFeeFromAmount(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: GetProposalNonceCall) -> Self { Self::GetProposalNonce(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: GetRoleAdminCall) -> Self { Self::GetRoleAdmin(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: GetRoleMemberCall) -> Self { Self::GetRoleMember(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: GetRoleMemberCountCall) -> Self { Self::GetRoleMemberCount(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: GetTokensCall) -> Self { Self::GetTokens(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: GrantRoleCall) -> Self { Self::GrantRole(value) } @@ -38432,40 +38828,50 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: HistoricalTokensCall) -> Self { Self::HistoricalTokens(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: HistoricallyValidCall) -> Self { Self::HistoricallyValid(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: IncreaseAllowanceCall) -> Self { Self::IncreaseAllowance(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: InitializeCall) -> Self { Self::Initialize(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: InitializedCall) -> Self { Self::Initialized(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: IsNativeAllowedCall) -> Self { Self::IsNativeAllowed(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: IsValidTokenCall) -> Self { Self::IsValidToken(value) } @@ -38490,7 +38896,9 @@ pub mod fungible_token_wrapper_contract { Self::Paused(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: ProposalNonceCall) -> Self { Self::ProposalNonce(value) } @@ -38500,12 +38908,16 @@ pub mod fungible_token_wrapper_contract { Self::Remove(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: RenounceRoleCall) -> Self { Self::RenounceRole(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: RevokeRoleCall) -> Self { Self::RevokeRole(value) } @@ -38516,24 +38928,29 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: SetFeeRecipientCall) -> Self { Self::SetFeeRecipient(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: SetHandlerCall) -> Self { Self::SetHandler(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: SetNativeAllowedCall) -> Self { Self::SetNativeAllowed(value) } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: SupportsInterfaceCall) -> Self { Self::SupportsInterface(value) } @@ -38548,7 +38965,9 @@ pub mod fungible_token_wrapper_contract { Self::Tokens(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: TotalSupplyCall) -> Self { Self::TotalSupply(value) } @@ -38558,7 +38977,9 @@ pub mod fungible_token_wrapper_contract { Self::Transfer(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: TransferFromCall) -> Self { Self::TransferFrom(value) } @@ -38574,17 +38995,22 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: UnwrapAndSendToCall) -> Self { Self::UnwrapAndSendTo(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: UnwrapForCall) -> Self { Self::UnwrapFor(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: UpdateLimitCall) -> Self { Self::UpdateLimit(value) } @@ -38605,12 +39031,15 @@ pub mod fungible_token_wrapper_contract { } } impl ::core::convert::From - for FungibleTokenWrapperContractCalls { + for FungibleTokenWrapperContractCalls + { fn from(value: WrapForAndSendToCall) -> Self { Self::WrapForAndSendTo(value) } } - impl ::core::convert::From for FungibleTokenWrapperContractCalls { + impl ::core::convert::From + for FungibleTokenWrapperContractCalls + { fn from(value: WrappingLimitCall) -> Self { Self::WrappingLimit(value) } @@ -38626,7 +39055,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DefaultAdminRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `MINTER_ROLE` function with signature `MINTER_ROLE()` and selector `0xd5391393` @@ -38640,7 +39069,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MinterRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `PAUSER_ROLE` function with signature `PAUSER_ROLE()` and selector `0xe63ab1e9` @@ -38654,7 +39083,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PauserRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `allowance` function with signature `allowance(address,address)` and selector `0xdd62ed3e` @@ -38668,7 +39097,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct AllowanceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `approve` function with signature `approve(address,uint256)` and selector `0x095ea7b3` @@ -38682,7 +39111,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ApproveReturn(pub bool); ///Container type for all return fields from the `balanceOf` function with signature `balanceOf(address)` and selector `0x70a08231` @@ -38696,7 +39125,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct BalanceOfReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `decimals` function with signature `decimals()` and selector `0x313ce567` @@ -38710,7 +39139,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DecimalsReturn(pub u8); ///Container type for all return fields from the `decreaseAllowance` function with signature `decreaseAllowance(address,uint256)` and selector `0xa457c2d7` @@ -38724,7 +39153,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DecreaseAllowanceReturn(pub bool); ///Container type for all return fields from the `feePercentage` function with signature `feePercentage()` and selector `0xa001ecdd` @@ -38738,7 +39167,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FeePercentageReturn(pub u16); ///Container type for all return fields from the `feeRecipient` function with signature `feeRecipient()` and selector `0x46904840` @@ -38752,7 +39181,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FeeRecipientReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `getAmountToWrap` function with signature `getAmountToWrap(uint256)` and selector `0x96cd4dfe` @@ -38766,7 +39195,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetAmountToWrapReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getFee` function with signature `getFee()` and selector `0xced72f87` @@ -38780,7 +39209,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetFeeReturn(pub u16); ///Container type for all return fields from the `getFeeFromAmount` function with signature `getFeeFromAmount(uint256)` and selector `0x85c00ae8` @@ -38794,7 +39223,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetFeeFromAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getProposalNonce` function with signature `getProposalNonce()` and selector `0x0b27fb9a` @@ -38808,7 +39237,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getRoleAdmin` function with signature `getRoleAdmin(bytes32)` and selector `0x248a9ca3` @@ -38822,7 +39251,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleAdminReturn(pub [u8; 32]); ///Container type for all return fields from the `getRoleMember` function with signature `getRoleMember(bytes32,uint256)` and selector `0x9010d07c` @@ -38836,7 +39265,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleMemberReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `getRoleMemberCount` function with signature `getRoleMemberCount(bytes32)` and selector `0xca15c873` @@ -38850,7 +39279,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleMemberCountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getTokens` function with signature `getTokens()` and selector `0xaa6ca808` @@ -38864,9 +39293,11 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] - pub struct GetTokensReturn(pub ::std::vec::Vec<::ethers::core::types::Address>); + pub struct GetTokensReturn( + pub ::std::vec::Vec<::ethers::core::types::Address>, + ); ///Container type for all return fields from the `handler` function with signature `handler()` and selector `0xc80916d4` #[derive( Clone, @@ -38878,7 +39309,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HandlerReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `hasRole` function with signature `hasRole(bytes32,address)` and selector `0x91d14854` @@ -38892,7 +39323,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HasRoleReturn(pub bool); ///Container type for all return fields from the `historicalTokens` function with signature `historicalTokens(uint256)` and selector `0x85d14834` @@ -38906,7 +39337,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HistoricalTokensReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `historicallyValid` function with signature `historicallyValid(address)` and selector `0xb1cba258` @@ -38920,7 +39351,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HistoricallyValidReturn(pub bool); ///Container type for all return fields from the `increaseAllowance` function with signature `increaseAllowance(address,uint256)` and selector `0x39509351` @@ -38934,7 +39365,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IncreaseAllowanceReturn(pub bool); ///Container type for all return fields from the `initialized` function with signature `initialized()` and selector `0x158ef93e` @@ -38948,7 +39379,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct InitializedReturn(pub bool); ///Container type for all return fields from the `isNativeAllowed` function with signature `isNativeAllowed()` and selector `0xb3e4083f` @@ -38962,7 +39393,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsNativeAllowedReturn(pub bool); ///Container type for all return fields from the `isValidToken` function with signature `isValidToken(address)` and selector `0xc1876453` @@ -38976,7 +39407,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsValidTokenReturn(pub bool); ///Container type for all return fields from the `name` function with signature `name()` and selector `0x06fdde03` @@ -38990,7 +39421,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct NameReturn(pub ::std::string::String); ///Container type for all return fields from the `paused` function with signature `paused()` and selector `0x5c975abb` @@ -39004,7 +39435,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PausedReturn(pub bool); ///Container type for all return fields from the `proposalNonce` function with signature `proposalNonce()` and selector `0xcc3c74a1` @@ -39018,7 +39449,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7` @@ -39032,7 +39463,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct SupportsInterfaceReturn(pub bool); ///Container type for all return fields from the `symbol` function with signature `symbol()` and selector `0x95d89b41` @@ -39046,7 +39477,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct SymbolReturn(pub ::std::string::String); ///Container type for all return fields from the `tokens` function with signature `tokens(uint256)` and selector `0x4f64b2be` @@ -39060,7 +39491,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TokensReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `totalSupply` function with signature `totalSupply()` and selector `0x18160ddd` @@ -39074,7 +39505,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TotalSupplyReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `transfer` function with signature `transfer(address,uint256)` and selector `0xa9059cbb` @@ -39088,7 +39519,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TransferReturn(pub bool); ///Container type for all return fields from the `transferFrom` function with signature `transferFrom(address,address,uint256)` and selector `0x23b872dd` @@ -39102,7 +39533,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TransferFromReturn(pub bool); ///Container type for all return fields from the `valid` function with signature `valid(address)` and selector `0xac8a260c` @@ -39116,7 +39547,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ValidReturn(pub bool); ///Container type for all return fields from the `wrappingLimit` function with signature `wrappingLimit()` and selector `0x1f914382` @@ -39130,7 +39561,7 @@ pub mod fungible_token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct WrappingLimitReturn(pub ::ethers::core::types::U256); } diff --git a/src/evm/contract/protocol_solidity/poseidon_hasher.rs b/src/evm/contract/protocol_solidity/poseidon_hasher.rs index a25ce92..9e99329 100644 --- a/src/evm/contract/protocol_solidity/poseidon_hasher.rs +++ b/src/evm/contract/protocol_solidity/poseidon_hasher.rs @@ -7,7 +7,7 @@ pub use poseidon_hasher_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod poseidon_hasher_contract { #[rustfmt::skip] @@ -37,7 +37,10 @@ pub mod poseidon_hasher_contract { } } impl ::core::fmt::Debug for PoseidonHasherContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(PoseidonHasherContract)) .field(&self.address()) .finish() @@ -50,19 +53,20 @@ pub mod poseidon_hasher_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - POSEIDONHASHERCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + POSEIDONHASHERCONTRACT_ABI.clone(), + client, + )) } ///Calls the contract's `hash11` (0x8a1a52d2) function pub fn hash_11( &self, array: ::std::vec::Vec<::ethers::core::types::U256>, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([138, 26, 82, 210], array) .expect("method not found (this should never happen)") @@ -71,7 +75,10 @@ pub mod poseidon_hasher_contract { pub fn hash_3( &self, array: [::ethers::core::types::U256; 3], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([190, 161, 64, 179], array) .expect("method not found (this should never happen)") @@ -80,7 +87,10 @@ pub mod poseidon_hasher_contract { pub fn hash_5( &self, array: [::ethers::core::types::U256; 5], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([156, 252, 237, 151], array) .expect("method not found (this should never happen)") @@ -90,7 +100,10 @@ pub mod poseidon_hasher_contract { &self, left: ::ethers::core::types::U256, right: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([91, 185, 57, 149], (left, right)) .expect("method not found (this should never happen)") @@ -105,8 +118,9 @@ pub mod poseidon_hasher_contract { .expect("method not found (this should never happen)") } } - impl From<::ethers::contract::Contract> - for PoseidonHasherContract { + impl + From<::ethers::contract::Contract> for PoseidonHasherContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -122,7 +136,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hash11", abi = "hash11(uint256[])")] pub struct Hash11Call { @@ -139,7 +153,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hash3", abi = "hash3(uint256[3])")] pub struct Hash3Call { @@ -156,7 +170,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hash5", abi = "hash5(uint256[5])")] pub struct Hash5Call { @@ -173,7 +187,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hashLeftRight", abi = "hashLeftRight(uint256,uint256)")] pub struct HashLeftRightCall { @@ -191,7 +205,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "zeros", abi = "zeros(uint256)")] pub struct ZerosCall { @@ -206,7 +220,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum PoseidonHasherContractCalls { Hash11(Hash11Call), @@ -218,26 +232,34 @@ pub mod poseidon_hasher_contract { impl ::ethers::core::abi::AbiDecode for PoseidonHasherContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Hash11(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Hash3(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Hash5(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::HashLeftRight(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Zeros(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -246,23 +268,36 @@ pub mod poseidon_hasher_contract { impl ::ethers::core::abi::AbiEncode for PoseidonHasherContractCalls { fn encode(self) -> Vec { match self { - Self::Hash11(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Hash3(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Hash5(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Hash11(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Hash3(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Hash5(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::HashLeftRight(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Zeros(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Zeros(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } } } } impl ::core::fmt::Display for PoseidonHasherContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { Self::Hash11(element) => ::core::fmt::Display::fmt(element, f), Self::Hash3(element) => ::core::fmt::Display::fmt(element, f), Self::Hash5(element) => ::core::fmt::Display::fmt(element, f), - Self::HashLeftRight(element) => ::core::fmt::Display::fmt(element, f), + Self::HashLeftRight(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Zeros(element) => ::core::fmt::Display::fmt(element, f), } } @@ -303,7 +338,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Hash11Return(pub ::ethers::core::types::U256); ///Container type for all return fields from the `hash3` function with signature `hash3(uint256[3])` and selector `0xbea140b3` @@ -317,7 +352,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Hash3Return(pub ::ethers::core::types::U256); ///Container type for all return fields from the `hash5` function with signature `hash5(uint256[5])` and selector `0x9cfced97` @@ -331,7 +366,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Hash5Return(pub ::ethers::core::types::U256); ///Container type for all return fields from the `hashLeftRight` function with signature `hashLeftRight(uint256,uint256)` and selector `0x5bb93995` @@ -345,7 +380,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HashLeftRightReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `zeros` function with signature `zeros(uint256)` and selector `0xe8295588` @@ -359,7 +394,7 @@ pub mod poseidon_hasher_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ZerosReturn(pub [u8; 32]); } diff --git a/src/evm/contract/protocol_solidity/poseidon_t3.rs b/src/evm/contract/protocol_solidity/poseidon_t3.rs index d26aadc..77941e7 100644 --- a/src/evm/contract/protocol_solidity/poseidon_t3.rs +++ b/src/evm/contract/protocol_solidity/poseidon_t3.rs @@ -7,7 +7,7 @@ pub use poseidon_t3_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod poseidon_t3_contract { #[rustfmt::skip] @@ -9778,9 +9778,8 @@ pub mod poseidon_t3_contract { 86, ]; ///The bytecode of the contract. - pub static POSEIDONT3CONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static POSEIDONT3CONTRACT_BYTECODE: ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 115, @@ -10080,9 +10079,9 @@ pub mod poseidon_t3_contract { 51, ]; ///The deployed bytecode of the contract. - pub static POSEIDONT3CONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static POSEIDONT3CONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct PoseidonT3Contract(::ethers::contract::Contract); impl ::core::clone::Clone for PoseidonT3Contract { fn clone(&self) -> Self { @@ -10101,8 +10100,13 @@ pub mod poseidon_t3_contract { } } impl ::core::fmt::Debug for PoseidonT3Contract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(stringify!(PoseidonT3Contract)).field(&self.address()).finish() + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { + f.debug_tuple(stringify!(PoseidonT3Contract)) + .field(&self.address()) + .finish() } } impl PoseidonT3Contract { @@ -10112,13 +10116,11 @@ pub mod poseidon_t3_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - POSEIDONT3CONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + POSEIDONT3CONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -10163,14 +10165,18 @@ pub mod poseidon_t3_contract { pub fn poseidon( &self, input: [::ethers::core::types::U256; 2], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([41, 165, 242, 246], input) .expect("method not found (this should never happen)") } } - impl From<::ethers::contract::Contract> - for PoseidonT3Contract { + impl + From<::ethers::contract::Contract> for PoseidonT3Contract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -10186,7 +10192,7 @@ pub mod poseidon_t3_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "poseidon", abi = "poseidon(uint256[2])")] pub struct PoseidonCall { @@ -10203,7 +10209,7 @@ pub mod poseidon_t3_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PoseidonReturn(pub ::ethers::core::types::U256); } diff --git a/src/evm/contract/protocol_solidity/poseidon_t4.rs b/src/evm/contract/protocol_solidity/poseidon_t4.rs index 6e4ef02..5a8cb65 100644 --- a/src/evm/contract/protocol_solidity/poseidon_t4.rs +++ b/src/evm/contract/protocol_solidity/poseidon_t4.rs @@ -7,7 +7,7 @@ pub use poseidon_t4_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod poseidon_t4_contract { #[rustfmt::skip] @@ -12498,9 +12498,8 @@ pub mod poseidon_t4_contract { 86, ]; ///The bytecode of the contract. - pub static POSEIDONT4CONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static POSEIDONT4CONTRACT_BYTECODE: ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 115, @@ -12798,9 +12797,9 @@ pub mod poseidon_t4_contract { 51, ]; ///The deployed bytecode of the contract. - pub static POSEIDONT4CONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static POSEIDONT4CONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct PoseidonT4Contract(::ethers::contract::Contract); impl ::core::clone::Clone for PoseidonT4Contract { fn clone(&self) -> Self { @@ -12819,8 +12818,13 @@ pub mod poseidon_t4_contract { } } impl ::core::fmt::Debug for PoseidonT4Contract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(stringify!(PoseidonT4Contract)).field(&self.address()).finish() + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { + f.debug_tuple(stringify!(PoseidonT4Contract)) + .field(&self.address()) + .finish() } } impl PoseidonT4Contract { @@ -12830,13 +12834,11 @@ pub mod poseidon_t4_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - POSEIDONT4CONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + POSEIDONT4CONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -12881,14 +12883,18 @@ pub mod poseidon_t4_contract { pub fn poseidon( &self, input: [::ethers::core::types::U256; 3], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([37, 204, 112, 232], input) .expect("method not found (this should never happen)") } } - impl From<::ethers::contract::Contract> - for PoseidonT4Contract { + impl + From<::ethers::contract::Contract> for PoseidonT4Contract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -12904,7 +12910,7 @@ pub mod poseidon_t4_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "poseidon", abi = "poseidon(uint256[3])")] pub struct PoseidonCall { @@ -12921,7 +12927,7 @@ pub mod poseidon_t4_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PoseidonReturn(pub ::ethers::core::types::U256); } diff --git a/src/evm/contract/protocol_solidity/poseidon_t6.rs b/src/evm/contract/protocol_solidity/poseidon_t6.rs index 4347da5..8ff0191 100644 --- a/src/evm/contract/protocol_solidity/poseidon_t6.rs +++ b/src/evm/contract/protocol_solidity/poseidon_t6.rs @@ -7,7 +7,7 @@ pub use poseidon_t6_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod poseidon_t6_contract { #[rustfmt::skip] @@ -19510,9 +19510,8 @@ pub mod poseidon_t6_contract { 86, ]; ///The bytecode of the contract. - pub static POSEIDONT6CONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static POSEIDONT6CONTRACT_BYTECODE: ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 115, @@ -19810,9 +19809,9 @@ pub mod poseidon_t6_contract { 51, ]; ///The deployed bytecode of the contract. - pub static POSEIDONT6CONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static POSEIDONT6CONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct PoseidonT6Contract(::ethers::contract::Contract); impl ::core::clone::Clone for PoseidonT6Contract { fn clone(&self) -> Self { @@ -19831,8 +19830,13 @@ pub mod poseidon_t6_contract { } } impl ::core::fmt::Debug for PoseidonT6Contract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(stringify!(PoseidonT6Contract)).field(&self.address()).finish() + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { + f.debug_tuple(stringify!(PoseidonT6Contract)) + .field(&self.address()) + .finish() } } impl PoseidonT6Contract { @@ -19842,13 +19846,11 @@ pub mod poseidon_t6_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - POSEIDONT6CONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + POSEIDONT6CONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -19893,14 +19895,18 @@ pub mod poseidon_t6_contract { pub fn poseidon( &self, input: [::ethers::core::types::U256; 5], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([73, 55, 162, 88], input) .expect("method not found (this should never happen)") } } - impl From<::ethers::contract::Contract> - for PoseidonT6Contract { + impl + From<::ethers::contract::Contract> for PoseidonT6Contract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -19916,7 +19922,7 @@ pub mod poseidon_t6_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "poseidon", abi = "poseidon(uint256[5])")] pub struct PoseidonCall { @@ -19933,7 +19939,7 @@ pub mod poseidon_t6_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PoseidonReturn(pub ::ethers::core::types::U256); } diff --git a/src/evm/contract/protocol_solidity/signature_bridge.rs b/src/evm/contract/protocol_solidity/signature_bridge.rs index 6b0bca0..650794c 100644 --- a/src/evm/contract/protocol_solidity/signature_bridge.rs +++ b/src/evm/contract/protocol_solidity/signature_bridge.rs @@ -7,7 +7,7 @@ pub use signature_bridge_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod signature_bridge_contract { #[rustfmt::skip] @@ -11958,9 +11958,8 @@ pub mod signature_bridge_contract { 51, ]; ///The bytecode of the contract. - pub static SIGNATUREBRIDGECONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static SIGNATUREBRIDGECONTRACT_BYTECODE: ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 96, @@ -23585,9 +23584,9 @@ pub mod signature_bridge_contract { 51, ]; ///The deployed bytecode of the contract. - pub static SIGNATUREBRIDGECONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static SIGNATUREBRIDGECONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct SignatureBridgeContract(::ethers::contract::Contract); impl ::core::clone::Clone for SignatureBridgeContract { fn clone(&self) -> Self { @@ -23606,7 +23605,10 @@ pub mod signature_bridge_contract { } } impl ::core::fmt::Debug for SignatureBridgeContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(SignatureBridgeContract)) .field(&self.address()) .finish() @@ -23619,13 +23621,11 @@ pub mod signature_bridge_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - SIGNATUREBRIDGECONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + SIGNATUREBRIDGECONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -23771,7 +23771,10 @@ pub mod signature_bridge_contract { ///Calls the contract's `currentVotingPeriod` (0x3a049e02) function pub fn current_voting_period( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([58, 4, 158, 2], ()) .expect("method not found (this should never happen)") @@ -23799,7 +23802,10 @@ pub mod signature_bridge_contract { ///Calls the contract's `getChainId` (0x3408e470) function pub fn get_chain_id( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([52, 8, 228, 112], ()) .expect("method not found (this should never happen)") @@ -23815,7 +23821,10 @@ pub mod signature_bridge_contract { ///Calls the contract's `getProposalNonce` (0x0b27fb9a) function pub fn get_proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([11, 39, 251, 154], ()) .expect("method not found (this should never happen)") @@ -23880,7 +23889,10 @@ pub mod signature_bridge_contract { ///Calls the contract's `lastGovernorUpdateTime` (0x9e09583c) function pub fn last_governor_update_time( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([158, 9, 88, 60], ()) .expect("method not found (this should never happen)") @@ -23897,7 +23909,10 @@ pub mod signature_bridge_contract { ///Calls the contract's `proposalNonce` (0xcc3c74a1) function pub fn proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([204, 60, 116, 161], ()) .expect("method not found (this should never happen)") @@ -23934,7 +23949,10 @@ pub mod signature_bridge_contract { ///Calls the contract's `sessionLengthMultiplier` (0xbdfadc84) function pub fn session_length_multiplier( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([189, 250, 220, 132], ()) .expect("method not found (this should never happen)") @@ -23993,7 +24011,9 @@ pub mod signature_bridge_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `voterCount` (0x42169e48) function - pub fn voter_count(&self) -> ::ethers::contract::builders::ContractCall { + pub fn voter_count( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([66, 22, 158, 72], ()) .expect("method not found (this should never happen)") @@ -24034,11 +24054,13 @@ pub mod signature_bridge_contract { M, SignatureBridgeContractEvents, > { - self.0.event_with_filter(::core::default::Default::default()) + self.0 + .event_with_filter(::core::default::Default::default()) } } - impl From<::ethers::contract::Contract> - for SignatureBridgeContract { + impl + From<::ethers::contract::Contract> for SignatureBridgeContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -24053,7 +24075,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "GovernanceOwnershipTransferred", @@ -24076,7 +24098,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "RecoveredAddress", abi = "RecoveredAddress(address)")] pub struct RecoveredAddressFilter { @@ -24092,17 +24114,21 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum SignatureBridgeContractEvents { - GovernanceOwnershipTransferredFilter(GovernanceOwnershipTransferredFilter), + GovernanceOwnershipTransferredFilter( + GovernanceOwnershipTransferredFilter, + ), RecoveredAddressFilter(RecoveredAddressFilter), } impl ::ethers::contract::EthLogDecode for SignatureBridgeContractEvents { fn decode_log( log: &::ethers::core::abi::RawLog, ) -> ::core::result::Result { - if let Ok(decoded) = GovernanceOwnershipTransferredFilter::decode_log(log) { + if let Ok(decoded) = + GovernanceOwnershipTransferredFilter::decode_log(log) + { return Ok( SignatureBridgeContractEvents::GovernanceOwnershipTransferredFilter( decoded, @@ -24111,14 +24137,19 @@ pub mod signature_bridge_contract { } if let Ok(decoded) = RecoveredAddressFilter::decode_log(log) { return Ok( - SignatureBridgeContractEvents::RecoveredAddressFilter(decoded), + SignatureBridgeContractEvents::RecoveredAddressFilter( + decoded, + ), ); } Err(::ethers::core::abi::Error::InvalidData) } } impl ::core::fmt::Display for SignatureBridgeContractEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { Self::GovernanceOwnershipTransferredFilter(element) => { ::core::fmt::Display::fmt(element, f) @@ -24130,13 +24161,15 @@ pub mod signature_bridge_contract { } } impl ::core::convert::From - for SignatureBridgeContractEvents { + for SignatureBridgeContractEvents + { fn from(value: GovernanceOwnershipTransferredFilter) -> Self { Self::GovernanceOwnershipTransferredFilter(value) } } impl ::core::convert::From - for SignatureBridgeContractEvents { + for SignatureBridgeContractEvents + { fn from(value: RecoveredAddressFilter) -> Self { Self::RecoveredAddressFilter(value) } @@ -24152,7 +24185,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "EVM_CHAIN_ID_TYPE", abi = "EVM_CHAIN_ID_TYPE()")] pub struct EvmChainIdTypeCall; @@ -24167,7 +24200,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_resourceIdToHandlerAddress", @@ -24185,7 +24218,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "adminSetResourceWithSignature", @@ -24210,7 +24243,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "averageSessionLengthInMillisecs", @@ -24228,7 +24261,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "batchAdminSetResourceWithSignature", @@ -24254,7 +24287,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "batchExecuteProposalsWithSignature", @@ -24275,9 +24308,12 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "createVote", + abi = "createVote(uint32,address,bytes32[])" )] - #[ethcall(name = "createVote", abi = "createVote(uint32,address,bytes32[])")] pub struct CreateVoteCall { pub leaf_index: u32, pub proposed_governor: ::ethers::core::types::Address, @@ -24294,7 +24330,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "currentVotingPeriod", abi = "currentVotingPeriod()")] pub struct CurrentVotingPeriodCall; @@ -24309,7 +24345,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "executeManyProposalsWithSignature", @@ -24330,7 +24366,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "executeProposalWithSignature", @@ -24351,7 +24387,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getChainId", abi = "getChainId()")] pub struct GetChainIdCall; @@ -24366,7 +24402,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getChainIdType", abi = "getChainIdType()")] pub struct GetChainIdTypeCall; @@ -24381,7 +24417,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getProposalNonce", abi = "getProposalNonce()")] pub struct GetProposalNonceCall; @@ -24396,7 +24432,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "governor", abi = "governor()")] pub struct GovernorCall; @@ -24411,7 +24447,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isCorrectExecutionChain", @@ -24431,7 +24467,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isCorrectExecutionContext", @@ -24451,7 +24487,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isGovernor", abi = "isGovernor()")] pub struct IsGovernorCall; @@ -24466,7 +24502,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isSignatureFromGovernor", @@ -24487,7 +24523,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isSignatureFromGovernorPrehashed", @@ -24508,9 +24544,12 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "lastGovernorUpdateTime", + abi = "lastGovernorUpdateTime()" )] - #[ethcall(name = "lastGovernorUpdateTime", abi = "lastGovernorUpdateTime()")] pub struct LastGovernorUpdateTimeCall; ///Container type for all input parameters for the `parseChainIdFromResourceId` function with signature `parseChainIdFromResourceId(bytes32)` and selector `0xc2230d6e` #[derive( @@ -24523,7 +24562,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "parseChainIdFromResourceId", @@ -24543,7 +24582,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "proposalNonce", abi = "proposalNonce()")] pub struct ProposalNonceCall; @@ -24558,7 +24597,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "recover", abi = "recover(bytes,bytes)")] pub struct RecoverCall { @@ -24576,7 +24615,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "refreshNonce", abi = "refreshNonce()")] pub struct RefreshNonceCall; @@ -24591,7 +24630,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "renounceOwnership", abi = "renounceOwnership()")] pub struct RenounceOwnershipCall; @@ -24606,9 +24645,12 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "sessionLengthMultiplier", + abi = "sessionLengthMultiplier()" )] - #[ethcall(name = "sessionLengthMultiplier", abi = "sessionLengthMultiplier()")] pub struct SessionLengthMultiplierCall; ///Container type for all input parameters for the `transferOwnership` function with signature `transferOwnership(address,uint32)` and selector `0xa6e94c91` #[derive( @@ -24621,9 +24663,12 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "transferOwnership", + abi = "transferOwnership(address,uint32)" )] - #[ethcall(name = "transferOwnership", abi = "transferOwnership(address,uint32)")] pub struct TransferOwnershipCall { pub new_owner: ::ethers::core::types::Address, pub nonce: u32, @@ -24639,7 +24684,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "transferOwnershipWithSignature", @@ -24664,7 +24709,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "voteInFavorForceSetGovernor", @@ -24684,7 +24729,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "voteInFavorForceSetGovernorWithSig", @@ -24705,7 +24750,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "voterCount", abi = "voterCount()")] pub struct VoterCountCall; @@ -24720,7 +24765,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "voterMerkleRoot", abi = "voterMerkleRoot()")] pub struct VoterMerkleRootCall; @@ -24733,18 +24778,24 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum SignatureBridgeContractCalls { EvmChainIdType(EvmChainIdTypeCall), ResourceIdToHandlerAddress(ResourceIdToHandlerAddressCall), AdminSetResourceWithSignature(AdminSetResourceWithSignatureCall), AverageSessionLengthInMillisecs(AverageSessionLengthInMillisecsCall), - BatchAdminSetResourceWithSignature(BatchAdminSetResourceWithSignatureCall), - BatchExecuteProposalsWithSignature(BatchExecuteProposalsWithSignatureCall), + BatchAdminSetResourceWithSignature( + BatchAdminSetResourceWithSignatureCall, + ), + BatchExecuteProposalsWithSignature( + BatchExecuteProposalsWithSignatureCall, + ), CreateVote(CreateVoteCall), CurrentVotingPeriod(CurrentVotingPeriodCall), - ExecuteManyProposalsWithSignature(ExecuteManyProposalsWithSignatureCall), + ExecuteManyProposalsWithSignature( + ExecuteManyProposalsWithSignatureCall, + ), ExecuteProposalWithSignature(ExecuteProposalWithSignatureCall), GetChainId(GetChainIdCall), GetChainIdType(GetChainIdTypeCall), @@ -24765,17 +24816,23 @@ pub mod signature_bridge_contract { TransferOwnership(TransferOwnershipCall), TransferOwnershipWithSignature(TransferOwnershipWithSignatureCall), VoteInFavorForceSetGovernor(VoteInFavorForceSetGovernorCall), - VoteInFavorForceSetGovernorWithSig(VoteInFavorForceSetGovernorWithSigCall), + VoteInFavorForceSetGovernorWithSig( + VoteInFavorForceSetGovernorWithSigCall, + ), VoterCount(VoterCountCall), VoterMerkleRoot(VoterMerkleRootCall), } impl ::ethers::core::abi::AbiDecode for SignatureBridgeContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::EvmChainIdType(decoded)); } if let Ok(decoded) @@ -24808,8 +24865,9 @@ pub mod signature_bridge_contract { ) { return Ok(Self::BatchExecuteProposalsWithSignature(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::CreateVote(decoded)); } if let Ok(decoded) @@ -24830,22 +24888,28 @@ pub mod signature_bridge_contract { ) { return Ok(Self::ExecuteProposalWithSignature(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetChainId(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetChainIdType(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::GetProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Governor(decoded)); } if let Ok(decoded) @@ -24860,8 +24924,9 @@ pub mod signature_bridge_contract { ) { return Ok(Self::IsCorrectExecutionContext(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::IsGovernor(decoded)); } if let Ok(decoded) @@ -24888,16 +24953,23 @@ pub mod signature_bridge_contract { ) { return Ok(Self::ParseChainIdFromResourceId(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Recover(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::RefreshNonce(decoded)); } if let Ok(decoded) @@ -24936,12 +25008,16 @@ pub mod signature_bridge_contract { ) { return Ok(Self::VoteInFavorForceSetGovernorWithSig(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::VoterCount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::VoterMerkleRoot(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -25016,7 +25092,9 @@ pub mod signature_bridge_contract { Self::ProposalNonce(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Recover(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Recover(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::RefreshNonce(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -25048,9 +25126,14 @@ pub mod signature_bridge_contract { } } impl ::core::fmt::Display for SignatureBridgeContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::EvmChainIdType(element) => ::core::fmt::Display::fmt(element, f), + Self::EvmChainIdType(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ResourceIdToHandlerAddress(element) => { ::core::fmt::Display::fmt(element, f) } @@ -25066,7 +25149,9 @@ pub mod signature_bridge_contract { Self::BatchExecuteProposalsWithSignature(element) => { ::core::fmt::Display::fmt(element, f) } - Self::CreateVote(element) => ::core::fmt::Display::fmt(element, f), + Self::CreateVote(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::CurrentVotingPeriod(element) => { ::core::fmt::Display::fmt(element, f) } @@ -25076,17 +25161,27 @@ pub mod signature_bridge_contract { Self::ExecuteProposalWithSignature(element) => { ::core::fmt::Display::fmt(element, f) } - Self::GetChainId(element) => ::core::fmt::Display::fmt(element, f), - Self::GetChainIdType(element) => ::core::fmt::Display::fmt(element, f), - Self::GetProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::Governor(element) => ::core::fmt::Display::fmt(element, f), + Self::GetChainId(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetChainIdType(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Governor(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::IsCorrectExecutionChain(element) => { ::core::fmt::Display::fmt(element, f) } Self::IsCorrectExecutionContext(element) => { ::core::fmt::Display::fmt(element, f) } - Self::IsGovernor(element) => ::core::fmt::Display::fmt(element, f), + Self::IsGovernor(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::IsSignatureFromGovernor(element) => { ::core::fmt::Display::fmt(element, f) } @@ -25099,14 +25194,22 @@ pub mod signature_bridge_contract { Self::ParseChainIdFromResourceId(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ProposalNonce(element) => ::core::fmt::Display::fmt(element, f), + Self::ProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Recover(element) => ::core::fmt::Display::fmt(element, f), - Self::RefreshNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::RenounceOwnership(element) => ::core::fmt::Display::fmt(element, f), + Self::RefreshNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RenounceOwnership(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::SessionLengthMultiplier(element) => { ::core::fmt::Display::fmt(element, f) } - Self::TransferOwnership(element) => ::core::fmt::Display::fmt(element, f), + Self::TransferOwnership(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::TransferOwnershipWithSignature(element) => { ::core::fmt::Display::fmt(element, f) } @@ -25116,42 +25219,53 @@ pub mod signature_bridge_contract { Self::VoteInFavorForceSetGovernorWithSig(element) => { ::core::fmt::Display::fmt(element, f) } - Self::VoterCount(element) => ::core::fmt::Display::fmt(element, f), - Self::VoterMerkleRoot(element) => ::core::fmt::Display::fmt(element, f), + Self::VoterCount(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::VoterMerkleRoot(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } - impl ::core::convert::From for SignatureBridgeContractCalls { + impl ::core::convert::From + for SignatureBridgeContractCalls + { fn from(value: EvmChainIdTypeCall) -> Self { Self::EvmChainIdType(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: ResourceIdToHandlerAddressCall) -> Self { Self::ResourceIdToHandlerAddress(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: AdminSetResourceWithSignatureCall) -> Self { Self::AdminSetResourceWithSignature(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: AverageSessionLengthInMillisecsCall) -> Self { Self::AverageSessionLengthInMillisecs(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: BatchAdminSetResourceWithSignatureCall) -> Self { Self::BatchAdminSetResourceWithSignature(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: BatchExecuteProposalsWithSignatureCall) -> Self { Self::BatchExecuteProposalsWithSignature(value) } @@ -25162,19 +25276,22 @@ pub mod signature_bridge_contract { } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: CurrentVotingPeriodCall) -> Self { Self::CurrentVotingPeriod(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: ExecuteManyProposalsWithSignatureCall) -> Self { Self::ExecuteManyProposalsWithSignature(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: ExecuteProposalWithSignatureCall) -> Self { Self::ExecuteProposalWithSignature(value) } @@ -25184,12 +25301,16 @@ pub mod signature_bridge_contract { Self::GetChainId(value) } } - impl ::core::convert::From for SignatureBridgeContractCalls { + impl ::core::convert::From + for SignatureBridgeContractCalls + { fn from(value: GetChainIdTypeCall) -> Self { Self::GetChainIdType(value) } } - impl ::core::convert::From for SignatureBridgeContractCalls { + impl ::core::convert::From + for SignatureBridgeContractCalls + { fn from(value: GetProposalNonceCall) -> Self { Self::GetProposalNonce(value) } @@ -25200,13 +25321,15 @@ pub mod signature_bridge_contract { } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: IsCorrectExecutionChainCall) -> Self { Self::IsCorrectExecutionChain(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: IsCorrectExecutionContextCall) -> Self { Self::IsCorrectExecutionContext(value) } @@ -25217,25 +25340,29 @@ pub mod signature_bridge_contract { } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: IsSignatureFromGovernorCall) -> Self { Self::IsSignatureFromGovernor(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: IsSignatureFromGovernorPrehashedCall) -> Self { Self::IsSignatureFromGovernorPrehashed(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: LastGovernorUpdateTimeCall) -> Self { Self::LastGovernorUpdateTime(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: ParseChainIdFromResourceIdCall) -> Self { Self::ParseChainIdFromResourceId(value) } @@ -25255,36 +25382,44 @@ pub mod signature_bridge_contract { Self::RefreshNonce(value) } } - impl ::core::convert::From for SignatureBridgeContractCalls { + impl ::core::convert::From + for SignatureBridgeContractCalls + { fn from(value: RenounceOwnershipCall) -> Self { Self::RenounceOwnership(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: SessionLengthMultiplierCall) -> Self { Self::SessionLengthMultiplier(value) } } - impl ::core::convert::From for SignatureBridgeContractCalls { + impl ::core::convert::From + for SignatureBridgeContractCalls + { fn from(value: TransferOwnershipCall) -> Self { Self::TransferOwnership(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: TransferOwnershipWithSignatureCall) -> Self { Self::TransferOwnershipWithSignature(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: VoteInFavorForceSetGovernorCall) -> Self { Self::VoteInFavorForceSetGovernor(value) } } impl ::core::convert::From - for SignatureBridgeContractCalls { + for SignatureBridgeContractCalls + { fn from(value: VoteInFavorForceSetGovernorWithSigCall) -> Self { Self::VoteInFavorForceSetGovernorWithSig(value) } @@ -25294,7 +25429,9 @@ pub mod signature_bridge_contract { Self::VoterCount(value) } } - impl ::core::convert::From for SignatureBridgeContractCalls { + impl ::core::convert::From + for SignatureBridgeContractCalls + { fn from(value: VoterMerkleRootCall) -> Self { Self::VoterMerkleRoot(value) } @@ -25310,7 +25447,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EvmChainIdTypeReturn(pub [u8; 2]); ///Container type for all return fields from the `_resourceIdToHandlerAddress` function with signature `_resourceIdToHandlerAddress(bytes32)` and selector `0xf2dd0bb7` @@ -25324,9 +25461,11 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] - pub struct ResourceIdToHandlerAddressReturn(pub ::ethers::core::types::Address); + pub struct ResourceIdToHandlerAddressReturn( + pub ::ethers::core::types::Address, + ); ///Container type for all return fields from the `averageSessionLengthInMillisecs` function with signature `averageSessionLengthInMillisecs()` and selector `0x016737bb` #[derive( Clone, @@ -25338,7 +25477,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct AverageSessionLengthInMillisecsReturn(pub u64); ///Container type for all return fields from the `createVote` function with signature `createVote(uint32,address,bytes32[])` and selector `0xfecb9553` @@ -25352,7 +25491,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CreateVoteReturn(pub Vote); ///Container type for all return fields from the `currentVotingPeriod` function with signature `currentVotingPeriod()` and selector `0x3a049e02` @@ -25366,7 +25505,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CurrentVotingPeriodReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getChainId` function with signature `getChainId()` and selector `0x3408e470` @@ -25380,7 +25519,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetChainIdReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getChainIdType` function with signature `getChainIdType()` and selector `0x4c830cbd` @@ -25394,7 +25533,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetChainIdTypeReturn(pub u64); ///Container type for all return fields from the `getProposalNonce` function with signature `getProposalNonce()` and selector `0x0b27fb9a` @@ -25408,7 +25547,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `governor` function with signature `governor()` and selector `0x0c340a24` @@ -25422,7 +25561,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GovernorReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `isCorrectExecutionChain` function with signature `isCorrectExecutionChain(bytes32)` and selector `0x830b2f57` @@ -25436,7 +25575,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsCorrectExecutionChainReturn(pub bool); ///Container type for all return fields from the `isCorrectExecutionContext` function with signature `isCorrectExecutionContext(bytes32)` and selector `0xf5fc3d6b` @@ -25450,7 +25589,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsCorrectExecutionContextReturn(pub bool); ///Container type for all return fields from the `isGovernor` function with signature `isGovernor()` and selector `0xc7af3352` @@ -25464,7 +25603,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsGovernorReturn(pub bool); ///Container type for all return fields from the `isSignatureFromGovernor` function with signature `isSignatureFromGovernor(bytes,bytes)` and selector `0x8755bcad` @@ -25478,7 +25617,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsSignatureFromGovernorReturn(pub bool); ///Container type for all return fields from the `isSignatureFromGovernorPrehashed` function with signature `isSignatureFromGovernorPrehashed(bytes32,bytes)` and selector `0x6c6f4846` @@ -25492,7 +25631,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsSignatureFromGovernorPrehashedReturn(pub bool); ///Container type for all return fields from the `lastGovernorUpdateTime` function with signature `lastGovernorUpdateTime()` and selector `0x9e09583c` @@ -25506,7 +25645,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct LastGovernorUpdateTimeReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `parseChainIdFromResourceId` function with signature `parseChainIdFromResourceId(bytes32)` and selector `0xc2230d6e` @@ -25520,7 +25659,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ParseChainIdFromResourceIdReturn(pub u64); ///Container type for all return fields from the `proposalNonce` function with signature `proposalNonce()` and selector `0xcc3c74a1` @@ -25534,7 +25673,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `recover` function with signature `recover(bytes,bytes)` and selector `0x1ed13d1b` @@ -25548,7 +25687,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct RecoverReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `refreshNonce` function with signature `refreshNonce()` and selector `0x13cb01f9` @@ -25562,7 +25701,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct RefreshNonceReturn(pub u32); ///Container type for all return fields from the `sessionLengthMultiplier` function with signature `sessionLengthMultiplier()` and selector `0xbdfadc84` @@ -25576,7 +25715,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct SessionLengthMultiplierReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `voterCount` function with signature `voterCount()` and selector `0x42169e48` @@ -25590,7 +25729,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct VoterCountReturn(pub u32); ///Container type for all return fields from the `voterMerkleRoot` function with signature `voterMerkleRoot()` and selector `0x2a69fb46` @@ -25604,7 +25743,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct VoterMerkleRootReturn(pub [u8; 32]); ///`Vote(uint32,address,bytes32[])` @@ -25618,7 +25757,7 @@ pub mod signature_bridge_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Vote { pub leaf_index: u32, diff --git a/src/evm/contract/protocol_solidity/token_wrapper.rs b/src/evm/contract/protocol_solidity/token_wrapper.rs index d324dd6..0ae6764 100644 --- a/src/evm/contract/protocol_solidity/token_wrapper.rs +++ b/src/evm/contract/protocol_solidity/token_wrapper.rs @@ -7,7 +7,7 @@ pub use token_wrapper_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod token_wrapper_contract { #[rustfmt::skip] @@ -37,7 +37,10 @@ pub mod token_wrapper_contract { } } impl ::core::fmt::Debug for TokenWrapperContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(TokenWrapperContract)) .field(&self.address()) .finish() @@ -50,13 +53,11 @@ pub mod token_wrapper_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - TOKENWRAPPERCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + TOKENWRAPPERCONTRACT_ABI.clone(), + client, + )) } ///Calls the contract's `DEFAULT_ADMIN_ROLE` (0xa217fddf) function pub fn default_admin_role( @@ -87,7 +88,10 @@ pub mod token_wrapper_contract { &self, owner: ::ethers::core::types::Address, spender: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([221, 98, 237, 62], (owner, spender)) .expect("method not found (this should never happen)") @@ -106,7 +110,10 @@ pub mod token_wrapper_contract { pub fn balance_of( &self, account: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([112, 160, 130, 49], account) .expect("method not found (this should never happen)") @@ -131,7 +138,9 @@ pub mod token_wrapper_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `decimals` (0x313ce567) function - pub fn decimals(&self) -> ::ethers::contract::builders::ContractCall { + pub fn decimals( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([49, 60, 229, 103], ()) .expect("method not found (this should never happen)") @@ -169,7 +178,10 @@ pub mod token_wrapper_contract { pub fn get_amount_to_wrap( &self, deposit: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([150, 205, 77, 254], deposit) .expect("method not found (this should never happen)") @@ -178,7 +190,10 @@ pub mod token_wrapper_contract { pub fn get_fee_from_amount( &self, amount_to_wrap: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([133, 192, 10, 232], amount_to_wrap) .expect("method not found (this should never happen)") @@ -209,7 +224,10 @@ pub mod token_wrapper_contract { pub fn get_role_member_count( &self, role: [u8; 32], - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([202, 21, 200, 115], role) .expect("method not found (this should never happen)") @@ -274,19 +292,24 @@ pub mod token_wrapper_contract { ///Calls the contract's `name` (0x06fdde03) function pub fn name( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall + { self.0 .method_hash([6, 253, 222, 3], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `pause` (0x8456cb59) function - pub fn pause(&self) -> ::ethers::contract::builders::ContractCall { + pub fn pause( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([132, 86, 203, 89], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `paused` (0x5c975abb) function - pub fn paused(&self) -> ::ethers::contract::builders::ContractCall { + pub fn paused( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([92, 151, 90, 187], ()) .expect("method not found (this should never happen)") @@ -323,7 +346,8 @@ pub mod token_wrapper_contract { ///Calls the contract's `symbol` (0x95d89b41) function pub fn symbol( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall + { self.0 .method_hash([149, 216, 155, 65], ()) .expect("method not found (this should never happen)") @@ -331,7 +355,10 @@ pub mod token_wrapper_contract { ///Calls the contract's `totalSupply` (0x18160ddd) function pub fn total_supply( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([24, 22, 13, 221], ()) .expect("method not found (this should never happen)") @@ -358,7 +385,9 @@ pub mod token_wrapper_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `unpause` (0x3f4ba83a) function - pub fn unpause(&self) -> ::ethers::contract::builders::ContractCall { + pub fn unpause( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([63, 75, 168, 58], ()) .expect("method not found (this should never happen)") @@ -381,7 +410,10 @@ pub mod token_wrapper_contract { recipient: ::ethers::core::types::Address, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([72, 8, 40, 94], (token_address, amount, recipient)) + .method_hash( + [72, 8, 40, 94], + (token_address, amount, recipient), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `unwrapFor` (0x261c80b6) function @@ -392,7 +424,10 @@ pub mod token_wrapper_contract { amount: ::ethers::core::types::U256, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([38, 28, 128, 182], (sender, token_address, amount)) + .method_hash( + [38, 28, 128, 182], + (sender, token_address, amount), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `wrap` (0xbf376c7a) function @@ -413,7 +448,10 @@ pub mod token_wrapper_contract { amount: ::ethers::core::types::U256, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([44, 166, 147, 136], (sender, token_address, amount)) + .method_hash( + [44, 166, 147, 136], + (sender, token_address, amount), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `wrapForAndSendTo` (0x7b2e30d6) function @@ -444,7 +482,11 @@ pub mod token_wrapper_contract { ///Gets the contract's `Paused` event pub fn paused_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + PausedFilter, + > { self.0.event() } ///Gets the contract's `RoleAdminChanged` event @@ -525,11 +567,13 @@ pub mod token_wrapper_contract { M, TokenWrapperContractEvents, > { - self.0.event_with_filter(::core::default::Default::default()) + self.0 + .event_with_filter(::core::default::Default::default()) } } - impl From<::ethers::contract::Contract> - for TokenWrapperContract { + impl + From<::ethers::contract::Contract> for TokenWrapperContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -544,7 +588,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Approval", abi = "Approval(address,address,uint256)")] pub struct ApprovalFilter { @@ -564,7 +608,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Paused", abi = "Paused(address)")] pub struct PausedFilter { @@ -580,7 +624,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "RoleAdminChanged", @@ -604,9 +648,12 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "RoleGranted", + abi = "RoleGranted(bytes32,address,address)" )] - #[ethevent(name = "RoleGranted", abi = "RoleGranted(bytes32,address,address)")] pub struct RoleGrantedFilter { #[ethevent(indexed)] pub role: [u8; 32], @@ -625,9 +672,12 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "RoleRevoked", + abi = "RoleRevoked(bytes32,address,address)" )] - #[ethevent(name = "RoleRevoked", abi = "RoleRevoked(bytes32,address,address)")] pub struct RoleRevokedFilter { #[ethevent(indexed)] pub role: [u8; 32], @@ -646,7 +696,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Transfer", abi = "Transfer(address,address,uint256)")] pub struct TransferFilter { @@ -666,7 +716,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] pub struct UnpausedFilter { @@ -682,9 +732,12 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "Unwrapping", + abi = "Unwrapping(address,address,address,uint256)" )] - #[ethevent(name = "Unwrapping", abi = "Unwrapping(address,address,address,uint256)")] pub struct UnwrappingFilter { #[ethevent(indexed)] pub sender: ::ethers::core::types::Address, @@ -704,7 +757,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "Wrapping", @@ -729,7 +782,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum TokenWrapperContractEvents { ApprovalFilter(ApprovalFilter), @@ -753,13 +806,19 @@ pub mod token_wrapper_contract { return Ok(TokenWrapperContractEvents::PausedFilter(decoded)); } if let Ok(decoded) = RoleAdminChangedFilter::decode_log(log) { - return Ok(TokenWrapperContractEvents::RoleAdminChangedFilter(decoded)); + return Ok(TokenWrapperContractEvents::RoleAdminChangedFilter( + decoded, + )); } if let Ok(decoded) = RoleGrantedFilter::decode_log(log) { - return Ok(TokenWrapperContractEvents::RoleGrantedFilter(decoded)); + return Ok(TokenWrapperContractEvents::RoleGrantedFilter( + decoded, + )); } if let Ok(decoded) = RoleRevokedFilter::decode_log(log) { - return Ok(TokenWrapperContractEvents::RoleRevokedFilter(decoded)); + return Ok(TokenWrapperContractEvents::RoleRevokedFilter( + decoded, + )); } if let Ok(decoded) = TransferFilter::decode_log(log) { return Ok(TokenWrapperContractEvents::TransferFilter(decoded)); @@ -768,7 +827,9 @@ pub mod token_wrapper_contract { return Ok(TokenWrapperContractEvents::UnpausedFilter(decoded)); } if let Ok(decoded) = UnwrappingFilter::decode_log(log) { - return Ok(TokenWrapperContractEvents::UnwrappingFilter(decoded)); + return Ok(TokenWrapperContractEvents::UnwrappingFilter( + decoded, + )); } if let Ok(decoded) = WrappingFilter::decode_log(log) { return Ok(TokenWrapperContractEvents::WrappingFilter(decoded)); @@ -777,19 +838,38 @@ pub mod token_wrapper_contract { } } impl ::core::fmt::Display for TokenWrapperContractEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::ApprovalFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::ApprovalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::PausedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::RoleAdminChangedFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::RoleGrantedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::RoleRevokedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::TransferFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnwrappingFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::WrappingFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::RoleGrantedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RoleRevokedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::TransferFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnpausedFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnwrappingFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WrappingFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -803,7 +883,9 @@ pub mod token_wrapper_contract { Self::PausedFilter(value) } } - impl ::core::convert::From for TokenWrapperContractEvents { + impl ::core::convert::From + for TokenWrapperContractEvents + { fn from(value: RoleAdminChangedFilter) -> Self { Self::RoleAdminChangedFilter(value) } @@ -849,7 +931,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "DEFAULT_ADMIN_ROLE", abi = "DEFAULT_ADMIN_ROLE()")] pub struct DefaultAdminRoleCall; @@ -864,7 +946,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "MINTER_ROLE", abi = "MINTER_ROLE()")] pub struct MinterRoleCall; @@ -879,7 +961,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "PAUSER_ROLE", abi = "PAUSER_ROLE()")] pub struct PauserRoleCall; @@ -894,7 +976,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "allowance", abi = "allowance(address,address)")] pub struct AllowanceCall { @@ -912,7 +994,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "approve", abi = "approve(address,uint256)")] pub struct ApproveCall { @@ -930,7 +1012,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "balanceOf", abi = "balanceOf(address)")] pub struct BalanceOfCall { @@ -947,7 +1029,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "burn", abi = "burn(uint256)")] pub struct BurnCall { @@ -964,7 +1046,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "burnFrom", abi = "burnFrom(address,uint256)")] pub struct BurnFromCall { @@ -982,7 +1064,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "decimals", abi = "decimals()")] pub struct DecimalsCall; @@ -997,9 +1079,12 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "decreaseAllowance", + abi = "decreaseAllowance(address,uint256)" )] - #[ethcall(name = "decreaseAllowance", abi = "decreaseAllowance(address,uint256)")] pub struct DecreaseAllowanceCall { pub spender: ::ethers::core::types::Address, pub subtracted_value: ::ethers::core::types::U256, @@ -1015,7 +1100,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "feePercentage", abi = "feePercentage()")] pub struct FeePercentageCall; @@ -1030,7 +1115,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "feeRecipient", abi = "feeRecipient()")] pub struct FeeRecipientCall; @@ -1045,7 +1130,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getAmountToWrap", abi = "getAmountToWrap(uint256)")] pub struct GetAmountToWrapCall { @@ -1062,7 +1147,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getFeeFromAmount", abi = "getFeeFromAmount(uint256)")] pub struct GetFeeFromAmountCall { @@ -1079,7 +1164,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleAdmin", abi = "getRoleAdmin(bytes32)")] pub struct GetRoleAdminCall { @@ -1096,7 +1181,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleMember", abi = "getRoleMember(bytes32,uint256)")] pub struct GetRoleMemberCall { @@ -1114,7 +1199,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getRoleMemberCount", abi = "getRoleMemberCount(bytes32)")] pub struct GetRoleMemberCountCall { @@ -1131,7 +1216,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "grantRole", abi = "grantRole(bytes32,address)")] pub struct GrantRoleCall { @@ -1149,7 +1234,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hasRole", abi = "hasRole(bytes32,address)")] pub struct HasRoleCall { @@ -1167,9 +1252,12 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "increaseAllowance", + abi = "increaseAllowance(address,uint256)" )] - #[ethcall(name = "increaseAllowance", abi = "increaseAllowance(address,uint256)")] pub struct IncreaseAllowanceCall { pub spender: ::ethers::core::types::Address, pub added_value: ::ethers::core::types::U256, @@ -1185,7 +1273,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "initialized", abi = "initialized()")] pub struct InitializedCall; @@ -1200,7 +1288,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isValidToken", abi = "isValidToken(address)")] pub struct IsValidTokenCall { @@ -1217,7 +1305,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "mint", abi = "mint(address,uint256)")] pub struct MintCall { @@ -1235,7 +1323,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "name", abi = "name()")] pub struct NameCall; @@ -1250,7 +1338,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "pause", abi = "pause()")] pub struct PauseCall; @@ -1265,7 +1353,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "paused", abi = "paused()")] pub struct PausedCall; @@ -1280,7 +1368,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "renounceRole", abi = "renounceRole(bytes32,address)")] pub struct RenounceRoleCall { @@ -1298,7 +1386,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "revokeRole", abi = "revokeRole(bytes32,address)")] pub struct RevokeRoleCall { @@ -1316,7 +1404,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "supportsInterface", abi = "supportsInterface(bytes4)")] pub struct SupportsInterfaceCall { @@ -1333,7 +1421,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "symbol", abi = "symbol()")] pub struct SymbolCall; @@ -1348,7 +1436,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "totalSupply", abi = "totalSupply()")] pub struct TotalSupplyCall; @@ -1363,7 +1451,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "transfer", abi = "transfer(address,uint256)")] pub struct TransferCall { @@ -1381,9 +1469,12 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "transferFrom", + abi = "transferFrom(address,address,uint256)" )] - #[ethcall(name = "transferFrom", abi = "transferFrom(address,address,uint256)")] pub struct TransferFromCall { pub from: ::ethers::core::types::Address, pub to: ::ethers::core::types::Address, @@ -1400,7 +1491,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unpause", abi = "unpause()")] pub struct UnpauseCall; @@ -1415,7 +1506,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unwrap", abi = "unwrap(address,uint256)")] pub struct UnwrapCall { @@ -1433,7 +1524,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "unwrapAndSendTo", @@ -1455,7 +1546,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unwrapFor", abi = "unwrapFor(address,address,uint256)")] pub struct UnwrapForCall { @@ -1474,7 +1565,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "wrap", abi = "wrap(address,uint256)")] pub struct WrapCall { @@ -1492,7 +1583,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "wrapFor", abi = "wrapFor(address,address,uint256)")] pub struct WrapForCall { @@ -1511,7 +1602,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "wrapForAndSendTo", @@ -1532,7 +1623,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum TokenWrapperContractCalls { DefaultAdminRole(DefaultAdminRoleCall), @@ -1579,44 +1670,54 @@ pub mod token_wrapper_contract { impl ::ethers::core::abi::AbiDecode for TokenWrapperContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::DefaultAdminRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::MinterRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::PauserRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Allowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Approve(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::BalanceOf(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Burn(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::BurnFrom(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Decimals(decoded)); } if let Ok(decoded) @@ -1625,30 +1726,46 @@ pub mod token_wrapper_contract { ) { return Ok(Self::DecreaseAllowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::FeePercentage(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::FeeRecipient(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetAmountToWrap(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::GetFeeFromAmount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetRoleAdmin(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetRoleMember(decoded)); } if let Ok(decoded) @@ -1657,12 +1774,14 @@ pub mod token_wrapper_contract { ) { return Ok(Self::GetRoleMemberCount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GrantRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::HasRole(decoded)); } if let Ok(decoded) @@ -1671,36 +1790,50 @@ pub mod token_wrapper_contract { ) { return Ok(Self::IncreaseAllowance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::Initialized(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsValidToken(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Mint(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Name(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Pause(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Paused(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::RenounceRole(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::RevokeRole(decoded)); } if let Ok(decoded) @@ -1709,50 +1842,67 @@ pub mod token_wrapper_contract { ) { return Ok(Self::SupportsInterface(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Symbol(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::TotalSupply(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Transfer(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::TransferFrom(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Unpause(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Unwrap(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::UnwrapAndSendTo(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::UnwrapFor(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Wrap(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::WrapFor(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::WrapForAndSendTo(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -1773,11 +1923,15 @@ pub mod token_wrapper_contract { Self::Allowance(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Approve(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Approve(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::BalanceOf(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Burn(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Burn(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::BurnFrom(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -1811,7 +1965,9 @@ pub mod token_wrapper_contract { Self::GrantRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::HasRole(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::HasRole(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::IncreaseAllowance(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -1821,10 +1977,18 @@ pub mod token_wrapper_contract { Self::IsValidToken(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Mint(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Name(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Pause(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Paused(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Mint(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Name(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Pause(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Paused(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::RenounceRole(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -1834,7 +1998,9 @@ pub mod token_wrapper_contract { Self::SupportsInterface(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Symbol(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Symbol(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::TotalSupply(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -1844,16 +2010,24 @@ pub mod token_wrapper_contract { Self::TransferFrom(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Unpause(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Unwrap(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Unpause(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Unwrap(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::UnwrapAndSendTo(element) => { ::ethers::core::abi::AbiEncode::encode(element) } Self::UnwrapFor(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Wrap(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::WrapFor(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Wrap(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::WrapFor(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::WrapForAndSendTo(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -1861,50 +2035,107 @@ pub mod token_wrapper_contract { } } impl ::core::fmt::Display for TokenWrapperContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::DefaultAdminRole(element) => ::core::fmt::Display::fmt(element, f), - Self::MinterRole(element) => ::core::fmt::Display::fmt(element, f), - Self::PauserRole(element) => ::core::fmt::Display::fmt(element, f), - Self::Allowance(element) => ::core::fmt::Display::fmt(element, f), + Self::DefaultAdminRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MinterRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::PauserRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Allowance(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Approve(element) => ::core::fmt::Display::fmt(element, f), - Self::BalanceOf(element) => ::core::fmt::Display::fmt(element, f), + Self::BalanceOf(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Burn(element) => ::core::fmt::Display::fmt(element, f), - Self::BurnFrom(element) => ::core::fmt::Display::fmt(element, f), - Self::Decimals(element) => ::core::fmt::Display::fmt(element, f), - Self::DecreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::FeePercentage(element) => ::core::fmt::Display::fmt(element, f), - Self::FeeRecipient(element) => ::core::fmt::Display::fmt(element, f), - Self::GetAmountToWrap(element) => ::core::fmt::Display::fmt(element, f), - Self::GetFeeFromAmount(element) => ::core::fmt::Display::fmt(element, f), - Self::GetRoleAdmin(element) => ::core::fmt::Display::fmt(element, f), - Self::GetRoleMember(element) => ::core::fmt::Display::fmt(element, f), + Self::BurnFrom(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Decimals(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::DecreaseAllowance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FeePercentage(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FeeRecipient(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetAmountToWrap(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetFeeFromAmount(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetRoleAdmin(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetRoleMember(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::GetRoleMemberCount(element) => { ::core::fmt::Display::fmt(element, f) } - Self::GrantRole(element) => ::core::fmt::Display::fmt(element, f), + Self::GrantRole(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::HasRole(element) => ::core::fmt::Display::fmt(element, f), - Self::IncreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::Initialized(element) => ::core::fmt::Display::fmt(element, f), - Self::IsValidToken(element) => ::core::fmt::Display::fmt(element, f), + Self::IncreaseAllowance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Initialized(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::IsValidToken(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Mint(element) => ::core::fmt::Display::fmt(element, f), Self::Name(element) => ::core::fmt::Display::fmt(element, f), Self::Pause(element) => ::core::fmt::Display::fmt(element, f), Self::Paused(element) => ::core::fmt::Display::fmt(element, f), - Self::RenounceRole(element) => ::core::fmt::Display::fmt(element, f), - Self::RevokeRole(element) => ::core::fmt::Display::fmt(element, f), - Self::SupportsInterface(element) => ::core::fmt::Display::fmt(element, f), + Self::RenounceRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RevokeRole(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SupportsInterface(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Symbol(element) => ::core::fmt::Display::fmt(element, f), - Self::TotalSupply(element) => ::core::fmt::Display::fmt(element, f), - Self::Transfer(element) => ::core::fmt::Display::fmt(element, f), - Self::TransferFrom(element) => ::core::fmt::Display::fmt(element, f), + Self::TotalSupply(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Transfer(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::TransferFrom(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Unpause(element) => ::core::fmt::Display::fmt(element, f), Self::Unwrap(element) => ::core::fmt::Display::fmt(element, f), - Self::UnwrapAndSendTo(element) => ::core::fmt::Display::fmt(element, f), - Self::UnwrapFor(element) => ::core::fmt::Display::fmt(element, f), + Self::UnwrapAndSendTo(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnwrapFor(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Wrap(element) => ::core::fmt::Display::fmt(element, f), Self::WrapFor(element) => ::core::fmt::Display::fmt(element, f), - Self::WrapForAndSendTo(element) => ::core::fmt::Display::fmt(element, f), + Self::WrapForAndSendTo(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -1953,7 +2184,9 @@ pub mod token_wrapper_contract { Self::Decimals(value) } } - impl ::core::convert::From for TokenWrapperContractCalls { + impl ::core::convert::From + for TokenWrapperContractCalls + { fn from(value: DecreaseAllowanceCall) -> Self { Self::DecreaseAllowance(value) } @@ -1988,7 +2221,9 @@ pub mod token_wrapper_contract { Self::GetRoleMember(value) } } - impl ::core::convert::From for TokenWrapperContractCalls { + impl ::core::convert::From + for TokenWrapperContractCalls + { fn from(value: GetRoleMemberCountCall) -> Self { Self::GetRoleMemberCount(value) } @@ -2003,7 +2238,9 @@ pub mod token_wrapper_contract { Self::HasRole(value) } } - impl ::core::convert::From for TokenWrapperContractCalls { + impl ::core::convert::From + for TokenWrapperContractCalls + { fn from(value: IncreaseAllowanceCall) -> Self { Self::IncreaseAllowance(value) } @@ -2048,7 +2285,9 @@ pub mod token_wrapper_contract { Self::RevokeRole(value) } } - impl ::core::convert::From for TokenWrapperContractCalls { + impl ::core::convert::From + for TokenWrapperContractCalls + { fn from(value: SupportsInterfaceCall) -> Self { Self::SupportsInterface(value) } @@ -2119,7 +2358,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DefaultAdminRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `MINTER_ROLE` function with signature `MINTER_ROLE()` and selector `0xd5391393` @@ -2133,7 +2372,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MinterRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `PAUSER_ROLE` function with signature `PAUSER_ROLE()` and selector `0xe63ab1e9` @@ -2147,7 +2386,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PauserRoleReturn(pub [u8; 32]); ///Container type for all return fields from the `allowance` function with signature `allowance(address,address)` and selector `0xdd62ed3e` @@ -2161,7 +2400,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct AllowanceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `approve` function with signature `approve(address,uint256)` and selector `0x095ea7b3` @@ -2175,7 +2414,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ApproveReturn(pub bool); ///Container type for all return fields from the `balanceOf` function with signature `balanceOf(address)` and selector `0x70a08231` @@ -2189,7 +2428,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct BalanceOfReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `decimals` function with signature `decimals()` and selector `0x313ce567` @@ -2203,7 +2442,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DecimalsReturn(pub u8); ///Container type for all return fields from the `decreaseAllowance` function with signature `decreaseAllowance(address,uint256)` and selector `0xa457c2d7` @@ -2217,7 +2456,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct DecreaseAllowanceReturn(pub bool); ///Container type for all return fields from the `feePercentage` function with signature `feePercentage()` and selector `0xa001ecdd` @@ -2231,7 +2470,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FeePercentageReturn(pub u16); ///Container type for all return fields from the `feeRecipient` function with signature `feeRecipient()` and selector `0x46904840` @@ -2245,7 +2484,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FeeRecipientReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `getAmountToWrap` function with signature `getAmountToWrap(uint256)` and selector `0x96cd4dfe` @@ -2259,7 +2498,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetAmountToWrapReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getFeeFromAmount` function with signature `getFeeFromAmount(uint256)` and selector `0x85c00ae8` @@ -2273,7 +2512,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetFeeFromAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getRoleAdmin` function with signature `getRoleAdmin(bytes32)` and selector `0x248a9ca3` @@ -2287,7 +2526,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleAdminReturn(pub [u8; 32]); ///Container type for all return fields from the `getRoleMember` function with signature `getRoleMember(bytes32,uint256)` and selector `0x9010d07c` @@ -2301,7 +2540,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleMemberReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `getRoleMemberCount` function with signature `getRoleMemberCount(bytes32)` and selector `0xca15c873` @@ -2315,7 +2554,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetRoleMemberCountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `hasRole` function with signature `hasRole(bytes32,address)` and selector `0x91d14854` @@ -2329,7 +2568,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HasRoleReturn(pub bool); ///Container type for all return fields from the `increaseAllowance` function with signature `increaseAllowance(address,uint256)` and selector `0x39509351` @@ -2343,7 +2582,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IncreaseAllowanceReturn(pub bool); ///Container type for all return fields from the `initialized` function with signature `initialized()` and selector `0x158ef93e` @@ -2357,7 +2596,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct InitializedReturn(pub bool); ///Container type for all return fields from the `isValidToken` function with signature `isValidToken(address)` and selector `0xc1876453` @@ -2371,7 +2610,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsValidTokenReturn(pub bool); ///Container type for all return fields from the `name` function with signature `name()` and selector `0x06fdde03` @@ -2385,7 +2624,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct NameReturn(pub ::std::string::String); ///Container type for all return fields from the `paused` function with signature `paused()` and selector `0x5c975abb` @@ -2399,7 +2638,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PausedReturn(pub bool); ///Container type for all return fields from the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7` @@ -2413,7 +2652,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct SupportsInterfaceReturn(pub bool); ///Container type for all return fields from the `symbol` function with signature `symbol()` and selector `0x95d89b41` @@ -2427,7 +2666,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct SymbolReturn(pub ::std::string::String); ///Container type for all return fields from the `totalSupply` function with signature `totalSupply()` and selector `0x18160ddd` @@ -2441,7 +2680,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TotalSupplyReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `transfer` function with signature `transfer(address,uint256)` and selector `0xa9059cbb` @@ -2455,7 +2694,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TransferReturn(pub bool); ///Container type for all return fields from the `transferFrom` function with signature `transferFrom(address,address,uint256)` and selector `0x23b872dd` @@ -2469,7 +2708,7 @@ pub mod token_wrapper_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TransferFromReturn(pub bool); } diff --git a/src/evm/contract/protocol_solidity/token_wrapper_handler.rs b/src/evm/contract/protocol_solidity/token_wrapper_handler.rs index d3bfa11..8f0ba35 100644 --- a/src/evm/contract/protocol_solidity/token_wrapper_handler.rs +++ b/src/evm/contract/protocol_solidity/token_wrapper_handler.rs @@ -7,7 +7,7 @@ pub use token_wrapper_handler_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod token_wrapper_handler_contract { #[rustfmt::skip] @@ -3207,9 +3207,9 @@ pub mod token_wrapper_handler_contract { 51, ]; ///The bytecode of the contract. - pub static TOKENWRAPPERHANDLERCONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static TOKENWRAPPERHANDLERCONTRACT_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 96, @@ -5301,9 +5301,9 @@ pub mod token_wrapper_handler_contract { 51, ]; ///The deployed bytecode of the contract. - pub static TOKENWRAPPERHANDLERCONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static TOKENWRAPPERHANDLERCONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct TokenWrapperHandlerContract(::ethers::contract::Contract); impl ::core::clone::Clone for TokenWrapperHandlerContract { fn clone(&self) -> Self { @@ -5322,7 +5322,10 @@ pub mod token_wrapper_handler_contract { } } impl ::core::fmt::Debug for TokenWrapperHandlerContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(TokenWrapperHandlerContract)) .field(&self.address()) .finish() @@ -5335,13 +5338,11 @@ pub mod token_wrapper_handler_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - TOKENWRAPPERHANDLERCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + TOKENWRAPPERHANDLERCONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -5449,12 +5450,17 @@ pub mod token_wrapper_handler_contract { contract_address: ::ethers::core::types::Address, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([184, 250, 55, 54], (resource_id, contract_address)) + .method_hash( + [184, 250, 55, 54], + (resource_id, contract_address), + ) .expect("method not found (this should never happen)") } } - impl From<::ethers::contract::Contract> - for TokenWrapperHandlerContract { + impl + From<::ethers::contract::Contract> + for TokenWrapperHandlerContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -5470,7 +5476,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "_bridgeAddress", abi = "_bridgeAddress()")] pub struct BridgeAddressCall; @@ -5485,13 +5491,15 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_contractAddressToResourceID", abi = "_contractAddressToResourceID(address)" )] - pub struct ContractAddressToResourceIDCall(pub ::ethers::core::types::Address); + pub struct ContractAddressToResourceIDCall( + pub ::ethers::core::types::Address, + ); ///Container type for all input parameters for the `_contractWhitelist` function with signature `_contractWhitelist(address)` and selector `0x7f79bea8` #[derive( Clone, @@ -5503,7 +5511,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "_contractWhitelist", abi = "_contractWhitelist(address)")] pub struct ContractWhitelistCall(pub ::ethers::core::types::Address); @@ -5518,7 +5526,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_resourceIDToContractAddress", @@ -5536,7 +5544,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "executeProposal", abi = "executeProposal(bytes32,bytes)")] pub struct ExecuteProposalCall { @@ -5554,7 +5562,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "migrateBridge", abi = "migrateBridge(address)")] pub struct MigrateBridgeCall { @@ -5571,7 +5579,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setResource", abi = "setResource(bytes32,address)")] pub struct SetResourceCall { @@ -5587,7 +5595,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum TokenWrapperHandlerContractCalls { BridgeAddress(BridgeAddressCall), @@ -5601,10 +5609,14 @@ pub mod token_wrapper_handler_contract { impl ::ethers::core::abi::AbiDecode for TokenWrapperHandlerContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::BridgeAddress(decoded)); } if let Ok(decoded) @@ -5625,16 +5637,25 @@ pub mod token_wrapper_handler_contract { ) { return Ok(Self::ResourceIDToContractAddress(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ExecuteProposal(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::MigrateBridge(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::SetResource(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -5668,57 +5689,80 @@ pub mod token_wrapper_handler_contract { } } impl ::core::fmt::Display for TokenWrapperHandlerContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::BridgeAddress(element) => ::core::fmt::Display::fmt(element, f), + Self::BridgeAddress(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ContractAddressToResourceID(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ContractWhitelist(element) => ::core::fmt::Display::fmt(element, f), + Self::ContractWhitelist(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ResourceIDToContractAddress(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ExecuteProposal(element) => ::core::fmt::Display::fmt(element, f), - Self::MigrateBridge(element) => ::core::fmt::Display::fmt(element, f), - Self::SetResource(element) => ::core::fmt::Display::fmt(element, f), + Self::ExecuteProposal(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MigrateBridge(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetResource(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } - impl ::core::convert::From for TokenWrapperHandlerContractCalls { + impl ::core::convert::From + for TokenWrapperHandlerContractCalls + { fn from(value: BridgeAddressCall) -> Self { Self::BridgeAddress(value) } } impl ::core::convert::From - for TokenWrapperHandlerContractCalls { + for TokenWrapperHandlerContractCalls + { fn from(value: ContractAddressToResourceIDCall) -> Self { Self::ContractAddressToResourceID(value) } } impl ::core::convert::From - for TokenWrapperHandlerContractCalls { + for TokenWrapperHandlerContractCalls + { fn from(value: ContractWhitelistCall) -> Self { Self::ContractWhitelist(value) } } impl ::core::convert::From - for TokenWrapperHandlerContractCalls { + for TokenWrapperHandlerContractCalls + { fn from(value: ResourceIDToContractAddressCall) -> Self { Self::ResourceIDToContractAddress(value) } } impl ::core::convert::From - for TokenWrapperHandlerContractCalls { + for TokenWrapperHandlerContractCalls + { fn from(value: ExecuteProposalCall) -> Self { Self::ExecuteProposal(value) } } - impl ::core::convert::From for TokenWrapperHandlerContractCalls { + impl ::core::convert::From + for TokenWrapperHandlerContractCalls + { fn from(value: MigrateBridgeCall) -> Self { Self::MigrateBridge(value) } } - impl ::core::convert::From for TokenWrapperHandlerContractCalls { + impl ::core::convert::From + for TokenWrapperHandlerContractCalls + { fn from(value: SetResourceCall) -> Self { Self::SetResource(value) } @@ -5734,7 +5778,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct BridgeAddressReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `_contractAddressToResourceID` function with signature `_contractAddressToResourceID(address)` and selector `0xec97d3b4` @@ -5748,7 +5792,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ContractAddressToResourceIDReturn(pub [u8; 32]); ///Container type for all return fields from the `_contractWhitelist` function with signature `_contractWhitelist(address)` and selector `0x7f79bea8` @@ -5762,7 +5806,7 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ContractWhitelistReturn(pub bool); ///Container type for all return fields from the `_resourceIDToContractAddress` function with signature `_resourceIDToContractAddress(bytes32)` and selector `0xc54c2a11` @@ -5776,7 +5820,9 @@ pub mod token_wrapper_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] - pub struct ResourceIDToContractAddressReturn(pub ::ethers::core::types::Address); + pub struct ResourceIDToContractAddressReturn( + pub ::ethers::core::types::Address, + ); } diff --git a/src/evm/contract/protocol_solidity/treasury.rs b/src/evm/contract/protocol_solidity/treasury.rs index bcb1163..83a863c 100644 --- a/src/evm/contract/protocol_solidity/treasury.rs +++ b/src/evm/contract/protocol_solidity/treasury.rs @@ -7,7 +7,7 @@ pub use treasury_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod treasury_contract { #[rustfmt::skip] @@ -2854,9 +2854,8 @@ pub mod treasury_contract { 51, ]; ///The bytecode of the contract. - pub static TREASURYCONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static TREASURYCONTRACT_BYTECODE: ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 96, @@ -5441,9 +5440,9 @@ pub mod treasury_contract { 51, ]; ///The deployed bytecode of the contract. - pub static TREASURYCONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static TREASURYCONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct TreasuryContract(::ethers::contract::Contract); impl ::core::clone::Clone for TreasuryContract { fn clone(&self) -> Self { @@ -5462,8 +5461,13 @@ pub mod treasury_contract { } } impl ::core::fmt::Debug for TreasuryContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(stringify!(TreasuryContract)).field(&self.address()).finish() + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { + f.debug_tuple(stringify!(TreasuryContract)) + .field(&self.address()) + .finish() } } impl TreasuryContract { @@ -5473,13 +5477,11 @@ pub mod treasury_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - TREASURYCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + TREASURYCONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -5523,7 +5525,10 @@ pub mod treasury_contract { ///Calls the contract's `getProposalNonce` (0x0b27fb9a) function pub fn get_proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([11, 39, 251, 154], ()) .expect("method not found (this should never happen)") @@ -5531,7 +5536,10 @@ pub mod treasury_contract { ///Calls the contract's `proposalNonce` (0xcc3c74a1) function pub fn proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([204, 60, 116, 161], ()) .expect("method not found (this should never happen)") @@ -5579,11 +5587,13 @@ pub mod treasury_contract { M, TreasuryHandlerUpdatedFilter, > { - self.0.event_with_filter(::core::default::Default::default()) + self.0 + .event_with_filter(::core::default::Default::default()) } } - impl From<::ethers::contract::Contract> - for TreasuryContract { + impl + From<::ethers::contract::Contract> for TreasuryContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -5598,9 +5608,12 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "TreasuryHandlerUpdated", + abi = "TreasuryHandlerUpdated(address)" )] - #[ethevent(name = "TreasuryHandlerUpdated", abi = "TreasuryHandlerUpdated(address)")] pub struct TreasuryHandlerUpdatedFilter { pub handler: ::ethers::core::types::Address, } @@ -5615,7 +5628,7 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getProposalNonce", abi = "getProposalNonce()")] pub struct GetProposalNonceCall; @@ -5630,7 +5643,7 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "proposalNonce", abi = "proposalNonce()")] pub struct ProposalNonceCall; @@ -5645,7 +5658,7 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "rescueTokens", @@ -5668,7 +5681,7 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setHandler", abi = "setHandler(address,uint32)")] pub struct SetHandlerCall { @@ -5684,7 +5697,7 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum TreasuryContractCalls { GetProposalNonce(GetProposalNonceCall), @@ -5695,24 +5708,33 @@ pub mod treasury_contract { impl ::ethers::core::abi::AbiDecode for TreasuryContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::GetProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::RescueTokens(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::SetHandler(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -5737,12 +5759,23 @@ pub mod treasury_contract { } } impl ::core::fmt::Display for TreasuryContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::GetProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::ProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::RescueTokens(element) => ::core::fmt::Display::fmt(element, f), - Self::SetHandler(element) => ::core::fmt::Display::fmt(element, f), + Self::GetProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::RescueTokens(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetHandler(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -5777,7 +5810,7 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `proposalNonce` function with signature `proposalNonce()` and selector `0xcc3c74a1` @@ -5791,7 +5824,7 @@ pub mod treasury_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ProposalNonceReturn(pub ::ethers::core::types::U256); } diff --git a/src/evm/contract/protocol_solidity/treasury_handler.rs b/src/evm/contract/protocol_solidity/treasury_handler.rs index 4c9f853..942baec 100644 --- a/src/evm/contract/protocol_solidity/treasury_handler.rs +++ b/src/evm/contract/protocol_solidity/treasury_handler.rs @@ -7,7 +7,7 @@ pub use treasury_handler_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod treasury_handler_contract { #[rustfmt::skip] @@ -2987,9 +2987,8 @@ pub mod treasury_handler_contract { 51, ]; ///The bytecode of the contract. - pub static TREASURYHANDLERCONTRACT_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); + pub static TREASURYHANDLERCONTRACT_BYTECODE: ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__BYTECODE); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = &[ 96, @@ -4870,9 +4869,9 @@ pub mod treasury_handler_contract { 51, ]; ///The deployed bytecode of the contract. - pub static TREASURYHANDLERCONTRACT_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); + pub static TREASURYHANDLERCONTRACT_DEPLOYED_BYTECODE: + ::ethers::core::types::Bytes = + ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); pub struct TreasuryHandlerContract(::ethers::contract::Contract); impl ::core::clone::Clone for TreasuryHandlerContract { fn clone(&self) -> Self { @@ -4891,7 +4890,10 @@ pub mod treasury_handler_contract { } } impl ::core::fmt::Debug for TreasuryHandlerContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(TreasuryHandlerContract)) .field(&self.address()) .finish() @@ -4904,13 +4906,11 @@ pub mod treasury_handler_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - TREASURYHANDLERCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + TREASURYHANDLERCONTRACT_ABI.clone(), + client, + )) } /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction @@ -5018,12 +5018,16 @@ pub mod treasury_handler_contract { contract_address: ::ethers::core::types::Address, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([184, 250, 55, 54], (resource_id, contract_address)) + .method_hash( + [184, 250, 55, 54], + (resource_id, contract_address), + ) .expect("method not found (this should never happen)") } } - impl From<::ethers::contract::Contract> - for TreasuryHandlerContract { + impl + From<::ethers::contract::Contract> for TreasuryHandlerContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -5039,7 +5043,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "_bridgeAddress", abi = "_bridgeAddress()")] pub struct BridgeAddressCall; @@ -5054,13 +5058,15 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_contractAddressToResourceID", abi = "_contractAddressToResourceID(address)" )] - pub struct ContractAddressToResourceIDCall(pub ::ethers::core::types::Address); + pub struct ContractAddressToResourceIDCall( + pub ::ethers::core::types::Address, + ); ///Container type for all input parameters for the `_contractWhitelist` function with signature `_contractWhitelist(address)` and selector `0x7f79bea8` #[derive( Clone, @@ -5072,7 +5078,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "_contractWhitelist", abi = "_contractWhitelist(address)")] pub struct ContractWhitelistCall(pub ::ethers::core::types::Address); @@ -5087,7 +5093,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_resourceIDToContractAddress", @@ -5105,7 +5111,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "executeProposal", abi = "executeProposal(bytes32,bytes)")] pub struct ExecuteProposalCall { @@ -5123,7 +5129,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "migrateBridge", abi = "migrateBridge(address)")] pub struct MigrateBridgeCall { @@ -5140,7 +5146,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setResource", abi = "setResource(bytes32,address)")] pub struct SetResourceCall { @@ -5156,7 +5162,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum TreasuryHandlerContractCalls { BridgeAddress(BridgeAddressCall), @@ -5170,10 +5176,14 @@ pub mod treasury_handler_contract { impl ::ethers::core::abi::AbiDecode for TreasuryHandlerContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::BridgeAddress(decoded)); } if let Ok(decoded) @@ -5194,16 +5204,25 @@ pub mod treasury_handler_contract { ) { return Ok(Self::ResourceIDToContractAddress(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ExecuteProposal(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::MigrateBridge(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::SetResource(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -5237,19 +5256,32 @@ pub mod treasury_handler_contract { } } impl ::core::fmt::Display for TreasuryHandlerContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::BridgeAddress(element) => ::core::fmt::Display::fmt(element, f), + Self::BridgeAddress(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ContractAddressToResourceID(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ContractWhitelist(element) => ::core::fmt::Display::fmt(element, f), + Self::ContractWhitelist(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ResourceIDToContractAddress(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ExecuteProposal(element) => ::core::fmt::Display::fmt(element, f), - Self::MigrateBridge(element) => ::core::fmt::Display::fmt(element, f), - Self::SetResource(element) => ::core::fmt::Display::fmt(element, f), + Self::ExecuteProposal(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MigrateBridge(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetResource(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -5259,23 +5291,29 @@ pub mod treasury_handler_contract { } } impl ::core::convert::From - for TreasuryHandlerContractCalls { + for TreasuryHandlerContractCalls + { fn from(value: ContractAddressToResourceIDCall) -> Self { Self::ContractAddressToResourceID(value) } } - impl ::core::convert::From for TreasuryHandlerContractCalls { + impl ::core::convert::From + for TreasuryHandlerContractCalls + { fn from(value: ContractWhitelistCall) -> Self { Self::ContractWhitelist(value) } } impl ::core::convert::From - for TreasuryHandlerContractCalls { + for TreasuryHandlerContractCalls + { fn from(value: ResourceIDToContractAddressCall) -> Self { Self::ResourceIDToContractAddress(value) } } - impl ::core::convert::From for TreasuryHandlerContractCalls { + impl ::core::convert::From + for TreasuryHandlerContractCalls + { fn from(value: ExecuteProposalCall) -> Self { Self::ExecuteProposal(value) } @@ -5301,7 +5339,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct BridgeAddressReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `_contractAddressToResourceID` function with signature `_contractAddressToResourceID(address)` and selector `0xec97d3b4` @@ -5315,7 +5353,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ContractAddressToResourceIDReturn(pub [u8; 32]); ///Container type for all return fields from the `_contractWhitelist` function with signature `_contractWhitelist(address)` and selector `0x7f79bea8` @@ -5329,7 +5367,7 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ContractWhitelistReturn(pub bool); ///Container type for all return fields from the `_resourceIDToContractAddress` function with signature `_resourceIDToContractAddress(bytes32)` and selector `0xc54c2a11` @@ -5343,7 +5381,9 @@ pub mod treasury_handler_contract { Debug, PartialEq, Eq, - Hash + Hash, )] - pub struct ResourceIDToContractAddressReturn(pub ::ethers::core::types::Address); + pub struct ResourceIDToContractAddressReturn( + pub ::ethers::core::types::Address, + ); } diff --git a/src/evm/contract/protocol_solidity/vanchor_base.rs b/src/evm/contract/protocol_solidity/vanchor_base.rs index feca5e8..5d85dae 100644 --- a/src/evm/contract/protocol_solidity/vanchor_base.rs +++ b/src/evm/contract/protocol_solidity/vanchor_base.rs @@ -7,7 +7,7 @@ pub use v_anchor_base_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod v_anchor_base_contract { #[rustfmt::skip] @@ -37,7 +37,10 @@ pub mod v_anchor_base_contract { } } impl ::core::fmt::Debug for VAnchorBaseContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { f.debug_tuple(stringify!(VAnchorBaseContract)) .field(&self.address()) .finish() @@ -50,13 +53,11 @@ pub mod v_anchor_base_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - VANCHORBASECONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + VANCHORBASECONTRACT_ABI.clone(), + client, + )) } ///Calls the contract's `EVM_CHAIN_ID_TYPE` (0x8b7e8782) function pub fn evm_chain_id_type( @@ -69,7 +70,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `FIELD_SIZE` (0x414a37ba) function pub fn field_size( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([65, 74, 55, 186], ()) .expect("method not found (this should never happen)") @@ -77,7 +81,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `MAX_EXT_AMOUNT` (0x7fe24ffe) function pub fn max_ext_amount( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::I256, + > { self.0 .method_hash([127, 226, 79, 254], ()) .expect("method not found (this should never happen)") @@ -85,7 +92,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `MAX_FEE` (0xbc063e1a) function pub fn max_fee( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([188, 6, 62, 26], ()) .expect("method not found (this should never happen)") @@ -101,7 +111,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `ZERO_VALUE` (0xec732959) function pub fn zero_value( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([236, 115, 41, 89], ()) .expect("method not found (this should never happen)") @@ -112,7 +125,10 @@ pub mod v_anchor_base_contract { from_token_address: ::ethers::core::types::Address, to_token_address: ::ethers::core::types::Address, ext_amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash( [99, 56, 188, 188], @@ -131,7 +147,12 @@ pub mod v_anchor_base_contract { self.0 .method_hash( [80, 156, 212, 30], - (from_token_address, to_token_address, recipient, minus_ext_amount), + ( + from_token_address, + to_token_address, + recipient, + minus_ext_amount, + ), ) .expect("method not found (this should never happen)") } @@ -140,7 +161,10 @@ pub mod v_anchor_base_contract { &self, ext_amount: ::ethers::core::types::I256, fee: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([37, 112, 183, 180], (ext_amount, fee)) .expect("method not found (this should never happen)") @@ -161,7 +185,10 @@ pub mod v_anchor_base_contract { nonce: u32, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([140, 131, 43, 19], (maximum_deposit_amount, nonce)) + .method_hash( + [140, 131, 43, 19], + (maximum_deposit_amount, nonce), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `configureMinimalWithdrawalLimit` (0x1f7f99f7) function @@ -171,7 +198,10 @@ pub mod v_anchor_base_contract { nonce: u32, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([31, 127, 153, 247], (minimal_withdrawal_amount, nonce)) + .method_hash( + [31, 127, 153, 247], + (minimal_withdrawal_amount, nonce), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `currentNeighborRootIndex` (0x5d2d766c) function @@ -196,7 +226,10 @@ pub mod v_anchor_base_contract { pub fn edge_index( &self, p0: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([231, 14, 168, 124], p0) .expect("method not found (this should never happen)") @@ -222,7 +255,10 @@ pub mod v_anchor_base_contract { pub fn filled_subtrees( &self, p0: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([241, 120, 228, 124], p0) .expect("method not found (this should never happen)") @@ -230,7 +266,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `getChainId` (0x3408e470) function pub fn get_chain_id( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([52, 8, 228, 112], ()) .expect("method not found (this should never happen)") @@ -257,7 +296,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `getLastRoot` (0xba70f757) function pub fn get_last_root( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([186, 112, 247, 87], ()) .expect("method not found (this should never happen)") @@ -265,7 +307,8 @@ pub mod v_anchor_base_contract { ///Calls the contract's `getLatestNeighborEdges` (0x8c0d34d8) function pub fn get_latest_neighbor_edges( &self, - ) -> ::ethers::contract::builders::ContractCall> { + ) -> ::ethers::contract::builders::ContractCall> + { self.0 .method_hash([140, 13, 52, 216], ()) .expect("method not found (this should never happen)") @@ -282,7 +325,9 @@ pub mod v_anchor_base_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `getLevels` (0x0c394a60) function - pub fn get_levels(&self) -> ::ethers::contract::builders::ContractCall { + pub fn get_levels( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([12, 57, 74, 96], ()) .expect("method not found (this should never happen)") @@ -298,7 +343,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `getProposalNonce` (0x0b27fb9a) function pub fn get_proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([11, 39, 251, 154], ()) .expect("method not found (this should never happen)") @@ -307,7 +355,10 @@ pub mod v_anchor_base_contract { pub fn get_zero_hash( &self, index: u32, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([48, 94, 158, 172], index) .expect("method not found (this should never happen)") @@ -337,7 +388,10 @@ pub mod v_anchor_base_contract { &self, left: ::ethers::core::types::U256, right: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([91, 185, 57, 149], (left, right)) .expect("method not found (this should never happen)") @@ -413,7 +467,8 @@ pub mod v_anchor_base_contract { pub fn is_spent_array( &self, nullifier_hashes: ::std::vec::Vec<::ethers::core::types::U256>, - ) -> ::ethers::contract::builders::ContractCall> { + ) -> ::ethers::contract::builders::ContractCall> + { self.0 .method_hash([234, 101, 186, 73], nullifier_hashes) .expect("method not found (this should never happen)") @@ -430,13 +485,18 @@ pub mod v_anchor_base_contract { ///Calls the contract's `lastBalance` (0x8f1c56bd) function pub fn last_balance( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([143, 28, 86, 189], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `maxEdges` (0x71523c32) function - pub fn max_edges(&self) -> ::ethers::contract::builders::ContractCall { + pub fn max_edges( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([113, 82, 60, 50], ()) .expect("method not found (this should never happen)") @@ -444,7 +504,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `maximumDepositAmount` (0x78abb49b) function pub fn maximum_deposit_amount( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([120, 171, 180, 155], ()) .expect("method not found (this should never happen)") @@ -452,7 +515,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `minimalWithdrawalAmount` (0x840b2791) function pub fn minimal_withdrawal_amount( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([132, 11, 39, 145], ()) .expect("method not found (this should never happen)") @@ -462,7 +528,10 @@ pub mod v_anchor_base_contract { &self, p0: ::ethers::core::types::U256, p1: u32, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([67, 231, 17, 159], (p0, p1)) .expect("method not found (this should never happen)") @@ -496,7 +565,10 @@ pub mod v_anchor_base_contract { ///Calls the contract's `proposalNonce` (0xcc3c74a1) function pub fn proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([204, 60, 116, 161], ()) .expect("method not found (this should never happen)") @@ -540,7 +612,10 @@ pub mod v_anchor_base_contract { src_resource_id: [u8; 32], ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([193, 146, 47, 158], (root, leaf_index, src_resource_id)) + .method_hash( + [193, 146, 47, 158], + (root, leaf_index, src_resource_id), + ) .expect("method not found (this should never happen)") } ///Gets the contract's `EdgeAddition` event @@ -641,11 +716,13 @@ pub mod v_anchor_base_contract { M, VAnchorBaseContractEvents, > { - self.0.event_with_filter(::core::default::Default::default()) + self.0 + .event_with_filter(::core::default::Default::default()) } } - impl From<::ethers::contract::Contract> - for VAnchorBaseContract { + impl + From<::ethers::contract::Contract> for VAnchorBaseContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -660,9 +737,12 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "EdgeAddition", + abi = "EdgeAddition(uint256,uint256,uint256)" )] - #[ethevent(name = "EdgeAddition", abi = "EdgeAddition(uint256,uint256,uint256)")] pub struct EdgeAdditionFilter { pub chain_id: ::ethers::core::types::U256, pub latest_leaf_index: ::ethers::core::types::U256, @@ -678,9 +758,12 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "EdgeUpdate", + abi = "EdgeUpdate(uint256,uint256,uint256)" )] - #[ethevent(name = "EdgeUpdate", abi = "EdgeUpdate(uint256,uint256,uint256)")] pub struct EdgeUpdateFilter { pub chain_id: ::ethers::core::types::U256, pub latest_leaf_index: ::ethers::core::types::U256, @@ -696,9 +779,12 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "Insertion", + abi = "Insertion(uint256,uint32,uint256,uint256)" )] - #[ethevent(name = "Insertion", abi = "Insertion(uint256,uint32,uint256,uint256)")] pub struct InsertionFilter { #[ethevent(indexed)] pub commitment: ::ethers::core::types::U256, @@ -717,7 +803,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "MaxDepositLimitUpdated", @@ -737,7 +823,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "MinWithdrawalLimitUpdated", @@ -757,7 +843,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "NewCommitment", @@ -779,7 +865,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "NewNullifier", abi = "NewNullifier(uint256)")] pub struct NewNullifierFilter { @@ -795,7 +881,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "PublicKey", abi = "PublicKey(address,bytes)")] pub struct PublicKeyFilter { @@ -813,7 +899,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "SetHandler", abi = "SetHandler(address,uint32)")] pub struct SetHandlerFilter { @@ -829,7 +915,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum VAnchorBaseContractEvents { EdgeAdditionFilter(EdgeAdditionFilter), @@ -847,47 +933,70 @@ pub mod v_anchor_base_contract { log: &::ethers::core::abi::RawLog, ) -> ::core::result::Result { if let Ok(decoded) = EdgeAdditionFilter::decode_log(log) { - return Ok(VAnchorBaseContractEvents::EdgeAdditionFilter(decoded)); + return Ok(VAnchorBaseContractEvents::EdgeAdditionFilter( + decoded, + )); } if let Ok(decoded) = EdgeUpdateFilter::decode_log(log) { - return Ok(VAnchorBaseContractEvents::EdgeUpdateFilter(decoded)); + return Ok(VAnchorBaseContractEvents::EdgeUpdateFilter( + decoded, + )); } if let Ok(decoded) = InsertionFilter::decode_log(log) { return Ok(VAnchorBaseContractEvents::InsertionFilter(decoded)); } if let Ok(decoded) = MaxDepositLimitUpdatedFilter::decode_log(log) { return Ok( - VAnchorBaseContractEvents::MaxDepositLimitUpdatedFilter(decoded), + VAnchorBaseContractEvents::MaxDepositLimitUpdatedFilter( + decoded, + ), ); } - if let Ok(decoded) = MinWithdrawalLimitUpdatedFilter::decode_log(log) { + if let Ok(decoded) = + MinWithdrawalLimitUpdatedFilter::decode_log(log) + { return Ok( - VAnchorBaseContractEvents::MinWithdrawalLimitUpdatedFilter(decoded), + VAnchorBaseContractEvents::MinWithdrawalLimitUpdatedFilter( + decoded, + ), ); } if let Ok(decoded) = NewCommitmentFilter::decode_log(log) { - return Ok(VAnchorBaseContractEvents::NewCommitmentFilter(decoded)); + return Ok(VAnchorBaseContractEvents::NewCommitmentFilter( + decoded, + )); } if let Ok(decoded) = NewNullifierFilter::decode_log(log) { - return Ok(VAnchorBaseContractEvents::NewNullifierFilter(decoded)); + return Ok(VAnchorBaseContractEvents::NewNullifierFilter( + decoded, + )); } if let Ok(decoded) = PublicKeyFilter::decode_log(log) { return Ok(VAnchorBaseContractEvents::PublicKeyFilter(decoded)); } if let Ok(decoded) = SetHandlerFilter::decode_log(log) { - return Ok(VAnchorBaseContractEvents::SetHandlerFilter(decoded)); + return Ok(VAnchorBaseContractEvents::SetHandlerFilter( + decoded, + )); } Err(::ethers::core::abi::Error::InvalidData) } } impl ::core::fmt::Display for VAnchorBaseContractEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { Self::EdgeAdditionFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::EdgeUpdateFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::InsertionFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::EdgeUpdateFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::InsertionFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::MaxDepositLimitUpdatedFilter(element) => { ::core::fmt::Display::fmt(element, f) } @@ -900,8 +1009,12 @@ pub mod v_anchor_base_contract { Self::NewNullifierFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::PublicKeyFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::SetHandlerFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::PublicKeyFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetHandlerFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -921,13 +1034,15 @@ pub mod v_anchor_base_contract { } } impl ::core::convert::From - for VAnchorBaseContractEvents { + for VAnchorBaseContractEvents + { fn from(value: MaxDepositLimitUpdatedFilter) -> Self { Self::MaxDepositLimitUpdatedFilter(value) } } impl ::core::convert::From - for VAnchorBaseContractEvents { + for VAnchorBaseContractEvents + { fn from(value: MinWithdrawalLimitUpdatedFilter) -> Self { Self::MinWithdrawalLimitUpdatedFilter(value) } @@ -963,7 +1078,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "EVM_CHAIN_ID_TYPE", abi = "EVM_CHAIN_ID_TYPE()")] pub struct EvmChainIdTypeCall; @@ -978,7 +1093,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "FIELD_SIZE", abi = "FIELD_SIZE()")] pub struct FieldSizeCall; @@ -993,7 +1108,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "MAX_EXT_AMOUNT", abi = "MAX_EXT_AMOUNT()")] pub struct MaxExtAmountCall; @@ -1008,7 +1123,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "MAX_FEE", abi = "MAX_FEE()")] pub struct MaxFeeCall; @@ -1023,7 +1138,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "ROOT_HISTORY_SIZE", abi = "ROOT_HISTORY_SIZE()")] pub struct RootHistorySizeCall; @@ -1038,7 +1153,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "ZERO_VALUE", abi = "ZERO_VALUE()")] pub struct ZeroValueCall; @@ -1053,7 +1168,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_executeWrapping", @@ -1075,7 +1190,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_withdrawAndUnwrap", @@ -1098,7 +1213,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "calculatePublicAmount", @@ -1119,7 +1234,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "commitments", abi = "commitments(uint256)")] pub struct CommitmentsCall(pub ::ethers::core::types::U256); @@ -1134,7 +1249,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "configureMaximumDepositLimit", @@ -1155,7 +1270,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "configureMinimalWithdrawalLimit", @@ -1176,7 +1291,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "currentNeighborRootIndex", @@ -1194,7 +1309,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "edgeExistsForChain", abi = "edgeExistsForChain(uint256)")] pub struct EdgeExistsForChainCall(pub ::ethers::core::types::U256); @@ -1209,7 +1324,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "edgeIndex", abi = "edgeIndex(uint256)")] pub struct EdgeIndexCall(pub ::ethers::core::types::U256); @@ -1224,7 +1339,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "edgeList", abi = "edgeList(uint256)")] pub struct EdgeListCall(pub ::ethers::core::types::U256); @@ -1239,7 +1354,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "filledSubtrees", abi = "filledSubtrees(uint256)")] pub struct FilledSubtreesCall(pub ::ethers::core::types::U256); @@ -1254,7 +1369,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getChainId", abi = "getChainId()")] pub struct GetChainIdCall; @@ -1269,7 +1384,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getChainIdType", abi = "getChainIdType()")] pub struct GetChainIdTypeCall; @@ -1284,7 +1399,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getHasher", abi = "getHasher()")] pub struct GetHasherCall; @@ -1299,7 +1414,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getLastRoot", abi = "getLastRoot()")] pub struct GetLastRootCall; @@ -1314,9 +1429,12 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "getLatestNeighborEdges", + abi = "getLatestNeighborEdges()" )] - #[ethcall(name = "getLatestNeighborEdges", abi = "getLatestNeighborEdges()")] pub struct GetLatestNeighborEdgesCall; ///Container type for all input parameters for the `getLatestNeighborRoots` function with signature `getLatestNeighborRoots()` and selector `0x1e627617` #[derive( @@ -1329,9 +1447,12 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "getLatestNeighborRoots", + abi = "getLatestNeighborRoots()" )] - #[ethcall(name = "getLatestNeighborRoots", abi = "getLatestNeighborRoots()")] pub struct GetLatestNeighborRootsCall; ///Container type for all input parameters for the `getLevels` function with signature `getLevels()` and selector `0x0c394a60` #[derive( @@ -1344,7 +1465,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getLevels", abi = "getLevels()")] pub struct GetLevelsCall; @@ -1359,7 +1480,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getNextIndex", abi = "getNextIndex()")] pub struct GetNextIndexCall; @@ -1374,7 +1495,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getProposalNonce", abi = "getProposalNonce()")] pub struct GetProposalNonceCall; @@ -1389,7 +1510,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getZeroHash", abi = "getZeroHash(uint32)")] pub struct GetZeroHashCall { @@ -1406,7 +1527,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "handler", abi = "handler()")] pub struct HandlerCall; @@ -1421,7 +1542,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hasEdge", abi = "hasEdge(uint256)")] pub struct HasEdgeCall { @@ -1438,7 +1559,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hashLeftRight", abi = "hashLeftRight(uint256,uint256)")] pub struct HashLeftRightCall { @@ -1456,7 +1577,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "initialize", abi = "initialize(uint256,uint256)")] pub struct InitializeCall { @@ -1474,7 +1595,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "initialized", abi = "initialized()")] pub struct InitializedCall; @@ -1489,7 +1610,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isCorrectExecutionChain", @@ -1509,7 +1630,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isCorrectExecutionContext", @@ -1529,7 +1650,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isKnownNeighborRoot", @@ -1550,7 +1671,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isKnownRoot", abi = "isKnownRoot(uint256)")] pub struct IsKnownRootCall { @@ -1567,7 +1688,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isSpent", abi = "isSpent(uint256)")] pub struct IsSpentCall { @@ -1584,7 +1705,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isSpentArray", abi = "isSpentArray(uint256[])")] pub struct IsSpentArrayCall { @@ -1601,7 +1722,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isValidRoots", abi = "isValidRoots(uint256[])")] pub struct IsValidRootsCall { @@ -1618,7 +1739,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "lastBalance", abi = "lastBalance()")] pub struct LastBalanceCall; @@ -1633,7 +1754,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "maxEdges", abi = "maxEdges()")] pub struct MaxEdgesCall; @@ -1648,7 +1769,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "maximumDepositAmount", abi = "maximumDepositAmount()")] pub struct MaximumDepositAmountCall; @@ -1663,9 +1784,12 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "minimalWithdrawalAmount", + abi = "minimalWithdrawalAmount()" )] - #[ethcall(name = "minimalWithdrawalAmount", abi = "minimalWithdrawalAmount()")] pub struct MinimalWithdrawalAmountCall; ///Container type for all input parameters for the `neighborRoots` function with signature `neighborRoots(uint256,uint32)` and selector `0x43e7119f` #[derive( @@ -1678,7 +1802,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "neighborRoots", abi = "neighborRoots(uint256,uint32)")] pub struct NeighborRootsCall(pub ::ethers::core::types::U256, pub u32); @@ -1693,7 +1817,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "nullifierHashes", abi = "nullifierHashes(uint256)")] pub struct NullifierHashesCall(pub ::ethers::core::types::U256); @@ -1708,7 +1832,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "outerLevels", abi = "outerLevels()")] pub struct OuterLevelsCall; @@ -1723,7 +1847,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "parseChainIdFromResourceId", @@ -1743,7 +1867,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "proposalNonce", abi = "proposalNonce()")] pub struct ProposalNonceCall; @@ -1758,7 +1882,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "register", abi = "register((address,bytes))")] pub struct RegisterCall { @@ -1775,7 +1899,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "roots", abi = "roots(uint256)")] pub struct RootsCall(pub ::ethers::core::types::U256); @@ -1790,7 +1914,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setHandler", abi = "setHandler(address,uint32)")] pub struct SetHandlerCall { @@ -1808,7 +1932,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "updateEdge", abi = "updateEdge(uint256,uint32,bytes32)")] pub struct UpdateEdgeCall { @@ -1825,7 +1949,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum VAnchorBaseContractCalls { EvmChainIdType(EvmChainIdTypeCall), @@ -1884,34 +2008,50 @@ pub mod v_anchor_base_contract { impl ::ethers::core::abi::AbiDecode for VAnchorBaseContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::EvmChainIdType(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::FieldSize(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::MaxExtAmount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::MaxFee(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::RootHistorySize(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::ZeroValue(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ExecuteWrapping(decoded)); } if let Ok(decoded) @@ -1926,8 +2066,11 @@ pub mod v_anchor_base_contract { ) { return Ok(Self::CalculatePublicAmount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::Commitments(decoded)); } if let Ok(decoded) @@ -1954,32 +2097,45 @@ pub mod v_anchor_base_contract { ) { return Ok(Self::EdgeExistsForChain(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::EdgeIndex(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::EdgeList(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::FilledSubtrees(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetChainId(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetChainIdType(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetHasher(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetLastRoot(decoded)); } if let Ok(decoded) @@ -1994,42 +2150,59 @@ pub mod v_anchor_base_contract { ) { return Ok(Self::GetLatestNeighborRoots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetLevels(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetNextIndex(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::GetProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetZeroHash(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Handler(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::HasEdge(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::HashLeftRight(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Initialize(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::Initialized(decoded)); } if let Ok(decoded) @@ -2050,28 +2223,42 @@ pub mod v_anchor_base_contract { ) { return Ok(Self::IsKnownNeighborRoot(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsKnownRoot(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::IsSpent(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsSpentArray(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsValidRoots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::LastBalance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::MaxEdges(decoded)); } if let Ok(decoded) @@ -2086,16 +2273,25 @@ pub mod v_anchor_base_contract { ) { return Ok(Self::MinimalWithdrawalAmount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::NeighborRoots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::NullifierHashes(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::OuterLevels(decoded)); } if let Ok(decoded) @@ -2104,24 +2300,31 @@ pub mod v_anchor_base_contract { ) { return Ok(Self::ParseChainIdFromResourceId(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Register(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Roots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::SetHandler(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::UpdateEdge(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -2139,7 +2342,9 @@ pub mod v_anchor_base_contract { Self::MaxExtAmount(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::MaxFee(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::MaxFee(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::RootHistorySize(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2209,8 +2414,12 @@ pub mod v_anchor_base_contract { Self::GetZeroHash(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Handler(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::HasEdge(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Handler(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::HasEdge(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::HashLeftRight(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2232,7 +2441,9 @@ pub mod v_anchor_base_contract { Self::IsKnownRoot(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::IsSpent(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::IsSpent(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::IsSpentArray(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2269,7 +2480,9 @@ pub mod v_anchor_base_contract { Self::Register(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Roots(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Roots(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::SetHandler(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2280,20 +2493,39 @@ pub mod v_anchor_base_contract { } } impl ::core::fmt::Display for VAnchorBaseContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::EvmChainIdType(element) => ::core::fmt::Display::fmt(element, f), - Self::FieldSize(element) => ::core::fmt::Display::fmt(element, f), - Self::MaxExtAmount(element) => ::core::fmt::Display::fmt(element, f), + Self::EvmChainIdType(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FieldSize(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MaxExtAmount(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::MaxFee(element) => ::core::fmt::Display::fmt(element, f), - Self::RootHistorySize(element) => ::core::fmt::Display::fmt(element, f), - Self::ZeroValue(element) => ::core::fmt::Display::fmt(element, f), - Self::ExecuteWrapping(element) => ::core::fmt::Display::fmt(element, f), - Self::WithdrawAndUnwrap(element) => ::core::fmt::Display::fmt(element, f), + Self::RootHistorySize(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ZeroValue(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ExecuteWrapping(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WithdrawAndUnwrap(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::CalculatePublicAmount(element) => { ::core::fmt::Display::fmt(element, f) } - Self::Commitments(element) => ::core::fmt::Display::fmt(element, f), + Self::Commitments(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ConfigureMaximumDepositLimit(element) => { ::core::fmt::Display::fmt(element, f) } @@ -2306,28 +2538,56 @@ pub mod v_anchor_base_contract { Self::EdgeExistsForChain(element) => { ::core::fmt::Display::fmt(element, f) } - Self::EdgeIndex(element) => ::core::fmt::Display::fmt(element, f), - Self::EdgeList(element) => ::core::fmt::Display::fmt(element, f), - Self::FilledSubtrees(element) => ::core::fmt::Display::fmt(element, f), - Self::GetChainId(element) => ::core::fmt::Display::fmt(element, f), - Self::GetChainIdType(element) => ::core::fmt::Display::fmt(element, f), - Self::GetHasher(element) => ::core::fmt::Display::fmt(element, f), - Self::GetLastRoot(element) => ::core::fmt::Display::fmt(element, f), + Self::EdgeIndex(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::EdgeList(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FilledSubtrees(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetChainId(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetChainIdType(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetHasher(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetLastRoot(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::GetLatestNeighborEdges(element) => { ::core::fmt::Display::fmt(element, f) } Self::GetLatestNeighborRoots(element) => { ::core::fmt::Display::fmt(element, f) } - Self::GetLevels(element) => ::core::fmt::Display::fmt(element, f), - Self::GetNextIndex(element) => ::core::fmt::Display::fmt(element, f), - Self::GetProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::GetZeroHash(element) => ::core::fmt::Display::fmt(element, f), + Self::GetLevels(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetNextIndex(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetZeroHash(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Handler(element) => ::core::fmt::Display::fmt(element, f), Self::HasEdge(element) => ::core::fmt::Display::fmt(element, f), - Self::HashLeftRight(element) => ::core::fmt::Display::fmt(element, f), - Self::Initialize(element) => ::core::fmt::Display::fmt(element, f), - Self::Initialized(element) => ::core::fmt::Display::fmt(element, f), + Self::HashLeftRight(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Initialize(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Initialized(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::IsCorrectExecutionChain(element) => { ::core::fmt::Display::fmt(element, f) } @@ -2337,29 +2597,53 @@ pub mod v_anchor_base_contract { Self::IsKnownNeighborRoot(element) => { ::core::fmt::Display::fmt(element, f) } - Self::IsKnownRoot(element) => ::core::fmt::Display::fmt(element, f), + Self::IsKnownRoot(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::IsSpent(element) => ::core::fmt::Display::fmt(element, f), - Self::IsSpentArray(element) => ::core::fmt::Display::fmt(element, f), - Self::IsValidRoots(element) => ::core::fmt::Display::fmt(element, f), - Self::LastBalance(element) => ::core::fmt::Display::fmt(element, f), - Self::MaxEdges(element) => ::core::fmt::Display::fmt(element, f), + Self::IsSpentArray(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::IsValidRoots(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::LastBalance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MaxEdges(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::MaximumDepositAmount(element) => { ::core::fmt::Display::fmt(element, f) } Self::MinimalWithdrawalAmount(element) => { ::core::fmt::Display::fmt(element, f) } - Self::NeighborRoots(element) => ::core::fmt::Display::fmt(element, f), - Self::NullifierHashes(element) => ::core::fmt::Display::fmt(element, f), - Self::OuterLevels(element) => ::core::fmt::Display::fmt(element, f), + Self::NeighborRoots(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::NullifierHashes(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::OuterLevels(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ParseChainIdFromResourceId(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::Register(element) => ::core::fmt::Display::fmt(element, f), + Self::ProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Register(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Roots(element) => ::core::fmt::Display::fmt(element, f), - Self::SetHandler(element) => ::core::fmt::Display::fmt(element, f), - Self::UpdateEdge(element) => ::core::fmt::Display::fmt(element, f), + Self::SetHandler(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UpdateEdge(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -2403,7 +2687,9 @@ pub mod v_anchor_base_contract { Self::WithdrawAndUnwrap(value) } } - impl ::core::convert::From for VAnchorBaseContractCalls { + impl ::core::convert::From + for VAnchorBaseContractCalls + { fn from(value: CalculatePublicAmountCall) -> Self { Self::CalculatePublicAmount(value) } @@ -2414,24 +2700,29 @@ pub mod v_anchor_base_contract { } } impl ::core::convert::From - for VAnchorBaseContractCalls { + for VAnchorBaseContractCalls + { fn from(value: ConfigureMaximumDepositLimitCall) -> Self { Self::ConfigureMaximumDepositLimit(value) } } impl ::core::convert::From - for VAnchorBaseContractCalls { + for VAnchorBaseContractCalls + { fn from(value: ConfigureMinimalWithdrawalLimitCall) -> Self { Self::ConfigureMinimalWithdrawalLimit(value) } } impl ::core::convert::From - for VAnchorBaseContractCalls { + for VAnchorBaseContractCalls + { fn from(value: CurrentNeighborRootIndexCall) -> Self { Self::CurrentNeighborRootIndex(value) } } - impl ::core::convert::From for VAnchorBaseContractCalls { + impl ::core::convert::From + for VAnchorBaseContractCalls + { fn from(value: EdgeExistsForChainCall) -> Self { Self::EdgeExistsForChain(value) } @@ -2471,12 +2762,16 @@ pub mod v_anchor_base_contract { Self::GetLastRoot(value) } } - impl ::core::convert::From for VAnchorBaseContractCalls { + impl ::core::convert::From + for VAnchorBaseContractCalls + { fn from(value: GetLatestNeighborEdgesCall) -> Self { Self::GetLatestNeighborEdges(value) } } - impl ::core::convert::From for VAnchorBaseContractCalls { + impl ::core::convert::From + for VAnchorBaseContractCalls + { fn from(value: GetLatestNeighborRootsCall) -> Self { Self::GetLatestNeighborRoots(value) } @@ -2527,18 +2822,22 @@ pub mod v_anchor_base_contract { } } impl ::core::convert::From - for VAnchorBaseContractCalls { + for VAnchorBaseContractCalls + { fn from(value: IsCorrectExecutionChainCall) -> Self { Self::IsCorrectExecutionChain(value) } } impl ::core::convert::From - for VAnchorBaseContractCalls { + for VAnchorBaseContractCalls + { fn from(value: IsCorrectExecutionContextCall) -> Self { Self::IsCorrectExecutionContext(value) } } - impl ::core::convert::From for VAnchorBaseContractCalls { + impl ::core::convert::From + for VAnchorBaseContractCalls + { fn from(value: IsKnownNeighborRootCall) -> Self { Self::IsKnownNeighborRoot(value) } @@ -2573,13 +2872,16 @@ pub mod v_anchor_base_contract { Self::MaxEdges(value) } } - impl ::core::convert::From for VAnchorBaseContractCalls { + impl ::core::convert::From + for VAnchorBaseContractCalls + { fn from(value: MaximumDepositAmountCall) -> Self { Self::MaximumDepositAmount(value) } } impl ::core::convert::From - for VAnchorBaseContractCalls { + for VAnchorBaseContractCalls + { fn from(value: MinimalWithdrawalAmountCall) -> Self { Self::MinimalWithdrawalAmount(value) } @@ -2600,7 +2902,8 @@ pub mod v_anchor_base_contract { } } impl ::core::convert::From - for VAnchorBaseContractCalls { + for VAnchorBaseContractCalls + { fn from(value: ParseChainIdFromResourceIdCall) -> Self { Self::ParseChainIdFromResourceId(value) } @@ -2641,7 +2944,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EvmChainIdTypeReturn(pub [u8; 2]); ///Container type for all return fields from the `FIELD_SIZE` function with signature `FIELD_SIZE()` and selector `0x414a37ba` @@ -2655,7 +2958,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FieldSizeReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `MAX_EXT_AMOUNT` function with signature `MAX_EXT_AMOUNT()` and selector `0x7fe24ffe` @@ -2669,7 +2972,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaxExtAmountReturn(pub ::ethers::core::types::I256); ///Container type for all return fields from the `MAX_FEE` function with signature `MAX_FEE()` and selector `0xbc063e1a` @@ -2683,7 +2986,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaxFeeReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `ROOT_HISTORY_SIZE` function with signature `ROOT_HISTORY_SIZE()` and selector `0xcd87a3b4` @@ -2697,7 +3000,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct RootHistorySizeReturn(pub u32); ///Container type for all return fields from the `ZERO_VALUE` function with signature `ZERO_VALUE()` and selector `0xec732959` @@ -2711,7 +3014,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ZeroValueReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `_executeWrapping` function with signature `_executeWrapping(address,address,uint256)` and selector `0x6338bcbc` @@ -2725,7 +3028,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ExecuteWrappingReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `calculatePublicAmount` function with signature `calculatePublicAmount(int256,uint256)` and selector `0x2570b7b4` @@ -2739,7 +3042,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CalculatePublicAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `commitments` function with signature `commitments(uint256)` and selector `0x49ce8997` @@ -2753,7 +3056,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CommitmentsReturn(pub bool); ///Container type for all return fields from the `currentNeighborRootIndex` function with signature `currentNeighborRootIndex(uint256)` and selector `0x5d2d766c` @@ -2767,7 +3070,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CurrentNeighborRootIndexReturn(pub u32); ///Container type for all return fields from the `edgeExistsForChain` function with signature `edgeExistsForChain(uint256)` and selector `0xfa731687` @@ -2781,7 +3084,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EdgeExistsForChainReturn(pub bool); ///Container type for all return fields from the `edgeIndex` function with signature `edgeIndex(uint256)` and selector `0xe70ea87c` @@ -2795,7 +3098,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EdgeIndexReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `edgeList` function with signature `edgeList(uint256)` and selector `0xdbc916b8` @@ -2809,7 +3112,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EdgeListReturn { pub chain_id: ::ethers::core::types::U256, @@ -2828,7 +3131,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FilledSubtreesReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getChainId` function with signature `getChainId()` and selector `0x3408e470` @@ -2842,7 +3145,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetChainIdReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getChainIdType` function with signature `getChainIdType()` and selector `0x4c830cbd` @@ -2856,7 +3159,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetChainIdTypeReturn(pub u64); ///Container type for all return fields from the `getHasher` function with signature `getHasher()` and selector `0xea495db0` @@ -2870,7 +3173,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetHasherReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `getLastRoot` function with signature `getLastRoot()` and selector `0xba70f757` @@ -2884,7 +3187,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLastRootReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getLatestNeighborEdges` function with signature `getLatestNeighborEdges()` and selector `0x8c0d34d8` @@ -2898,7 +3201,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLatestNeighborEdgesReturn(pub ::std::vec::Vec); ///Container type for all return fields from the `getLatestNeighborRoots` function with signature `getLatestNeighborRoots()` and selector `0x1e627617` @@ -2912,7 +3215,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLatestNeighborRootsReturn( pub ::std::vec::Vec<::ethers::core::types::U256>, @@ -2928,7 +3231,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLevelsReturn(pub u32); ///Container type for all return fields from the `getNextIndex` function with signature `getNextIndex()` and selector `0x0eb7606f` @@ -2942,7 +3245,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetNextIndexReturn(pub u32); ///Container type for all return fields from the `getProposalNonce` function with signature `getProposalNonce()` and selector `0x0b27fb9a` @@ -2956,7 +3259,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getZeroHash` function with signature `getZeroHash(uint32)` and selector `0x305e9eac` @@ -2970,7 +3273,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetZeroHashReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `handler` function with signature `handler()` and selector `0xc80916d4` @@ -2984,7 +3287,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HandlerReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `hasEdge` function with signature `hasEdge(uint256)` and selector `0x92156311` @@ -2998,7 +3301,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HasEdgeReturn(pub bool); ///Container type for all return fields from the `hashLeftRight` function with signature `hashLeftRight(uint256,uint256)` and selector `0x5bb93995` @@ -3012,7 +3315,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HashLeftRightReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `initialized` function with signature `initialized()` and selector `0x158ef93e` @@ -3026,7 +3329,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct InitializedReturn(pub bool); ///Container type for all return fields from the `isCorrectExecutionChain` function with signature `isCorrectExecutionChain(bytes32)` and selector `0x830b2f57` @@ -3040,7 +3343,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsCorrectExecutionChainReturn(pub bool); ///Container type for all return fields from the `isCorrectExecutionContext` function with signature `isCorrectExecutionContext(bytes32)` and selector `0xf5fc3d6b` @@ -3054,7 +3357,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsCorrectExecutionContextReturn(pub bool); ///Container type for all return fields from the `isKnownNeighborRoot` function with signature `isKnownNeighborRoot(uint256,uint256)` and selector `0x3bfa8d7a` @@ -3068,7 +3371,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsKnownNeighborRootReturn(pub bool); ///Container type for all return fields from the `isKnownRoot` function with signature `isKnownRoot(uint256)` and selector `0xa6232a93` @@ -3082,7 +3385,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsKnownRootReturn(pub bool); ///Container type for all return fields from the `isSpent` function with signature `isSpent(uint256)` and selector `0x5a129efe` @@ -3096,7 +3399,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsSpentReturn(pub bool); ///Container type for all return fields from the `isSpentArray` function with signature `isSpentArray(uint256[])` and selector `0xea65ba49` @@ -3110,7 +3413,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsSpentArrayReturn(pub ::std::vec::Vec); ///Container type for all return fields from the `isValidRoots` function with signature `isValidRoots(uint256[])` and selector `0xb75e6798` @@ -3124,7 +3427,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsValidRootsReturn(pub bool); ///Container type for all return fields from the `lastBalance` function with signature `lastBalance()` and selector `0x8f1c56bd` @@ -3138,7 +3441,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct LastBalanceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `maxEdges` function with signature `maxEdges()` and selector `0x71523c32` @@ -3152,7 +3455,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaxEdgesReturn(pub u8); ///Container type for all return fields from the `maximumDepositAmount` function with signature `maximumDepositAmount()` and selector `0x78abb49b` @@ -3166,7 +3469,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaximumDepositAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `minimalWithdrawalAmount` function with signature `minimalWithdrawalAmount()` and selector `0x840b2791` @@ -3180,7 +3483,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MinimalWithdrawalAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `neighborRoots` function with signature `neighborRoots(uint256,uint32)` and selector `0x43e7119f` @@ -3194,7 +3497,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct NeighborRootsReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `nullifierHashes` function with signature `nullifierHashes(uint256)` and selector `0x1f79a1e9` @@ -3208,7 +3511,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct NullifierHashesReturn(pub bool); ///Container type for all return fields from the `outerLevels` function with signature `outerLevels()` and selector `0xbfbc0a39` @@ -3222,7 +3525,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct OuterLevelsReturn(pub u32); ///Container type for all return fields from the `parseChainIdFromResourceId` function with signature `parseChainIdFromResourceId(bytes32)` and selector `0xc2230d6e` @@ -3236,7 +3539,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ParseChainIdFromResourceIdReturn(pub u64); ///Container type for all return fields from the `proposalNonce` function with signature `proposalNonce()` and selector `0xcc3c74a1` @@ -3250,7 +3553,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `roots` function with signature `roots(uint256)` and selector `0xc2b40ae4` @@ -3264,7 +3567,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct RootsReturn { pub root: ::ethers::core::types::U256, @@ -3281,7 +3584,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Edge { pub chain_id: ::ethers::core::types::U256, @@ -3300,7 +3603,7 @@ pub mod v_anchor_base_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Account { pub owner: ::ethers::core::types::Address, diff --git a/src/evm/contract/protocol_solidity/variable_anchor.rs b/src/evm/contract/protocol_solidity/variable_anchor.rs index cf465d0..14d5571 100644 --- a/src/evm/contract/protocol_solidity/variable_anchor.rs +++ b/src/evm/contract/protocol_solidity/variable_anchor.rs @@ -7,14 +7,18 @@ pub use v_anchor_contract::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types, + non_camel_case_types )] pub mod v_anchor_contract { #[rustfmt::skip] const __ABI: &str = "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"latestLeafIndex\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"merkleRoot\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"EdgeAddition\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"latestLeafIndex\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"merkleRoot\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"EdgeUpdate\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"commitment\",\"type\":\"uint256\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint32\",\"name\":\"leafIndex\",\"type\":\"uint32\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"newMerkleRoot\",\"type\":\"uint256\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"Insertion\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maximumDepositAmount\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"MaxDepositLimitUpdated\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minimalWithdrawalAmount\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"MinWithdrawalLimitUpdated\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"commitment\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"subTreeIndex\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint256\",\"name\":\"leafIndex\",\"type\":\"uint256\",\"components\":[],\"indexed\":false},{\"internalType\":\"bytes\",\"name\":\"encryptedOutput\",\"type\":\"bytes\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"NewCommitment\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"nullifier\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"NewNullifier\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"bytes\",\"name\":\"key\",\"type\":\"bytes\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"PublicKey\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"SetHandler\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"verifier\",\"type\":\"address\",\"components\":[],\"indexed\":false},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"SetVerifier\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"EVM_CHAIN_ID_TYPE\",\"outputs\":[{\"internalType\":\"bytes2\",\"name\":\"\",\"type\":\"bytes2\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"FIELD_SIZE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"MAX_EXT_AMOUNT\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"MAX_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"ROOT_HISTORY_SIZE\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"ZERO_VALUE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_fromTokenAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"_toTokenAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"_extAmount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"_executeWrapping\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"struct CommonExtData\",\"name\":\"_externalData\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"int256\",\"name\":\"extAmount\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"refund\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\",\"components\":[]}]},{\"internalType\":\"struct Encryptions\",\"name\":\"_encryptions\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"bytes\",\"name\":\"encryptedOutput1\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"encryptedOutput2\",\"type\":\"bytes\",\"components\":[]}]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"_genExtDataHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_fromTokenAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"_toTokenAddress\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"_minusExtAmount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"_withdrawAndUnwrap\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"_extAmount\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"pure\",\"type\":\"function\",\"name\":\"calculatePublicAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"commitments\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_maximumDepositAmount\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint32\",\"name\":\"_nonce\",\"type\":\"uint32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"configureMaximumDepositLimit\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minimalWithdrawalAmount\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint32\",\"name\":\"_nonce\",\"type\":\"uint32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"configureMinimalWithdrawalLimit\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"currentNeighborRootIndex\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"edgeExistsForChain\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"edgeIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"edgeList\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"latestLeafIndex\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"srcResourceID\",\"type\":\"bytes32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"filledSubtrees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getChainIdType\",\"outputs\":[{\"internalType\":\"uint48\",\"name\":\"\",\"type\":\"uint48\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getHasher\",\"outputs\":[{\"internalType\":\"contract IHasher\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getLastRoot\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getLatestNeighborEdges\",\"outputs\":[{\"internalType\":\"struct Edge[]\",\"name\":\"\",\"type\":\"tuple[]\",\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"latestLeafIndex\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"srcResourceID\",\"type\":\"bytes32\",\"components\":[]}]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getLatestNeighborRoots\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getLevels\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getNextIndex\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getProposalNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"getZeroHash\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"handler\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_chainID\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"hasEdge\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_left\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"_right\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"hashLeftRight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minimalWithdrawalAmount\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"_maximumDepositAmount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"initialize\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"initialized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceID\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isCorrectExecutionChain\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"resourceId\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isCorrectExecutionContext\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_neighborChainID\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"_root\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isKnownNeighborRoot\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isKnownRoot\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_nullifierHash\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isSpent\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_nullifierHashes\",\"type\":\"uint256[]\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isSpentArray\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"\",\"type\":\"bool[]\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_roots\",\"type\":\"uint256[]\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"isValidRoots\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"lastBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"maxEdges\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"maximumDepositAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"minimalWithdrawalAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"neighborRoots\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"nullifierHashes\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"outerLevels\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_resourceId\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"pure\",\"type\":\"function\",\"name\":\"parseChainIdFromResourceId\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"proposalNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"struct VAnchorBase.Account\",\"name\":\"_account\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"keyData\",\"type\":\"bytes\",\"components\":[]}]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"register\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"struct VAnchorBase.Account\",\"name\":\"_account\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"keyData\",\"type\":\"bytes\",\"components\":[]}]},{\"internalType\":\"bytes\",\"name\":\"_proof\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"_auxPublicInputs\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"struct CommonExtData\",\"name\":\"_externalData\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"int256\",\"name\":\"extAmount\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"refund\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\",\"components\":[]}]},{\"internalType\":\"struct PublicInputs\",\"name\":\"_publicInputs\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"bytes\",\"name\":\"roots\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"extensionRoots\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"uint256[]\",\"name\":\"inputNullifiers\",\"type\":\"uint256[]\",\"components\":[]},{\"internalType\":\"uint256[2]\",\"name\":\"outputCommitments\",\"type\":\"uint256[2]\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"publicAmount\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"extDataHash\",\"type\":\"uint256\",\"components\":[]}]},{\"internalType\":\"struct Encryptions\",\"name\":\"_encryptions\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"bytes\",\"name\":\"encryptedOutput1\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"encryptedOutput2\",\"type\":\"bytes\",\"components\":[]}]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"registerAndTransact\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"roots\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint32\",\"name\":\"latestLeafindex\",\"type\":\"uint32\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_handler\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint32\",\"name\":\"_nonce\",\"type\":\"uint32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setHandler\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_verifier\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint32\",\"name\":\"_nonce\",\"type\":\"uint32\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"setVerifier\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"token\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_proof\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"_auxPublicInputs\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"struct CommonExtData\",\"name\":\"_externalData\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"int256\",\"name\":\"extAmount\",\"type\":\"int256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"refund\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\",\"components\":[]}]},{\"internalType\":\"struct PublicInputs\",\"name\":\"_publicInputs\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"bytes\",\"name\":\"roots\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"extensionRoots\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"uint256[]\",\"name\":\"inputNullifiers\",\"type\":\"uint256[]\",\"components\":[]},{\"internalType\":\"uint256[2]\",\"name\":\"outputCommitments\",\"type\":\"uint256[2]\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"publicAmount\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"extDataHash\",\"type\":\"uint256\",\"components\":[]}]},{\"internalType\":\"struct Encryptions\",\"name\":\"_encryptions\",\"type\":\"tuple\",\"components\":[{\"internalType\":\"bytes\",\"name\":\"encryptedOutput1\",\"type\":\"bytes\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"encryptedOutput2\",\"type\":\"bytes\",\"components\":[]}]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"transact\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"uint256[8]\",\"name\":\"_proof\",\"type\":\"uint256[8]\",\"components\":[]}],\"stateMutability\":\"pure\",\"type\":\"function\",\"name\":\"unpackProof\",\"outputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"\",\"type\":\"uint256[2]\",\"components\":[]},{\"internalType\":\"uint256[2][2]\",\"name\":\"\",\"type\":\"uint256[2][2]\",\"components\":[]},{\"internalType\":\"uint256[2]\",\"name\":\"\",\"type\":\"uint256[2]\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_root\",\"type\":\"uint256\",\"components\":[]},{\"internalType\":\"uint32\",\"name\":\"_leafIndex\",\"type\":\"uint32\",\"components\":[]},{\"internalType\":\"bytes32\",\"name\":\"_srcResourceID\",\"type\":\"bytes32\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"function\",\"name\":\"updateEdge\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"verifier\",\"outputs\":[{\"internalType\":\"contract IAnchorVerifier\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]}]"; ///The parsed JSON ABI of the contract. - pub static VANCHORCONTRACT_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new(|| - ::ethers::core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid")); + pub static VANCHORCONTRACT_ABI: ::ethers::contract::Lazy< + ::ethers::core::abi::Abi, + > = ::ethers::contract::Lazy::new(|| { + ::ethers::core::utils::__serde_json::from_str(__ABI) + .expect("ABI is always valid") + }); pub struct VAnchorContract(::ethers::contract::Contract); impl ::core::clone::Clone for VAnchorContract { fn clone(&self) -> Self { @@ -33,8 +37,13 @@ pub mod v_anchor_contract { } } impl ::core::fmt::Debug for VAnchorContract { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(stringify!(VAnchorContract)).field(&self.address()).finish() + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { + f.debug_tuple(stringify!(VAnchorContract)) + .field(&self.address()) + .finish() } } impl VAnchorContract { @@ -44,13 +53,11 @@ pub mod v_anchor_contract { address: T, client: ::std::sync::Arc, ) -> Self { - Self( - ::ethers::contract::Contract::new( - address.into(), - VANCHORCONTRACT_ABI.clone(), - client, - ), - ) + Self(::ethers::contract::Contract::new( + address.into(), + VANCHORCONTRACT_ABI.clone(), + client, + )) } ///Calls the contract's `EVM_CHAIN_ID_TYPE` (0x8b7e8782) function pub fn evm_chain_id_type( @@ -63,7 +70,10 @@ pub mod v_anchor_contract { ///Calls the contract's `FIELD_SIZE` (0x414a37ba) function pub fn field_size( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([65, 74, 55, 186], ()) .expect("method not found (this should never happen)") @@ -71,7 +81,10 @@ pub mod v_anchor_contract { ///Calls the contract's `MAX_EXT_AMOUNT` (0x7fe24ffe) function pub fn max_ext_amount( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::I256, + > { self.0 .method_hash([127, 226, 79, 254], ()) .expect("method not found (this should never happen)") @@ -79,7 +92,10 @@ pub mod v_anchor_contract { ///Calls the contract's `MAX_FEE` (0xbc063e1a) function pub fn max_fee( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([188, 6, 62, 26], ()) .expect("method not found (this should never happen)") @@ -95,7 +111,10 @@ pub mod v_anchor_contract { ///Calls the contract's `ZERO_VALUE` (0xec732959) function pub fn zero_value( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([236, 115, 41, 89], ()) .expect("method not found (this should never happen)") @@ -106,7 +125,10 @@ pub mod v_anchor_contract { from_token_address: ::ethers::core::types::Address, to_token_address: ::ethers::core::types::Address, ext_amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash( [99, 56, 188, 188], @@ -122,7 +144,10 @@ pub mod v_anchor_contract { encryptions: Encryptions, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([211, 132, 83, 77], (p0, external_data, encryptions)) + .method_hash( + [211, 132, 83, 77], + (p0, external_data, encryptions), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `_withdrawAndUnwrap` (0x509cd41e) function @@ -136,7 +161,12 @@ pub mod v_anchor_contract { self.0 .method_hash( [80, 156, 212, 30], - (from_token_address, to_token_address, recipient, minus_ext_amount), + ( + from_token_address, + to_token_address, + recipient, + minus_ext_amount, + ), ) .expect("method not found (this should never happen)") } @@ -145,7 +175,10 @@ pub mod v_anchor_contract { &self, ext_amount: ::ethers::core::types::I256, fee: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([37, 112, 183, 180], (ext_amount, fee)) .expect("method not found (this should never happen)") @@ -166,7 +199,10 @@ pub mod v_anchor_contract { nonce: u32, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([140, 131, 43, 19], (maximum_deposit_amount, nonce)) + .method_hash( + [140, 131, 43, 19], + (maximum_deposit_amount, nonce), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `configureMinimalWithdrawalLimit` (0x1f7f99f7) function @@ -176,7 +212,10 @@ pub mod v_anchor_contract { nonce: u32, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([31, 127, 153, 247], (minimal_withdrawal_amount, nonce)) + .method_hash( + [31, 127, 153, 247], + (minimal_withdrawal_amount, nonce), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `currentNeighborRootIndex` (0x5d2d766c) function @@ -201,7 +240,10 @@ pub mod v_anchor_contract { pub fn edge_index( &self, p0: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([231, 14, 168, 124], p0) .expect("method not found (this should never happen)") @@ -227,7 +269,10 @@ pub mod v_anchor_contract { pub fn filled_subtrees( &self, p0: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([241, 120, 228, 124], p0) .expect("method not found (this should never happen)") @@ -235,7 +280,10 @@ pub mod v_anchor_contract { ///Calls the contract's `getChainId` (0x3408e470) function pub fn get_chain_id( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([52, 8, 228, 112], ()) .expect("method not found (this should never happen)") @@ -262,7 +310,10 @@ pub mod v_anchor_contract { ///Calls the contract's `getLastRoot` (0xba70f757) function pub fn get_last_root( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([186, 112, 247, 87], ()) .expect("method not found (this should never happen)") @@ -270,7 +321,8 @@ pub mod v_anchor_contract { ///Calls the contract's `getLatestNeighborEdges` (0x8c0d34d8) function pub fn get_latest_neighbor_edges( &self, - ) -> ::ethers::contract::builders::ContractCall> { + ) -> ::ethers::contract::builders::ContractCall> + { self.0 .method_hash([140, 13, 52, 216], ()) .expect("method not found (this should never happen)") @@ -287,7 +339,9 @@ pub mod v_anchor_contract { .expect("method not found (this should never happen)") } ///Calls the contract's `getLevels` (0x0c394a60) function - pub fn get_levels(&self) -> ::ethers::contract::builders::ContractCall { + pub fn get_levels( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([12, 57, 74, 96], ()) .expect("method not found (this should never happen)") @@ -303,7 +357,10 @@ pub mod v_anchor_contract { ///Calls the contract's `getProposalNonce` (0x0b27fb9a) function pub fn get_proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([11, 39, 251, 154], ()) .expect("method not found (this should never happen)") @@ -312,7 +369,10 @@ pub mod v_anchor_contract { pub fn get_zero_hash( &self, index: u32, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([48, 94, 158, 172], index) .expect("method not found (this should never happen)") @@ -342,7 +402,10 @@ pub mod v_anchor_contract { &self, left: ::ethers::core::types::U256, right: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([91, 185, 57, 149], (left, right)) .expect("method not found (this should never happen)") @@ -418,7 +481,8 @@ pub mod v_anchor_contract { pub fn is_spent_array( &self, nullifier_hashes: ::std::vec::Vec<::ethers::core::types::U256>, - ) -> ::ethers::contract::builders::ContractCall> { + ) -> ::ethers::contract::builders::ContractCall> + { self.0 .method_hash([234, 101, 186, 73], nullifier_hashes) .expect("method not found (this should never happen)") @@ -435,13 +499,18 @@ pub mod v_anchor_contract { ///Calls the contract's `lastBalance` (0x8f1c56bd) function pub fn last_balance( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([143, 28, 86, 189], ()) .expect("method not found (this should never happen)") } ///Calls the contract's `maxEdges` (0x71523c32) function - pub fn max_edges(&self) -> ::ethers::contract::builders::ContractCall { + pub fn max_edges( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([113, 82, 60, 50], ()) .expect("method not found (this should never happen)") @@ -449,7 +518,10 @@ pub mod v_anchor_contract { ///Calls the contract's `maximumDepositAmount` (0x78abb49b) function pub fn maximum_deposit_amount( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([120, 171, 180, 155], ()) .expect("method not found (this should never happen)") @@ -457,7 +529,10 @@ pub mod v_anchor_contract { ///Calls the contract's `minimalWithdrawalAmount` (0x840b2791) function pub fn minimal_withdrawal_amount( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([132, 11, 39, 145], ()) .expect("method not found (this should never happen)") @@ -467,7 +542,10 @@ pub mod v_anchor_contract { &self, p0: ::ethers::core::types::U256, p1: u32, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([67, 231, 17, 159], (p0, p1)) .expect("method not found (this should never happen)") @@ -501,7 +579,10 @@ pub mod v_anchor_contract { ///Calls the contract's `proposalNonce` (0xcc3c74a1) function pub fn proposal_nonce( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::U256, + > { self.0 .method_hash([204, 60, 116, 161], ()) .expect("method not found (this should never happen)") @@ -594,7 +675,13 @@ pub mod v_anchor_contract { self.0 .method_hash( [163, 143, 118, 232], - (proof, aux_public_inputs, external_data, public_inputs, encryptions), + ( + proof, + aux_public_inputs, + external_data, + public_inputs, + encryptions, + ), ) .expect("method not found (this should never happen)") } @@ -622,7 +709,10 @@ pub mod v_anchor_contract { src_resource_id: [u8; 32], ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([193, 146, 47, 158], (root, leaf_index, src_resource_id)) + .method_hash( + [193, 146, 47, 158], + (root, leaf_index, src_resource_id), + ) .expect("method not found (this should never happen)") } ///Calls the contract's `verifier` (0x2b7ac3f3) function @@ -744,11 +834,13 @@ pub mod v_anchor_contract { M, VAnchorContractEvents, > { - self.0.event_with_filter(::core::default::Default::default()) + self.0 + .event_with_filter(::core::default::Default::default()) } } - impl From<::ethers::contract::Contract> - for VAnchorContract { + impl + From<::ethers::contract::Contract> for VAnchorContract + { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -763,9 +855,12 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "EdgeAddition", + abi = "EdgeAddition(uint256,uint256,uint256)" )] - #[ethevent(name = "EdgeAddition", abi = "EdgeAddition(uint256,uint256,uint256)")] pub struct EdgeAdditionFilter { pub chain_id: ::ethers::core::types::U256, pub latest_leaf_index: ::ethers::core::types::U256, @@ -781,9 +876,12 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "EdgeUpdate", + abi = "EdgeUpdate(uint256,uint256,uint256)" )] - #[ethevent(name = "EdgeUpdate", abi = "EdgeUpdate(uint256,uint256,uint256)")] pub struct EdgeUpdateFilter { pub chain_id: ::ethers::core::types::U256, pub latest_leaf_index: ::ethers::core::types::U256, @@ -799,9 +897,12 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethevent( + name = "Insertion", + abi = "Insertion(uint256,uint32,uint256,uint256)" )] - #[ethevent(name = "Insertion", abi = "Insertion(uint256,uint32,uint256,uint256)")] pub struct InsertionFilter { #[ethevent(indexed)] pub commitment: ::ethers::core::types::U256, @@ -820,7 +921,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "MaxDepositLimitUpdated", @@ -840,7 +941,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "MinWithdrawalLimitUpdated", @@ -860,7 +961,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent( name = "NewCommitment", @@ -882,7 +983,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "NewNullifier", abi = "NewNullifier(uint256)")] pub struct NewNullifierFilter { @@ -898,7 +999,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "PublicKey", abi = "PublicKey(address,bytes)")] pub struct PublicKeyFilter { @@ -916,7 +1017,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "SetHandler", abi = "SetHandler(address,uint32)")] pub struct SetHandlerFilter { @@ -933,7 +1034,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethevent(name = "SetVerifier", abi = "SetVerifier(address,uint32)")] pub struct SetVerifierFilter { @@ -949,7 +1050,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum VAnchorContractEvents { EdgeAdditionFilter(EdgeAdditionFilter), @@ -977,11 +1078,19 @@ pub mod v_anchor_contract { return Ok(VAnchorContractEvents::InsertionFilter(decoded)); } if let Ok(decoded) = MaxDepositLimitUpdatedFilter::decode_log(log) { - return Ok(VAnchorContractEvents::MaxDepositLimitUpdatedFilter(decoded)); + return Ok( + VAnchorContractEvents::MaxDepositLimitUpdatedFilter( + decoded, + ), + ); } - if let Ok(decoded) = MinWithdrawalLimitUpdatedFilter::decode_log(log) { + if let Ok(decoded) = + MinWithdrawalLimitUpdatedFilter::decode_log(log) + { return Ok( - VAnchorContractEvents::MinWithdrawalLimitUpdatedFilter(decoded), + VAnchorContractEvents::MinWithdrawalLimitUpdatedFilter( + decoded, + ), ); } if let Ok(decoded) = NewCommitmentFilter::decode_log(log) { @@ -1003,13 +1112,20 @@ pub mod v_anchor_contract { } } impl ::core::fmt::Display for VAnchorContractEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { Self::EdgeAdditionFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::EdgeUpdateFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::InsertionFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::EdgeUpdateFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::InsertionFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::MaxDepositLimitUpdatedFilter(element) => { ::core::fmt::Display::fmt(element, f) } @@ -1022,9 +1138,15 @@ pub mod v_anchor_contract { Self::NewNullifierFilter(element) => { ::core::fmt::Display::fmt(element, f) } - Self::PublicKeyFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::SetHandlerFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::SetVerifierFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::PublicKeyFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetHandlerFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetVerifierFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -1043,13 +1165,16 @@ pub mod v_anchor_contract { Self::InsertionFilter(value) } } - impl ::core::convert::From for VAnchorContractEvents { + impl ::core::convert::From + for VAnchorContractEvents + { fn from(value: MaxDepositLimitUpdatedFilter) -> Self { Self::MaxDepositLimitUpdatedFilter(value) } } impl ::core::convert::From - for VAnchorContractEvents { + for VAnchorContractEvents + { fn from(value: MinWithdrawalLimitUpdatedFilter) -> Self { Self::MinWithdrawalLimitUpdatedFilter(value) } @@ -1090,7 +1215,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "EVM_CHAIN_ID_TYPE", abi = "EVM_CHAIN_ID_TYPE()")] pub struct EvmChainIdTypeCall; @@ -1105,7 +1230,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "FIELD_SIZE", abi = "FIELD_SIZE()")] pub struct FieldSizeCall; @@ -1120,7 +1245,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "MAX_EXT_AMOUNT", abi = "MAX_EXT_AMOUNT()")] pub struct MaxExtAmountCall; @@ -1135,7 +1260,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "MAX_FEE", abi = "MAX_FEE()")] pub struct MaxFeeCall; @@ -1150,7 +1275,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "ROOT_HISTORY_SIZE", abi = "ROOT_HISTORY_SIZE()")] pub struct RootHistorySizeCall; @@ -1165,7 +1290,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "ZERO_VALUE", abi = "ZERO_VALUE()")] pub struct ZeroValueCall; @@ -1180,7 +1305,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_executeWrapping", @@ -1202,7 +1327,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_genExtDataHash", @@ -1224,7 +1349,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "_withdrawAndUnwrap", @@ -1247,7 +1372,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "calculatePublicAmount", @@ -1268,7 +1393,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "commitments", abi = "commitments(uint256)")] pub struct CommitmentsCall(pub ::ethers::core::types::U256); @@ -1283,7 +1408,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "configureMaximumDepositLimit", @@ -1304,7 +1429,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "configureMinimalWithdrawalLimit", @@ -1325,7 +1450,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "currentNeighborRootIndex", @@ -1343,7 +1468,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "edgeExistsForChain", abi = "edgeExistsForChain(uint256)")] pub struct EdgeExistsForChainCall(pub ::ethers::core::types::U256); @@ -1358,7 +1483,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "edgeIndex", abi = "edgeIndex(uint256)")] pub struct EdgeIndexCall(pub ::ethers::core::types::U256); @@ -1373,7 +1498,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "edgeList", abi = "edgeList(uint256)")] pub struct EdgeListCall(pub ::ethers::core::types::U256); @@ -1388,7 +1513,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "filledSubtrees", abi = "filledSubtrees(uint256)")] pub struct FilledSubtreesCall(pub ::ethers::core::types::U256); @@ -1403,7 +1528,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getChainId", abi = "getChainId()")] pub struct GetChainIdCall; @@ -1418,7 +1543,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getChainIdType", abi = "getChainIdType()")] pub struct GetChainIdTypeCall; @@ -1433,7 +1558,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getHasher", abi = "getHasher()")] pub struct GetHasherCall; @@ -1448,7 +1573,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getLastRoot", abi = "getLastRoot()")] pub struct GetLastRootCall; @@ -1463,9 +1588,12 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "getLatestNeighborEdges", + abi = "getLatestNeighborEdges()" )] - #[ethcall(name = "getLatestNeighborEdges", abi = "getLatestNeighborEdges()")] pub struct GetLatestNeighborEdgesCall; ///Container type for all input parameters for the `getLatestNeighborRoots` function with signature `getLatestNeighborRoots()` and selector `0x1e627617` #[derive( @@ -1478,9 +1606,12 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "getLatestNeighborRoots", + abi = "getLatestNeighborRoots()" )] - #[ethcall(name = "getLatestNeighborRoots", abi = "getLatestNeighborRoots()")] pub struct GetLatestNeighborRootsCall; ///Container type for all input parameters for the `getLevels` function with signature `getLevels()` and selector `0x0c394a60` #[derive( @@ -1493,7 +1624,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getLevels", abi = "getLevels()")] pub struct GetLevelsCall; @@ -1508,7 +1639,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getNextIndex", abi = "getNextIndex()")] pub struct GetNextIndexCall; @@ -1523,7 +1654,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getProposalNonce", abi = "getProposalNonce()")] pub struct GetProposalNonceCall; @@ -1538,7 +1669,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "getZeroHash", abi = "getZeroHash(uint32)")] pub struct GetZeroHashCall { @@ -1555,7 +1686,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "handler", abi = "handler()")] pub struct HandlerCall; @@ -1570,7 +1701,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hasEdge", abi = "hasEdge(uint256)")] pub struct HasEdgeCall { @@ -1587,7 +1718,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "hashLeftRight", abi = "hashLeftRight(uint256,uint256)")] pub struct HashLeftRightCall { @@ -1605,7 +1736,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "initialize", abi = "initialize(uint256,uint256)")] pub struct InitializeCall { @@ -1623,7 +1754,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "initialized", abi = "initialized()")] pub struct InitializedCall; @@ -1638,7 +1769,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isCorrectExecutionChain", @@ -1658,7 +1789,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isCorrectExecutionContext", @@ -1678,7 +1809,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "isKnownNeighborRoot", @@ -1699,7 +1830,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isKnownRoot", abi = "isKnownRoot(uint256)")] pub struct IsKnownRootCall { @@ -1716,7 +1847,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isSpent", abi = "isSpent(uint256)")] pub struct IsSpentCall { @@ -1733,7 +1864,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isSpentArray", abi = "isSpentArray(uint256[])")] pub struct IsSpentArrayCall { @@ -1750,7 +1881,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "isValidRoots", abi = "isValidRoots(uint256[])")] pub struct IsValidRootsCall { @@ -1767,7 +1898,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "lastBalance", abi = "lastBalance()")] pub struct LastBalanceCall; @@ -1782,7 +1913,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "maxEdges", abi = "maxEdges()")] pub struct MaxEdgesCall; @@ -1797,7 +1928,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "maximumDepositAmount", abi = "maximumDepositAmount()")] pub struct MaximumDepositAmountCall; @@ -1812,9 +1943,12 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, + )] + #[ethcall( + name = "minimalWithdrawalAmount", + abi = "minimalWithdrawalAmount()" )] - #[ethcall(name = "minimalWithdrawalAmount", abi = "minimalWithdrawalAmount()")] pub struct MinimalWithdrawalAmountCall; ///Container type for all input parameters for the `neighborRoots` function with signature `neighborRoots(uint256,uint32)` and selector `0x43e7119f` #[derive( @@ -1827,7 +1961,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "neighborRoots", abi = "neighborRoots(uint256,uint32)")] pub struct NeighborRootsCall(pub ::ethers::core::types::U256, pub u32); @@ -1842,7 +1976,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "nullifierHashes", abi = "nullifierHashes(uint256)")] pub struct NullifierHashesCall(pub ::ethers::core::types::U256); @@ -1857,7 +1991,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "outerLevels", abi = "outerLevels()")] pub struct OuterLevelsCall; @@ -1872,7 +2006,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "parseChainIdFromResourceId", @@ -1892,7 +2026,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "proposalNonce", abi = "proposalNonce()")] pub struct ProposalNonceCall; @@ -1907,7 +2041,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "register", abi = "register((address,bytes))")] pub struct RegisterCall { @@ -1924,7 +2058,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "registerAndTransact", @@ -1949,7 +2083,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "roots", abi = "roots(uint256)")] pub struct RootsCall(pub ::ethers::core::types::U256); @@ -1964,7 +2098,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setHandler", abi = "setHandler(address,uint32)")] pub struct SetHandlerCall { @@ -1982,7 +2116,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "setVerifier", abi = "setVerifier(address,uint32)")] pub struct SetVerifierCall { @@ -2000,7 +2134,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "token", abi = "token()")] pub struct TokenCall; @@ -2015,7 +2149,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall( name = "transact", @@ -2039,7 +2173,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "unpackProof", abi = "unpackProof(uint256[8])")] pub struct UnpackProofCall { @@ -2056,7 +2190,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "updateEdge", abi = "updateEdge(uint256,uint32,bytes32)")] pub struct UpdateEdgeCall { @@ -2075,7 +2209,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] #[ethcall(name = "verifier", abi = "verifier()")] pub struct VerifierCall; @@ -2088,7 +2222,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub enum VAnchorContractCalls { EvmChainIdType(EvmChainIdTypeCall), @@ -2154,38 +2288,57 @@ pub mod v_anchor_contract { impl ::ethers::core::abi::AbiDecode for VAnchorContractCalls { fn decode( data: impl AsRef<[u8]>, - ) -> ::core::result::Result { + ) -> ::core::result::Result + { let data = data.as_ref(); - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::EvmChainIdType(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::FieldSize(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::MaxExtAmount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::MaxFee(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::RootHistorySize(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::ZeroValue(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ExecuteWrapping(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GenExtDataHash(decoded)); } if let Ok(decoded) @@ -2200,8 +2353,11 @@ pub mod v_anchor_contract { ) { return Ok(Self::CalculatePublicAmount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::Commitments(decoded)); } if let Ok(decoded) @@ -2228,32 +2384,45 @@ pub mod v_anchor_contract { ) { return Ok(Self::EdgeExistsForChain(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::EdgeIndex(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::EdgeList(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::FilledSubtrees(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetChainId(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetChainIdType(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetHasher(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetLastRoot(decoded)); } if let Ok(decoded) @@ -2268,42 +2437,59 @@ pub mod v_anchor_contract { ) { return Ok(Self::GetLatestNeighborRoots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::GetLevels(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetNextIndex(decoded)); } - if let Ok(decoded) - = ::decode( + if let Ok(decoded) = + ::decode( data, - ) { + ) + { return Ok(Self::GetProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::GetZeroHash(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Handler(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::HasEdge(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::HashLeftRight(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Initialize(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::Initialized(decoded)); } if let Ok(decoded) @@ -2324,28 +2510,42 @@ pub mod v_anchor_contract { ) { return Ok(Self::IsKnownNeighborRoot(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsKnownRoot(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::IsSpent(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsSpentArray(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::IsValidRoots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::LastBalance(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::MaxEdges(decoded)); } if let Ok(decoded) @@ -2360,16 +2560,25 @@ pub mod v_anchor_contract { ) { return Ok(Self::MinimalWithdrawalAmount(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::NeighborRoots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::NullifierHashes(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::OuterLevels(decoded)); } if let Ok(decoded) @@ -2378,12 +2587,16 @@ pub mod v_anchor_contract { ) { return Ok(Self::ParseChainIdFromResourceId(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::ProposalNonce(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Register(decoded)); } if let Ok(decoded) @@ -2392,36 +2605,48 @@ pub mod v_anchor_contract { ) { return Ok(Self::RegisterAndTransact(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Roots(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::SetHandler(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::SetVerifier(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Token(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Transact(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode( + data, + ) + { return Ok(Self::UnpackProof(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::UpdateEdge(decoded)); } - if let Ok(decoded) - = ::decode(data) { + if let Ok(decoded) = + ::decode(data) + { return Ok(Self::Verifier(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -2439,7 +2664,9 @@ pub mod v_anchor_contract { Self::MaxExtAmount(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::MaxFee(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::MaxFee(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::RootHistorySize(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2512,8 +2739,12 @@ pub mod v_anchor_contract { Self::GetZeroHash(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Handler(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::HasEdge(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Handler(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::HasEdge(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::HashLeftRight(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2535,7 +2766,9 @@ pub mod v_anchor_contract { Self::IsKnownRoot(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::IsSpent(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::IsSpent(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::IsSpentArray(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2575,14 +2808,18 @@ pub mod v_anchor_contract { Self::RegisterAndTransact(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Roots(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Roots(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::SetHandler(element) => { ::ethers::core::abi::AbiEncode::encode(element) } Self::SetVerifier(element) => { ::ethers::core::abi::AbiEncode::encode(element) } - Self::Token(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Token(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::Transact(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -2599,21 +2836,42 @@ pub mod v_anchor_contract { } } impl ::core::fmt::Display for VAnchorContractCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fn fmt( + &self, + f: &mut ::core::fmt::Formatter<'_>, + ) -> ::core::fmt::Result { match self { - Self::EvmChainIdType(element) => ::core::fmt::Display::fmt(element, f), - Self::FieldSize(element) => ::core::fmt::Display::fmt(element, f), - Self::MaxExtAmount(element) => ::core::fmt::Display::fmt(element, f), + Self::EvmChainIdType(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FieldSize(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MaxExtAmount(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::MaxFee(element) => ::core::fmt::Display::fmt(element, f), - Self::RootHistorySize(element) => ::core::fmt::Display::fmt(element, f), - Self::ZeroValue(element) => ::core::fmt::Display::fmt(element, f), - Self::ExecuteWrapping(element) => ::core::fmt::Display::fmt(element, f), - Self::GenExtDataHash(element) => ::core::fmt::Display::fmt(element, f), - Self::WithdrawAndUnwrap(element) => ::core::fmt::Display::fmt(element, f), + Self::RootHistorySize(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ZeroValue(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ExecuteWrapping(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GenExtDataHash(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WithdrawAndUnwrap(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::CalculatePublicAmount(element) => { ::core::fmt::Display::fmt(element, f) } - Self::Commitments(element) => ::core::fmt::Display::fmt(element, f), + Self::Commitments(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ConfigureMaximumDepositLimit(element) => { ::core::fmt::Display::fmt(element, f) } @@ -2626,28 +2884,56 @@ pub mod v_anchor_contract { Self::EdgeExistsForChain(element) => { ::core::fmt::Display::fmt(element, f) } - Self::EdgeIndex(element) => ::core::fmt::Display::fmt(element, f), - Self::EdgeList(element) => ::core::fmt::Display::fmt(element, f), - Self::FilledSubtrees(element) => ::core::fmt::Display::fmt(element, f), - Self::GetChainId(element) => ::core::fmt::Display::fmt(element, f), - Self::GetChainIdType(element) => ::core::fmt::Display::fmt(element, f), - Self::GetHasher(element) => ::core::fmt::Display::fmt(element, f), - Self::GetLastRoot(element) => ::core::fmt::Display::fmt(element, f), + Self::EdgeIndex(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::EdgeList(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::FilledSubtrees(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetChainId(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetChainIdType(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetHasher(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetLastRoot(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::GetLatestNeighborEdges(element) => { ::core::fmt::Display::fmt(element, f) } Self::GetLatestNeighborRoots(element) => { ::core::fmt::Display::fmt(element, f) } - Self::GetLevels(element) => ::core::fmt::Display::fmt(element, f), - Self::GetNextIndex(element) => ::core::fmt::Display::fmt(element, f), - Self::GetProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::GetZeroHash(element) => ::core::fmt::Display::fmt(element, f), + Self::GetLevels(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetNextIndex(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::GetZeroHash(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Handler(element) => ::core::fmt::Display::fmt(element, f), Self::HasEdge(element) => ::core::fmt::Display::fmt(element, f), - Self::HashLeftRight(element) => ::core::fmt::Display::fmt(element, f), - Self::Initialize(element) => ::core::fmt::Display::fmt(element, f), - Self::Initialized(element) => ::core::fmt::Display::fmt(element, f), + Self::HashLeftRight(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Initialize(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Initialized(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::IsCorrectExecutionChain(element) => { ::core::fmt::Display::fmt(element, f) } @@ -2657,37 +2943,69 @@ pub mod v_anchor_contract { Self::IsKnownNeighborRoot(element) => { ::core::fmt::Display::fmt(element, f) } - Self::IsKnownRoot(element) => ::core::fmt::Display::fmt(element, f), + Self::IsKnownRoot(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::IsSpent(element) => ::core::fmt::Display::fmt(element, f), - Self::IsSpentArray(element) => ::core::fmt::Display::fmt(element, f), - Self::IsValidRoots(element) => ::core::fmt::Display::fmt(element, f), - Self::LastBalance(element) => ::core::fmt::Display::fmt(element, f), - Self::MaxEdges(element) => ::core::fmt::Display::fmt(element, f), + Self::IsSpentArray(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::IsValidRoots(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::LastBalance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::MaxEdges(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::MaximumDepositAmount(element) => { ::core::fmt::Display::fmt(element, f) } Self::MinimalWithdrawalAmount(element) => { ::core::fmt::Display::fmt(element, f) } - Self::NeighborRoots(element) => ::core::fmt::Display::fmt(element, f), - Self::NullifierHashes(element) => ::core::fmt::Display::fmt(element, f), - Self::OuterLevels(element) => ::core::fmt::Display::fmt(element, f), + Self::NeighborRoots(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::NullifierHashes(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::OuterLevels(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::ParseChainIdFromResourceId(element) => { ::core::fmt::Display::fmt(element, f) } - Self::ProposalNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::Register(element) => ::core::fmt::Display::fmt(element, f), + Self::ProposalNonce(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Register(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::RegisterAndTransact(element) => { ::core::fmt::Display::fmt(element, f) } Self::Roots(element) => ::core::fmt::Display::fmt(element, f), - Self::SetHandler(element) => ::core::fmt::Display::fmt(element, f), - Self::SetVerifier(element) => ::core::fmt::Display::fmt(element, f), + Self::SetHandler(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SetVerifier(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Token(element) => ::core::fmt::Display::fmt(element, f), - Self::Transact(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpackProof(element) => ::core::fmt::Display::fmt(element, f), - Self::UpdateEdge(element) => ::core::fmt::Display::fmt(element, f), - Self::Verifier(element) => ::core::fmt::Display::fmt(element, f), + Self::Transact(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UnpackProof(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::UpdateEdge(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::Verifier(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -2747,18 +3065,22 @@ pub mod v_anchor_contract { } } impl ::core::convert::From - for VAnchorContractCalls { + for VAnchorContractCalls + { fn from(value: ConfigureMaximumDepositLimitCall) -> Self { Self::ConfigureMaximumDepositLimit(value) } } impl ::core::convert::From - for VAnchorContractCalls { + for VAnchorContractCalls + { fn from(value: ConfigureMinimalWithdrawalLimitCall) -> Self { Self::ConfigureMinimalWithdrawalLimit(value) } } - impl ::core::convert::From for VAnchorContractCalls { + impl ::core::convert::From + for VAnchorContractCalls + { fn from(value: CurrentNeighborRootIndexCall) -> Self { Self::CurrentNeighborRootIndex(value) } @@ -2803,12 +3125,16 @@ pub mod v_anchor_contract { Self::GetLastRoot(value) } } - impl ::core::convert::From for VAnchorContractCalls { + impl ::core::convert::From + for VAnchorContractCalls + { fn from(value: GetLatestNeighborEdgesCall) -> Self { Self::GetLatestNeighborEdges(value) } } - impl ::core::convert::From for VAnchorContractCalls { + impl ::core::convert::From + for VAnchorContractCalls + { fn from(value: GetLatestNeighborRootsCall) -> Self { Self::GetLatestNeighborRoots(value) } @@ -2858,12 +3184,16 @@ pub mod v_anchor_contract { Self::Initialized(value) } } - impl ::core::convert::From for VAnchorContractCalls { + impl ::core::convert::From + for VAnchorContractCalls + { fn from(value: IsCorrectExecutionChainCall) -> Self { Self::IsCorrectExecutionChain(value) } } - impl ::core::convert::From for VAnchorContractCalls { + impl ::core::convert::From + for VAnchorContractCalls + { fn from(value: IsCorrectExecutionContextCall) -> Self { Self::IsCorrectExecutionContext(value) } @@ -2908,7 +3238,9 @@ pub mod v_anchor_contract { Self::MaximumDepositAmount(value) } } - impl ::core::convert::From for VAnchorContractCalls { + impl ::core::convert::From + for VAnchorContractCalls + { fn from(value: MinimalWithdrawalAmountCall) -> Self { Self::MinimalWithdrawalAmount(value) } @@ -2928,7 +3260,9 @@ pub mod v_anchor_contract { Self::OuterLevels(value) } } - impl ::core::convert::From for VAnchorContractCalls { + impl ::core::convert::From + for VAnchorContractCalls + { fn from(value: ParseChainIdFromResourceIdCall) -> Self { Self::ParseChainIdFromResourceId(value) } @@ -2999,7 +3333,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EvmChainIdTypeReturn(pub [u8; 2]); ///Container type for all return fields from the `FIELD_SIZE` function with signature `FIELD_SIZE()` and selector `0x414a37ba` @@ -3013,7 +3347,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FieldSizeReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `MAX_EXT_AMOUNT` function with signature `MAX_EXT_AMOUNT()` and selector `0x7fe24ffe` @@ -3027,7 +3361,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaxExtAmountReturn(pub ::ethers::core::types::I256); ///Container type for all return fields from the `MAX_FEE` function with signature `MAX_FEE()` and selector `0xbc063e1a` @@ -3041,7 +3375,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaxFeeReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `ROOT_HISTORY_SIZE` function with signature `ROOT_HISTORY_SIZE()` and selector `0xcd87a3b4` @@ -3055,7 +3389,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct RootHistorySizeReturn(pub u32); ///Container type for all return fields from the `ZERO_VALUE` function with signature `ZERO_VALUE()` and selector `0xec732959` @@ -3069,7 +3403,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ZeroValueReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `_executeWrapping` function with signature `_executeWrapping(address,address,uint256)` and selector `0x6338bcbc` @@ -3083,7 +3417,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ExecuteWrappingReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `_genExtDataHash` function with signature `_genExtDataHash(bytes,(address,int256,address,uint256,uint256,address),(bytes,bytes))` and selector `0xd384534d` @@ -3097,7 +3431,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GenExtDataHashReturn(pub [u8; 32]); ///Container type for all return fields from the `calculatePublicAmount` function with signature `calculatePublicAmount(int256,uint256)` and selector `0x2570b7b4` @@ -3111,7 +3445,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CalculatePublicAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `commitments` function with signature `commitments(uint256)` and selector `0x49ce8997` @@ -3125,7 +3459,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CommitmentsReturn(pub bool); ///Container type for all return fields from the `currentNeighborRootIndex` function with signature `currentNeighborRootIndex(uint256)` and selector `0x5d2d766c` @@ -3139,7 +3473,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CurrentNeighborRootIndexReturn(pub u32); ///Container type for all return fields from the `edgeExistsForChain` function with signature `edgeExistsForChain(uint256)` and selector `0xfa731687` @@ -3153,7 +3487,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EdgeExistsForChainReturn(pub bool); ///Container type for all return fields from the `edgeIndex` function with signature `edgeIndex(uint256)` and selector `0xe70ea87c` @@ -3167,7 +3501,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EdgeIndexReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `edgeList` function with signature `edgeList(uint256)` and selector `0xdbc916b8` @@ -3181,7 +3515,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct EdgeListReturn { pub chain_id: ::ethers::core::types::U256, @@ -3200,7 +3534,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct FilledSubtreesReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getChainId` function with signature `getChainId()` and selector `0x3408e470` @@ -3214,7 +3548,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetChainIdReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getChainIdType` function with signature `getChainIdType()` and selector `0x4c830cbd` @@ -3228,7 +3562,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetChainIdTypeReturn(pub u64); ///Container type for all return fields from the `getHasher` function with signature `getHasher()` and selector `0xea495db0` @@ -3242,7 +3576,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetHasherReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `getLastRoot` function with signature `getLastRoot()` and selector `0xba70f757` @@ -3256,7 +3590,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLastRootReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getLatestNeighborEdges` function with signature `getLatestNeighborEdges()` and selector `0x8c0d34d8` @@ -3270,7 +3604,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLatestNeighborEdgesReturn(pub ::std::vec::Vec); ///Container type for all return fields from the `getLatestNeighborRoots` function with signature `getLatestNeighborRoots()` and selector `0x1e627617` @@ -3284,7 +3618,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLatestNeighborRootsReturn( pub ::std::vec::Vec<::ethers::core::types::U256>, @@ -3300,7 +3634,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetLevelsReturn(pub u32); ///Container type for all return fields from the `getNextIndex` function with signature `getNextIndex()` and selector `0x0eb7606f` @@ -3314,7 +3648,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetNextIndexReturn(pub u32); ///Container type for all return fields from the `getProposalNonce` function with signature `getProposalNonce()` and selector `0x0b27fb9a` @@ -3328,7 +3662,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `getZeroHash` function with signature `getZeroHash(uint32)` and selector `0x305e9eac` @@ -3342,7 +3676,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct GetZeroHashReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `handler` function with signature `handler()` and selector `0xc80916d4` @@ -3356,7 +3690,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HandlerReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `hasEdge` function with signature `hasEdge(uint256)` and selector `0x92156311` @@ -3370,7 +3704,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HasEdgeReturn(pub bool); ///Container type for all return fields from the `hashLeftRight` function with signature `hashLeftRight(uint256,uint256)` and selector `0x5bb93995` @@ -3384,7 +3718,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct HashLeftRightReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `initialized` function with signature `initialized()` and selector `0x158ef93e` @@ -3398,7 +3732,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct InitializedReturn(pub bool); ///Container type for all return fields from the `isCorrectExecutionChain` function with signature `isCorrectExecutionChain(bytes32)` and selector `0x830b2f57` @@ -3412,7 +3746,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsCorrectExecutionChainReturn(pub bool); ///Container type for all return fields from the `isCorrectExecutionContext` function with signature `isCorrectExecutionContext(bytes32)` and selector `0xf5fc3d6b` @@ -3426,7 +3760,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsCorrectExecutionContextReturn(pub bool); ///Container type for all return fields from the `isKnownNeighborRoot` function with signature `isKnownNeighborRoot(uint256,uint256)` and selector `0x3bfa8d7a` @@ -3440,7 +3774,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsKnownNeighborRootReturn(pub bool); ///Container type for all return fields from the `isKnownRoot` function with signature `isKnownRoot(uint256)` and selector `0xa6232a93` @@ -3454,7 +3788,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsKnownRootReturn(pub bool); ///Container type for all return fields from the `isSpent` function with signature `isSpent(uint256)` and selector `0x5a129efe` @@ -3468,7 +3802,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsSpentReturn(pub bool); ///Container type for all return fields from the `isSpentArray` function with signature `isSpentArray(uint256[])` and selector `0xea65ba49` @@ -3482,7 +3816,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsSpentArrayReturn(pub ::std::vec::Vec); ///Container type for all return fields from the `isValidRoots` function with signature `isValidRoots(uint256[])` and selector `0xb75e6798` @@ -3496,7 +3830,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct IsValidRootsReturn(pub bool); ///Container type for all return fields from the `lastBalance` function with signature `lastBalance()` and selector `0x8f1c56bd` @@ -3510,7 +3844,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct LastBalanceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `maxEdges` function with signature `maxEdges()` and selector `0x71523c32` @@ -3524,7 +3858,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaxEdgesReturn(pub u8); ///Container type for all return fields from the `maximumDepositAmount` function with signature `maximumDepositAmount()` and selector `0x78abb49b` @@ -3538,7 +3872,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MaximumDepositAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `minimalWithdrawalAmount` function with signature `minimalWithdrawalAmount()` and selector `0x840b2791` @@ -3552,7 +3886,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct MinimalWithdrawalAmountReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `neighborRoots` function with signature `neighborRoots(uint256,uint32)` and selector `0x43e7119f` @@ -3566,7 +3900,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct NeighborRootsReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `nullifierHashes` function with signature `nullifierHashes(uint256)` and selector `0x1f79a1e9` @@ -3580,7 +3914,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct NullifierHashesReturn(pub bool); ///Container type for all return fields from the `outerLevels` function with signature `outerLevels()` and selector `0xbfbc0a39` @@ -3594,7 +3928,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct OuterLevelsReturn(pub u32); ///Container type for all return fields from the `parseChainIdFromResourceId` function with signature `parseChainIdFromResourceId(bytes32)` and selector `0xc2230d6e` @@ -3608,7 +3942,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ParseChainIdFromResourceIdReturn(pub u64); ///Container type for all return fields from the `proposalNonce` function with signature `proposalNonce()` and selector `0xcc3c74a1` @@ -3622,7 +3956,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct ProposalNonceReturn(pub ::ethers::core::types::U256); ///Container type for all return fields from the `roots` function with signature `roots(uint256)` and selector `0xc2b40ae4` @@ -3636,7 +3970,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct RootsReturn { pub root: ::ethers::core::types::U256, @@ -3653,7 +3987,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct TokenReturn(pub ::ethers::core::types::Address); ///Container type for all return fields from the `unpackProof` function with signature `unpackProof(uint256[8])` and selector `0xf5ab0dd6` @@ -3667,7 +4001,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct UnpackProofReturn( pub [::ethers::core::types::U256; 2], @@ -3685,7 +4019,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct VerifierReturn(pub ::ethers::core::types::Address); ///`CommonExtData(address,int256,address,uint256,uint256,address)` @@ -3699,7 +4033,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct CommonExtData { pub recipient: ::ethers::core::types::Address, @@ -3720,7 +4054,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Edge { pub chain_id: ::ethers::core::types::U256, @@ -3739,7 +4073,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Encryptions { pub encrypted_output_1: ::ethers::core::types::Bytes, @@ -3756,7 +4090,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct PublicInputs { pub roots: ::ethers::core::types::Bytes, @@ -3777,7 +4111,7 @@ pub mod v_anchor_contract { Debug, PartialEq, Eq, - Hash + Hash, )] pub struct Account { pub owner: ::ethers::core::types::Address, diff --git a/src/substrate/tangle_runtime.rs b/src/substrate/tangle_runtime.rs index e0c3ce2..0756e85 100644 --- a/src/substrate/tangle_runtime.rs +++ b/src/substrate/tangle_runtime.rs @@ -59,7 +59,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -143,387 +143,306 @@ pub mod api { ) -> Result { use ::subxt::metadata::DecodeWithMetadata; if pallet_name == "System" { - return Ok( - Event::System( - system::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::System(system::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Sudo" { - return Ok( - Event::Sudo( - sudo::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Sudo(sudo::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Balances" { - return Ok( - Event::Balances( - balances::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Balances( + balances::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "TransactionPayment" { - return Ok( - Event::TransactionPayment( - transaction_payment::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::TransactionPayment( + transaction_payment::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Grandpa" { - return Ok( - Event::Grandpa( - grandpa::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Grandpa( + grandpa::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "DKG" { - return Ok( - Event::DKG( - dkg::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::DKG(dkg::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "DKGProposals" { - return Ok( - Event::DKGProposals( - dkg_proposals::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::DKGProposals( + dkg_proposals::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "DKGProposalHandler" { - return Ok( - Event::DKGProposalHandler( - dkg_proposal_handler::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::DKGProposalHandler( + dkg_proposal_handler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "BridgeRegistry" { - return Ok( - Event::BridgeRegistry( - bridge_registry::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::BridgeRegistry( + bridge_registry::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Indices" { - return Ok( - Event::Indices( - indices::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Indices( + indices::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Democracy" { - return Ok( - Event::Democracy( - democracy::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Democracy( + democracy::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Council" { - return Ok( - Event::Council( - council::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Council( + council::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Vesting" { - return Ok( - Event::Vesting( - vesting::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Vesting( + vesting::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Claims" { - return Ok( - Event::Claims( - claims::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Claims(claims::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Elections" { - return Ok( - Event::Elections( - elections::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Elections( + elections::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "ElectionProviderMultiPhase" { - return Ok( - Event::ElectionProviderMultiPhase( - election_provider_multi_phase::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::ElectionProviderMultiPhase( + election_provider_multi_phase::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Staking" { - return Ok( - Event::Staking( - staking::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Staking( + staking::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Session" { - return Ok( - Event::Session( - session::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Session( + session::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Treasury" { - return Ok( - Event::Treasury( - treasury::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Treasury( + treasury::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Bounties" { - return Ok( - Event::Bounties( - bounties::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Bounties( + bounties::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "ChildBounties" { - return Ok( - Event::ChildBounties( - child_bounties::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::ChildBounties( + child_bounties::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "BagsList" { - return Ok( - Event::BagsList( - bags_list::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::BagsList( + bags_list::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "NominationPools" { - return Ok( - Event::NominationPools( - nomination_pools::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::NominationPools( + nomination_pools::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Scheduler" { - return Ok( - Event::Scheduler( - scheduler::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Scheduler( + scheduler::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Preimage" { - return Ok( - Event::Preimage( - preimage::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Preimage( + preimage::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Offences" { - return Ok( - Event::Offences( - offences::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Offences( + offences::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "TransactionPause" { - return Ok( - Event::TransactionPause( - transaction_pause::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::TransactionPause( + transaction_pause::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "ImOnline" { - return Ok( - Event::ImOnline( - im_online::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::ImOnline( + im_online::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Identity" { - return Ok( - Event::Identity( - identity::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Identity( + identity::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Utility" { - return Ok( - Event::Utility( - utility::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Utility( + utility::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Ethereum" { - return Ok( - Event::Ethereum( - ethereum::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::Ethereum( + ethereum::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "EVM" { - return Ok( - Event::EVM( - evm::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::EVM(evm::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "BaseFee" { - return Ok( - Event::BaseFee( - base_fee::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Event::BaseFee( + base_fee::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Eth2Client" { - return Ok( - Event::Eth2Client( - eth2_client::Event::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); - } - Err( - ::subxt::ext::scale_decode::Error::custom( - format!( - "Pallet name '{}' not found in root Event enum", pallet_name - ), - ) - .into(), - ) + return Ok(Event::Eth2Client( + eth2_client::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Event enum", + pallet_name + )) + .into()) } } #[derive( @@ -534,7 +453,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -620,398 +539,301 @@ pub mod api { ) -> Result { use ::subxt::metadata::DecodeWithMetadata; if pallet_name == "System" { - return Ok( - Call::System( - system::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::System(system::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Timestamp" { - return Ok( - Call::Timestamp( - timestamp::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Timestamp( + timestamp::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Sudo" { - return Ok( - Call::Sudo( - sudo::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Sudo(sudo::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Balances" { - return Ok( - Call::Balances( - balances::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Balances( + balances::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Grandpa" { - return Ok( - Call::Grandpa( - grandpa::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Grandpa(grandpa::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "DKG" { - return Ok( - Call::DKG( - dkg::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::DKG(dkg::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "DKGProposals" { - return Ok( - Call::DKGProposals( - dkg_proposals::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::DKGProposals( + dkg_proposals::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "DKGProposalHandler" { - return Ok( - Call::DKGProposalHandler( - dkg_proposal_handler::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::DKGProposalHandler( + dkg_proposal_handler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "BridgeRegistry" { - return Ok( - Call::BridgeRegistry( - bridge_registry::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::BridgeRegistry( + bridge_registry::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Indices" { - return Ok( - Call::Indices( - indices::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Indices(indices::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Democracy" { - return Ok( - Call::Democracy( - democracy::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Democracy( + democracy::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Council" { - return Ok( - Call::Council( - council::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Council(council::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Vesting" { - return Ok( - Call::Vesting( - vesting::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Vesting(vesting::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Claims" { - return Ok( - Call::Claims( - claims::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Claims(claims::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Elections" { - return Ok( - Call::Elections( - elections::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Elections( + elections::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "ElectionProviderMultiPhase" { - return Ok( - Call::ElectionProviderMultiPhase( - election_provider_multi_phase::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::ElectionProviderMultiPhase( + election_provider_multi_phase::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Staking" { - return Ok( - Call::Staking( - staking::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Staking(staking::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Session" { - return Ok( - Call::Session( - session::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Session(session::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Treasury" { - return Ok( - Call::Treasury( - treasury::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Treasury( + treasury::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Bounties" { - return Ok( - Call::Bounties( - bounties::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Bounties( + bounties::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "ChildBounties" { - return Ok( - Call::ChildBounties( - child_bounties::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::ChildBounties( + child_bounties::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "BagsList" { - return Ok( - Call::BagsList( - bags_list::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::BagsList( + bags_list::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "NominationPools" { - return Ok( - Call::NominationPools( - nomination_pools::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::NominationPools( + nomination_pools::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Scheduler" { - return Ok( - Call::Scheduler( - scheduler::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Scheduler( + scheduler::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Preimage" { - return Ok( - Call::Preimage( - preimage::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Preimage( + preimage::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "TransactionPause" { - return Ok( - Call::TransactionPause( - transaction_pause::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::TransactionPause( + transaction_pause::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "ImOnline" { - return Ok( - Call::ImOnline( - im_online::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::ImOnline( + im_online::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Identity" { - return Ok( - Call::Identity( - identity::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Identity( + identity::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Utility" { - return Ok( - Call::Utility( - utility::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Utility(utility::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "Ethereum" { - return Ok( - Call::Ethereum( - ethereum::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::Ethereum( + ethereum::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "EVM" { - return Ok( - Call::EVM( - evm::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::EVM(evm::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); } if pallet_name == "DynamicFee" { - return Ok( - Call::DynamicFee( - dynamic_fee::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::DynamicFee( + dynamic_fee::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "BaseFee" { - return Ok( - Call::BaseFee( - base_fee::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::BaseFee( + base_fee::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "HotfixSufficients" { - return Ok( - Call::HotfixSufficients( - hotfix_sufficients::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); + return Ok(Call::HotfixSufficients( + hotfix_sufficients::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); } if pallet_name == "Eth2Client" { - return Ok( - Call::Eth2Client( - eth2_client::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?, - ), - ); - } - Err( - ::subxt::ext::scale_decode::Error::custom( - format!( - "Pallet name '{}' not found in root Call enum", pallet_name - ), - ) - .into(), - ) + return Ok(Call::Eth2Client( + eth2_client::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?, + )); + } + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Call enum", + pallet_name + )) + .into()) } } #[derive( @@ -1022,7 +844,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -1103,268 +925,206 @@ pub mod api { let cursor = &mut &pallet_bytes[..]; if pallet_name == "System" { let variant_error = system::Error::decode_with_metadata( - cursor, - 163u32, - metadata, + cursor, 163u32, metadata, )?; return Ok(Error::System(variant_error)); } if pallet_name == "Sudo" { let variant_error = sudo::Error::decode_with_metadata( - cursor, - 403u32, - metadata, + cursor, 403u32, metadata, )?; return Ok(Error::Sudo(variant_error)); } if pallet_name == "Balances" { let variant_error = balances::Error::decode_with_metadata( - cursor, - 415u32, - metadata, + cursor, 415u32, metadata, )?; return Ok(Error::Balances(variant_error)); } if pallet_name == "Grandpa" { let variant_error = grandpa::Error::decode_with_metadata( - cursor, - 424u32, - metadata, + cursor, 424u32, metadata, )?; return Ok(Error::Grandpa(variant_error)); } if pallet_name == "DKG" { - let variant_error = dkg::Error::decode_with_metadata( - cursor, - 436u32, - metadata, - )?; + let variant_error = + dkg::Error::decode_with_metadata(cursor, 436u32, metadata)?; return Ok(Error::DKG(variant_error)); } if pallet_name == "DKGProposals" { let variant_error = dkg_proposals::Error::decode_with_metadata( - cursor, - 448u32, - metadata, + cursor, 448u32, metadata, )?; return Ok(Error::DKGProposals(variant_error)); } if pallet_name == "DKGProposalHandler" { - let variant_error = dkg_proposal_handler::Error::decode_with_metadata( - cursor, - 454u32, - metadata, - )?; + let variant_error = + dkg_proposal_handler::Error::decode_with_metadata( + cursor, 454u32, metadata, + )?; return Ok(Error::DKGProposalHandler(variant_error)); } if pallet_name == "BridgeRegistry" { - let variant_error = bridge_registry::Error::decode_with_metadata( - cursor, - 457u32, - metadata, - )?; + let variant_error = + bridge_registry::Error::decode_with_metadata( + cursor, 457u32, metadata, + )?; return Ok(Error::BridgeRegistry(variant_error)); } if pallet_name == "Indices" { let variant_error = indices::Error::decode_with_metadata( - cursor, - 459u32, - metadata, + cursor, 459u32, metadata, )?; return Ok(Error::Indices(variant_error)); } if pallet_name == "Democracy" { let variant_error = democracy::Error::decode_with_metadata( - cursor, - 476u32, - metadata, + cursor, 476u32, metadata, )?; return Ok(Error::Democracy(variant_error)); } if pallet_name == "Council" { let variant_error = council::Error::decode_with_metadata( - cursor, - 479u32, - metadata, + cursor, 479u32, metadata, )?; return Ok(Error::Council(variant_error)); } if pallet_name == "Vesting" { let variant_error = vesting::Error::decode_with_metadata( - cursor, - 483u32, - metadata, + cursor, 483u32, metadata, )?; return Ok(Error::Vesting(variant_error)); } if pallet_name == "Claims" { let variant_error = claims::Error::decode_with_metadata( - cursor, - 485u32, - metadata, + cursor, 485u32, metadata, )?; return Ok(Error::Claims(variant_error)); } if pallet_name == "Elections" { let variant_error = elections::Error::decode_with_metadata( - cursor, - 489u32, - metadata, + cursor, 489u32, metadata, )?; return Ok(Error::Elections(variant_error)); } if pallet_name == "ElectionProviderMultiPhase" { - let variant_error = election_provider_multi_phase::Error::decode_with_metadata( - cursor, - 500u32, - metadata, - )?; + let variant_error = + election_provider_multi_phase::Error::decode_with_metadata( + cursor, 500u32, metadata, + )?; return Ok(Error::ElectionProviderMultiPhase(variant_error)); } if pallet_name == "Staking" { let variant_error = staking::Error::decode_with_metadata( - cursor, - 520u32, - metadata, + cursor, 520u32, metadata, )?; return Ok(Error::Staking(variant_error)); } if pallet_name == "Session" { let variant_error = session::Error::decode_with_metadata( - cursor, - 525u32, - metadata, + cursor, 525u32, metadata, )?; return Ok(Error::Session(variant_error)); } if pallet_name == "Treasury" { let variant_error = treasury::Error::decode_with_metadata( - cursor, - 531u32, - metadata, + cursor, 531u32, metadata, )?; return Ok(Error::Treasury(variant_error)); } if pallet_name == "Bounties" { let variant_error = bounties::Error::decode_with_metadata( - cursor, - 535u32, - metadata, + cursor, 535u32, metadata, )?; return Ok(Error::Bounties(variant_error)); } if pallet_name == "ChildBounties" { - let variant_error = child_bounties::Error::decode_with_metadata( - cursor, - 538u32, - metadata, - )?; + let variant_error = + child_bounties::Error::decode_with_metadata( + cursor, 538u32, metadata, + )?; return Ok(Error::ChildBounties(variant_error)); } if pallet_name == "BagsList" { let variant_error = bags_list::Error::decode_with_metadata( - cursor, - 542u32, - metadata, + cursor, 542u32, metadata, )?; return Ok(Error::BagsList(variant_error)); } if pallet_name == "NominationPools" { - let variant_error = nomination_pools::Error::decode_with_metadata( - cursor, - 562u32, - metadata, - )?; + let variant_error = + nomination_pools::Error::decode_with_metadata( + cursor, 562u32, metadata, + )?; return Ok(Error::NominationPools(variant_error)); } if pallet_name == "Scheduler" { let variant_error = scheduler::Error::decode_with_metadata( - cursor, - 568u32, - metadata, + cursor, 568u32, metadata, )?; return Ok(Error::Scheduler(variant_error)); } if pallet_name == "Preimage" { let variant_error = preimage::Error::decode_with_metadata( - cursor, - 572u32, - metadata, + cursor, 572u32, metadata, )?; return Ok(Error::Preimage(variant_error)); } if pallet_name == "TransactionPause" { - let variant_error = transaction_pause::Error::decode_with_metadata( - cursor, - 575u32, - metadata, - )?; + let variant_error = + transaction_pause::Error::decode_with_metadata( + cursor, 575u32, metadata, + )?; return Ok(Error::TransactionPause(variant_error)); } if pallet_name == "ImOnline" { let variant_error = im_online::Error::decode_with_metadata( - cursor, - 583u32, - metadata, + cursor, 583u32, metadata, )?; return Ok(Error::ImOnline(variant_error)); } if pallet_name == "Identity" { let variant_error = identity::Error::decode_with_metadata( - cursor, - 594u32, - metadata, + cursor, 594u32, metadata, )?; return Ok(Error::Identity(variant_error)); } if pallet_name == "Utility" { let variant_error = utility::Error::decode_with_metadata( - cursor, - 595u32, - metadata, + cursor, 595u32, metadata, )?; return Ok(Error::Utility(variant_error)); } if pallet_name == "Ethereum" { let variant_error = ethereum::Error::decode_with_metadata( - cursor, - 609u32, - metadata, + cursor, 609u32, metadata, )?; return Ok(Error::Ethereum(variant_error)); } if pallet_name == "EVM" { - let variant_error = evm::Error::decode_with_metadata( - cursor, - 612u32, - metadata, - )?; + let variant_error = + evm::Error::decode_with_metadata(cursor, 612u32, metadata)?; return Ok(Error::EVM(variant_error)); } if pallet_name == "HotfixSufficients" { - let variant_error = hotfix_sufficients::Error::decode_with_metadata( - cursor, - 613u32, - metadata, - )?; + let variant_error = + hotfix_sufficients::Error::decode_with_metadata( + cursor, 613u32, metadata, + )?; return Ok(Error::HotfixSufficients(variant_error)); } if pallet_name == "Eth2Client" { let variant_error = eth2_client::Error::decode_with_metadata( - cursor, - 617u32, - metadata, + cursor, 617u32, metadata, )?; return Ok(Error::Eth2Client(variant_error)); } - Err( - ::subxt::ext::scale_decode::Error::custom( - format!( - "Pallet name '{}' not found in root Error enum", pallet_name - ), - ) - .into(), - ) + Err(::subxt::ext::scale_decode::Error::custom(format!( + "Pallet name '{}' not found in root Error enum", + pallet_name + )) + .into()) } } pub fn constants() -> ConstantsApi { @@ -1416,7 +1176,9 @@ pub mod api { ) -> dkg_proposal_handler::constants::ConstantsApi { dkg_proposal_handler::constants::ConstantsApi } - pub fn bridge_registry(&self) -> bridge_registry::constants::ConstantsApi { + pub fn bridge_registry( + &self, + ) -> bridge_registry::constants::ConstantsApi { bridge_registry::constants::ConstantsApi } pub fn indices(&self) -> indices::constants::ConstantsApi { @@ -1451,13 +1213,17 @@ pub mod api { pub fn bounties(&self) -> bounties::constants::ConstantsApi { bounties::constants::ConstantsApi } - pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi { + pub fn child_bounties( + &self, + ) -> child_bounties::constants::ConstantsApi { child_bounties::constants::ConstantsApi } pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { bags_list::constants::ConstantsApi } - pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { + pub fn nomination_pools( + &self, + ) -> nomination_pools::constants::ConstantsApi { nomination_pools::constants::ConstantsApi } pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { @@ -1495,7 +1261,9 @@ pub mod api { pub fn balances(&self) -> balances::storage::StorageApi { balances::storage::StorageApi } - pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { + pub fn transaction_payment( + &self, + ) -> transaction_payment::storage::StorageApi { transaction_payment::storage::StorageApi } pub fn authorship(&self) -> authorship::storage::StorageApi { @@ -1513,7 +1281,9 @@ pub mod api { pub fn dkg_proposals(&self) -> dkg_proposals::storage::StorageApi { dkg_proposals::storage::StorageApi } - pub fn dkg_proposal_handler(&self) -> dkg_proposal_handler::storage::StorageApi { + pub fn dkg_proposal_handler( + &self, + ) -> dkg_proposal_handler::storage::StorageApi { dkg_proposal_handler::storage::StorageApi } pub fn bridge_registry(&self) -> bridge_registry::storage::StorageApi { @@ -1563,7 +1333,9 @@ pub mod api { pub fn bags_list(&self) -> bags_list::storage::StorageApi { bags_list::storage::StorageApi } - pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { + pub fn nomination_pools( + &self, + ) -> nomination_pools::storage::StorageApi { nomination_pools::storage::StorageApi } pub fn scheduler(&self) -> scheduler::storage::StorageApi { @@ -1575,7 +1347,9 @@ pub mod api { pub fn offences(&self) -> offences::storage::StorageApi { offences::storage::StorageApi } - pub fn transaction_pause(&self) -> transaction_pause::storage::StorageApi { + pub fn transaction_pause( + &self, + ) -> transaction_pause::storage::StorageApi { transaction_pause::storage::StorageApi } pub fn im_online(&self) -> im_online::storage::StorageApi { @@ -1631,7 +1405,9 @@ pub mod api { ) -> dkg_proposal_handler::calls::TransactionApi { dkg_proposal_handler::calls::TransactionApi } - pub fn bridge_registry(&self) -> bridge_registry::calls::TransactionApi { + pub fn bridge_registry( + &self, + ) -> bridge_registry::calls::TransactionApi { bridge_registry::calls::TransactionApi } pub fn indices(&self) -> indices::calls::TransactionApi { @@ -1675,7 +1451,9 @@ pub mod api { pub fn bags_list(&self) -> bags_list::calls::TransactionApi { bags_list::calls::TransactionApi } - pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { + pub fn nomination_pools( + &self, + ) -> nomination_pools::calls::TransactionApi { nomination_pools::calls::TransactionApi } pub fn scheduler(&self) -> scheduler::calls::TransactionApi { @@ -1684,7 +1462,9 @@ pub mod api { pub fn preimage(&self) -> preimage::calls::TransactionApi { preimage::calls::TransactionApi } - pub fn transaction_pause(&self) -> transaction_pause::calls::TransactionApi { + pub fn transaction_pause( + &self, + ) -> transaction_pause::calls::TransactionApi { transaction_pause::calls::TransactionApi } pub fn im_online(&self) -> im_online::calls::TransactionApi { @@ -1708,7 +1488,9 @@ pub mod api { pub fn base_fee(&self) -> base_fee::calls::TransactionApi { base_fee::calls::TransactionApi } - pub fn hotfix_sufficients(&self) -> hotfix_sufficients::calls::TransactionApi { + pub fn hotfix_sufficients( + &self, + ) -> hotfix_sufficients::calls::TransactionApi { hotfix_sufficients::calls::TransactionApi } pub fn eth2_client(&self) -> eth2_client::calls::TransactionApi { @@ -1716,7 +1498,10 @@ pub mod api { } } /// check whether the Client you are using is aligned with the statically generated codegen. - pub fn validate_codegen>( + pub fn validate_codegen< + T: ::subxt::Config, + C: ::subxt::client::OfflineClientT, + >( client: &C, ) -> Result<(), ::subxt::error::MetadataError> { let runtime_metadata_hash = client @@ -1726,38 +1511,10 @@ pub mod api { .hash(); if runtime_metadata_hash != [ - 55u8, - 103u8, - 74u8, - 189u8, - 219u8, - 176u8, - 77u8, - 118u8, - 125u8, - 31u8, - 15u8, - 246u8, - 178u8, - 184u8, - 169u8, - 62u8, - 187u8, - 13u8, - 124u8, - 47u8, - 188u8, - 208u8, - 164u8, - 48u8, - 242u8, - 146u8, - 42u8, - 75u8, - 47u8, - 59u8, - 215u8, - 157u8, + 55u8, 103u8, 74u8, 189u8, 219u8, 176u8, 77u8, 118u8, 125u8, + 31u8, 15u8, 246u8, 178u8, 184u8, 169u8, 62u8, 187u8, 13u8, + 124u8, 47u8, 188u8, 208u8, 164u8, 48u8, 242u8, 146u8, 42u8, + 75u8, 47u8, 59u8, 215u8, 157u8, ] { Err(::subxt::error::MetadataError::IncompatibleCodegen) @@ -1786,11 +1543,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Remark { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -1807,11 +1568,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetHeapPages { pub pages: ::core::primitive::u64, } @@ -1827,11 +1592,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetCode { pub code: ::std::vec::Vec<::core::primitive::u8>, } @@ -1847,11 +1616,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetCodeWithoutChecks { pub code: ::std::vec::Vec<::core::primitive::u8>, } @@ -1867,18 +1640,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetStorage { - pub items: ::std::vec::Vec< - ( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - ), - >, + pub items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, } impl ::subxt::blocks::StaticExtrinsic for SetStorage { const PALLET: &'static str = "System"; @@ -1892,13 +1667,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct KillStorage { - pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub keys: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } impl ::subxt::blocks::StaticExtrinsic for KillStorage { const PALLET: &'static str = "System"; @@ -1912,11 +1692,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct KillPrefix { pub prefix: ::std::vec::Vec<::core::primitive::u8>, pub subkeys: ::core::primitive::u32, @@ -1933,11 +1717,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemarkWithEvent { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -1960,38 +1748,11 @@ pub mod api { "remark", types::Remark { remark }, [ - 43u8, - 126u8, - 180u8, - 174u8, - 141u8, - 48u8, - 52u8, - 125u8, - 166u8, - 212u8, - 216u8, - 98u8, - 100u8, - 24u8, - 132u8, - 71u8, - 101u8, - 64u8, - 246u8, - 169u8, - 33u8, - 250u8, - 147u8, - 208u8, - 2u8, - 40u8, - 129u8, - 209u8, - 232u8, - 207u8, - 207u8, - 13u8, + 43u8, 126u8, 180u8, 174u8, 141u8, 48u8, 52u8, + 125u8, 166u8, 212u8, 216u8, 98u8, 100u8, 24u8, + 132u8, 71u8, 101u8, 64u8, 246u8, 169u8, 33u8, + 250u8, 147u8, 208u8, 2u8, 40u8, 129u8, 209u8, + 232u8, 207u8, 207u8, 13u8, ], ) } @@ -2005,38 +1766,11 @@ pub mod api { "set_heap_pages", types::SetHeapPages { pages }, [ - 188u8, - 191u8, - 99u8, - 216u8, - 219u8, - 109u8, - 141u8, - 50u8, - 78u8, - 235u8, - 215u8, - 242u8, - 195u8, - 24u8, - 111u8, - 76u8, - 229u8, - 64u8, - 99u8, - 225u8, - 134u8, - 121u8, - 81u8, - 209u8, - 127u8, - 223u8, - 98u8, - 215u8, - 150u8, - 70u8, - 57u8, - 147u8, + 188u8, 191u8, 99u8, 216u8, 219u8, 109u8, 141u8, + 50u8, 78u8, 235u8, 215u8, 242u8, 195u8, 24u8, + 111u8, 76u8, 229u8, 64u8, 99u8, 225u8, 134u8, + 121u8, 81u8, 209u8, 127u8, 223u8, 98u8, 215u8, + 150u8, 70u8, 57u8, 147u8, ], ) } @@ -2050,37 +1784,10 @@ pub mod api { "set_code", types::SetCode { code }, [ - 233u8, - 248u8, - 88u8, - 245u8, - 28u8, - 65u8, - 25u8, - 169u8, - 35u8, - 237u8, - 19u8, - 203u8, - 136u8, - 160u8, - 18u8, - 3u8, - 20u8, - 197u8, - 81u8, - 169u8, - 244u8, - 188u8, - 27u8, - 147u8, - 147u8, - 236u8, - 65u8, - 25u8, - 3u8, - 143u8, - 182u8, + 233u8, 248u8, 88u8, 245u8, 28u8, 65u8, 25u8, 169u8, + 35u8, 237u8, 19u8, 203u8, 136u8, 160u8, 18u8, 3u8, + 20u8, 197u8, 81u8, 169u8, 244u8, 188u8, 27u8, + 147u8, 147u8, 236u8, 65u8, 25u8, 3u8, 143u8, 182u8, 22u8, ], ) @@ -2089,95 +1796,38 @@ pub mod api { pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "System", "set_code_without_checks", - types::SetCodeWithoutChecks { - code, - }, + types::SetCodeWithoutChecks { code }, [ - 82u8, - 212u8, - 157u8, - 44u8, - 70u8, - 0u8, - 143u8, - 15u8, - 109u8, - 109u8, - 107u8, - 157u8, - 141u8, - 42u8, - 169u8, - 11u8, - 15u8, - 186u8, - 252u8, - 138u8, - 10u8, - 147u8, - 15u8, - 178u8, - 247u8, - 229u8, - 213u8, - 98u8, - 207u8, - 231u8, - 119u8, - 115u8, + 82u8, 212u8, 157u8, 44u8, 70u8, 0u8, 143u8, 15u8, + 109u8, 109u8, 107u8, 157u8, 141u8, 42u8, 169u8, + 11u8, 15u8, 186u8, 252u8, 138u8, 10u8, 147u8, 15u8, + 178u8, 247u8, 229u8, 213u8, 98u8, 207u8, 231u8, + 119u8, 115u8, ], ) } ///Set some items of storage. pub fn set_storage( &self, - items: ::std::vec::Vec< - ( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - ), - >, + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "set_storage", types::SetStorage { items }, [ - 184u8, - 169u8, - 248u8, - 68u8, - 40u8, - 193u8, - 190u8, - 151u8, - 96u8, - 159u8, - 19u8, - 237u8, - 241u8, - 156u8, - 5u8, - 158u8, - 191u8, - 237u8, - 9u8, - 13u8, - 86u8, - 213u8, - 77u8, - 58u8, - 48u8, - 139u8, - 1u8, - 85u8, - 220u8, - 233u8, - 139u8, + 184u8, 169u8, 248u8, 68u8, 40u8, 193u8, 190u8, + 151u8, 96u8, 159u8, 19u8, 237u8, 241u8, 156u8, 5u8, + 158u8, 191u8, 237u8, 9u8, 13u8, 86u8, 213u8, 77u8, + 58u8, 48u8, 139u8, 1u8, 85u8, 220u8, 233u8, 139u8, 164u8, ], ) @@ -2185,45 +1835,20 @@ pub mod api { ///Kill some items from storage. pub fn kill_storage( &self, - keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + keys: ::std::vec::Vec< + ::std::vec::Vec<::core::primitive::u8>, + >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "System", "kill_storage", types::KillStorage { keys }, [ - 73u8, - 63u8, - 196u8, - 36u8, - 144u8, - 114u8, - 34u8, - 213u8, - 108u8, - 93u8, - 209u8, - 234u8, - 153u8, - 185u8, - 33u8, - 91u8, - 187u8, - 195u8, - 223u8, - 130u8, - 58u8, - 156u8, - 63u8, - 47u8, - 228u8, - 249u8, - 216u8, - 139u8, - 143u8, - 177u8, - 41u8, - 35u8, + 73u8, 63u8, 196u8, 36u8, 144u8, 114u8, 34u8, 213u8, + 108u8, 93u8, 209u8, 234u8, 153u8, 185u8, 33u8, + 91u8, 187u8, 195u8, 223u8, 130u8, 58u8, 156u8, + 63u8, 47u8, 228u8, 249u8, 216u8, 139u8, 143u8, + 177u8, 41u8, 35u8, ], ) } @@ -2239,43 +1864,13 @@ pub mod api { ::subxt::tx::Payload::new_static( "System", "kill_prefix", - types::KillPrefix { - prefix, - subkeys, - }, + types::KillPrefix { prefix, subkeys }, [ - 184u8, - 57u8, - 139u8, - 24u8, - 208u8, - 87u8, - 108u8, - 215u8, - 198u8, - 189u8, - 175u8, - 242u8, - 167u8, - 215u8, - 97u8, - 63u8, - 110u8, - 166u8, - 238u8, - 98u8, - 67u8, - 236u8, - 111u8, - 110u8, - 234u8, - 81u8, - 102u8, - 5u8, - 182u8, - 5u8, - 214u8, - 85u8, + 184u8, 57u8, 139u8, 24u8, 208u8, 87u8, 108u8, + 215u8, 198u8, 189u8, 175u8, 242u8, 167u8, 215u8, + 97u8, 63u8, 110u8, 166u8, 238u8, 98u8, 67u8, 236u8, + 111u8, 110u8, 234u8, 81u8, 102u8, 5u8, 182u8, 5u8, + 214u8, 85u8, ], ) } @@ -2283,44 +1878,18 @@ pub mod api { pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "System", "remark_with_event", types::RemarkWithEvent { remark }, [ - 120u8, - 120u8, - 153u8, - 92u8, - 184u8, - 85u8, - 34u8, - 2u8, - 174u8, - 206u8, - 105u8, - 228u8, - 233u8, - 130u8, - 80u8, - 246u8, - 228u8, - 59u8, - 234u8, - 240u8, - 4u8, - 49u8, - 147u8, - 170u8, - 115u8, - 91u8, - 149u8, - 200u8, - 228u8, - 181u8, - 8u8, - 154u8, + 120u8, 120u8, 153u8, 92u8, 184u8, 85u8, 34u8, 2u8, + 174u8, 206u8, 105u8, 228u8, 233u8, 130u8, 80u8, + 246u8, 228u8, 59u8, 234u8, 240u8, 4u8, 49u8, 147u8, + 170u8, 115u8, 91u8, 149u8, 200u8, 228u8, 181u8, + 8u8, 154u8, ], ) } @@ -2338,14 +1907,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///An extrinsic completed successfully. pub struct ExtrinsicSuccess { - pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + pub dispatch_info: + runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicSuccess { const PALLET: &'static str = "System"; @@ -2359,7 +1929,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -2367,7 +1937,8 @@ pub mod api { ///An extrinsic failed. pub struct ExtrinsicFailed { pub dispatch_error: runtime_types::sp_runtime::DispatchError, - pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + pub dispatch_info: + runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicFailed { const PALLET: &'static str = "System"; @@ -2381,7 +1952,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -2400,7 +1971,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -2421,7 +1992,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -2442,7 +2013,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -2540,37 +2111,10 @@ pub mod api { "Account", Vec::new(), [ - 234u8, - 12u8, - 167u8, - 96u8, - 2u8, - 244u8, - 235u8, - 62u8, - 153u8, - 200u8, - 96u8, - 74u8, - 135u8, - 8u8, - 35u8, - 188u8, - 146u8, - 249u8, - 246u8, - 40u8, - 224u8, - 22u8, - 15u8, - 99u8, - 150u8, - 222u8, - 82u8, - 85u8, - 123u8, - 123u8, - 19u8, + 234u8, 12u8, 167u8, 96u8, 2u8, 244u8, 235u8, 62u8, + 153u8, 200u8, 96u8, 74u8, 135u8, 8u8, 35u8, 188u8, + 146u8, 249u8, 246u8, 40u8, 224u8, 22u8, 15u8, 99u8, + 150u8, 222u8, 82u8, 85u8, 123u8, 123u8, 19u8, 110u8, ], ) @@ -2590,38 +2134,11 @@ pub mod api { "ExtrinsicCount", vec![], [ - 102u8, - 76u8, - 236u8, - 42u8, - 40u8, - 231u8, - 33u8, - 222u8, - 123u8, - 147u8, - 153u8, - 148u8, - 234u8, - 203u8, - 181u8, - 119u8, - 6u8, - 187u8, - 177u8, - 199u8, - 120u8, - 47u8, - 137u8, - 254u8, - 96u8, - 100u8, - 165u8, - 182u8, - 249u8, - 230u8, - 159u8, - 79u8, + 102u8, 76u8, 236u8, 42u8, 40u8, 231u8, 33u8, 222u8, + 123u8, 147u8, 153u8, 148u8, 234u8, 203u8, 181u8, + 119u8, 6u8, 187u8, 177u8, 199u8, 120u8, 47u8, + 137u8, 254u8, 96u8, 100u8, 165u8, 182u8, 249u8, + 230u8, 159u8, 79u8, ], ) } @@ -2642,38 +2159,11 @@ pub mod api { "BlockWeight", vec![], [ - 52u8, - 191u8, - 212u8, - 137u8, - 26u8, - 39u8, - 239u8, - 35u8, - 182u8, - 32u8, - 39u8, - 103u8, - 56u8, - 184u8, - 60u8, - 159u8, - 167u8, - 232u8, - 193u8, - 116u8, - 105u8, - 56u8, - 98u8, - 127u8, - 124u8, - 188u8, - 214u8, - 154u8, - 160u8, - 41u8, - 20u8, - 162u8, + 52u8, 191u8, 212u8, 137u8, 26u8, 39u8, 239u8, 35u8, + 182u8, 32u8, 39u8, 103u8, 56u8, 184u8, 60u8, 159u8, + 167u8, 232u8, 193u8, 116u8, 105u8, 56u8, 98u8, + 127u8, 124u8, 188u8, 214u8, 154u8, 160u8, 41u8, + 20u8, 162u8, ], ) } @@ -2692,38 +2182,11 @@ pub mod api { "AllExtrinsicsLen", vec![], [ - 117u8, - 86u8, - 61u8, - 243u8, - 41u8, - 51u8, - 102u8, - 214u8, - 137u8, - 100u8, - 243u8, - 185u8, - 122u8, - 174u8, - 187u8, - 117u8, - 86u8, - 189u8, - 63u8, - 135u8, - 101u8, - 218u8, - 203u8, - 201u8, - 237u8, - 254u8, - 128u8, - 183u8, - 169u8, - 221u8, - 242u8, - 65u8, + 117u8, 86u8, 61u8, 243u8, 41u8, 51u8, 102u8, 214u8, + 137u8, 100u8, 243u8, 185u8, 122u8, 174u8, 187u8, + 117u8, 86u8, 189u8, 63u8, 135u8, 101u8, 218u8, + 203u8, 201u8, 237u8, 254u8, 128u8, 183u8, 169u8, + 221u8, 242u8, 65u8, ], ) } @@ -2796,38 +2259,11 @@ pub mod api { "BlockHash", Vec::new(), [ - 217u8, - 32u8, - 215u8, - 253u8, - 24u8, - 182u8, - 207u8, - 178u8, - 157u8, - 24u8, - 103u8, - 100u8, - 195u8, - 165u8, - 69u8, - 152u8, - 112u8, - 181u8, - 56u8, - 192u8, - 164u8, - 16u8, - 20u8, - 222u8, - 28u8, - 214u8, - 144u8, - 142u8, - 146u8, - 69u8, - 202u8, - 118u8, + 217u8, 32u8, 215u8, 253u8, 24u8, 182u8, 207u8, + 178u8, 157u8, 24u8, 103u8, 100u8, 195u8, 165u8, + 69u8, 152u8, 112u8, 181u8, 56u8, 192u8, 164u8, + 16u8, 20u8, 222u8, 28u8, 214u8, 144u8, 142u8, + 146u8, 69u8, 202u8, 118u8, ], ) } @@ -2900,38 +2336,11 @@ pub mod api { "ExtrinsicData", Vec::new(), [ - 160u8, - 180u8, - 122u8, - 18u8, - 196u8, - 26u8, - 2u8, - 37u8, - 115u8, - 232u8, - 133u8, - 220u8, - 106u8, - 245u8, - 4u8, - 129u8, - 42u8, - 84u8, - 241u8, - 45u8, - 199u8, - 179u8, - 128u8, - 61u8, - 170u8, - 137u8, - 231u8, - 156u8, - 247u8, - 57u8, - 47u8, - 38u8, + 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, + 115u8, 232u8, 133u8, 220u8, 106u8, 245u8, 4u8, + 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8, + 128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, + 57u8, 47u8, 38u8, ], ) } @@ -2950,37 +2359,10 @@ pub mod api { "Number", vec![], [ - 30u8, - 194u8, - 177u8, - 90u8, - 194u8, - 232u8, - 46u8, - 180u8, - 85u8, - 129u8, - 14u8, - 9u8, - 8u8, - 8u8, - 23u8, - 95u8, - 230u8, - 5u8, - 13u8, - 105u8, - 125u8, - 2u8, - 22u8, - 200u8, - 78u8, - 93u8, - 115u8, - 28u8, - 150u8, - 113u8, - 48u8, + 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, + 180u8, 85u8, 129u8, 14u8, 9u8, 8u8, 8u8, 23u8, + 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, + 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, ], ) @@ -3000,37 +2382,10 @@ pub mod api { "ParentHash", vec![], [ - 26u8, - 130u8, - 11u8, - 216u8, - 155u8, - 71u8, - 128u8, - 170u8, - 30u8, - 153u8, - 21u8, - 192u8, - 62u8, - 93u8, - 137u8, - 80u8, - 120u8, - 81u8, - 202u8, - 94u8, - 248u8, - 125u8, - 71u8, - 82u8, - 141u8, - 229u8, - 32u8, - 56u8, - 73u8, - 50u8, - 101u8, + 26u8, 130u8, 11u8, 216u8, 155u8, 71u8, 128u8, + 170u8, 30u8, 153u8, 21u8, 192u8, 62u8, 93u8, 137u8, + 80u8, 120u8, 81u8, 202u8, 94u8, 248u8, 125u8, 71u8, + 82u8, 141u8, 229u8, 32u8, 56u8, 73u8, 50u8, 101u8, 78u8, ], ) @@ -3050,38 +2405,11 @@ pub mod api { "Digest", vec![], [ - 70u8, - 156u8, - 127u8, - 89u8, - 115u8, - 250u8, - 103u8, - 62u8, - 185u8, - 153u8, - 26u8, - 72u8, - 39u8, - 226u8, - 181u8, - 97u8, - 137u8, - 225u8, - 45u8, - 158u8, - 212u8, - 254u8, - 142u8, - 136u8, - 90u8, - 22u8, - 243u8, - 125u8, - 226u8, - 49u8, - 235u8, - 215u8, + 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, + 62u8, 185u8, 153u8, 26u8, 72u8, 39u8, 226u8, 181u8, + 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, 254u8, + 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, + 49u8, 235u8, 215u8, ], ) } @@ -3105,43 +2433,16 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "System", "Events", vec![], [ - 17u8, - 132u8, - 208u8, - 42u8, - 131u8, - 220u8, - 75u8, - 19u8, - 44u8, - 13u8, - 120u8, - 137u8, - 194u8, - 248u8, - 174u8, - 202u8, - 129u8, - 30u8, - 1u8, - 88u8, - 25u8, - 31u8, - 34u8, - 193u8, - 1u8, - 36u8, - 89u8, - 170u8, - 227u8, - 195u8, - 227u8, + 17u8, 132u8, 208u8, 42u8, 131u8, 220u8, 75u8, 19u8, + 44u8, 13u8, 120u8, 137u8, 194u8, 248u8, 174u8, + 202u8, 129u8, 30u8, 1u8, 88u8, 25u8, 31u8, 34u8, + 193u8, 1u8, 36u8, 89u8, 170u8, 227u8, 195u8, 227u8, 212u8, ], ) @@ -3161,38 +2462,11 @@ pub mod api { "EventCount", vec![], [ - 175u8, - 24u8, - 252u8, - 184u8, - 210u8, - 167u8, - 146u8, - 143u8, - 164u8, - 80u8, - 151u8, - 205u8, - 189u8, - 189u8, - 55u8, - 220u8, - 47u8, - 101u8, - 181u8, - 33u8, - 254u8, - 131u8, - 13u8, - 143u8, - 3u8, - 244u8, - 245u8, - 45u8, - 2u8, - 210u8, - 79u8, - 133u8, + 175u8, 24u8, 252u8, 184u8, 210u8, 167u8, 146u8, + 143u8, 164u8, 80u8, 151u8, 205u8, 189u8, 189u8, + 55u8, 220u8, 47u8, 101u8, 181u8, 33u8, 254u8, + 131u8, 13u8, 143u8, 3u8, 244u8, 245u8, 45u8, 2u8, + 210u8, 79u8, 133u8, ], ) } @@ -3211,7 +2485,10 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -3273,7 +2550,10 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -3283,37 +2563,10 @@ pub mod api { "EventTopics", Vec::new(), [ - 154u8, - 29u8, - 31u8, - 148u8, - 254u8, - 7u8, - 124u8, - 251u8, - 241u8, - 77u8, - 24u8, - 37u8, - 28u8, - 75u8, - 205u8, - 17u8, - 159u8, - 79u8, - 239u8, - 62u8, - 67u8, - 60u8, - 252u8, - 112u8, - 215u8, - 145u8, - 103u8, - 170u8, - 110u8, - 186u8, - 221u8, + 154u8, 29u8, 31u8, 148u8, 254u8, 7u8, 124u8, 251u8, + 241u8, 77u8, 24u8, 37u8, 28u8, 75u8, 205u8, 17u8, + 159u8, 79u8, 239u8, 62u8, 67u8, 60u8, 252u8, 112u8, + 215u8, 145u8, 103u8, 170u8, 110u8, 186u8, 221u8, 76u8, ], ) @@ -3333,37 +2586,10 @@ pub mod api { "LastRuntimeUpgrade", vec![], [ - 137u8, - 29u8, - 175u8, - 75u8, - 197u8, - 208u8, - 91u8, - 207u8, - 156u8, - 87u8, - 148u8, - 68u8, - 91u8, - 140u8, - 22u8, - 233u8, - 1u8, - 229u8, - 56u8, - 34u8, - 40u8, - 194u8, - 253u8, - 30u8, - 163u8, - 39u8, - 54u8, - 209u8, - 13u8, - 27u8, - 139u8, + 137u8, 29u8, 175u8, 75u8, 197u8, 208u8, 91u8, + 207u8, 156u8, 87u8, 148u8, 68u8, 91u8, 140u8, 22u8, + 233u8, 1u8, 229u8, 56u8, 34u8, 40u8, 194u8, 253u8, + 30u8, 163u8, 39u8, 54u8, 209u8, 13u8, 27u8, 139u8, 184u8, ], ) @@ -3383,38 +2609,11 @@ pub mod api { "UpgradedToU32RefCount", vec![], [ - 229u8, - 73u8, - 9u8, - 132u8, - 186u8, - 116u8, - 151u8, - 171u8, - 145u8, - 29u8, - 34u8, - 130u8, - 52u8, - 146u8, - 124u8, - 175u8, - 79u8, - 189u8, - 147u8, - 230u8, - 234u8, - 107u8, - 124u8, - 31u8, - 2u8, - 22u8, - 86u8, - 190u8, - 4u8, - 147u8, - 50u8, - 245u8, + 229u8, 73u8, 9u8, 132u8, 186u8, 116u8, 151u8, + 171u8, 145u8, 29u8, 34u8, 130u8, 52u8, 146u8, + 124u8, 175u8, 79u8, 189u8, 147u8, 230u8, 234u8, + 107u8, 124u8, 31u8, 2u8, 22u8, 86u8, 190u8, 4u8, + 147u8, 50u8, 245u8, ], ) } @@ -3434,38 +2633,11 @@ pub mod api { "UpgradedToTripleRefCount", vec![], [ - 97u8, - 66u8, - 124u8, - 243u8, - 27u8, - 167u8, - 147u8, - 81u8, - 254u8, - 201u8, - 101u8, - 24u8, - 40u8, - 231u8, - 14u8, - 179u8, - 154u8, - 163u8, - 71u8, - 81u8, - 185u8, - 167u8, - 82u8, - 254u8, - 189u8, - 3u8, - 101u8, - 207u8, - 206u8, - 194u8, - 155u8, - 151u8, + 97u8, 66u8, 124u8, 243u8, 27u8, 167u8, 147u8, 81u8, + 254u8, 201u8, 101u8, 24u8, 40u8, 231u8, 14u8, + 179u8, 154u8, 163u8, 71u8, 81u8, 185u8, 167u8, + 82u8, 254u8, 189u8, 3u8, 101u8, 207u8, 206u8, + 194u8, 155u8, 151u8, ], ) } @@ -3484,38 +2656,11 @@ pub mod api { "ExecutionPhase", vec![], [ - 191u8, - 129u8, - 100u8, - 134u8, - 126u8, - 116u8, - 154u8, - 203u8, - 220u8, - 200u8, - 0u8, - 26u8, - 161u8, - 250u8, - 133u8, - 205u8, - 146u8, - 24u8, - 5u8, - 156u8, - 158u8, - 35u8, - 36u8, - 253u8, - 52u8, - 235u8, - 86u8, - 167u8, - 35u8, - 100u8, - 119u8, - 27u8, + 191u8, 129u8, 100u8, 134u8, 126u8, 116u8, 154u8, + 203u8, 220u8, 200u8, 0u8, 26u8, 161u8, 250u8, + 133u8, 205u8, 146u8, 24u8, 5u8, 156u8, 158u8, 35u8, + 36u8, 253u8, 52u8, 235u8, 86u8, 167u8, 35u8, 100u8, + 119u8, 27u8, ], ) } @@ -3535,37 +2680,10 @@ pub mod api { "System", "BlockWeights", [ - 238u8, - 20u8, - 221u8, - 11u8, - 146u8, - 236u8, - 47u8, - 103u8, - 8u8, - 239u8, - 13u8, - 176u8, - 202u8, - 10u8, - 151u8, - 68u8, - 110u8, - 162u8, - 99u8, - 40u8, - 211u8, - 136u8, - 71u8, - 82u8, - 50u8, - 80u8, - 244u8, - 211u8, - 231u8, - 198u8, - 36u8, + 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, + 103u8, 8u8, 239u8, 13u8, 176u8, 202u8, 10u8, 151u8, + 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, 136u8, 71u8, + 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, ], ) @@ -3580,80 +2698,27 @@ pub mod api { "System", "BlockLength", [ - 117u8, - 144u8, - 154u8, - 125u8, - 106u8, - 34u8, - 224u8, - 228u8, - 80u8, - 76u8, - 126u8, - 0u8, - 177u8, - 223u8, - 116u8, - 244u8, - 167u8, - 23u8, - 253u8, - 44u8, - 128u8, - 116u8, - 155u8, - 245u8, - 163u8, - 20u8, - 21u8, - 222u8, - 174u8, - 237u8, - 162u8, - 240u8, + 117u8, 144u8, 154u8, 125u8, 106u8, 34u8, 224u8, + 228u8, 80u8, 76u8, 126u8, 0u8, 177u8, 223u8, 116u8, + 244u8, 167u8, 23u8, 253u8, 44u8, 128u8, 116u8, + 155u8, 245u8, 163u8, 20u8, 21u8, 222u8, 174u8, + 237u8, 162u8, 240u8, ], ) } /// Maximum number of block number to block hash mappings to keep (oldest pruned first). pub fn block_hash_count( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "System", "BlockHashCount", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -3668,38 +2733,11 @@ pub mod api { "System", "DbWeight", [ - 206u8, - 53u8, - 134u8, - 247u8, - 42u8, - 38u8, - 197u8, - 59u8, - 191u8, - 83u8, - 160u8, - 9u8, - 207u8, - 133u8, - 108u8, - 152u8, - 150u8, - 103u8, - 109u8, - 228u8, - 218u8, - 24u8, - 27u8, - 210u8, - 106u8, - 252u8, - 74u8, - 93u8, - 27u8, - 63u8, - 109u8, - 252u8, + 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, + 191u8, 83u8, 160u8, 9u8, 207u8, 133u8, 108u8, + 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, 24u8, + 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, + 109u8, 252u8, ], ) } @@ -3713,38 +2751,11 @@ pub mod api { "System", "Version", [ - 134u8, - 0u8, - 23u8, - 0u8, - 199u8, - 213u8, - 89u8, - 240u8, - 194u8, - 186u8, - 239u8, - 157u8, - 168u8, - 211u8, - 223u8, - 156u8, - 138u8, - 140u8, - 194u8, - 23u8, - 167u8, - 158u8, - 195u8, - 233u8, - 25u8, - 165u8, - 27u8, - 237u8, - 198u8, - 206u8, - 233u8, - 28u8, + 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, + 194u8, 186u8, 239u8, 157u8, 168u8, 211u8, 223u8, + 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, 158u8, + 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, + 206u8, 233u8, 28u8, ], ) } @@ -3755,43 +2766,17 @@ pub mod api { /// an identifier of the chain. pub fn ss58_prefix( &self, - ) -> ::subxt::constants::Address<::core::primitive::u16> { + ) -> ::subxt::constants::Address<::core::primitive::u16> + { ::subxt::constants::Address::new_static( "System", "SS58Prefix", [ - 116u8, - 33u8, - 2u8, - 170u8, - 181u8, - 147u8, - 171u8, - 169u8, - 167u8, - 227u8, - 41u8, - 144u8, - 11u8, - 236u8, - 82u8, - 100u8, - 74u8, - 60u8, - 184u8, - 72u8, - 169u8, - 90u8, - 208u8, - 135u8, - 15u8, - 117u8, - 10u8, - 123u8, - 128u8, - 193u8, - 29u8, - 70u8, + 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, + 169u8, 167u8, 227u8, 41u8, 144u8, 11u8, 236u8, + 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, + 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, + 193u8, 29u8, 70u8, ], ) } @@ -3817,11 +2802,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Set { #[codec(compact)] pub now: ::core::primitive::u64, @@ -3857,37 +2846,10 @@ pub mod api { "set", types::Set { now }, [ - 37u8, - 95u8, - 49u8, - 218u8, - 24u8, - 22u8, - 0u8, - 95u8, - 72u8, - 35u8, - 155u8, - 199u8, - 213u8, - 54u8, - 207u8, - 22u8, - 185u8, - 193u8, - 221u8, - 70u8, - 18u8, - 200u8, - 4u8, - 231u8, - 195u8, - 173u8, - 6u8, - 122u8, - 11u8, - 203u8, - 231u8, + 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, + 72u8, 35u8, 155u8, 199u8, 213u8, 54u8, 207u8, 22u8, + 185u8, 193u8, 221u8, 70u8, 18u8, 200u8, 4u8, 231u8, + 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, ], ) @@ -3913,37 +2875,10 @@ pub mod api { "Now", vec![], [ - 44u8, - 50u8, - 80u8, - 30u8, - 195u8, - 146u8, - 123u8, - 238u8, - 8u8, - 163u8, - 187u8, - 92u8, - 61u8, - 39u8, - 51u8, - 29u8, - 173u8, - 169u8, - 217u8, - 158u8, - 85u8, - 187u8, - 141u8, - 26u8, - 12u8, - 115u8, - 51u8, - 11u8, - 200u8, - 244u8, - 138u8, + 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, + 8u8, 163u8, 187u8, 92u8, 61u8, 39u8, 51u8, 29u8, + 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, 141u8, + 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, ], ) @@ -3963,38 +2898,11 @@ pub mod api { "DidUpdate", vec![], [ - 229u8, - 175u8, - 246u8, - 102u8, - 237u8, - 158u8, - 212u8, - 229u8, - 238u8, - 214u8, - 205u8, - 160u8, - 164u8, - 252u8, - 195u8, - 75u8, - 139u8, - 110u8, - 22u8, - 34u8, - 248u8, - 204u8, - 107u8, - 46u8, - 20u8, - 200u8, - 238u8, - 167u8, - 71u8, - 41u8, - 214u8, - 140u8, + 229u8, 175u8, 246u8, 102u8, 237u8, 158u8, 212u8, + 229u8, 238u8, 214u8, 205u8, 160u8, 164u8, 252u8, + 195u8, 75u8, 139u8, 110u8, 22u8, 34u8, 248u8, + 204u8, 107u8, 46u8, 20u8, 200u8, 238u8, 167u8, + 71u8, 41u8, 214u8, 140u8, ], ) } @@ -4010,43 +2918,17 @@ pub mod api { /// double this period on default settings. pub fn minimum_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { + ) -> ::subxt::constants::Address<::core::primitive::u64> + { ::subxt::constants::Address::new_static( "Timestamp", "MinimumPeriod", [ - 128u8, - 214u8, - 205u8, - 242u8, - 181u8, - 142u8, - 124u8, - 231u8, - 190u8, - 146u8, - 59u8, - 226u8, - 157u8, - 101u8, - 103u8, - 117u8, - 249u8, - 65u8, - 18u8, - 191u8, - 103u8, - 119u8, - 53u8, - 85u8, - 81u8, - 96u8, - 220u8, - 42u8, - 184u8, - 239u8, - 42u8, - 246u8, + 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, ], ) } @@ -4074,11 +2956,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Sudo { pub call: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -4096,11 +2982,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SudoUncheckedWeight { pub call: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -4119,11 +3009,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetKey { pub new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4142,11 +3036,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SudoAs { pub who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4180,38 +3078,11 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 22u8, - 67u8, - 184u8, - 94u8, - 251u8, - 64u8, - 140u8, - 143u8, - 179u8, - 80u8, - 221u8, - 59u8, - 12u8, - 36u8, - 32u8, - 63u8, - 87u8, - 246u8, - 14u8, - 104u8, - 168u8, - 208u8, - 74u8, - 203u8, - 254u8, - 235u8, - 226u8, - 198u8, - 10u8, - 251u8, - 222u8, - 253u8, + 22u8, 67u8, 184u8, 94u8, 251u8, 64u8, 140u8, 143u8, + 179u8, 80u8, 221u8, 59u8, 12u8, 36u8, 32u8, 63u8, + 87u8, 246u8, 14u8, 104u8, 168u8, 208u8, 74u8, + 203u8, 254u8, 235u8, 226u8, 198u8, 10u8, 251u8, + 222u8, 253u8, ], ) } @@ -4227,7 +3098,8 @@ pub mod api { &self, call: runtime_types::tangle_standalone_runtime::RuntimeCall, weight: runtime_types::sp_weights::weight_v2::Weight, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Sudo", "sudo_unchecked_weight", @@ -4236,38 +3108,11 @@ pub mod api { weight, }, [ - 165u8, - 186u8, - 12u8, - 210u8, - 46u8, - 155u8, - 106u8, - 230u8, - 42u8, - 188u8, - 233u8, - 30u8, - 103u8, - 222u8, - 29u8, - 70u8, - 148u8, - 217u8, - 219u8, - 51u8, - 223u8, - 254u8, - 39u8, - 102u8, - 209u8, - 235u8, - 177u8, - 141u8, - 74u8, - 25u8, - 172u8, - 62u8, + 165u8, 186u8, 12u8, 210u8, 46u8, 155u8, 106u8, + 230u8, 42u8, 188u8, 233u8, 30u8, 103u8, 222u8, + 29u8, 70u8, 148u8, 217u8, 219u8, 51u8, 223u8, + 254u8, 39u8, 102u8, 209u8, 235u8, 177u8, 141u8, + 74u8, 25u8, 172u8, 62u8, ], ) } @@ -4290,38 +3135,11 @@ pub mod api { "set_key", types::SetKey { new }, [ - 46u8, - 208u8, - 84u8, - 223u8, - 141u8, - 188u8, - 184u8, - 156u8, - 101u8, - 97u8, - 255u8, - 166u8, - 168u8, - 102u8, - 75u8, - 3u8, - 149u8, - 105u8, - 202u8, - 220u8, - 187u8, - 117u8, - 156u8, - 83u8, - 159u8, - 115u8, - 231u8, - 201u8, - 171u8, - 47u8, - 170u8, - 36u8, + 46u8, 208u8, 84u8, 223u8, 141u8, 188u8, 184u8, + 156u8, 101u8, 97u8, 255u8, 166u8, 168u8, 102u8, + 75u8, 3u8, 149u8, 105u8, 202u8, 220u8, 187u8, + 117u8, 156u8, 83u8, 159u8, 115u8, 231u8, 201u8, + 171u8, 47u8, 170u8, 36u8, ], ) } @@ -4348,47 +3166,19 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 16u8, - 144u8, - 209u8, - 214u8, - 43u8, - 83u8, - 11u8, - 97u8, - 56u8, - 26u8, - 97u8, - 86u8, - 122u8, - 206u8, - 221u8, - 151u8, - 108u8, - 189u8, - 99u8, - 216u8, - 55u8, - 18u8, - 98u8, - 108u8, - 139u8, - 54u8, - 136u8, - 78u8, - 58u8, - 197u8, - 92u8, - 156u8, + 16u8, 144u8, 209u8, 214u8, 43u8, 83u8, 11u8, 97u8, + 56u8, 26u8, 97u8, 86u8, 122u8, 206u8, 221u8, 151u8, + 108u8, 189u8, 99u8, 216u8, 55u8, 18u8, 98u8, 108u8, + 139u8, 54u8, 136u8, 78u8, 58u8, 197u8, 92u8, 156u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_sudo::pallet::Event; pub mod events { use super::runtime_types; @@ -4400,7 +3190,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -4424,14 +3214,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///The \[sudoer\] just switched identity; the old key is supplied if one existed. pub struct KeyChanged { - pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + pub old_sudoer: + ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for KeyChanged { const PALLET: &'static str = "Sudo"; @@ -4445,7 +3236,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -4481,38 +3272,11 @@ pub mod api { "Key", vec![], [ - 72u8, - 14u8, - 225u8, - 162u8, - 205u8, - 247u8, - 227u8, - 105u8, - 116u8, - 57u8, - 4u8, - 31u8, - 84u8, - 137u8, - 227u8, - 228u8, - 133u8, - 245u8, - 206u8, - 227u8, - 117u8, - 36u8, - 252u8, - 151u8, - 107u8, - 15u8, - 180u8, - 4u8, - 4u8, - 152u8, - 195u8, - 144u8, + 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, + 105u8, 116u8, 57u8, 4u8, 31u8, 84u8, 137u8, 227u8, + 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, 36u8, + 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, + 195u8, 144u8, ], ) } @@ -4545,38 +3309,11 @@ pub mod api { "RandomMaterial", vec![], [ - 195u8, - 232u8, - 244u8, - 162u8, - 110u8, - 137u8, - 66u8, - 57u8, - 51u8, - 221u8, - 143u8, - 38u8, - 51u8, - 183u8, - 105u8, - 245u8, - 175u8, - 13u8, - 33u8, - 192u8, - 53u8, - 16u8, - 161u8, - 76u8, - 219u8, - 177u8, - 144u8, - 192u8, - 96u8, - 166u8, - 117u8, - 247u8, + 195u8, 232u8, 244u8, 162u8, 110u8, 137u8, 66u8, + 57u8, 51u8, 221u8, 143u8, 38u8, 51u8, 183u8, 105u8, + 245u8, 175u8, 13u8, 33u8, 192u8, 53u8, 16u8, 161u8, + 76u8, 219u8, 177u8, 144u8, 192u8, 96u8, 166u8, + 117u8, 247u8, ], ) } @@ -4587,9 +3324,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_balances::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_balances::pallet::Call; @@ -4607,11 +3344,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct TransferAllowDeath { pub dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4632,11 +3373,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetBalanceDeprecated { pub who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4659,11 +3404,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceTransfer { pub source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4688,11 +3437,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct TransferKeepAlive { pub dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4713,11 +3466,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct TransferAll { pub dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4737,11 +3494,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceUnreserve { pub who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4761,11 +3522,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UpgradeAccounts { pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, } @@ -4781,11 +3546,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Transfer { pub dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4806,11 +3575,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceSetBalance { pub who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -4840,46 +3613,17 @@ pub mod api { ::core::primitive::u32, >, value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Balances", "transfer_allow_death", - types::TransferAllowDeath { - dest, - value, - }, + types::TransferAllowDeath { dest, value }, [ - 100u8, - 112u8, - 63u8, - 118u8, - 67u8, - 47u8, - 63u8, - 58u8, - 249u8, - 180u8, - 242u8, - 65u8, - 237u8, - 246u8, - 118u8, - 80u8, - 181u8, - 220u8, - 5u8, - 1u8, - 144u8, - 184u8, - 214u8, - 24u8, - 170u8, - 165u8, - 227u8, - 142u8, - 9u8, - 43u8, - 152u8, + 100u8, 112u8, 63u8, 118u8, 67u8, 47u8, 63u8, 58u8, + 249u8, 180u8, 242u8, 65u8, 237u8, 246u8, 118u8, + 80u8, 181u8, 220u8, 5u8, 1u8, 144u8, 184u8, 214u8, + 24u8, 170u8, 165u8, 227u8, 142u8, 9u8, 43u8, 152u8, 101u8, ], ) @@ -4898,7 +3642,8 @@ pub mod api { >, new_free: ::core::primitive::u128, old_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Balances", "set_balance_deprecated", @@ -4908,37 +3653,10 @@ pub mod api { old_reserved, }, [ - 135u8, - 204u8, - 148u8, - 253u8, - 76u8, - 20u8, - 79u8, - 5u8, - 133u8, - 232u8, - 10u8, - 79u8, - 199u8, - 52u8, - 199u8, - 42u8, - 124u8, - 55u8, - 82u8, - 71u8, - 102u8, - 81u8, - 46u8, - 101u8, - 38u8, - 183u8, - 219u8, - 188u8, - 227u8, - 255u8, - 136u8, + 135u8, 204u8, 148u8, 253u8, 76u8, 20u8, 79u8, 5u8, + 133u8, 232u8, 10u8, 79u8, 199u8, 52u8, 199u8, 42u8, + 124u8, 55u8, 82u8, 71u8, 102u8, 81u8, 46u8, 101u8, + 38u8, 183u8, 219u8, 188u8, 227u8, 255u8, 136u8, 124u8, ], ) @@ -4956,7 +3674,8 @@ pub mod api { ::core::primitive::u32, >, value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Balances", "force_transfer", @@ -4966,38 +3685,11 @@ pub mod api { value, }, [ - 192u8, - 208u8, - 171u8, - 116u8, - 91u8, - 20u8, - 177u8, - 202u8, - 113u8, - 195u8, - 44u8, - 49u8, - 140u8, - 190u8, - 168u8, - 41u8, - 165u8, - 202u8, - 68u8, - 127u8, - 247u8, - 183u8, - 126u8, - 38u8, - 124u8, - 41u8, - 13u8, - 11u8, - 69u8, - 32u8, - 35u8, - 12u8, + 192u8, 208u8, 171u8, 116u8, 91u8, 20u8, 177u8, + 202u8, 113u8, 195u8, 44u8, 49u8, 140u8, 190u8, + 168u8, 41u8, 165u8, 202u8, 68u8, 127u8, 247u8, + 183u8, 126u8, 38u8, 124u8, 41u8, 13u8, 11u8, 69u8, + 32u8, 35u8, 12u8, ], ) } @@ -5014,46 +3706,17 @@ pub mod api { ::core::primitive::u32, >, value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Balances", "transfer_keep_alive", - types::TransferKeepAlive { - dest, - value, - }, + types::TransferKeepAlive { dest, value }, [ - 186u8, - 56u8, - 39u8, - 71u8, - 205u8, - 98u8, - 251u8, - 252u8, - 106u8, - 6u8, - 92u8, - 217u8, - 254u8, - 186u8, - 113u8, - 196u8, - 114u8, - 248u8, - 54u8, - 226u8, - 53u8, - 73u8, - 6u8, - 66u8, - 96u8, - 54u8, - 117u8, - 23u8, - 34u8, - 200u8, - 84u8, + 186u8, 56u8, 39u8, 71u8, 205u8, 98u8, 251u8, 252u8, + 106u8, 6u8, 92u8, 217u8, 254u8, 186u8, 113u8, + 196u8, 114u8, 248u8, 54u8, 226u8, 53u8, 73u8, 6u8, + 66u8, 96u8, 54u8, 117u8, 23u8, 34u8, 200u8, 84u8, 227u8, ], ) @@ -5084,43 +3747,13 @@ pub mod api { ::subxt::tx::Payload::new_static( "Balances", "transfer_all", - types::TransferAll { - dest, - keep_alive, - }, + types::TransferAll { dest, keep_alive }, [ - 39u8, - 244u8, - 99u8, - 182u8, - 181u8, - 159u8, - 95u8, - 217u8, - 8u8, - 210u8, - 113u8, - 254u8, - 171u8, - 199u8, - 93u8, - 146u8, - 209u8, - 229u8, - 55u8, - 97u8, - 131u8, - 226u8, - 155u8, - 41u8, - 199u8, - 145u8, - 177u8, - 137u8, - 198u8, - 241u8, - 90u8, - 20u8, + 39u8, 244u8, 99u8, 182u8, 181u8, 159u8, 95u8, + 217u8, 8u8, 210u8, 113u8, 254u8, 171u8, 199u8, + 93u8, 146u8, 209u8, 229u8, 55u8, 97u8, 131u8, + 226u8, 155u8, 41u8, 199u8, 145u8, 177u8, 137u8, + 198u8, 241u8, 90u8, 20u8, ], ) } @@ -5134,47 +3767,18 @@ pub mod api { ::core::primitive::u32, >, amount: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Balances", "force_unreserve", - types::ForceUnreserve { - who, - amount, - }, + types::ForceUnreserve { who, amount }, [ - 153u8, - 166u8, - 64u8, - 196u8, - 251u8, - 238u8, - 79u8, - 171u8, - 169u8, - 183u8, - 68u8, - 220u8, - 117u8, - 237u8, - 231u8, - 156u8, - 6u8, - 186u8, - 196u8, - 238u8, - 195u8, - 16u8, - 84u8, - 236u8, - 40u8, - 6u8, - 228u8, - 211u8, - 19u8, - 248u8, - 171u8, - 137u8, + 153u8, 166u8, 64u8, 196u8, 251u8, 238u8, 79u8, + 171u8, 169u8, 183u8, 68u8, 220u8, 117u8, 237u8, + 231u8, 156u8, 6u8, 186u8, 196u8, 238u8, 195u8, + 16u8, 84u8, 236u8, 40u8, 6u8, 228u8, 211u8, 19u8, + 248u8, 171u8, 137u8, ], ) } @@ -5189,44 +3793,18 @@ pub mod api { pub fn upgrade_accounts( &self, who: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Balances", "upgrade_accounts", types::UpgradeAccounts { who }, [ - 66u8, - 200u8, - 179u8, - 104u8, - 65u8, - 2u8, - 101u8, - 56u8, - 130u8, - 161u8, - 224u8, - 233u8, - 255u8, - 124u8, - 70u8, - 122u8, - 8u8, - 49u8, - 103u8, - 178u8, - 68u8, - 47u8, - 214u8, - 166u8, - 217u8, - 116u8, - 178u8, - 50u8, - 212u8, - 164u8, - 98u8, - 226u8, + 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, + 130u8, 161u8, 224u8, 233u8, 255u8, 124u8, 70u8, + 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, 214u8, + 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, + 98u8, 226u8, ], ) } @@ -5246,38 +3824,11 @@ pub mod api { "transfer", types::Transfer { dest, value }, [ - 78u8, - 137u8, - 180u8, - 250u8, - 225u8, - 152u8, - 150u8, - 139u8, - 30u8, - 4u8, - 57u8, - 241u8, - 135u8, - 108u8, - 67u8, - 239u8, - 65u8, - 13u8, - 10u8, - 205u8, - 125u8, - 208u8, - 237u8, - 60u8, - 18u8, - 13u8, - 232u8, - 47u8, - 47u8, - 151u8, - 79u8, - 23u8, + 78u8, 137u8, 180u8, 250u8, 225u8, 152u8, 150u8, + 139u8, 30u8, 4u8, 57u8, 241u8, 135u8, 108u8, 67u8, + 239u8, 65u8, 13u8, 10u8, 205u8, 125u8, 208u8, + 237u8, 60u8, 18u8, 13u8, 232u8, 47u8, 47u8, 151u8, + 79u8, 23u8, ], ) } @@ -5291,56 +3842,27 @@ pub mod api { ::core::primitive::u32, >, new_free: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Balances", "force_set_balance", - types::ForceSetBalance { - who, - new_free, - }, + types::ForceSetBalance { who, new_free }, [ - 171u8, - 138u8, - 53u8, - 85u8, - 202u8, - 35u8, - 151u8, - 115u8, - 143u8, - 67u8, - 81u8, - 25u8, - 250u8, - 108u8, - 179u8, - 46u8, - 194u8, - 23u8, - 169u8, - 223u8, - 6u8, - 179u8, - 240u8, - 4u8, - 26u8, - 9u8, - 229u8, - 29u8, - 248u8, - 6u8, - 23u8, - 232u8, + 171u8, 138u8, 53u8, 85u8, 202u8, 35u8, 151u8, + 115u8, 143u8, 67u8, 81u8, 25u8, 250u8, 108u8, + 179u8, 46u8, 194u8, 23u8, 169u8, 223u8, 6u8, 179u8, + 240u8, 4u8, 26u8, 9u8, 229u8, 29u8, 248u8, 6u8, + 23u8, 232u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; @@ -5352,7 +3874,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5374,7 +3896,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5397,7 +3919,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5420,7 +3942,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5442,7 +3964,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5464,7 +3986,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5486,7 +4008,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5511,7 +4033,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5533,7 +4055,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5555,7 +4077,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5577,7 +4099,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5599,7 +4121,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5621,7 +4143,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5643,7 +4165,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5665,7 +4187,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5687,7 +4209,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5709,7 +4231,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5730,7 +4252,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5752,7 +4274,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5774,7 +4296,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5796,7 +4318,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -5830,38 +4352,11 @@ pub mod api { "TotalIssuance", vec![], [ - 116u8, - 70u8, - 119u8, - 194u8, - 69u8, - 37u8, - 116u8, - 206u8, - 171u8, - 70u8, - 171u8, - 210u8, - 226u8, - 111u8, - 184u8, - 204u8, - 206u8, - 11u8, - 68u8, - 72u8, - 255u8, - 19u8, - 194u8, - 11u8, - 27u8, - 194u8, - 81u8, - 204u8, - 59u8, - 224u8, - 202u8, - 185u8, + 116u8, 70u8, 119u8, 194u8, 69u8, 37u8, 116u8, + 206u8, 171u8, 70u8, 171u8, 210u8, 226u8, 111u8, + 184u8, 204u8, 206u8, 11u8, 68u8, 72u8, 255u8, 19u8, + 194u8, 11u8, 27u8, 194u8, 81u8, 204u8, 59u8, 224u8, + 202u8, 185u8, ], ) } @@ -5880,37 +4375,10 @@ pub mod api { "InactiveIssuance", vec![], [ - 212u8, - 185u8, - 19u8, - 50u8, - 250u8, - 72u8, - 173u8, - 50u8, - 4u8, - 104u8, - 161u8, - 249u8, - 77u8, - 247u8, - 204u8, - 248u8, - 11u8, - 18u8, - 57u8, - 4u8, - 82u8, - 110u8, - 30u8, - 216u8, - 16u8, - 37u8, - 87u8, - 67u8, - 189u8, - 235u8, - 214u8, + 212u8, 185u8, 19u8, 50u8, 250u8, 72u8, 173u8, 50u8, + 4u8, 104u8, 161u8, 249u8, 77u8, 247u8, 204u8, + 248u8, 11u8, 18u8, 57u8, 4u8, 82u8, 110u8, 30u8, + 216u8, 16u8, 37u8, 87u8, 67u8, 189u8, 235u8, 214u8, 155u8, ], ) @@ -6034,38 +4502,11 @@ pub mod api { "Account", Vec::new(), [ - 47u8, - 253u8, - 83u8, - 165u8, - 18u8, - 176u8, - 62u8, - 239u8, - 78u8, - 85u8, - 231u8, - 235u8, - 157u8, - 145u8, - 251u8, - 35u8, - 225u8, - 171u8, - 82u8, - 167u8, - 68u8, - 206u8, - 28u8, - 169u8, - 8u8, - 93u8, - 169u8, - 101u8, - 180u8, - 206u8, - 231u8, - 143u8, + 47u8, 253u8, 83u8, 165u8, 18u8, 176u8, 62u8, 239u8, + 78u8, 85u8, 231u8, 235u8, 157u8, 145u8, 251u8, + 35u8, 225u8, 171u8, 82u8, 167u8, 68u8, 206u8, 28u8, + 169u8, 8u8, 93u8, 169u8, 101u8, 180u8, 206u8, + 231u8, 143u8, ], ) } @@ -6084,7 +4525,7 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Balances", "Locks", @@ -6142,44 +4583,17 @@ pub mod api { (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Balances", "Locks", Vec::new(), [ - 44u8, - 44u8, - 48u8, - 20u8, - 121u8, - 168u8, - 200u8, - 87u8, - 205u8, - 172u8, - 111u8, - 208u8, - 62u8, - 243u8, - 225u8, - 223u8, - 181u8, - 36u8, - 197u8, - 9u8, - 52u8, - 182u8, - 113u8, - 55u8, - 126u8, - 164u8, - 82u8, - 209u8, - 151u8, - 126u8, - 186u8, - 85u8, + 44u8, 44u8, 48u8, 20u8, 121u8, 168u8, 200u8, 87u8, + 205u8, 172u8, 111u8, 208u8, 62u8, 243u8, 225u8, + 223u8, 181u8, 36u8, 197u8, 9u8, 52u8, 182u8, 113u8, + 55u8, 126u8, 164u8, 82u8, 209u8, 151u8, 126u8, + 186u8, 85u8, ], ) } @@ -6262,38 +4676,11 @@ pub mod api { "Reserves", Vec::new(), [ - 192u8, - 99u8, - 91u8, - 129u8, - 195u8, - 73u8, - 153u8, - 126u8, - 82u8, - 52u8, - 56u8, - 85u8, - 105u8, - 178u8, - 113u8, - 101u8, - 229u8, - 37u8, - 242u8, - 174u8, - 166u8, - 244u8, - 68u8, - 173u8, - 14u8, - 225u8, - 172u8, - 70u8, - 181u8, - 211u8, - 165u8, - 134u8, + 192u8, 99u8, 91u8, 129u8, 195u8, 73u8, 153u8, + 126u8, 82u8, 52u8, 56u8, 85u8, 105u8, 178u8, 113u8, + 101u8, 229u8, 37u8, 242u8, 174u8, 166u8, 244u8, + 68u8, 173u8, 14u8, 225u8, 172u8, 70u8, 181u8, + 211u8, 165u8, 134u8, ], ) } @@ -6376,38 +4763,11 @@ pub mod api { "Holds", Vec::new(), [ - 53u8, - 126u8, - 215u8, - 237u8, - 42u8, - 223u8, - 188u8, - 150u8, - 230u8, - 107u8, - 95u8, - 24u8, - 26u8, - 235u8, - 158u8, - 149u8, - 193u8, - 191u8, - 10u8, - 194u8, - 231u8, - 59u8, - 35u8, - 167u8, - 186u8, - 89u8, - 43u8, - 126u8, - 215u8, - 117u8, - 1u8, - 202u8, + 53u8, 126u8, 215u8, 237u8, 42u8, 223u8, 188u8, + 150u8, 230u8, 107u8, 95u8, 24u8, 26u8, 235u8, + 158u8, 149u8, 193u8, 191u8, 10u8, 194u8, 231u8, + 59u8, 35u8, 167u8, 186u8, 89u8, 43u8, 126u8, 215u8, + 117u8, 1u8, 202u8, ], ) } @@ -6490,38 +4850,11 @@ pub mod api { "Freezes", Vec::new(), [ - 69u8, - 49u8, - 165u8, - 76u8, - 135u8, - 142u8, - 179u8, - 118u8, - 50u8, - 109u8, - 53u8, - 112u8, - 110u8, - 94u8, - 30u8, - 93u8, - 173u8, - 38u8, - 27u8, - 142u8, - 19u8, - 5u8, - 163u8, - 4u8, - 68u8, - 218u8, - 179u8, - 224u8, - 118u8, - 218u8, - 115u8, - 64u8, + 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, + 118u8, 50u8, 109u8, 53u8, 112u8, 110u8, 94u8, 30u8, + 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, 163u8, + 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, + 115u8, 64u8, ], ) } @@ -6541,43 +4874,17 @@ pub mod api { /// Bottom line: Do yourself a favour and make it at least one! pub fn existential_deposit( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Balances", "ExistentialDeposit", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -6585,42 +4892,16 @@ pub mod api { /// Not strictly enforced, but used for weight estimation. pub fn max_locks( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Balances", "MaxLocks", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -6628,42 +4909,16 @@ pub mod api { /// The maximum number of named reserves that can exist on an account. pub fn max_reserves( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Balances", "MaxReserves", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -6671,42 +4926,16 @@ pub mod api { /// The maximum number of holds that can exist on an account at any time. pub fn max_holds( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Balances", "MaxHolds", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -6714,42 +4943,16 @@ pub mod api { /// The maximum number of individual freeze locks that can exist on an account at any time. pub fn max_freezes( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Balances", "MaxFreezes", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -6761,10 +4964,11 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ - pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ + pub type Event = + runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -6775,7 +4979,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -6810,38 +5014,11 @@ pub mod api { "NextFeeMultiplier", vec![], [ - 247u8, - 39u8, - 81u8, - 170u8, - 225u8, - 226u8, - 82u8, - 147u8, - 34u8, - 113u8, - 147u8, - 213u8, - 59u8, - 80u8, - 139u8, - 35u8, - 36u8, - 196u8, - 152u8, - 19u8, - 9u8, - 159u8, - 176u8, - 79u8, - 249u8, - 201u8, - 170u8, - 1u8, - 129u8, - 79u8, - 146u8, - 197u8, + 247u8, 39u8, 81u8, 170u8, 225u8, 226u8, 82u8, + 147u8, 34u8, 113u8, 147u8, 213u8, 59u8, 80u8, + 139u8, 35u8, 36u8, 196u8, 152u8, 19u8, 9u8, 159u8, + 176u8, 79u8, 249u8, 201u8, 170u8, 1u8, 129u8, 79u8, + 146u8, 197u8, ], ) } @@ -6859,38 +5036,11 @@ pub mod api { "StorageVersion", vec![], [ - 105u8, - 243u8, - 158u8, - 241u8, - 159u8, - 231u8, - 253u8, - 6u8, - 4u8, - 32u8, - 85u8, - 178u8, - 126u8, - 31u8, - 203u8, - 134u8, - 154u8, - 38u8, - 122u8, - 155u8, - 150u8, - 251u8, - 174u8, - 15u8, - 74u8, - 134u8, - 216u8, - 244u8, - 168u8, - 175u8, - 158u8, - 144u8, + 105u8, 243u8, 158u8, 241u8, 159u8, 231u8, 253u8, + 6u8, 4u8, 32u8, 85u8, 178u8, 126u8, 31u8, 203u8, + 134u8, 154u8, 38u8, 122u8, 155u8, 150u8, 251u8, + 174u8, 15u8, 74u8, 134u8, 216u8, 244u8, 168u8, + 175u8, 158u8, 144u8, ], ) } @@ -6923,43 +5073,17 @@ pub mod api { /// transactions. pub fn operational_fee_multiplier( &self, - ) -> ::subxt::constants::Address<::core::primitive::u8> { + ) -> ::subxt::constants::Address<::core::primitive::u8> + { ::subxt::constants::Address::new_static( "TransactionPayment", "OperationalFeeMultiplier", [ - 141u8, - 130u8, - 11u8, - 35u8, - 226u8, - 114u8, - 92u8, - 179u8, - 168u8, - 110u8, - 28u8, - 91u8, - 221u8, - 64u8, - 4u8, - 148u8, - 201u8, - 193u8, - 185u8, - 66u8, - 226u8, - 114u8, - 97u8, - 79u8, - 62u8, - 212u8, - 202u8, - 114u8, - 237u8, - 228u8, - 183u8, - 165u8, + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, + 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, + 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, + 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, + 228u8, 183u8, 165u8, ], ) } @@ -6988,38 +5112,11 @@ pub mod api { "Author", vec![], [ - 247u8, - 192u8, - 118u8, - 227u8, - 47u8, - 20u8, - 203u8, - 199u8, - 216u8, - 87u8, - 220u8, - 50u8, - 166u8, - 61u8, - 168u8, - 213u8, - 253u8, - 62u8, - 202u8, - 199u8, - 61u8, - 192u8, - 237u8, - 53u8, - 22u8, - 148u8, - 164u8, - 245u8, - 99u8, - 24u8, - 146u8, - 18u8, + 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, + 199u8, 216u8, 87u8, 220u8, 50u8, 166u8, 61u8, + 168u8, 213u8, 253u8, 62u8, 202u8, 199u8, 61u8, + 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, + 99u8, 24u8, 146u8, 18u8, ], ) } @@ -7044,43 +5141,16 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "Aura", "Authorities", vec![], [ - 232u8, - 129u8, - 167u8, - 104u8, - 47u8, - 188u8, - 238u8, - 164u8, - 6u8, - 29u8, - 129u8, - 45u8, - 64u8, - 182u8, - 194u8, - 47u8, - 0u8, - 73u8, - 63u8, - 102u8, - 204u8, - 94u8, - 111u8, - 96u8, - 137u8, - 7u8, - 141u8, - 110u8, - 180u8, - 80u8, - 228u8, + 232u8, 129u8, 167u8, 104u8, 47u8, 188u8, 238u8, + 164u8, 6u8, 29u8, 129u8, 45u8, 64u8, 182u8, 194u8, + 47u8, 0u8, 73u8, 63u8, 102u8, 204u8, 94u8, 111u8, + 96u8, 137u8, 7u8, 141u8, 110u8, 180u8, 80u8, 228u8, 16u8, ], ) @@ -7102,38 +5172,11 @@ pub mod api { "CurrentSlot", vec![], [ - 112u8, - 199u8, - 115u8, - 248u8, - 217u8, - 242u8, - 45u8, - 231u8, - 178u8, - 53u8, - 236u8, - 167u8, - 219u8, - 238u8, - 81u8, - 243u8, - 39u8, - 140u8, - 68u8, - 19u8, - 201u8, - 169u8, - 211u8, - 133u8, - 135u8, - 213u8, - 150u8, - 105u8, - 60u8, - 252u8, - 43u8, - 57u8, + 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, + 231u8, 178u8, 53u8, 236u8, 167u8, 219u8, 238u8, + 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, 201u8, 169u8, + 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, + 252u8, 43u8, 57u8, ], ) } @@ -7144,9 +5187,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_grandpa::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_grandpa::pallet::Call; @@ -7164,11 +5207,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -7190,11 +5237,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -7216,11 +5267,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct NoteStalled { pub delay: ::core::primitive::u32, pub best_finalized_block_number: ::core::primitive::u32, @@ -7243,7 +5298,8 @@ pub mod api { ::core::primitive::u32, >, key_owner_proof: runtime_types::sp_core::Void, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Grandpa", "report_equivocation", @@ -7254,37 +5310,10 @@ pub mod api { key_owner_proof, }, [ - 73u8, - 240u8, - 131u8, - 56u8, - 54u8, - 150u8, - 13u8, - 201u8, - 230u8, - 52u8, - 71u8, - 43u8, - 28u8, - 181u8, - 156u8, - 145u8, - 127u8, - 42u8, - 13u8, - 57u8, - 54u8, - 163u8, - 117u8, - 191u8, - 174u8, - 64u8, - 229u8, - 156u8, - 28u8, - 181u8, - 230u8, + 73u8, 240u8, 131u8, 56u8, 54u8, 150u8, 13u8, 201u8, + 230u8, 52u8, 71u8, 43u8, 28u8, 181u8, 156u8, 145u8, + 127u8, 42u8, 13u8, 57u8, 54u8, 163u8, 117u8, 191u8, + 174u8, 64u8, 229u8, 156u8, 28u8, 181u8, 230u8, 42u8, ], ) @@ -7305,7 +5334,8 @@ pub mod api { ::core::primitive::u32, >, key_owner_proof: runtime_types::sp_core::Void, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Grandpa", "report_equivocation_unsigned", @@ -7316,38 +5346,11 @@ pub mod api { key_owner_proof, }, [ - 164u8, - 101u8, - 158u8, - 143u8, - 211u8, - 35u8, - 126u8, - 243u8, - 179u8, - 133u8, - 231u8, - 44u8, - 17u8, - 234u8, - 224u8, - 191u8, - 242u8, - 206u8, - 8u8, - 205u8, - 191u8, - 103u8, - 140u8, - 184u8, - 236u8, - 195u8, - 162u8, - 148u8, - 246u8, - 147u8, - 87u8, - 247u8, + 164u8, 101u8, 158u8, 143u8, 211u8, 35u8, 126u8, + 243u8, 179u8, 133u8, 231u8, 44u8, 17u8, 234u8, + 224u8, 191u8, 242u8, 206u8, 8u8, 205u8, 191u8, + 103u8, 140u8, 184u8, 236u8, 195u8, 162u8, 148u8, + 246u8, 147u8, 87u8, 247u8, ], ) } @@ -7376,47 +5379,20 @@ pub mod api { best_finalized_block_number, }, [ - 232u8, - 162u8, - 42u8, - 199u8, - 101u8, - 116u8, - 38u8, - 27u8, - 147u8, - 15u8, - 224u8, - 76u8, - 229u8, - 244u8, - 13u8, - 49u8, - 218u8, - 232u8, - 253u8, - 37u8, - 7u8, - 222u8, - 97u8, - 158u8, - 201u8, - 199u8, - 169u8, - 218u8, - 201u8, - 136u8, - 192u8, - 128u8, + 232u8, 162u8, 42u8, 199u8, 101u8, 116u8, 38u8, + 27u8, 147u8, 15u8, 224u8, 76u8, 229u8, 244u8, 13u8, + 49u8, 218u8, 232u8, 253u8, 37u8, 7u8, 222u8, 97u8, + 158u8, 201u8, 199u8, 169u8, 218u8, 201u8, 136u8, + 192u8, 128u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_grandpa::pallet::Event; pub mod events { use super::runtime_types; @@ -7428,19 +5404,17 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///New authority set has been applied. pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec< - ( - runtime_types::sp_consensus_grandpa::app::Public, - ::core::primitive::u64, - ), - >, + pub authority_set: ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>, } impl ::subxt::events::StaticEvent for NewAuthorities { const PALLET: &'static str = "Grandpa"; @@ -7454,7 +5428,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -7473,7 +5447,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -7494,7 +5468,9 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, + runtime_types::pallet_grandpa::StoredState< + ::core::primitive::u32, + >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -7504,37 +5480,10 @@ pub mod api { "State", vec![], [ - 254u8, - 81u8, - 54u8, - 203u8, - 26u8, - 74u8, - 162u8, - 215u8, - 165u8, - 247u8, - 143u8, - 139u8, - 242u8, - 164u8, - 67u8, - 27u8, - 97u8, - 172u8, - 66u8, - 98u8, - 28u8, - 151u8, - 32u8, - 38u8, - 209u8, - 82u8, - 41u8, - 209u8, - 72u8, - 3u8, - 167u8, + 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, + 165u8, 247u8, 143u8, 139u8, 242u8, 164u8, 67u8, + 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, 151u8, 32u8, + 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, ], ) @@ -7556,38 +5505,11 @@ pub mod api { "PendingChange", vec![], [ - 207u8, - 134u8, - 15u8, - 77u8, - 9u8, - 253u8, - 20u8, - 132u8, - 226u8, - 115u8, - 150u8, - 184u8, - 18u8, - 15u8, - 143u8, - 172u8, - 71u8, - 114u8, - 221u8, - 162u8, - 174u8, - 205u8, - 46u8, - 144u8, - 70u8, - 116u8, - 18u8, - 105u8, - 250u8, - 44u8, - 75u8, - 27u8, + 207u8, 134u8, 15u8, 77u8, 9u8, 253u8, 20u8, 132u8, + 226u8, 115u8, 150u8, 184u8, 18u8, 15u8, 143u8, + 172u8, 71u8, 114u8, 221u8, 162u8, 174u8, 205u8, + 46u8, 144u8, 70u8, 116u8, 18u8, 105u8, 250u8, 44u8, + 75u8, 27u8, ], ) } @@ -7606,38 +5528,10 @@ pub mod api { "NextForced", vec![], [ - 3u8, - 231u8, - 56u8, - 18u8, - 87u8, - 112u8, - 227u8, - 126u8, - 180u8, - 131u8, - 255u8, - 141u8, - 82u8, - 34u8, - 61u8, - 47u8, - 234u8, - 37u8, - 95u8, - 62u8, - 33u8, - 235u8, - 231u8, - 122u8, - 125u8, - 8u8, - 223u8, - 95u8, - 255u8, - 204u8, - 40u8, - 97u8, + 3u8, 231u8, 56u8, 18u8, 87u8, 112u8, 227u8, 126u8, + 180u8, 131u8, 255u8, 141u8, 82u8, 34u8, 61u8, 47u8, + 234u8, 37u8, 95u8, 62u8, 33u8, 235u8, 231u8, 122u8, + 125u8, 8u8, 223u8, 95u8, 255u8, 204u8, 40u8, 97u8, ], ) } @@ -7656,38 +5550,11 @@ pub mod api { "Stalled", vec![], [ - 146u8, - 18u8, - 59u8, - 59u8, - 21u8, - 246u8, - 5u8, - 167u8, - 221u8, - 8u8, - 230u8, - 74u8, - 81u8, - 217u8, - 67u8, - 158u8, - 136u8, - 36u8, - 23u8, - 106u8, - 136u8, - 89u8, - 110u8, - 217u8, - 31u8, - 138u8, - 107u8, - 251u8, - 164u8, - 10u8, - 119u8, - 18u8, + 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, + 221u8, 8u8, 230u8, 74u8, 81u8, 217u8, 67u8, 158u8, + 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, 110u8, + 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, + 119u8, 18u8, ], ) } @@ -7707,38 +5574,11 @@ pub mod api { "CurrentSetId", vec![], [ - 234u8, - 215u8, - 218u8, - 42u8, - 30u8, - 76u8, - 129u8, - 40u8, - 125u8, - 137u8, - 207u8, - 47u8, - 46u8, - 213u8, - 159u8, - 50u8, - 175u8, - 81u8, - 155u8, - 123u8, - 246u8, - 175u8, - 156u8, - 68u8, - 22u8, - 113u8, - 135u8, - 137u8, - 163u8, - 18u8, - 115u8, - 73u8, + 234u8, 215u8, 218u8, 42u8, 30u8, 76u8, 129u8, 40u8, + 125u8, 137u8, 207u8, 47u8, 46u8, 213u8, 159u8, + 50u8, 175u8, 81u8, 155u8, 123u8, 246u8, 175u8, + 156u8, 68u8, 22u8, 113u8, 135u8, 137u8, 163u8, + 18u8, 115u8, 73u8, ], ) } @@ -7829,37 +5669,10 @@ pub mod api { "SetIdSession", Vec::new(), [ - 47u8, - 0u8, - 239u8, - 121u8, - 187u8, - 213u8, - 254u8, - 50u8, - 238u8, - 10u8, - 162u8, - 65u8, - 189u8, - 166u8, - 37u8, - 74u8, - 82u8, - 81u8, - 160u8, - 20u8, - 180u8, - 253u8, - 238u8, - 18u8, - 209u8, - 203u8, - 38u8, - 148u8, - 16u8, - 105u8, - 72u8, + 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, + 238u8, 10u8, 162u8, 65u8, 189u8, 166u8, 37u8, 74u8, + 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, 238u8, 18u8, + 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, ], ) @@ -7873,42 +5686,16 @@ pub mod api { /// Max Authorities in use pub fn max_authorities( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Grandpa", "MaxAuthorities", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -7921,43 +5708,17 @@ pub mod api { /// can be zero. pub fn max_set_id_session_entries( &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { + ) -> ::subxt::constants::Address<::core::primitive::u64> + { ::subxt::constants::Address::new_static( "Grandpa", "MaxSetIdSessionEntries", [ - 128u8, - 214u8, - 205u8, - 242u8, - 181u8, - 142u8, - 124u8, - 231u8, - 190u8, - 146u8, - 59u8, - 226u8, - 157u8, - 101u8, - 103u8, - 117u8, - 249u8, - 65u8, - 18u8, - 191u8, - 103u8, - 119u8, - 53u8, - 85u8, - 81u8, - 96u8, - 220u8, - 42u8, - 184u8, - 239u8, - 42u8, - 246u8, + 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, ], ) } @@ -7968,9 +5729,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_dkg_metadata::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_dkg_metadata::pallet::Call; @@ -7989,11 +5750,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetSignatureThreshold { pub new_threshold: ::core::primitive::u16, } @@ -8010,11 +5775,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetKeygenThreshold { pub new_threshold: ::core::primitive::u16, } @@ -8030,11 +5799,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitPublicKey { pub keys_and_signatures: runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, } @@ -8050,11 +5823,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitNextPublicKey { pub keys_and_signatures: runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, } @@ -8070,11 +5847,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitMisbehaviourReports { pub reports: runtime_types::dkg_runtime_primitives::AggregatedMisbehaviourReports< runtime_types::dkg_runtime_primitives::crypto::Public, @@ -8094,11 +5875,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Unjail; impl ::subxt::blocks::StaticExtrinsic for Unjail { const PALLET: &'static str = "DKG"; @@ -8112,13 +5897,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceUnjailKeygen { - pub authority: runtime_types::dkg_runtime_primitives::crypto::Public, + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, } impl ::subxt::blocks::StaticExtrinsic for ForceUnjailKeygen { const PALLET: &'static str = "DKG"; @@ -8132,13 +5922,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceUnjailSigning { - pub authority: runtime_types::dkg_runtime_primitives::crypto::Public, + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, } impl ::subxt::blocks::StaticExtrinsic for ForceUnjailSigning { const PALLET: &'static str = "DKG"; @@ -8152,11 +5947,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceChangeAuthorities; impl ::subxt::blocks::StaticExtrinsic for ForceChangeAuthorities { const PALLET: &'static str = "DKG"; @@ -8170,11 +5969,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct TriggerEmergencyKeygen; impl ::subxt::blocks::StaticExtrinsic for TriggerEmergencyKeygen { const PALLET: &'static str = "DKG"; @@ -8195,46 +5998,18 @@ pub mod api { pub fn set_signature_threshold( &self, new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "set_signature_threshold", - types::SetSignatureThreshold { - new_threshold, - }, + types::SetSignatureThreshold { new_threshold }, [ - 73u8, - 175u8, - 180u8, - 207u8, - 148u8, - 79u8, - 19u8, - 231u8, - 20u8, - 17u8, - 103u8, - 30u8, - 1u8, - 186u8, - 14u8, - 254u8, - 133u8, - 167u8, - 141u8, - 165u8, - 78u8, - 75u8, - 102u8, - 175u8, - 181u8, - 158u8, - 233u8, - 106u8, - 231u8, - 216u8, - 245u8, - 136u8, + 73u8, 175u8, 180u8, 207u8, 148u8, 79u8, 19u8, + 231u8, 20u8, 17u8, 103u8, 30u8, 1u8, 186u8, 14u8, + 254u8, 133u8, 167u8, 141u8, 165u8, 78u8, 75u8, + 102u8, 175u8, 181u8, 158u8, 233u8, 106u8, 231u8, + 216u8, 245u8, 136u8, ], ) } @@ -8250,46 +6025,18 @@ pub mod api { pub fn set_keygen_threshold( &self, new_threshold: ::core::primitive::u16, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "set_keygen_threshold", - types::SetKeygenThreshold { - new_threshold, - }, + types::SetKeygenThreshold { new_threshold }, [ - 58u8, - 48u8, - 120u8, - 42u8, - 23u8, - 175u8, - 237u8, - 180u8, - 13u8, - 15u8, - 247u8, - 204u8, - 151u8, - 176u8, - 221u8, - 50u8, - 10u8, - 126u8, - 149u8, - 223u8, - 222u8, - 210u8, - 68u8, - 29u8, - 165u8, - 205u8, - 249u8, - 254u8, - 102u8, - 77u8, - 43u8, - 178u8, + 58u8, 48u8, 120u8, 42u8, 23u8, 175u8, 237u8, 180u8, + 13u8, 15u8, 247u8, 204u8, 151u8, 176u8, 221u8, + 50u8, 10u8, 126u8, 149u8, 223u8, 222u8, 210u8, + 68u8, 29u8, 165u8, 205u8, 249u8, 254u8, 102u8, + 77u8, 43u8, 178u8, ], ) } @@ -8307,7 +6054,8 @@ pub mod api { pub fn submit_public_key( &self, keys_and_signatures: runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "submit_public_key", @@ -8315,37 +6063,10 @@ pub mod api { keys_and_signatures, }, [ - 4u8, - 0u8, - 104u8, - 200u8, - 187u8, - 148u8, - 153u8, - 55u8, - 236u8, - 234u8, - 26u8, - 82u8, - 96u8, - 87u8, - 43u8, - 171u8, - 242u8, - 129u8, - 238u8, - 32u8, - 116u8, - 141u8, - 237u8, - 42u8, - 67u8, - 34u8, - 221u8, - 7u8, - 25u8, - 154u8, - 212u8, + 4u8, 0u8, 104u8, 200u8, 187u8, 148u8, 153u8, 55u8, + 236u8, 234u8, 26u8, 82u8, 96u8, 87u8, 43u8, 171u8, + 242u8, 129u8, 238u8, 32u8, 116u8, 141u8, 237u8, + 42u8, 67u8, 34u8, 221u8, 7u8, 25u8, 154u8, 212u8, 100u8, ], ) @@ -8362,7 +6083,8 @@ pub mod api { pub fn submit_next_public_key( &self, keys_and_signatures: runtime_types::dkg_runtime_primitives::AggregatedPublicKeys, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "submit_next_public_key", @@ -8370,38 +6092,11 @@ pub mod api { keys_and_signatures, }, [ - 14u8, - 171u8, - 73u8, - 71u8, - 69u8, - 184u8, - 159u8, - 38u8, - 223u8, - 124u8, - 213u8, - 118u8, - 111u8, - 123u8, - 236u8, - 182u8, - 127u8, - 45u8, - 138u8, - 125u8, - 170u8, - 235u8, - 47u8, - 90u8, - 79u8, - 165u8, - 214u8, - 32u8, - 16u8, - 103u8, - 173u8, - 234u8, + 14u8, 171u8, 73u8, 71u8, 69u8, 184u8, 159u8, 38u8, + 223u8, 124u8, 213u8, 118u8, 111u8, 123u8, 236u8, + 182u8, 127u8, 45u8, 138u8, 125u8, 170u8, 235u8, + 47u8, 90u8, 79u8, 165u8, 214u8, 32u8, 16u8, 103u8, + 173u8, 234u8, ], ) } @@ -8430,46 +6125,18 @@ pub mod api { runtime_types::dkg_runtime_primitives::CustomU32Getter3, runtime_types::dkg_runtime_primitives::CustomU32Getter4, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "submit_misbehaviour_reports", - types::SubmitMisbehaviourReports { - reports, - }, + types::SubmitMisbehaviourReports { reports }, [ - 72u8, - 173u8, - 232u8, - 123u8, - 62u8, - 187u8, - 44u8, - 241u8, - 148u8, - 250u8, - 123u8, - 34u8, - 213u8, - 84u8, - 217u8, - 245u8, - 113u8, - 132u8, - 203u8, - 217u8, - 12u8, - 186u8, - 14u8, - 77u8, - 126u8, - 214u8, - 67u8, - 224u8, - 200u8, - 186u8, - 156u8, - 20u8, + 72u8, 173u8, 232u8, 123u8, 62u8, 187u8, 44u8, + 241u8, 148u8, 250u8, 123u8, 34u8, 213u8, 84u8, + 217u8, 245u8, 113u8, 132u8, 203u8, 217u8, 12u8, + 186u8, 14u8, 77u8, 126u8, 214u8, 67u8, 224u8, + 200u8, 186u8, 156u8, 20u8, ], ) } @@ -8487,38 +6154,11 @@ pub mod api { "unjail", types::Unjail {}, [ - 111u8, - 106u8, - 139u8, - 191u8, - 73u8, - 20u8, - 85u8, - 41u8, - 157u8, - 255u8, - 214u8, - 182u8, - 192u8, - 55u8, - 158u8, - 158u8, - 190u8, - 123u8, - 191u8, - 223u8, - 19u8, - 128u8, - 0u8, - 68u8, - 217u8, - 216u8, - 121u8, - 108u8, - 78u8, - 85u8, - 19u8, - 161u8, + 111u8, 106u8, 139u8, 191u8, 73u8, 20u8, 85u8, 41u8, + 157u8, 255u8, 214u8, 182u8, 192u8, 55u8, 158u8, + 158u8, 190u8, 123u8, 191u8, 223u8, 19u8, 128u8, + 0u8, 68u8, 217u8, 216u8, 121u8, 108u8, 78u8, 85u8, + 19u8, 161u8, ], ) } @@ -8530,45 +6170,17 @@ pub mod api { pub fn force_unjail_keygen( &self, authority: runtime_types::dkg_runtime_primitives::crypto::Public, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "force_unjail_keygen", - types::ForceUnjailKeygen { - authority, - }, + types::ForceUnjailKeygen { authority }, [ - 231u8, - 54u8, - 102u8, - 170u8, - 249u8, - 26u8, - 7u8, - 237u8, - 255u8, - 88u8, - 73u8, - 91u8, - 198u8, - 73u8, - 51u8, - 126u8, - 144u8, - 196u8, - 30u8, - 57u8, - 175u8, - 66u8, - 210u8, - 240u8, - 147u8, - 8u8, - 159u8, - 9u8, - 108u8, - 244u8, - 61u8, + 231u8, 54u8, 102u8, 170u8, 249u8, 26u8, 7u8, 237u8, + 255u8, 88u8, 73u8, 91u8, 198u8, 73u8, 51u8, 126u8, + 144u8, 196u8, 30u8, 57u8, 175u8, 66u8, 210u8, + 240u8, 147u8, 8u8, 159u8, 9u8, 108u8, 244u8, 61u8, 47u8, ], ) @@ -8582,46 +6194,18 @@ pub mod api { pub fn force_unjail_signing( &self, authority: runtime_types::dkg_runtime_primitives::crypto::Public, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "force_unjail_signing", - types::ForceUnjailSigning { - authority, - }, + types::ForceUnjailSigning { authority }, [ - 234u8, - 22u8, - 118u8, - 154u8, - 131u8, - 206u8, - 30u8, - 127u8, - 212u8, - 11u8, - 158u8, - 49u8, - 178u8, - 21u8, - 184u8, - 159u8, - 234u8, - 122u8, - 230u8, - 69u8, - 242u8, - 19u8, - 96u8, - 106u8, - 63u8, - 241u8, - 144u8, - 167u8, - 108u8, - 78u8, - 21u8, - 81u8, + 234u8, 22u8, 118u8, 154u8, 131u8, 206u8, 30u8, + 127u8, 212u8, 11u8, 158u8, 49u8, 178u8, 21u8, + 184u8, 159u8, 234u8, 122u8, 230u8, 69u8, 242u8, + 19u8, 96u8, 106u8, 63u8, 241u8, 144u8, 167u8, + 108u8, 78u8, 21u8, 81u8, ], ) } @@ -8632,44 +6216,18 @@ pub mod api { ///to execute the rotation forcefully. pub fn force_change_authorities( &self, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "force_change_authorities", types::ForceChangeAuthorities {}, [ - 115u8, - 53u8, - 99u8, - 150u8, - 158u8, - 193u8, - 233u8, - 82u8, - 3u8, - 60u8, - 18u8, - 228u8, - 204u8, - 177u8, - 92u8, - 221u8, - 208u8, - 179u8, - 64u8, - 88u8, - 254u8, - 88u8, - 127u8, - 26u8, - 218u8, - 63u8, - 153u8, - 33u8, - 38u8, - 66u8, - 56u8, - 150u8, + 115u8, 53u8, 99u8, 150u8, 158u8, 193u8, 233u8, + 82u8, 3u8, 60u8, 18u8, 228u8, 204u8, 177u8, 92u8, + 221u8, 208u8, 179u8, 64u8, 88u8, 254u8, 88u8, + 127u8, 26u8, 218u8, 63u8, 153u8, 33u8, 38u8, 66u8, + 56u8, 150u8, ], ) } @@ -8681,53 +6239,27 @@ pub mod api { ///Note that, this will clear the next public key and its signature, if any. pub fn trigger_emergency_keygen( &self, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKG", "trigger_emergency_keygen", types::TriggerEmergencyKeygen {}, [ - 36u8, - 247u8, - 184u8, - 243u8, - 173u8, - 138u8, - 232u8, - 26u8, - 194u8, - 165u8, - 100u8, - 141u8, - 54u8, - 206u8, - 181u8, - 120u8, - 245u8, - 22u8, - 247u8, - 0u8, - 232u8, - 96u8, - 97u8, - 218u8, - 150u8, - 212u8, - 123u8, - 21u8, - 238u8, - 57u8, - 147u8, - 2u8, + 36u8, 247u8, 184u8, 243u8, 173u8, 138u8, 232u8, + 26u8, 194u8, 165u8, 100u8, 141u8, 54u8, 206u8, + 181u8, 120u8, 245u8, 22u8, 247u8, 0u8, 232u8, 96u8, + 97u8, 218u8, 150u8, 212u8, 123u8, 21u8, 238u8, + 57u8, 147u8, 2u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_dkg_metadata::pallet::Event; pub mod events { use super::runtime_types; @@ -8739,7 +6271,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8760,7 +6292,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8781,7 +6313,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8807,7 +6339,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8828,7 +6360,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8854,18 +6386,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///Misbehaviour reports submitted pub struct MisbehaviourReportsSubmitted { - pub misbehaviour_type: runtime_types::dkg_runtime_primitives::MisbehaviourType, + pub misbehaviour_type: + runtime_types::dkg_runtime_primitives::MisbehaviourType, pub reporters: ::std::vec::Vec< runtime_types::dkg_runtime_primitives::crypto::Public, >, - pub offender: runtime_types::dkg_runtime_primitives::crypto::Public, + pub offender: + runtime_types::dkg_runtime_primitives::crypto::Public, } impl ::subxt::events::StaticEvent for MisbehaviourReportsSubmitted { const PALLET: &'static str = "DKG"; @@ -8879,7 +6413,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8889,7 +6423,8 @@ pub mod api { pub voters: ::std::vec::Vec< runtime_types::dkg_runtime_primitives::crypto::Public, >, - pub signatures: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub signatures: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, pub vote: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for ProposerSetVotesSubmitted { @@ -8905,7 +6440,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8927,7 +6462,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8949,7 +6484,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8971,7 +6506,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -8993,7 +6528,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -9014,7 +6549,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -9033,15 +6568,17 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///An authority has been jailed for misbehaviour pub struct AuthorityJailed { - pub misbehaviour_type: runtime_types::dkg_runtime_primitives::MisbehaviourType, - pub authority: runtime_types::dkg_runtime_primitives::crypto::Public, + pub misbehaviour_type: + runtime_types::dkg_runtime_primitives::MisbehaviourType, + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, } impl ::subxt::events::StaticEvent for AuthorityJailed { const PALLET: &'static str = "DKG"; @@ -9055,14 +6592,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///An authority has been unjailed pub struct AuthorityUnJailed { - pub authority: runtime_types::dkg_runtime_primitives::crypto::Public, + pub authority: + runtime_types::dkg_runtime_primitives::crypto::Public, } impl ::subxt::events::StaticEvent for AuthorityUnJailed { const PALLET: &'static str = "DKG"; @@ -9086,44 +6624,17 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "UsedSignatures", vec![], [ - 28u8, - 233u8, - 127u8, - 27u8, - 246u8, - 167u8, - 128u8, - 37u8, - 187u8, - 166u8, - 241u8, - 115u8, - 199u8, - 75u8, - 23u8, - 247u8, - 102u8, - 184u8, - 227u8, - 110u8, - 129u8, - 30u8, - 89u8, - 24u8, - 107u8, - 252u8, - 77u8, - 88u8, - 29u8, - 178u8, - 220u8, - 114u8, + 28u8, 233u8, 127u8, 27u8, 246u8, 167u8, 128u8, + 37u8, 187u8, 166u8, 241u8, 115u8, 199u8, 75u8, + 23u8, 247u8, 102u8, 184u8, 227u8, 110u8, 129u8, + 30u8, 89u8, 24u8, 107u8, 252u8, 77u8, 88u8, 29u8, + 178u8, 220u8, 114u8, ], ) } @@ -9142,38 +6653,11 @@ pub mod api { "RefreshNonce", vec![], [ - 52u8, - 38u8, - 189u8, - 83u8, - 196u8, - 34u8, - 12u8, - 223u8, - 171u8, - 166u8, - 38u8, - 253u8, - 199u8, - 225u8, - 74u8, - 29u8, - 159u8, - 104u8, - 104u8, - 226u8, - 138u8, - 210u8, - 123u8, - 125u8, - 3u8, - 193u8, - 158u8, - 105u8, - 212u8, - 172u8, - 201u8, - 19u8, + 52u8, 38u8, 189u8, 83u8, 196u8, 34u8, 12u8, 223u8, + 171u8, 166u8, 38u8, 253u8, 199u8, 225u8, 74u8, + 29u8, 159u8, 104u8, 104u8, 226u8, 138u8, 210u8, + 123u8, 125u8, 3u8, 193u8, 158u8, 105u8, 212u8, + 172u8, 201u8, 19u8, ], ) } @@ -9196,37 +6680,10 @@ pub mod api { "NextUnsignedAt", vec![], [ - 128u8, - 69u8, - 217u8, - 175u8, - 94u8, - 131u8, - 228u8, - 97u8, - 2u8, - 91u8, - 12u8, - 95u8, - 35u8, - 105u8, - 136u8, - 55u8, - 49u8, - 3u8, - 224u8, - 213u8, - 96u8, - 45u8, - 19u8, - 217u8, - 5u8, - 6u8, - 20u8, - 51u8, - 219u8, - 66u8, - 143u8, + 128u8, 69u8, 217u8, 175u8, 94u8, 131u8, 228u8, + 97u8, 2u8, 91u8, 12u8, 95u8, 35u8, 105u8, 136u8, + 55u8, 49u8, 3u8, 224u8, 213u8, 96u8, 45u8, 19u8, + 217u8, 5u8, 6u8, 20u8, 51u8, 219u8, 66u8, 143u8, 50u8, ], ) @@ -9246,38 +6703,11 @@ pub mod api { "RefreshInProgress", vec![], [ - 36u8, - 138u8, - 169u8, - 157u8, - 5u8, - 122u8, - 158u8, - 110u8, - 168u8, - 132u8, - 243u8, - 17u8, - 156u8, - 47u8, - 34u8, - 103u8, - 52u8, - 205u8, - 216u8, - 23u8, - 51u8, - 85u8, - 255u8, - 187u8, - 118u8, - 226u8, - 175u8, - 11u8, - 131u8, - 83u8, - 60u8, - 211u8, + 36u8, 138u8, 169u8, 157u8, 5u8, 122u8, 158u8, + 110u8, 168u8, 132u8, 243u8, 17u8, 156u8, 47u8, + 34u8, 103u8, 52u8, 205u8, 216u8, 23u8, 51u8, 85u8, + 255u8, 187u8, 118u8, 226u8, 175u8, 11u8, 131u8, + 83u8, 60u8, 211u8, ], ) } @@ -9296,38 +6726,11 @@ pub mod api { "ShouldExecuteNewKeygen", vec![], [ - 144u8, - 13u8, - 44u8, - 55u8, - 75u8, - 7u8, - 211u8, - 236u8, - 151u8, - 254u8, - 214u8, - 201u8, - 53u8, - 10u8, - 47u8, - 160u8, - 123u8, - 37u8, - 151u8, - 172u8, - 43u8, - 245u8, - 52u8, - 237u8, - 52u8, - 57u8, - 120u8, - 226u8, - 6u8, - 119u8, - 105u8, - 208u8, + 144u8, 13u8, 44u8, 55u8, 75u8, 7u8, 211u8, 236u8, + 151u8, 254u8, 214u8, 201u8, 53u8, 10u8, 47u8, + 160u8, 123u8, 37u8, 151u8, 172u8, 43u8, 245u8, + 52u8, 237u8, 52u8, 57u8, 120u8, 226u8, 6u8, 119u8, + 105u8, 208u8, ], ) } @@ -9346,38 +6749,11 @@ pub mod api { "ShouldSubmitProposerVote", vec![], [ - 214u8, - 211u8, - 161u8, - 216u8, - 62u8, - 255u8, - 251u8, - 198u8, - 111u8, - 172u8, - 229u8, - 248u8, - 145u8, - 58u8, - 20u8, - 89u8, - 69u8, - 235u8, - 68u8, - 47u8, - 168u8, - 224u8, - 61u8, - 215u8, - 121u8, - 197u8, - 94u8, - 25u8, - 93u8, - 23u8, - 124u8, - 93u8, + 214u8, 211u8, 161u8, 216u8, 62u8, 255u8, 251u8, + 198u8, 111u8, 172u8, 229u8, 248u8, 145u8, 58u8, + 20u8, 89u8, 69u8, 235u8, 68u8, 47u8, 168u8, 224u8, + 61u8, 215u8, 121u8, 197u8, 94u8, 25u8, 93u8, 23u8, + 124u8, 93u8, ], ) } @@ -9395,44 +6771,16 @@ pub mod api { ::subxt::storage::address::Yes, (), (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "NextDKGPublicKey", vec![], [ - 180u8, - 19u8, - 199u8, - 43u8, - 154u8, - 33u8, - 16u8, - 202u8, - 96u8, - 99u8, - 235u8, - 88u8, - 5u8, - 49u8, - 129u8, - 239u8, - 30u8, - 106u8, - 76u8, - 82u8, - 102u8, - 57u8, - 122u8, - 127u8, - 105u8, - 33u8, - 159u8, - 22u8, - 113u8, - 247u8, - 110u8, - 9u8, + 180u8, 19u8, 199u8, 43u8, 154u8, 33u8, 16u8, 202u8, + 96u8, 99u8, 235u8, 88u8, 5u8, 49u8, 129u8, 239u8, + 30u8, 106u8, 76u8, 82u8, 102u8, 57u8, 122u8, 127u8, + 105u8, 33u8, 159u8, 22u8, 113u8, 247u8, 110u8, 9u8, ], ) } @@ -9453,38 +6801,11 @@ pub mod api { "NextPublicKeySignature", vec![], [ - 133u8, - 74u8, - 189u8, - 29u8, - 12u8, - 54u8, - 213u8, - 12u8, - 121u8, - 135u8, - 254u8, - 174u8, - 37u8, - 3u8, - 211u8, - 252u8, - 29u8, - 210u8, - 16u8, - 131u8, - 229u8, - 255u8, - 240u8, - 213u8, - 23u8, - 142u8, - 171u8, - 59u8, - 164u8, - 16u8, - 235u8, - 7u8, + 133u8, 74u8, 189u8, 29u8, 12u8, 54u8, 213u8, 12u8, + 121u8, 135u8, 254u8, 174u8, 37u8, 3u8, 211u8, + 252u8, 29u8, 210u8, 16u8, 131u8, 229u8, 255u8, + 240u8, 213u8, 23u8, 142u8, 171u8, 59u8, 164u8, + 16u8, 235u8, 7u8, ], ) } @@ -9502,43 +6823,16 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "DKGPublicKey", vec![], [ - 88u8, - 180u8, - 20u8, - 255u8, - 87u8, - 119u8, - 82u8, - 8u8, - 90u8, - 134u8, - 188u8, - 118u8, - 118u8, - 55u8, - 41u8, - 4u8, - 227u8, - 65u8, - 41u8, - 129u8, - 20u8, - 113u8, - 123u8, - 213u8, - 128u8, - 71u8, - 78u8, - 124u8, - 115u8, - 74u8, - 81u8, + 88u8, 180u8, 20u8, 255u8, 87u8, 119u8, 82u8, 8u8, + 90u8, 134u8, 188u8, 118u8, 118u8, 55u8, 41u8, 4u8, + 227u8, 65u8, 41u8, 129u8, 20u8, 113u8, 123u8, + 213u8, 128u8, 71u8, 78u8, 124u8, 115u8, 74u8, 81u8, 85u8, ], ) @@ -9560,38 +6854,11 @@ pub mod api { "DKGPublicKeySignature", vec![], [ - 247u8, - 227u8, - 60u8, - 70u8, - 125u8, - 30u8, - 53u8, - 216u8, - 101u8, - 177u8, - 174u8, - 9u8, - 148u8, - 124u8, - 106u8, - 71u8, - 59u8, - 98u8, - 100u8, - 117u8, - 62u8, - 231u8, - 181u8, - 23u8, - 242u8, - 100u8, - 233u8, - 135u8, - 220u8, - 88u8, - 67u8, - 230u8, + 247u8, 227u8, 60u8, 70u8, 125u8, 30u8, 53u8, 216u8, + 101u8, 177u8, 174u8, 9u8, 148u8, 124u8, 106u8, + 71u8, 59u8, 98u8, 100u8, 117u8, 62u8, 231u8, 181u8, + 23u8, 242u8, 100u8, 233u8, 135u8, 220u8, 88u8, + 67u8, 230u8, ], ) } @@ -9609,44 +6876,17 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "PreviousPublicKey", vec![], [ - 194u8, - 139u8, - 212u8, - 138u8, - 198u8, - 148u8, - 5u8, - 83u8, - 168u8, - 219u8, - 206u8, - 48u8, - 97u8, - 210u8, - 189u8, - 222u8, - 246u8, - 35u8, - 164u8, - 28u8, - 240u8, - 71u8, - 42u8, - 190u8, - 96u8, - 21u8, - 115u8, - 130u8, - 15u8, - 63u8, - 154u8, - 186u8, + 194u8, 139u8, 212u8, 138u8, 198u8, 148u8, 5u8, + 83u8, 168u8, 219u8, 206u8, 48u8, 97u8, 210u8, + 189u8, 222u8, 246u8, 35u8, 164u8, 28u8, 240u8, + 71u8, 42u8, 190u8, 96u8, 21u8, 115u8, 130u8, 15u8, + 63u8, 154u8, 186u8, ], ) } @@ -9725,37 +6965,10 @@ pub mod api { "HistoricalRounds", Vec::new(), [ - 138u8, - 239u8, - 135u8, - 210u8, - 36u8, - 1u8, - 181u8, - 134u8, - 97u8, - 0u8, - 233u8, - 128u8, - 66u8, - 214u8, - 244u8, - 252u8, - 162u8, - 23u8, - 80u8, - 203u8, - 196u8, - 230u8, - 6u8, - 99u8, - 189u8, - 150u8, - 254u8, - 3u8, - 66u8, - 72u8, - 213u8, + 138u8, 239u8, 135u8, 210u8, 36u8, 1u8, 181u8, + 134u8, 97u8, 0u8, 233u8, 128u8, 66u8, 214u8, 244u8, + 252u8, 162u8, 23u8, 80u8, 203u8, 196u8, 230u8, 6u8, + 99u8, 189u8, 150u8, 254u8, 3u8, 66u8, 72u8, 213u8, 66u8, ], ) @@ -9775,38 +6988,11 @@ pub mod api { "SignatureThreshold", vec![], [ - 184u8, - 92u8, - 77u8, - 107u8, - 220u8, - 185u8, - 13u8, - 198u8, - 141u8, - 143u8, - 190u8, - 12u8, - 98u8, - 228u8, - 176u8, - 253u8, - 178u8, - 119u8, - 78u8, - 18u8, - 112u8, - 66u8, - 154u8, - 163u8, - 27u8, - 221u8, - 33u8, - 26u8, - 68u8, - 207u8, - 204u8, - 42u8, + 184u8, 92u8, 77u8, 107u8, 220u8, 185u8, 13u8, + 198u8, 141u8, 143u8, 190u8, 12u8, 98u8, 228u8, + 176u8, 253u8, 178u8, 119u8, 78u8, 18u8, 112u8, + 66u8, 154u8, 163u8, 27u8, 221u8, 33u8, 26u8, 68u8, + 207u8, 204u8, 42u8, ], ) } @@ -9825,38 +7011,11 @@ pub mod api { "KeygenThreshold", vec![], [ - 92u8, - 35u8, - 248u8, - 4u8, - 222u8, - 170u8, - 154u8, - 157u8, - 87u8, - 18u8, - 235u8, - 6u8, - 187u8, - 166u8, - 223u8, - 73u8, - 150u8, - 26u8, - 121u8, - 173u8, - 57u8, - 241u8, - 241u8, - 150u8, - 176u8, - 106u8, - 195u8, - 152u8, - 148u8, - 29u8, - 92u8, - 89u8, + 92u8, 35u8, 248u8, 4u8, 222u8, 170u8, 154u8, 157u8, + 87u8, 18u8, 235u8, 6u8, 187u8, 166u8, 223u8, 73u8, + 150u8, 26u8, 121u8, 173u8, 57u8, 241u8, 241u8, + 150u8, 176u8, 106u8, 195u8, 152u8, 148u8, 29u8, + 92u8, 89u8, ], ) } @@ -9875,38 +7034,11 @@ pub mod api { "NextSignatureThreshold", vec![], [ - 14u8, - 124u8, - 254u8, - 33u8, - 18u8, - 121u8, - 117u8, - 199u8, - 248u8, - 169u8, - 167u8, - 124u8, - 46u8, - 13u8, - 110u8, - 8u8, - 243u8, - 194u8, - 65u8, - 145u8, - 196u8, - 40u8, - 190u8, - 126u8, - 144u8, - 123u8, - 188u8, - 220u8, - 169u8, - 217u8, - 15u8, - 106u8, + 14u8, 124u8, 254u8, 33u8, 18u8, 121u8, 117u8, + 199u8, 248u8, 169u8, 167u8, 124u8, 46u8, 13u8, + 110u8, 8u8, 243u8, 194u8, 65u8, 145u8, 196u8, 40u8, + 190u8, 126u8, 144u8, 123u8, 188u8, 220u8, 169u8, + 217u8, 15u8, 106u8, ], ) } @@ -9925,38 +7057,11 @@ pub mod api { "NextKeygenThreshold", vec![], [ - 129u8, - 150u8, - 252u8, - 3u8, - 4u8, - 210u8, - 28u8, - 76u8, - 103u8, - 39u8, - 225u8, - 148u8, - 197u8, - 14u8, - 53u8, - 19u8, - 212u8, - 21u8, - 15u8, - 137u8, - 84u8, - 236u8, - 189u8, - 247u8, - 58u8, - 150u8, - 98u8, - 234u8, - 132u8, - 53u8, - 132u8, - 173u8, + 129u8, 150u8, 252u8, 3u8, 4u8, 210u8, 28u8, 76u8, + 103u8, 39u8, 225u8, 148u8, 197u8, 14u8, 53u8, 19u8, + 212u8, 21u8, 15u8, 137u8, 84u8, 236u8, 189u8, + 247u8, 58u8, 150u8, 98u8, 234u8, 132u8, 53u8, + 132u8, 173u8, ], ) } @@ -9975,38 +7080,11 @@ pub mod api { "PendingSignatureThreshold", vec![], [ - 56u8, - 126u8, - 123u8, - 150u8, - 41u8, - 230u8, - 230u8, - 223u8, - 87u8, - 76u8, - 64u8, - 237u8, - 214u8, - 185u8, - 37u8, - 21u8, - 206u8, - 49u8, - 237u8, - 131u8, - 141u8, - 210u8, - 121u8, - 38u8, - 98u8, - 49u8, - 43u8, - 124u8, - 95u8, - 116u8, - 37u8, - 190u8, + 56u8, 126u8, 123u8, 150u8, 41u8, 230u8, 230u8, + 223u8, 87u8, 76u8, 64u8, 237u8, 214u8, 185u8, 37u8, + 21u8, 206u8, 49u8, 237u8, 131u8, 141u8, 210u8, + 121u8, 38u8, 98u8, 49u8, 43u8, 124u8, 95u8, 116u8, + 37u8, 190u8, ], ) } @@ -10025,38 +7103,11 @@ pub mod api { "PendingKeygenThreshold", vec![], [ - 239u8, - 193u8, - 105u8, - 65u8, - 252u8, - 192u8, - 122u8, - 62u8, - 115u8, - 222u8, - 14u8, - 248u8, - 62u8, - 79u8, - 132u8, - 217u8, - 85u8, - 171u8, - 254u8, - 145u8, - 139u8, - 56u8, - 117u8, - 222u8, - 220u8, - 29u8, - 174u8, - 98u8, - 173u8, - 122u8, - 41u8, - 59u8, + 239u8, 193u8, 105u8, 65u8, 252u8, 192u8, 122u8, + 62u8, 115u8, 222u8, 14u8, 248u8, 62u8, 79u8, 132u8, + 217u8, 85u8, 171u8, 254u8, 145u8, 139u8, 56u8, + 117u8, 222u8, 220u8, 29u8, 174u8, 98u8, 173u8, + 122u8, 41u8, 59u8, ], ) } @@ -10077,37 +7128,10 @@ pub mod api { "Authorities", vec![], [ - 53u8, - 171u8, - 94u8, - 33u8, - 46u8, - 83u8, - 105u8, - 120u8, - 123u8, - 201u8, - 141u8, - 71u8, - 131u8, - 150u8, - 51u8, - 121u8, - 67u8, - 45u8, - 249u8, - 146u8, - 85u8, - 113u8, - 23u8, - 59u8, - 59u8, - 41u8, - 0u8, - 226u8, - 98u8, - 166u8, - 253u8, + 53u8, 171u8, 94u8, 33u8, 46u8, 83u8, 105u8, 120u8, + 123u8, 201u8, 141u8, 71u8, 131u8, 150u8, 51u8, + 121u8, 67u8, 45u8, 249u8, 146u8, 85u8, 113u8, 23u8, + 59u8, 59u8, 41u8, 0u8, 226u8, 98u8, 166u8, 253u8, 59u8, ], ) @@ -10127,38 +7151,11 @@ pub mod api { "AuthoritySetId", vec![], [ - 77u8, - 71u8, - 25u8, - 7u8, - 186u8, - 84u8, - 65u8, - 61u8, - 103u8, - 125u8, - 147u8, - 28u8, - 6u8, - 32u8, - 153u8, - 18u8, - 237u8, - 162u8, - 5u8, - 166u8, - 51u8, - 162u8, - 231u8, - 251u8, - 232u8, - 157u8, - 83u8, - 226u8, - 20u8, - 47u8, - 219u8, - 154u8, + 77u8, 71u8, 25u8, 7u8, 186u8, 84u8, 65u8, 61u8, + 103u8, 125u8, 147u8, 28u8, 6u8, 32u8, 153u8, 18u8, + 237u8, 162u8, 5u8, 166u8, 51u8, 162u8, 231u8, + 251u8, 232u8, 157u8, 83u8, 226u8, 20u8, 47u8, + 219u8, 154u8, ], ) } @@ -10177,38 +7174,11 @@ pub mod api { "NextAuthoritySetId", vec![], [ - 69u8, - 50u8, - 176u8, - 141u8, - 138u8, - 179u8, - 51u8, - 104u8, - 26u8, - 64u8, - 106u8, - 90u8, - 148u8, - 51u8, - 19u8, - 39u8, - 33u8, - 1u8, - 49u8, - 105u8, - 196u8, - 160u8, - 241u8, - 160u8, - 207u8, - 136u8, - 243u8, - 74u8, - 63u8, - 196u8, - 251u8, - 107u8, + 69u8, 50u8, 176u8, 141u8, 138u8, 179u8, 51u8, + 104u8, 26u8, 64u8, 106u8, 90u8, 148u8, 51u8, 19u8, + 39u8, 33u8, 1u8, 49u8, 105u8, 196u8, 160u8, 241u8, + 160u8, 207u8, 136u8, 243u8, 74u8, 63u8, 196u8, + 251u8, 107u8, ], ) } @@ -10229,38 +7199,10 @@ pub mod api { "NextAuthorities", vec![], [ - 87u8, - 180u8, - 0u8, - 85u8, - 209u8, - 13u8, - 131u8, - 103u8, - 8u8, - 226u8, - 42u8, - 72u8, - 38u8, - 47u8, - 190u8, - 78u8, - 62u8, - 4u8, - 161u8, - 130u8, - 87u8, - 196u8, - 13u8, - 209u8, - 205u8, - 98u8, - 104u8, - 91u8, - 3u8, - 47u8, - 82u8, - 11u8, + 87u8, 180u8, 0u8, 85u8, 209u8, 13u8, 131u8, 103u8, + 8u8, 226u8, 42u8, 72u8, 38u8, 47u8, 190u8, 78u8, + 62u8, 4u8, 161u8, 130u8, 87u8, 196u8, 13u8, 209u8, + 205u8, 98u8, 104u8, 91u8, 3u8, 47u8, 82u8, 11u8, ], ) } @@ -10281,38 +7223,11 @@ pub mod api { "CurrentAuthoritiesAccounts", vec![], [ - 156u8, - 122u8, - 60u8, - 135u8, - 155u8, - 134u8, - 214u8, - 166u8, - 58u8, - 162u8, - 239u8, - 199u8, - 111u8, - 68u8, - 166u8, - 17u8, - 251u8, - 99u8, - 113u8, - 247u8, - 32u8, - 14u8, - 245u8, - 94u8, - 214u8, - 212u8, - 187u8, - 160u8, - 177u8, - 228u8, - 17u8, - 209u8, + 156u8, 122u8, 60u8, 135u8, 155u8, 134u8, 214u8, + 166u8, 58u8, 162u8, 239u8, 199u8, 111u8, 68u8, + 166u8, 17u8, 251u8, 99u8, 113u8, 247u8, 32u8, 14u8, + 245u8, 94u8, 214u8, 212u8, 187u8, 160u8, 177u8, + 228u8, 17u8, 209u8, ], ) } @@ -10333,37 +7248,10 @@ pub mod api { "NextAuthoritiesAccounts", vec![], [ - 151u8, - 246u8, - 186u8, - 8u8, - 153u8, - 60u8, - 232u8, - 7u8, - 117u8, - 163u8, - 41u8, - 112u8, - 223u8, - 97u8, - 66u8, - 252u8, - 39u8, - 84u8, - 130u8, - 47u8, - 107u8, - 1u8, - 154u8, - 134u8, - 52u8, - 92u8, - 220u8, - 233u8, - 102u8, - 98u8, - 2u8, + 151u8, 246u8, 186u8, 8u8, 153u8, 60u8, 232u8, 7u8, + 117u8, 163u8, 41u8, 112u8, 223u8, 97u8, 66u8, + 252u8, 39u8, 84u8, 130u8, 47u8, 107u8, 1u8, 154u8, + 134u8, 52u8, 92u8, 220u8, 233u8, 102u8, 98u8, 2u8, 163u8, ], ) @@ -10437,38 +7325,11 @@ pub mod api { "AccountToAuthority", Vec::new(), [ - 225u8, - 159u8, - 34u8, - 162u8, - 115u8, - 136u8, - 176u8, - 245u8, - 209u8, - 84u8, - 20u8, - 81u8, - 170u8, - 220u8, - 67u8, - 18u8, - 217u8, - 206u8, - 120u8, - 241u8, - 11u8, - 73u8, - 193u8, - 177u8, - 16u8, - 66u8, - 188u8, - 21u8, - 67u8, - 78u8, - 250u8, - 94u8, + 225u8, 159u8, 34u8, 162u8, 115u8, 136u8, 176u8, + 245u8, 209u8, 84u8, 20u8, 81u8, 170u8, 220u8, 67u8, + 18u8, 217u8, 206u8, 120u8, 241u8, 11u8, 73u8, + 193u8, 177u8, 16u8, 66u8, 188u8, 21u8, 67u8, 78u8, + 250u8, 94u8, ], ) } @@ -10492,7 +7353,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "MisbehaviourReports", @@ -10553,44 +7414,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "MisbehaviourReports", Vec::new(), [ - 171u8, - 79u8, - 198u8, - 127u8, - 112u8, - 30u8, - 83u8, - 187u8, - 108u8, - 9u8, - 182u8, - 17u8, - 175u8, - 16u8, - 51u8, - 51u8, - 89u8, - 209u8, - 230u8, - 37u8, - 19u8, - 166u8, - 159u8, - 139u8, - 62u8, - 216u8, - 21u8, - 213u8, - 111u8, - 86u8, - 210u8, - 203u8, + 171u8, 79u8, 198u8, 127u8, 112u8, 30u8, 83u8, + 187u8, 108u8, 9u8, 182u8, 17u8, 175u8, 16u8, 51u8, + 51u8, 89u8, 209u8, 230u8, 37u8, 19u8, 166u8, 159u8, + 139u8, 62u8, 216u8, 21u8, 213u8, 111u8, 86u8, + 210u8, 203u8, ], ) } @@ -10665,38 +7499,11 @@ pub mod api { "AuthorityReputations", Vec::new(), [ - 19u8, - 245u8, - 5u8, - 216u8, - 182u8, - 106u8, - 213u8, - 138u8, - 216u8, - 24u8, - 169u8, - 16u8, - 23u8, - 88u8, - 39u8, - 25u8, - 200u8, - 84u8, - 253u8, - 232u8, - 250u8, - 147u8, - 78u8, - 211u8, - 141u8, - 37u8, - 98u8, - 121u8, - 139u8, - 48u8, - 25u8, - 101u8, + 19u8, 245u8, 5u8, 216u8, 182u8, 106u8, 213u8, + 138u8, 216u8, 24u8, 169u8, 16u8, 23u8, 88u8, 39u8, + 25u8, 200u8, 84u8, 253u8, 232u8, 250u8, 147u8, + 78u8, 211u8, 141u8, 37u8, 98u8, 121u8, 139u8, 48u8, + 25u8, 101u8, ], ) } @@ -10773,38 +7580,11 @@ pub mod api { "JailedKeygenAuthorities", Vec::new(), [ - 143u8, - 133u8, - 141u8, - 48u8, - 122u8, - 81u8, - 62u8, - 94u8, - 51u8, - 106u8, - 249u8, - 75u8, - 234u8, - 96u8, - 106u8, - 130u8, - 242u8, - 202u8, - 37u8, - 123u8, - 218u8, - 184u8, - 201u8, - 216u8, - 10u8, - 15u8, - 48u8, - 218u8, - 67u8, - 144u8, - 53u8, - 143u8, + 143u8, 133u8, 141u8, 48u8, 122u8, 81u8, 62u8, 94u8, + 51u8, 106u8, 249u8, 75u8, 234u8, 96u8, 106u8, + 130u8, 242u8, 202u8, 37u8, 123u8, 218u8, 184u8, + 201u8, 216u8, 10u8, 15u8, 48u8, 218u8, 67u8, 144u8, + 53u8, 143u8, ], ) } @@ -10881,38 +7661,11 @@ pub mod api { "JailedSigningAuthorities", Vec::new(), [ - 42u8, - 185u8, - 129u8, - 65u8, - 71u8, - 185u8, - 40u8, - 227u8, - 138u8, - 92u8, - 105u8, - 97u8, - 139u8, - 160u8, - 25u8, - 220u8, - 203u8, - 250u8, - 242u8, - 157u8, - 51u8, - 143u8, - 47u8, - 62u8, - 186u8, - 248u8, - 99u8, - 40u8, - 102u8, - 181u8, - 31u8, - 100u8, + 42u8, 185u8, 129u8, 65u8, 71u8, 185u8, 40u8, 227u8, + 138u8, 92u8, 105u8, 97u8, 139u8, 160u8, 25u8, + 220u8, 203u8, 250u8, 242u8, 157u8, 51u8, 143u8, + 47u8, 62u8, 186u8, 248u8, 99u8, 40u8, 102u8, 181u8, + 31u8, 100u8, ], ) } @@ -10930,44 +7683,17 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "BestAuthorities", vec![], [ - 69u8, - 22u8, - 131u8, - 206u8, - 244u8, - 125u8, - 196u8, - 99u8, - 38u8, - 142u8, - 26u8, - 224u8, - 8u8, - 127u8, - 78u8, - 209u8, - 215u8, - 50u8, - 34u8, - 238u8, - 80u8, - 155u8, - 242u8, - 241u8, - 1u8, - 10u8, - 71u8, - 176u8, - 65u8, - 28u8, - 244u8, - 62u8, + 69u8, 22u8, 131u8, 206u8, 244u8, 125u8, 196u8, + 99u8, 38u8, 142u8, 26u8, 224u8, 8u8, 127u8, 78u8, + 209u8, 215u8, 50u8, 34u8, 238u8, 80u8, 155u8, + 242u8, 241u8, 1u8, 10u8, 71u8, 176u8, 65u8, 28u8, + 244u8, 62u8, ], ) } @@ -10985,44 +7711,17 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "NextBestAuthorities", vec![], [ - 86u8, - 250u8, - 160u8, - 155u8, - 28u8, - 165u8, - 124u8, - 100u8, - 95u8, - 55u8, - 91u8, - 193u8, - 3u8, - 20u8, - 128u8, - 70u8, - 180u8, - 122u8, - 202u8, - 216u8, - 92u8, - 55u8, - 15u8, - 219u8, - 217u8, - 197u8, - 0u8, - 11u8, - 167u8, - 171u8, - 113u8, - 53u8, + 86u8, 250u8, 160u8, 155u8, 28u8, 165u8, 124u8, + 100u8, 95u8, 55u8, 91u8, 193u8, 3u8, 20u8, 128u8, + 70u8, 180u8, 122u8, 202u8, 216u8, 92u8, 55u8, 15u8, + 219u8, 217u8, 197u8, 0u8, 11u8, 167u8, 171u8, + 113u8, 53u8, ], ) } @@ -11041,38 +7740,11 @@ pub mod api { "LastSessionRotationBlock", vec![], [ - 154u8, - 46u8, - 45u8, - 246u8, - 74u8, - 245u8, - 35u8, - 239u8, - 188u8, - 35u8, - 171u8, - 175u8, - 172u8, - 119u8, - 248u8, - 0u8, - 208u8, - 84u8, - 154u8, - 181u8, - 125u8, - 249u8, - 198u8, - 29u8, - 197u8, - 199u8, - 189u8, - 227u8, - 215u8, - 194u8, - 107u8, - 27u8, + 154u8, 46u8, 45u8, 246u8, 74u8, 245u8, 35u8, 239u8, + 188u8, 35u8, 171u8, 175u8, 172u8, 119u8, 248u8, + 0u8, 208u8, 84u8, 154u8, 181u8, 125u8, 249u8, + 198u8, 29u8, 197u8, 199u8, 189u8, 227u8, 215u8, + 194u8, 107u8, 27u8, ], ) } @@ -11085,43 +7757,16 @@ pub mod api { ::subxt::storage::address::Yes, (), (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "PendingRefreshProposal", vec![], [ - 170u8, - 79u8, - 167u8, - 3u8, - 128u8, - 156u8, - 7u8, - 124u8, - 130u8, - 39u8, - 16u8, - 116u8, - 71u8, - 81u8, - 2u8, - 255u8, - 61u8, - 28u8, - 125u8, - 187u8, - 160u8, - 82u8, - 45u8, - 21u8, - 140u8, - 220u8, - 239u8, - 211u8, - 222u8, - 211u8, - 144u8, + 170u8, 79u8, 167u8, 3u8, 128u8, 156u8, 7u8, 124u8, + 130u8, 39u8, 16u8, 116u8, 71u8, 81u8, 2u8, 255u8, + 61u8, 28u8, 125u8, 187u8, 160u8, 82u8, 45u8, 21u8, + 140u8, 220u8, 239u8, 211u8, 222u8, 211u8, 144u8, 97u8, ], ) @@ -11135,44 +7780,16 @@ pub mod api { ::subxt::storage::address::Yes, (), (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKG", "CurrentRefreshProposal", vec![], [ - 206u8, - 78u8, - 0u8, - 48u8, - 70u8, - 78u8, - 76u8, - 195u8, - 11u8, - 77u8, - 51u8, - 9u8, - 214u8, - 172u8, - 229u8, - 25u8, - 197u8, - 10u8, - 136u8, - 5u8, - 138u8, - 38u8, - 87u8, - 11u8, - 73u8, - 34u8, - 28u8, - 32u8, - 47u8, - 45u8, - 77u8, - 147u8, + 206u8, 78u8, 0u8, 48u8, 70u8, 78u8, 76u8, 195u8, + 11u8, 77u8, 51u8, 9u8, 214u8, 172u8, 229u8, 25u8, + 197u8, 10u8, 136u8, 5u8, 138u8, 38u8, 87u8, 11u8, + 73u8, 34u8, 28u8, 32u8, 47u8, 45u8, 77u8, 147u8, ], ) } @@ -11188,42 +7805,16 @@ pub mod api { /// blocks. pub fn unsigned_interval( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "UnsignedInterval", [ - 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, + 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, ], ) @@ -11234,85 +7825,33 @@ pub mod api { /// multiple pallets send unsigned transactions. pub fn unsigned_priority( &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { + ) -> ::subxt::constants::Address<::core::primitive::u64> + { ::subxt::constants::Address::new_static( "DKG", "UnsignedPriority", [ - 128u8, - 214u8, - 205u8, - 242u8, - 181u8, - 142u8, - 124u8, - 231u8, - 190u8, - 146u8, - 59u8, - 226u8, - 157u8, - 101u8, - 103u8, - 117u8, - 249u8, - 65u8, - 18u8, - 191u8, - 103u8, - 119u8, - 53u8, - 85u8, - 81u8, - 96u8, - 220u8, - 42u8, - 184u8, - 239u8, - 42u8, - 246u8, + 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, ], ) } /// Session length helper allowing to query session length across runtime upgrades. pub fn session_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "SessionPeriod", [ - 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, + 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, ], ) @@ -11320,42 +7859,16 @@ pub mod api { /// MaxLength for keys pub fn max_key_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "MaxKeyLength", [ - 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, + 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, ], ) @@ -11363,42 +7876,16 @@ pub mod api { /// MaxLength for signature pub fn max_signature_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "MaxSignatureLength", [ - 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, + 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, ], ) @@ -11406,42 +7893,16 @@ pub mod api { /// Max authorities to store pub fn max_authorities( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "MaxAuthorities", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -11449,42 +7910,16 @@ pub mod api { /// Max reporters to store pub fn max_reporters( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "MaxReporters", [ - 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, + 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, ], ) @@ -11492,42 +7927,16 @@ pub mod api { /// Length of encoded proposer vote pub fn vote_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "VoteLength", [ - 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, + 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, ], ) @@ -11535,42 +7944,16 @@ pub mod api { /// Max length of a proposal pub fn max_proposal_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKG", "MaxProposalLength", [ - 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, + 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, ], ) @@ -11582,9 +7965,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_dkg_proposals::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_dkg_proposals::pallet::Call; @@ -11603,11 +7986,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetThreshold { pub threshold: ::core::primitive::u32, } @@ -11623,11 +8010,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetResource { pub id: runtime_types::webb_proposals::header::ResourceId, pub method: ::std::vec::Vec<::core::primitive::u8>, @@ -11644,11 +8035,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemoveResource { pub id: runtime_types::webb_proposals::header::ResourceId, } @@ -11664,13 +8059,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WhitelistChain { - pub chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, } impl ::subxt::blocks::StaticExtrinsic for WhitelistChain { const PALLET: &'static str = "DKGProposals"; @@ -11684,11 +8084,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AcknowledgeProposal { pub prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, @@ -11706,11 +8110,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RejectProposal { pub prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, @@ -11728,14 +8136,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct EvalVoteState { pub nonce: runtime_types::webb_proposals::nonce::Nonce, - pub src_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, >, @@ -11764,38 +8177,11 @@ pub mod api { "set_threshold", types::SetThreshold { threshold }, [ - 3u8, - 99u8, - 76u8, - 8u8, - 152u8, - 104u8, - 97u8, - 44u8, - 34u8, - 46u8, - 161u8, - 95u8, - 83u8, - 31u8, - 211u8, - 198u8, - 25u8, - 125u8, - 172u8, - 145u8, - 204u8, - 14u8, - 255u8, - 156u8, - 17u8, - 148u8, - 40u8, - 245u8, - 42u8, - 190u8, - 118u8, - 201u8, + 3u8, 99u8, 76u8, 8u8, 152u8, 104u8, 97u8, 44u8, + 34u8, 46u8, 161u8, 95u8, 83u8, 31u8, 211u8, 198u8, + 25u8, 125u8, 172u8, 145u8, 204u8, 14u8, 255u8, + 156u8, 17u8, 148u8, 40u8, 245u8, 42u8, 190u8, + 118u8, 201u8, ], ) } @@ -11814,37 +8200,10 @@ pub mod api { "set_resource", types::SetResource { id, method }, [ - 65u8, - 156u8, - 116u8, - 182u8, - 233u8, - 133u8, - 248u8, - 67u8, - 71u8, - 37u8, - 11u8, - 97u8, - 246u8, - 25u8, - 147u8, - 5u8, - 59u8, - 115u8, - 144u8, - 165u8, - 51u8, - 58u8, - 66u8, - 85u8, - 161u8, - 2u8, - 95u8, - 239u8, - 192u8, - 229u8, - 24u8, + 65u8, 156u8, 116u8, 182u8, 233u8, 133u8, 248u8, + 67u8, 71u8, 37u8, 11u8, 97u8, 246u8, 25u8, 147u8, + 5u8, 59u8, 115u8, 144u8, 165u8, 51u8, 58u8, 66u8, + 85u8, 161u8, 2u8, 95u8, 239u8, 192u8, 229u8, 24u8, 163u8, ], ) @@ -11860,44 +8219,18 @@ pub mod api { pub fn remove_resource( &self, id: runtime_types::webb_proposals::header::ResourceId, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKGProposals", "remove_resource", types::RemoveResource { id }, [ - 175u8, - 147u8, - 87u8, - 144u8, - 238u8, - 31u8, - 153u8, - 244u8, - 63u8, - 101u8, - 21u8, - 12u8, - 236u8, - 204u8, - 0u8, - 22u8, - 27u8, - 80u8, - 209u8, - 148u8, - 118u8, - 224u8, - 115u8, - 31u8, - 104u8, - 222u8, - 190u8, - 29u8, - 40u8, - 143u8, - 214u8, - 25u8, + 175u8, 147u8, 87u8, 144u8, 238u8, 31u8, 153u8, + 244u8, 63u8, 101u8, 21u8, 12u8, 236u8, 204u8, 0u8, + 22u8, 27u8, 80u8, 209u8, 148u8, 118u8, 224u8, + 115u8, 31u8, 104u8, 222u8, 190u8, 29u8, 40u8, + 143u8, 214u8, 25u8, ], ) } @@ -11909,44 +8242,18 @@ pub mod api { pub fn whitelist_chain( &self, chain_id: runtime_types::webb_proposals::header::TypedChainId, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKGProposals", "whitelist_chain", types::WhitelistChain { chain_id }, [ - 81u8, - 87u8, - 223u8, - 191u8, - 41u8, - 122u8, - 91u8, - 107u8, - 77u8, - 174u8, - 33u8, - 141u8, - 163u8, - 249u8, - 111u8, - 187u8, - 135u8, - 171u8, - 46u8, - 75u8, - 40u8, - 38u8, - 242u8, - 172u8, - 206u8, - 137u8, - 108u8, - 21u8, - 125u8, - 53u8, - 116u8, - 13u8, + 81u8, 87u8, 223u8, 191u8, 41u8, 122u8, 91u8, 107u8, + 77u8, 174u8, 33u8, 141u8, 163u8, 249u8, 111u8, + 187u8, 135u8, 171u8, 46u8, 75u8, 40u8, 38u8, 242u8, + 172u8, 206u8, 137u8, 108u8, 21u8, 125u8, 53u8, + 116u8, 13u8, ], ) } @@ -11964,44 +8271,18 @@ pub mod api { prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKGProposals", "acknowledge_proposal", types::AcknowledgeProposal { prop }, [ - 177u8, - 189u8, - 221u8, - 170u8, - 224u8, - 166u8, - 51u8, - 38u8, - 102u8, - 207u8, - 55u8, - 128u8, - 251u8, - 208u8, - 51u8, - 201u8, - 91u8, - 162u8, - 247u8, - 30u8, - 187u8, - 143u8, - 157u8, - 32u8, - 13u8, - 21u8, - 44u8, - 102u8, - 45u8, - 16u8, - 186u8, - 31u8, + 177u8, 189u8, 221u8, 170u8, 224u8, 166u8, 51u8, + 38u8, 102u8, 207u8, 55u8, 128u8, 251u8, 208u8, + 51u8, 201u8, 91u8, 162u8, 247u8, 30u8, 187u8, + 143u8, 157u8, 32u8, 13u8, 21u8, 44u8, 102u8, 45u8, + 16u8, 186u8, 31u8, ], ) } @@ -12015,44 +8296,18 @@ pub mod api { prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKGProposals", "reject_proposal", types::RejectProposal { prop }, [ - 70u8, - 156u8, - 249u8, - 170u8, - 69u8, - 63u8, - 60u8, - 9u8, - 72u8, - 201u8, - 154u8, - 169u8, - 97u8, - 81u8, - 9u8, - 100u8, - 115u8, - 59u8, - 236u8, - 153u8, - 50u8, - 73u8, - 150u8, - 100u8, - 234u8, - 202u8, - 148u8, - 95u8, - 8u8, - 149u8, - 177u8, - 101u8, + 70u8, 156u8, 249u8, 170u8, 69u8, 63u8, 60u8, 9u8, + 72u8, 201u8, 154u8, 169u8, 97u8, 81u8, 9u8, 100u8, + 115u8, 59u8, 236u8, 153u8, 50u8, 73u8, 150u8, + 100u8, 234u8, 202u8, 148u8, 95u8, 8u8, 149u8, + 177u8, 101u8, ], ) } @@ -12071,7 +8326,8 @@ pub mod api { prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKGProposals", "eval_vote_state", @@ -12081,47 +8337,20 @@ pub mod api { prop, }, [ - 91u8, - 62u8, - 156u8, - 111u8, - 253u8, - 57u8, - 11u8, - 146u8, - 193u8, - 220u8, - 214u8, - 215u8, - 129u8, - 246u8, - 31u8, - 14u8, - 66u8, - 85u8, - 240u8, - 225u8, - 33u8, - 238u8, - 187u8, - 182u8, - 236u8, - 171u8, - 211u8, - 68u8, - 159u8, - 139u8, - 88u8, - 253u8, + 91u8, 62u8, 156u8, 111u8, 253u8, 57u8, 11u8, 146u8, + 193u8, 220u8, 214u8, 215u8, 129u8, 246u8, 31u8, + 14u8, 66u8, 85u8, 240u8, 225u8, 33u8, 238u8, 187u8, + 182u8, 236u8, 171u8, 211u8, 68u8, 159u8, 139u8, + 88u8, 253u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_dkg_proposals::pallet::Event; pub mod events { use super::runtime_types; @@ -12134,7 +8363,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12155,14 +8384,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///Chain now available for transfers (chain_id) pub struct ChainWhitelisted { - pub chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub chain_id: + runtime_types::webb_proposals::header::TypedChainId, } impl ::subxt::events::StaticEvent for ChainWhitelisted { const PALLET: &'static str = "DKGProposals"; @@ -12176,7 +8406,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12184,7 +8414,8 @@ pub mod api { ///Vote submitted in favour of proposal pub struct VoteFor { pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub src_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, pub who: ::subxt::utils::AccountId32, } @@ -12200,7 +8431,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12208,7 +8439,8 @@ pub mod api { ///Vot submitted against proposal pub struct VoteAgainst { pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub src_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, pub who: ::subxt::utils::AccountId32, } @@ -12224,7 +8456,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12232,7 +8464,8 @@ pub mod api { ///Voting successful for a proposal pub struct ProposalApproved { pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub src_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, } impl ::subxt::events::StaticEvent for ProposalApproved { @@ -12247,7 +8480,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12255,7 +8488,8 @@ pub mod api { ///Voting rejected a proposal pub struct ProposalRejected { pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub src_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, } impl ::subxt::events::StaticEvent for ProposalRejected { @@ -12270,7 +8504,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12278,7 +8512,8 @@ pub mod api { ///Execution of call succeeded pub struct ProposalSucceeded { pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub src_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, } impl ::subxt::events::StaticEvent for ProposalSucceeded { @@ -12293,7 +8528,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12301,7 +8536,8 @@ pub mod api { ///Execution of call failed pub struct ProposalFailed { pub kind: runtime_types::webb_proposals::proposal::ProposalKind, - pub src_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub src_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub proposal_nonce: runtime_types::webb_proposals::nonce::Nonce, } impl ::subxt::events::StaticEvent for ProposalFailed { @@ -12316,7 +8552,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -12405,37 +8641,10 @@ pub mod api { "ChainNonces", Vec::new(), [ - 35u8, - 181u8, - 95u8, - 135u8, - 21u8, - 65u8, - 211u8, - 8u8, - 244u8, - 34u8, - 10u8, - 76u8, - 117u8, - 71u8, - 68u8, - 2u8, - 87u8, - 127u8, - 66u8, - 128u8, - 186u8, - 223u8, - 248u8, - 182u8, - 58u8, - 38u8, - 96u8, - 81u8, - 46u8, - 103u8, - 33u8, + 35u8, 181u8, 95u8, 135u8, 21u8, 65u8, 211u8, 8u8, + 244u8, 34u8, 10u8, 76u8, 117u8, 71u8, 68u8, 2u8, + 87u8, 127u8, 66u8, 128u8, 186u8, 223u8, 248u8, + 182u8, 58u8, 38u8, 96u8, 81u8, 46u8, 103u8, 33u8, 141u8, ], ) @@ -12455,38 +8664,11 @@ pub mod api { "ProposerThreshold", vec![], [ - 156u8, - 50u8, - 115u8, - 111u8, - 127u8, - 120u8, - 1u8, - 129u8, - 135u8, - 45u8, - 132u8, - 136u8, - 134u8, - 187u8, - 35u8, - 225u8, - 37u8, - 193u8, - 139u8, - 178u8, - 219u8, - 55u8, - 146u8, - 228u8, - 141u8, - 162u8, - 241u8, - 172u8, - 76u8, - 31u8, - 45u8, - 194u8, + 156u8, 50u8, 115u8, 111u8, 127u8, 120u8, 1u8, + 129u8, 135u8, 45u8, 132u8, 136u8, 134u8, 187u8, + 35u8, 225u8, 37u8, 193u8, 139u8, 178u8, 219u8, + 55u8, 146u8, 228u8, 141u8, 162u8, 241u8, 172u8, + 76u8, 31u8, 45u8, 194u8, ], ) } @@ -12507,38 +8689,11 @@ pub mod api { "Proposers", vec![], [ - 106u8, - 178u8, - 183u8, - 98u8, - 217u8, - 88u8, - 111u8, - 104u8, - 13u8, - 246u8, - 117u8, - 239u8, - 39u8, - 245u8, - 46u8, - 118u8, - 71u8, - 185u8, - 251u8, - 92u8, - 178u8, - 214u8, - 247u8, - 37u8, - 117u8, - 216u8, - 170u8, - 158u8, - 248u8, - 223u8, - 130u8, - 76u8, + 106u8, 178u8, 183u8, 98u8, 217u8, 88u8, 111u8, + 104u8, 13u8, 246u8, 117u8, 239u8, 39u8, 245u8, + 46u8, 118u8, 71u8, 185u8, 251u8, 92u8, 178u8, + 214u8, 247u8, 37u8, 117u8, 216u8, 170u8, 158u8, + 248u8, 223u8, 130u8, 76u8, ], ) } @@ -12557,44 +8712,17 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "DKGProposals", "VotingKeys", vec![], [ - 210u8, - 161u8, - 163u8, - 23u8, - 110u8, - 72u8, - 202u8, - 80u8, - 204u8, - 78u8, - 120u8, - 129u8, - 15u8, - 12u8, - 226u8, - 193u8, - 61u8, - 82u8, - 240u8, - 60u8, - 154u8, - 70u8, - 83u8, - 197u8, - 132u8, - 115u8, - 70u8, - 106u8, - 255u8, - 141u8, - 76u8, - 7u8, + 210u8, 161u8, 163u8, 23u8, 110u8, 72u8, 202u8, + 80u8, 204u8, 78u8, 120u8, 129u8, 15u8, 12u8, 226u8, + 193u8, 61u8, 82u8, 240u8, 60u8, 154u8, 70u8, 83u8, + 197u8, 132u8, 115u8, 70u8, 106u8, 255u8, 141u8, + 76u8, 7u8, ], ) } @@ -12613,38 +8741,11 @@ pub mod api { "ProposerCount", vec![], [ - 228u8, - 191u8, - 78u8, - 109u8, - 95u8, - 206u8, - 190u8, - 107u8, - 239u8, - 133u8, - 38u8, - 233u8, - 220u8, - 107u8, - 57u8, - 61u8, - 212u8, - 85u8, - 30u8, - 5u8, - 50u8, - 82u8, - 123u8, - 235u8, - 44u8, - 5u8, - 11u8, - 58u8, - 249u8, - 179u8, - 232u8, - 75u8, + 228u8, 191u8, 78u8, 109u8, 95u8, 206u8, 190u8, + 107u8, 239u8, 133u8, 38u8, 233u8, 220u8, 107u8, + 57u8, 61u8, 212u8, 85u8, 30u8, 5u8, 50u8, 82u8, + 123u8, 235u8, 44u8, 5u8, 11u8, 58u8, 249u8, 179u8, + 232u8, 75u8, ], ) } @@ -12741,37 +8842,10 @@ pub mod api { "Votes", Vec::new(), [ - 91u8, - 171u8, - 212u8, - 42u8, - 109u8, - 160u8, - 115u8, - 10u8, - 21u8, - 29u8, - 178u8, - 213u8, - 244u8, - 185u8, - 44u8, - 7u8, - 238u8, - 46u8, - 183u8, - 226u8, - 27u8, - 141u8, - 177u8, - 28u8, - 232u8, - 215u8, - 104u8, - 4u8, - 100u8, - 173u8, - 22u8, + 91u8, 171u8, 212u8, 42u8, 109u8, 160u8, 115u8, + 10u8, 21u8, 29u8, 178u8, 213u8, 244u8, 185u8, 44u8, + 7u8, 238u8, 46u8, 183u8, 226u8, 27u8, 141u8, 177u8, + 28u8, 232u8, 215u8, 104u8, 4u8, 100u8, 173u8, 22u8, 77u8, ], ) @@ -12851,38 +8925,11 @@ pub mod api { "Resources", Vec::new(), [ - 49u8, - 255u8, - 169u8, - 11u8, - 165u8, - 236u8, - 190u8, - 20u8, - 111u8, - 111u8, - 241u8, - 242u8, - 11u8, - 146u8, - 53u8, - 140u8, - 231u8, - 169u8, - 63u8, - 97u8, - 107u8, - 25u8, - 50u8, - 200u8, - 157u8, - 5u8, - 179u8, - 22u8, - 44u8, - 18u8, - 73u8, - 56u8, + 49u8, 255u8, 169u8, 11u8, 165u8, 236u8, 190u8, + 20u8, 111u8, 111u8, 241u8, 242u8, 11u8, 146u8, + 53u8, 140u8, 231u8, 169u8, 63u8, 97u8, 107u8, 25u8, + 50u8, 200u8, 157u8, 5u8, 179u8, 22u8, 44u8, 18u8, + 73u8, 56u8, ], ) } @@ -12904,79 +8951,26 @@ pub mod api { "DKGProposals", "ChainIdentifier", [ - 49u8, - 214u8, - 85u8, - 221u8, - 155u8, - 69u8, - 78u8, - 182u8, - 94u8, - 184u8, - 153u8, - 110u8, - 168u8, - 59u8, - 69u8, - 231u8, - 245u8, - 129u8, - 115u8, - 187u8, - 150u8, - 79u8, - 147u8, - 92u8, - 117u8, - 226u8, - 210u8, - 255u8, - 231u8, - 131u8, - 229u8, - 115u8, + 49u8, 214u8, 85u8, 221u8, 155u8, 69u8, 78u8, 182u8, + 94u8, 184u8, 153u8, 110u8, 168u8, 59u8, 69u8, + 231u8, 245u8, 129u8, 115u8, 187u8, 150u8, 79u8, + 147u8, 92u8, 117u8, 226u8, 210u8, 255u8, 231u8, + 131u8, 229u8, 115u8, ], ) } pub fn proposal_lifetime( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposals", "ProposalLifetime", [ - 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, + 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, ], ) @@ -12984,42 +8978,16 @@ pub mod api { /// The session period pub fn period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposals", "Period", [ - 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, + 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, ], ) @@ -13027,42 +8995,16 @@ pub mod api { /// The max votes to store for for and against pub fn max_votes( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposals", "MaxVotes", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -13070,42 +9012,16 @@ pub mod api { /// The max resources that can be stored in storage pub fn max_resources( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposals", "MaxResources", [ - 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, + 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, ], ) @@ -13113,42 +9029,16 @@ pub mod api { /// The max proposers that can be stored in storage pub fn max_proposers( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposals", "MaxProposers", [ - 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, + 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, ], ) @@ -13156,42 +9046,16 @@ pub mod api { /// The size of an external proposer account (i.e. 64-byte Ethereum public key) pub fn voting_key_size( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposals", "VotingKeySize", [ - 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, + 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, ], ) @@ -13199,42 +9063,16 @@ pub mod api { /// Max length of a proposal pub fn max_proposal_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposals", "MaxProposalLength", [ - 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, + 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, ], ) @@ -13246,12 +9084,14 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ - pub type Error = runtime_types::pallet_dkg_proposal_handler::pallet::Error; + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ + pub type Error = + runtime_types::pallet_dkg_proposal_handler::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. - pub type Call = runtime_types::pallet_dkg_proposal_handler::pallet::Call; + pub type Call = + runtime_types::pallet_dkg_proposal_handler::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -13266,11 +9106,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitSignedProposals { pub props: ::std::vec::Vec< runtime_types::dkg_runtime_primitives::proposal::SignedProposalBatch< @@ -13293,11 +9137,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceSubmitUnsignedProposal { pub prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, @@ -13320,46 +9168,18 @@ pub mod api { runtime_types::dkg_runtime_primitives::CustomU32Getter3, >, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKGProposalHandler", "submit_signed_proposals", - types::SubmitSignedProposals { - props, - }, + types::SubmitSignedProposals { props }, [ - 147u8, - 155u8, - 98u8, - 133u8, - 252u8, - 28u8, - 100u8, - 153u8, - 205u8, - 199u8, - 244u8, - 199u8, - 200u8, - 253u8, - 132u8, - 104u8, - 0u8, - 241u8, - 199u8, - 173u8, - 48u8, - 231u8, - 42u8, - 123u8, - 156u8, - 83u8, - 193u8, - 54u8, - 95u8, - 199u8, - 51u8, - 10u8, + 147u8, 155u8, 98u8, 133u8, 252u8, 28u8, 100u8, + 153u8, 205u8, 199u8, 244u8, 199u8, 200u8, 253u8, + 132u8, 104u8, 0u8, 241u8, 199u8, 173u8, 48u8, + 231u8, 42u8, 123u8, 156u8, 83u8, 193u8, 54u8, 95u8, + 199u8, 51u8, 10u8, ], ) } @@ -13373,56 +9193,29 @@ pub mod api { prop: runtime_types::webb_proposals::proposal::Proposal< runtime_types::dkg_runtime_primitives::CustomU32Getter, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DKGProposalHandler", "force_submit_unsigned_proposal", - types::ForceSubmitUnsignedProposal { - prop, - }, + types::ForceSubmitUnsignedProposal { prop }, [ - 1u8, - 152u8, - 199u8, - 7u8, - 172u8, - 51u8, - 230u8, - 233u8, - 2u8, - 238u8, - 215u8, - 77u8, - 170u8, - 227u8, - 230u8, - 194u8, - 143u8, - 44u8, - 105u8, - 172u8, - 94u8, - 15u8, - 207u8, - 87u8, - 10u8, - 221u8, - 254u8, - 5u8, - 126u8, - 81u8, - 110u8, - 134u8, + 1u8, 152u8, 199u8, 7u8, 172u8, 51u8, 230u8, 233u8, + 2u8, 238u8, 215u8, 77u8, 170u8, 227u8, 230u8, + 194u8, 143u8, 44u8, 105u8, 172u8, 94u8, 15u8, + 207u8, 87u8, 10u8, 221u8, 254u8, 5u8, 126u8, 81u8, + 110u8, 134u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ - pub type Event = runtime_types::pallet_dkg_proposal_handler::pallet::Event; + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ + pub type Event = + runtime_types::pallet_dkg_proposal_handler::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -13433,7 +9226,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -13467,7 +9260,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -13490,7 +9283,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -13513,7 +9306,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -13554,7 +9347,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "UnsignedProposalQueue", @@ -13614,44 +9407,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "UnsignedProposalQueue", Vec::new(), [ - 188u8, - 198u8, - 43u8, - 215u8, - 205u8, - 171u8, - 107u8, - 32u8, - 154u8, - 127u8, - 229u8, - 220u8, - 187u8, - 112u8, - 224u8, - 168u8, - 187u8, - 246u8, - 145u8, - 101u8, - 147u8, - 241u8, - 142u8, - 63u8, - 116u8, - 149u8, - 168u8, - 12u8, - 114u8, - 183u8, - 166u8, - 176u8, + 188u8, 198u8, 43u8, 215u8, 205u8, 171u8, 107u8, + 32u8, 154u8, 127u8, 229u8, 220u8, 187u8, 112u8, + 224u8, 168u8, 187u8, 246u8, 145u8, 101u8, 147u8, + 241u8, 142u8, 63u8, 116u8, 149u8, 168u8, 12u8, + 114u8, 183u8, 166u8, 176u8, ], ) } @@ -13670,37 +9436,10 @@ pub mod api { "NextBatchId", vec![], [ - 194u8, - 36u8, - 199u8, - 34u8, - 76u8, - 252u8, - 109u8, - 61u8, - 79u8, - 109u8, - 152u8, - 67u8, - 74u8, - 153u8, - 11u8, - 128u8, - 158u8, - 145u8, - 53u8, - 226u8, - 57u8, - 228u8, - 106u8, - 111u8, - 99u8, - 241u8, - 96u8, - 78u8, - 164u8, - 66u8, - 253u8, + 194u8, 36u8, 199u8, 34u8, 76u8, 252u8, 109u8, 61u8, + 79u8, 109u8, 152u8, 67u8, 74u8, 153u8, 11u8, 128u8, + 158u8, 145u8, 53u8, 226u8, 57u8, 228u8, 106u8, + 111u8, 99u8, 241u8, 96u8, 78u8, 164u8, 66u8, 253u8, 16u8, ], ) @@ -13721,7 +9460,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "UnsignedProposals", @@ -13778,44 +9517,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "UnsignedProposals", Vec::new(), [ - 227u8, - 51u8, - 214u8, - 126u8, - 13u8, - 13u8, - 237u8, - 74u8, - 157u8, - 254u8, - 156u8, - 151u8, - 146u8, - 237u8, - 173u8, - 101u8, - 95u8, - 222u8, - 154u8, - 158u8, - 217u8, - 109u8, - 183u8, - 255u8, - 56u8, - 67u8, - 84u8, - 95u8, - 109u8, - 67u8, - 61u8, - 142u8, + 227u8, 51u8, 214u8, 126u8, 13u8, 13u8, 237u8, 74u8, + 157u8, 254u8, 156u8, 151u8, 146u8, 237u8, 173u8, + 101u8, 95u8, 222u8, 154u8, 158u8, 217u8, 109u8, + 183u8, 255u8, 56u8, 67u8, 84u8, 95u8, 109u8, 67u8, + 61u8, 142u8, ], ) } @@ -13837,7 +9549,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "SignedProposals", @@ -13897,44 +9609,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "DKGProposalHandler", "SignedProposals", Vec::new(), [ - 1u8, - 250u8, - 224u8, - 184u8, - 208u8, - 2u8, - 38u8, - 243u8, - 21u8, - 33u8, - 46u8, - 14u8, - 190u8, - 205u8, - 144u8, - 41u8, - 175u8, - 253u8, - 106u8, - 165u8, - 2u8, - 161u8, - 33u8, - 208u8, - 86u8, - 64u8, - 237u8, - 220u8, - 203u8, - 83u8, - 205u8, - 98u8, + 1u8, 250u8, 224u8, 184u8, 208u8, 2u8, 38u8, 243u8, + 21u8, 33u8, 46u8, 14u8, 190u8, 205u8, 144u8, 41u8, + 175u8, 253u8, 106u8, 165u8, 2u8, 161u8, 33u8, + 208u8, 86u8, 64u8, 237u8, 220u8, 203u8, 83u8, + 205u8, 98u8, ], ) } @@ -13947,42 +9632,16 @@ pub mod api { /// Max number of signed proposal submissions per batch; pub fn max_proposals_per_batch( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposalHandler", "MaxProposalsPerBatch", [ - 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, + 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, ], ) @@ -13990,42 +9649,16 @@ pub mod api { /// Max blocks to store an unsigned proposal pub fn unsigned_proposal_expiry( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "DKGProposalHandler", "UnsignedProposalExpiry", [ - 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, + 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, ], ) @@ -14037,9 +9670,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_bridge_registry::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_bridge_registry::pallet::Call; @@ -14057,11 +9690,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetMetadata { pub bridge_index: ::core::primitive::u32, pub info: runtime_types::pallet_bridge_registry::types::BridgeInfo, @@ -14078,11 +9715,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceResetIndices { pub resource_ids: ::std::vec::Vec< runtime_types::webb_proposals::header::ResourceId, @@ -14114,42 +9755,12 @@ pub mod api { ::subxt::tx::Payload::new_static( "BridgeRegistry", "set_metadata", - types::SetMetadata { - bridge_index, - info, - }, + types::SetMetadata { bridge_index, info }, [ - 52u8, - 157u8, - 92u8, - 170u8, - 237u8, - 144u8, - 192u8, - 94u8, - 52u8, - 117u8, - 2u8, - 17u8, - 142u8, - 151u8, - 223u8, - 251u8, - 209u8, - 2u8, - 92u8, - 53u8, - 80u8, - 110u8, - 119u8, - 98u8, - 20u8, - 118u8, - 219u8, - 126u8, - 27u8, - 59u8, - 17u8, + 52u8, 157u8, 92u8, 170u8, 237u8, 144u8, 192u8, + 94u8, 52u8, 117u8, 2u8, 17u8, 142u8, 151u8, 223u8, + 251u8, 209u8, 2u8, 92u8, 53u8, 80u8, 110u8, 119u8, + 98u8, 20u8, 118u8, 219u8, 126u8, 27u8, 59u8, 17u8, 167u8, ], ) @@ -14160,7 +9771,8 @@ pub mod api { runtime_types::webb_proposals::header::ResourceId, >, bridge_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "BridgeRegistry", "force_reset_indices", @@ -14169,47 +9781,20 @@ pub mod api { bridge_index, }, [ - 108u8, - 188u8, - 179u8, - 241u8, - 6u8, - 58u8, - 104u8, - 156u8, - 227u8, - 12u8, - 44u8, - 246u8, - 191u8, - 22u8, - 185u8, - 49u8, - 173u8, - 180u8, - 213u8, - 177u8, - 21u8, - 128u8, - 44u8, - 194u8, - 72u8, - 242u8, - 102u8, - 105u8, - 41u8, - 25u8, - 160u8, - 161u8, + 108u8, 188u8, 179u8, 241u8, 6u8, 58u8, 104u8, + 156u8, 227u8, 12u8, 44u8, 246u8, 191u8, 22u8, + 185u8, 49u8, 173u8, 180u8, 213u8, 177u8, 21u8, + 128u8, 44u8, 194u8, 72u8, 242u8, 102u8, 105u8, + 41u8, 25u8, 160u8, 161u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_bridge_registry::pallet::Event; pub mod events { use super::runtime_types; @@ -14233,38 +9818,11 @@ pub mod api { "NextBridgeIndex", vec![], [ - 98u8, - 62u8, - 155u8, - 139u8, - 234u8, - 185u8, - 141u8, - 174u8, - 92u8, - 88u8, - 57u8, - 86u8, - 195u8, - 176u8, - 37u8, - 168u8, - 184u8, - 127u8, - 211u8, - 196u8, - 174u8, - 224u8, - 133u8, - 99u8, - 252u8, - 145u8, - 44u8, - 102u8, - 3u8, - 149u8, - 71u8, - 56u8, + 98u8, 62u8, 155u8, 139u8, 234u8, 185u8, 141u8, + 174u8, 92u8, 88u8, 57u8, 86u8, 195u8, 176u8, 37u8, + 168u8, 184u8, 127u8, 211u8, 196u8, 174u8, 224u8, + 133u8, 99u8, 252u8, 145u8, 44u8, 102u8, 3u8, 149u8, + 71u8, 56u8, ], ) } @@ -14278,7 +9836,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "BridgeRegistry", "Bridges", @@ -14331,44 +9889,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "BridgeRegistry", "Bridges", Vec::new(), [ - 49u8, - 116u8, - 113u8, - 163u8, - 244u8, - 101u8, - 236u8, - 196u8, - 32u8, - 69u8, - 87u8, - 227u8, - 237u8, - 165u8, - 45u8, - 197u8, - 34u8, - 166u8, - 68u8, - 172u8, - 171u8, - 49u8, - 190u8, - 229u8, - 73u8, - 114u8, - 238u8, - 183u8, - 20u8, - 106u8, - 230u8, - 8u8, + 49u8, 116u8, 113u8, 163u8, 244u8, 101u8, 236u8, + 196u8, 32u8, 69u8, 87u8, 227u8, 237u8, 165u8, 45u8, + 197u8, 34u8, 166u8, 68u8, 172u8, 171u8, 49u8, + 190u8, 229u8, 73u8, 114u8, 238u8, 183u8, 20u8, + 106u8, 230u8, 8u8, ], ) } @@ -14443,38 +9974,11 @@ pub mod api { "ResourceToBridgeIndex", Vec::new(), [ - 167u8, - 106u8, - 30u8, - 98u8, - 141u8, - 167u8, - 182u8, - 35u8, - 117u8, - 140u8, - 186u8, - 93u8, - 154u8, - 201u8, - 19u8, - 33u8, - 18u8, - 27u8, - 56u8, - 247u8, - 206u8, - 238u8, - 139u8, - 53u8, - 6u8, - 232u8, - 103u8, - 19u8, - 82u8, - 149u8, - 19u8, - 196u8, + 167u8, 106u8, 30u8, 98u8, 141u8, 167u8, 182u8, + 35u8, 117u8, 140u8, 186u8, 93u8, 154u8, 201u8, + 19u8, 33u8, 18u8, 27u8, 56u8, 247u8, 206u8, 238u8, + 139u8, 53u8, 6u8, 232u8, 103u8, 19u8, 82u8, 149u8, + 19u8, 196u8, ], ) } @@ -14488,42 +9992,16 @@ pub mod api { /// bound the I/O required to access an identity, but can be pretty high. pub fn max_additional_fields( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "BridgeRegistry", "MaxAdditionalFields", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -14533,42 +10011,16 @@ pub mod api { /// required to access a metadata object, but can be pretty high. pub fn max_resources( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "BridgeRegistry", "MaxResources", [ - 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, + 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, ], ) @@ -14576,42 +10028,16 @@ pub mod api { /// Max length of a proposal pub fn max_proposal_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "BridgeRegistry", "MaxProposalLength", [ - 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, + 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, ], ) @@ -14623,9 +10049,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_indices::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_indices::pallet::Call; @@ -14644,11 +10070,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Claim { pub index: ::core::primitive::u32, } @@ -14664,11 +10094,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Transfer { pub new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -14689,11 +10123,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Free { pub index: ::core::primitive::u32, } @@ -14709,11 +10147,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceTransfer { pub new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -14735,11 +10177,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Freeze { pub index: ::core::primitive::u32, } @@ -14771,38 +10217,11 @@ pub mod api { "claim", types::Claim { index }, [ - 146u8, - 58u8, - 246u8, - 135u8, - 59u8, - 90u8, - 3u8, - 5u8, - 140u8, - 169u8, - 232u8, - 195u8, - 11u8, - 107u8, - 36u8, - 141u8, - 118u8, - 174u8, - 160u8, - 160u8, - 19u8, - 205u8, - 177u8, - 193u8, - 18u8, - 102u8, - 115u8, - 31u8, - 72u8, - 29u8, - 91u8, - 235u8, + 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, + 140u8, 169u8, 232u8, 195u8, 11u8, 107u8, 36u8, + 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, 205u8, + 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, + 91u8, 235u8, ], ) } @@ -14831,38 +10250,11 @@ pub mod api { "transfer", types::Transfer { new, index }, [ - 139u8, - 89u8, - 163u8, - 53u8, - 141u8, - 131u8, - 135u8, - 107u8, - 0u8, - 131u8, - 53u8, - 202u8, - 117u8, - 99u8, - 239u8, - 205u8, - 101u8, - 97u8, - 251u8, - 247u8, - 116u8, - 128u8, - 220u8, - 186u8, - 151u8, - 203u8, - 82u8, - 222u8, - 199u8, - 137u8, - 41u8, - 199u8, + 139u8, 89u8, 163u8, 53u8, 141u8, 131u8, 135u8, + 107u8, 0u8, 131u8, 53u8, 202u8, 117u8, 99u8, 239u8, + 205u8, 101u8, 97u8, 251u8, 247u8, 116u8, 128u8, + 220u8, 186u8, 151u8, 203u8, 82u8, 222u8, 199u8, + 137u8, 41u8, 199u8, ], ) } @@ -14887,38 +10279,11 @@ pub mod api { "free", types::Free { index }, [ - 241u8, - 211u8, - 234u8, - 102u8, - 189u8, - 22u8, - 209u8, - 27u8, - 8u8, - 229u8, - 80u8, - 227u8, - 138u8, - 252u8, - 222u8, - 111u8, - 77u8, - 201u8, - 235u8, - 51u8, - 163u8, - 247u8, - 13u8, - 126u8, - 216u8, - 136u8, - 57u8, - 222u8, - 56u8, - 66u8, - 215u8, - 244u8, + 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, + 27u8, 8u8, 229u8, 80u8, 227u8, 138u8, 252u8, 222u8, + 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, 247u8, + 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, + 215u8, 244u8, ], ) } @@ -14943,48 +10308,18 @@ pub mod api { >, index: ::core::primitive::u32, freeze: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Indices", "force_transfer", - types::ForceTransfer { - new, - index, - freeze, - }, + types::ForceTransfer { new, index, freeze }, [ - 160u8, - 55u8, - 190u8, - 50u8, - 35u8, - 79u8, - 28u8, - 117u8, - 9u8, - 2u8, - 34u8, - 99u8, - 247u8, - 50u8, - 77u8, - 158u8, - 156u8, - 101u8, - 90u8, - 246u8, - 129u8, - 106u8, - 23u8, - 142u8, - 213u8, - 88u8, - 191u8, - 232u8, - 99u8, - 139u8, - 61u8, - 125u8, + 160u8, 55u8, 190u8, 50u8, 35u8, 79u8, 28u8, 117u8, + 9u8, 2u8, 34u8, 99u8, 247u8, 50u8, 77u8, 158u8, + 156u8, 101u8, 90u8, 246u8, 129u8, 106u8, 23u8, + 142u8, 213u8, 88u8, 191u8, 232u8, 99u8, 139u8, + 61u8, 125u8, ], ) } @@ -15009,37 +10344,10 @@ pub mod api { "freeze", types::Freeze { index }, [ - 238u8, - 215u8, - 108u8, - 156u8, - 84u8, - 240u8, - 130u8, - 229u8, - 27u8, - 132u8, - 93u8, - 78u8, - 2u8, - 251u8, - 43u8, - 203u8, - 2u8, - 142u8, - 147u8, - 48u8, - 92u8, - 101u8, - 207u8, - 24u8, - 51u8, - 16u8, - 36u8, - 229u8, - 188u8, - 129u8, - 160u8, + 238u8, 215u8, 108u8, 156u8, 84u8, 240u8, 130u8, + 229u8, 27u8, 132u8, 93u8, 78u8, 2u8, 251u8, 43u8, + 203u8, 2u8, 142u8, 147u8, 48u8, 92u8, 101u8, 207u8, + 24u8, 51u8, 16u8, 36u8, 229u8, 188u8, 129u8, 160u8, 117u8, ], ) @@ -15047,9 +10355,9 @@ pub mod api { } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; @@ -15061,7 +10369,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -15084,7 +10392,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -15105,7 +10413,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -15201,38 +10509,11 @@ pub mod api { "Accounts", Vec::new(), [ - 48u8, - 189u8, - 43u8, - 119u8, - 32u8, - 168u8, - 28u8, - 12u8, - 245u8, - 81u8, - 119u8, - 182u8, - 23u8, - 201u8, - 33u8, - 147u8, - 128u8, - 171u8, - 155u8, - 134u8, - 71u8, - 87u8, - 100u8, - 248u8, - 107u8, - 129u8, - 36u8, - 197u8, - 220u8, - 90u8, - 11u8, - 238u8, + 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, + 245u8, 81u8, 119u8, 182u8, 23u8, 201u8, 33u8, + 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, 87u8, + 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, + 90u8, 11u8, 238u8, ], ) } @@ -15245,43 +10526,17 @@ pub mod api { /// The deposit needed for reserving an index. pub fn deposit( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Indices", "Deposit", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -15292,9 +10547,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_democracy::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_democracy::pallet::Call; @@ -15312,11 +10567,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Propose { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -15336,11 +10595,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Second { #[codec(compact)] pub proposal: ::core::primitive::u32, @@ -15357,17 +10620,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Vote { #[codec(compact)] pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, + pub vote: + runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, } impl ::subxt::blocks::StaticExtrinsic for Vote { const PALLET: &'static str = "Democracy"; @@ -15382,11 +10650,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct EmergencyCancel { pub ref_index: ::core::primitive::u32, } @@ -15402,11 +10674,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ExternalPropose { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -15424,11 +10700,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ExternalProposeMajority { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -15446,11 +10726,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ExternalProposeDefault { pub proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -15468,11 +10752,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct FastTrack { pub proposal_hash: ::subxt::utils::H256, pub voting_period: ::core::primitive::u32, @@ -15490,11 +10778,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct VetoExternal { pub proposal_hash: ::subxt::utils::H256, } @@ -15510,11 +10802,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CancelReferendum { #[codec(compact)] pub ref_index: ::core::primitive::u32, @@ -15531,17 +10827,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Delegate { pub to: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub conviction: runtime_types::pallet_democracy::conviction::Conviction, + pub conviction: + runtime_types::pallet_democracy::conviction::Conviction, pub balance: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Delegate { @@ -15556,11 +10857,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Undelegate; impl ::subxt::blocks::StaticExtrinsic for Undelegate { const PALLET: &'static str = "Democracy"; @@ -15574,11 +10879,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClearPublicProposals; impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { const PALLET: &'static str = "Democracy"; @@ -15592,11 +10901,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Unlock { pub target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -15616,11 +10929,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemoveVote { pub index: ::core::primitive::u32, } @@ -15636,11 +10953,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemoveOtherVote { pub target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -15660,14 +10981,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Blacklist { pub proposal_hash: ::subxt::utils::H256, - pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + pub maybe_ref_index: + ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for Blacklist { const PALLET: &'static str = "Democracy"; @@ -15681,11 +11007,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CancelProposal { #[codec(compact)] pub prop_index: ::core::primitive::u32, @@ -15702,14 +11032,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetMetadata { - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, + pub maybe_hash: + ::core::option::Option<::subxt::utils::H256>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { const PALLET: &'static str = "Democracy"; @@ -15739,38 +11075,11 @@ pub mod api { "propose", types::Propose { proposal, value }, [ - 230u8, - 248u8, - 57u8, - 131u8, - 96u8, - 178u8, - 225u8, - 150u8, - 97u8, - 77u8, - 246u8, - 143u8, - 151u8, - 204u8, - 201u8, - 252u8, - 133u8, - 53u8, - 34u8, - 27u8, - 156u8, - 2u8, - 242u8, - 170u8, - 198u8, - 157u8, - 166u8, - 84u8, - 246u8, - 86u8, - 78u8, - 128u8, + 230u8, 248u8, 57u8, 131u8, 96u8, 178u8, 225u8, + 150u8, 97u8, 77u8, 246u8, 143u8, 151u8, 204u8, + 201u8, 252u8, 133u8, 53u8, 34u8, 27u8, 156u8, 2u8, + 242u8, 170u8, 198u8, 157u8, 166u8, 84u8, 246u8, + 86u8, 78u8, 128u8, ], ) } @@ -15789,37 +11098,10 @@ pub mod api { "second", types::Second { proposal }, [ - 195u8, - 55u8, - 178u8, - 55u8, - 129u8, - 64u8, - 10u8, - 131u8, - 217u8, - 79u8, - 1u8, - 187u8, - 73u8, - 126u8, - 191u8, - 221u8, - 110u8, - 10u8, - 13u8, - 65u8, - 190u8, - 107u8, - 21u8, - 236u8, - 175u8, - 130u8, - 227u8, - 179u8, - 173u8, - 39u8, - 32u8, + 195u8, 55u8, 178u8, 55u8, 129u8, 64u8, 10u8, 131u8, + 217u8, 79u8, 1u8, 187u8, 73u8, 126u8, 191u8, 221u8, + 110u8, 10u8, 13u8, 65u8, 190u8, 107u8, 21u8, 236u8, + 175u8, 130u8, 227u8, 179u8, 173u8, 39u8, 32u8, 147u8, ], ) @@ -15843,38 +11125,11 @@ pub mod api { "vote", types::Vote { ref_index, vote }, [ - 39u8, - 113u8, - 23u8, - 175u8, - 197u8, - 225u8, - 225u8, - 129u8, - 66u8, - 50u8, - 236u8, - 220u8, - 50u8, - 49u8, - 98u8, - 163u8, - 176u8, - 96u8, - 17u8, - 91u8, - 28u8, - 187u8, - 139u8, - 148u8, - 108u8, - 110u8, - 78u8, - 253u8, - 229u8, - 3u8, - 244u8, - 126u8, + 39u8, 113u8, 23u8, 175u8, 197u8, 225u8, 225u8, + 129u8, 66u8, 50u8, 236u8, 220u8, 50u8, 49u8, 98u8, + 163u8, 176u8, 96u8, 17u8, 91u8, 28u8, 187u8, 139u8, + 148u8, 108u8, 110u8, 78u8, 253u8, 229u8, 3u8, + 244u8, 126u8, ], ) } @@ -15889,46 +11144,17 @@ pub mod api { pub fn emergency_cancel( &self, ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "emergency_cancel", - types::EmergencyCancel { - ref_index, - }, + types::EmergencyCancel { ref_index }, [ - 82u8, - 232u8, - 19u8, - 158u8, - 88u8, - 69u8, - 96u8, - 225u8, - 106u8, - 253u8, - 6u8, - 136u8, - 87u8, - 0u8, - 68u8, - 128u8, - 122u8, - 16u8, - 107u8, - 76u8, - 209u8, - 14u8, - 230u8, - 49u8, - 228u8, - 100u8, - 187u8, - 10u8, - 76u8, - 71u8, - 197u8, - 72u8, + 82u8, 232u8, 19u8, 158u8, 88u8, 69u8, 96u8, 225u8, + 106u8, 253u8, 6u8, 136u8, 87u8, 0u8, 68u8, 128u8, + 122u8, 16u8, 107u8, 76u8, 209u8, 14u8, 230u8, 49u8, + 228u8, 100u8, 187u8, 10u8, 76u8, 71u8, 197u8, 72u8, ], ) } @@ -15943,44 +11169,18 @@ pub mod api { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_standalone_runtime::RuntimeCall, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "external_propose", types::ExternalPropose { proposal }, [ - 247u8, - 47u8, - 180u8, - 40u8, - 205u8, - 53u8, - 99u8, - 158u8, - 4u8, - 45u8, - 157u8, - 247u8, - 32u8, - 117u8, - 153u8, - 170u8, - 226u8, - 250u8, - 142u8, - 38u8, - 237u8, - 238u8, - 75u8, - 245u8, - 184u8, - 27u8, - 157u8, - 255u8, - 213u8, - 163u8, - 92u8, - 251u8, + 247u8, 47u8, 180u8, 40u8, 205u8, 53u8, 99u8, 158u8, + 4u8, 45u8, 157u8, 247u8, 32u8, 117u8, 153u8, 170u8, + 226u8, 250u8, 142u8, 38u8, 237u8, 238u8, 75u8, + 245u8, 184u8, 27u8, 157u8, 255u8, 213u8, 163u8, + 92u8, 251u8, ], ) } @@ -16000,46 +11200,18 @@ pub mod api { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_standalone_runtime::RuntimeCall, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "external_propose_majority", - types::ExternalProposeMajority { - proposal, - }, + types::ExternalProposeMajority { proposal }, [ - 107u8, - 81u8, - 160u8, - 130u8, - 242u8, - 208u8, - 22u8, - 70u8, - 237u8, - 235u8, - 236u8, - 60u8, - 206u8, - 172u8, - 251u8, - 138u8, - 168u8, - 124u8, - 136u8, - 95u8, - 3u8, - 184u8, - 12u8, - 55u8, - 125u8, - 233u8, - 20u8, - 148u8, - 36u8, - 189u8, - 16u8, - 245u8, + 107u8, 81u8, 160u8, 130u8, 242u8, 208u8, 22u8, + 70u8, 237u8, 235u8, 236u8, 60u8, 206u8, 172u8, + 251u8, 138u8, 168u8, 124u8, 136u8, 95u8, 3u8, + 184u8, 12u8, 55u8, 125u8, 233u8, 20u8, 148u8, 36u8, + 189u8, 16u8, 245u8, ], ) } @@ -16059,46 +11231,18 @@ pub mod api { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_standalone_runtime::RuntimeCall, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "external_propose_default", - types::ExternalProposeDefault { - proposal, - }, + types::ExternalProposeDefault { proposal }, [ - 238u8, - 247u8, - 252u8, - 35u8, - 78u8, - 158u8, - 221u8, - 87u8, - 252u8, - 98u8, - 67u8, - 44u8, - 200u8, - 206u8, - 28u8, - 19u8, - 204u8, - 13u8, - 253u8, - 133u8, - 229u8, - 195u8, - 166u8, - 218u8, - 114u8, - 69u8, - 23u8, - 169u8, - 67u8, - 168u8, - 46u8, - 176u8, + 238u8, 247u8, 252u8, 35u8, 78u8, 158u8, 221u8, + 87u8, 252u8, 98u8, 67u8, 44u8, 200u8, 206u8, 28u8, + 19u8, 204u8, 13u8, 253u8, 133u8, 229u8, 195u8, + 166u8, 218u8, 114u8, 69u8, 23u8, 169u8, 67u8, + 168u8, 46u8, 176u8, ], ) } @@ -16133,38 +11277,11 @@ pub mod api { delay, }, [ - 147u8, - 226u8, - 166u8, - 105u8, - 149u8, - 171u8, - 86u8, - 165u8, - 168u8, - 78u8, - 233u8, - 182u8, - 118u8, - 36u8, - 82u8, - 155u8, - 209u8, - 55u8, - 153u8, - 141u8, - 120u8, - 223u8, - 46u8, - 170u8, - 48u8, - 94u8, - 32u8, - 144u8, - 84u8, - 203u8, - 68u8, - 62u8, + 147u8, 226u8, 166u8, 105u8, 149u8, 171u8, 86u8, + 165u8, 168u8, 78u8, 233u8, 182u8, 118u8, 36u8, + 82u8, 155u8, 209u8, 55u8, 153u8, 141u8, 120u8, + 223u8, 46u8, 170u8, 48u8, 94u8, 32u8, 144u8, 84u8, + 203u8, 68u8, 62u8, ], ) } @@ -16184,42 +11301,13 @@ pub mod api { ::subxt::tx::Payload::new_static( "Democracy", "veto_external", - types::VetoExternal { - proposal_hash, - }, + types::VetoExternal { proposal_hash }, [ - 121u8, - 217u8, - 249u8, - 134u8, - 45u8, - 19u8, - 126u8, - 166u8, - 218u8, - 223u8, - 165u8, - 124u8, - 162u8, - 59u8, - 56u8, - 200u8, - 227u8, - 125u8, - 23u8, - 133u8, - 196u8, - 93u8, - 210u8, - 15u8, - 39u8, - 26u8, - 58u8, - 236u8, - 9u8, - 101u8, - 202u8, - 168u8, + 121u8, 217u8, 249u8, 134u8, 45u8, 19u8, 126u8, + 166u8, 218u8, 223u8, 165u8, 124u8, 162u8, 59u8, + 56u8, 200u8, 227u8, 125u8, 23u8, 133u8, 196u8, + 93u8, 210u8, 15u8, 39u8, 26u8, 58u8, 236u8, 9u8, + 101u8, 202u8, 168u8, ], ) } @@ -16233,46 +11321,18 @@ pub mod api { pub fn cancel_referendum( &self, ref_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "cancel_referendum", - types::CancelReferendum { - ref_index, - }, + types::CancelReferendum { ref_index }, [ - 149u8, - 120u8, - 70u8, - 20u8, - 126u8, - 21u8, - 30u8, - 33u8, - 82u8, - 124u8, - 229u8, - 179u8, - 169u8, - 243u8, - 173u8, - 146u8, - 140u8, - 22u8, - 124u8, - 154u8, - 228u8, - 117u8, - 109u8, - 88u8, - 11u8, - 100u8, - 235u8, - 243u8, - 118u8, - 99u8, - 250u8, - 140u8, + 149u8, 120u8, 70u8, 20u8, 126u8, 21u8, 30u8, 33u8, + 82u8, 124u8, 229u8, 179u8, 169u8, 243u8, 173u8, + 146u8, 140u8, 22u8, 124u8, 154u8, 228u8, 117u8, + 109u8, 88u8, 11u8, 100u8, 235u8, 243u8, 118u8, + 99u8, 250u8, 140u8, ], ) } @@ -16314,38 +11374,10 @@ pub mod api { balance, }, [ - 252u8, - 37u8, - 255u8, - 84u8, - 153u8, - 112u8, - 84u8, - 10u8, - 131u8, - 85u8, - 6u8, - 204u8, - 85u8, - 241u8, - 104u8, - 155u8, - 219u8, - 222u8, - 30u8, - 7u8, - 245u8, - 12u8, - 101u8, - 120u8, - 9u8, - 156u8, - 65u8, - 218u8, - 110u8, - 244u8, - 24u8, - 251u8, + 252u8, 37u8, 255u8, 84u8, 153u8, 112u8, 84u8, 10u8, + 131u8, 85u8, 6u8, 204u8, 85u8, 241u8, 104u8, 155u8, + 219u8, 222u8, 30u8, 7u8, 245u8, 12u8, 101u8, 120u8, + 9u8, 156u8, 65u8, 218u8, 110u8, 244u8, 24u8, 251u8, ], ) } @@ -16361,43 +11393,18 @@ pub mod api { /// ///Weight: `O(R)` where R is the number of referendums the voter delegating to has /// voted on. Weight is charged as if maximum votes. - pub fn undelegate(&self) -> ::subxt::tx::Payload { + pub fn undelegate( + &self, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", "undelegate", types::Undelegate {}, [ - 225u8, - 156u8, - 102u8, - 1u8, - 172u8, - 145u8, - 88u8, - 12u8, - 89u8, - 32u8, - 51u8, - 83u8, - 25u8, - 149u8, - 132u8, - 203u8, - 246u8, - 98u8, - 155u8, - 36u8, - 165u8, - 206u8, - 233u8, - 169u8, - 91u8, - 85u8, - 105u8, - 67u8, - 46u8, - 134u8, - 244u8, + 225u8, 156u8, 102u8, 1u8, 172u8, 145u8, 88u8, 12u8, + 89u8, 32u8, 51u8, 83u8, 25u8, 149u8, 132u8, 203u8, + 246u8, 98u8, 155u8, 36u8, 165u8, 206u8, 233u8, + 169u8, 91u8, 85u8, 105u8, 67u8, 46u8, 134u8, 244u8, 250u8, ], ) @@ -16409,44 +11416,18 @@ pub mod api { ///Weight: `O(1)`. pub fn clear_public_proposals( &self, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "clear_public_proposals", types::ClearPublicProposals {}, [ - 116u8, - 160u8, - 246u8, - 216u8, - 23u8, - 188u8, - 144u8, - 63u8, - 97u8, - 198u8, - 11u8, - 243u8, - 165u8, - 84u8, - 159u8, - 153u8, - 235u8, - 169u8, - 166u8, - 15u8, - 23u8, - 116u8, - 30u8, - 56u8, - 133u8, - 31u8, - 158u8, - 114u8, - 158u8, - 86u8, - 106u8, - 93u8, + 116u8, 160u8, 246u8, 216u8, 23u8, 188u8, 144u8, + 63u8, 97u8, 198u8, 11u8, 243u8, 165u8, 84u8, 159u8, + 153u8, 235u8, 169u8, 166u8, 15u8, 23u8, 116u8, + 30u8, 56u8, 133u8, 31u8, 158u8, 114u8, 158u8, 86u8, + 106u8, 93u8, ], ) } @@ -16469,38 +11450,11 @@ pub mod api { "unlock", types::Unlock { target }, [ - 134u8, - 220u8, - 108u8, - 243u8, - 205u8, - 162u8, - 111u8, - 77u8, - 224u8, - 62u8, - 27u8, - 214u8, - 97u8, - 83u8, - 212u8, - 96u8, - 68u8, - 123u8, - 160u8, - 70u8, - 127u8, - 255u8, - 94u8, - 57u8, - 224u8, - 165u8, - 250u8, - 65u8, - 13u8, - 122u8, - 101u8, - 56u8, + 134u8, 220u8, 108u8, 243u8, 205u8, 162u8, 111u8, + 77u8, 224u8, 62u8, 27u8, 214u8, 97u8, 83u8, 212u8, + 96u8, 68u8, 123u8, 160u8, 70u8, 127u8, 255u8, 94u8, + 57u8, 224u8, 165u8, 250u8, 65u8, 13u8, 122u8, + 101u8, 56u8, ], ) } @@ -16540,38 +11494,11 @@ pub mod api { "remove_vote", types::RemoveVote { index }, [ - 98u8, - 146u8, - 215u8, - 63u8, - 222u8, - 70u8, - 61u8, - 186u8, - 90u8, - 34u8, - 63u8, - 25u8, - 195u8, - 119u8, - 228u8, - 189u8, - 38u8, - 163u8, - 58u8, - 210u8, - 216u8, - 156u8, - 20u8, - 204u8, - 136u8, - 192u8, - 33u8, - 210u8, - 124u8, - 65u8, - 153u8, - 105u8, + 98u8, 146u8, 215u8, 63u8, 222u8, 70u8, 61u8, 186u8, + 90u8, 34u8, 63u8, 25u8, 195u8, 119u8, 228u8, 189u8, + 38u8, 163u8, 58u8, 210u8, 216u8, 156u8, 20u8, + 204u8, 136u8, 192u8, 33u8, 210u8, 124u8, 65u8, + 153u8, 105u8, ], ) } @@ -16597,47 +11524,18 @@ pub mod api { ::core::primitive::u32, >, index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "remove_other_vote", - types::RemoveOtherVote { - target, - index, - }, + types::RemoveOtherVote { target, index }, [ - 92u8, - 152u8, - 49u8, - 134u8, - 235u8, - 186u8, - 109u8, - 234u8, - 16u8, - 129u8, - 255u8, - 88u8, - 231u8, - 177u8, - 197u8, - 125u8, - 105u8, - 228u8, - 69u8, - 38u8, - 231u8, - 178u8, - 75u8, - 197u8, - 113u8, - 213u8, - 157u8, - 5u8, - 68u8, - 75u8, - 155u8, - 47u8, + 92u8, 152u8, 49u8, 134u8, 235u8, 186u8, 109u8, + 234u8, 16u8, 129u8, 255u8, 88u8, 231u8, 177u8, + 197u8, 125u8, 105u8, 228u8, 69u8, 38u8, 231u8, + 178u8, 75u8, 197u8, 113u8, 213u8, 157u8, 5u8, 68u8, + 75u8, 155u8, 47u8, ], ) } @@ -16659,7 +11557,9 @@ pub mod api { pub fn blacklist( &self, proposal_hash: ::subxt::utils::H256, - maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + maybe_ref_index: ::core::option::Option< + ::core::primitive::u32, + >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -16669,38 +11569,11 @@ pub mod api { maybe_ref_index, }, [ - 227u8, - 200u8, - 88u8, - 154u8, - 134u8, - 121u8, - 131u8, - 177u8, - 94u8, - 119u8, - 12u8, - 129u8, - 150u8, - 59u8, - 108u8, - 103u8, - 109u8, - 55u8, - 220u8, - 211u8, - 250u8, - 103u8, - 160u8, - 170u8, - 63u8, - 142u8, - 112u8, - 244u8, - 29u8, - 238u8, - 101u8, - 24u8, + 227u8, 200u8, 88u8, 154u8, 134u8, 121u8, 131u8, + 177u8, 94u8, 119u8, 12u8, 129u8, 150u8, 59u8, + 108u8, 103u8, 109u8, 55u8, 220u8, 211u8, 250u8, + 103u8, 160u8, 170u8, 63u8, 142u8, 112u8, 244u8, + 29u8, 238u8, 101u8, 24u8, ], ) } @@ -16714,46 +11587,18 @@ pub mod api { pub fn cancel_proposal( &self, prop_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Democracy", "cancel_proposal", - types::CancelProposal { - prop_index, - }, + types::CancelProposal { prop_index }, [ - 213u8, - 5u8, - 215u8, - 209u8, - 71u8, - 229u8, - 66u8, - 38u8, - 171u8, - 38u8, - 14u8, - 103u8, - 248u8, - 176u8, - 217u8, - 143u8, - 234u8, - 89u8, - 110u8, - 250u8, - 3u8, - 190u8, - 151u8, - 74u8, - 55u8, - 58u8, - 249u8, - 138u8, - 25u8, - 191u8, - 55u8, - 142u8, + 213u8, 5u8, 215u8, 209u8, 71u8, 229u8, 66u8, 38u8, + 171u8, 38u8, 14u8, 103u8, 248u8, 176u8, 217u8, + 143u8, 234u8, 89u8, 110u8, 250u8, 3u8, 190u8, + 151u8, 74u8, 55u8, 58u8, 249u8, 138u8, 25u8, 191u8, + 55u8, 142u8, ], ) } @@ -16780,52 +11625,22 @@ pub mod api { ::subxt::tx::Payload::new_static( "Democracy", "set_metadata", - types::SetMetadata { - owner, - maybe_hash, - }, + types::SetMetadata { owner, maybe_hash }, [ - 192u8, - 174u8, - 122u8, - 229u8, - 149u8, - 49u8, - 155u8, - 209u8, - 226u8, - 255u8, - 46u8, - 43u8, - 77u8, - 164u8, - 226u8, - 254u8, - 207u8, - 110u8, - 222u8, - 131u8, - 220u8, - 53u8, - 95u8, - 170u8, - 128u8, - 212u8, - 236u8, - 168u8, - 156u8, - 29u8, - 151u8, - 40u8, + 192u8, 174u8, 122u8, 229u8, 149u8, 49u8, 155u8, + 209u8, 226u8, 255u8, 46u8, 43u8, 77u8, 164u8, + 226u8, 254u8, 207u8, 110u8, 222u8, 131u8, 220u8, + 53u8, 95u8, 170u8, 128u8, 212u8, 236u8, 168u8, + 156u8, 29u8, 151u8, 40u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; @@ -16837,7 +11652,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -16859,7 +11674,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -16881,7 +11696,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -16900,7 +11715,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -16923,7 +11738,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -16945,7 +11760,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -16967,7 +11782,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -16988,7 +11803,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -17010,7 +11825,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -17031,7 +11846,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -17054,7 +11869,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -17075,7 +11890,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -17100,7 +11915,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -17123,7 +11938,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -17144,14 +11959,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///Metadata for a proposal or a referendum has been set. pub struct MetadataSet { - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataSet { @@ -17166,14 +11982,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///Metadata for a proposal or a referendum has been cleared. pub struct MetadataCleared { - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataCleared { @@ -17188,15 +12005,17 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///Metadata has been transferred to new owner. pub struct MetadataTransferred { - pub prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, - pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub prev_owner: + runtime_types::pallet_democracy::types::MetadataOwner, + pub owner: + runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataTransferred { @@ -17223,38 +12042,11 @@ pub mod api { "PublicPropCount", vec![], [ - 51u8, - 175u8, - 184u8, - 94u8, - 91u8, - 212u8, - 100u8, - 108u8, - 127u8, - 162u8, - 233u8, - 137u8, - 12u8, - 209u8, - 29u8, - 130u8, - 125u8, - 179u8, - 208u8, - 160u8, - 173u8, - 149u8, - 12u8, - 111u8, - 1u8, - 82u8, - 196u8, - 137u8, - 51u8, - 204u8, - 153u8, - 198u8, + 51u8, 175u8, 184u8, 94u8, 91u8, 212u8, 100u8, + 108u8, 127u8, 162u8, 233u8, 137u8, 12u8, 209u8, + 29u8, 130u8, 125u8, 179u8, 208u8, 160u8, 173u8, + 149u8, 12u8, 111u8, 1u8, 82u8, 196u8, 137u8, 51u8, + 204u8, 153u8, 198u8, ], ) } @@ -17275,44 +12067,16 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "PublicProps", vec![], [ - 156u8, - 21u8, - 84u8, - 229u8, - 193u8, - 34u8, - 28u8, - 230u8, - 11u8, - 108u8, - 2u8, - 84u8, - 188u8, - 11u8, - 25u8, - 55u8, - 130u8, - 80u8, - 164u8, - 239u8, - 150u8, - 77u8, - 4u8, - 246u8, - 174u8, - 16u8, - 232u8, - 23u8, - 9u8, - 194u8, - 177u8, - 73u8, + 156u8, 21u8, 84u8, 229u8, 193u8, 34u8, 28u8, 230u8, + 11u8, 108u8, 2u8, 84u8, 188u8, 11u8, 25u8, 55u8, + 130u8, 80u8, 164u8, 239u8, 150u8, 77u8, 4u8, 246u8, + 174u8, 16u8, 232u8, 23u8, 9u8, 194u8, 177u8, 73u8, ], ) } @@ -17333,7 +12097,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "DepositOf", @@ -17393,43 +12157,16 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "DepositOf", Vec::new(), [ - 115u8, - 12u8, - 250u8, - 191u8, - 201u8, - 165u8, - 90u8, - 140u8, - 101u8, - 47u8, - 46u8, - 3u8, - 78u8, - 30u8, - 180u8, - 22u8, - 28u8, - 154u8, - 36u8, - 99u8, - 255u8, - 84u8, - 33u8, - 21u8, - 65u8, - 110u8, - 52u8, - 245u8, - 19u8, - 6u8, - 104u8, + 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, + 140u8, 101u8, 47u8, 46u8, 3u8, 78u8, 30u8, 180u8, + 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, 84u8, 33u8, + 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, ], ) @@ -17449,38 +12186,11 @@ pub mod api { "ReferendumCount", vec![], [ - 64u8, - 145u8, - 232u8, - 153u8, - 121u8, - 87u8, - 128u8, - 253u8, - 170u8, - 192u8, - 139u8, - 18u8, - 0u8, - 33u8, - 243u8, - 11u8, - 238u8, - 222u8, - 244u8, - 5u8, - 247u8, - 198u8, - 149u8, - 31u8, - 122u8, - 208u8, - 86u8, - 179u8, - 166u8, - 167u8, - 93u8, - 67u8, + 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, + 253u8, 170u8, 192u8, 139u8, 18u8, 0u8, 33u8, 243u8, + 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, 198u8, + 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, + 167u8, 93u8, 67u8, ], ) } @@ -17500,38 +12210,11 @@ pub mod api { "LowestUnbaked", vec![], [ - 237u8, - 222u8, - 144u8, - 214u8, - 0u8, - 186u8, - 81u8, - 176u8, - 51u8, - 14u8, - 204u8, - 184u8, - 147u8, - 97u8, - 187u8, - 84u8, - 40u8, - 8u8, - 86u8, - 241u8, - 16u8, - 157u8, - 202u8, - 44u8, - 185u8, - 111u8, - 70u8, - 114u8, - 40u8, - 135u8, - 1u8, - 155u8, + 237u8, 222u8, 144u8, 214u8, 0u8, 186u8, 81u8, + 176u8, 51u8, 14u8, 204u8, 184u8, 147u8, 97u8, + 187u8, 84u8, 40u8, 8u8, 86u8, 241u8, 16u8, 157u8, + 202u8, 44u8, 185u8, 111u8, 70u8, 114u8, 40u8, + 135u8, 1u8, 155u8, ], ) } @@ -17553,7 +12236,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "ReferendumInfoOf", @@ -17614,44 +12297,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "ReferendumInfoOf", Vec::new(), [ - 250u8, - 201u8, - 144u8, - 220u8, - 13u8, - 14u8, - 69u8, - 171u8, - 240u8, - 119u8, - 158u8, - 200u8, - 86u8, - 77u8, - 115u8, - 156u8, - 156u8, - 101u8, - 215u8, - 233u8, - 165u8, - 96u8, - 62u8, - 201u8, - 83u8, - 203u8, - 58u8, - 67u8, - 49u8, - 174u8, - 86u8, - 242u8, + 250u8, 201u8, 144u8, 220u8, 13u8, 14u8, 69u8, + 171u8, 240u8, 119u8, 158u8, 200u8, 86u8, 77u8, + 115u8, 156u8, 156u8, 101u8, 215u8, 233u8, 165u8, + 96u8, 62u8, 201u8, 83u8, 203u8, 58u8, 67u8, 49u8, + 174u8, 86u8, 242u8, ], ) } @@ -17738,38 +12394,11 @@ pub mod api { "VotingOf", Vec::new(), [ - 170u8, - 234u8, - 179u8, - 190u8, - 153u8, - 172u8, - 83u8, - 105u8, - 57u8, - 88u8, - 183u8, - 54u8, - 172u8, - 149u8, - 222u8, - 240u8, - 128u8, - 46u8, - 25u8, - 10u8, - 205u8, - 69u8, - 164u8, - 173u8, - 55u8, - 188u8, - 196u8, - 51u8, - 129u8, - 206u8, - 87u8, - 249u8, + 170u8, 234u8, 179u8, 190u8, 153u8, 172u8, 83u8, + 105u8, 57u8, 88u8, 183u8, 54u8, 172u8, 149u8, + 222u8, 240u8, 128u8, 46u8, 25u8, 10u8, 205u8, 69u8, + 164u8, 173u8, 55u8, 188u8, 196u8, 51u8, 129u8, + 206u8, 87u8, 249u8, ], ) } @@ -17789,37 +12418,10 @@ pub mod api { "LastTabledWasExternal", vec![], [ - 162u8, - 201u8, - 72u8, - 9u8, - 78u8, - 49u8, - 72u8, - 62u8, - 240u8, - 69u8, - 20u8, - 135u8, - 26u8, - 59u8, - 71u8, - 46u8, - 19u8, - 25u8, - 195u8, - 11u8, - 99u8, - 31u8, - 104u8, - 4u8, - 24u8, - 129u8, - 47u8, - 69u8, - 219u8, - 178u8, - 104u8, + 162u8, 201u8, 72u8, 9u8, 78u8, 49u8, 72u8, 62u8, + 240u8, 69u8, 20u8, 135u8, 26u8, 59u8, 71u8, 46u8, + 19u8, 25u8, 195u8, 11u8, 99u8, 31u8, 104u8, 4u8, + 24u8, 129u8, 47u8, 69u8, 219u8, 178u8, 104u8, 190u8, ], ) @@ -17841,44 +12443,17 @@ pub mod api { ::subxt::storage::address::Yes, (), (), - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "NextExternal", vec![], [ - 130u8, - 253u8, - 139u8, - 228u8, - 253u8, - 181u8, - 172u8, - 14u8, - 214u8, - 128u8, - 17u8, - 195u8, - 104u8, - 64u8, - 64u8, - 132u8, - 40u8, - 212u8, - 80u8, - 47u8, - 225u8, - 224u8, - 9u8, - 186u8, - 80u8, - 118u8, - 120u8, - 174u8, - 174u8, - 20u8, - 150u8, - 13u8, + 130u8, 253u8, 139u8, 228u8, 253u8, 181u8, 172u8, + 14u8, 214u8, 128u8, 17u8, 195u8, 104u8, 64u8, 64u8, + 132u8, 40u8, 212u8, 80u8, 47u8, 225u8, 224u8, 9u8, + 186u8, 80u8, 118u8, 120u8, 174u8, 174u8, 20u8, + 150u8, 13u8, ], ) } @@ -17898,7 +12473,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "Blacklist", @@ -17957,43 +12532,16 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Democracy", "Blacklist", Vec::new(), [ - 238u8, - 119u8, - 98u8, - 220u8, - 11u8, - 209u8, - 90u8, - 9u8, - 69u8, - 51u8, - 59u8, - 177u8, - 169u8, - 113u8, - 138u8, - 13u8, - 134u8, - 14u8, - 184u8, - 6u8, - 80u8, - 182u8, - 154u8, - 10u8, - 100u8, - 71u8, - 117u8, - 2u8, - 150u8, - 170u8, - 154u8, + 238u8, 119u8, 98u8, 220u8, 11u8, 209u8, 90u8, 9u8, + 69u8, 51u8, 59u8, 177u8, 169u8, 113u8, 138u8, 13u8, + 134u8, 14u8, 184u8, 6u8, 80u8, 182u8, 154u8, 10u8, + 100u8, 71u8, 117u8, 2u8, 150u8, 170u8, 154u8, 255u8, ], ) @@ -18067,38 +12615,11 @@ pub mod api { "Cancellations", Vec::new(), [ - 80u8, - 190u8, - 98u8, - 105u8, - 129u8, - 25u8, - 167u8, - 180u8, - 74u8, - 128u8, - 232u8, - 29u8, - 193u8, - 209u8, - 185u8, - 60u8, - 18u8, - 180u8, - 59u8, - 192u8, - 149u8, - 13u8, - 123u8, - 232u8, - 34u8, - 208u8, - 48u8, - 104u8, - 35u8, - 181u8, - 186u8, - 244u8, + 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, + 180u8, 74u8, 128u8, 232u8, 29u8, 193u8, 209u8, + 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, 149u8, 13u8, + 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, + 181u8, 186u8, 244u8, ], ) } @@ -18183,38 +12704,11 @@ pub mod api { "MetadataOf", Vec::new(), [ - 241u8, - 106u8, - 118u8, - 66u8, - 219u8, - 192u8, - 185u8, - 117u8, - 144u8, - 174u8, - 171u8, - 207u8, - 181u8, - 32u8, - 133u8, - 127u8, - 160u8, - 218u8, - 113u8, - 153u8, - 160u8, - 7u8, - 72u8, - 58u8, - 187u8, - 96u8, - 51u8, - 236u8, - 64u8, - 80u8, - 123u8, - 254u8, + 241u8, 106u8, 118u8, 66u8, 219u8, 192u8, 185u8, + 117u8, 144u8, 174u8, 171u8, 207u8, 181u8, 32u8, + 133u8, 127u8, 160u8, 218u8, 113u8, 153u8, 160u8, + 7u8, 72u8, 58u8, 187u8, 96u8, 51u8, 236u8, 64u8, + 80u8, 123u8, 254u8, ], ) } @@ -18231,42 +12725,16 @@ pub mod api { /// where they are on the losing side of a vote. pub fn enactment_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "EnactmentPeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18274,42 +12742,16 @@ pub mod api { /// How often (in blocks) new public referenda are launched. pub fn launch_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "LaunchPeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18317,42 +12759,16 @@ pub mod api { /// How often (in blocks) to check for new votes. pub fn voting_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "VotingPeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18363,42 +12779,16 @@ pub mod api { /// those successful voters are locked into the consequences that their votes entail. pub fn vote_locking_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "VoteLockingPeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18406,43 +12796,17 @@ pub mod api { /// The minimum amount to be used as a deposit for a public referendum proposal. pub fn minimum_deposit( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Democracy", "MinimumDeposit", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -18451,85 +12815,33 @@ pub mod api { /// as an upgrade having happened recently. pub fn instant_allowed( &self, - ) -> ::subxt::constants::Address<::core::primitive::bool> { + ) -> ::subxt::constants::Address<::core::primitive::bool> + { ::subxt::constants::Address::new_static( "Democracy", "InstantAllowed", [ - 165u8, - 28u8, - 112u8, - 190u8, - 18u8, - 129u8, - 182u8, - 206u8, - 237u8, - 1u8, - 68u8, - 252u8, - 125u8, - 234u8, - 185u8, - 50u8, - 149u8, - 164u8, - 47u8, - 126u8, - 134u8, - 100u8, - 14u8, - 86u8, - 209u8, - 39u8, - 20u8, - 4u8, - 233u8, - 115u8, - 102u8, - 131u8, + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, + 206u8, 237u8, 1u8, 68u8, 252u8, 125u8, 234u8, + 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, + 115u8, 102u8, 131u8, ], ) } /// Minimum voting period allowed for a fast-track referendum. pub fn fast_track_voting_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "FastTrackVotingPeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18537,42 +12849,16 @@ pub mod api { /// Period in blocks where an external proposal may not be re-submitted after being vetoed. pub fn cooloff_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "CooloffPeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18583,42 +12869,16 @@ pub mod api { /// lead to extrinsic with very big weight: see `delegate` for instance. pub fn max_votes( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "MaxVotes", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18626,42 +12886,16 @@ pub mod api { /// The maximum number of public proposals that can exist at any time. pub fn max_proposals( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "MaxProposals", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18669,42 +12903,16 @@ pub mod api { /// The maximum number of deposits a public proposal may have at any time. pub fn max_deposits( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "MaxDeposits", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18712,42 +12920,16 @@ pub mod api { /// The maximum number of items which can be blacklisted. pub fn max_blacklisted( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Democracy", "MaxBlacklisted", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -18759,9 +12941,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_collective::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_collective::pallet::Call; @@ -18779,14 +12961,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetMembers { - pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, - pub prime: ::core::option::Option<::subxt::utils::AccountId32>, + pub new_members: + ::std::vec::Vec<::subxt::utils::AccountId32>, + pub prime: + ::core::option::Option<::subxt::utils::AccountId32>, pub old_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMembers { @@ -18801,11 +12989,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Execute { pub proposal: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -18825,11 +13017,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Propose { #[codec(compact)] pub threshold: ::core::primitive::u32, @@ -18851,11 +13047,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Vote { pub proposal: ::subxt::utils::H256, #[codec(compact)] @@ -18874,11 +13074,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct DisapproveProposal { pub proposal_hash: ::subxt::utils::H256, } @@ -18894,16 +13098,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Close { pub proposal_hash: ::subxt::utils::H256, #[codec(compact)] pub index: ::core::primitive::u32, - pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + pub proposal_weight_bound: + runtime_types::sp_weights::weight_v2::Weight, #[codec(compact)] pub length_bound: ::core::primitive::u32, } @@ -18953,38 +13162,11 @@ pub mod api { old_count, }, [ - 141u8, - 113u8, - 137u8, - 46u8, - 75u8, - 22u8, - 143u8, - 204u8, - 50u8, - 24u8, - 137u8, - 25u8, - 226u8, - 166u8, - 121u8, - 161u8, - 54u8, - 144u8, - 12u8, - 145u8, - 157u8, - 153u8, - 47u8, - 144u8, - 94u8, - 34u8, - 217u8, - 115u8, - 125u8, - 152u8, - 110u8, - 28u8, + 141u8, 113u8, 137u8, 46u8, 75u8, 22u8, 143u8, + 204u8, 50u8, 24u8, 137u8, 25u8, 226u8, 166u8, + 121u8, 161u8, 54u8, 144u8, 12u8, 145u8, 157u8, + 153u8, 47u8, 144u8, 94u8, 34u8, 217u8, 115u8, + 125u8, 152u8, 110u8, 28u8, ], ) } @@ -19010,38 +13192,11 @@ pub mod api { length_bound, }, [ - 106u8, - 30u8, - 217u8, - 144u8, - 246u8, - 60u8, - 62u8, - 44u8, - 41u8, - 154u8, - 127u8, - 196u8, - 0u8, - 113u8, - 179u8, - 190u8, - 112u8, - 95u8, - 211u8, - 187u8, - 33u8, - 205u8, - 99u8, - 94u8, - 143u8, - 45u8, - 9u8, - 66u8, - 228u8, - 3u8, - 202u8, - 180u8, + 106u8, 30u8, 217u8, 144u8, 246u8, 60u8, 62u8, 44u8, + 41u8, 154u8, 127u8, 196u8, 0u8, 113u8, 179u8, + 190u8, 112u8, 95u8, 211u8, 187u8, 33u8, 205u8, + 99u8, 94u8, 143u8, 45u8, 9u8, 66u8, 228u8, 3u8, + 202u8, 180u8, ], ) } @@ -19074,38 +13229,11 @@ pub mod api { length_bound, }, [ - 25u8, - 107u8, - 142u8, - 100u8, - 87u8, - 244u8, - 101u8, - 88u8, - 144u8, - 93u8, - 193u8, - 115u8, - 50u8, - 230u8, - 236u8, - 13u8, - 66u8, - 110u8, - 223u8, - 88u8, - 73u8, - 104u8, - 1u8, - 251u8, - 210u8, - 183u8, - 13u8, - 228u8, - 100u8, - 72u8, - 217u8, - 85u8, + 25u8, 107u8, 142u8, 100u8, 87u8, 244u8, 101u8, + 88u8, 144u8, 93u8, 193u8, 115u8, 50u8, 230u8, + 236u8, 13u8, 66u8, 110u8, 223u8, 88u8, 73u8, 104u8, + 1u8, 251u8, 210u8, 183u8, 13u8, 228u8, 100u8, 72u8, + 217u8, 85u8, ], ) } @@ -19133,37 +13261,10 @@ pub mod api { approve, }, [ - 110u8, - 141u8, - 24u8, - 33u8, - 91u8, - 7u8, - 89u8, - 198u8, - 54u8, - 10u8, - 76u8, - 129u8, - 45u8, - 20u8, - 216u8, - 104u8, - 231u8, - 246u8, - 174u8, - 205u8, - 190u8, - 176u8, - 171u8, - 113u8, - 33u8, - 37u8, - 155u8, - 203u8, - 251u8, - 34u8, - 25u8, + 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, + 54u8, 10u8, 76u8, 129u8, 45u8, 20u8, 216u8, 104u8, + 231u8, 246u8, 174u8, 205u8, 190u8, 176u8, 171u8, + 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, 120u8, ], ) @@ -19181,46 +13282,18 @@ pub mod api { pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Council", "disapprove_proposal", - types::DisapproveProposal { - proposal_hash, - }, + types::DisapproveProposal { proposal_hash }, [ - 26u8, - 140u8, - 111u8, - 193u8, - 229u8, - 59u8, - 53u8, - 196u8, - 230u8, - 60u8, - 7u8, - 155u8, - 168u8, - 7u8, - 201u8, - 177u8, - 70u8, - 103u8, - 190u8, - 57u8, - 244u8, - 156u8, - 67u8, - 101u8, - 228u8, - 6u8, - 213u8, - 83u8, - 225u8, - 95u8, - 148u8, - 96u8, + 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, + 196u8, 230u8, 60u8, 7u8, 155u8, 168u8, 7u8, 201u8, + 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, 156u8, + 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, + 148u8, 96u8, ], ) } @@ -19265,47 +13338,19 @@ pub mod api { length_bound, }, [ - 189u8, - 149u8, - 125u8, - 63u8, - 39u8, - 201u8, - 247u8, - 4u8, - 220u8, - 74u8, - 78u8, - 14u8, - 113u8, - 163u8, - 1u8, - 159u8, - 81u8, - 248u8, - 141u8, - 111u8, - 34u8, - 243u8, - 67u8, - 70u8, - 60u8, - 92u8, - 47u8, - 70u8, - 66u8, - 246u8, - 236u8, - 153u8, + 189u8, 149u8, 125u8, 63u8, 39u8, 201u8, 247u8, 4u8, + 220u8, 74u8, 78u8, 14u8, 113u8, 163u8, 1u8, 159u8, + 81u8, 248u8, 141u8, 111u8, 34u8, 243u8, 67u8, 70u8, + 60u8, 92u8, 47u8, 70u8, 66u8, 246u8, 236u8, 153u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; @@ -19317,7 +13362,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -19342,7 +13387,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -19368,7 +13413,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -19389,7 +13434,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -19410,7 +13455,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -19435,7 +13480,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -19460,7 +13505,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -19497,38 +13542,11 @@ pub mod api { "Proposals", vec![], [ - 210u8, - 234u8, - 7u8, - 29u8, - 231u8, - 80u8, - 17u8, - 36u8, - 189u8, - 34u8, - 175u8, - 147u8, - 56u8, - 92u8, - 201u8, - 104u8, - 207u8, - 150u8, - 58u8, - 110u8, - 90u8, - 28u8, - 198u8, - 79u8, - 236u8, - 245u8, - 19u8, - 38u8, - 68u8, - 59u8, - 215u8, - 74u8, + 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, + 189u8, 34u8, 175u8, 147u8, 56u8, 92u8, 201u8, + 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, + 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, + 215u8, 74u8, ], ) } @@ -19601,38 +13619,11 @@ pub mod api { "ProposalOf", Vec::new(), [ - 20u8, - 149u8, - 181u8, - 18u8, - 142u8, - 218u8, - 244u8, - 38u8, - 65u8, - 204u8, - 60u8, - 107u8, - 226u8, - 233u8, - 0u8, - 39u8, - 137u8, - 167u8, - 83u8, - 33u8, - 25u8, - 92u8, - 87u8, - 168u8, - 151u8, - 60u8, - 230u8, - 221u8, - 48u8, - 155u8, - 135u8, - 66u8, + 20u8, 149u8, 181u8, 18u8, 142u8, 218u8, 244u8, + 38u8, 65u8, 204u8, 60u8, 107u8, 226u8, 233u8, 0u8, + 39u8, 137u8, 167u8, 83u8, 33u8, 25u8, 92u8, 87u8, + 168u8, 151u8, 60u8, 230u8, 221u8, 48u8, 155u8, + 135u8, 66u8, ], ) } @@ -19711,37 +13702,10 @@ pub mod api { "Voting", Vec::new(), [ - 56u8, - 192u8, - 111u8, - 180u8, - 253u8, - 5u8, - 232u8, - 126u8, - 177u8, - 48u8, - 135u8, - 39u8, - 89u8, - 71u8, - 62u8, - 239u8, - 216u8, - 17u8, - 64u8, - 82u8, - 130u8, - 236u8, - 96u8, - 89u8, - 167u8, - 2u8, - 118u8, - 113u8, - 63u8, - 176u8, - 124u8, + 56u8, 192u8, 111u8, 180u8, 253u8, 5u8, 232u8, + 126u8, 177u8, 48u8, 135u8, 39u8, 89u8, 71u8, 62u8, + 239u8, 216u8, 17u8, 64u8, 82u8, 130u8, 236u8, 96u8, + 89u8, 167u8, 2u8, 118u8, 113u8, 63u8, 176u8, 124u8, 73u8, ], ) @@ -19761,38 +13725,11 @@ pub mod api { "ProposalCount", vec![], [ - 91u8, - 238u8, - 246u8, - 106u8, - 95u8, - 66u8, - 83u8, - 134u8, - 1u8, - 225u8, - 164u8, - 216u8, - 113u8, - 101u8, - 203u8, - 200u8, - 113u8, - 97u8, - 246u8, - 228u8, - 140u8, - 29u8, - 29u8, - 48u8, - 176u8, - 137u8, - 93u8, - 230u8, - 56u8, - 75u8, - 51u8, - 149u8, + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, + 1u8, 225u8, 164u8, 216u8, 113u8, 101u8, 203u8, + 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, 29u8, + 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, + 51u8, 149u8, ], ) } @@ -19811,38 +13748,11 @@ pub mod api { "Members", vec![], [ - 16u8, - 29u8, - 32u8, - 222u8, - 175u8, - 136u8, - 111u8, - 101u8, - 43u8, - 74u8, - 209u8, - 81u8, - 47u8, - 97u8, - 129u8, - 39u8, - 225u8, - 243u8, - 110u8, - 229u8, - 237u8, - 21u8, - 90u8, - 127u8, - 80u8, - 239u8, - 156u8, - 32u8, - 90u8, - 109u8, - 179u8, - 0u8, + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, + 101u8, 43u8, 74u8, 209u8, 81u8, 47u8, 97u8, 129u8, + 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, + 179u8, 0u8, ], ) } @@ -19861,37 +13771,10 @@ pub mod api { "Prime", vec![], [ - 72u8, - 128u8, - 214u8, - 72u8, - 78u8, - 80u8, - 100u8, - 198u8, - 114u8, - 215u8, - 59u8, - 3u8, - 103u8, - 14u8, - 152u8, - 202u8, - 12u8, - 165u8, - 224u8, - 10u8, - 41u8, - 154u8, - 77u8, - 95u8, - 116u8, - 143u8, - 250u8, - 250u8, - 176u8, - 92u8, - 238u8, + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, + 114u8, 215u8, 59u8, 3u8, 103u8, 14u8, 152u8, 202u8, + 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, 77u8, 95u8, + 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, ], ) @@ -19912,37 +13795,10 @@ pub mod api { "Council", "MaxProposalWeight", [ - 222u8, - 183u8, - 203u8, - 169u8, - 31u8, - 134u8, - 28u8, - 12u8, - 47u8, - 140u8, - 71u8, - 74u8, - 61u8, - 55u8, - 71u8, - 236u8, - 215u8, - 83u8, - 28u8, - 70u8, - 45u8, - 128u8, - 184u8, - 57u8, - 101u8, - 83u8, - 42u8, - 165u8, - 34u8, - 155u8, - 64u8, + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, + 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, + 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, + 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) @@ -19971,11 +13827,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Vest; impl ::subxt::blocks::StaticExtrinsic for Vest { const PALLET: &'static str = "Vesting"; @@ -19989,11 +13849,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct VestOther { pub target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -20012,11 +13876,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct VestedTransfer { pub target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -20039,11 +13907,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceVestedTransfer { pub source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -20070,11 +13942,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct MergeSchedules { pub schedule1_index: ::core::primitive::u32, pub schedule2_index: ::core::primitive::u32, @@ -20101,38 +13977,11 @@ pub mod api { "vest", types::Vest {}, [ - 149u8, - 89u8, - 178u8, - 148u8, - 127u8, - 127u8, - 155u8, - 60u8, - 114u8, - 126u8, - 204u8, - 123u8, - 166u8, - 70u8, - 104u8, - 208u8, - 186u8, - 69u8, - 139u8, - 181u8, - 151u8, - 154u8, - 235u8, - 161u8, - 191u8, - 35u8, - 111u8, - 60u8, - 21u8, - 165u8, - 44u8, - 122u8, + 149u8, 89u8, 178u8, 148u8, 127u8, 127u8, 155u8, + 60u8, 114u8, 126u8, 204u8, 123u8, 166u8, 70u8, + 104u8, 208u8, 186u8, 69u8, 139u8, 181u8, 151u8, + 154u8, 235u8, 161u8, 191u8, 35u8, 111u8, 60u8, + 21u8, 165u8, 44u8, 122u8, ], ) } @@ -20159,38 +14008,11 @@ pub mod api { "vest_other", types::VestOther { target }, [ - 237u8, - 98u8, - 131u8, - 246u8, - 166u8, - 177u8, - 74u8, - 207u8, - 136u8, - 120u8, - 117u8, - 252u8, - 197u8, - 226u8, - 72u8, - 233u8, - 141u8, - 180u8, - 220u8, - 163u8, - 64u8, - 66u8, - 95u8, - 114u8, - 143u8, - 102u8, - 158u8, - 225u8, - 44u8, - 99u8, - 75u8, - 117u8, + 237u8, 98u8, 131u8, 246u8, 166u8, 177u8, 74u8, + 207u8, 136u8, 120u8, 117u8, 252u8, 197u8, 226u8, + 72u8, 233u8, 141u8, 180u8, 220u8, 163u8, 64u8, + 66u8, 95u8, 114u8, 143u8, 102u8, 158u8, 225u8, + 44u8, 99u8, 75u8, 117u8, ], ) } @@ -20217,47 +14039,18 @@ pub mod api { ::core::primitive::u128, ::core::primitive::u32, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Vesting", "vested_transfer", - types::VestedTransfer { - target, - schedule, - }, + types::VestedTransfer { target, schedule }, [ - 208u8, - 95u8, - 120u8, - 179u8, - 8u8, - 246u8, - 213u8, - 174u8, - 133u8, - 234u8, - 117u8, - 13u8, - 25u8, - 32u8, - 245u8, - 101u8, - 168u8, - 94u8, - 255u8, - 193u8, - 236u8, - 177u8, - 164u8, - 62u8, - 113u8, - 181u8, - 105u8, - 49u8, - 133u8, - 9u8, - 133u8, - 244u8, + 208u8, 95u8, 120u8, 179u8, 8u8, 246u8, 213u8, + 174u8, 133u8, 234u8, 117u8, 13u8, 25u8, 32u8, + 245u8, 101u8, 168u8, 94u8, 255u8, 193u8, 236u8, + 177u8, 164u8, 62u8, 113u8, 181u8, 105u8, 49u8, + 133u8, 9u8, 133u8, 244u8, ], ) } @@ -20289,7 +14082,8 @@ pub mod api { ::core::primitive::u128, ::core::primitive::u32, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Vesting", "force_vested_transfer", @@ -20299,38 +14093,11 @@ pub mod api { schedule, }, [ - 204u8, - 15u8, - 117u8, - 96u8, - 62u8, - 131u8, - 170u8, - 139u8, - 226u8, - 58u8, - 240u8, - 170u8, - 130u8, - 15u8, - 106u8, - 168u8, - 109u8, - 93u8, - 22u8, - 185u8, - 93u8, - 211u8, - 7u8, - 234u8, - 204u8, - 30u8, - 18u8, - 239u8, - 106u8, - 196u8, - 90u8, - 240u8, + 204u8, 15u8, 117u8, 96u8, 62u8, 131u8, 170u8, + 139u8, 226u8, 58u8, 240u8, 170u8, 130u8, 15u8, + 106u8, 168u8, 109u8, 93u8, 22u8, 185u8, 93u8, + 211u8, 7u8, 234u8, 204u8, 30u8, 18u8, 239u8, 106u8, + 196u8, 90u8, 240u8, ], ) } @@ -20359,7 +14126,8 @@ pub mod api { &self, schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Vesting", "merge_schedules", @@ -20368,37 +14136,10 @@ pub mod api { schedule2_index, }, [ - 135u8, - 49u8, - 137u8, - 222u8, - 134u8, - 94u8, - 197u8, - 182u8, - 171u8, - 57u8, - 161u8, - 6u8, - 185u8, - 130u8, - 45u8, - 30u8, - 79u8, - 77u8, - 157u8, - 118u8, - 35u8, - 249u8, - 39u8, - 10u8, - 103u8, - 160u8, - 198u8, - 75u8, - 26u8, - 50u8, - 64u8, + 135u8, 49u8, 137u8, 222u8, 134u8, 94u8, 197u8, + 182u8, 171u8, 57u8, 161u8, 6u8, 185u8, 130u8, 45u8, + 30u8, 79u8, 77u8, 157u8, 118u8, 35u8, 249u8, 39u8, + 10u8, 103u8, 160u8, 198u8, 75u8, 26u8, 50u8, 64u8, 26u8, ], ) @@ -20406,9 +14147,9 @@ pub mod api { } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; @@ -20420,7 +14161,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -20443,7 +14184,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -20476,7 +14217,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", @@ -20534,44 +14275,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Vesting", "Vesting", Vec::new(), [ - 10u8, - 98u8, - 73u8, - 242u8, - 215u8, - 4u8, - 45u8, - 227u8, - 73u8, - 203u8, - 33u8, - 105u8, - 228u8, - 247u8, - 125u8, - 99u8, - 98u8, - 38u8, - 176u8, - 123u8, - 233u8, - 219u8, - 174u8, - 118u8, - 49u8, - 172u8, - 58u8, - 162u8, - 186u8, - 110u8, - 147u8, - 122u8, + 10u8, 98u8, 73u8, 242u8, 215u8, 4u8, 45u8, 227u8, + 73u8, 203u8, 33u8, 105u8, 228u8, 247u8, 125u8, + 99u8, 98u8, 38u8, 176u8, 123u8, 233u8, 219u8, + 174u8, 118u8, 49u8, 172u8, 58u8, 162u8, 186u8, + 110u8, 147u8, 122u8, ], ) } @@ -20592,38 +14306,11 @@ pub mod api { "StorageVersion", vec![], [ - 230u8, - 137u8, - 180u8, - 133u8, - 142u8, - 124u8, - 231u8, - 234u8, - 223u8, - 10u8, - 154u8, - 98u8, - 158u8, - 253u8, - 228u8, - 80u8, - 5u8, - 9u8, - 91u8, - 210u8, - 252u8, - 9u8, - 13u8, - 195u8, - 193u8, - 164u8, - 129u8, - 113u8, - 128u8, - 218u8, - 8u8, - 40u8, + 230u8, 137u8, 180u8, 133u8, 142u8, 124u8, 231u8, + 234u8, 223u8, 10u8, 154u8, 98u8, 158u8, 253u8, + 228u8, 80u8, 5u8, 9u8, 91u8, 210u8, 252u8, 9u8, + 13u8, 195u8, 193u8, 164u8, 129u8, 113u8, 128u8, + 218u8, 8u8, 40u8, ], ) } @@ -20636,84 +14323,32 @@ pub mod api { /// The minimum amount transferred to call `vested_transfer`. pub fn min_vested_transfer( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Vesting", "MinVestedTransfer", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, ], ) } pub fn max_vesting_schedules( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Vesting", "MaxVestingSchedules", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -20725,9 +14360,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_ecdsa_claims::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_ecdsa_claims::pallet::Call; @@ -20745,14 +14380,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Claim { pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: runtime_types::pallet_ecdsa_claims::EcdsaSignature, + pub ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, } impl ::subxt::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Claims"; @@ -20766,21 +14406,24 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct MintClaim { - pub who: runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub who: + runtime_types::pallet_ecdsa_claims::EthereumAddress, pub value: ::core::primitive::u128, - pub vesting_schedule: ::core::option::Option< - ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ), - >, + pub vesting_schedule: ::core::option::Option<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u32, + )>, pub statement: ::core::option::Option< runtime_types::pallet_ecdsa_claims::StatementKind, >, @@ -20797,14 +14440,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClaimAttest { pub dest: ::subxt::utils::AccountId32, - pub ethereum_signature: runtime_types::pallet_ecdsa_claims::EcdsaSignature, + pub ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, pub statement: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { @@ -20819,11 +14467,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Attest { pub statement: ::std::vec::Vec<::core::primitive::u8>, } @@ -20839,17 +14491,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct MoveClaim { - pub old: runtime_types::pallet_ecdsa_claims::EthereumAddress, - pub new: runtime_types::pallet_ecdsa_claims::EthereumAddress, - pub maybe_preclaim: ::core::option::Option< - ::subxt::utils::AccountId32, - >, + pub old: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub new: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub maybe_preclaim: + ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for MoveClaim { const PALLET: &'static str = "Claims"; @@ -20863,11 +14520,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceSetExpiryConfig { pub expiry_block: ::core::primitive::u32, pub dest: ::subxt::utils::AccountId32, @@ -20916,38 +14577,11 @@ pub mod api { ethereum_signature, }, [ - 83u8, - 166u8, - 82u8, - 164u8, - 185u8, - 116u8, - 35u8, - 29u8, - 60u8, - 10u8, - 92u8, - 61u8, - 212u8, - 63u8, - 236u8, - 107u8, - 19u8, - 110u8, - 100u8, - 58u8, - 154u8, - 143u8, - 188u8, - 153u8, - 34u8, - 237u8, - 60u8, - 140u8, - 194u8, - 135u8, - 227u8, - 8u8, + 83u8, 166u8, 82u8, 164u8, 185u8, 116u8, 35u8, 29u8, + 60u8, 10u8, 92u8, 61u8, 212u8, 63u8, 236u8, 107u8, + 19u8, 110u8, 100u8, 58u8, 154u8, 143u8, 188u8, + 153u8, 34u8, 237u8, 60u8, 140u8, 194u8, 135u8, + 227u8, 8u8, ], ) } @@ -20970,13 +14604,11 @@ pub mod api { &self, who: runtime_types::pallet_ecdsa_claims::EthereumAddress, value: ::core::primitive::u128, - vesting_schedule: ::core::option::Option< - ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ), - >, + vesting_schedule: ::core::option::Option<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u32, + )>, statement: ::core::option::Option< runtime_types::pallet_ecdsa_claims::StatementKind, >, @@ -20991,38 +14623,11 @@ pub mod api { statement, }, [ - 254u8, - 174u8, - 70u8, - 0u8, - 70u8, - 79u8, - 195u8, - 176u8, - 196u8, - 52u8, - 204u8, - 219u8, - 158u8, - 73u8, - 158u8, - 126u8, - 14u8, - 37u8, - 45u8, - 29u8, - 249u8, - 246u8, - 3u8, - 40u8, - 72u8, - 111u8, - 213u8, - 180u8, - 201u8, - 139u8, - 175u8, - 194u8, + 254u8, 174u8, 70u8, 0u8, 70u8, 79u8, 195u8, 176u8, + 196u8, 52u8, 204u8, 219u8, 158u8, 73u8, 158u8, + 126u8, 14u8, 37u8, 45u8, 29u8, 249u8, 246u8, 3u8, + 40u8, 72u8, 111u8, 213u8, 180u8, 201u8, 139u8, + 175u8, 194u8, ], ) } @@ -21068,37 +14673,10 @@ pub mod api { statement, }, [ - 18u8, - 79u8, - 43u8, - 28u8, - 88u8, - 151u8, - 46u8, - 15u8, - 28u8, - 146u8, - 210u8, - 235u8, - 158u8, - 64u8, - 236u8, - 204u8, - 89u8, - 174u8, - 250u8, - 114u8, - 45u8, - 3u8, - 17u8, - 129u8, - 147u8, - 69u8, - 232u8, - 181u8, - 71u8, - 98u8, - 5u8, + 18u8, 79u8, 43u8, 28u8, 88u8, 151u8, 46u8, 15u8, + 28u8, 146u8, 210u8, 235u8, 158u8, 64u8, 236u8, + 204u8, 89u8, 174u8, 250u8, 114u8, 45u8, 3u8, 17u8, + 129u8, 147u8, 69u8, 232u8, 181u8, 71u8, 98u8, 5u8, 244u8, ], ) @@ -21131,38 +14709,11 @@ pub mod api { "attest", types::Attest { statement }, [ - 254u8, - 56u8, - 140u8, - 129u8, - 227u8, - 155u8, - 161u8, - 107u8, - 167u8, - 148u8, - 167u8, - 104u8, - 139u8, - 174u8, - 204u8, - 124u8, - 126u8, - 198u8, - 165u8, - 61u8, - 83u8, - 197u8, - 242u8, - 13u8, - 70u8, - 153u8, - 14u8, - 62u8, - 214u8, - 129u8, - 64u8, - 93u8, + 254u8, 56u8, 140u8, 129u8, 227u8, 155u8, 161u8, + 107u8, 167u8, 148u8, 167u8, 104u8, 139u8, 174u8, + 204u8, 124u8, 126u8, 198u8, 165u8, 61u8, 83u8, + 197u8, 242u8, 13u8, 70u8, 153u8, 14u8, 62u8, 214u8, + 129u8, 64u8, 93u8, ], ) } @@ -21170,7 +14721,9 @@ pub mod api { &self, old: runtime_types::pallet_ecdsa_claims::EthereumAddress, new: runtime_types::pallet_ecdsa_claims::EthereumAddress, - maybe_preclaim: ::core::option::Option<::subxt::utils::AccountId32>, + maybe_preclaim: ::core::option::Option< + ::subxt::utils::AccountId32, + >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Claims", @@ -21181,38 +14734,11 @@ pub mod api { maybe_preclaim, }, [ - 82u8, - 63u8, - 8u8, - 178u8, - 205u8, - 16u8, - 182u8, - 216u8, - 80u8, - 254u8, - 48u8, - 10u8, - 52u8, - 159u8, - 198u8, - 116u8, - 164u8, - 108u8, - 209u8, - 193u8, - 60u8, - 139u8, - 241u8, - 135u8, - 92u8, - 103u8, - 241u8, - 52u8, - 103u8, - 52u8, - 243u8, - 0u8, + 82u8, 63u8, 8u8, 178u8, 205u8, 16u8, 182u8, 216u8, + 80u8, 254u8, 48u8, 10u8, 52u8, 159u8, 198u8, 116u8, + 164u8, 108u8, 209u8, 193u8, 60u8, 139u8, 241u8, + 135u8, 92u8, 103u8, 241u8, 52u8, 103u8, 52u8, + 243u8, 0u8, ], ) } @@ -21222,56 +14748,27 @@ pub mod api { &self, expiry_block: ::core::primitive::u32, dest: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Claims", "force_set_expiry_config", - types::ForceSetExpiryConfig { - expiry_block, - dest, - }, + types::ForceSetExpiryConfig { expiry_block, dest }, [ - 162u8, - 211u8, - 180u8, - 76u8, - 192u8, - 117u8, - 104u8, - 228u8, - 230u8, - 243u8, - 227u8, - 47u8, - 177u8, - 101u8, - 35u8, - 41u8, - 44u8, - 255u8, - 249u8, - 172u8, - 247u8, - 248u8, - 21u8, - 219u8, - 125u8, - 252u8, - 13u8, - 7u8, - 146u8, - 60u8, - 57u8, - 186u8, + 162u8, 211u8, 180u8, 76u8, 192u8, 117u8, 104u8, + 228u8, 230u8, 243u8, 227u8, 47u8, 177u8, 101u8, + 35u8, 41u8, 44u8, 255u8, 249u8, 172u8, 247u8, + 248u8, 21u8, 219u8, 125u8, 252u8, 13u8, 7u8, 146u8, + 60u8, 57u8, 186u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_ecdsa_claims::pallet::Event; pub mod events { use super::runtime_types; @@ -21283,7 +14780,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -21291,7 +14788,8 @@ pub mod api { ///Someone claimed some WEBBs. pub struct Claimed { pub who: ::subxt::utils::AccountId32, - pub ethereum_address: runtime_types::pallet_ecdsa_claims::EthereumAddress, + pub ethereum_address: + runtime_types::pallet_ecdsa_claims::EthereumAddress, pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Claimed { @@ -21372,38 +14870,11 @@ pub mod api { "Claims", Vec::new(), [ - 148u8, - 115u8, - 159u8, - 169u8, - 36u8, - 116u8, - 15u8, - 108u8, - 57u8, - 195u8, - 226u8, - 180u8, - 187u8, - 112u8, - 114u8, - 63u8, - 3u8, - 205u8, - 113u8, - 141u8, - 149u8, - 149u8, - 118u8, - 246u8, - 45u8, - 245u8, - 148u8, - 108u8, - 22u8, - 184u8, - 152u8, - 132u8, + 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, + 108u8, 57u8, 195u8, 226u8, 180u8, 187u8, 112u8, + 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, 149u8, + 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, + 22u8, 184u8, 152u8, 132u8, ], ) } @@ -21421,38 +14892,11 @@ pub mod api { "Total", vec![], [ - 188u8, - 31u8, - 219u8, - 189u8, - 49u8, - 213u8, - 203u8, - 89u8, - 125u8, - 58u8, - 232u8, - 159u8, - 131u8, - 155u8, - 166u8, - 113u8, - 99u8, - 24u8, - 40u8, - 242u8, - 118u8, - 183u8, - 108u8, - 230u8, - 135u8, - 150u8, - 84u8, - 86u8, - 118u8, - 91u8, - 168u8, - 62u8, + 188u8, 31u8, 219u8, 189u8, 49u8, 213u8, 203u8, + 89u8, 125u8, 58u8, 232u8, 159u8, 131u8, 155u8, + 166u8, 113u8, 99u8, 24u8, 40u8, 242u8, 118u8, + 183u8, 108u8, 230u8, 135u8, 150u8, 84u8, 86u8, + 118u8, 91u8, 168u8, 62u8, ], ) } @@ -21471,38 +14915,11 @@ pub mod api { "ExpiryConfig", vec![], [ - 80u8, - 129u8, - 105u8, - 115u8, - 6u8, - 95u8, - 124u8, - 125u8, - 23u8, - 145u8, - 239u8, - 227u8, - 228u8, - 53u8, - 219u8, - 20u8, - 27u8, - 234u8, - 85u8, - 92u8, - 10u8, - 11u8, - 205u8, - 159u8, - 54u8, - 106u8, - 18u8, - 240u8, - 20u8, - 142u8, - 199u8, - 167u8, + 80u8, 129u8, 105u8, 115u8, 6u8, 95u8, 124u8, 125u8, + 23u8, 145u8, 239u8, 227u8, 228u8, 53u8, 219u8, + 20u8, 27u8, 234u8, 85u8, 92u8, 10u8, 11u8, 205u8, + 159u8, 54u8, 106u8, 18u8, 240u8, 20u8, 142u8, + 199u8, 167u8, ], ) } @@ -21591,38 +15008,11 @@ pub mod api { "Vesting", Vec::new(), [ - 16u8, - 107u8, - 69u8, - 162u8, - 210u8, - 200u8, - 188u8, - 185u8, - 69u8, - 90u8, - 209u8, - 238u8, - 167u8, - 173u8, - 193u8, - 118u8, - 58u8, - 17u8, - 68u8, - 136u8, - 163u8, - 207u8, - 34u8, - 226u8, - 174u8, - 199u8, - 127u8, - 4u8, - 225u8, - 198u8, - 143u8, - 180u8, + 16u8, 107u8, 69u8, 162u8, 210u8, 200u8, 188u8, + 185u8, 69u8, 90u8, 209u8, 238u8, 167u8, 173u8, + 193u8, 118u8, 58u8, 17u8, 68u8, 136u8, 163u8, + 207u8, 34u8, 226u8, 174u8, 199u8, 127u8, 4u8, + 225u8, 198u8, 143u8, 180u8, ], ) } @@ -21697,38 +15087,11 @@ pub mod api { "Signing", Vec::new(), [ - 111u8, - 90u8, - 178u8, - 121u8, - 241u8, - 28u8, - 169u8, - 231u8, - 61u8, - 189u8, - 113u8, - 207u8, - 26u8, - 153u8, - 189u8, - 15u8, - 192u8, - 25u8, - 22u8, - 22u8, - 124u8, - 26u8, - 191u8, - 39u8, - 130u8, - 164u8, - 34u8, - 4u8, - 44u8, - 91u8, - 82u8, - 186u8, + 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, + 231u8, 61u8, 189u8, 113u8, 207u8, 26u8, 153u8, + 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, 26u8, + 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, + 82u8, 186u8, ], ) } @@ -21801,38 +15164,11 @@ pub mod api { "Preclaims", Vec::new(), [ - 154u8, - 182u8, - 178u8, - 76u8, - 81u8, - 63u8, - 87u8, - 179u8, - 243u8, - 104u8, - 206u8, - 75u8, - 114u8, - 83u8, - 16u8, - 233u8, - 22u8, - 132u8, - 207u8, - 36u8, - 151u8, - 179u8, - 94u8, - 208u8, - 210u8, - 202u8, - 149u8, - 248u8, - 9u8, - 49u8, - 140u8, - 94u8, + 154u8, 182u8, 178u8, 76u8, 81u8, 63u8, 87u8, 179u8, + 243u8, 104u8, 206u8, 75u8, 114u8, 83u8, 16u8, + 233u8, 22u8, 132u8, 207u8, 36u8, 151u8, 179u8, + 94u8, 208u8, 210u8, 202u8, 149u8, 248u8, 9u8, 49u8, + 140u8, 94u8, ], ) } @@ -21851,38 +15187,11 @@ pub mod api { "Claims", "Prefix", [ - 64u8, - 190u8, - 244u8, - 122u8, - 87u8, - 182u8, - 217u8, - 16u8, - 55u8, - 223u8, - 128u8, - 6u8, - 112u8, - 30u8, - 236u8, - 222u8, - 153u8, - 53u8, - 247u8, - 102u8, - 196u8, - 31u8, - 6u8, - 186u8, - 251u8, - 209u8, - 114u8, - 125u8, - 213u8, - 222u8, - 240u8, - 8u8, + 64u8, 190u8, 244u8, 122u8, 87u8, 182u8, 217u8, + 16u8, 55u8, 223u8, 128u8, 6u8, 112u8, 30u8, 236u8, + 222u8, 153u8, 53u8, 247u8, 102u8, 196u8, 31u8, 6u8, + 186u8, 251u8, 209u8, 114u8, 125u8, 213u8, 222u8, + 240u8, 8u8, ], ) } @@ -21893,10 +15202,11 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ - pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ + pub type Error = + runtime_types::pallet_elections_phragmen::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; pub mod calls { @@ -21913,11 +15223,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Vote { pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] @@ -21935,11 +15249,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemoveVoter; impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { const PALLET: &'static str = "Elections"; @@ -21953,11 +15271,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitCandidacy { #[codec(compact)] pub candidate_count: ::core::primitive::u32, @@ -21974,13 +15296,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RenounceCandidacy { - pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + pub renouncing: + runtime_types::pallet_elections_phragmen::Renouncing, } impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { const PALLET: &'static str = "Elections"; @@ -21994,11 +15321,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemoveMember { pub who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -22019,11 +15350,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CleanDefunctVoters { pub num_voters: ::core::primitive::u32, pub num_defunct: ::core::primitive::u32, @@ -22064,37 +15399,10 @@ pub mod api { "vote", types::Vote { votes, value }, [ - 229u8, - 163u8, - 1u8, - 49u8, - 26u8, - 130u8, - 7u8, - 228u8, - 34u8, - 80u8, - 17u8, - 125u8, - 32u8, - 180u8, - 174u8, - 69u8, - 17u8, - 171u8, - 163u8, - 54u8, - 42u8, - 139u8, - 201u8, - 205u8, - 196u8, - 18u8, - 16u8, - 211u8, - 252u8, - 64u8, - 73u8, + 229u8, 163u8, 1u8, 49u8, 26u8, 130u8, 7u8, 228u8, + 34u8, 80u8, 17u8, 125u8, 32u8, 180u8, 174u8, 69u8, + 17u8, 171u8, 163u8, 54u8, 42u8, 139u8, 201u8, + 205u8, 196u8, 18u8, 16u8, 211u8, 252u8, 64u8, 73u8, 5u8, ], ) @@ -22104,43 +15412,18 @@ pub mod api { ///This removes the lock and returns the deposit. /// ///The dispatch origin of this call must be signed and be a voter. - pub fn remove_voter(&self) -> ::subxt::tx::Payload { + pub fn remove_voter( + &self, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Elections", "remove_voter", types::RemoveVoter {}, [ - 89u8, - 43u8, - 70u8, - 117u8, - 76u8, - 84u8, - 230u8, - 114u8, - 229u8, - 91u8, - 75u8, - 213u8, - 47u8, - 143u8, - 233u8, - 47u8, - 108u8, - 120u8, - 171u8, - 167u8, - 14u8, - 62u8, - 52u8, - 20u8, - 227u8, - 106u8, - 249u8, - 239u8, - 33u8, - 115u8, - 155u8, + 89u8, 43u8, 70u8, 117u8, 76u8, 84u8, 230u8, 114u8, + 229u8, 91u8, 75u8, 213u8, 47u8, 143u8, 233u8, 47u8, + 108u8, 120u8, 171u8, 167u8, 14u8, 62u8, 52u8, 20u8, + 227u8, 106u8, 249u8, 239u8, 33u8, 115u8, 155u8, 106u8, ], ) @@ -22163,46 +15446,18 @@ pub mod api { pub fn submit_candidacy( &self, candidate_count: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Elections", "submit_candidacy", - types::SubmitCandidacy { - candidate_count, - }, + types::SubmitCandidacy { candidate_count }, [ - 229u8, - 169u8, - 247u8, - 102u8, - 33u8, - 7u8, - 9u8, - 125u8, - 190u8, - 179u8, - 241u8, - 220u8, - 205u8, - 242u8, - 168u8, - 112u8, - 197u8, - 169u8, - 135u8, - 133u8, - 102u8, - 173u8, - 168u8, - 203u8, - 17u8, - 135u8, - 224u8, - 145u8, - 101u8, - 204u8, - 253u8, - 4u8, + 229u8, 169u8, 247u8, 102u8, 33u8, 7u8, 9u8, 125u8, + 190u8, 179u8, 241u8, 220u8, 205u8, 242u8, 168u8, + 112u8, 197u8, 169u8, 135u8, 133u8, 102u8, 173u8, + 168u8, 203u8, 17u8, 135u8, 224u8, 145u8, 101u8, + 204u8, 253u8, 4u8, ], ) } @@ -22229,46 +15484,18 @@ pub mod api { pub fn renounce_candidacy( &self, renouncing: runtime_types::pallet_elections_phragmen::Renouncing, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Elections", "renounce_candidacy", - types::RenounceCandidacy { - renouncing, - }, + types::RenounceCandidacy { renouncing }, [ - 230u8, - 140u8, - 205u8, - 240u8, - 110u8, - 247u8, - 242u8, - 185u8, - 228u8, - 135u8, - 243u8, - 73u8, - 71u8, - 200u8, - 88u8, - 134u8, - 132u8, - 174u8, - 190u8, - 251u8, - 81u8, - 85u8, - 174u8, - 230u8, - 94u8, - 97u8, - 96u8, - 230u8, - 15u8, - 204u8, - 247u8, - 214u8, + 230u8, 140u8, 205u8, 240u8, 110u8, 247u8, 242u8, + 185u8, 228u8, 135u8, 243u8, 73u8, 71u8, 200u8, + 88u8, 134u8, 132u8, 174u8, 190u8, 251u8, 81u8, + 85u8, 174u8, 230u8, 94u8, 97u8, 96u8, 230u8, 15u8, + 204u8, 247u8, 214u8, ], ) } @@ -22306,38 +15533,11 @@ pub mod api { rerun_election, }, [ - 121u8, - 189u8, - 213u8, - 154u8, - 126u8, - 196u8, - 140u8, - 208u8, - 152u8, - 191u8, - 224u8, - 160u8, - 42u8, - 2u8, - 243u8, - 37u8, - 120u8, - 73u8, - 160u8, - 5u8, - 243u8, - 110u8, - 167u8, - 242u8, - 22u8, - 100u8, - 93u8, - 197u8, - 209u8, - 85u8, - 201u8, - 153u8, + 121u8, 189u8, 213u8, 154u8, 126u8, 196u8, 140u8, + 208u8, 152u8, 191u8, 224u8, 160u8, 42u8, 2u8, + 243u8, 37u8, 120u8, 73u8, 160u8, 5u8, 243u8, 110u8, + 167u8, 242u8, 22u8, 100u8, 93u8, 197u8, 209u8, + 85u8, 201u8, 153u8, ], ) } @@ -22354,7 +15554,8 @@ pub mod api { &self, num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Elections", "clean_defunct_voters", @@ -22363,48 +15564,22 @@ pub mod api { num_defunct, }, [ - 103u8, - 241u8, - 66u8, - 156u8, - 118u8, - 36u8, - 101u8, - 148u8, - 76u8, - 162u8, - 240u8, - 31u8, - 114u8, - 10u8, - 247u8, - 68u8, - 163u8, - 187u8, - 117u8, - 47u8, - 14u8, - 16u8, - 103u8, - 211u8, - 243u8, - 44u8, - 235u8, - 200u8, - 127u8, - 113u8, - 98u8, - 83u8, + 103u8, 241u8, 66u8, 156u8, 118u8, 36u8, 101u8, + 148u8, 76u8, 162u8, 240u8, 31u8, 114u8, 10u8, + 247u8, 68u8, 163u8, 187u8, 117u8, 47u8, 14u8, 16u8, + 103u8, 211u8, 243u8, 44u8, 235u8, 200u8, 127u8, + 113u8, 98u8, 83u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ - pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ + pub type Event = + runtime_types::pallet_elections_phragmen::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -22415,7 +15590,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -22426,9 +15601,10 @@ pub mod api { ///slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to ///begin with. pub struct NewTerm { - pub new_members: ::std::vec::Vec< - (::subxt::utils::AccountId32, ::core::primitive::u128), - >, + pub new_members: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, } impl ::subxt::events::StaticEvent for NewTerm { const PALLET: &'static str = "Elections"; @@ -22442,7 +15618,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -22462,7 +15638,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -22481,7 +15657,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -22503,7 +15679,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -22524,7 +15700,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -22549,7 +15725,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -22590,38 +15766,11 @@ pub mod api { "Members", vec![], [ - 210u8, - 86u8, - 209u8, - 114u8, - 170u8, - 238u8, - 106u8, - 102u8, - 0u8, - 140u8, - 113u8, - 238u8, - 36u8, - 115u8, - 162u8, - 167u8, - 194u8, - 3u8, - 57u8, - 171u8, - 41u8, - 219u8, - 39u8, - 120u8, - 192u8, - 208u8, - 155u8, - 163u8, - 26u8, - 209u8, - 42u8, - 73u8, + 210u8, 86u8, 209u8, 114u8, 170u8, 238u8, 106u8, + 102u8, 0u8, 140u8, 113u8, 238u8, 36u8, 115u8, + 162u8, 167u8, 194u8, 3u8, 57u8, 171u8, 41u8, 219u8, + 39u8, 120u8, 192u8, 208u8, 155u8, 163u8, 26u8, + 209u8, 42u8, 73u8, ], ) } @@ -22648,37 +15797,10 @@ pub mod api { "RunnersUp", vec![], [ - 102u8, - 255u8, - 105u8, - 141u8, - 24u8, - 140u8, - 180u8, - 249u8, - 19u8, - 52u8, - 144u8, - 157u8, - 139u8, - 156u8, - 5u8, - 30u8, - 148u8, - 36u8, - 67u8, - 25u8, - 238u8, - 196u8, - 163u8, - 165u8, - 11u8, - 1u8, - 162u8, - 131u8, - 65u8, - 207u8, - 140u8, + 102u8, 255u8, 105u8, 141u8, 24u8, 140u8, 180u8, + 249u8, 19u8, 52u8, 144u8, 157u8, 139u8, 156u8, 5u8, + 30u8, 148u8, 36u8, 67u8, 25u8, 238u8, 196u8, 163u8, + 165u8, 11u8, 1u8, 162u8, 131u8, 65u8, 207u8, 140u8, 171u8, ], ) @@ -22693,9 +15815,10 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - (::subxt::utils::AccountId32, ::core::primitive::u128), - >, + ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -22705,37 +15828,10 @@ pub mod api { "Candidates", vec![], [ - 220u8, - 219u8, - 115u8, - 204u8, - 15u8, - 0u8, - 135u8, - 72u8, - 241u8, - 89u8, - 10u8, - 105u8, - 106u8, - 93u8, - 18u8, - 63u8, - 43u8, - 117u8, - 120u8, - 73u8, - 8u8, - 143u8, - 244u8, - 144u8, - 223u8, - 155u8, - 217u8, - 132u8, - 246u8, - 228u8, - 210u8, + 220u8, 219u8, 115u8, 204u8, 15u8, 0u8, 135u8, 72u8, + 241u8, 89u8, 10u8, 105u8, 106u8, 93u8, 18u8, 63u8, + 43u8, 117u8, 120u8, 73u8, 8u8, 143u8, 244u8, 144u8, + 223u8, 155u8, 217u8, 132u8, 246u8, 228u8, 210u8, 53u8, ], ) @@ -22755,38 +15851,11 @@ pub mod api { "ElectionRounds", vec![], [ - 97u8, - 151u8, - 159u8, - 133u8, - 59u8, - 215u8, - 12u8, - 178u8, - 203u8, - 24u8, - 138u8, - 36u8, - 108u8, - 134u8, - 217u8, - 137u8, - 24u8, - 6u8, - 126u8, - 87u8, - 49u8, - 90u8, - 198u8, - 16u8, - 36u8, - 109u8, - 223u8, - 190u8, - 81u8, - 7u8, - 239u8, - 243u8, + 97u8, 151u8, 159u8, 133u8, 59u8, 215u8, 12u8, + 178u8, 203u8, 24u8, 138u8, 36u8, 108u8, 134u8, + 217u8, 137u8, 24u8, 6u8, 126u8, 87u8, 49u8, 90u8, + 198u8, 16u8, 36u8, 109u8, 223u8, 190u8, 81u8, 7u8, + 239u8, 243u8, ], ) } @@ -22869,38 +15938,10 @@ pub mod api { "Voting", Vec::new(), [ - 18u8, - 65u8, - 68u8, - 10u8, - 123u8, - 174u8, - 185u8, - 95u8, - 75u8, - 37u8, - 201u8, - 31u8, - 93u8, - 189u8, - 184u8, - 76u8, - 199u8, - 168u8, - 74u8, - 199u8, - 75u8, - 78u8, - 55u8, - 222u8, - 234u8, - 48u8, - 81u8, - 52u8, - 187u8, - 64u8, - 41u8, - 93u8, + 18u8, 65u8, 68u8, 10u8, 123u8, 174u8, 185u8, 95u8, + 75u8, 37u8, 201u8, 31u8, 93u8, 189u8, 184u8, 76u8, + 199u8, 168u8, 74u8, 199u8, 75u8, 78u8, 55u8, 222u8, + 234u8, 48u8, 81u8, 52u8, 187u8, 64u8, 41u8, 93u8, ], ) } @@ -22913,42 +15954,16 @@ pub mod api { /// Identifier for the elections-phragmen pallet's lock pub fn pallet_id( &self, - ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { + ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> + { ::subxt::constants::Address::new_static( "Elections", "PalletId", [ - 157u8, - 118u8, - 79u8, - 88u8, - 241u8, - 22u8, - 185u8, - 37u8, - 42u8, - 20u8, - 133u8, - 240u8, - 11u8, - 25u8, - 66u8, - 154u8, - 84u8, - 163u8, - 78u8, - 92u8, - 171u8, - 82u8, - 248u8, - 76u8, - 189u8, - 70u8, - 142u8, - 249u8, - 153u8, - 84u8, - 180u8, + 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, + 42u8, 20u8, 133u8, 240u8, 11u8, 25u8, 66u8, 154u8, + 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, 248u8, 76u8, + 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, ], ) @@ -22956,43 +15971,17 @@ pub mod api { /// How much should be locked up in order to submit one's candidacy. pub fn candidacy_bond( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Elections", "CandidacyBond", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -23002,128 +15991,50 @@ pub mod api { /// creating a gigantic number of votes. pub fn voting_bond_base( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Elections", "VotingBondBase", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// The amount of bond that need to be locked for each vote (32 bytes). pub fn voting_bond_factor( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Elections", "VotingBondFactor", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// Number of members to elect. pub fn desired_members( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Elections", "DesiredMembers", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -23131,42 +16042,16 @@ pub mod api { /// Number of runners_up to keep. pub fn desired_runners_up( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Elections", "DesiredRunnersUp", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -23176,42 +16061,16 @@ pub mod api { /// be in passive mode. pub fn term_duration( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Elections", "TermDuration", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -23224,42 +16083,16 @@ pub mod api { /// When this limit is reached no more candidates are accepted in the election. pub fn max_candidates( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Elections", "MaxCandidates", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -23272,42 +16105,16 @@ pub mod api { /// When the limit is reached the new voters are ignored. pub fn max_voters( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Elections", "MaxVoters", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -23318,42 +16125,16 @@ pub mod api { /// consider how it will impact `T::WeightInfo::election_phragmen`. pub fn max_votes_per_voter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Elections", "MaxVotesPerVoter", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -23365,9 +16146,11 @@ pub mod api { use super::root_mod; use super::runtime_types; ///Error of the pallet that can be returned in response to dispatches. - pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; + pub type Error = + runtime_types::pallet_election_provider_multi_phase::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. - pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; + pub type Call = + runtime_types::pallet_election_provider_multi_phase::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -23382,11 +16165,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitUnsigned { pub raw_solution: ::std::boxed::Box< runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -23407,11 +16194,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetMinimumUntrustedScore { pub maybe_next_score: ::core::option::Option< runtime_types::sp_npos_elections::ElectionScore, @@ -23429,20 +16220,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec< - ( + pub supports: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - ), - >, + >, + )>, } impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -23456,12 +16249,16 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Submit { + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Submit { pub raw_solution: ::std::boxed::Box< runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::tangle_standalone_runtime::NposSolution16, @@ -23480,16 +16277,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct GovernanceFallback { - pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: ::core::option::Option< - ::core::primitive::u32, - >, + pub maybe_max_voters: + ::core::option::Option<::core::primitive::u32>, + pub maybe_max_targets: + ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { const PALLET: &'static str = "ElectionProviderMultiPhase"; @@ -23518,7 +16319,8 @@ pub mod api { runtime_types::tangle_standalone_runtime::NposSolution16, >, witness: runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "submit_unsigned", @@ -23527,38 +16329,11 @@ pub mod api { witness, }, [ - 34u8, - 115u8, - 43u8, - 180u8, - 202u8, - 212u8, - 42u8, - 17u8, - 187u8, - 233u8, - 54u8, - 206u8, - 238u8, - 239u8, - 35u8, - 240u8, - 136u8, - 197u8, - 117u8, - 113u8, - 213u8, - 46u8, - 94u8, - 47u8, - 84u8, - 186u8, - 177u8, - 61u8, - 3u8, - 202u8, - 2u8, - 186u8, + 34u8, 115u8, 43u8, 180u8, 202u8, 212u8, 42u8, 17u8, + 187u8, 233u8, 54u8, 206u8, 238u8, 239u8, 35u8, + 240u8, 136u8, 197u8, 117u8, 113u8, 213u8, 46u8, + 94u8, 47u8, 84u8, 186u8, 177u8, 61u8, 3u8, 202u8, + 2u8, 186u8, ], ) } @@ -23572,46 +16347,18 @@ pub mod api { maybe_next_score: ::core::option::Option< runtime_types::sp_npos_elections::ElectionScore, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "set_minimum_untrusted_score", - types::SetMinimumUntrustedScore { - maybe_next_score, - }, + types::SetMinimumUntrustedScore { maybe_next_score }, [ - 36u8, - 32u8, - 197u8, - 96u8, - 189u8, - 98u8, - 96u8, - 138u8, - 84u8, - 99u8, - 235u8, - 44u8, - 103u8, - 25u8, - 118u8, - 194u8, - 166u8, - 158u8, - 212u8, - 36u8, - 243u8, - 86u8, - 202u8, - 231u8, - 189u8, - 226u8, - 21u8, - 112u8, - 20u8, - 163u8, - 229u8, - 240u8, + 36u8, 32u8, 197u8, 96u8, 189u8, 98u8, 96u8, 138u8, + 84u8, 99u8, 235u8, 44u8, 103u8, 25u8, 118u8, 194u8, + 166u8, 158u8, 212u8, 36u8, 243u8, 86u8, 202u8, + 231u8, 189u8, 226u8, 21u8, 112u8, 20u8, 163u8, + 229u8, 240u8, ], ) } @@ -23625,54 +16372,24 @@ pub mod api { ///memory/weight constrains). pub fn set_emergency_election_result( &self, - supports: ::std::vec::Vec< - ( + supports: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - ), - >, - ) -> ::subxt::tx::Payload { + >, + )>, + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "set_emergency_election_result", - types::SetEmergencyElectionResult { - supports, - }, + types::SetEmergencyElectionResult { supports }, [ - 158u8, - 35u8, - 6u8, - 145u8, - 37u8, - 239u8, - 101u8, - 90u8, - 121u8, - 123u8, - 240u8, - 131u8, - 154u8, - 13u8, - 111u8, - 120u8, - 146u8, - 151u8, - 203u8, - 125u8, - 115u8, - 255u8, - 58u8, - 154u8, - 177u8, - 204u8, - 140u8, - 87u8, - 9u8, - 63u8, - 146u8, - 209u8, + 158u8, 35u8, 6u8, 145u8, 37u8, 239u8, 101u8, 90u8, + 121u8, 123u8, 240u8, 131u8, 154u8, 13u8, 111u8, + 120u8, 146u8, 151u8, 203u8, 125u8, 115u8, 255u8, + 58u8, 154u8, 177u8, 204u8, 140u8, 87u8, 9u8, 63u8, + 146u8, 209u8, ], ) } @@ -23698,37 +16415,10 @@ pub mod api { raw_solution: ::std::boxed::Box::new(raw_solution), }, [ - 55u8, - 153u8, - 215u8, - 21u8, - 19u8, - 192u8, - 199u8, - 19u8, - 145u8, - 27u8, - 54u8, - 128u8, - 23u8, - 3u8, - 255u8, - 87u8, - 27u8, - 75u8, - 248u8, - 145u8, - 238u8, - 75u8, - 204u8, - 173u8, - 71u8, - 252u8, - 29u8, - 71u8, - 45u8, - 143u8, - 179u8, + 55u8, 153u8, 215u8, 21u8, 19u8, 192u8, 199u8, 19u8, + 145u8, 27u8, 54u8, 128u8, 23u8, 3u8, 255u8, 87u8, + 27u8, 75u8, 248u8, 145u8, 238u8, 75u8, 204u8, + 173u8, 71u8, 252u8, 29u8, 71u8, 45u8, 143u8, 179u8, 154u8, ], ) @@ -23739,9 +16429,14 @@ pub mod api { ///calling [`Call::set_emergency_election_result`]. pub fn governance_fallback( &self, - maybe_max_voters: ::core::option::Option<::core::primitive::u32>, - maybe_max_targets: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::tx::Payload { + maybe_max_voters: ::core::option::Option< + ::core::primitive::u32, + >, + maybe_max_targets: ::core::option::Option< + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", "governance_fallback", @@ -23750,48 +16445,22 @@ pub mod api { maybe_max_targets, }, [ - 168u8, - 109u8, - 243u8, - 125u8, - 188u8, - 177u8, - 251u8, - 179u8, - 158u8, - 246u8, - 179u8, - 247u8, - 87u8, - 217u8, - 190u8, - 107u8, - 207u8, - 249u8, - 204u8, - 27u8, - 166u8, - 49u8, - 135u8, - 71u8, - 88u8, - 142u8, - 58u8, - 206u8, - 137u8, - 142u8, - 75u8, - 127u8, + 168u8, 109u8, 243u8, 125u8, 188u8, 177u8, 251u8, + 179u8, 158u8, 246u8, 179u8, 247u8, 87u8, 217u8, + 190u8, 107u8, 207u8, 249u8, 204u8, 27u8, 166u8, + 49u8, 135u8, 71u8, 88u8, 142u8, 58u8, 206u8, 137u8, + 142u8, 75u8, 127u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ - pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ + pub type Event = + runtime_types::pallet_election_provider_multi_phase::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -23802,7 +16471,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -23831,7 +16500,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -23853,7 +16522,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -23874,7 +16543,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -23896,7 +16565,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -23918,19 +16587,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///There was a phase transition in a given round. pub struct PhaseTransitioned { - pub from: runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, - pub to: runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >, + pub from: + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + pub to: + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, pub round: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for PhaseTransitioned { @@ -23962,37 +16633,10 @@ pub mod api { "Round", vec![], [ - 37u8, - 2u8, - 47u8, - 240u8, - 18u8, - 213u8, - 214u8, - 74u8, - 57u8, - 4u8, - 103u8, - 253u8, - 45u8, - 17u8, - 123u8, - 203u8, - 173u8, - 170u8, - 234u8, - 109u8, - 139u8, - 143u8, - 216u8, - 3u8, - 161u8, - 5u8, - 0u8, - 106u8, - 181u8, - 214u8, - 170u8, + 37u8, 2u8, 47u8, 240u8, 18u8, 213u8, 214u8, 74u8, + 57u8, 4u8, 103u8, 253u8, 45u8, 17u8, 123u8, 203u8, + 173u8, 170u8, 234u8, 109u8, 139u8, 143u8, 216u8, + 3u8, 161u8, 5u8, 0u8, 106u8, 181u8, 214u8, 170u8, 105u8, ], ) @@ -24014,38 +16658,11 @@ pub mod api { "CurrentPhase", vec![], [ - 230u8, - 7u8, - 51u8, - 158u8, - 77u8, - 36u8, - 148u8, - 175u8, - 138u8, - 205u8, - 195u8, - 236u8, - 66u8, - 148u8, - 0u8, - 77u8, - 160u8, - 249u8, - 128u8, - 58u8, - 189u8, - 48u8, - 195u8, - 198u8, - 115u8, - 251u8, - 13u8, - 206u8, - 163u8, - 180u8, - 108u8, - 10u8, + 230u8, 7u8, 51u8, 158u8, 77u8, 36u8, 148u8, 175u8, + 138u8, 205u8, 195u8, 236u8, 66u8, 148u8, 0u8, 77u8, + 160u8, 249u8, 128u8, 58u8, 189u8, 48u8, 195u8, + 198u8, 115u8, 251u8, 13u8, 206u8, 163u8, 180u8, + 108u8, 10u8, ], ) } @@ -24060,44 +16677,17 @@ pub mod api { ::subxt::storage::address::Yes, (), (), - > { + >{ ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "QueuedSolution", vec![], [ - 64u8, - 237u8, - 221u8, - 29u8, - 144u8, - 141u8, - 147u8, - 4u8, - 46u8, - 239u8, - 34u8, - 242u8, - 164u8, - 69u8, - 108u8, - 145u8, - 95u8, - 167u8, - 34u8, - 211u8, - 103u8, - 165u8, - 183u8, - 193u8, - 245u8, - 226u8, - 140u8, - 50u8, - 176u8, - 127u8, - 108u8, - 171u8, + 64u8, 237u8, 221u8, 29u8, 144u8, 141u8, 147u8, 4u8, + 46u8, 239u8, 34u8, 242u8, 164u8, 69u8, 108u8, + 145u8, 95u8, 167u8, 34u8, 211u8, 103u8, 165u8, + 183u8, 193u8, 245u8, 226u8, 140u8, 50u8, 176u8, + 127u8, 108u8, 171u8, ], ) } @@ -24121,44 +16711,17 @@ pub mod api { ::subxt::storage::address::Yes, (), (), - > { + >{ ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "Snapshot", vec![], [ - 180u8, - 77u8, - 217u8, - 249u8, - 212u8, - 99u8, - 36u8, - 26u8, - 237u8, - 4u8, - 94u8, - 80u8, - 160u8, - 6u8, - 194u8, - 98u8, - 174u8, - 153u8, - 127u8, - 124u8, - 109u8, - 188u8, - 143u8, - 151u8, - 51u8, - 200u8, - 133u8, - 66u8, - 68u8, - 226u8, - 124u8, - 158u8, + 180u8, 77u8, 217u8, 249u8, 212u8, 99u8, 36u8, 26u8, + 237u8, 4u8, 94u8, 80u8, 160u8, 6u8, 194u8, 98u8, + 174u8, 153u8, 127u8, 124u8, 109u8, 188u8, 143u8, + 151u8, 51u8, 200u8, 133u8, 66u8, 68u8, 226u8, + 124u8, 158u8, ], ) } @@ -24179,37 +16742,10 @@ pub mod api { "DesiredTargets", vec![], [ - 67u8, - 241u8, - 33u8, - 113u8, - 62u8, - 173u8, - 233u8, - 76u8, - 99u8, - 12u8, - 61u8, - 237u8, - 21u8, - 252u8, - 39u8, - 37u8, - 86u8, - 167u8, - 173u8, - 53u8, - 238u8, - 172u8, - 97u8, - 59u8, - 27u8, - 164u8, - 163u8, - 76u8, - 140u8, - 37u8, - 159u8, + 67u8, 241u8, 33u8, 113u8, 62u8, 173u8, 233u8, 76u8, + 99u8, 12u8, 61u8, 237u8, 21u8, 252u8, 39u8, 37u8, + 86u8, 167u8, 173u8, 53u8, 238u8, 172u8, 97u8, 59u8, + 27u8, 164u8, 163u8, 76u8, 140u8, 37u8, 159u8, 250u8, ], ) @@ -24225,44 +16761,17 @@ pub mod api { ::subxt::storage::address::Yes, (), (), - > { + >{ ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SnapshotMetadata", vec![], [ - 14u8, - 189u8, - 135u8, - 84u8, - 238u8, - 133u8, - 76u8, - 176u8, - 181u8, - 185u8, - 111u8, - 102u8, - 181u8, - 14u8, - 172u8, - 86u8, - 188u8, - 139u8, - 73u8, - 192u8, - 203u8, - 117u8, - 39u8, - 119u8, - 108u8, - 225u8, - 163u8, - 36u8, - 91u8, - 30u8, - 0u8, - 196u8, + 14u8, 189u8, 135u8, 84u8, 238u8, 133u8, 76u8, + 176u8, 181u8, 185u8, 111u8, 102u8, 181u8, 14u8, + 172u8, 86u8, 188u8, 139u8, 73u8, 192u8, 203u8, + 117u8, 39u8, 119u8, 108u8, 225u8, 163u8, 36u8, + 91u8, 30u8, 0u8, 196u8, ], ) } @@ -24289,38 +16798,11 @@ pub mod api { "SignedSubmissionNextIndex", vec![], [ - 188u8, - 126u8, - 77u8, - 166u8, - 42u8, - 81u8, - 12u8, - 239u8, - 195u8, - 16u8, - 132u8, - 178u8, - 217u8, - 158u8, - 28u8, - 19u8, - 201u8, - 148u8, - 47u8, - 105u8, - 178u8, - 115u8, - 17u8, - 78u8, - 71u8, - 178u8, - 205u8, - 171u8, - 71u8, - 52u8, - 194u8, - 82u8, + 188u8, 126u8, 77u8, 166u8, 42u8, 81u8, 12u8, 239u8, + 195u8, 16u8, 132u8, 178u8, 217u8, 158u8, 28u8, + 19u8, 201u8, 148u8, 47u8, 105u8, 178u8, 115u8, + 17u8, 78u8, 71u8, 178u8, 205u8, 171u8, 71u8, 52u8, + 194u8, 82u8, ], ) } @@ -24350,38 +16832,11 @@ pub mod api { "SignedSubmissionIndices", vec![], [ - 203u8, - 96u8, - 121u8, - 1u8, - 24u8, - 150u8, - 185u8, - 93u8, - 129u8, - 63u8, - 52u8, - 163u8, - 67u8, - 45u8, - 100u8, - 11u8, - 254u8, - 224u8, - 18u8, - 1u8, - 133u8, - 246u8, - 125u8, - 211u8, - 93u8, - 99u8, - 194u8, - 105u8, - 176u8, - 162u8, - 238u8, - 181u8, + 203u8, 96u8, 121u8, 1u8, 24u8, 150u8, 185u8, 93u8, + 129u8, 63u8, 52u8, 163u8, 67u8, 45u8, 100u8, 11u8, + 254u8, 224u8, 18u8, 1u8, 133u8, 246u8, 125u8, + 211u8, 93u8, 99u8, 194u8, 105u8, 176u8, 162u8, + 238u8, 181u8, ], ) } @@ -24405,7 +16860,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionsMap", @@ -24468,44 +16923,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "ElectionProviderMultiPhase", "SignedSubmissionsMap", Vec::new(), [ - 79u8, - 183u8, - 109u8, - 221u8, - 2u8, - 64u8, - 197u8, - 162u8, - 221u8, - 170u8, - 140u8, - 136u8, - 205u8, - 111u8, - 8u8, - 179u8, - 166u8, - 104u8, - 74u8, - 219u8, - 202u8, - 123u8, - 31u8, - 129u8, - 207u8, - 58u8, - 241u8, - 91u8, - 147u8, - 112u8, - 162u8, - 105u8, + 79u8, 183u8, 109u8, 221u8, 2u8, 64u8, 197u8, 162u8, + 221u8, 170u8, 140u8, 136u8, 205u8, 111u8, 8u8, + 179u8, 166u8, 104u8, 74u8, 219u8, 202u8, 123u8, + 31u8, 129u8, 207u8, 58u8, 241u8, 91u8, 147u8, + 112u8, 162u8, 105u8, ], ) } @@ -24527,38 +16955,10 @@ pub mod api { "MinimumUntrustedScore", vec![], [ - 105u8, - 218u8, - 96u8, - 38u8, - 82u8, - 115u8, - 30u8, - 178u8, - 21u8, - 89u8, - 59u8, - 7u8, - 203u8, - 240u8, - 224u8, - 209u8, - 78u8, - 28u8, - 198u8, - 236u8, - 252u8, - 122u8, - 72u8, - 59u8, - 156u8, - 242u8, - 26u8, - 160u8, - 145u8, - 40u8, - 6u8, - 101u8, + 105u8, 218u8, 96u8, 38u8, 82u8, 115u8, 30u8, 178u8, + 21u8, 89u8, 59u8, 7u8, 203u8, 240u8, 224u8, 209u8, + 78u8, 28u8, 198u8, 236u8, 252u8, 122u8, 72u8, 59u8, + 156u8, 242u8, 26u8, 160u8, 145u8, 40u8, 6u8, 101u8, ], ) } @@ -24571,42 +16971,16 @@ pub mod api { /// Duration of the unsigned phase. pub fn unsigned_phase( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "UnsignedPhase", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -24614,42 +16988,16 @@ pub mod api { /// Duration of the signed phase. pub fn signed_phase( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedPhase", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -24665,38 +17013,11 @@ pub mod api { "ElectionProviderMultiPhase", "BetterSignedThreshold", [ - 65u8, - 93u8, - 120u8, - 165u8, - 204u8, - 81u8, - 159u8, - 163u8, - 93u8, - 135u8, - 114u8, - 121u8, - 147u8, - 35u8, - 215u8, - 213u8, - 4u8, - 223u8, - 83u8, - 37u8, - 225u8, - 200u8, - 189u8, - 156u8, - 140u8, - 36u8, - 58u8, - 46u8, - 42u8, - 232u8, - 155u8, - 0u8, + 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, ], ) } @@ -24711,38 +17032,11 @@ pub mod api { "ElectionProviderMultiPhase", "BetterUnsignedThreshold", [ - 65u8, - 93u8, - 120u8, - 165u8, - 204u8, - 81u8, - 159u8, - 163u8, - 93u8, - 135u8, - 114u8, - 121u8, - 147u8, - 35u8, - 215u8, - 213u8, - 4u8, - 223u8, - 83u8, - 37u8, - 225u8, - 200u8, - 189u8, - 156u8, - 140u8, - 36u8, - 58u8, - 46u8, - 42u8, - 232u8, - 155u8, - 0u8, + 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, ], ) } @@ -24752,42 +17046,16 @@ pub mod api { /// to submit the worker's solution. pub fn offchain_repeat( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "OffchainRepeat", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -24795,43 +17063,17 @@ pub mod api { /// The priority of the unsigned transaction submitted in the unsigned-phase pub fn miner_tx_priority( &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { + ) -> ::subxt::constants::Address<::core::primitive::u64> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerTxPriority", [ - 128u8, - 214u8, - 205u8, - 242u8, - 181u8, - 142u8, - 124u8, - 231u8, - 190u8, - 146u8, - 59u8, - 226u8, - 157u8, - 101u8, - 103u8, - 117u8, - 249u8, - 65u8, - 18u8, - 191u8, - 103u8, - 119u8, - 53u8, - 85u8, - 81u8, - 96u8, - 220u8, - 42u8, - 184u8, - 239u8, - 42u8, - 246u8, + 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, ], ) } @@ -24844,42 +17086,16 @@ pub mod api { /// attempts to submit new solutions may cause a runtime panic. pub fn signed_max_submissions( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxSubmissions", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -24898,37 +17114,10 @@ pub mod api { "ElectionProviderMultiPhase", "SignedMaxWeight", [ - 222u8, - 183u8, - 203u8, - 169u8, - 31u8, - 134u8, - 28u8, - 12u8, - 47u8, - 140u8, - 71u8, - 74u8, - 61u8, - 55u8, - 71u8, - 236u8, - 215u8, - 83u8, - 28u8, - 70u8, - 45u8, - 128u8, - 184u8, - 57u8, - 101u8, - 83u8, - 42u8, - 165u8, - 34u8, - 155u8, - 64u8, + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, + 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, + 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, + 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) @@ -24936,42 +17125,16 @@ pub mod api { /// The maximum amount of unchecked solutions to refund the call fee for. pub fn signed_max_refunds( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedMaxRefunds", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -24979,172 +17142,68 @@ pub mod api { /// Base reward for a signed solution pub fn signed_reward_base( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedRewardBase", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// Base deposit for a signed solution. pub fn signed_deposit_base( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositBase", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// Per-byte deposit for a signed solution. pub fn signed_deposit_byte( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositByte", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// Per-weight deposit for a signed solution. pub fn signed_deposit_weight( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "SignedDepositWeight", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -25153,42 +17212,16 @@ pub mod api { /// take place over multiple blocks. pub fn max_electing_voters( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxElectingVoters", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -25196,43 +17229,17 @@ pub mod api { /// The maximum number of electable targets to put in the snapshot. pub fn max_electable_targets( &self, - ) -> ::subxt::constants::Address<::core::primitive::u16> { + ) -> ::subxt::constants::Address<::core::primitive::u16> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxElectableTargets", [ - 116u8, - 33u8, - 2u8, - 170u8, - 181u8, - 147u8, - 171u8, - 169u8, - 167u8, - 227u8, - 41u8, - 144u8, - 11u8, - 236u8, - 82u8, - 100u8, - 74u8, - 60u8, - 184u8, - 72u8, - 169u8, - 90u8, - 208u8, - 135u8, - 15u8, - 117u8, - 10u8, - 123u8, - 128u8, - 193u8, - 29u8, - 70u8, + 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, + 169u8, 167u8, 227u8, 41u8, 144u8, 11u8, 236u8, + 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, + 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, + 193u8, 29u8, 70u8, ], ) } @@ -25242,84 +17249,32 @@ pub mod api { /// Note: This must always be greater or equal to `T::DataProvider::desired_targets()`. pub fn max_winners( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MaxWinners", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } pub fn miner_max_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxLength", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -25333,121 +17288,42 @@ pub mod api { "ElectionProviderMultiPhase", "MinerMaxWeight", [ - 222u8, - 183u8, - 203u8, - 169u8, - 31u8, - 134u8, - 28u8, - 12u8, - 47u8, - 140u8, - 71u8, - 74u8, - 61u8, - 55u8, - 71u8, - 236u8, - 215u8, - 83u8, - 28u8, - 70u8, - 45u8, - 128u8, - 184u8, - 57u8, - 101u8, - 83u8, - 42u8, - 165u8, - 34u8, - 155u8, - 64u8, + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, + 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, + 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, + 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) } pub fn miner_max_votes_per_voter( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxVotesPerVoter", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) } pub fn miner_max_winners( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", "MinerMaxWinners", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -25459,9 +17335,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; @@ -25479,11 +17355,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Bond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -25503,11 +17383,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BondExtra { #[codec(compact)] pub max_additional: ::core::primitive::u128, @@ -25524,11 +17408,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Unbond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -25546,11 +17434,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WithdrawUnbonded { pub num_slashing_spans: ::core::primitive::u32, } @@ -25566,11 +17458,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Validate { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } @@ -25586,11 +17482,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Nominate { pub targets: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -25611,11 +17511,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Chill; impl ::subxt::blocks::StaticExtrinsic for Chill { const PALLET: &'static str = "Staking"; @@ -25629,11 +17533,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetPayee { pub payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, @@ -25651,11 +17559,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetController; impl ::subxt::blocks::StaticExtrinsic for SetController { const PALLET: &'static str = "Staking"; @@ -25669,11 +17581,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetValidatorCount { #[codec(compact)] pub new: ::core::primitive::u32, @@ -25690,11 +17606,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: ::core::primitive::u32, @@ -25711,13 +17631,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ScaleValidatorCount { - pub factor: runtime_types::sp_arithmetic::per_things::Percent, + pub factor: + runtime_types::sp_arithmetic::per_things::Percent, } impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { const PALLET: &'static str = "Staking"; @@ -25731,11 +17656,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceNoEras; impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { const PALLET: &'static str = "Staking"; @@ -25749,11 +17678,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceNewEra; impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { const PALLET: &'static str = "Staking"; @@ -25767,13 +17700,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub invulnerables: + ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { const PALLET: &'static str = "Staking"; @@ -25787,11 +17725,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceUnstake { pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, @@ -25808,11 +17750,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceNewEraAlways; impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { const PALLET: &'static str = "Staking"; @@ -25826,11 +17772,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CancelDeferredSlash { pub era: ::core::primitive::u32, pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, @@ -25847,11 +17797,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PayoutStakers { pub validator_stash: ::subxt::utils::AccountId32, pub era: ::core::primitive::u32, @@ -25868,11 +17822,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Rebond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -25889,11 +17847,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ReapStash { pub stash: ::subxt::utils::AccountId32, pub num_slashing_spans: ::core::primitive::u32, @@ -25910,11 +17872,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Kick { pub who: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -25935,30 +17901,40 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetStakingConfigs { - pub min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub min_validator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub max_nominator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub max_validator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub chill_threshold: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + pub min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + pub min_commission: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, } impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { const PALLET: &'static str = "Staking"; @@ -25972,11 +17948,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ChillOther { pub controller: ::subxt::utils::AccountId32, } @@ -25992,11 +17972,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceApplyMinCommission { pub validator_stash: ::subxt::utils::AccountId32, } @@ -26012,11 +17996,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetMinCommission { pub new: runtime_types::sp_arithmetic::per_things::Perbill, } @@ -26054,38 +18042,11 @@ pub mod api { "bond", types::Bond { value, payee }, [ - 45u8, - 207u8, - 34u8, - 221u8, - 252u8, - 224u8, - 162u8, - 185u8, - 67u8, - 224u8, - 88u8, - 91u8, - 232u8, - 114u8, - 183u8, - 44u8, - 39u8, - 5u8, - 12u8, - 163u8, - 57u8, - 31u8, - 251u8, - 58u8, - 37u8, - 232u8, - 206u8, - 75u8, - 164u8, - 26u8, - 170u8, - 101u8, + 45u8, 207u8, 34u8, 221u8, 252u8, 224u8, 162u8, + 185u8, 67u8, 224u8, 88u8, 91u8, 232u8, 114u8, + 183u8, 44u8, 39u8, 5u8, 12u8, 163u8, 57u8, 31u8, + 251u8, 58u8, 37u8, 232u8, 206u8, 75u8, 164u8, 26u8, + 170u8, 101u8, ], ) } @@ -26112,38 +18073,11 @@ pub mod api { "bond_extra", types::BondExtra { max_additional }, [ - 9u8, - 143u8, - 179u8, - 99u8, - 91u8, - 254u8, - 114u8, - 189u8, - 202u8, - 245u8, - 48u8, - 130u8, - 103u8, - 17u8, - 183u8, - 177u8, - 172u8, - 156u8, - 227u8, - 145u8, - 191u8, - 134u8, - 81u8, - 3u8, - 170u8, - 85u8, - 40u8, - 56u8, - 216u8, - 95u8, - 232u8, - 52u8, + 9u8, 143u8, 179u8, 99u8, 91u8, 254u8, 114u8, 189u8, + 202u8, 245u8, 48u8, 130u8, 103u8, 17u8, 183u8, + 177u8, 172u8, 156u8, 227u8, 145u8, 191u8, 134u8, + 81u8, 3u8, 170u8, 85u8, 40u8, 56u8, 216u8, 95u8, + 232u8, 52u8, ], ) } @@ -26169,44 +18103,17 @@ pub mod api { pub fn unbond( &self, value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "unbond", - types::Unbond { value }, - [ - 70u8, - 201u8, - 146u8, - 56u8, - 51u8, - 237u8, - 90u8, - 193u8, - 69u8, - 42u8, - 168u8, - 96u8, - 215u8, - 128u8, - 253u8, - 22u8, - 239u8, - 14u8, - 214u8, - 103u8, - 170u8, - 140u8, - 2u8, - 182u8, - 3u8, - 190u8, - 184u8, - 191u8, - 231u8, - 137u8, - 50u8, - 16u8, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "unbond", + types::Unbond { value }, + [ + 70u8, 201u8, 146u8, 56u8, 51u8, 237u8, 90u8, 193u8, + 69u8, 42u8, 168u8, 96u8, 215u8, 128u8, 253u8, 22u8, + 239u8, 14u8, 214u8, 103u8, 170u8, 140u8, 2u8, + 182u8, 3u8, 190u8, 184u8, 191u8, 231u8, 137u8, + 50u8, 16u8, ], ) } @@ -26227,46 +18134,18 @@ pub mod api { pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "withdraw_unbonded", - types::WithdrawUnbonded { - num_slashing_spans, - }, + types::WithdrawUnbonded { num_slashing_spans }, [ - 229u8, - 128u8, - 177u8, - 224u8, - 197u8, - 118u8, - 239u8, - 142u8, - 179u8, - 164u8, - 10u8, - 205u8, - 124u8, - 254u8, - 209u8, - 157u8, - 172u8, - 87u8, - 58u8, - 120u8, - 74u8, - 12u8, - 150u8, - 117u8, - 234u8, - 32u8, - 191u8, - 182u8, - 92u8, - 97u8, - 77u8, - 59u8, + 229u8, 128u8, 177u8, 224u8, 197u8, 118u8, 239u8, + 142u8, 179u8, 164u8, 10u8, 205u8, 124u8, 254u8, + 209u8, 157u8, 172u8, 87u8, 58u8, 120u8, 74u8, 12u8, + 150u8, 117u8, 234u8, 32u8, 191u8, 182u8, 92u8, + 97u8, 77u8, 59u8, ], ) } @@ -26284,37 +18163,10 @@ pub mod api { "validate", types::Validate { prefs }, [ - 63u8, - 83u8, - 12u8, - 16u8, - 56u8, - 84u8, - 41u8, - 141u8, - 202u8, - 0u8, - 37u8, - 30u8, - 115u8, - 2u8, - 145u8, - 101u8, - 168u8, - 89u8, - 94u8, - 98u8, - 8u8, - 45u8, - 140u8, - 237u8, - 101u8, - 136u8, - 179u8, - 162u8, - 205u8, - 41u8, - 88u8, + 63u8, 83u8, 12u8, 16u8, 56u8, 84u8, 41u8, 141u8, + 202u8, 0u8, 37u8, 30u8, 115u8, 2u8, 145u8, 101u8, + 168u8, 89u8, 94u8, 98u8, 8u8, 45u8, 140u8, 237u8, + 101u8, 136u8, 179u8, 162u8, 205u8, 41u8, 88u8, 248u8, ], ) @@ -26343,38 +18195,11 @@ pub mod api { "nominate", types::Nominate { targets }, [ - 15u8, - 90u8, - 71u8, - 240u8, - 160u8, - 193u8, - 136u8, - 125u8, - 36u8, - 150u8, - 105u8, - 92u8, - 188u8, - 102u8, - 160u8, - 56u8, - 164u8, - 250u8, - 75u8, - 106u8, - 10u8, - 123u8, - 18u8, - 50u8, - 59u8, - 128u8, - 35u8, - 199u8, - 103u8, - 109u8, - 45u8, - 223u8, + 15u8, 90u8, 71u8, 240u8, 160u8, 193u8, 136u8, + 125u8, 36u8, 150u8, 105u8, 92u8, 188u8, 102u8, + 160u8, 56u8, 164u8, 250u8, 75u8, 106u8, 10u8, + 123u8, 18u8, 50u8, 59u8, 128u8, 35u8, 199u8, 103u8, + 109u8, 45u8, 223u8, ], ) } @@ -26394,38 +18219,10 @@ pub mod api { "chill", types::Chill {}, [ - 157u8, - 75u8, - 243u8, - 69u8, - 110u8, - 192u8, - 22u8, - 27u8, - 107u8, - 68u8, - 236u8, - 58u8, - 179u8, - 34u8, - 118u8, - 98u8, - 131u8, - 62u8, - 242u8, - 84u8, - 149u8, - 24u8, - 83u8, - 223u8, - 78u8, - 12u8, - 192u8, - 22u8, - 111u8, - 11u8, - 171u8, - 149u8, + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, + 107u8, 68u8, 236u8, 58u8, 179u8, 34u8, 118u8, 98u8, + 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, 83u8, 223u8, + 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, ], ) } @@ -26452,38 +18249,11 @@ pub mod api { "set_payee", types::SetPayee { payee }, [ - 86u8, - 172u8, - 187u8, - 98u8, - 106u8, - 240u8, - 184u8, - 60u8, - 163u8, - 244u8, - 7u8, - 64u8, - 147u8, - 168u8, - 192u8, - 177u8, - 211u8, - 138u8, - 73u8, - 188u8, - 159u8, - 154u8, - 175u8, - 219u8, - 231u8, - 235u8, - 93u8, - 195u8, - 204u8, - 100u8, - 196u8, - 241u8, + 86u8, 172u8, 187u8, 98u8, 106u8, 240u8, 184u8, + 60u8, 163u8, 244u8, 7u8, 64u8, 147u8, 168u8, 192u8, + 177u8, 211u8, 138u8, 73u8, 188u8, 159u8, 154u8, + 175u8, 219u8, 231u8, 235u8, 93u8, 195u8, 204u8, + 100u8, 196u8, 241u8, ], ) } @@ -26503,44 +18273,18 @@ pub mod api { ///- Writes are limited to the `origin` account key. pub fn set_controller( &self, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "set_controller", types::SetController {}, [ - 172u8, - 27u8, - 195u8, - 188u8, - 145u8, - 203u8, - 190u8, - 174u8, - 145u8, - 43u8, - 253u8, - 87u8, - 11u8, - 229u8, - 112u8, - 18u8, - 57u8, - 101u8, - 84u8, - 235u8, - 109u8, - 228u8, - 58u8, - 129u8, - 179u8, - 174u8, - 245u8, - 169u8, - 89u8, - 240u8, - 39u8, - 67u8, + 172u8, 27u8, 195u8, 188u8, 145u8, 203u8, 190u8, + 174u8, 145u8, 43u8, 253u8, 87u8, 11u8, 229u8, + 112u8, 18u8, 57u8, 101u8, 84u8, 235u8, 109u8, + 228u8, 58u8, 129u8, 179u8, 174u8, 245u8, 169u8, + 89u8, 240u8, 39u8, 67u8, ], ) } @@ -26553,44 +18297,18 @@ pub mod api { pub fn set_validator_count( &self, new: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "set_validator_count", types::SetValidatorCount { new }, [ - 172u8, - 225u8, - 157u8, - 48u8, - 242u8, - 217u8, - 126u8, - 206u8, - 26u8, - 156u8, - 203u8, - 100u8, - 116u8, - 189u8, - 98u8, - 89u8, - 151u8, - 101u8, - 77u8, - 236u8, - 101u8, - 8u8, - 148u8, - 236u8, - 180u8, - 175u8, - 232u8, - 146u8, - 141u8, - 141u8, - 78u8, - 165u8, + 172u8, 225u8, 157u8, 48u8, 242u8, 217u8, 126u8, + 206u8, 26u8, 156u8, 203u8, 100u8, 116u8, 189u8, + 98u8, 89u8, 151u8, 101u8, 77u8, 236u8, 101u8, 8u8, + 148u8, 236u8, 180u8, 175u8, 232u8, 146u8, 141u8, + 141u8, 78u8, 165u8, ], ) } @@ -26604,46 +18322,18 @@ pub mod api { pub fn increase_validator_count( &self, additional: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "increase_validator_count", - types::IncreaseValidatorCount { - additional, - }, + types::IncreaseValidatorCount { additional }, [ - 108u8, - 67u8, - 131u8, - 248u8, - 139u8, - 227u8, - 224u8, - 221u8, - 248u8, - 94u8, - 141u8, - 104u8, - 131u8, - 250u8, - 127u8, - 164u8, - 137u8, - 211u8, - 5u8, - 27u8, - 185u8, - 251u8, - 120u8, - 243u8, - 165u8, - 50u8, - 197u8, - 161u8, - 125u8, - 195u8, - 16u8, - 29u8, + 108u8, 67u8, 131u8, 248u8, 139u8, 227u8, 224u8, + 221u8, 248u8, 94u8, 141u8, 104u8, 131u8, 250u8, + 127u8, 164u8, 137u8, 211u8, 5u8, 27u8, 185u8, + 251u8, 120u8, 243u8, 165u8, 50u8, 197u8, 161u8, + 125u8, 195u8, 16u8, 29u8, ], ) } @@ -26657,46 +18347,18 @@ pub mod api { pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "scale_validator_count", - types::ScaleValidatorCount { - factor, - }, + types::ScaleValidatorCount { factor }, [ - 93u8, - 200u8, - 119u8, - 240u8, - 148u8, - 144u8, - 175u8, - 135u8, - 102u8, - 130u8, - 183u8, - 216u8, - 28u8, - 215u8, - 155u8, - 233u8, - 152u8, - 65u8, - 49u8, - 125u8, - 196u8, - 79u8, - 31u8, - 195u8, - 233u8, - 79u8, - 150u8, - 138u8, - 103u8, - 161u8, - 78u8, - 154u8, + 93u8, 200u8, 119u8, 240u8, 148u8, 144u8, 175u8, + 135u8, 102u8, 130u8, 183u8, 216u8, 28u8, 215u8, + 155u8, 233u8, 152u8, 65u8, 49u8, 125u8, 196u8, + 79u8, 31u8, 195u8, 233u8, 79u8, 150u8, 138u8, + 103u8, 161u8, 78u8, 154u8, ], ) } @@ -26713,44 +18375,19 @@ pub mod api { ///## Complexity ///- No arguments. ///- Weight: O(1) - pub fn force_no_eras(&self) -> ::subxt::tx::Payload { + pub fn force_no_eras( + &self, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "force_no_eras", types::ForceNoEras {}, [ - 77u8, - 5u8, - 105u8, - 167u8, - 251u8, - 78u8, - 52u8, - 80u8, - 177u8, - 226u8, - 28u8, - 130u8, - 106u8, - 62u8, - 40u8, - 210u8, - 110u8, - 62u8, - 21u8, - 113u8, - 234u8, - 227u8, - 171u8, - 205u8, - 240u8, - 46u8, - 32u8, - 84u8, - 184u8, - 208u8, - 61u8, - 207u8, + 77u8, 5u8, 105u8, 167u8, 251u8, 78u8, 52u8, 80u8, + 177u8, 226u8, 28u8, 130u8, 106u8, 62u8, 40u8, + 210u8, 110u8, 62u8, 21u8, 113u8, 234u8, 227u8, + 171u8, 205u8, 240u8, 46u8, 32u8, 84u8, 184u8, + 208u8, 61u8, 207u8, ], ) } @@ -26768,44 +18405,19 @@ pub mod api { ///## Complexity ///- No arguments. ///- Weight: O(1) - pub fn force_new_era(&self) -> ::subxt::tx::Payload { + pub fn force_new_era( + &self, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "force_new_era", types::ForceNewEra {}, [ - 119u8, - 45u8, - 11u8, - 87u8, - 236u8, - 189u8, - 41u8, - 142u8, - 130u8, - 10u8, - 132u8, - 140u8, - 210u8, - 134u8, - 66u8, - 152u8, - 149u8, - 55u8, - 60u8, - 31u8, - 190u8, - 41u8, - 177u8, - 103u8, - 245u8, - 193u8, - 95u8, - 255u8, - 29u8, - 79u8, - 112u8, - 188u8, + 119u8, 45u8, 11u8, 87u8, 236u8, 189u8, 41u8, 142u8, + 130u8, 10u8, 132u8, 140u8, 210u8, 134u8, 66u8, + 152u8, 149u8, 55u8, 60u8, 31u8, 190u8, 41u8, 177u8, + 103u8, 245u8, 193u8, 95u8, 255u8, 29u8, 79u8, + 112u8, 188u8, ], ) } @@ -26815,45 +18427,17 @@ pub mod api { pub fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "set_invulnerables", - types::SetInvulnerables { - invulnerables, - }, + types::SetInvulnerables { invulnerables }, [ - 31u8, - 115u8, - 221u8, - 229u8, - 187u8, - 61u8, - 33u8, - 22u8, - 126u8, - 142u8, - 248u8, - 190u8, - 213u8, - 35u8, - 49u8, - 208u8, - 193u8, - 0u8, - 58u8, - 18u8, - 136u8, - 220u8, - 32u8, - 8u8, - 121u8, - 36u8, - 184u8, - 57u8, - 6u8, - 125u8, - 199u8, + 31u8, 115u8, 221u8, 229u8, 187u8, 61u8, 33u8, 22u8, + 126u8, 142u8, 248u8, 190u8, 213u8, 35u8, 49u8, + 208u8, 193u8, 0u8, 58u8, 18u8, 136u8, 220u8, 32u8, + 8u8, 121u8, 36u8, 184u8, 57u8, 6u8, 125u8, 199u8, 245u8, ], ) @@ -26874,37 +18458,10 @@ pub mod api { num_slashing_spans, }, [ - 205u8, - 115u8, - 222u8, - 58u8, - 168u8, - 3u8, - 59u8, - 58u8, - 220u8, - 98u8, - 204u8, - 90u8, - 36u8, - 250u8, - 178u8, - 45u8, - 213u8, - 158u8, - 92u8, - 107u8, - 3u8, - 94u8, - 118u8, - 194u8, - 187u8, - 196u8, - 101u8, - 250u8, - 36u8, - 119u8, - 21u8, + 205u8, 115u8, 222u8, 58u8, 168u8, 3u8, 59u8, 58u8, + 220u8, 98u8, 204u8, 90u8, 36u8, 250u8, 178u8, 45u8, + 213u8, 158u8, 92u8, 107u8, 3u8, 94u8, 118u8, 194u8, + 187u8, 196u8, 101u8, 250u8, 36u8, 119u8, 21u8, 19u8, ], ) @@ -26920,97 +18477,42 @@ pub mod api { ///have enough blocks to get a result. pub fn force_new_era_always( &self, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "force_new_era_always", - types::ForceNewEraAlways {}, - [ - 102u8, - 153u8, - 116u8, - 85u8, - 80u8, - 52u8, - 89u8, - 215u8, - 173u8, - 159u8, - 96u8, - 99u8, - 180u8, - 5u8, - 62u8, - 142u8, - 181u8, - 101u8, - 160u8, - 57u8, - 177u8, - 182u8, - 6u8, - 252u8, - 107u8, - 252u8, - 225u8, - 104u8, - 147u8, - 123u8, - 244u8, - 134u8, - ], - ) - } - ///Cancel enactment of a deferred slash. - /// - ///Can be called by the `T::AdminOrigin`. - /// - ///Parameters: era and indices of the slashes for that era to kill. - pub fn cancel_deferred_slash( - &self, - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", - "cancel_deferred_slash", - types::CancelDeferredSlash { - era, - slash_indices, - }, - [ - 65u8, - 90u8, - 54u8, - 7u8, - 89u8, - 238u8, - 254u8, - 76u8, - 219u8, - 26u8, - 137u8, - 181u8, - 154u8, - 49u8, - 35u8, - 99u8, - 181u8, - 193u8, - 209u8, - 181u8, - 212u8, - 153u8, - 49u8, - 83u8, - 77u8, - 170u8, - 175u8, - 142u8, - 63u8, - 187u8, - 183u8, - 199u8, + "force_new_era_always", + types::ForceNewEraAlways {}, + [ + 102u8, 153u8, 116u8, 85u8, 80u8, 52u8, 89u8, 215u8, + 173u8, 159u8, 96u8, 99u8, 180u8, 5u8, 62u8, 142u8, + 181u8, 101u8, 160u8, 57u8, 177u8, 182u8, 6u8, + 252u8, 107u8, 252u8, 225u8, 104u8, 147u8, 123u8, + 244u8, 134u8, + ], + ) + } + ///Cancel enactment of a deferred slash. + /// + ///Can be called by the `T::AdminOrigin`. + /// + ///Parameters: era and indices of the slashes for that era to kill. + pub fn cancel_deferred_slash( + &self, + era: ::core::primitive::u32, + slash_indices: ::std::vec::Vec<::core::primitive::u32>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Staking", + "cancel_deferred_slash", + types::CancelDeferredSlash { era, slash_indices }, + [ + 65u8, 90u8, 54u8, 7u8, 89u8, 238u8, 254u8, 76u8, + 219u8, 26u8, 137u8, 181u8, 154u8, 49u8, 35u8, 99u8, + 181u8, 193u8, 209u8, 181u8, 212u8, 153u8, 49u8, + 83u8, 77u8, 170u8, 175u8, 142u8, 63u8, 187u8, + 183u8, 199u8, ], ) } @@ -27029,7 +18531,8 @@ pub mod api { &self, validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "payout_stakers", @@ -27038,38 +18541,11 @@ pub mod api { era, }, [ - 69u8, - 67u8, - 140u8, - 197u8, - 89u8, - 20u8, - 59u8, - 55u8, - 142u8, - 197u8, - 62u8, - 107u8, - 239u8, - 50u8, - 237u8, - 52u8, - 4u8, - 65u8, - 119u8, - 73u8, - 138u8, - 57u8, - 46u8, - 78u8, - 252u8, - 157u8, - 187u8, - 14u8, - 232u8, - 244u8, - 217u8, - 171u8, + 69u8, 67u8, 140u8, 197u8, 89u8, 20u8, 59u8, 55u8, + 142u8, 197u8, 62u8, 107u8, 239u8, 50u8, 237u8, + 52u8, 4u8, 65u8, 119u8, 73u8, 138u8, 57u8, 46u8, + 78u8, 252u8, 157u8, 187u8, 14u8, 232u8, 244u8, + 217u8, 171u8, ], ) } @@ -27089,37 +18565,10 @@ pub mod api { "rebond", types::Rebond { value }, [ - 204u8, - 209u8, - 27u8, - 219u8, - 45u8, - 129u8, - 15u8, - 39u8, - 105u8, - 165u8, - 255u8, - 55u8, - 0u8, - 59u8, - 115u8, - 79u8, - 139u8, - 82u8, - 163u8, - 197u8, - 44u8, - 89u8, - 41u8, - 234u8, - 116u8, - 214u8, - 248u8, - 123u8, - 250u8, - 49u8, - 15u8, + 204u8, 209u8, 27u8, 219u8, 45u8, 129u8, 15u8, 39u8, + 105u8, 165u8, 255u8, 55u8, 0u8, 59u8, 115u8, 79u8, + 139u8, 82u8, 163u8, 197u8, 44u8, 89u8, 41u8, 234u8, + 116u8, 214u8, 248u8, 123u8, 250u8, 49u8, 15u8, 77u8, ], ) @@ -27149,37 +18598,10 @@ pub mod api { num_slashing_spans, }, [ - 231u8, - 240u8, - 152u8, - 33u8, - 10u8, - 60u8, - 18u8, - 233u8, - 0u8, - 229u8, - 90u8, - 45u8, - 118u8, - 29u8, - 98u8, - 109u8, - 89u8, - 7u8, - 228u8, - 254u8, - 119u8, - 125u8, - 172u8, - 209u8, - 217u8, - 107u8, - 50u8, - 226u8, - 31u8, - 5u8, - 153u8, + 231u8, 240u8, 152u8, 33u8, 10u8, 60u8, 18u8, 233u8, + 0u8, 229u8, 90u8, 45u8, 118u8, 29u8, 98u8, 109u8, + 89u8, 7u8, 228u8, 254u8, 119u8, 125u8, 172u8, + 209u8, 217u8, 107u8, 50u8, 226u8, 31u8, 5u8, 153u8, 93u8, ], ) @@ -27209,37 +18631,10 @@ pub mod api { "kick", types::Kick { who }, [ - 28u8, - 254u8, - 219u8, - 14u8, - 44u8, - 187u8, - 186u8, - 72u8, - 55u8, - 21u8, - 129u8, - 205u8, - 225u8, - 204u8, - 162u8, - 53u8, - 255u8, - 56u8, - 49u8, - 194u8, - 63u8, - 43u8, - 96u8, - 177u8, - 125u8, - 0u8, - 163u8, - 97u8, - 231u8, - 159u8, - 43u8, + 28u8, 254u8, 219u8, 14u8, 44u8, 187u8, 186u8, 72u8, + 55u8, 21u8, 129u8, 205u8, 225u8, 204u8, 162u8, + 53u8, 255u8, 56u8, 49u8, 194u8, 63u8, 43u8, 96u8, + 177u8, 125u8, 0u8, 163u8, 97u8, 231u8, 159u8, 43u8, 249u8, ], ) @@ -27281,7 +18676,8 @@ pub mod api { min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< runtime_types::sp_arithmetic::per_things::Perbill, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "set_staking_configs", @@ -27294,38 +18690,11 @@ pub mod api { min_commission, }, [ - 198u8, - 212u8, - 176u8, - 138u8, - 79u8, - 177u8, - 241u8, - 104u8, - 72u8, - 170u8, - 35u8, - 178u8, - 205u8, - 167u8, - 218u8, - 118u8, - 42u8, - 226u8, - 180u8, - 17u8, - 112u8, - 175u8, - 55u8, - 248u8, - 64u8, - 127u8, - 51u8, - 65u8, - 132u8, - 210u8, - 88u8, - 213u8, + 198u8, 212u8, 176u8, 138u8, 79u8, 177u8, 241u8, + 104u8, 72u8, 170u8, 35u8, 178u8, 205u8, 167u8, + 218u8, 118u8, 42u8, 226u8, 180u8, 17u8, 112u8, + 175u8, 55u8, 248u8, 64u8, 127u8, 51u8, 65u8, 132u8, + 210u8, 88u8, 213u8, ], ) } @@ -27364,38 +18733,11 @@ pub mod api { "chill_other", types::ChillOther { controller }, [ - 143u8, - 82u8, - 167u8, - 43u8, - 102u8, - 136u8, - 78u8, - 139u8, - 110u8, - 159u8, - 235u8, - 226u8, - 237u8, - 140u8, - 142u8, - 47u8, - 77u8, - 57u8, - 209u8, - 208u8, - 9u8, - 193u8, - 3u8, - 77u8, - 147u8, - 41u8, - 182u8, - 122u8, - 178u8, - 185u8, - 32u8, - 182u8, + 143u8, 82u8, 167u8, 43u8, 102u8, 136u8, 78u8, + 139u8, 110u8, 159u8, 235u8, 226u8, 237u8, 140u8, + 142u8, 47u8, 77u8, 57u8, 209u8, 208u8, 9u8, 193u8, + 3u8, 77u8, 147u8, 41u8, 182u8, 122u8, 178u8, 185u8, + 32u8, 182u8, ], ) } @@ -27405,45 +18747,17 @@ pub mod api { pub fn force_apply_min_commission( &self, validator_stash: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "force_apply_min_commission", - types::ForceApplyMinCommission { - validator_stash, - }, + types::ForceApplyMinCommission { validator_stash }, [ - 158u8, - 27u8, - 152u8, - 23u8, - 97u8, - 53u8, - 54u8, - 49u8, - 179u8, - 236u8, - 69u8, - 65u8, - 253u8, - 136u8, - 232u8, - 44u8, - 207u8, - 66u8, - 5u8, - 186u8, - 49u8, - 91u8, - 173u8, - 5u8, - 84u8, - 45u8, - 154u8, - 91u8, - 239u8, - 97u8, - 62u8, + 158u8, 27u8, 152u8, 23u8, 97u8, 53u8, 54u8, 49u8, + 179u8, 236u8, 69u8, 65u8, 253u8, 136u8, 232u8, + 44u8, 207u8, 66u8, 5u8, 186u8, 49u8, 91u8, 173u8, + 5u8, 84u8, 45u8, 154u8, 91u8, 239u8, 97u8, 62u8, 42u8, ], ) @@ -27455,53 +18769,27 @@ pub mod api { pub fn set_min_commission( &self, new: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Staking", "set_min_commission", types::SetMinCommission { new }, [ - 96u8, - 168u8, - 55u8, - 79u8, - 79u8, - 49u8, - 8u8, - 127u8, - 98u8, - 158u8, - 106u8, - 187u8, - 177u8, - 201u8, - 68u8, - 181u8, - 219u8, - 172u8, - 63u8, - 120u8, - 172u8, - 173u8, - 251u8, - 167u8, - 84u8, - 165u8, - 238u8, - 115u8, - 110u8, - 97u8, - 144u8, - 50u8, + 96u8, 168u8, 55u8, 79u8, 79u8, 49u8, 8u8, 127u8, + 98u8, 158u8, 106u8, 187u8, 177u8, 201u8, 68u8, + 181u8, 219u8, 172u8, 63u8, 120u8, 172u8, 173u8, + 251u8, 167u8, 84u8, 165u8, 238u8, 115u8, 110u8, + 97u8, 144u8, 50u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; pub mod events { use super::runtime_types; @@ -27513,7 +18801,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27537,7 +18825,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27559,7 +18847,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27581,7 +18869,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27606,7 +18894,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27628,7 +18916,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27647,7 +18935,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27672,7 +18960,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27694,7 +18982,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27717,7 +19005,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27739,7 +19027,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27758,7 +19046,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27779,7 +19067,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27801,7 +19089,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27823,7 +19111,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -27856,38 +19144,11 @@ pub mod api { "ValidatorCount", vec![], [ - 105u8, - 251u8, - 193u8, - 198u8, - 232u8, - 118u8, - 73u8, - 115u8, - 205u8, - 78u8, - 49u8, - 253u8, - 140u8, - 193u8, - 161u8, - 205u8, - 13u8, - 147u8, - 125u8, - 102u8, - 142u8, - 244u8, - 210u8, - 227u8, - 225u8, - 46u8, - 144u8, - 122u8, - 254u8, - 48u8, - 44u8, - 169u8, + 105u8, 251u8, 193u8, 198u8, 232u8, 118u8, 73u8, + 115u8, 205u8, 78u8, 49u8, 253u8, 140u8, 193u8, + 161u8, 205u8, 13u8, 147u8, 125u8, 102u8, 142u8, + 244u8, 210u8, 227u8, 225u8, 46u8, 144u8, 122u8, + 254u8, 48u8, 44u8, 169u8, ], ) } @@ -27906,37 +19167,10 @@ pub mod api { "MinimumValidatorCount", vec![], [ - 103u8, - 178u8, - 29u8, - 91u8, - 90u8, - 31u8, - 49u8, - 9u8, - 11u8, - 58u8, - 178u8, - 30u8, - 219u8, - 55u8, - 58u8, - 181u8, - 80u8, - 155u8, - 9u8, - 11u8, - 38u8, - 46u8, - 125u8, - 179u8, - 220u8, - 20u8, - 212u8, - 181u8, - 136u8, - 103u8, - 58u8, + 103u8, 178u8, 29u8, 91u8, 90u8, 31u8, 49u8, 9u8, + 11u8, 58u8, 178u8, 30u8, 219u8, 55u8, 58u8, 181u8, + 80u8, 155u8, 9u8, 11u8, 38u8, 46u8, 125u8, 179u8, + 220u8, 20u8, 212u8, 181u8, 136u8, 103u8, 58u8, 48u8, ], ) @@ -27958,38 +19192,11 @@ pub mod api { "Invulnerables", vec![], [ - 199u8, - 35u8, - 0u8, - 229u8, - 160u8, - 128u8, - 139u8, - 245u8, - 27u8, - 133u8, - 47u8, - 240u8, - 86u8, - 195u8, - 90u8, - 169u8, - 158u8, - 231u8, - 128u8, - 58u8, - 24u8, - 173u8, - 138u8, - 122u8, - 226u8, - 104u8, - 239u8, - 114u8, - 91u8, - 165u8, - 207u8, - 150u8, + 199u8, 35u8, 0u8, 229u8, 160u8, 128u8, 139u8, + 245u8, 27u8, 133u8, 47u8, 240u8, 86u8, 195u8, 90u8, + 169u8, 158u8, 231u8, 128u8, 58u8, 24u8, 173u8, + 138u8, 122u8, 226u8, 104u8, 239u8, 114u8, 91u8, + 165u8, 207u8, 150u8, ], ) } @@ -28066,38 +19273,11 @@ pub mod api { "Bonded", Vec::new(), [ - 146u8, - 230u8, - 48u8, - 190u8, - 166u8, - 127u8, - 237u8, - 216u8, - 71u8, - 33u8, - 108u8, - 121u8, - 204u8, - 211u8, - 133u8, - 123u8, - 52u8, - 164u8, - 201u8, - 209u8, - 236u8, - 35u8, - 190u8, - 77u8, - 126u8, - 150u8, - 79u8, - 244u8, - 15u8, - 247u8, - 161u8, - 107u8, + 146u8, 230u8, 48u8, 190u8, 166u8, 127u8, 237u8, + 216u8, 71u8, 33u8, 108u8, 121u8, 204u8, 211u8, + 133u8, 123u8, 52u8, 164u8, 201u8, 209u8, 236u8, + 35u8, 190u8, 77u8, 126u8, 150u8, 79u8, 244u8, 15u8, + 247u8, 161u8, 107u8, ], ) } @@ -28116,38 +19296,11 @@ pub mod api { "MinNominatorBond", vec![], [ - 102u8, - 115u8, - 254u8, - 15u8, - 191u8, - 228u8, - 85u8, - 249u8, - 112u8, - 190u8, - 129u8, - 243u8, - 236u8, - 39u8, - 195u8, - 232u8, - 10u8, - 230u8, - 11u8, - 144u8, - 115u8, - 1u8, - 45u8, - 70u8, - 181u8, - 161u8, - 17u8, - 92u8, - 19u8, - 70u8, - 100u8, - 94u8, + 102u8, 115u8, 254u8, 15u8, 191u8, 228u8, 85u8, + 249u8, 112u8, 190u8, 129u8, 243u8, 236u8, 39u8, + 195u8, 232u8, 10u8, 230u8, 11u8, 144u8, 115u8, 1u8, + 45u8, 70u8, 181u8, 161u8, 17u8, 92u8, 19u8, 70u8, + 100u8, 94u8, ], ) } @@ -28166,88 +19319,34 @@ pub mod api { "MinValidatorBond", vec![], [ - 146u8, - 249u8, - 26u8, - 52u8, - 224u8, - 81u8, - 85u8, - 153u8, - 118u8, - 169u8, - 140u8, - 37u8, - 208u8, - 242u8, - 8u8, - 29u8, - 156u8, - 73u8, - 154u8, - 162u8, - 186u8, - 159u8, - 119u8, - 100u8, - 109u8, - 227u8, - 6u8, - 139u8, - 155u8, - 203u8, - 167u8, - 244u8, + 146u8, 249u8, 26u8, 52u8, 224u8, 81u8, 85u8, 153u8, + 118u8, 169u8, 140u8, 37u8, 208u8, 242u8, 8u8, 29u8, + 156u8, 73u8, 154u8, 162u8, 186u8, 159u8, 119u8, + 100u8, 109u8, 227u8, 6u8, 139u8, 155u8, 203u8, + 167u8, 244u8, ], ) - } - /// The minimum active nominator stake of the last successful election. - pub fn minimum_active_stake( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u128, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "MinimumActiveStake", - vec![], - [ - 166u8, - 211u8, - 59u8, - 23u8, - 2u8, - 160u8, - 244u8, - 52u8, - 153u8, - 12u8, - 103u8, - 113u8, - 51u8, - 232u8, - 145u8, - 188u8, - 54u8, - 67u8, - 227u8, - 221u8, - 186u8, - 6u8, - 28u8, - 63u8, - 146u8, - 212u8, - 233u8, - 173u8, - 134u8, - 41u8, - 169u8, - 153u8, + } + /// The minimum active nominator stake of the last successful election. + pub fn minimum_active_stake( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumActiveStake", + vec![], + [ + 166u8, 211u8, 59u8, 23u8, 2u8, 160u8, 244u8, 52u8, + 153u8, 12u8, 103u8, 113u8, 51u8, 232u8, 145u8, + 188u8, 54u8, 67u8, 227u8, 221u8, 186u8, 6u8, 28u8, + 63u8, 146u8, 212u8, 233u8, 173u8, 134u8, 41u8, + 169u8, 153u8, ], ) } @@ -28268,38 +19367,11 @@ pub mod api { "MinCommission", vec![], [ - 220u8, - 197u8, - 232u8, - 212u8, - 205u8, - 242u8, - 121u8, - 165u8, - 255u8, - 199u8, - 122u8, - 20u8, - 145u8, - 245u8, - 175u8, - 26u8, - 45u8, - 70u8, - 207u8, - 26u8, - 112u8, - 234u8, - 181u8, - 167u8, - 140u8, - 75u8, - 15u8, - 1u8, - 221u8, - 168u8, - 17u8, - 211u8, + 220u8, 197u8, 232u8, 212u8, 205u8, 242u8, 121u8, + 165u8, 255u8, 199u8, 122u8, 20u8, 145u8, 245u8, + 175u8, 26u8, 45u8, 70u8, 207u8, 26u8, 112u8, 234u8, + 181u8, 167u8, 140u8, 75u8, 15u8, 1u8, 221u8, 168u8, + 17u8, 211u8, ], ) } @@ -28372,38 +19444,11 @@ pub mod api { "Ledger", Vec::new(), [ - 77u8, - 39u8, - 230u8, - 122u8, - 108u8, - 191u8, - 251u8, - 28u8, - 233u8, - 225u8, - 195u8, - 224u8, - 234u8, - 90u8, - 173u8, - 170u8, - 143u8, - 246u8, - 246u8, - 21u8, - 38u8, - 187u8, - 112u8, - 111u8, - 206u8, - 181u8, - 183u8, - 186u8, - 96u8, - 8u8, - 225u8, - 224u8, + 77u8, 39u8, 230u8, 122u8, 108u8, 191u8, 251u8, + 28u8, 233u8, 225u8, 195u8, 224u8, 234u8, 90u8, + 173u8, 170u8, 143u8, 246u8, 246u8, 21u8, 38u8, + 187u8, 112u8, 111u8, 206u8, 181u8, 183u8, 186u8, + 96u8, 8u8, 225u8, 224u8, ], ) } @@ -28484,38 +19529,11 @@ pub mod api { "Payee", Vec::new(), [ - 198u8, - 238u8, - 10u8, - 104u8, - 204u8, - 7u8, - 193u8, - 254u8, - 169u8, - 18u8, - 187u8, - 212u8, - 90u8, - 243u8, - 73u8, - 29u8, - 216u8, - 144u8, - 93u8, - 140u8, - 11u8, - 124u8, - 4u8, - 191u8, - 107u8, - 61u8, - 15u8, - 152u8, - 70u8, - 82u8, - 60u8, - 75u8, + 198u8, 238u8, 10u8, 104u8, 204u8, 7u8, 193u8, + 254u8, 169u8, 18u8, 187u8, 212u8, 90u8, 243u8, + 73u8, 29u8, 216u8, 144u8, 93u8, 140u8, 11u8, 124u8, + 4u8, 191u8, 107u8, 61u8, 15u8, 152u8, 70u8, 82u8, + 60u8, 75u8, ], ) } @@ -28592,37 +19610,10 @@ pub mod api { "Validators", Vec::new(), [ - 149u8, - 207u8, - 68u8, - 38u8, - 24u8, - 220u8, - 207u8, - 84u8, - 236u8, - 33u8, - 210u8, - 124u8, - 200u8, - 99u8, - 98u8, - 29u8, - 235u8, - 46u8, - 124u8, - 4u8, - 203u8, - 6u8, - 209u8, - 21u8, - 124u8, - 236u8, - 112u8, - 118u8, - 180u8, - 85u8, - 78u8, + 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, + 236u8, 33u8, 210u8, 124u8, 200u8, 99u8, 98u8, 29u8, + 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, 209u8, 21u8, + 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, ], ) @@ -28642,38 +19633,11 @@ pub mod api { "CounterForValidators", vec![], [ - 169u8, - 146u8, - 194u8, - 114u8, - 57u8, - 232u8, - 137u8, - 93u8, - 214u8, - 98u8, - 176u8, - 151u8, - 237u8, - 165u8, - 176u8, - 252u8, - 73u8, - 124u8, - 22u8, - 166u8, - 225u8, - 217u8, - 65u8, - 56u8, - 174u8, - 12u8, - 32u8, - 2u8, - 7u8, - 173u8, - 125u8, - 235u8, + 169u8, 146u8, 194u8, 114u8, 57u8, 232u8, 137u8, + 93u8, 214u8, 98u8, 176u8, 151u8, 237u8, 165u8, + 176u8, 252u8, 73u8, 124u8, 22u8, 166u8, 225u8, + 217u8, 65u8, 56u8, 174u8, 12u8, 32u8, 2u8, 7u8, + 173u8, 125u8, 235u8, ], ) } @@ -28694,38 +19658,11 @@ pub mod api { "MaxValidatorsCount", vec![], [ - 139u8, - 116u8, - 236u8, - 217u8, - 110u8, - 47u8, - 140u8, - 197u8, - 184u8, - 246u8, - 180u8, - 188u8, - 233u8, - 99u8, - 102u8, - 21u8, - 114u8, - 23u8, - 143u8, - 163u8, - 224u8, - 250u8, - 248u8, - 185u8, - 235u8, - 94u8, - 110u8, - 83u8, - 170u8, - 123u8, - 113u8, - 168u8, + 139u8, 116u8, 236u8, 217u8, 110u8, 47u8, 140u8, + 197u8, 184u8, 246u8, 180u8, 188u8, 233u8, 99u8, + 102u8, 21u8, 114u8, 23u8, 143u8, 163u8, 224u8, + 250u8, 248u8, 185u8, 235u8, 94u8, 110u8, 83u8, + 170u8, 123u8, 113u8, 168u8, ], ) } @@ -28832,37 +19769,10 @@ pub mod api { "Nominators", Vec::new(), [ - 114u8, - 45u8, - 86u8, - 23u8, - 12u8, - 98u8, - 114u8, - 3u8, - 170u8, - 11u8, - 100u8, - 17u8, - 122u8, - 158u8, - 192u8, - 21u8, - 160u8, - 87u8, - 85u8, - 142u8, - 241u8, - 232u8, - 25u8, - 6u8, - 36u8, - 85u8, - 155u8, - 79u8, - 124u8, - 173u8, - 0u8, + 114u8, 45u8, 86u8, 23u8, 12u8, 98u8, 114u8, 3u8, + 170u8, 11u8, 100u8, 17u8, 122u8, 158u8, 192u8, + 21u8, 160u8, 87u8, 85u8, 142u8, 241u8, 232u8, 25u8, + 6u8, 36u8, 85u8, 155u8, 79u8, 124u8, 173u8, 0u8, 252u8, ], ) @@ -28882,38 +19792,11 @@ pub mod api { "CounterForNominators", vec![], [ - 150u8, - 236u8, - 184u8, - 12u8, - 224u8, - 26u8, - 13u8, - 204u8, - 208u8, - 178u8, - 68u8, - 148u8, - 232u8, - 85u8, - 74u8, - 248u8, - 167u8, - 61u8, - 88u8, - 126u8, - 40u8, - 20u8, - 73u8, - 47u8, - 94u8, - 57u8, - 144u8, - 77u8, - 156u8, - 179u8, - 55u8, - 49u8, + 150u8, 236u8, 184u8, 12u8, 224u8, 26u8, 13u8, + 204u8, 208u8, 178u8, 68u8, 148u8, 232u8, 85u8, + 74u8, 248u8, 167u8, 61u8, 88u8, 126u8, 40u8, 20u8, + 73u8, 47u8, 94u8, 57u8, 144u8, 77u8, 156u8, 179u8, + 55u8, 49u8, ], ) } @@ -28934,38 +19817,11 @@ pub mod api { "MaxNominatorsCount", vec![], [ - 11u8, - 234u8, - 179u8, - 254u8, - 95u8, - 119u8, - 35u8, - 255u8, - 141u8, - 95u8, - 148u8, - 209u8, - 43u8, - 202u8, - 19u8, - 57u8, - 185u8, - 50u8, - 152u8, - 192u8, - 95u8, - 13u8, - 158u8, - 245u8, - 113u8, - 199u8, - 255u8, - 187u8, - 37u8, - 44u8, - 8u8, - 119u8, + 11u8, 234u8, 179u8, 254u8, 95u8, 119u8, 35u8, + 255u8, 141u8, 95u8, 148u8, 209u8, 43u8, 202u8, + 19u8, 57u8, 185u8, 50u8, 152u8, 192u8, 95u8, 13u8, + 158u8, 245u8, 113u8, 199u8, 255u8, 187u8, 37u8, + 44u8, 8u8, 119u8, ], ) } @@ -28987,38 +19843,11 @@ pub mod api { "CurrentEra", vec![], [ - 247u8, - 239u8, - 171u8, - 18u8, - 137u8, - 240u8, - 213u8, - 3u8, - 173u8, - 173u8, - 236u8, - 141u8, - 202u8, - 191u8, - 228u8, - 120u8, - 196u8, - 188u8, - 13u8, - 66u8, - 253u8, - 117u8, - 90u8, - 8u8, - 158u8, - 11u8, - 236u8, - 141u8, - 178u8, - 44u8, - 119u8, - 25u8, + 247u8, 239u8, 171u8, 18u8, 137u8, 240u8, 213u8, + 3u8, 173u8, 173u8, 236u8, 141u8, 202u8, 191u8, + 228u8, 120u8, 196u8, 188u8, 13u8, 66u8, 253u8, + 117u8, 90u8, 8u8, 158u8, 11u8, 236u8, 141u8, 178u8, + 44u8, 119u8, 25u8, ], ) } @@ -29040,38 +19869,11 @@ pub mod api { "ActiveEra", vec![], [ - 24u8, - 229u8, - 66u8, - 56u8, - 111u8, - 234u8, - 139u8, - 93u8, - 245u8, - 137u8, - 110u8, - 110u8, - 121u8, - 15u8, - 216u8, - 207u8, - 97u8, - 120u8, - 125u8, - 45u8, - 61u8, - 2u8, - 50u8, - 100u8, - 3u8, - 106u8, - 12u8, - 233u8, - 123u8, - 156u8, - 145u8, - 38u8, + 24u8, 229u8, 66u8, 56u8, 111u8, 234u8, 139u8, 93u8, + 245u8, 137u8, 110u8, 110u8, 121u8, 15u8, 216u8, + 207u8, 97u8, 120u8, 125u8, 45u8, 61u8, 2u8, 50u8, + 100u8, 3u8, 106u8, 12u8, 233u8, 123u8, 156u8, + 145u8, 38u8, ], ) } @@ -29150,38 +19952,11 @@ pub mod api { "ErasStartSessionIndex", Vec::new(), [ - 72u8, - 185u8, - 246u8, - 202u8, - 79u8, - 127u8, - 173u8, - 74u8, - 216u8, - 238u8, - 58u8, - 82u8, - 235u8, - 222u8, - 76u8, - 144u8, - 97u8, - 84u8, - 17u8, - 164u8, - 132u8, - 167u8, - 24u8, - 195u8, - 175u8, - 132u8, - 156u8, - 87u8, - 234u8, - 147u8, - 103u8, - 58u8, + 72u8, 185u8, 246u8, 202u8, 79u8, 127u8, 173u8, + 74u8, 216u8, 238u8, 58u8, 82u8, 235u8, 222u8, 76u8, + 144u8, 97u8, 84u8, 17u8, 164u8, 132u8, 167u8, 24u8, + 195u8, 175u8, 132u8, 156u8, 87u8, 234u8, 147u8, + 103u8, 58u8, ], ) } @@ -29273,38 +20048,11 @@ pub mod api { "ErasStakers", Vec::new(), [ - 103u8, - 38u8, - 198u8, - 91u8, - 133u8, - 9u8, - 10u8, - 201u8, - 103u8, - 169u8, - 159u8, - 172u8, - 59u8, - 238u8, - 21u8, - 30u8, - 140u8, - 183u8, - 160u8, - 61u8, - 36u8, - 162u8, - 244u8, - 61u8, - 78u8, - 33u8, - 134u8, - 176u8, - 112u8, - 153u8, - 192u8, - 252u8, + 103u8, 38u8, 198u8, 91u8, 133u8, 9u8, 10u8, 201u8, + 103u8, 169u8, 159u8, 172u8, 59u8, 238u8, 21u8, + 30u8, 140u8, 183u8, 160u8, 61u8, 36u8, 162u8, + 244u8, 61u8, 78u8, 33u8, 134u8, 176u8, 112u8, + 153u8, 192u8, 252u8, ], ) } @@ -29406,38 +20154,11 @@ pub mod api { "ErasStakersClipped", Vec::new(), [ - 119u8, - 253u8, - 51u8, - 32u8, - 173u8, - 173u8, - 49u8, - 121u8, - 141u8, - 128u8, - 219u8, - 112u8, - 173u8, - 42u8, - 145u8, - 37u8, - 8u8, - 12u8, - 27u8, - 37u8, - 232u8, - 187u8, - 130u8, - 227u8, - 113u8, - 111u8, - 185u8, - 197u8, - 157u8, - 136u8, - 205u8, - 32u8, + 119u8, 253u8, 51u8, 32u8, 173u8, 173u8, 49u8, + 121u8, 141u8, 128u8, 219u8, 112u8, 173u8, 42u8, + 145u8, 37u8, 8u8, 12u8, 27u8, 37u8, 232u8, 187u8, + 130u8, 227u8, 113u8, 111u8, 185u8, 197u8, 157u8, + 136u8, 205u8, 32u8, ], ) } @@ -29503,56 +20224,29 @@ pub mod api { ) } /// Similar to `ErasStakers`, this holds the preferences of validators. - /// - /// This is keyed first by the era index to allow bulk deletion and then the stash account. - /// - /// Is it removed after `HISTORY_DEPTH` eras. - pub fn eras_validator_prefs_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_staking::ValidatorPrefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ErasValidatorPrefs", - Vec::new(), - [ - 201u8, - 204u8, - 230u8, - 197u8, - 37u8, - 83u8, - 124u8, - 26u8, - 10u8, - 75u8, - 164u8, - 102u8, - 83u8, - 24u8, - 158u8, - 127u8, - 27u8, - 173u8, - 125u8, - 63u8, - 251u8, - 128u8, - 239u8, - 182u8, - 115u8, - 109u8, - 13u8, - 97u8, - 211u8, - 104u8, - 189u8, - 127u8, + /// + /// This is keyed first by the era index to allow bulk deletion and then the stash account. + /// + /// Is it removed after `HISTORY_DEPTH` eras. + pub fn eras_validator_prefs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + Vec::new(), + [ + 201u8, 204u8, 230u8, 197u8, 37u8, 83u8, 124u8, + 26u8, 10u8, 75u8, 164u8, 102u8, 83u8, 24u8, 158u8, + 127u8, 27u8, 173u8, 125u8, 63u8, 251u8, 128u8, + 239u8, 182u8, 115u8, 109u8, 13u8, 97u8, 211u8, + 104u8, 189u8, 127u8, ], ) } @@ -29629,37 +20323,10 @@ pub mod api { "ErasValidatorReward", Vec::new(), [ - 185u8, - 85u8, - 179u8, - 163u8, - 178u8, - 168u8, - 141u8, - 200u8, - 59u8, - 77u8, - 2u8, - 197u8, - 36u8, - 188u8, - 133u8, - 117u8, - 2u8, - 25u8, - 105u8, - 132u8, - 44u8, - 75u8, - 15u8, - 82u8, - 57u8, - 89u8, - 242u8, - 234u8, - 70u8, - 244u8, - 198u8, + 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, + 200u8, 59u8, 77u8, 2u8, 197u8, 36u8, 188u8, 133u8, + 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, 15u8, + 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, ], ) @@ -29739,37 +20406,10 @@ pub mod api { "ErasRewardPoints", Vec::new(), [ - 237u8, - 135u8, - 146u8, - 156u8, - 172u8, - 48u8, - 147u8, - 207u8, - 15u8, - 86u8, - 55u8, - 38u8, - 29u8, - 253u8, - 198u8, - 192u8, - 99u8, - 213u8, - 80u8, - 72u8, - 212u8, - 60u8, - 60u8, - 180u8, - 33u8, - 17u8, - 77u8, - 0u8, - 165u8, - 225u8, - 60u8, + 237u8, 135u8, 146u8, 156u8, 172u8, 48u8, 147u8, + 207u8, 15u8, 86u8, 55u8, 38u8, 29u8, 253u8, 198u8, + 192u8, 99u8, 213u8, 80u8, 72u8, 212u8, 60u8, 60u8, + 180u8, 33u8, 17u8, 77u8, 0u8, 165u8, 225u8, 60u8, 213u8, ], ) @@ -29845,38 +20485,11 @@ pub mod api { "ErasTotalStake", Vec::new(), [ - 8u8, - 78u8, - 101u8, - 62u8, - 124u8, - 126u8, - 66u8, - 26u8, - 47u8, - 126u8, - 239u8, - 204u8, - 222u8, - 104u8, - 19u8, - 108u8, - 238u8, - 160u8, - 112u8, - 242u8, - 56u8, - 2u8, - 250u8, - 164u8, - 250u8, - 213u8, - 201u8, - 84u8, - 193u8, - 117u8, - 108u8, - 146u8, + 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, + 47u8, 126u8, 239u8, 204u8, 222u8, 104u8, 19u8, + 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, 2u8, + 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, + 117u8, 108u8, 146u8, ], ) } @@ -29895,38 +20508,11 @@ pub mod api { "ForceEra", vec![], [ - 177u8, - 148u8, - 73u8, - 108u8, - 136u8, - 126u8, - 89u8, - 18u8, - 124u8, - 66u8, - 30u8, - 102u8, - 133u8, - 164u8, - 78u8, - 214u8, - 184u8, - 163u8, - 75u8, - 164u8, - 117u8, - 233u8, - 209u8, - 158u8, - 99u8, - 208u8, - 21u8, - 194u8, - 152u8, - 82u8, - 16u8, - 222u8, + 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, + 18u8, 124u8, 66u8, 30u8, 102u8, 133u8, 164u8, 78u8, + 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, 233u8, + 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, + 82u8, 16u8, 222u8, ], ) } @@ -29947,38 +20533,11 @@ pub mod api { "SlashRewardFraction", vec![], [ - 53u8, - 88u8, - 253u8, - 237u8, - 84u8, - 228u8, - 187u8, - 130u8, - 108u8, - 195u8, - 135u8, - 25u8, - 75u8, - 52u8, - 238u8, - 62u8, - 133u8, - 38u8, - 139u8, - 129u8, - 216u8, - 193u8, - 197u8, - 216u8, - 245u8, - 171u8, - 128u8, - 207u8, - 125u8, - 246u8, - 248u8, - 7u8, + 53u8, 88u8, 253u8, 237u8, 84u8, 228u8, 187u8, + 130u8, 108u8, 195u8, 135u8, 25u8, 75u8, 52u8, + 238u8, 62u8, 133u8, 38u8, 139u8, 129u8, 216u8, + 193u8, 197u8, 216u8, 245u8, 171u8, 128u8, 207u8, + 125u8, 246u8, 248u8, 7u8, ], ) } @@ -29998,38 +20557,11 @@ pub mod api { "CanceledSlashPayout", vec![], [ - 221u8, - 88u8, - 134u8, - 81u8, - 22u8, - 229u8, - 100u8, - 27u8, - 86u8, - 244u8, - 229u8, - 107u8, - 251u8, - 119u8, - 58u8, - 153u8, - 19u8, - 20u8, - 254u8, - 169u8, - 248u8, - 220u8, - 98u8, - 118u8, - 48u8, - 213u8, - 22u8, - 79u8, - 242u8, - 250u8, - 147u8, - 173u8, + 221u8, 88u8, 134u8, 81u8, 22u8, 229u8, 100u8, 27u8, + 86u8, 244u8, 229u8, 107u8, 251u8, 119u8, 58u8, + 153u8, 19u8, 20u8, 254u8, 169u8, 248u8, 220u8, + 98u8, 118u8, 48u8, 213u8, 22u8, 79u8, 242u8, 250u8, + 147u8, 173u8, ], ) } @@ -30112,38 +20644,11 @@ pub mod api { "UnappliedSlashes", Vec::new(), [ - 121u8, - 1u8, - 135u8, - 243u8, - 99u8, - 254u8, - 238u8, - 207u8, - 145u8, - 172u8, - 186u8, - 131u8, - 181u8, - 109u8, - 199u8, - 93u8, - 129u8, - 65u8, - 106u8, - 118u8, - 197u8, - 83u8, - 65u8, - 45u8, - 149u8, - 1u8, - 85u8, - 99u8, - 239u8, - 148u8, - 40u8, - 177u8, + 121u8, 1u8, 135u8, 243u8, 99u8, 254u8, 238u8, + 207u8, 145u8, 172u8, 186u8, 131u8, 181u8, 109u8, + 199u8, 93u8, 129u8, 65u8, 106u8, 118u8, 197u8, + 83u8, 65u8, 45u8, 149u8, 1u8, 85u8, 99u8, 239u8, + 148u8, 40u8, 177u8, ], ) } @@ -30155,7 +20660,10 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30165,38 +20673,11 @@ pub mod api { "BondedEras", vec![], [ - 187u8, - 216u8, - 245u8, - 253u8, - 194u8, - 182u8, - 60u8, - 244u8, - 203u8, - 84u8, - 228u8, - 163u8, - 149u8, - 205u8, - 57u8, - 176u8, - 203u8, - 156u8, - 20u8, - 29u8, - 52u8, - 234u8, - 200u8, - 63u8, - 88u8, - 49u8, - 89u8, - 117u8, - 252u8, - 75u8, - 172u8, - 53u8, + 187u8, 216u8, 245u8, 253u8, 194u8, 182u8, 60u8, + 244u8, 203u8, 84u8, 228u8, 163u8, 149u8, 205u8, + 57u8, 176u8, 203u8, 156u8, 20u8, 29u8, 52u8, 234u8, + 200u8, 63u8, 88u8, 49u8, 89u8, 117u8, 252u8, 75u8, + 172u8, 53u8, ], ) } @@ -30280,38 +20761,11 @@ pub mod api { "ValidatorSlashInEra", Vec::new(), [ - 224u8, - 141u8, - 93u8, - 44u8, - 47u8, - 157u8, - 205u8, - 12u8, - 68u8, - 41u8, - 221u8, - 210u8, - 141u8, - 225u8, - 253u8, - 22u8, - 175u8, - 11u8, - 92u8, - 76u8, - 180u8, - 4u8, - 106u8, - 135u8, - 166u8, - 47u8, - 201u8, - 43u8, - 165u8, - 42u8, - 232u8, - 219u8, + 224u8, 141u8, 93u8, 44u8, 47u8, 157u8, 205u8, 12u8, + 68u8, 41u8, 221u8, 210u8, 141u8, 225u8, 253u8, + 22u8, 175u8, 11u8, 92u8, 76u8, 180u8, 4u8, 106u8, + 135u8, 166u8, 47u8, 201u8, 43u8, 165u8, 42u8, + 232u8, 219u8, ], ) } @@ -30387,38 +20841,10 @@ pub mod api { "NominatorSlashInEra", Vec::new(), [ - 8u8, - 89u8, - 171u8, - 183u8, - 64u8, - 29u8, - 44u8, - 185u8, - 11u8, - 204u8, - 67u8, - 60u8, - 208u8, - 132u8, - 9u8, - 214u8, - 13u8, - 148u8, - 205u8, - 26u8, - 5u8, - 7u8, - 250u8, - 191u8, - 83u8, - 118u8, - 95u8, - 17u8, - 40u8, - 126u8, - 16u8, - 135u8, + 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, + 11u8, 204u8, 67u8, 60u8, 208u8, 132u8, 9u8, 214u8, + 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, 250u8, 191u8, + 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, ], ) } @@ -30491,38 +20917,11 @@ pub mod api { "SlashingSpans", Vec::new(), [ - 160u8, - 190u8, - 57u8, - 128u8, - 105u8, - 73u8, - 194u8, - 75u8, - 12u8, - 120u8, - 141u8, - 190u8, - 235u8, - 250u8, - 221u8, - 200u8, - 141u8, - 162u8, - 31u8, - 85u8, - 239u8, - 108u8, - 200u8, - 148u8, - 155u8, - 48u8, - 44u8, - 89u8, - 5u8, - 177u8, - 236u8, - 182u8, + 160u8, 190u8, 57u8, 128u8, 105u8, 73u8, 194u8, + 75u8, 12u8, 120u8, 141u8, 190u8, 235u8, 250u8, + 221u8, 200u8, 141u8, 162u8, 31u8, 85u8, 239u8, + 108u8, 200u8, 148u8, 155u8, 48u8, 44u8, 89u8, 5u8, + 177u8, 236u8, 182u8, ], ) } @@ -30604,38 +21003,11 @@ pub mod api { "SpanSlash", Vec::new(), [ - 6u8, - 241u8, - 205u8, - 89u8, - 62u8, - 181u8, - 211u8, - 216u8, - 190u8, - 41u8, - 81u8, - 136u8, - 136u8, - 139u8, - 57u8, - 243u8, - 174u8, - 150u8, - 132u8, - 211u8, - 79u8, - 138u8, - 108u8, - 218u8, - 19u8, - 225u8, - 60u8, - 26u8, - 135u8, - 6u8, - 21u8, - 116u8, + 6u8, 241u8, 205u8, 89u8, 62u8, 181u8, 211u8, 216u8, + 190u8, 41u8, 81u8, 136u8, 136u8, 139u8, 57u8, + 243u8, 174u8, 150u8, 132u8, 211u8, 79u8, 138u8, + 108u8, 218u8, 19u8, 225u8, 60u8, 26u8, 135u8, 6u8, + 21u8, 116u8, ], ) } @@ -30656,37 +21028,10 @@ pub mod api { "CurrentPlannedSession", vec![], [ - 12u8, - 47u8, - 20u8, - 104u8, - 155u8, - 181u8, - 35u8, - 91u8, - 172u8, - 97u8, - 206u8, - 135u8, - 185u8, - 142u8, - 46u8, - 72u8, - 32u8, - 118u8, - 225u8, - 191u8, - 28u8, - 130u8, - 7u8, - 38u8, - 181u8, - 233u8, - 201u8, - 8u8, - 160u8, - 161u8, - 86u8, + 12u8, 47u8, 20u8, 104u8, 155u8, 181u8, 35u8, 91u8, + 172u8, 97u8, 206u8, 135u8, 185u8, 142u8, 46u8, + 72u8, 32u8, 118u8, 225u8, 191u8, 28u8, 130u8, 7u8, + 38u8, 181u8, 233u8, 201u8, 8u8, 160u8, 161u8, 86u8, 204u8, ], ) @@ -30704,7 +21049,10 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, + ::std::vec::Vec<( + ::core::primitive::u32, + ::core::primitive::bool, + )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -30714,38 +21062,11 @@ pub mod api { "OffendingValidators", vec![], [ - 201u8, - 31u8, - 141u8, - 182u8, - 160u8, - 180u8, - 37u8, - 226u8, - 50u8, - 65u8, - 103u8, - 11u8, - 38u8, - 120u8, - 200u8, - 219u8, - 219u8, - 98u8, - 185u8, - 137u8, - 154u8, - 20u8, - 130u8, - 163u8, - 126u8, - 185u8, - 33u8, - 194u8, - 76u8, - 172u8, - 70u8, - 220u8, + 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, ], ) } @@ -30753,51 +21074,24 @@ pub mod api { /// nominators. The threshold is compared to the actual number of validators / nominators /// (`CountFor*`) in the system compared to the configured max (`Max*Count`). pub fn chill_threshold( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_arithmetic::per_things::Percent, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ChillThreshold", - vec![], - [ - 133u8, - 222u8, - 1u8, - 208u8, - 212u8, - 216u8, - 247u8, - 66u8, - 178u8, - 96u8, - 35u8, - 112u8, - 33u8, - 245u8, - 11u8, - 249u8, - 255u8, - 212u8, - 204u8, - 161u8, - 44u8, - 38u8, - 126u8, - 151u8, - 140u8, - 42u8, - 253u8, - 101u8, - 1u8, - 23u8, - 239u8, - 39u8, + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Percent, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ChillThreshold", + vec![], + [ + 133u8, 222u8, 1u8, 208u8, 212u8, 216u8, 247u8, + 66u8, 178u8, 96u8, 35u8, 112u8, 33u8, 245u8, 11u8, + 249u8, 255u8, 212u8, 204u8, 161u8, 44u8, 38u8, + 126u8, 151u8, 140u8, 42u8, 253u8, 101u8, 1u8, 23u8, + 239u8, 39u8, ], ) } @@ -30810,42 +21104,16 @@ pub mod api { /// Maximum number of nominations per nominator. pub fn max_nominations( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Staking", "MaxNominations", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -30872,42 +21140,16 @@ pub mod api { /// The test `reducing_history_depth_abrupt` shows this effect. pub fn history_depth( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Staking", "HistoryDepth", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -30915,42 +21157,16 @@ pub mod api { /// Number of sessions per era. pub fn sessions_per_era( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Staking", "SessionsPerEra", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -30958,42 +21174,16 @@ pub mod api { /// Number of eras that staked funds must remain bonded for. pub fn bonding_duration( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Staking", "BondingDuration", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -31004,42 +21194,16 @@ pub mod api { /// should be applied immediately, without opportunity for intervention. pub fn slash_defer_duration( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Staking", "SlashDeferDuration", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -31050,42 +21214,16 @@ pub mod api { /// claim their reward. This used to limit the i/o cost for the nominator payout. pub fn max_nominator_rewarded_per_validator( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Staking", "MaxNominatorRewardedPerValidator", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -31102,42 +21240,16 @@ pub mod api { /// this effect. pub fn max_unlocking_chunks( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Staking", "MaxUnlockingChunks", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -31166,11 +21278,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetKeys { pub keys: runtime_types::tangle_standalone_runtime::opaque::SessionKeys, pub proof: ::std::vec::Vec<::core::primitive::u8>, @@ -31187,11 +21303,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PurgeKeys; impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { const PALLET: &'static str = "Session"; @@ -31219,37 +21339,10 @@ pub mod api { "set_keys", types::SetKeys { keys, proof }, [ - 214u8, - 207u8, - 253u8, - 96u8, - 151u8, - 234u8, - 185u8, - 82u8, - 81u8, - 73u8, - 213u8, - 88u8, - 120u8, - 64u8, - 117u8, - 212u8, - 150u8, - 220u8, - 53u8, - 22u8, - 41u8, - 194u8, - 58u8, - 61u8, - 171u8, - 3u8, - 236u8, - 208u8, - 251u8, - 119u8, - 97u8, + 214u8, 207u8, 253u8, 96u8, 151u8, 234u8, 185u8, + 82u8, 81u8, 73u8, 213u8, 88u8, 120u8, 64u8, 117u8, + 212u8, 150u8, 220u8, 53u8, 22u8, 41u8, 194u8, 58u8, + 61u8, 171u8, 3u8, 236u8, 208u8, 251u8, 119u8, 97u8, 187u8, ], ) @@ -31266,53 +21359,28 @@ pub mod api { ///## Complexity ///- `O(1)` in number of key types. Actual cost depends on the number of length of /// `T::Keys::key_ids()` which is fixed. - pub fn purge_keys(&self) -> ::subxt::tx::Payload { + pub fn purge_keys( + &self, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", "purge_keys", types::PurgeKeys {}, [ - 215u8, - 204u8, - 146u8, - 236u8, - 32u8, - 78u8, - 198u8, - 79u8, - 85u8, - 214u8, - 15u8, - 151u8, - 158u8, - 31u8, - 146u8, - 119u8, - 119u8, - 204u8, - 151u8, - 169u8, - 226u8, - 67u8, - 217u8, - 39u8, - 241u8, - 245u8, - 203u8, - 240u8, - 203u8, - 172u8, - 16u8, - 209u8, + 215u8, 204u8, 146u8, 236u8, 32u8, 78u8, 198u8, + 79u8, 85u8, 214u8, 15u8, 151u8, 158u8, 31u8, 146u8, + 119u8, 119u8, 204u8, 151u8, 169u8, 226u8, 67u8, + 217u8, 39u8, 241u8, 245u8, 203u8, 240u8, 203u8, + 172u8, 16u8, 209u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_session::pallet::Event; pub mod events { use super::runtime_types; @@ -31325,7 +21393,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -31359,37 +21427,10 @@ pub mod api { "Validators", vec![], [ - 50u8, - 86u8, - 154u8, - 222u8, - 249u8, - 209u8, - 156u8, - 22u8, - 155u8, - 25u8, - 133u8, - 194u8, - 210u8, - 50u8, - 38u8, - 28u8, - 139u8, - 201u8, - 90u8, - 139u8, - 115u8, - 12u8, - 12u8, - 141u8, - 4u8, - 178u8, - 201u8, - 241u8, - 223u8, - 234u8, - 6u8, + 50u8, 86u8, 154u8, 222u8, 249u8, 209u8, 156u8, + 22u8, 155u8, 25u8, 133u8, 194u8, 210u8, 50u8, 38u8, + 28u8, 139u8, 201u8, 90u8, 139u8, 115u8, 12u8, 12u8, + 141u8, 4u8, 178u8, 201u8, 241u8, 223u8, 234u8, 6u8, 86u8, ], ) @@ -31409,38 +21450,11 @@ pub mod api { "CurrentIndex", vec![], [ - 167u8, - 151u8, - 125u8, - 150u8, - 159u8, - 21u8, - 78u8, - 217u8, - 237u8, - 183u8, - 135u8, - 65u8, - 187u8, - 114u8, - 188u8, - 206u8, - 16u8, - 32u8, - 69u8, - 208u8, - 134u8, - 159u8, - 232u8, - 224u8, - 243u8, - 27u8, - 31u8, - 166u8, - 145u8, - 44u8, - 221u8, - 230u8, + 167u8, 151u8, 125u8, 150u8, 159u8, 21u8, 78u8, + 217u8, 237u8, 183u8, 135u8, 65u8, 187u8, 114u8, + 188u8, 206u8, 16u8, 32u8, 69u8, 208u8, 134u8, + 159u8, 232u8, 224u8, 243u8, 27u8, 31u8, 166u8, + 145u8, 44u8, 221u8, 230u8, ], ) } @@ -31460,38 +21474,11 @@ pub mod api { "QueuedChanged", vec![], [ - 184u8, - 137u8, - 224u8, - 137u8, - 31u8, - 236u8, - 95u8, - 164u8, - 102u8, - 225u8, - 198u8, - 227u8, - 140u8, - 37u8, - 113u8, - 57u8, - 59u8, - 4u8, - 202u8, - 102u8, - 117u8, - 36u8, - 226u8, - 64u8, - 113u8, - 141u8, - 199u8, - 111u8, - 99u8, - 144u8, - 198u8, - 153u8, + 184u8, 137u8, 224u8, 137u8, 31u8, 236u8, 95u8, + 164u8, 102u8, 225u8, 198u8, 227u8, 140u8, 37u8, + 113u8, 57u8, 59u8, 4u8, 202u8, 102u8, 117u8, 36u8, + 226u8, 64u8, 113u8, 141u8, 199u8, 111u8, 99u8, + 144u8, 198u8, 153u8, ], ) } @@ -31510,44 +21497,16 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "Session", "QueuedKeys", vec![], [ - 175u8, - 29u8, - 30u8, - 102u8, - 134u8, - 46u8, - 97u8, - 170u8, - 82u8, - 141u8, - 214u8, - 92u8, - 212u8, - 0u8, - 124u8, - 155u8, - 79u8, - 59u8, - 211u8, - 156u8, - 14u8, - 69u8, - 66u8, - 134u8, - 61u8, - 33u8, - 72u8, - 190u8, - 200u8, - 150u8, - 172u8, - 78u8, + 175u8, 29u8, 30u8, 102u8, 134u8, 46u8, 97u8, 170u8, + 82u8, 141u8, 214u8, 92u8, 212u8, 0u8, 124u8, 155u8, + 79u8, 59u8, 211u8, 156u8, 14u8, 69u8, 66u8, 134u8, + 61u8, 33u8, 72u8, 190u8, 200u8, 150u8, 172u8, 78u8, ], ) } @@ -31570,38 +21529,11 @@ pub mod api { "DisabledValidators", vec![], [ - 213u8, - 19u8, - 168u8, - 234u8, - 187u8, - 200u8, - 180u8, - 97u8, - 234u8, - 189u8, - 36u8, - 233u8, - 158u8, - 184u8, - 45u8, - 35u8, - 129u8, - 213u8, - 133u8, - 8u8, - 104u8, - 183u8, - 46u8, - 68u8, - 154u8, - 240u8, - 132u8, - 22u8, - 247u8, - 11u8, - 54u8, - 221u8, + 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, ], ) } @@ -31615,64 +21547,14 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Session", "NextKeys", vec![ - ::subxt::storage::address::make_static_storage_map_key(_0 - .borrow()) - ], - [ - 164u8, - 152u8, - 177u8, - 44u8, - 182u8, - 181u8, - 247u8, - 115u8, - 9u8, - 48u8, - 213u8, - 171u8, - 122u8, - 113u8, - 21u8, - 186u8, - 183u8, - 225u8, - 209u8, - 221u8, - 233u8, - 65u8, - 107u8, - 64u8, - 101u8, - 179u8, - 30u8, - 119u8, - 165u8, - 54u8, - 214u8, - 196u8, - ], - ) - } - /// The next session keys for a validator. - pub fn next_keys_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::tangle_standalone_runtime::opaque::SessionKeys, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Session", - "NextKeys", - Vec::new(), + ::subxt::storage::address::make_static_storage_map_key(_0 + .borrow()) + ], [ 164u8, 152u8, @@ -31709,6 +21591,29 @@ pub mod api { ], ) } + /// The next session keys for a validator. + pub fn next_keys_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_standalone_runtime::opaque::SessionKeys, + (), + (), + ::subxt::storage::address::Yes, + >{ + ::subxt::storage::address::Address::new_static( + "Session", + "NextKeys", + Vec::new(), + [ + 164u8, 152u8, 177u8, 44u8, 182u8, 181u8, 247u8, + 115u8, 9u8, 48u8, 213u8, 171u8, 122u8, 113u8, 21u8, + 186u8, 183u8, 225u8, 209u8, 221u8, 233u8, 65u8, + 107u8, 64u8, 101u8, 179u8, 30u8, 119u8, 165u8, + 54u8, 214u8, 196u8, + ], + ) + } /// The owner of a key. The key is the `KeyTypeId` + the encoded key. pub fn key_owner( &self, @@ -31783,38 +21688,11 @@ pub mod api { "KeyOwner", Vec::new(), [ - 177u8, - 90u8, - 148u8, - 24u8, - 251u8, - 26u8, - 65u8, - 235u8, - 46u8, - 25u8, - 109u8, - 212u8, - 208u8, - 218u8, - 58u8, - 196u8, - 29u8, - 73u8, - 145u8, - 41u8, - 30u8, - 251u8, - 185u8, - 26u8, - 205u8, - 50u8, - 32u8, - 200u8, - 206u8, - 178u8, - 255u8, - 146u8, + 177u8, 90u8, 148u8, 24u8, 251u8, 26u8, 65u8, 235u8, + 46u8, 25u8, 109u8, 212u8, 208u8, 218u8, 58u8, + 196u8, 29u8, 73u8, 145u8, 41u8, 30u8, 251u8, 185u8, + 26u8, 205u8, 50u8, 32u8, 200u8, 206u8, 178u8, + 255u8, 146u8, ], ) } @@ -31897,38 +21775,11 @@ pub mod api { "HistoricalSessions", Vec::new(), [ - 219u8, - 105u8, - 245u8, - 54u8, - 143u8, - 81u8, - 56u8, - 104u8, - 60u8, - 207u8, - 165u8, - 92u8, - 123u8, - 2u8, - 64u8, - 117u8, - 154u8, - 135u8, - 252u8, - 234u8, - 129u8, - 159u8, - 77u8, - 38u8, - 238u8, - 220u8, - 9u8, - 88u8, - 70u8, - 200u8, - 132u8, - 152u8, + 219u8, 105u8, 245u8, 54u8, 143u8, 81u8, 56u8, + 104u8, 60u8, 207u8, 165u8, 92u8, 123u8, 2u8, 64u8, + 117u8, 154u8, 135u8, 252u8, 234u8, 129u8, 159u8, + 77u8, 38u8, 238u8, 220u8, 9u8, 88u8, 70u8, 200u8, + 132u8, 152u8, ], ) } @@ -31947,38 +21798,11 @@ pub mod api { "StoredRange", vec![], [ - 165u8, - 141u8, - 148u8, - 255u8, - 90u8, - 168u8, - 77u8, - 150u8, - 198u8, - 127u8, - 227u8, - 146u8, - 107u8, - 141u8, - 43u8, - 50u8, - 190u8, - 186u8, - 45u8, - 232u8, - 46u8, - 95u8, - 64u8, - 155u8, - 57u8, - 82u8, - 45u8, - 255u8, - 91u8, - 109u8, - 244u8, - 216u8, + 165u8, 141u8, 148u8, 255u8, 90u8, 168u8, 77u8, + 150u8, 198u8, 127u8, 227u8, 146u8, 107u8, 141u8, + 43u8, 50u8, 190u8, 186u8, 45u8, 232u8, 46u8, 95u8, + 64u8, 155u8, 57u8, 82u8, 45u8, 255u8, 91u8, 109u8, + 244u8, 216u8, ], ) } @@ -32006,11 +21830,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ProposeSpend { #[codec(compact)] pub value: ::core::primitive::u128, @@ -32031,11 +21859,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RejectProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -32052,11 +21884,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ApproveProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -32073,11 +21909,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Spend { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -32098,11 +21938,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemoveApproval { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -32131,43 +21975,13 @@ pub mod api { ::subxt::tx::Payload::new_static( "Treasury", "propose_spend", - types::ProposeSpend { - value, - beneficiary, - }, + types::ProposeSpend { value, beneficiary }, [ - 122u8, - 208u8, - 182u8, - 218u8, - 237u8, - 127u8, - 67u8, - 90u8, - 119u8, - 187u8, - 190u8, - 131u8, - 226u8, - 30u8, - 123u8, - 176u8, - 71u8, - 150u8, - 85u8, - 170u8, - 123u8, - 65u8, - 91u8, - 229u8, - 75u8, - 53u8, - 144u8, - 105u8, - 1u8, - 167u8, - 232u8, - 156u8, + 122u8, 208u8, 182u8, 218u8, 237u8, 127u8, 67u8, + 90u8, 119u8, 187u8, 190u8, 131u8, 226u8, 30u8, + 123u8, 176u8, 71u8, 150u8, 85u8, 170u8, 123u8, + 65u8, 91u8, 229u8, 75u8, 53u8, 144u8, 105u8, 1u8, + 167u8, 232u8, 156u8, ], ) } @@ -32180,46 +21994,18 @@ pub mod api { pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Treasury", "reject_proposal", - types::RejectProposal { - proposal_id, - }, + 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, + 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, ], ) } @@ -32233,46 +22019,17 @@ pub mod api { pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Treasury", "approve_proposal", - types::ApproveProposal { - proposal_id, - }, + 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, + 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, ], ) } @@ -32300,37 +22057,10 @@ pub mod api { beneficiary, }, [ - 84u8, - 118u8, - 232u8, - 82u8, - 17u8, - 184u8, - 100u8, - 78u8, - 38u8, - 158u8, - 78u8, - 200u8, - 60u8, - 9u8, - 47u8, - 72u8, - 52u8, - 70u8, - 208u8, - 208u8, - 169u8, - 217u8, - 191u8, - 76u8, - 215u8, - 202u8, - 72u8, - 95u8, - 221u8, - 78u8, - 106u8, + 84u8, 118u8, 232u8, 82u8, 17u8, 184u8, 100u8, 78u8, + 38u8, 158u8, 78u8, 200u8, 60u8, 9u8, 47u8, 72u8, + 52u8, 70u8, 208u8, 208u8, 169u8, 217u8, 191u8, + 76u8, 215u8, 202u8, 72u8, 95u8, 221u8, 78u8, 106u8, 71u8, ], ) @@ -32351,55 +22081,27 @@ pub mod api { pub fn remove_approval( &self, proposal_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Treasury", "remove_approval", - types::RemoveApproval { - proposal_id, - }, + types::RemoveApproval { proposal_id }, [ - 180u8, - 20u8, - 39u8, - 227u8, - 29u8, - 228u8, - 234u8, - 36u8, - 155u8, - 114u8, - 197u8, - 135u8, - 185u8, - 31u8, - 56u8, - 247u8, - 224u8, - 168u8, - 254u8, - 233u8, - 250u8, - 134u8, - 186u8, - 155u8, - 108u8, - 84u8, - 94u8, - 226u8, - 207u8, - 130u8, - 196u8, - 100u8, + 180u8, 20u8, 39u8, 227u8, 29u8, 228u8, 234u8, 36u8, + 155u8, 114u8, 197u8, 135u8, 185u8, 31u8, 56u8, + 247u8, 224u8, 168u8, 254u8, 233u8, 250u8, 134u8, + 186u8, 155u8, 108u8, 84u8, 94u8, 226u8, 207u8, + 130u8, 196u8, 100u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; @@ -32412,7 +22114,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32434,7 +22136,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32455,7 +22157,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32478,7 +22180,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32501,7 +22203,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32523,7 +22225,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32545,7 +22247,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32566,7 +22268,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32589,7 +22291,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -32623,38 +22325,11 @@ pub mod api { "ProposalCount", vec![], [ - 91u8, - 238u8, - 246u8, - 106u8, - 95u8, - 66u8, - 83u8, - 134u8, - 1u8, - 225u8, - 164u8, - 216u8, - 113u8, - 101u8, - 203u8, - 200u8, - 113u8, - 97u8, - 246u8, - 228u8, - 140u8, - 29u8, - 29u8, - 48u8, - 176u8, - 137u8, - 93u8, - 230u8, - 56u8, - 75u8, - 51u8, - 149u8, + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, + 1u8, 225u8, 164u8, 216u8, 113u8, 101u8, 203u8, + 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, 29u8, + 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, + 51u8, 149u8, ], ) } @@ -32733,37 +22408,10 @@ pub mod api { "Proposals", Vec::new(), [ - 182u8, - 12u8, - 98u8, - 64u8, - 117u8, - 17u8, - 90u8, - 245u8, - 80u8, - 99u8, - 161u8, - 17u8, - 59u8, - 80u8, - 64u8, - 139u8, - 89u8, - 179u8, - 254u8, - 239u8, - 143u8, - 114u8, - 77u8, - 79u8, - 75u8, - 126u8, - 52u8, - 227u8, - 1u8, - 138u8, - 35u8, + 182u8, 12u8, 98u8, 64u8, 117u8, 17u8, 90u8, 245u8, + 80u8, 99u8, 161u8, 17u8, 59u8, 80u8, 64u8, 139u8, + 89u8, 179u8, 254u8, 239u8, 143u8, 114u8, 77u8, + 79u8, 75u8, 126u8, 52u8, 227u8, 1u8, 138u8, 35u8, 62u8, ], ) @@ -32783,38 +22431,11 @@ pub mod api { "Deactivated", vec![], [ - 120u8, - 221u8, - 159u8, - 56u8, - 161u8, - 44u8, - 54u8, - 233u8, - 47u8, - 114u8, - 170u8, - 150u8, - 52u8, - 24u8, - 137u8, - 212u8, - 122u8, - 247u8, - 40u8, - 17u8, - 208u8, - 130u8, - 42u8, - 154u8, - 33u8, - 222u8, - 59u8, - 116u8, - 0u8, - 15u8, - 79u8, - 123u8, + 120u8, 221u8, 159u8, 56u8, 161u8, 44u8, 54u8, + 233u8, 47u8, 114u8, 170u8, 150u8, 52u8, 24u8, + 137u8, 212u8, 122u8, 247u8, 40u8, 17u8, 208u8, + 130u8, 42u8, 154u8, 33u8, 222u8, 59u8, 116u8, 0u8, + 15u8, 79u8, 123u8, ], ) } @@ -32835,133 +22456,53 @@ pub mod api { "Approvals", vec![], [ - 78u8, - 147u8, - 186u8, - 235u8, - 17u8, - 40u8, - 247u8, - 235u8, - 67u8, - 222u8, - 3u8, - 14u8, - 248u8, - 17u8, - 67u8, - 180u8, - 93u8, - 161u8, - 64u8, - 35u8, - 119u8, - 194u8, - 187u8, - 226u8, - 135u8, - 162u8, - 147u8, - 174u8, - 139u8, - 72u8, - 99u8, - 212u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - /// Fraction of a proposal's value that should be bonded in order to place the proposal. - /// An accepted proposal gets these back. A rejected proposal does not. - pub fn proposal_bond( - &self, - ) -> ::subxt::constants::Address< - runtime_types::sp_arithmetic::per_things::Permill, - > { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBond", - [ - 65u8, - 93u8, - 120u8, - 165u8, - 204u8, - 81u8, - 159u8, - 163u8, - 93u8, - 135u8, - 114u8, - 121u8, - 147u8, - 35u8, - 215u8, - 213u8, - 4u8, - 223u8, - 83u8, - 37u8, - 225u8, - 200u8, - 189u8, - 156u8, - 140u8, - 36u8, - 58u8, - 46u8, - 42u8, - 232u8, - 155u8, - 0u8, - ], - ) - } - /// Minimum amount of funds that should be placed in a deposit for making a proposal. - pub fn proposal_bond_minimum( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMinimum", - [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 78u8, 147u8, 186u8, 235u8, 17u8, 40u8, 247u8, + 235u8, 67u8, 222u8, 3u8, 14u8, 248u8, 17u8, 67u8, + 180u8, 93u8, 161u8, 64u8, 35u8, 119u8, 194u8, + 187u8, 226u8, 135u8, 162u8, 147u8, 174u8, 139u8, + 72u8, 99u8, 212u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Fraction of a proposal's value that should be bonded in order to place the proposal. + /// An accepted proposal gets these back. A rejected proposal does not. + pub fn proposal_bond( + &self, + ) -> ::subxt::constants::Address< + runtime_types::sp_arithmetic::per_things::Permill, + > { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, + 163u8, 93u8, 135u8, 114u8, 121u8, 147u8, 35u8, + 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, + 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, + 155u8, 0u8, + ], + ) + } + /// Minimum amount of funds that should be placed in a deposit for making a proposal. + pub fn proposal_bond_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> + { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, + 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, + 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, + 148u8, 156u8, ], ) } @@ -32975,80 +22516,27 @@ pub mod api { "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, + 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, ], ) } /// Period between successive spends. pub fn spend_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Treasury", "SpendPeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -33063,38 +22551,11 @@ pub mod api { "Treasury", "Burn", [ - 65u8, - 93u8, - 120u8, - 165u8, - 204u8, - 81u8, - 159u8, - 163u8, - 93u8, - 135u8, - 114u8, - 121u8, - 147u8, - 35u8, - 215u8, - 213u8, - 4u8, - 223u8, - 83u8, - 37u8, - 225u8, - 200u8, - 189u8, - 156u8, - 140u8, - 36u8, - 58u8, - 46u8, - 42u8, - 232u8, - 155u8, - 0u8, + 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, ], ) } @@ -33108,38 +22569,11 @@ pub mod api { "Treasury", "PalletId", [ - 56u8, - 243u8, - 53u8, - 83u8, - 154u8, - 179u8, - 170u8, - 80u8, - 133u8, - 173u8, - 61u8, - 161u8, - 47u8, - 225u8, - 146u8, - 21u8, - 50u8, - 229u8, - 248u8, - 27u8, - 104u8, - 58u8, - 129u8, - 197u8, - 102u8, - 160u8, - 168u8, - 205u8, - 154u8, - 42u8, - 217u8, - 53u8, + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, + 133u8, 173u8, 61u8, 161u8, 47u8, 225u8, 146u8, + 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, 129u8, + 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, + 217u8, 53u8, ], ) } @@ -33148,42 +22582,16 @@ pub mod api { /// NOTE: This parameter is also used within the Bounties Pallet extension if enabled. pub fn max_approvals( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Treasury", "MaxApprovals", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -33195,9 +22603,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_bounties::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_bounties::pallet::Call; @@ -33215,11 +22623,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ProposeBounty { #[codec(compact)] pub value: ::core::primitive::u128, @@ -33237,11 +22649,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ApproveBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33258,11 +22674,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ProposeCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33285,11 +22705,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UnassignCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33306,11 +22730,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AcceptCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33327,11 +22755,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AwardBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33352,11 +22784,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClaimBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33373,11 +22809,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CloseBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33394,11 +22834,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ExtendBountyExpiry { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -33427,46 +22871,17 @@ pub mod api { &self, value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Bounties", "propose_bounty", - types::ProposeBounty { - value, - description, - }, + types::ProposeBounty { value, description }, [ - 131u8, - 169u8, - 55u8, - 102u8, - 212u8, - 139u8, - 9u8, - 65u8, - 75u8, - 112u8, - 6u8, - 180u8, - 92u8, - 124u8, - 43u8, - 42u8, - 38u8, - 40u8, - 226u8, - 24u8, - 28u8, - 34u8, - 169u8, - 220u8, - 184u8, - 206u8, - 109u8, - 227u8, - 53u8, - 228u8, - 88u8, + 131u8, 169u8, 55u8, 102u8, 212u8, 139u8, 9u8, 65u8, + 75u8, 112u8, 6u8, 180u8, 92u8, 124u8, 43u8, 42u8, + 38u8, 40u8, 226u8, 24u8, 28u8, 34u8, 169u8, 220u8, + 184u8, 206u8, 109u8, 227u8, 53u8, 228u8, 88u8, 25u8, ], ) @@ -33481,44 +22896,18 @@ pub mod api { pub fn approve_bounty( &self, bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Bounties", "approve_bounty", types::ApproveBounty { bounty_id }, [ - 85u8, - 12u8, - 177u8, - 91u8, - 183u8, - 124u8, - 175u8, - 148u8, - 188u8, - 200u8, - 237u8, - 144u8, - 6u8, - 67u8, - 159u8, - 48u8, - 177u8, - 222u8, - 183u8, - 137u8, - 173u8, - 131u8, - 128u8, - 219u8, - 255u8, - 243u8, - 80u8, - 224u8, - 126u8, - 136u8, - 90u8, - 47u8, + 85u8, 12u8, 177u8, 91u8, 183u8, 124u8, 175u8, + 148u8, 188u8, 200u8, 237u8, 144u8, 6u8, 67u8, + 159u8, 48u8, 177u8, 222u8, 183u8, 137u8, 173u8, + 131u8, 128u8, 219u8, 255u8, 243u8, 80u8, 224u8, + 126u8, 136u8, 90u8, 47u8, ], ) } @@ -33536,7 +22925,8 @@ pub mod api { ::core::primitive::u32, >, fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Bounties", "propose_curator", @@ -33546,38 +22936,11 @@ pub mod api { fee, }, [ - 71u8, - 194u8, - 107u8, - 158u8, - 153u8, - 106u8, - 130u8, - 173u8, - 57u8, - 240u8, - 43u8, - 213u8, - 143u8, - 48u8, - 179u8, - 254u8, - 63u8, - 190u8, - 105u8, - 52u8, - 127u8, - 238u8, - 84u8, - 105u8, - 41u8, - 180u8, - 25u8, - 98u8, - 215u8, - 197u8, - 61u8, - 72u8, + 71u8, 194u8, 107u8, 158u8, 153u8, 106u8, 130u8, + 173u8, 57u8, 240u8, 43u8, 213u8, 143u8, 48u8, + 179u8, 254u8, 63u8, 190u8, 105u8, 52u8, 127u8, + 238u8, 84u8, 105u8, 41u8, 180u8, 25u8, 98u8, 215u8, + 197u8, 61u8, 72u8, ], ) } @@ -33601,46 +22964,18 @@ pub mod api { pub fn unassign_curator( &self, bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Bounties", "unassign_curator", - types::UnassignCurator { - bounty_id, - }, + types::UnassignCurator { bounty_id }, [ - 98u8, - 94u8, - 107u8, - 111u8, - 151u8, - 182u8, - 71u8, - 239u8, - 214u8, - 88u8, - 108u8, - 11u8, - 51u8, - 163u8, - 102u8, - 162u8, - 245u8, - 247u8, - 244u8, - 159u8, - 197u8, - 23u8, - 171u8, - 6u8, - 60u8, - 146u8, - 144u8, - 101u8, - 68u8, - 133u8, - 245u8, - 74u8, + 98u8, 94u8, 107u8, 111u8, 151u8, 182u8, 71u8, + 239u8, 214u8, 88u8, 108u8, 11u8, 51u8, 163u8, + 102u8, 162u8, 245u8, 247u8, 244u8, 159u8, 197u8, + 23u8, 171u8, 6u8, 60u8, 146u8, 144u8, 101u8, 68u8, + 133u8, 245u8, 74u8, ], ) } @@ -33654,44 +22989,18 @@ pub mod api { pub fn accept_curator( &self, bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Bounties", "accept_curator", types::AcceptCurator { bounty_id }, [ - 178u8, - 142u8, - 138u8, - 15u8, - 243u8, - 10u8, - 222u8, - 169u8, - 150u8, - 200u8, - 85u8, - 185u8, - 39u8, - 167u8, - 134u8, - 3u8, - 186u8, - 84u8, - 43u8, - 140u8, - 11u8, - 70u8, - 56u8, - 197u8, - 39u8, - 84u8, - 138u8, - 139u8, - 198u8, - 104u8, - 41u8, - 238u8, + 178u8, 142u8, 138u8, 15u8, 243u8, 10u8, 222u8, + 169u8, 150u8, 200u8, 85u8, 185u8, 39u8, 167u8, + 134u8, 3u8, 186u8, 84u8, 43u8, 140u8, 11u8, 70u8, + 56u8, 197u8, 39u8, 84u8, 138u8, 139u8, 198u8, + 104u8, 41u8, 238u8, ], ) } @@ -33721,37 +23030,10 @@ pub mod api { beneficiary, }, [ - 69u8, - 87u8, - 233u8, - 113u8, - 45u8, - 84u8, - 104u8, - 158u8, - 128u8, - 111u8, - 231u8, - 80u8, - 175u8, - 226u8, - 231u8, - 61u8, - 106u8, - 6u8, - 192u8, - 208u8, - 128u8, - 160u8, - 75u8, - 27u8, - 190u8, - 9u8, - 191u8, - 90u8, - 219u8, - 25u8, - 129u8, + 69u8, 87u8, 233u8, 113u8, 45u8, 84u8, 104u8, 158u8, + 128u8, 111u8, 231u8, 80u8, 175u8, 226u8, 231u8, + 61u8, 106u8, 6u8, 192u8, 208u8, 128u8, 160u8, 75u8, + 27u8, 190u8, 9u8, 191u8, 90u8, 219u8, 25u8, 129u8, 244u8, ], ) @@ -33773,38 +23055,11 @@ pub mod api { "claim_bounty", types::ClaimBounty { bounty_id }, [ - 211u8, - 143u8, - 123u8, - 205u8, - 140u8, - 43u8, - 176u8, - 103u8, - 110u8, - 125u8, - 158u8, - 131u8, - 103u8, - 62u8, - 69u8, - 215u8, - 220u8, - 110u8, - 11u8, - 3u8, - 30u8, - 193u8, - 235u8, - 177u8, - 96u8, - 241u8, - 140u8, - 53u8, - 62u8, - 133u8, - 170u8, - 25u8, + 211u8, 143u8, 123u8, 205u8, 140u8, 43u8, 176u8, + 103u8, 110u8, 125u8, 158u8, 131u8, 103u8, 62u8, + 69u8, 215u8, 220u8, 110u8, 11u8, 3u8, 30u8, 193u8, + 235u8, 177u8, 96u8, 241u8, 140u8, 53u8, 62u8, + 133u8, 170u8, 25u8, ], ) } @@ -33826,38 +23081,11 @@ pub mod api { "close_bounty", types::CloseBounty { bounty_id }, [ - 144u8, - 234u8, - 109u8, - 39u8, - 227u8, - 231u8, - 104u8, - 48u8, - 45u8, - 196u8, - 217u8, - 220u8, - 241u8, - 197u8, - 157u8, - 227u8, - 154u8, - 156u8, - 181u8, - 69u8, - 146u8, - 77u8, - 203u8, - 167u8, - 79u8, - 102u8, - 15u8, - 253u8, - 135u8, - 53u8, - 96u8, - 60u8, + 144u8, 234u8, 109u8, 39u8, 227u8, 231u8, 104u8, + 48u8, 45u8, 196u8, 217u8, 220u8, 241u8, 197u8, + 157u8, 227u8, 154u8, 156u8, 181u8, 69u8, 146u8, + 77u8, 203u8, 167u8, 79u8, 102u8, 15u8, 253u8, + 135u8, 53u8, 96u8, 60u8, ], ) } @@ -33866,64 +23094,35 @@ pub mod api { ///The dispatch origin for this call must be the curator of this bounty. /// ///- `bounty_id`: Bounty ID to extend. - ///- `remark`: additional information. - /// - ///## Complexity - ///- O(1). - pub fn extend_bounty_expiry( - &self, - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Bounties", - "extend_bounty_expiry", - types::ExtendBountyExpiry { - bounty_id, - remark, - }, - [ - 102u8, - 118u8, - 89u8, - 189u8, - 138u8, - 157u8, - 216u8, - 10u8, - 239u8, - 3u8, - 200u8, - 217u8, - 219u8, - 19u8, - 195u8, - 182u8, - 105u8, - 220u8, - 11u8, - 146u8, - 222u8, - 79u8, - 95u8, - 136u8, - 188u8, - 230u8, - 248u8, - 119u8, - 30u8, - 6u8, - 242u8, - 194u8, + ///- `remark`: additional information. + /// + ///## Complexity + ///- O(1). + pub fn extend_bounty_expiry( + &self, + bounty_id: ::core::primitive::u32, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Bounties", + "extend_bounty_expiry", + types::ExtendBountyExpiry { bounty_id, remark }, + [ + 102u8, 118u8, 89u8, 189u8, 138u8, 157u8, 216u8, + 10u8, 239u8, 3u8, 200u8, 217u8, 219u8, 19u8, 195u8, + 182u8, 105u8, 220u8, 11u8, 146u8, 222u8, 79u8, + 95u8, 136u8, 188u8, 230u8, 248u8, 119u8, 30u8, 6u8, + 242u8, 194u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_bounties::pallet::Event; pub mod events { use super::runtime_types; @@ -33936,7 +23135,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -33957,7 +23156,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -33980,7 +23179,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -34001,7 +23200,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -34023,7 +23222,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -34047,7 +23246,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -34069,7 +23268,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -34102,38 +23301,11 @@ pub mod api { "BountyCount", vec![], [ - 120u8, - 204u8, - 26u8, - 150u8, - 37u8, - 81u8, - 43u8, - 223u8, - 180u8, - 252u8, - 142u8, - 144u8, - 109u8, - 5u8, - 184u8, - 72u8, - 223u8, - 230u8, - 66u8, - 196u8, - 14u8, - 14u8, - 164u8, - 190u8, - 246u8, - 168u8, - 190u8, - 56u8, - 212u8, - 73u8, - 175u8, - 26u8, + 120u8, 204u8, 26u8, 150u8, 37u8, 81u8, 43u8, 223u8, + 180u8, 252u8, 142u8, 144u8, 109u8, 5u8, 184u8, + 72u8, 223u8, 230u8, 66u8, 196u8, 14u8, 14u8, 164u8, + 190u8, 246u8, 168u8, 190u8, 56u8, 212u8, 73u8, + 175u8, 26u8, ], ) } @@ -34214,37 +23386,10 @@ pub mod api { "Bounties", Vec::new(), [ - 197u8, - 26u8, - 141u8, - 98u8, - 53u8, - 123u8, - 87u8, - 219u8, - 248u8, - 200u8, - 207u8, - 196u8, - 211u8, - 159u8, - 124u8, - 173u8, - 143u8, - 144u8, - 85u8, - 180u8, - 227u8, - 24u8, - 7u8, - 52u8, - 130u8, - 98u8, - 107u8, - 145u8, - 162u8, - 55u8, - 64u8, + 197u8, 26u8, 141u8, 98u8, 53u8, 123u8, 87u8, 219u8, + 248u8, 200u8, 207u8, 196u8, 211u8, 159u8, 124u8, + 173u8, 143u8, 144u8, 85u8, 180u8, 227u8, 24u8, 7u8, + 52u8, 130u8, 98u8, 107u8, 145u8, 162u8, 55u8, 64u8, 199u8, ], ) @@ -34322,38 +23467,11 @@ pub mod api { "BountyDescriptions", Vec::new(), [ - 71u8, - 40u8, - 133u8, - 84u8, - 55u8, - 207u8, - 169u8, - 189u8, - 160u8, - 51u8, - 202u8, - 144u8, - 15u8, - 226u8, - 97u8, - 114u8, - 54u8, - 247u8, - 53u8, - 26u8, - 36u8, - 54u8, - 186u8, - 163u8, - 198u8, - 100u8, - 191u8, - 121u8, - 186u8, - 160u8, - 85u8, - 97u8, + 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, + 160u8, 51u8, 202u8, 144u8, 15u8, 226u8, 97u8, + 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, 186u8, + 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, + 85u8, 97u8, ], ) } @@ -34374,37 +23492,10 @@ pub mod api { "BountyApprovals", vec![], [ - 182u8, - 228u8, - 0u8, - 46u8, - 176u8, - 25u8, - 222u8, - 180u8, - 51u8, - 57u8, - 14u8, - 0u8, - 69u8, - 160u8, - 64u8, - 27u8, - 88u8, - 29u8, - 227u8, - 146u8, - 2u8, - 121u8, - 27u8, - 85u8, - 45u8, - 110u8, - 244u8, - 62u8, - 134u8, - 77u8, - 175u8, + 182u8, 228u8, 0u8, 46u8, 176u8, 25u8, 222u8, 180u8, + 51u8, 57u8, 14u8, 0u8, 69u8, 160u8, 64u8, 27u8, + 88u8, 29u8, 227u8, 146u8, 2u8, 121u8, 27u8, 85u8, + 45u8, 110u8, 244u8, 62u8, 134u8, 77u8, 175u8, 188u8, ], ) @@ -34418,85 +23509,33 @@ pub mod api { /// The amount held on deposit for placing a bounty proposal. pub fn bounty_deposit_base( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Bounties", "BountyDepositBase", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// The delay period for which a bounty beneficiary need to wait before claim the payout. pub fn bounty_deposit_payout_delay( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Bounties", "BountyDepositPayoutDelay", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -34504,42 +23543,16 @@ pub mod api { /// Bounty duration in blocks. pub fn bounty_update_period( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Bounties", "BountyUpdatePeriod", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -34557,38 +23570,11 @@ pub mod api { "Bounties", "CuratorDepositMultiplier", [ - 65u8, - 93u8, - 120u8, - 165u8, - 204u8, - 81u8, - 159u8, - 163u8, - 93u8, - 135u8, - 114u8, - 121u8, - 147u8, - 35u8, - 215u8, - 213u8, - 4u8, - 223u8, - 83u8, - 37u8, - 225u8, - 200u8, - 189u8, - 156u8, - 140u8, - 36u8, - 58u8, - 46u8, - 42u8, - 232u8, - 155u8, - 0u8, + 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, ], ) } @@ -34602,38 +23588,11 @@ pub mod api { "Bounties", "CuratorDepositMax", [ - 198u8, - 51u8, - 89u8, - 159u8, - 124u8, - 251u8, - 51u8, - 80u8, - 167u8, - 193u8, - 44u8, - 199u8, - 80u8, - 36u8, - 41u8, - 130u8, - 137u8, - 229u8, - 178u8, - 208u8, - 37u8, - 215u8, - 169u8, - 183u8, - 180u8, - 191u8, - 140u8, - 240u8, - 250u8, - 61u8, - 42u8, - 147u8, + 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, ], ) } @@ -34647,124 +23606,45 @@ pub mod api { "Bounties", "CuratorDepositMin", [ - 198u8, - 51u8, - 89u8, - 159u8, - 124u8, - 251u8, - 51u8, - 80u8, - 167u8, - 193u8, - 44u8, - 199u8, - 80u8, - 36u8, - 41u8, - 130u8, - 137u8, - 229u8, - 178u8, - 208u8, - 37u8, - 215u8, - 169u8, - 183u8, - 180u8, - 191u8, - 140u8, - 240u8, - 250u8, - 61u8, - 42u8, - 147u8, + 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, ], ) } /// Minimum value for a bounty. pub fn bounty_value_minimum( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Bounties", "BountyValueMinimum", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// The amount held on deposit per byte within the tip report reason or bounty description. pub fn data_deposit_per_byte( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Bounties", "DataDepositPerByte", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -34773,42 +23653,16 @@ pub mod api { /// Benchmarks depend on this value, be sure to update weights file when changing this value pub fn maximum_reason_length( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Bounties", "MaximumReasonLength", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -34820,9 +23674,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_child_bounties::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_child_bounties::pallet::Call; @@ -34840,11 +23694,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AddChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -34864,11 +23722,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ProposeCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -34893,11 +23755,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AcceptCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -34916,11 +23782,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UnassignCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -34939,11 +23809,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AwardChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -34966,11 +23840,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClaimChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -34989,11 +23867,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CloseChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -35031,7 +23913,8 @@ pub mod api { parent_bounty_id: ::core::primitive::u32, value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ChildBounties", "add_child_bounty", @@ -35041,38 +23924,11 @@ pub mod api { description, }, [ - 249u8, - 159u8, - 185u8, - 144u8, - 114u8, - 142u8, - 104u8, - 215u8, - 136u8, - 52u8, - 255u8, - 125u8, - 54u8, - 243u8, - 220u8, - 171u8, - 254u8, - 49u8, - 105u8, - 134u8, - 137u8, - 221u8, - 100u8, - 111u8, - 72u8, - 38u8, - 184u8, - 122u8, - 72u8, - 204u8, - 182u8, - 123u8, + 249u8, 159u8, 185u8, 144u8, 114u8, 142u8, 104u8, + 215u8, 136u8, 52u8, 255u8, 125u8, 54u8, 243u8, + 220u8, 171u8, 254u8, 49u8, 105u8, 134u8, 137u8, + 221u8, 100u8, 111u8, 72u8, 38u8, 184u8, 122u8, + 72u8, 204u8, 182u8, 123u8, ], ) } @@ -35098,50 +23954,24 @@ pub mod api { curator: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, - >, - fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "propose_curator", - types::ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, - }, - [ - 28u8, - 8u8, - 63u8, - 41u8, - 70u8, - 178u8, - 143u8, - 178u8, - 25u8, - 250u8, - 7u8, - 245u8, - 87u8, - 115u8, - 67u8, - 84u8, - 160u8, - 142u8, - 117u8, - 234u8, - 37u8, - 74u8, - 172u8, - 15u8, - 193u8, - 190u8, - 71u8, - 84u8, - 172u8, - 198u8, - 9u8, + >, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "propose_curator", + types::ProposeCurator { + parent_bounty_id, + child_bounty_id, + curator, + fee, + }, + [ + 28u8, 8u8, 63u8, 41u8, 70u8, 178u8, 143u8, 178u8, + 25u8, 250u8, 7u8, 245u8, 87u8, 115u8, 67u8, 84u8, + 160u8, 142u8, 117u8, 234u8, 37u8, 74u8, 172u8, + 15u8, 193u8, 190u8, 71u8, 84u8, 172u8, 198u8, 9u8, 39u8, ], ) @@ -35169,7 +23999,8 @@ pub mod api { &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ChildBounties", "accept_curator", @@ -35178,38 +24009,11 @@ pub mod api { child_bounty_id, }, [ - 167u8, - 196u8, - 221u8, - 73u8, - 86u8, - 83u8, - 173u8, - 219u8, - 241u8, - 116u8, - 28u8, - 109u8, - 21u8, - 209u8, - 62u8, - 131u8, - 182u8, - 252u8, - 54u8, - 114u8, - 9u8, - 51u8, - 225u8, - 37u8, - 4u8, - 127u8, - 110u8, - 80u8, - 172u8, - 97u8, - 11u8, - 78u8, + 167u8, 196u8, 221u8, 73u8, 86u8, 83u8, 173u8, + 219u8, 241u8, 116u8, 28u8, 109u8, 21u8, 209u8, + 62u8, 131u8, 182u8, 252u8, 54u8, 114u8, 9u8, 51u8, + 225u8, 37u8, 4u8, 127u8, 110u8, 80u8, 172u8, 97u8, + 11u8, 78u8, ], ) } @@ -35251,7 +24055,8 @@ pub mod api { &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ChildBounties", "unassign_curator", @@ -35260,38 +24065,11 @@ pub mod api { child_bounty_id, }, [ - 217u8, - 24u8, - 147u8, - 239u8, - 116u8, - 226u8, - 244u8, - 189u8, - 62u8, - 141u8, - 173u8, - 70u8, - 213u8, - 147u8, - 68u8, - 51u8, - 200u8, - 66u8, - 200u8, - 174u8, - 243u8, - 49u8, - 54u8, - 219u8, - 243u8, - 255u8, - 250u8, - 215u8, - 216u8, - 248u8, - 32u8, - 90u8, + 217u8, 24u8, 147u8, 239u8, 116u8, 226u8, 244u8, + 189u8, 62u8, 141u8, 173u8, 70u8, 213u8, 147u8, + 68u8, 51u8, 200u8, 66u8, 200u8, 174u8, 243u8, 49u8, + 54u8, 219u8, 243u8, 255u8, 250u8, 215u8, 216u8, + 248u8, 32u8, 90u8, ], ) } @@ -35320,7 +24098,8 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ChildBounties", "award_child_bounty", @@ -35330,38 +24109,11 @@ pub mod api { beneficiary, }, [ - 144u8, - 230u8, - 45u8, - 20u8, - 75u8, - 100u8, - 138u8, - 219u8, - 127u8, - 5u8, - 49u8, - 161u8, - 111u8, - 148u8, - 114u8, - 239u8, - 226u8, - 154u8, - 168u8, - 106u8, - 13u8, - 50u8, - 3u8, - 88u8, - 53u8, - 28u8, - 158u8, - 184u8, - 191u8, - 80u8, - 155u8, - 19u8, + 144u8, 230u8, 45u8, 20u8, 75u8, 100u8, 138u8, + 219u8, 127u8, 5u8, 49u8, 161u8, 111u8, 148u8, + 114u8, 239u8, 226u8, 154u8, 168u8, 106u8, 13u8, + 50u8, 3u8, 88u8, 53u8, 28u8, 158u8, 184u8, 191u8, + 80u8, 155u8, 19u8, ], ) } @@ -35385,7 +24137,8 @@ pub mod api { &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ChildBounties", "claim_child_bounty", @@ -35394,37 +24147,10 @@ pub mod api { child_bounty_id, }, [ - 72u8, - 55u8, - 100u8, - 52u8, - 218u8, - 49u8, - 63u8, - 107u8, - 45u8, - 43u8, - 34u8, - 6u8, - 48u8, - 56u8, - 240u8, - 3u8, - 96u8, - 128u8, - 202u8, - 30u8, - 233u8, - 116u8, - 86u8, - 141u8, - 36u8, - 184u8, - 217u8, - 48u8, - 20u8, - 54u8, - 45u8, + 72u8, 55u8, 100u8, 52u8, 218u8, 49u8, 63u8, 107u8, + 45u8, 43u8, 34u8, 6u8, 48u8, 56u8, 240u8, 3u8, + 96u8, 128u8, 202u8, 30u8, 233u8, 116u8, 86u8, + 141u8, 36u8, 184u8, 217u8, 48u8, 20u8, 54u8, 45u8, 65u8, ], ) @@ -35455,7 +24181,8 @@ pub mod api { &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "ChildBounties", "close_child_bounty", @@ -35464,37 +24191,10 @@ pub mod api { child_bounty_id, }, [ - 127u8, - 210u8, - 46u8, - 3u8, - 33u8, - 232u8, - 159u8, - 245u8, - 249u8, - 217u8, - 51u8, - 254u8, - 167u8, - 10u8, - 30u8, - 195u8, - 30u8, - 0u8, - 204u8, - 251u8, - 113u8, - 1u8, - 104u8, - 215u8, - 88u8, - 10u8, - 200u8, - 144u8, - 62u8, - 93u8, - 223u8, + 127u8, 210u8, 46u8, 3u8, 33u8, 232u8, 159u8, 245u8, + 249u8, 217u8, 51u8, 254u8, 167u8, 10u8, 30u8, + 195u8, 30u8, 0u8, 204u8, 251u8, 113u8, 1u8, 104u8, + 215u8, 88u8, 10u8, 200u8, 144u8, 62u8, 93u8, 223u8, 106u8, ], ) @@ -35502,9 +24202,9 @@ pub mod api { } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_child_bounties::pallet::Event; pub mod events { use super::runtime_types; @@ -35516,7 +24216,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -35538,7 +24238,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -35561,7 +24261,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -35585,7 +24285,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -35619,38 +24319,10 @@ pub mod api { "ChildBountyCount", vec![], [ - 206u8, - 1u8, - 40u8, - 132u8, - 51u8, - 139u8, - 234u8, - 20u8, - 89u8, - 86u8, - 247u8, - 107u8, - 169u8, - 252u8, - 5u8, - 180u8, - 218u8, - 24u8, - 232u8, - 94u8, - 82u8, - 135u8, - 24u8, - 16u8, - 134u8, - 23u8, - 201u8, - 86u8, - 12u8, - 19u8, - 199u8, - 0u8, + 206u8, 1u8, 40u8, 132u8, 51u8, 139u8, 234u8, 20u8, + 89u8, 86u8, 247u8, 107u8, 169u8, 252u8, 5u8, 180u8, + 218u8, 24u8, 232u8, 94u8, 82u8, 135u8, 24u8, 16u8, + 134u8, 23u8, 201u8, 86u8, 12u8, 19u8, 199u8, 0u8, ], ) } @@ -35725,38 +24397,11 @@ pub mod api { "ParentChildBounties", Vec::new(), [ - 12u8, - 238u8, - 185u8, - 135u8, - 158u8, - 191u8, - 208u8, - 104u8, - 37u8, - 235u8, - 101u8, - 15u8, - 89u8, - 20u8, - 191u8, - 191u8, - 78u8, - 206u8, - 9u8, - 19u8, - 169u8, - 17u8, - 13u8, - 213u8, - 238u8, - 220u8, - 189u8, - 100u8, - 194u8, - 62u8, - 85u8, - 150u8, + 12u8, 238u8, 185u8, 135u8, 158u8, 191u8, 208u8, + 104u8, 37u8, 235u8, 101u8, 15u8, 89u8, 20u8, 191u8, + 191u8, 78u8, 206u8, 9u8, 19u8, 169u8, 17u8, 13u8, + 213u8, 238u8, 220u8, 189u8, 100u8, 194u8, 62u8, + 85u8, 150u8, ], ) } @@ -35840,38 +24485,11 @@ pub mod api { "ChildBounties", Vec::new(), [ - 236u8, - 41u8, - 10u8, - 227u8, - 176u8, - 177u8, - 196u8, - 79u8, - 112u8, - 117u8, - 171u8, - 175u8, - 84u8, - 180u8, - 69u8, - 146u8, - 252u8, - 228u8, - 32u8, - 113u8, - 226u8, - 136u8, - 175u8, - 129u8, - 1u8, - 161u8, - 145u8, - 60u8, - 142u8, - 25u8, - 162u8, - 42u8, + 236u8, 41u8, 10u8, 227u8, 176u8, 177u8, 196u8, + 79u8, 112u8, 117u8, 171u8, 175u8, 84u8, 180u8, + 69u8, 146u8, 252u8, 228u8, 32u8, 113u8, 226u8, + 136u8, 175u8, 129u8, 1u8, 161u8, 145u8, 60u8, + 142u8, 25u8, 162u8, 42u8, ], ) } @@ -35948,38 +24566,11 @@ pub mod api { "ChildBountyDescriptions", Vec::new(), [ - 192u8, - 0u8, - 220u8, - 156u8, - 109u8, - 65u8, - 113u8, - 102u8, - 119u8, - 0u8, - 109u8, - 141u8, - 211u8, - 128u8, - 237u8, - 61u8, - 28u8, - 56u8, - 206u8, - 93u8, - 183u8, - 74u8, - 192u8, - 220u8, - 76u8, - 175u8, - 85u8, - 105u8, - 179u8, - 11u8, - 164u8, - 100u8, + 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, + 102u8, 119u8, 0u8, 109u8, 141u8, 211u8, 128u8, + 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, + 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, + 11u8, 164u8, 100u8, ], ) } @@ -36052,38 +24643,11 @@ pub mod api { "ChildrenCuratorFees", Vec::new(), [ - 32u8, - 16u8, - 190u8, - 193u8, - 6u8, - 80u8, - 163u8, - 16u8, - 85u8, - 111u8, - 39u8, - 141u8, - 209u8, - 70u8, - 213u8, - 167u8, - 22u8, - 12u8, - 93u8, - 17u8, - 104u8, - 94u8, - 129u8, - 37u8, - 179u8, - 41u8, - 156u8, - 117u8, - 39u8, - 202u8, - 227u8, - 235u8, + 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, + 85u8, 111u8, 39u8, 141u8, 209u8, 70u8, 213u8, + 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, 129u8, + 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, + 227u8, 235u8, ], ) } @@ -36096,42 +24660,16 @@ pub mod api { /// Maximum number of child bounties that can be added to a parent bounty. pub fn max_active_child_bounty_count( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "ChildBounties", "MaxActiveChildBountyCount", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -36139,43 +24677,17 @@ pub mod api { /// Minimum value for a child-bounty. pub fn child_bounty_value_minimum( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "ChildBounties", "ChildBountyValueMinimum", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -36186,9 +24698,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_bags_list::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_bags_list::pallet::Call; @@ -36206,11 +24718,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Rebag { pub dislocated: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -36229,11 +24745,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PutInFrontOf { pub lighter: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -36269,37 +24789,10 @@ pub mod api { "rebag", types::Rebag { dislocated }, [ - 136u8, - 83u8, - 36u8, - 186u8, - 29u8, - 197u8, - 194u8, - 38u8, - 185u8, - 103u8, - 132u8, - 73u8, - 180u8, - 246u8, - 141u8, - 58u8, - 14u8, - 74u8, - 77u8, - 127u8, - 235u8, - 179u8, - 99u8, - 149u8, - 243u8, - 171u8, - 40u8, - 97u8, - 134u8, - 179u8, - 2u8, + 136u8, 83u8, 36u8, 186u8, 29u8, 197u8, 194u8, 38u8, + 185u8, 103u8, 132u8, 73u8, 180u8, 246u8, 141u8, + 58u8, 14u8, 74u8, 77u8, 127u8, 235u8, 179u8, 99u8, + 149u8, 243u8, 171u8, 40u8, 97u8, 134u8, 179u8, 2u8, 117u8, ], ) @@ -36324,47 +24817,20 @@ pub mod api { "put_in_front_of", types::PutInFrontOf { lighter }, [ - 61u8, - 66u8, - 150u8, - 46u8, - 249u8, - 168u8, - 25u8, - 138u8, - 201u8, - 233u8, - 191u8, - 216u8, - 170u8, - 197u8, - 3u8, - 123u8, - 116u8, - 140u8, - 49u8, - 226u8, - 65u8, - 222u8, - 235u8, - 27u8, - 123u8, - 195u8, - 169u8, - 247u8, - 50u8, - 125u8, - 245u8, - 111u8, + 61u8, 66u8, 150u8, 46u8, 249u8, 168u8, 25u8, 138u8, + 201u8, 233u8, 191u8, 216u8, 170u8, 197u8, 3u8, + 123u8, 116u8, 140u8, 49u8, 226u8, 65u8, 222u8, + 235u8, 27u8, 123u8, 195u8, 169u8, 247u8, 50u8, + 125u8, 245u8, 111u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_bags_list::pallet::Event; pub mod events { use super::runtime_types; @@ -36376,7 +24842,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -36399,7 +24865,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -36474,58 +24940,31 @@ pub mod api { ], ) } - /// A single node, within some bag. - /// - /// Nodes store links forward and back within their respective bags. - pub fn list_nodes_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_bags_list::list::Node, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "BagsList", - "ListNodes", - Vec::new(), - [ - 252u8, - 218u8, - 186u8, - 230u8, - 86u8, - 177u8, - 112u8, - 218u8, - 9u8, - 62u8, - 217u8, - 5u8, - 39u8, - 70u8, - 15u8, - 104u8, - 157u8, - 19u8, - 175u8, - 136u8, - 71u8, - 237u8, - 254u8, - 254u8, - 119u8, - 107u8, - 84u8, - 10u8, - 104u8, - 142u8, - 135u8, - 35u8, - ], - ) - } + /// A single node, within some bag. + /// + /// Nodes store links forward and back within their respective bags. + pub fn list_nodes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListNodes", + Vec::new(), + [ + 252u8, 218u8, 186u8, 230u8, 86u8, 177u8, 112u8, + 218u8, 9u8, 62u8, 217u8, 5u8, 39u8, 70u8, 15u8, + 104u8, 157u8, 19u8, 175u8, 136u8, 71u8, 237u8, + 254u8, 254u8, 119u8, 107u8, 84u8, 10u8, 104u8, + 142u8, 135u8, 35u8, + ], + ) + } ///Counter for the related counted storage map pub fn counter_for_list_nodes( &self, @@ -36541,38 +24980,11 @@ pub mod api { "CounterForListNodes", vec![], [ - 126u8, - 150u8, - 201u8, - 81u8, - 155u8, - 79u8, - 50u8, - 48u8, - 120u8, - 170u8, - 3u8, - 104u8, - 112u8, - 254u8, - 106u8, - 46u8, - 108u8, - 126u8, - 158u8, - 245u8, - 95u8, - 88u8, - 236u8, - 89u8, - 79u8, - 172u8, - 13u8, - 146u8, - 202u8, - 151u8, - 122u8, - 132u8, + 126u8, 150u8, 201u8, 81u8, 155u8, 79u8, 50u8, 48u8, + 120u8, 170u8, 3u8, 104u8, 112u8, 254u8, 106u8, + 46u8, 108u8, 126u8, 158u8, 245u8, 95u8, 88u8, + 236u8, 89u8, 79u8, 172u8, 13u8, 146u8, 202u8, + 151u8, 122u8, 132u8, ], ) } @@ -36649,38 +25061,11 @@ pub mod api { "ListBags", Vec::new(), [ - 157u8, - 147u8, - 94u8, - 26u8, - 37u8, - 89u8, - 114u8, - 210u8, - 158u8, - 36u8, - 155u8, - 0u8, - 137u8, - 78u8, - 65u8, - 165u8, - 226u8, - 192u8, - 65u8, - 13u8, - 244u8, - 159u8, - 245u8, - 15u8, - 210u8, - 101u8, - 61u8, - 111u8, - 217u8, - 225u8, - 197u8, - 158u8, + 157u8, 147u8, 94u8, 26u8, 37u8, 89u8, 114u8, 210u8, + 158u8, 36u8, 155u8, 0u8, 137u8, 78u8, 65u8, 165u8, + 226u8, 192u8, 65u8, 13u8, 244u8, 159u8, 245u8, + 15u8, 210u8, 101u8, 61u8, 111u8, 217u8, 225u8, + 197u8, 158u8, ], ) } @@ -36742,38 +25127,11 @@ pub mod api { "BagsList", "BagThresholds", [ - 215u8, - 118u8, - 183u8, - 172u8, - 4u8, - 42u8, - 248u8, - 108u8, - 4u8, - 110u8, - 43u8, - 165u8, - 228u8, - 7u8, - 36u8, - 30u8, - 135u8, - 184u8, - 56u8, - 201u8, - 107u8, - 68u8, - 25u8, - 164u8, - 134u8, - 32u8, - 82u8, - 107u8, - 200u8, - 219u8, - 212u8, - 198u8, + 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, + 108u8, 4u8, 110u8, 43u8, 165u8, 228u8, 7u8, 36u8, + 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, 25u8, + 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, + 212u8, 198u8, ], ) } @@ -36784,9 +25142,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; @@ -36804,11 +25162,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Join { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -36826,15 +25188,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BondExtra { - pub extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, + pub extra: + runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, } impl ::subxt::blocks::StaticExtrinsic for BondExtra { const PALLET: &'static str = "NominationPools"; @@ -36848,11 +25215,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClaimPayout; impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { const PALLET: &'static str = "NominationPools"; @@ -36866,11 +25237,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Unbond { pub member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -36891,11 +25266,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PoolWithdrawUnbonded { pub pool_id: ::core::primitive::u32, pub num_slashing_spans: ::core::primitive::u32, @@ -36912,11 +25291,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WithdrawUnbonded { pub member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -36936,11 +25319,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Create { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -36969,11 +25356,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CreateWithPoolId { #[codec(compact)] pub amount: ::core::primitive::u128, @@ -37003,14 +25394,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Nominate { pub pool_id: ::core::primitive::u32, - pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub validators: + ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for Nominate { const PALLET: &'static str = "NominationPools"; @@ -37024,14 +25420,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetState { pub pool_id: ::core::primitive::u32, - pub state: runtime_types::pallet_nomination_pools::PoolState, + pub state: + runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::blocks::StaticExtrinsic for SetState { const PALLET: &'static str = "NominationPools"; @@ -37045,11 +25446,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetMetadata { pub pool_id: ::core::primitive::u32, pub metadata: ::std::vec::Vec<::core::primitive::u8>, @@ -37066,30 +25471,40 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetConfigs { - pub min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u128, - >, - pub max_pools: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< - ::core::primitive::u32, - >, - pub global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, + pub min_join_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub min_create_bond: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + pub max_pools: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub max_members_per_pool: + runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + pub global_max_commission: + runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, } impl ::subxt::blocks::StaticExtrinsic for SetConfigs { const PALLET: &'static str = "NominationPools"; @@ -37103,22 +25518,29 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UpdateRoles { pub pool_id: ::core::primitive::u32, - pub new_root: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, - pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< - ::subxt::utils::AccountId32, - >, + pub new_root: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_nominator: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + pub new_bouncer: + runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, } impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { const PALLET: &'static str = "NominationPools"; @@ -37133,11 +25555,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Chill { pub pool_id: ::core::primitive::u32, } @@ -37153,19 +25579,24 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BondExtraOther { pub member: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, + pub extra: + runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, } impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { const PALLET: &'static str = "NominationPools"; @@ -37179,13 +25610,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetClaimPermission { - pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, + pub permission: + runtime_types::pallet_nomination_pools::ClaimPermission, } impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { const PALLET: &'static str = "NominationPools"; @@ -37199,11 +25635,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClaimPayoutOther { pub other: ::subxt::utils::AccountId32, } @@ -37219,19 +25659,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetCommission { pub pool_id: ::core::primitive::u32, - pub new_commission: ::core::option::Option< - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - ), - >, + pub new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, } impl ::subxt::blocks::StaticExtrinsic for SetCommission { const PALLET: &'static str = "NominationPools"; @@ -37245,14 +25687,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetCommissionMax { pub pool_id: ::core::primitive::u32, - pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + pub max_commission: + runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { const PALLET: &'static str = "NominationPools"; @@ -37266,11 +25713,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetCommissionChangeRate { pub pool_id: ::core::primitive::u32, pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -37290,73 +25741,50 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClaimCommission { pub pool_id: ::core::primitive::u32, } - impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { - const PALLET: &'static str = "NominationPools"; - const CALL: &'static str = "claim_commission"; - } - } - pub struct TransactionApi; - impl TransactionApi { - ///Stake funds with a pool. The amount to bond is transferred from the member to the - ///pools account and immediately increases the pools bond. - /// - ///# Note - /// - ///* An account can only be a member of a single pool. - ///* An account cannot join the same pool multiple times. - ///* This call will *not* dust the member account, so the member must have at least - /// `existential deposit + amount` in their account. - ///* Only a pool with [`PoolState::Open`] can be joined - pub fn join( - &self, - amount: ::core::primitive::u128, - pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "join", - types::Join { amount, pool_id }, - [ - 9u8, - 24u8, - 209u8, - 117u8, - 242u8, - 76u8, - 192u8, - 40u8, - 196u8, - 136u8, - 158u8, - 182u8, - 117u8, - 140u8, - 164u8, - 64u8, - 184u8, - 160u8, - 146u8, - 143u8, - 173u8, - 180u8, - 6u8, - 242u8, - 203u8, - 130u8, - 41u8, - 176u8, - 158u8, - 96u8, - 94u8, - 175u8, + impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_commission"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///Stake funds with a pool. The amount to bond is transferred from the member to the + ///pools account and immediately increases the pools bond. + /// + ///# Note + /// + ///* An account can only be a member of a single pool. + ///* An account cannot join the same pool multiple times. + ///* This call will *not* dust the member account, so the member must have at least + /// `existential deposit + amount` in their account. + ///* Only a pool with [`PoolState::Open`] can be joined + pub fn join( + &self, + amount: ::core::primitive::u128, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "join", + types::Join { amount, pool_id }, + [ + 9u8, 24u8, 209u8, 117u8, 242u8, 76u8, 192u8, 40u8, + 196u8, 136u8, 158u8, 182u8, 117u8, 140u8, 164u8, + 64u8, 184u8, 160u8, 146u8, 143u8, 173u8, 180u8, + 6u8, 242u8, 203u8, 130u8, 41u8, 176u8, 158u8, 96u8, + 94u8, 175u8, ], ) } @@ -37378,38 +25806,11 @@ pub mod api { "bond_extra", types::BondExtra { extra }, [ - 149u8, - 176u8, - 102u8, - 52u8, - 76u8, - 227u8, - 61u8, - 60u8, - 109u8, - 187u8, - 40u8, - 176u8, - 163u8, - 37u8, - 10u8, - 228u8, - 164u8, - 77u8, - 155u8, - 155u8, - 14u8, - 106u8, - 5u8, - 177u8, - 176u8, - 224u8, - 163u8, - 28u8, - 66u8, - 237u8, - 186u8, - 188u8, + 149u8, 176u8, 102u8, 52u8, 76u8, 227u8, 61u8, 60u8, + 109u8, 187u8, 40u8, 176u8, 163u8, 37u8, 10u8, + 228u8, 164u8, 77u8, 155u8, 155u8, 14u8, 106u8, 5u8, + 177u8, 176u8, 224u8, 163u8, 28u8, 66u8, 237u8, + 186u8, 188u8, ], ) } @@ -37421,44 +25822,19 @@ pub mod api { ///members in the pools stake. Rewards do not "expire". /// ///See `claim_payout_other` to caim rewards on bahalf of some `other` pool member. - pub fn claim_payout(&self) -> ::subxt::tx::Payload { + pub fn claim_payout( + &self, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout", types::ClaimPayout {}, [ - 28u8, - 87u8, - 180u8, - 5u8, - 69u8, - 49u8, - 121u8, - 28u8, - 34u8, - 63u8, - 78u8, - 228u8, - 223u8, - 12u8, - 171u8, - 41u8, - 181u8, - 137u8, - 145u8, - 141u8, - 198u8, - 220u8, - 5u8, - 101u8, - 173u8, - 69u8, - 222u8, - 59u8, - 111u8, - 92u8, - 182u8, - 8u8, + 28u8, 87u8, 180u8, 5u8, 69u8, 49u8, 121u8, 28u8, + 34u8, 63u8, 78u8, 228u8, 223u8, 12u8, 171u8, 41u8, + 181u8, 137u8, 145u8, 141u8, 198u8, 220u8, 5u8, + 101u8, 173u8, 69u8, 222u8, 59u8, 111u8, 92u8, + 182u8, 8u8, ], ) } @@ -37509,38 +25885,11 @@ pub mod api { unbonding_points, }, [ - 230u8, - 112u8, - 85u8, - 216u8, - 164u8, - 250u8, - 5u8, - 18u8, - 50u8, - 206u8, - 194u8, - 0u8, - 167u8, - 149u8, - 220u8, - 212u8, - 138u8, - 33u8, - 117u8, - 130u8, - 47u8, - 197u8, - 113u8, - 30u8, - 84u8, - 83u8, - 1u8, - 105u8, - 58u8, - 182u8, - 44u8, - 225u8, + 230u8, 112u8, 85u8, 216u8, 164u8, 250u8, 5u8, 18u8, + 50u8, 206u8, 194u8, 0u8, 167u8, 149u8, 220u8, + 212u8, 138u8, 33u8, 117u8, 130u8, 47u8, 197u8, + 113u8, 30u8, 84u8, 83u8, 1u8, 105u8, 58u8, 182u8, + 44u8, 225u8, ], ) } @@ -37554,7 +25903,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "pool_withdraw_unbonded", @@ -37563,37 +25913,10 @@ pub mod api { num_slashing_spans, }, [ - 234u8, - 49u8, - 43u8, - 199u8, - 55u8, - 2u8, - 252u8, - 39u8, - 147u8, - 136u8, - 34u8, - 239u8, - 116u8, - 155u8, - 129u8, - 72u8, - 83u8, - 161u8, - 90u8, - 207u8, - 1u8, - 193u8, - 254u8, - 47u8, - 40u8, - 185u8, - 67u8, - 55u8, - 238u8, - 122u8, - 140u8, + 234u8, 49u8, 43u8, 199u8, 55u8, 2u8, 252u8, 39u8, + 147u8, 136u8, 34u8, 239u8, 116u8, 155u8, 129u8, + 72u8, 83u8, 161u8, 90u8, 207u8, 1u8, 193u8, 254u8, + 47u8, 40u8, 185u8, 67u8, 55u8, 238u8, 122u8, 140u8, 230u8, ], ) @@ -37624,7 +25947,8 @@ pub mod api { ::core::primitive::u32, >, num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "withdraw_unbonded", @@ -37633,37 +25957,10 @@ pub mod api { num_slashing_spans, }, [ - 252u8, - 38u8, - 22u8, - 98u8, - 64u8, - 133u8, - 118u8, - 62u8, - 179u8, - 226u8, - 212u8, - 186u8, - 32u8, - 227u8, - 253u8, - 119u8, - 200u8, - 53u8, - 35u8, - 193u8, - 20u8, - 64u8, - 232u8, - 35u8, - 221u8, - 37u8, - 63u8, - 10u8, - 7u8, - 250u8, - 176u8, + 252u8, 38u8, 22u8, 98u8, 64u8, 133u8, 118u8, 62u8, + 179u8, 226u8, 212u8, 186u8, 32u8, 227u8, 253u8, + 119u8, 200u8, 53u8, 35u8, 193u8, 20u8, 64u8, 232u8, + 35u8, 221u8, 37u8, 63u8, 10u8, 7u8, 250u8, 176u8, 238u8, ], ) @@ -37711,38 +26008,11 @@ pub mod api { bouncer, }, [ - 4u8, - 111u8, - 53u8, - 212u8, - 226u8, - 159u8, - 144u8, - 191u8, - 152u8, - 252u8, - 30u8, - 169u8, - 185u8, - 150u8, - 229u8, - 234u8, - 140u8, - 46u8, - 237u8, - 197u8, - 164u8, - 233u8, - 184u8, - 60u8, - 51u8, - 184u8, - 71u8, - 40u8, - 61u8, - 140u8, - 204u8, - 100u8, + 4u8, 111u8, 53u8, 212u8, 226u8, 159u8, 144u8, + 191u8, 152u8, 252u8, 30u8, 169u8, 185u8, 150u8, + 229u8, 234u8, 140u8, 46u8, 237u8, 197u8, 164u8, + 233u8, 184u8, 60u8, 51u8, 184u8, 71u8, 40u8, 61u8, + 140u8, 204u8, 100u8, ], ) } @@ -37768,7 +26038,8 @@ pub mod api { ::core::primitive::u32, >, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "create_with_pool_id", @@ -37780,38 +26051,11 @@ pub mod api { pool_id, }, [ - 102u8, - 254u8, - 178u8, - 47u8, - 79u8, - 12u8, - 230u8, - 142u8, - 226u8, - 205u8, - 25u8, - 166u8, - 133u8, - 0u8, - 172u8, - 58u8, - 75u8, - 96u8, - 71u8, - 187u8, - 237u8, - 173u8, - 156u8, - 20u8, - 78u8, - 48u8, - 62u8, - 35u8, - 130u8, - 8u8, - 117u8, - 222u8, + 102u8, 254u8, 178u8, 47u8, 79u8, 12u8, 230u8, + 142u8, 226u8, 205u8, 25u8, 166u8, 133u8, 0u8, + 172u8, 58u8, 75u8, 96u8, 71u8, 187u8, 237u8, 173u8, + 156u8, 20u8, 78u8, 48u8, 62u8, 35u8, 130u8, 8u8, + 117u8, 222u8, ], ) } @@ -37835,38 +26079,11 @@ pub mod api { validators, }, [ - 118u8, - 80u8, - 137u8, - 47u8, - 102u8, - 9u8, - 20u8, - 136u8, - 76u8, - 164u8, - 161u8, - 114u8, - 33u8, - 159u8, - 204u8, - 49u8, - 233u8, - 199u8, - 246u8, - 67u8, - 144u8, - 169u8, - 211u8, - 67u8, - 12u8, - 68u8, - 198u8, - 149u8, - 87u8, - 62u8, - 226u8, - 72u8, + 118u8, 80u8, 137u8, 47u8, 102u8, 9u8, 20u8, 136u8, + 76u8, 164u8, 161u8, 114u8, 33u8, 159u8, 204u8, + 49u8, 233u8, 199u8, 246u8, 67u8, 144u8, 169u8, + 211u8, 67u8, 12u8, 68u8, 198u8, 149u8, 87u8, 62u8, + 226u8, 72u8, ], ) } @@ -37890,37 +26107,10 @@ pub mod api { "set_state", types::SetState { pool_id, state }, [ - 39u8, - 221u8, - 24u8, - 65u8, - 144u8, - 230u8, - 228u8, - 24u8, - 191u8, - 53u8, - 171u8, - 148u8, - 131u8, - 45u8, - 10u8, - 22u8, - 222u8, - 240u8, - 13u8, - 87u8, - 123u8, - 182u8, - 102u8, - 26u8, - 124u8, - 205u8, - 23u8, - 31u8, - 25u8, - 43u8, - 12u8, + 39u8, 221u8, 24u8, 65u8, 144u8, 230u8, 228u8, 24u8, + 191u8, 53u8, 171u8, 148u8, 131u8, 45u8, 10u8, 22u8, + 222u8, 240u8, 13u8, 87u8, 123u8, 182u8, 102u8, + 26u8, 124u8, 205u8, 23u8, 31u8, 25u8, 43u8, 12u8, 140u8, ], ) @@ -37937,43 +26127,13 @@ pub mod api { ::subxt::tx::Payload::new_static( "NominationPools", "set_metadata", - types::SetMetadata { - pool_id, - metadata, - }, + types::SetMetadata { pool_id, metadata }, [ - 221u8, - 189u8, - 15u8, - 232u8, - 0u8, - 49u8, - 187u8, - 67u8, - 124u8, - 26u8, - 114u8, - 191u8, - 81u8, - 14u8, - 253u8, - 75u8, - 88u8, - 182u8, - 136u8, - 18u8, - 238u8, - 119u8, - 215u8, - 248u8, - 133u8, - 160u8, - 154u8, - 193u8, - 177u8, - 140u8, - 1u8, - 16u8, + 221u8, 189u8, 15u8, 232u8, 0u8, 49u8, 187u8, 67u8, + 124u8, 26u8, 114u8, 191u8, 81u8, 14u8, 253u8, 75u8, + 88u8, 182u8, 136u8, 18u8, 238u8, 119u8, 215u8, + 248u8, 133u8, 160u8, 154u8, 193u8, 177u8, 140u8, + 1u8, 16u8, ], ) } @@ -38021,38 +26181,11 @@ pub mod api { global_max_commission, }, [ - 60u8, - 29u8, - 13u8, - 45u8, - 37u8, - 171u8, - 129u8, - 133u8, - 127u8, - 42u8, - 104u8, - 45u8, - 29u8, - 58u8, - 209u8, - 48u8, - 119u8, - 255u8, - 86u8, - 13u8, - 243u8, - 124u8, - 57u8, - 250u8, - 156u8, - 189u8, - 59u8, - 88u8, - 64u8, - 109u8, - 219u8, - 68u8, + 60u8, 29u8, 13u8, 45u8, 37u8, 171u8, 129u8, 133u8, + 127u8, 42u8, 104u8, 45u8, 29u8, 58u8, 209u8, 48u8, + 119u8, 255u8, 86u8, 13u8, 243u8, 124u8, 57u8, + 250u8, 156u8, 189u8, 59u8, 88u8, 64u8, 109u8, + 219u8, 68u8, ], ) } @@ -38086,38 +26219,11 @@ pub mod api { new_bouncer, }, [ - 58u8, - 51u8, - 136u8, - 162u8, - 218u8, - 195u8, - 121u8, - 6u8, - 243u8, - 69u8, - 19u8, - 130u8, - 152u8, - 180u8, - 226u8, - 28u8, - 0u8, - 218u8, - 237u8, - 56u8, - 52u8, - 139u8, - 198u8, - 155u8, - 112u8, - 165u8, - 142u8, - 44u8, - 111u8, - 197u8, - 123u8, - 246u8, + 58u8, 51u8, 136u8, 162u8, 218u8, 195u8, 121u8, 6u8, + 243u8, 69u8, 19u8, 130u8, 152u8, 180u8, 226u8, + 28u8, 0u8, 218u8, 237u8, 56u8, 52u8, 139u8, 198u8, + 155u8, 112u8, 165u8, 142u8, 44u8, 111u8, 197u8, + 123u8, 246u8, ], ) } @@ -38137,37 +26243,10 @@ pub mod api { "chill", types::Chill { pool_id }, [ - 65u8, - 206u8, - 54u8, - 53u8, - 37u8, - 97u8, - 161u8, - 104u8, - 62u8, - 9u8, - 93u8, - 236u8, - 61u8, - 185u8, - 204u8, - 245u8, - 234u8, - 218u8, - 213u8, - 40u8, - 154u8, - 29u8, - 244u8, - 19u8, - 207u8, - 172u8, - 142u8, - 221u8, - 38u8, - 70u8, - 39u8, + 65u8, 206u8, 54u8, 53u8, 37u8, 97u8, 161u8, 104u8, + 62u8, 9u8, 93u8, 236u8, 61u8, 185u8, 204u8, 245u8, + 234u8, 218u8, 213u8, 40u8, 154u8, 29u8, 244u8, + 19u8, 207u8, 172u8, 142u8, 221u8, 38u8, 70u8, 39u8, 10u8, ], ) @@ -38190,47 +26269,18 @@ pub mod api { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "bond_extra_other", - types::BondExtraOther { - member, - extra, - }, + types::BondExtraOther { member, extra }, [ - 217u8, - 91u8, - 160u8, - 244u8, - 122u8, - 153u8, - 236u8, - 132u8, - 197u8, - 31u8, - 124u8, - 22u8, - 89u8, - 146u8, - 173u8, - 96u8, - 167u8, - 220u8, - 91u8, - 27u8, - 230u8, - 128u8, - 222u8, - 128u8, - 97u8, - 53u8, - 226u8, - 222u8, - 165u8, - 133u8, - 54u8, - 236u8, + 217u8, 91u8, 160u8, 244u8, 122u8, 153u8, 236u8, + 132u8, 197u8, 31u8, 124u8, 22u8, 89u8, 146u8, + 173u8, 96u8, 167u8, 220u8, 91u8, 27u8, 230u8, + 128u8, 222u8, 128u8, 97u8, 53u8, 226u8, 222u8, + 165u8, 133u8, 54u8, 236u8, ], ) } @@ -38249,46 +26299,18 @@ pub mod api { pub fn set_claim_permission( &self, permission: runtime_types::pallet_nomination_pools::ClaimPermission, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NominationPools", - "set_claim_permission", - types::SetClaimPermission { - permission, - }, - [ - 36u8, - 137u8, - 193u8, - 200u8, - 57u8, - 46u8, - 87u8, - 236u8, - 180u8, - 170u8, - 90u8, - 99u8, - 137u8, - 123u8, - 99u8, - 197u8, - 113u8, - 119u8, - 72u8, - 153u8, - 207u8, - 189u8, - 69u8, - 89u8, - 225u8, - 115u8, - 45u8, - 32u8, - 216u8, - 43u8, - 92u8, - 135u8, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_claim_permission", + types::SetClaimPermission { permission }, + [ + 36u8, 137u8, 193u8, 200u8, 57u8, 46u8, 87u8, 236u8, + 180u8, 170u8, 90u8, 99u8, 137u8, 123u8, 99u8, + 197u8, 113u8, 119u8, 72u8, 153u8, 207u8, 189u8, + 69u8, 89u8, 225u8, 115u8, 45u8, 32u8, 216u8, 43u8, + 92u8, 135u8, ], ) } @@ -38299,44 +26321,18 @@ pub mod api { pub fn claim_payout_other( &self, other: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "claim_payout_other", types::ClaimPayoutOther { other }, [ - 202u8, - 130u8, - 122u8, - 10u8, - 159u8, - 181u8, - 124u8, - 215u8, - 23u8, - 85u8, - 234u8, - 178u8, - 169u8, - 41u8, - 204u8, - 226u8, - 195u8, - 69u8, - 168u8, - 88u8, - 58u8, - 15u8, - 3u8, - 227u8, - 180u8, - 183u8, - 62u8, - 224u8, - 39u8, - 218u8, - 75u8, - 166u8, + 202u8, 130u8, 122u8, 10u8, 159u8, 181u8, 124u8, + 215u8, 23u8, 85u8, 234u8, 178u8, 169u8, 41u8, + 204u8, 226u8, 195u8, 69u8, 168u8, 88u8, 58u8, 15u8, + 3u8, 227u8, 180u8, 183u8, 62u8, 224u8, 39u8, 218u8, + 75u8, 166u8, ], ) } @@ -38348,13 +26344,12 @@ pub mod api { pub fn set_commission( &self, pool_id: ::core::primitive::u32, - new_commission: ::core::option::Option< - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - ), - >, - ) -> ::subxt::tx::Payload { + new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "set_commission", @@ -38363,38 +26358,11 @@ pub mod api { new_commission, }, [ - 144u8, - 94u8, - 73u8, - 69u8, - 224u8, - 158u8, - 244u8, - 77u8, - 169u8, - 219u8, - 101u8, - 41u8, - 37u8, - 211u8, - 198u8, - 32u8, - 92u8, - 108u8, - 7u8, - 27u8, - 153u8, - 37u8, - 82u8, - 174u8, - 196u8, - 176u8, - 196u8, - 181u8, - 45u8, - 81u8, - 134u8, - 162u8, + 144u8, 94u8, 73u8, 69u8, 224u8, 158u8, 244u8, 77u8, + 169u8, 219u8, 101u8, 41u8, 37u8, 211u8, 198u8, + 32u8, 92u8, 108u8, 7u8, 27u8, 153u8, 37u8, 82u8, + 174u8, 196u8, 176u8, 196u8, 181u8, 45u8, 81u8, + 134u8, 162u8, ], ) } @@ -38407,7 +26375,8 @@ pub mod api { &self, pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_max", @@ -38416,38 +26385,11 @@ pub mod api { max_commission, }, [ - 180u8, - 80u8, - 204u8, - 129u8, - 141u8, - 86u8, - 45u8, - 76u8, - 224u8, - 123u8, - 212u8, - 38u8, - 224u8, - 79u8, - 41u8, - 143u8, - 237u8, - 174u8, - 126u8, - 1u8, - 215u8, - 105u8, - 50u8, - 46u8, - 151u8, - 11u8, - 118u8, - 198u8, - 183u8, - 95u8, - 47u8, - 71u8, + 180u8, 80u8, 204u8, 129u8, 141u8, 86u8, 45u8, 76u8, + 224u8, 123u8, 212u8, 38u8, 224u8, 79u8, 41u8, + 143u8, 237u8, 174u8, 126u8, 1u8, 215u8, 105u8, + 50u8, 46u8, 151u8, 11u8, 118u8, 198u8, 183u8, 95u8, + 47u8, 71u8, ], ) } @@ -38461,7 +26403,8 @@ pub mod api { change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< ::core::primitive::u32, >, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "set_commission_change_rate", @@ -38470,38 +26413,11 @@ pub mod api { change_rate, }, [ - 138u8, - 30u8, - 155u8, - 127u8, - 181u8, - 99u8, - 89u8, - 138u8, - 130u8, - 53u8, - 224u8, - 96u8, - 190u8, - 14u8, - 76u8, - 244u8, - 142u8, - 50u8, - 39u8, - 245u8, - 144u8, - 87u8, - 64u8, - 206u8, - 246u8, - 225u8, - 111u8, - 197u8, - 245u8, - 182u8, - 121u8, - 56u8, + 138u8, 30u8, 155u8, 127u8, 181u8, 99u8, 89u8, + 138u8, 130u8, 53u8, 224u8, 96u8, 190u8, 14u8, 76u8, + 244u8, 142u8, 50u8, 39u8, 245u8, 144u8, 87u8, 64u8, + 206u8, 246u8, 225u8, 111u8, 197u8, 245u8, 182u8, + 121u8, 56u8, ], ) } @@ -38513,44 +26429,17 @@ pub mod api { pub fn claim_commission( &self, pool_id: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "NominationPools", "claim_commission", types::ClaimCommission { pool_id }, [ - 51u8, - 64u8, - 163u8, - 230u8, - 2u8, - 119u8, - 68u8, - 5u8, - 154u8, - 4u8, - 84u8, - 149u8, - 9u8, - 195u8, - 173u8, - 37u8, - 98u8, - 48u8, - 188u8, - 65u8, - 81u8, - 11u8, - 64u8, - 254u8, - 126u8, - 62u8, - 29u8, - 204u8, - 92u8, - 230u8, - 240u8, - 91u8, + 51u8, 64u8, 163u8, 230u8, 2u8, 119u8, 68u8, 5u8, + 154u8, 4u8, 84u8, 149u8, 9u8, 195u8, 173u8, 37u8, + 98u8, 48u8, 188u8, 65u8, 81u8, 11u8, 64u8, 254u8, + 126u8, 62u8, 29u8, 204u8, 92u8, 230u8, 240u8, 91u8, ], ) } @@ -38568,7 +26457,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38590,7 +26479,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38614,7 +26503,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38637,7 +26526,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38672,7 +26561,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38702,7 +26591,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38723,7 +26612,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38731,7 +26620,8 @@ pub mod api { ///The state of a pool has changed pub struct StateChanged { pub pool_id: ::core::primitive::u32, - pub new_state: runtime_types::pallet_nomination_pools::PoolState, + pub new_state: + runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::events::StaticEvent for StateChanged { const PALLET: &'static str = "NominationPools"; @@ -38745,7 +26635,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38769,7 +26659,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38778,8 +26668,10 @@ pub mod api { ///can never change. pub struct RolesUpdated { pub root: ::core::option::Option<::subxt::utils::AccountId32>, - pub bouncer: ::core::option::Option<::subxt::utils::AccountId32>, - pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, + pub bouncer: + ::core::option::Option<::subxt::utils::AccountId32>, + pub nominator: + ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for RolesUpdated { const PALLET: &'static str = "NominationPools"; @@ -38793,7 +26685,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38815,7 +26707,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38838,7 +26730,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38846,12 +26738,10 @@ pub mod api { ///A pool's commission setting has been changed. pub struct PoolCommissionUpdated { pub pool_id: ::core::primitive::u32, - pub current: ::core::option::Option< - ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - ), - >, + pub current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, } impl ::subxt::events::StaticEvent for PoolCommissionUpdated { const PALLET: &'static str = "NominationPools"; @@ -38865,7 +26755,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38873,7 +26763,8 @@ pub mod api { ///A pool's maximum commission setting has been changed. pub struct PoolMaxCommissionUpdated { pub pool_id: ::core::primitive::u32, - pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + pub max_commission: + runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { const PALLET: &'static str = "NominationPools"; @@ -38887,7 +26778,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38911,7 +26802,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -38945,38 +26836,11 @@ pub mod api { "MinJoinBond", vec![], [ - 64u8, - 180u8, - 71u8, - 185u8, - 81u8, - 46u8, - 155u8, - 26u8, - 251u8, - 84u8, - 108u8, - 80u8, - 128u8, - 44u8, - 163u8, - 118u8, - 107u8, - 79u8, - 250u8, - 211u8, - 194u8, - 71u8, - 87u8, - 16u8, - 247u8, - 9u8, - 76u8, - 95u8, - 103u8, - 227u8, - 180u8, - 231u8, + 64u8, 180u8, 71u8, 185u8, 81u8, 46u8, 155u8, 26u8, + 251u8, 84u8, 108u8, 80u8, 128u8, 44u8, 163u8, + 118u8, 107u8, 79u8, 250u8, 211u8, 194u8, 71u8, + 87u8, 16u8, 247u8, 9u8, 76u8, 95u8, 103u8, 227u8, + 180u8, 231u8, ], ) } @@ -39001,38 +26865,11 @@ pub mod api { "MinCreateBond", vec![], [ - 210u8, - 67u8, - 92u8, - 230u8, - 231u8, - 105u8, - 54u8, - 249u8, - 154u8, - 192u8, - 29u8, - 217u8, - 233u8, - 79u8, - 170u8, - 126u8, - 133u8, - 98u8, - 253u8, - 153u8, - 248u8, - 189u8, - 63u8, - 107u8, - 170u8, - 224u8, - 12u8, - 42u8, - 198u8, - 185u8, - 85u8, - 46u8, + 210u8, 67u8, 92u8, 230u8, 231u8, 105u8, 54u8, + 249u8, 154u8, 192u8, 29u8, 217u8, 233u8, 79u8, + 170u8, 126u8, 133u8, 98u8, 253u8, 153u8, 248u8, + 189u8, 63u8, 107u8, 170u8, 224u8, 12u8, 42u8, + 198u8, 185u8, 85u8, 46u8, ], ) } @@ -39052,38 +26889,11 @@ pub mod api { "MaxPools", vec![], [ - 230u8, - 184u8, - 242u8, - 91u8, - 118u8, - 111u8, - 90u8, - 204u8, - 136u8, - 61u8, - 228u8, - 50u8, - 212u8, - 40u8, - 83u8, - 49u8, - 121u8, - 161u8, - 245u8, - 80u8, - 46u8, - 184u8, - 105u8, - 134u8, - 249u8, - 225u8, - 39u8, - 3u8, - 123u8, - 137u8, - 156u8, - 240u8, + 230u8, 184u8, 242u8, 91u8, 118u8, 111u8, 90u8, + 204u8, 136u8, 61u8, 228u8, 50u8, 212u8, 40u8, 83u8, + 49u8, 121u8, 161u8, 245u8, 80u8, 46u8, 184u8, + 105u8, 134u8, 249u8, 225u8, 39u8, 3u8, 123u8, + 137u8, 156u8, 240u8, ], ) } @@ -39103,38 +26913,11 @@ pub mod api { "MaxPoolMembers", vec![], [ - 210u8, - 222u8, - 181u8, - 146u8, - 137u8, - 200u8, - 71u8, - 196u8, - 74u8, - 38u8, - 36u8, - 122u8, - 187u8, - 164u8, - 218u8, - 116u8, - 216u8, - 143u8, - 182u8, - 15u8, - 23u8, - 124u8, - 57u8, - 121u8, - 81u8, - 151u8, - 8u8, - 247u8, - 80u8, - 136u8, - 115u8, - 2u8, + 210u8, 222u8, 181u8, 146u8, 137u8, 200u8, 71u8, + 196u8, 74u8, 38u8, 36u8, 122u8, 187u8, 164u8, + 218u8, 116u8, 216u8, 143u8, 182u8, 15u8, 23u8, + 124u8, 57u8, 121u8, 81u8, 151u8, 8u8, 247u8, 80u8, + 136u8, 115u8, 2u8, ], ) } @@ -39154,38 +26937,11 @@ pub mod api { "MaxPoolMembersPerPool", vec![], [ - 250u8, - 255u8, - 136u8, - 223u8, - 61u8, - 119u8, - 117u8, - 240u8, - 68u8, - 114u8, - 55u8, - 1u8, - 176u8, - 120u8, - 143u8, - 48u8, - 232u8, - 125u8, - 218u8, - 105u8, - 28u8, - 230u8, - 253u8, - 36u8, - 9u8, - 44u8, - 129u8, - 225u8, - 147u8, - 33u8, - 181u8, - 68u8, + 250u8, 255u8, 136u8, 223u8, 61u8, 119u8, 117u8, + 240u8, 68u8, 114u8, 55u8, 1u8, 176u8, 120u8, 143u8, + 48u8, 232u8, 125u8, 218u8, 105u8, 28u8, 230u8, + 253u8, 36u8, 9u8, 44u8, 129u8, 225u8, 147u8, 33u8, + 181u8, 68u8, ], ) } @@ -39206,38 +26962,11 @@ pub mod api { "GlobalMaxCommission", vec![], [ - 2u8, - 112u8, - 8u8, - 116u8, - 114u8, - 97u8, - 250u8, - 106u8, - 170u8, - 215u8, - 218u8, - 217u8, - 80u8, - 235u8, - 149u8, - 81u8, - 85u8, - 185u8, - 201u8, - 127u8, - 107u8, - 251u8, - 191u8, - 231u8, - 142u8, - 74u8, - 8u8, - 70u8, - 151u8, - 238u8, - 117u8, - 173u8, + 2u8, 112u8, 8u8, 116u8, 114u8, 97u8, 250u8, 106u8, + 170u8, 215u8, 218u8, 217u8, 80u8, 235u8, 149u8, + 81u8, 85u8, 185u8, 201u8, 127u8, 107u8, 251u8, + 191u8, 231u8, 142u8, 74u8, 8u8, 70u8, 151u8, 238u8, + 117u8, 173u8, ], ) } @@ -39314,38 +27043,11 @@ pub mod api { "PoolMembers", Vec::new(), [ - 116u8, - 41u8, - 89u8, - 74u8, - 35u8, - 243u8, - 213u8, - 178u8, - 41u8, - 249u8, - 62u8, - 119u8, - 72u8, - 34u8, - 197u8, - 168u8, - 147u8, - 178u8, - 159u8, - 10u8, - 181u8, - 255u8, - 40u8, - 211u8, - 206u8, - 32u8, - 130u8, - 25u8, - 201u8, - 54u8, - 212u8, - 25u8, + 116u8, 41u8, 89u8, 74u8, 35u8, 243u8, 213u8, 178u8, + 41u8, 249u8, 62u8, 119u8, 72u8, 34u8, 197u8, 168u8, + 147u8, 178u8, 159u8, 10u8, 181u8, 255u8, 40u8, + 211u8, 206u8, 32u8, 130u8, 25u8, 201u8, 54u8, + 212u8, 25u8, ], ) } @@ -39364,38 +27066,11 @@ pub mod api { "CounterForPoolMembers", vec![], [ - 165u8, - 158u8, - 130u8, - 19u8, - 106u8, - 227u8, - 134u8, - 73u8, - 36u8, - 237u8, - 103u8, - 146u8, - 198u8, - 68u8, - 219u8, - 186u8, - 134u8, - 224u8, - 89u8, - 251u8, - 200u8, - 46u8, - 87u8, - 232u8, - 53u8, - 152u8, - 13u8, - 10u8, - 105u8, - 49u8, - 150u8, - 212u8, + 165u8, 158u8, 130u8, 19u8, 106u8, 227u8, 134u8, + 73u8, 36u8, 237u8, 103u8, 146u8, 198u8, 68u8, + 219u8, 186u8, 134u8, 224u8, 89u8, 251u8, 200u8, + 46u8, 87u8, 232u8, 53u8, 152u8, 13u8, 10u8, 105u8, + 49u8, 150u8, 212u8, ], ) } @@ -39468,87 +27143,33 @@ pub mod api { "BondedPools", Vec::new(), [ - 171u8, - 143u8, - 96u8, - 95u8, - 196u8, - 228u8, - 116u8, - 22u8, - 63u8, - 105u8, - 193u8, - 77u8, - 171u8, - 99u8, - 144u8, - 70u8, - 166u8, - 55u8, - 14u8, - 191u8, - 156u8, - 17u8, - 237u8, - 193u8, - 228u8, - 243u8, - 164u8, - 187u8, - 127u8, - 245u8, - 117u8, - 238u8, + 171u8, 143u8, 96u8, 95u8, 196u8, 228u8, 116u8, + 22u8, 63u8, 105u8, 193u8, 77u8, 171u8, 99u8, 144u8, + 70u8, 166u8, 55u8, 14u8, 191u8, 156u8, 17u8, 237u8, + 193u8, 228u8, 243u8, 164u8, 187u8, 127u8, 245u8, + 117u8, 238u8, ], ) } ///Counter for the related counted storage map pub fn counter_for_bonded_pools( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NominationPools", - "CounterForBondedPools", - vec![], - [ - 198u8, - 6u8, - 213u8, - 92u8, - 4u8, - 114u8, - 164u8, - 244u8, - 51u8, - 55u8, - 157u8, - 20u8, - 224u8, - 183u8, - 40u8, - 236u8, - 115u8, - 86u8, - 171u8, - 207u8, - 31u8, - 111u8, - 0u8, - 210u8, - 48u8, - 198u8, - 243u8, - 153u8, - 5u8, - 216u8, - 107u8, + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForBondedPools", + vec![], + [ + 198u8, 6u8, 213u8, 92u8, 4u8, 114u8, 164u8, 244u8, + 51u8, 55u8, 157u8, 20u8, 224u8, 183u8, 40u8, 236u8, + 115u8, 86u8, 171u8, 207u8, 31u8, 111u8, 0u8, 210u8, + 48u8, 198u8, 243u8, 153u8, 5u8, 216u8, 107u8, 113u8, ], ) @@ -39624,38 +27245,11 @@ pub mod api { "RewardPools", Vec::new(), [ - 150u8, - 53u8, - 204u8, - 26u8, - 187u8, - 118u8, - 80u8, - 133u8, - 94u8, - 127u8, - 155u8, - 78u8, - 71u8, - 72u8, - 0u8, - 220u8, - 174u8, - 174u8, - 109u8, - 238u8, - 13u8, - 120u8, - 193u8, - 102u8, - 219u8, - 22u8, - 89u8, - 117u8, - 169u8, - 212u8, - 64u8, - 204u8, + 150u8, 53u8, 204u8, 26u8, 187u8, 118u8, 80u8, + 133u8, 94u8, 127u8, 155u8, 78u8, 71u8, 72u8, 0u8, + 220u8, 174u8, 174u8, 109u8, 238u8, 13u8, 120u8, + 193u8, 102u8, 219u8, 22u8, 89u8, 117u8, 169u8, + 212u8, 64u8, 204u8, ], ) } @@ -39674,38 +27268,11 @@ pub mod api { "CounterForRewardPools", vec![], [ - 218u8, - 186u8, - 28u8, - 97u8, - 205u8, - 249u8, - 187u8, - 10u8, - 127u8, - 190u8, - 213u8, - 152u8, - 103u8, - 20u8, - 157u8, - 183u8, - 86u8, - 104u8, - 186u8, - 236u8, - 84u8, - 159u8, - 117u8, - 78u8, - 5u8, - 242u8, - 193u8, - 59u8, - 112u8, - 200u8, - 34u8, - 166u8, + 218u8, 186u8, 28u8, 97u8, 205u8, 249u8, 187u8, + 10u8, 127u8, 190u8, 213u8, 152u8, 103u8, 20u8, + 157u8, 183u8, 86u8, 104u8, 186u8, 236u8, 84u8, + 159u8, 117u8, 78u8, 5u8, 242u8, 193u8, 59u8, 112u8, + 200u8, 34u8, 166u8, ], ) } @@ -39780,37 +27347,10 @@ pub mod api { "SubPoolsStorage", Vec::new(), [ - 248u8, - 37u8, - 232u8, - 231u8, - 14u8, - 140u8, - 12u8, - 27u8, - 61u8, - 222u8, - 185u8, - 128u8, - 158u8, - 30u8, - 57u8, - 121u8, - 35u8, - 11u8, - 42u8, - 242u8, - 56u8, - 1u8, - 61u8, - 0u8, - 67u8, - 140u8, - 55u8, - 62u8, - 165u8, - 134u8, - 136u8, + 248u8, 37u8, 232u8, 231u8, 14u8, 140u8, 12u8, 27u8, + 61u8, 222u8, 185u8, 128u8, 158u8, 30u8, 57u8, + 121u8, 35u8, 11u8, 42u8, 242u8, 56u8, 1u8, 61u8, + 0u8, 67u8, 140u8, 55u8, 62u8, 165u8, 134u8, 136u8, 4u8, ], ) @@ -39830,38 +27370,11 @@ pub mod api { "CounterForSubPoolsStorage", vec![], [ - 137u8, - 162u8, - 32u8, - 44u8, - 163u8, - 30u8, - 54u8, - 158u8, - 169u8, - 118u8, - 196u8, - 101u8, - 78u8, - 28u8, - 184u8, - 78u8, - 185u8, - 225u8, - 226u8, - 207u8, - 14u8, - 119u8, - 0u8, - 116u8, - 140u8, - 141u8, - 116u8, - 106u8, - 71u8, - 161u8, - 200u8, - 228u8, + 137u8, 162u8, 32u8, 44u8, 163u8, 30u8, 54u8, 158u8, + 169u8, 118u8, 196u8, 101u8, 78u8, 28u8, 184u8, + 78u8, 185u8, 225u8, 226u8, 207u8, 14u8, 119u8, 0u8, + 116u8, 140u8, 141u8, 116u8, 106u8, 71u8, 161u8, + 200u8, 228u8, ], ) } @@ -39938,38 +27451,11 @@ pub mod api { "Metadata", Vec::new(), [ - 10u8, - 171u8, - 251u8, - 5u8, - 72u8, - 74u8, - 86u8, - 144u8, - 59u8, - 67u8, - 92u8, - 111u8, - 217u8, - 111u8, - 175u8, - 107u8, - 119u8, - 206u8, - 199u8, - 78u8, - 182u8, - 84u8, - 12u8, - 102u8, - 10u8, - 124u8, - 103u8, - 9u8, - 86u8, - 199u8, - 233u8, - 54u8, + 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, + 59u8, 67u8, 92u8, 111u8, 217u8, 111u8, 175u8, + 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, 84u8, + 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, + 233u8, 54u8, ], ) } @@ -39988,38 +27474,11 @@ pub mod api { "CounterForMetadata", vec![], [ - 49u8, - 76u8, - 175u8, - 236u8, - 99u8, - 120u8, - 156u8, - 116u8, - 153u8, - 173u8, - 10u8, - 102u8, - 194u8, - 139u8, - 25u8, - 149u8, - 109u8, - 195u8, - 150u8, - 21u8, - 43u8, - 24u8, - 196u8, - 180u8, - 231u8, - 101u8, - 69u8, - 98u8, - 82u8, - 159u8, - 183u8, - 174u8, + 49u8, 76u8, 175u8, 236u8, 99u8, 120u8, 156u8, + 116u8, 153u8, 173u8, 10u8, 102u8, 194u8, 139u8, + 25u8, 149u8, 109u8, 195u8, 150u8, 21u8, 43u8, 24u8, + 196u8, 180u8, 231u8, 101u8, 69u8, 98u8, 82u8, + 159u8, 183u8, 174u8, ], ) } @@ -40038,38 +27497,11 @@ pub mod api { "LastPoolId", vec![], [ - 178u8, - 198u8, - 245u8, - 157u8, - 176u8, - 45u8, - 214u8, - 86u8, - 73u8, - 154u8, - 217u8, - 39u8, - 191u8, - 53u8, - 233u8, - 145u8, - 57u8, - 100u8, - 31u8, - 13u8, - 202u8, - 122u8, - 115u8, - 16u8, - 205u8, - 69u8, - 157u8, - 250u8, - 216u8, - 180u8, - 113u8, - 30u8, + 178u8, 198u8, 245u8, 157u8, 176u8, 45u8, 214u8, + 86u8, 73u8, 154u8, 217u8, 39u8, 191u8, 53u8, 233u8, + 145u8, 57u8, 100u8, 31u8, 13u8, 202u8, 122u8, + 115u8, 16u8, 205u8, 69u8, 157u8, 250u8, 216u8, + 180u8, 113u8, 30u8, ], ) } @@ -40148,37 +27580,10 @@ pub mod api { "ReversePoolIdLookup", Vec::new(), [ - 76u8, - 76u8, - 150u8, - 33u8, - 64u8, - 81u8, - 90u8, - 75u8, - 212u8, - 221u8, - 59u8, - 83u8, - 178u8, - 45u8, - 86u8, - 206u8, - 196u8, - 221u8, - 117u8, - 94u8, - 229u8, - 160u8, - 52u8, - 54u8, - 11u8, - 64u8, - 0u8, - 103u8, - 85u8, - 86u8, - 5u8, + 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, + 212u8, 221u8, 59u8, 83u8, 178u8, 45u8, 86u8, 206u8, + 196u8, 221u8, 117u8, 94u8, 229u8, 160u8, 52u8, + 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, ], ) @@ -40198,38 +27603,11 @@ pub mod api { "CounterForReversePoolIdLookup", vec![], [ - 135u8, - 72u8, - 203u8, - 197u8, - 101u8, - 135u8, - 114u8, - 202u8, - 122u8, - 231u8, - 128u8, - 17u8, - 81u8, - 70u8, - 22u8, - 146u8, - 100u8, - 138u8, - 16u8, - 74u8, - 31u8, - 250u8, - 110u8, - 184u8, - 250u8, - 75u8, - 249u8, - 71u8, - 171u8, - 77u8, - 95u8, - 251u8, + 135u8, 72u8, 203u8, 197u8, 101u8, 135u8, 114u8, + 202u8, 122u8, 231u8, 128u8, 17u8, 81u8, 70u8, 22u8, + 146u8, 100u8, 138u8, 16u8, 74u8, 31u8, 250u8, + 110u8, 184u8, 250u8, 75u8, 249u8, 71u8, 171u8, + 77u8, 95u8, 251u8, ], ) } @@ -40302,37 +27680,10 @@ pub mod api { "ClaimPermissions", Vec::new(), [ - 98u8, - 241u8, - 185u8, - 102u8, - 61u8, - 53u8, - 215u8, - 105u8, - 2u8, - 148u8, - 197u8, - 17u8, - 107u8, - 253u8, - 74u8, - 159u8, - 14u8, - 30u8, - 213u8, - 38u8, - 35u8, - 163u8, - 249u8, - 19u8, - 140u8, - 201u8, - 182u8, - 106u8, - 0u8, - 21u8, - 102u8, + 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, ], ) @@ -40353,38 +27704,11 @@ pub mod api { "NominationPools", "PalletId", [ - 56u8, - 243u8, - 53u8, - 83u8, - 154u8, - 179u8, - 170u8, - 80u8, - 133u8, - 173u8, - 61u8, - 161u8, - 47u8, - 225u8, - 146u8, - 21u8, - 50u8, - 229u8, - 248u8, - 27u8, - 104u8, - 58u8, - 129u8, - 197u8, - 102u8, - 160u8, - 168u8, - 205u8, - 154u8, - 42u8, - 217u8, - 53u8, + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, + 133u8, 173u8, 61u8, 161u8, 47u8, 225u8, 146u8, + 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, 129u8, + 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, + 217u8, 53u8, ], ) } @@ -40402,43 +27726,17 @@ pub mod api { /// Such a scenario would also be the equivalent of the pool being 90% slashed. pub fn max_points_to_balance( &self, - ) -> ::subxt::constants::Address<::core::primitive::u8> { + ) -> ::subxt::constants::Address<::core::primitive::u8> + { ::subxt::constants::Address::new_static( "NominationPools", "MaxPointsToBalance", [ - 141u8, - 130u8, - 11u8, - 35u8, - 226u8, - 114u8, - 92u8, - 179u8, - 168u8, - 110u8, - 28u8, - 91u8, - 221u8, - 64u8, - 4u8, - 148u8, - 201u8, - 193u8, - 185u8, - 66u8, - 226u8, - 114u8, - 97u8, - 79u8, - 62u8, - 212u8, - 202u8, - 114u8, - 237u8, - 228u8, - 183u8, - 165u8, + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, + 179u8, 168u8, 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, + 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, 114u8, + 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, + 228u8, 183u8, 165u8, ], ) } @@ -40449,9 +27747,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_scheduler::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_scheduler::pallet::Call; @@ -40469,16 +27767,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Schedule { pub when: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -40496,11 +27799,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Cancel { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, @@ -40517,17 +27824,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ScheduleNamed { pub id: [::core::primitive::u8; 32usize], pub when: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -40545,11 +27857,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CancelNamed { pub id: [::core::primitive::u8; 32usize], } @@ -40565,16 +27881,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ScheduleAfter { pub after: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -40592,17 +27913,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ScheduleNamedAfter { pub id: [::core::primitive::u8; 32usize], pub after: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, + pub maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, pub priority: ::core::primitive::u8, pub call: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -40619,100 +27945,47 @@ pub mod api { pub fn schedule( &self, when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, - priority: ::core::primitive::u8, - call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "schedule", - types::Schedule { - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }, - [ - 107u8, - 109u8, - 135u8, - 115u8, - 235u8, - 111u8, - 10u8, - 181u8, - 145u8, - 195u8, - 19u8, - 145u8, - 53u8, - 199u8, - 128u8, - 213u8, - 237u8, - 137u8, - 41u8, - 191u8, - 184u8, - 49u8, - 122u8, - 102u8, - 105u8, - 66u8, - 115u8, - 86u8, - 90u8, - 59u8, - 40u8, - 14u8, - ], - ) - } - ///Cancel an anonymously scheduled task. - pub fn cancel( - &self, - when: ::core::primitive::u32, - index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Scheduler", - "cancel", - types::Cancel { when, index }, - [ - 32u8, - 107u8, - 14u8, - 102u8, - 56u8, - 200u8, - 68u8, - 186u8, - 192u8, - 100u8, - 152u8, - 124u8, - 171u8, - 154u8, - 230u8, - 115u8, - 62u8, - 140u8, - 88u8, - 178u8, - 119u8, - 210u8, - 222u8, - 31u8, - 134u8, - 225u8, - 133u8, - 241u8, - 42u8, - 110u8, - 147u8, - 47u8, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::tangle_standalone_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule", + types::Schedule { + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 107u8, 109u8, 135u8, 115u8, 235u8, 111u8, 10u8, + 181u8, 145u8, 195u8, 19u8, 145u8, 53u8, 199u8, + 128u8, 213u8, 237u8, 137u8, 41u8, 191u8, 184u8, + 49u8, 122u8, 102u8, 105u8, 66u8, 115u8, 86u8, 90u8, + 59u8, 40u8, 14u8, + ], + ) + } + ///Cancel an anonymously scheduled task. + pub fn cancel( + &self, + when: ::core::primitive::u32, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "cancel", + types::Cancel { when, index }, + [ + 32u8, 107u8, 14u8, 102u8, 56u8, 200u8, 68u8, 186u8, + 192u8, 100u8, 152u8, 124u8, 171u8, 154u8, 230u8, + 115u8, 62u8, 140u8, 88u8, 178u8, 119u8, 210u8, + 222u8, 31u8, 134u8, 225u8, 133u8, 241u8, 42u8, + 110u8, 147u8, 47u8, ], ) } @@ -40721,12 +27994,14 @@ pub mod api { &self, id: [::core::primitive::u8; 32usize], when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, priority: ::core::primitive::u8, call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named", @@ -40738,38 +28013,11 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 189u8, - 129u8, - 68u8, - 252u8, - 227u8, - 128u8, - 91u8, - 137u8, - 19u8, - 33u8, - 131u8, - 94u8, - 93u8, - 62u8, - 125u8, - 202u8, - 209u8, - 190u8, - 188u8, - 184u8, - 148u8, - 8u8, - 25u8, - 252u8, - 102u8, - 178u8, - 199u8, - 229u8, - 15u8, - 212u8, - 225u8, - 31u8, + 189u8, 129u8, 68u8, 252u8, 227u8, 128u8, 91u8, + 137u8, 19u8, 33u8, 131u8, 94u8, 93u8, 62u8, 125u8, + 202u8, 209u8, 190u8, 188u8, 184u8, 148u8, 8u8, + 25u8, 252u8, 102u8, 178u8, 199u8, 229u8, 15u8, + 212u8, 225u8, 31u8, ], ) } @@ -40783,38 +28031,11 @@ pub mod api { "cancel_named", types::CancelNamed { id }, [ - 205u8, - 35u8, - 28u8, - 57u8, - 224u8, - 7u8, - 49u8, - 233u8, - 236u8, - 163u8, - 93u8, - 236u8, - 103u8, - 69u8, - 65u8, - 51u8, - 121u8, - 84u8, - 9u8, - 196u8, - 147u8, - 122u8, - 227u8, - 200u8, - 181u8, - 233u8, - 62u8, - 240u8, - 174u8, - 83u8, - 129u8, - 193u8, + 205u8, 35u8, 28u8, 57u8, 224u8, 7u8, 49u8, 233u8, + 236u8, 163u8, 93u8, 236u8, 103u8, 69u8, 65u8, 51u8, + 121u8, 84u8, 9u8, 196u8, 147u8, 122u8, 227u8, + 200u8, 181u8, 233u8, 62u8, 240u8, 174u8, 83u8, + 129u8, 193u8, ], ) } @@ -40822,12 +28043,14 @@ pub mod api { pub fn schedule_after( &self, after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, priority: ::core::primitive::u8, call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Scheduler", "schedule_after", @@ -40838,38 +28061,11 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 133u8, - 35u8, - 208u8, - 152u8, - 254u8, - 69u8, - 162u8, - 189u8, - 197u8, - 32u8, - 2u8, - 255u8, - 190u8, - 70u8, - 87u8, - 173u8, - 164u8, - 159u8, - 205u8, - 83u8, - 52u8, - 228u8, - 225u8, - 150u8, - 87u8, - 229u8, - 101u8, - 173u8, - 121u8, - 253u8, - 107u8, - 202u8, + 133u8, 35u8, 208u8, 152u8, 254u8, 69u8, 162u8, + 189u8, 197u8, 32u8, 2u8, 255u8, 190u8, 70u8, 87u8, + 173u8, 164u8, 159u8, 205u8, 83u8, 52u8, 228u8, + 225u8, 150u8, 87u8, 229u8, 101u8, 173u8, 121u8, + 253u8, 107u8, 202u8, ], ) } @@ -40878,12 +28074,14 @@ pub mod api { &self, id: [::core::primitive::u8; 32usize], after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option< - (::core::primitive::u32, ::core::primitive::u32), - >, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, priority: ::core::primitive::u8, call: runtime_types::tangle_standalone_runtime::RuntimeCall, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Scheduler", "schedule_named_after", @@ -40895,38 +28093,11 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 221u8, - 126u8, - 113u8, - 228u8, - 234u8, - 245u8, - 188u8, - 183u8, - 198u8, - 208u8, - 32u8, - 207u8, - 147u8, - 210u8, - 80u8, - 219u8, - 85u8, - 129u8, - 170u8, - 201u8, - 74u8, - 82u8, - 145u8, - 20u8, - 223u8, - 114u8, - 47u8, - 133u8, - 109u8, - 110u8, - 233u8, - 203u8, + 221u8, 126u8, 113u8, 228u8, 234u8, 245u8, 188u8, + 183u8, 198u8, 208u8, 32u8, 207u8, 147u8, 210u8, + 80u8, 219u8, 85u8, 129u8, 170u8, 201u8, 74u8, 82u8, + 145u8, 20u8, 223u8, 114u8, 47u8, 133u8, 109u8, + 110u8, 233u8, 203u8, ], ) } @@ -40944,7 +28115,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -40966,7 +28137,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -40988,7 +28159,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -40996,7 +28167,8 @@ pub mod api { ///Dispatched some task. pub struct Dispatched { pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, pub result: ::core::result::Result< (), runtime_types::sp_runtime::DispatchError, @@ -41014,7 +28186,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -41022,7 +28194,8 @@ pub mod api { ///The call for the provided hash was not found so the task has been aborted. pub struct CallUnavailable { pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for CallUnavailable { const PALLET: &'static str = "Scheduler"; @@ -41036,7 +28209,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -41044,7 +28217,8 @@ pub mod api { ///The given task was unable to be renewed since the agenda is full at that block. pub struct PeriodicFailed { pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PeriodicFailed { const PALLET: &'static str = "Scheduler"; @@ -41058,7 +28232,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -41066,7 +28240,8 @@ pub mod api { ///The given task can never be executed since it is overweight. pub struct PermanentlyOverweight { pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub id: + ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PermanentlyOverweight { const PALLET: &'static str = "Scheduler"; @@ -41091,37 +28266,10 @@ pub mod api { "IncompleteSince", vec![], [ - 250u8, - 83u8, - 64u8, - 167u8, - 205u8, - 59u8, - 225u8, - 97u8, - 205u8, - 12u8, - 76u8, - 130u8, - 197u8, - 4u8, - 111u8, - 208u8, - 92u8, - 217u8, - 145u8, - 119u8, - 38u8, - 135u8, - 1u8, - 242u8, - 228u8, - 143u8, - 56u8, - 25u8, - 115u8, - 233u8, - 227u8, + 250u8, 83u8, 64u8, 167u8, 205u8, 59u8, 225u8, 97u8, + 205u8, 12u8, 76u8, 130u8, 197u8, 4u8, 111u8, 208u8, + 92u8, 217u8, 145u8, 119u8, 38u8, 135u8, 1u8, 242u8, + 228u8, 143u8, 56u8, 25u8, 115u8, 233u8, 227u8, 66u8, ], ) @@ -41148,7 +28296,7 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", @@ -41213,44 +28361,17 @@ pub mod api { (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Scheduler", "Agenda", Vec::new(), [ - 208u8, - 81u8, - 183u8, - 14u8, - 40u8, - 41u8, - 36u8, - 96u8, - 212u8, - 225u8, - 141u8, - 76u8, - 205u8, - 104u8, - 128u8, - 46u8, - 75u8, - 146u8, - 78u8, - 19u8, - 168u8, - 255u8, - 238u8, - 236u8, - 243u8, - 226u8, - 237u8, - 9u8, - 183u8, - 249u8, - 151u8, - 12u8, + 208u8, 81u8, 183u8, 14u8, 40u8, 41u8, 36u8, 96u8, + 212u8, 225u8, 141u8, 76u8, 205u8, 104u8, 128u8, + 46u8, 75u8, 146u8, 78u8, 19u8, 168u8, 255u8, 238u8, + 236u8, 243u8, 226u8, 237u8, 9u8, 183u8, 249u8, + 151u8, 12u8, ], ) } @@ -41329,38 +28450,11 @@ pub mod api { "Lookup", Vec::new(), [ - 157u8, - 102u8, - 210u8, - 65u8, - 190u8, - 48u8, - 168u8, - 20u8, - 197u8, - 184u8, - 74u8, - 119u8, - 176u8, - 22u8, - 244u8, - 186u8, - 231u8, - 239u8, - 97u8, - 175u8, - 34u8, - 133u8, - 165u8, - 73u8, - 223u8, - 113u8, - 78u8, - 150u8, - 83u8, - 127u8, - 126u8, - 204u8, + 157u8, 102u8, 210u8, 65u8, 190u8, 48u8, 168u8, + 20u8, 197u8, 184u8, 74u8, 119u8, 176u8, 22u8, + 244u8, 186u8, 231u8, 239u8, 97u8, 175u8, 34u8, + 133u8, 165u8, 73u8, 223u8, 113u8, 78u8, 150u8, + 83u8, 127u8, 126u8, 204u8, ], ) } @@ -41380,37 +28474,10 @@ pub mod api { "Scheduler", "MaximumWeight", [ - 222u8, - 183u8, - 203u8, - 169u8, - 31u8, - 134u8, - 28u8, - 12u8, - 47u8, - 140u8, - 71u8, - 74u8, - 61u8, - 55u8, - 71u8, - 236u8, - 215u8, - 83u8, - 28u8, - 70u8, - 45u8, - 128u8, - 184u8, - 57u8, - 101u8, - 83u8, - 42u8, - 165u8, - 34u8, - 155u8, - 64u8, + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, + 12u8, 47u8, 140u8, 71u8, 74u8, 61u8, 55u8, 71u8, + 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, + 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, ], ) @@ -41422,42 +28489,16 @@ pub mod api { /// higher limit under `runtime-benchmarks` feature. pub fn max_scheduled_per_block( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Scheduler", "MaxScheduledPerBlock", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -41469,9 +28510,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_preimage::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_preimage::pallet::Call; @@ -41489,11 +28530,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct NotePreimage { pub bytes: ::std::vec::Vec<::core::primitive::u8>, } @@ -41509,11 +28554,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UnnotePreimage { pub hash: ::subxt::utils::H256, } @@ -41529,11 +28578,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RequestPreimage { pub hash: ::subxt::utils::H256, } @@ -41549,11 +28602,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UnrequestPreimage { pub hash: ::subxt::utils::H256, } @@ -41577,38 +28634,11 @@ pub mod api { "note_preimage", types::NotePreimage { bytes }, [ - 121u8, - 88u8, - 18u8, - 92u8, - 176u8, - 15u8, - 192u8, - 198u8, - 146u8, - 198u8, - 38u8, - 242u8, - 213u8, - 83u8, - 7u8, - 230u8, - 14u8, - 110u8, - 235u8, - 32u8, - 215u8, - 26u8, - 192u8, - 217u8, - 113u8, - 224u8, - 206u8, - 96u8, - 177u8, - 198u8, - 246u8, - 33u8, + 121u8, 88u8, 18u8, 92u8, 176u8, 15u8, 192u8, 198u8, + 146u8, 198u8, 38u8, 242u8, 213u8, 83u8, 7u8, 230u8, + 14u8, 110u8, 235u8, 32u8, 215u8, 26u8, 192u8, + 217u8, 113u8, 224u8, 206u8, 96u8, 177u8, 198u8, + 246u8, 33u8, ], ) } @@ -41621,44 +28651,18 @@ pub mod api { pub fn unnote_preimage( &self, hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Preimage", "unnote_preimage", types::UnnotePreimage { hash }, [ - 188u8, - 116u8, - 222u8, - 22u8, - 127u8, - 215u8, - 2u8, - 133u8, - 96u8, - 202u8, - 190u8, - 123u8, - 203u8, - 43u8, - 200u8, - 161u8, - 226u8, - 24u8, - 49u8, - 36u8, - 221u8, - 160u8, - 130u8, - 119u8, - 30u8, - 138u8, - 144u8, - 85u8, - 5u8, - 164u8, - 252u8, - 222u8, + 188u8, 116u8, 222u8, 22u8, 127u8, 215u8, 2u8, + 133u8, 96u8, 202u8, 190u8, 123u8, 203u8, 43u8, + 200u8, 161u8, 226u8, 24u8, 49u8, 36u8, 221u8, + 160u8, 130u8, 119u8, 30u8, 138u8, 144u8, 85u8, 5u8, + 164u8, 252u8, 222u8, ], ) } @@ -41669,44 +28673,18 @@ pub mod api { pub fn request_preimage( &self, hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Preimage", "request_preimage", types::RequestPreimage { hash }, [ - 87u8, - 0u8, - 204u8, - 111u8, - 43u8, - 115u8, - 64u8, - 209u8, - 133u8, - 13u8, - 83u8, - 45u8, - 164u8, - 166u8, - 233u8, - 105u8, - 242u8, - 238u8, - 235u8, - 208u8, - 113u8, - 134u8, - 93u8, - 242u8, - 86u8, - 32u8, - 7u8, - 152u8, - 107u8, - 208u8, - 79u8, - 59u8, + 87u8, 0u8, 204u8, 111u8, 43u8, 115u8, 64u8, 209u8, + 133u8, 13u8, 83u8, 45u8, 164u8, 166u8, 233u8, + 105u8, 242u8, 238u8, 235u8, 208u8, 113u8, 134u8, + 93u8, 242u8, 86u8, 32u8, 7u8, 152u8, 107u8, 208u8, + 79u8, 59u8, ], ) } @@ -41716,53 +28694,27 @@ pub mod api { pub fn unrequest_preimage( &self, hash: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Preimage", "unrequest_preimage", types::UnrequestPreimage { hash }, [ - 55u8, - 37u8, - 224u8, - 149u8, - 142u8, - 120u8, - 8u8, - 68u8, - 183u8, - 225u8, - 255u8, - 240u8, - 254u8, - 111u8, - 58u8, - 200u8, - 113u8, - 217u8, - 177u8, - 203u8, - 107u8, - 104u8, - 233u8, - 87u8, - 252u8, - 53u8, - 33u8, - 112u8, - 116u8, - 254u8, - 117u8, - 134u8, + 55u8, 37u8, 224u8, 149u8, 142u8, 120u8, 8u8, 68u8, + 183u8, 225u8, 255u8, 240u8, 254u8, 111u8, 58u8, + 200u8, 113u8, 217u8, 177u8, 203u8, 107u8, 104u8, + 233u8, 87u8, 252u8, 53u8, 33u8, 112u8, 116u8, + 254u8, 117u8, 134u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; @@ -41774,7 +28726,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -41795,7 +28747,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -41816,7 +28768,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -41891,59 +28843,32 @@ pub mod api { ], ) } - /// The request status of a given hash. - pub fn status_for_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_preimage::RequestStatus< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Preimage", - "StatusFor", - Vec::new(), - [ - 176u8, - 174u8, - 255u8, - 131u8, - 156u8, - 64u8, - 181u8, - 119u8, - 81u8, - 243u8, - 144u8, - 55u8, - 19u8, - 140u8, - 119u8, - 30u8, - 210u8, - 112u8, - 201u8, - 247u8, - 13u8, - 19u8, - 120u8, - 190u8, - 253u8, - 89u8, - 4u8, - 109u8, - 122u8, - 62u8, - 87u8, - 186u8, - ], - ) - } + /// The request status of a given hash. + pub fn status_for_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "StatusFor", + Vec::new(), + [ + 176u8, 174u8, 255u8, 131u8, 156u8, 64u8, 181u8, + 119u8, 81u8, 243u8, 144u8, 55u8, 19u8, 140u8, + 119u8, 30u8, 210u8, 112u8, 201u8, 247u8, 13u8, + 19u8, 120u8, 190u8, 253u8, 89u8, 4u8, 109u8, 122u8, + 62u8, 87u8, 186u8, + ], + ) + } pub fn preimage_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -42018,38 +28943,11 @@ pub mod api { "PreimageFor", Vec::new(), [ - 20u8, - 5u8, - 33u8, - 71u8, - 153u8, - 129u8, - 98u8, - 23u8, - 214u8, - 138u8, - 96u8, - 113u8, - 245u8, - 128u8, - 51u8, - 55u8, - 123u8, - 218u8, - 165u8, - 247u8, - 14u8, - 104u8, - 119u8, - 87u8, - 71u8, - 222u8, - 200u8, - 103u8, - 58u8, - 10u8, - 97u8, - 134u8, + 20u8, 5u8, 33u8, 71u8, 153u8, 129u8, 98u8, 23u8, + 214u8, 138u8, 96u8, 113u8, 245u8, 128u8, 51u8, + 55u8, 123u8, 218u8, 165u8, 247u8, 14u8, 104u8, + 119u8, 87u8, 71u8, 222u8, 200u8, 103u8, 58u8, 10u8, + 97u8, 134u8, ], ) } @@ -42071,7 +28969,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -42179,38 +29077,11 @@ pub mod api { "Reports", Vec::new(), [ - 242u8, - 69u8, - 20u8, - 130u8, - 250u8, - 223u8, - 68u8, - 121u8, - 187u8, - 215u8, - 62u8, - 204u8, - 100u8, - 51u8, - 76u8, - 164u8, - 188u8, - 182u8, - 215u8, - 93u8, - 161u8, - 100u8, - 187u8, - 205u8, - 73u8, - 158u8, - 57u8, - 198u8, - 239u8, - 66u8, - 42u8, - 65u8, + 242u8, 69u8, 20u8, 130u8, 250u8, 223u8, 68u8, + 121u8, 187u8, 215u8, 62u8, 204u8, 100u8, 51u8, + 76u8, 164u8, 188u8, 182u8, 215u8, 93u8, 161u8, + 100u8, 187u8, 205u8, 73u8, 158u8, 57u8, 198u8, + 239u8, 66u8, 42u8, 65u8, ], ) } @@ -42286,38 +29157,11 @@ pub mod api { "ConcurrentReportsIndex", Vec::new(), [ - 125u8, - 222u8, - 9u8, - 162u8, - 38u8, - 89u8, - 77u8, - 187u8, - 129u8, - 103u8, - 21u8, - 31u8, - 117u8, - 101u8, - 43u8, - 115u8, - 170u8, - 205u8, - 142u8, - 26u8, - 27u8, - 184u8, - 152u8, - 133u8, - 76u8, - 203u8, - 78u8, - 113u8, - 51u8, - 141u8, - 118u8, - 171u8, + 125u8, 222u8, 9u8, 162u8, 38u8, 89u8, 77u8, 187u8, + 129u8, 103u8, 21u8, 31u8, 117u8, 101u8, 43u8, + 115u8, 170u8, 205u8, 142u8, 26u8, 27u8, 184u8, + 152u8, 133u8, 76u8, 203u8, 78u8, 113u8, 51u8, + 141u8, 118u8, 171u8, ], ) } @@ -42328,9 +29172,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_transaction_pause::module::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_transaction_pause::module::Call; @@ -42348,11 +29192,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PauseTransaction { pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, pub function_name: ::std::vec::Vec<::core::primitive::u8>, @@ -42369,11 +29217,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UnpauseTransaction { pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, pub function_name: ::std::vec::Vec<::core::primitive::u8>, @@ -42389,7 +29241,8 @@ pub mod api { &self, pallet_name: ::std::vec::Vec<::core::primitive::u8>, function_name: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "TransactionPause", "pause_transaction", @@ -42398,38 +29251,11 @@ pub mod api { function_name, }, [ - 138u8, - 107u8, - 164u8, - 19u8, - 105u8, - 141u8, - 247u8, - 143u8, - 135u8, - 26u8, - 239u8, - 189u8, - 143u8, - 183u8, - 234u8, - 218u8, - 244u8, - 6u8, - 239u8, - 57u8, - 169u8, - 140u8, - 208u8, - 19u8, - 78u8, - 154u8, - 73u8, - 109u8, - 52u8, - 92u8, - 173u8, - 207u8, + 138u8, 107u8, 164u8, 19u8, 105u8, 141u8, 247u8, + 143u8, 135u8, 26u8, 239u8, 189u8, 143u8, 183u8, + 234u8, 218u8, 244u8, 6u8, 239u8, 57u8, 169u8, + 140u8, 208u8, 19u8, 78u8, 154u8, 73u8, 109u8, 52u8, + 92u8, 173u8, 207u8, ], ) } @@ -42437,7 +29263,8 @@ pub mod api { &self, pallet_name: ::std::vec::Vec<::core::primitive::u8>, function_name: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "TransactionPause", "unpause_transaction", @@ -42446,47 +29273,20 @@ pub mod api { function_name, }, [ - 18u8, - 88u8, - 203u8, - 52u8, - 136u8, - 162u8, - 204u8, - 108u8, - 156u8, - 126u8, - 247u8, - 215u8, - 129u8, - 79u8, - 65u8, - 233u8, - 161u8, - 94u8, - 124u8, - 129u8, - 32u8, - 27u8, - 199u8, - 94u8, - 62u8, - 103u8, - 59u8, - 198u8, - 165u8, - 189u8, - 248u8, - 255u8, + 18u8, 88u8, 203u8, 52u8, 136u8, 162u8, 204u8, + 108u8, 156u8, 126u8, 247u8, 215u8, 129u8, 79u8, + 65u8, 233u8, 161u8, 94u8, 124u8, 129u8, 32u8, 27u8, + 199u8, 94u8, 62u8, 103u8, 59u8, 198u8, 165u8, + 189u8, 248u8, 255u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_transaction_pause::module::Event; pub mod events { use super::runtime_types; @@ -42498,7 +29298,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -42520,7 +29320,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -42615,38 +29415,11 @@ pub mod api { "PausedTransactions", Vec::new(), [ - 253u8, - 205u8, - 177u8, - 203u8, - 183u8, - 24u8, - 90u8, - 47u8, - 136u8, - 199u8, - 244u8, - 175u8, - 165u8, - 100u8, - 224u8, - 221u8, - 180u8, - 115u8, - 114u8, - 108u8, - 60u8, - 13u8, - 46u8, - 108u8, - 42u8, - 246u8, - 220u8, - 34u8, - 196u8, - 95u8, - 196u8, - 170u8, + 253u8, 205u8, 177u8, 203u8, 183u8, 24u8, 90u8, + 47u8, 136u8, 199u8, 244u8, 175u8, 165u8, 100u8, + 224u8, 221u8, 180u8, 115u8, 114u8, 108u8, 60u8, + 13u8, 46u8, 108u8, 42u8, 246u8, 220u8, 34u8, 196u8, + 95u8, 196u8, 170u8, ], ) } @@ -42657,9 +29430,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_im_online::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_im_online::pallet::Call; @@ -42677,11 +29450,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Heartbeat { pub heartbeat: runtime_types::pallet_im_online::Heartbeat< ::core::primitive::u32, @@ -42715,47 +29492,20 @@ pub mod api { signature, }, [ - 191u8, - 155u8, - 217u8, - 65u8, - 8u8, - 34u8, - 41u8, - 185u8, - 187u8, - 199u8, - 164u8, - 48u8, - 76u8, - 123u8, - 235u8, - 182u8, - 85u8, - 107u8, - 48u8, - 158u8, - 110u8, - 206u8, - 145u8, - 119u8, - 165u8, - 253u8, - 27u8, - 59u8, - 0u8, - 112u8, - 241u8, - 242u8, + 191u8, 155u8, 217u8, 65u8, 8u8, 34u8, 41u8, 185u8, + 187u8, 199u8, 164u8, 48u8, 76u8, 123u8, 235u8, + 182u8, 85u8, 107u8, 48u8, 158u8, 110u8, 206u8, + 145u8, 119u8, 165u8, 253u8, 27u8, 59u8, 0u8, 112u8, + 241u8, 242u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_im_online::pallet::Event; pub mod events { use super::runtime_types; @@ -42767,7 +29517,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -42788,7 +29538,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -42807,22 +29557,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] ///At the end of the session, at least one validator was found to be offline. pub struct SomeOffline { - pub offline: ::std::vec::Vec< - ( + pub offline: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< ::subxt::utils::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >, - ), - >, + ::core::primitive::u128, + >, + )>, } impl ::subxt::events::StaticEvent for SomeOffline { const PALLET: &'static str = "ImOnline"; @@ -42858,38 +29606,11 @@ pub mod api { "HeartbeatAfter", vec![], [ - 36u8, - 179u8, - 76u8, - 254u8, - 3u8, - 184u8, - 154u8, - 142u8, - 70u8, - 104u8, - 44u8, - 244u8, - 39u8, - 97u8, - 31u8, - 31u8, - 93u8, - 228u8, - 185u8, - 224u8, - 13u8, - 160u8, - 231u8, - 210u8, - 110u8, - 143u8, - 116u8, - 29u8, - 0u8, - 215u8, - 217u8, - 137u8, + 36u8, 179u8, 76u8, 254u8, 3u8, 184u8, 154u8, 142u8, + 70u8, 104u8, 44u8, 244u8, 39u8, 97u8, 31u8, 31u8, + 93u8, 228u8, 185u8, 224u8, 13u8, 160u8, 231u8, + 210u8, 110u8, 143u8, 116u8, 29u8, 0u8, 215u8, + 217u8, 137u8, ], ) } @@ -42904,44 +29625,17 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "ImOnline", "Keys", vec![], [ - 111u8, - 104u8, - 188u8, - 46u8, - 152u8, - 140u8, - 137u8, - 244u8, - 52u8, - 214u8, - 115u8, - 156u8, - 39u8, - 239u8, - 15u8, - 168u8, - 193u8, - 125u8, - 57u8, - 195u8, - 250u8, - 156u8, - 234u8, - 222u8, - 222u8, - 253u8, - 135u8, - 232u8, - 196u8, - 163u8, - 29u8, - 218u8, + 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, ], ) } @@ -42959,7 +29653,7 @@ pub mod api { ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "ImOnline", "ReceivedHeartbeats", @@ -43017,44 +29711,17 @@ pub mod api { (), (), ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "ImOnline", "ReceivedHeartbeats", Vec::new(), [ - 244u8, - 195u8, - 226u8, - 146u8, - 31u8, - 109u8, - 70u8, - 31u8, - 198u8, - 97u8, - 116u8, - 249u8, - 115u8, - 191u8, - 13u8, - 96u8, - 12u8, - 200u8, - 235u8, - 254u8, - 3u8, - 36u8, - 51u8, - 43u8, - 224u8, - 251u8, - 76u8, - 197u8, - 157u8, - 173u8, - 125u8, - 161u8, + 244u8, 195u8, 226u8, 146u8, 31u8, 109u8, 70u8, + 31u8, 198u8, 97u8, 116u8, 249u8, 115u8, 191u8, + 13u8, 96u8, 12u8, 200u8, 235u8, 254u8, 3u8, 36u8, + 51u8, 43u8, 224u8, 251u8, 76u8, 197u8, 157u8, + 173u8, 125u8, 161u8, ], ) } @@ -43132,38 +29799,11 @@ pub mod api { "AuthoredBlocks", Vec::new(), [ - 121u8, - 246u8, - 100u8, - 191u8, - 5u8, - 211u8, - 190u8, - 244u8, - 61u8, - 73u8, - 169u8, - 127u8, - 116u8, - 80u8, - 118u8, - 139u8, - 115u8, - 58u8, - 125u8, - 81u8, - 75u8, - 20u8, - 194u8, - 74u8, - 97u8, - 188u8, - 55u8, - 160u8, - 33u8, - 155u8, - 186u8, - 74u8, + 121u8, 246u8, 100u8, 191u8, 5u8, 211u8, 190u8, + 244u8, 61u8, 73u8, 169u8, 127u8, 116u8, 80u8, + 118u8, 139u8, 115u8, 58u8, 125u8, 81u8, 75u8, 20u8, + 194u8, 74u8, 97u8, 188u8, 55u8, 160u8, 33u8, 155u8, + 186u8, 74u8, ], ) } @@ -43179,43 +29819,17 @@ pub mod api { /// multiple pallets send unsigned transactions. pub fn unsigned_priority( &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { + ) -> ::subxt::constants::Address<::core::primitive::u64> + { ::subxt::constants::Address::new_static( "ImOnline", "UnsignedPriority", [ - 128u8, - 214u8, - 205u8, - 242u8, - 181u8, - 142u8, - 124u8, - 231u8, - 190u8, - 146u8, - 59u8, - 226u8, - 157u8, - 101u8, - 103u8, - 117u8, - 249u8, - 65u8, - 18u8, - 191u8, - 103u8, - 119u8, - 53u8, - 85u8, - 81u8, - 96u8, - 220u8, - 42u8, - 184u8, - 239u8, - 42u8, - 246u8, + 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, ], ) } @@ -43226,9 +29840,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_identity::pallet::Error; ///Identity pallet declaration. pub type Call = runtime_types::pallet_identity::pallet::Call; @@ -43246,11 +29860,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AddRegistrar { pub account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -43269,11 +29887,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetIdentity { pub info: ::std::boxed::Box< runtime_types::pallet_identity::types::IdentityInfo, @@ -43291,18 +29913,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetSubs { - pub subs: ::std::vec::Vec< - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ), - >, + pub subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, } impl ::subxt::blocks::StaticExtrinsic for SetSubs { const PALLET: &'static str = "Identity"; @@ -43316,11 +29940,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ClearIdentity; impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { const PALLET: &'static str = "Identity"; @@ -43334,11 +29962,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RequestJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -43358,11 +29990,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CancelRequest { pub reg_index: ::core::primitive::u32, } @@ -43378,11 +30014,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetFee { #[codec(compact)] pub index: ::core::primitive::u32, @@ -43401,11 +30041,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetAccountId { #[codec(compact)] pub index: ::core::primitive::u32, @@ -43426,11 +30070,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetFields { #[codec(compact)] pub index: ::core::primitive::u32, @@ -43450,11 +30098,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ProvideJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -43462,9 +30114,10 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, + pub judgement: + runtime_types::pallet_identity::types::Judgement< + ::core::primitive::u128, + >, pub identity: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { @@ -43479,11 +30132,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct KillIdentity { pub target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -43502,11 +30159,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AddSub { pub sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -43526,11 +30187,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RenameSub { pub sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -43550,11 +30215,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RemoveSub { pub sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -43573,11 +30242,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct QuitSub; impl ::subxt::blocks::StaticExtrinsic for QuitSub { const PALLET: &'static str = "Identity"; @@ -43608,37 +30281,10 @@ pub mod api { "add_registrar", types::AddRegistrar { account }, [ - 34u8, - 133u8, - 250u8, - 186u8, - 71u8, - 219u8, - 66u8, - 250u8, - 41u8, - 190u8, - 237u8, - 96u8, - 40u8, - 51u8, - 98u8, - 54u8, - 242u8, - 65u8, - 216u8, - 135u8, - 211u8, - 24u8, - 57u8, - 161u8, - 229u8, - 174u8, - 48u8, - 1u8, - 88u8, - 2u8, - 38u8, + 34u8, 133u8, 250u8, 186u8, 71u8, 219u8, 66u8, + 250u8, 41u8, 190u8, 237u8, 96u8, 40u8, 51u8, 98u8, + 54u8, 242u8, 65u8, 216u8, 135u8, 211u8, 24u8, 57u8, + 161u8, 229u8, 174u8, 48u8, 1u8, 88u8, 2u8, 38u8, 206u8, ], ) @@ -43660,46 +30306,19 @@ pub mod api { /// - where `R` judgements-count (registrar-count-bounded) pub fn set_identity( &self, - info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "set_identity", - types::SetIdentity { - info: ::std::boxed::Box::new(info), - }, - [ - 205u8, - 7u8, - 54u8, - 226u8, - 123u8, - 160u8, - 173u8, - 25u8, - 179u8, - 93u8, - 172u8, - 37u8, - 222u8, - 143u8, - 209u8, - 1u8, - 230u8, - 32u8, - 84u8, - 80u8, - 110u8, - 195u8, - 87u8, - 185u8, - 27u8, - 31u8, - 185u8, - 161u8, - 154u8, - 166u8, - 177u8, + info: runtime_types::pallet_identity::types::IdentityInfo, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_identity", + types::SetIdentity { + info: ::std::boxed::Box::new(info), + }, + [ + 205u8, 7u8, 54u8, 226u8, 123u8, 160u8, 173u8, 25u8, + 179u8, 93u8, 172u8, 37u8, 222u8, 143u8, 209u8, 1u8, + 230u8, 32u8, 84u8, 80u8, 110u8, 195u8, 87u8, 185u8, + 27u8, 31u8, 185u8, 161u8, 154u8, 166u8, 177u8, 190u8, ], ) @@ -43720,50 +30339,21 @@ pub mod api { /// - where `S` subs-count (hard- and deposit-bounded). pub fn set_subs( &self, - subs: ::std::vec::Vec< - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ), - >, + subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", "set_subs", types::SetSubs { subs }, [ - 76u8, - 193u8, - 92u8, - 120u8, - 9u8, - 99u8, - 102u8, - 220u8, - 177u8, - 29u8, - 65u8, - 14u8, - 250u8, - 101u8, - 118u8, - 59u8, - 251u8, - 153u8, - 136u8, - 141u8, - 89u8, - 250u8, - 74u8, - 254u8, - 111u8, - 220u8, - 132u8, - 228u8, - 248u8, - 132u8, - 177u8, - 128u8, + 76u8, 193u8, 92u8, 120u8, 9u8, 99u8, 102u8, 220u8, + 177u8, 29u8, 65u8, 14u8, 250u8, 101u8, 118u8, 59u8, + 251u8, 153u8, 136u8, 141u8, 89u8, 250u8, 74u8, + 254u8, 111u8, 220u8, 132u8, 228u8, 248u8, 132u8, + 177u8, 128u8, ], ) } @@ -43783,44 +30373,18 @@ pub mod api { /// - where `X` additional-field-count (deposit-bounded and code-bounded). pub fn clear_identity( &self, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Identity", "clear_identity", types::ClearIdentity {}, [ - 43u8, - 115u8, - 205u8, - 44u8, - 24u8, - 130u8, - 220u8, - 69u8, - 247u8, - 176u8, - 200u8, - 175u8, - 67u8, - 183u8, - 36u8, - 200u8, - 162u8, - 132u8, - 242u8, - 25u8, - 21u8, - 106u8, - 197u8, - 219u8, - 141u8, - 51u8, - 204u8, - 13u8, - 191u8, - 201u8, - 31u8, - 31u8, + 43u8, 115u8, 205u8, 44u8, 24u8, 130u8, 220u8, 69u8, + 247u8, 176u8, 200u8, 175u8, 67u8, 183u8, 36u8, + 200u8, 162u8, 132u8, 242u8, 25u8, 21u8, 106u8, + 197u8, 219u8, 141u8, 51u8, 204u8, 13u8, 191u8, + 201u8, 31u8, 31u8, ], ) } @@ -43849,46 +30413,17 @@ pub mod api { &self, reg_index: ::core::primitive::u32, max_fee: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Identity", "request_judgement", - types::RequestJudgement { - reg_index, - max_fee, - }, + types::RequestJudgement { reg_index, max_fee }, [ - 83u8, - 85u8, - 55u8, - 184u8, - 14u8, - 54u8, - 49u8, - 212u8, - 26u8, - 148u8, - 33u8, - 147u8, - 182u8, - 54u8, - 180u8, - 12u8, - 61u8, - 179u8, - 216u8, - 157u8, - 103u8, - 52u8, - 120u8, - 252u8, - 83u8, - 203u8, - 144u8, - 65u8, - 15u8, - 3u8, - 21u8, + 83u8, 85u8, 55u8, 184u8, 14u8, 54u8, 49u8, 212u8, + 26u8, 148u8, 33u8, 147u8, 182u8, 54u8, 180u8, 12u8, + 61u8, 179u8, 216u8, 157u8, 103u8, 52u8, 120u8, + 252u8, 83u8, 203u8, 144u8, 65u8, 15u8, 3u8, 21u8, 33u8, ], ) @@ -43911,44 +30446,18 @@ pub mod api { pub fn cancel_request( &self, reg_index: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Identity", "cancel_request", types::CancelRequest { reg_index }, [ - 81u8, - 14u8, - 133u8, - 219u8, - 43u8, - 84u8, - 163u8, - 208u8, - 21u8, - 185u8, - 75u8, - 117u8, - 126u8, - 33u8, - 210u8, - 106u8, - 122u8, - 210u8, - 35u8, - 207u8, - 104u8, - 206u8, - 41u8, - 117u8, - 247u8, - 108u8, - 56u8, - 23u8, - 123u8, - 169u8, - 169u8, - 61u8, + 81u8, 14u8, 133u8, 219u8, 43u8, 84u8, 163u8, 208u8, + 21u8, 185u8, 75u8, 117u8, 126u8, 33u8, 210u8, + 106u8, 122u8, 210u8, 35u8, 207u8, 104u8, 206u8, + 41u8, 117u8, 247u8, 108u8, 56u8, 23u8, 123u8, + 169u8, 169u8, 61u8, ], ) } @@ -43973,38 +30482,11 @@ pub mod api { "set_fee", types::SetFee { index, fee }, [ - 131u8, - 20u8, - 17u8, - 127u8, - 180u8, - 65u8, - 225u8, - 144u8, - 193u8, - 60u8, - 131u8, - 241u8, - 30u8, - 149u8, - 8u8, - 76u8, - 29u8, - 52u8, - 102u8, - 108u8, - 127u8, - 130u8, - 70u8, - 18u8, - 94u8, - 145u8, - 179u8, - 109u8, - 252u8, - 219u8, - 58u8, - 163u8, + 131u8, 20u8, 17u8, 127u8, 180u8, 65u8, 225u8, + 144u8, 193u8, 60u8, 131u8, 241u8, 30u8, 149u8, 8u8, + 76u8, 29u8, 52u8, 102u8, 108u8, 127u8, 130u8, 70u8, + 18u8, 94u8, 145u8, 179u8, 109u8, 252u8, 219u8, + 58u8, 163u8, ], ) } @@ -44032,38 +30514,11 @@ pub mod api { "set_account_id", types::SetAccountId { index, new }, [ - 127u8, - 225u8, - 228u8, - 150u8, - 6u8, - 49u8, - 67u8, - 109u8, - 19u8, - 172u8, - 100u8, - 239u8, - 81u8, - 65u8, - 5u8, - 126u8, - 239u8, - 5u8, - 203u8, - 160u8, - 241u8, - 250u8, - 243u8, - 218u8, - 208u8, - 227u8, - 239u8, - 124u8, - 78u8, - 166u8, - 40u8, - 156u8, + 127u8, 225u8, 228u8, 150u8, 6u8, 49u8, 67u8, 109u8, + 19u8, 172u8, 100u8, 239u8, 81u8, 65u8, 5u8, 126u8, + 239u8, 5u8, 203u8, 160u8, 241u8, 250u8, 243u8, + 218u8, 208u8, 227u8, 239u8, 124u8, 78u8, 166u8, + 40u8, 156u8, ], ) } @@ -44090,38 +30545,11 @@ pub mod api { "set_fields", types::SetFields { index, fields }, [ - 25u8, - 129u8, - 119u8, - 232u8, - 18u8, - 32u8, - 77u8, - 23u8, - 185u8, - 56u8, - 32u8, - 199u8, - 74u8, - 174u8, - 104u8, - 203u8, - 171u8, - 253u8, - 19u8, - 225u8, - 101u8, - 239u8, - 14u8, - 242u8, - 157u8, - 51u8, - 203u8, - 74u8, - 1u8, - 65u8, - 165u8, - 205u8, + 25u8, 129u8, 119u8, 232u8, 18u8, 32u8, 77u8, 23u8, + 185u8, 56u8, 32u8, 199u8, 74u8, 174u8, 104u8, + 203u8, 171u8, 253u8, 19u8, 225u8, 101u8, 239u8, + 14u8, 242u8, 157u8, 51u8, 203u8, 74u8, 1u8, 65u8, + 165u8, 205u8, ], ) } @@ -44153,7 +30581,8 @@ pub mod api { ::core::primitive::u128, >, identity: ::subxt::utils::H256, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Identity", "provide_judgement", @@ -44164,37 +30593,10 @@ pub mod api { identity, }, [ - 51u8, - 75u8, - 24u8, - 146u8, - 141u8, - 86u8, - 141u8, - 188u8, - 77u8, - 71u8, - 5u8, - 76u8, - 44u8, - 35u8, - 208u8, - 98u8, - 217u8, - 80u8, - 248u8, - 201u8, - 225u8, - 230u8, - 162u8, - 20u8, - 202u8, - 242u8, - 4u8, - 209u8, - 9u8, - 200u8, - 178u8, + 51u8, 75u8, 24u8, 146u8, 141u8, 86u8, 141u8, 188u8, + 77u8, 71u8, 5u8, 76u8, 44u8, 35u8, 208u8, 98u8, + 217u8, 80u8, 248u8, 201u8, 225u8, 230u8, 162u8, + 20u8, 202u8, 242u8, 4u8, 209u8, 9u8, 200u8, 178u8, 5u8, ], ) @@ -44229,38 +30631,11 @@ pub mod api { "kill_identity", types::KillIdentity { target }, [ - 111u8, - 40u8, - 34u8, - 131u8, - 14u8, - 102u8, - 209u8, - 175u8, - 202u8, - 50u8, - 12u8, - 19u8, - 37u8, - 230u8, - 120u8, - 91u8, - 248u8, - 67u8, - 25u8, - 245u8, - 228u8, - 19u8, - 57u8, - 187u8, - 244u8, - 30u8, - 59u8, - 178u8, - 29u8, - 114u8, - 197u8, - 24u8, + 111u8, 40u8, 34u8, 131u8, 14u8, 102u8, 209u8, + 175u8, 202u8, 50u8, 12u8, 19u8, 37u8, 230u8, 120u8, + 91u8, 248u8, 67u8, 25u8, 245u8, 228u8, 19u8, 57u8, + 187u8, 244u8, 30u8, 59u8, 178u8, 29u8, 114u8, + 197u8, 24u8, ], ) } @@ -44284,38 +30659,11 @@ pub mod api { "add_sub", types::AddSub { sub, data }, [ - 63u8, - 142u8, - 248u8, - 45u8, - 29u8, - 195u8, - 238u8, - 249u8, - 23u8, - 242u8, - 54u8, - 254u8, - 141u8, - 12u8, - 202u8, - 156u8, - 52u8, - 180u8, - 121u8, - 168u8, - 198u8, - 5u8, - 44u8, - 129u8, - 117u8, - 178u8, - 201u8, - 125u8, - 209u8, - 211u8, - 86u8, - 140u8, + 63u8, 142u8, 248u8, 45u8, 29u8, 195u8, 238u8, + 249u8, 23u8, 242u8, 54u8, 254u8, 141u8, 12u8, + 202u8, 156u8, 52u8, 180u8, 121u8, 168u8, 198u8, + 5u8, 44u8, 129u8, 117u8, 178u8, 201u8, 125u8, + 209u8, 211u8, 86u8, 140u8, ], ) } @@ -44336,38 +30684,11 @@ pub mod api { "rename_sub", types::RenameSub { sub, data }, [ - 201u8, - 113u8, - 118u8, - 210u8, - 110u8, - 248u8, - 42u8, - 56u8, - 35u8, - 208u8, - 102u8, - 171u8, - 128u8, - 158u8, - 105u8, - 232u8, - 254u8, - 73u8, - 44u8, - 84u8, - 16u8, - 32u8, - 112u8, - 41u8, - 19u8, - 128u8, - 200u8, - 118u8, - 95u8, - 115u8, - 220u8, - 100u8, + 201u8, 113u8, 118u8, 210u8, 110u8, 248u8, 42u8, + 56u8, 35u8, 208u8, 102u8, 171u8, 128u8, 158u8, + 105u8, 232u8, 254u8, 73u8, 44u8, 84u8, 16u8, 32u8, + 112u8, 41u8, 19u8, 128u8, 200u8, 118u8, 95u8, + 115u8, 220u8, 100u8, ], ) } @@ -44390,37 +30711,10 @@ pub mod api { "remove_sub", types::RemoveSub { sub }, [ - 20u8, - 227u8, - 205u8, - 59u8, - 130u8, - 76u8, - 62u8, - 11u8, - 69u8, - 169u8, - 10u8, - 199u8, - 9u8, - 194u8, - 142u8, - 181u8, - 170u8, - 170u8, - 254u8, - 197u8, - 74u8, - 123u8, - 216u8, - 87u8, - 163u8, - 156u8, - 153u8, - 41u8, - 20u8, - 173u8, - 87u8, + 20u8, 227u8, 205u8, 59u8, 130u8, 76u8, 62u8, 11u8, + 69u8, 169u8, 10u8, 199u8, 9u8, 194u8, 142u8, 181u8, + 170u8, 170u8, 254u8, 197u8, 74u8, 123u8, 216u8, + 87u8, 163u8, 156u8, 153u8, 41u8, 20u8, 173u8, 87u8, 10u8, ], ) @@ -44441,47 +30735,20 @@ pub mod api { "quit_sub", types::QuitSub {}, [ - 147u8, - 131u8, - 175u8, - 171u8, - 187u8, - 201u8, - 240u8, - 26u8, - 146u8, - 224u8, - 74u8, - 166u8, - 242u8, - 193u8, - 204u8, - 247u8, - 168u8, - 93u8, - 18u8, - 32u8, - 27u8, - 208u8, - 149u8, - 146u8, - 179u8, - 172u8, - 75u8, - 112u8, - 84u8, - 141u8, - 233u8, - 223u8, + 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, + 26u8, 146u8, 224u8, 74u8, 166u8, 242u8, 193u8, + 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, 208u8, + 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, + 141u8, 233u8, 223u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; @@ -44493,7 +30760,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44514,7 +30781,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44536,7 +30803,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44558,7 +30825,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44580,7 +30847,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44602,7 +30869,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44625,7 +30892,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44646,7 +30913,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44669,7 +30936,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44692,7 +30959,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -44790,38 +31057,10 @@ pub mod api { "IdentityOf", Vec::new(), [ - 239u8, - 55u8, - 5u8, - 97u8, - 227u8, - 243u8, - 118u8, - 13u8, - 98u8, - 30u8, - 141u8, - 84u8, - 170u8, - 90u8, - 166u8, - 116u8, - 17u8, - 122u8, - 190u8, - 76u8, - 34u8, - 51u8, - 239u8, - 41u8, - 14u8, - 135u8, - 11u8, - 164u8, - 106u8, - 228u8, - 48u8, - 26u8, + 239u8, 55u8, 5u8, 97u8, 227u8, 243u8, 118u8, 13u8, + 98u8, 30u8, 141u8, 84u8, 170u8, 90u8, 166u8, 116u8, + 17u8, 122u8, 190u8, 76u8, 34u8, 51u8, 239u8, 41u8, + 14u8, 135u8, 11u8, 164u8, 106u8, 228u8, 48u8, 26u8, ], ) } @@ -44885,55 +31124,28 @@ pub mod api { } /// The super-identity of an alternative "sub" identity together with its name, within that /// context. If the account is not some other account's sub-identity, then just `None`. - pub fn super_of_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ( - ::subxt::utils::AccountId32, - runtime_types::pallet_identity::types::Data, - ), - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Identity", - "SuperOf", - Vec::new(), - [ - 51u8, - 225u8, - 21u8, - 92u8, - 85u8, - 14u8, - 14u8, - 211u8, - 61u8, - 99u8, - 176u8, - 236u8, - 212u8, - 156u8, - 103u8, - 175u8, - 208u8, - 105u8, - 94u8, - 226u8, - 136u8, - 69u8, - 162u8, - 170u8, - 11u8, - 116u8, - 72u8, - 242u8, - 119u8, - 14u8, - 14u8, - 142u8, + pub fn super_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "SuperOf", + Vec::new(), + [ + 51u8, 225u8, 21u8, 92u8, 85u8, 14u8, 14u8, 211u8, + 61u8, 99u8, 176u8, 236u8, 212u8, 156u8, 103u8, + 175u8, 208u8, 105u8, 94u8, 226u8, 136u8, 69u8, + 162u8, 170u8, 11u8, 116u8, 72u8, 242u8, 119u8, + 14u8, 14u8, 142u8, ], ) } @@ -44956,7 +31168,7 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", @@ -45018,44 +31230,17 @@ pub mod api { (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - > { + >{ ::subxt::storage::address::Address::new_static( "Identity", "SubsOf", Vec::new(), [ - 93u8, - 124u8, - 154u8, - 157u8, - 159u8, - 103u8, - 233u8, - 225u8, - 59u8, - 20u8, - 201u8, - 239u8, - 128u8, - 209u8, - 207u8, - 38u8, - 123u8, - 48u8, - 119u8, - 102u8, - 88u8, - 42u8, - 245u8, - 187u8, - 244u8, - 206u8, - 124u8, - 216u8, - 185u8, - 155u8, - 207u8, - 0u8, + 93u8, 124u8, 154u8, 157u8, 159u8, 103u8, 233u8, + 225u8, 59u8, 20u8, 201u8, 239u8, 128u8, 209u8, + 207u8, 38u8, 123u8, 48u8, 119u8, 102u8, 88u8, 42u8, + 245u8, 187u8, 244u8, 206u8, 124u8, 216u8, 185u8, + 155u8, 207u8, 0u8, ], ) } @@ -45078,44 +31263,17 @@ pub mod api { ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), - > { + >{ ::subxt::storage::address::Address::new_static( "Identity", "Registrars", vec![], [ - 207u8, - 253u8, - 229u8, - 237u8, - 228u8, - 85u8, - 173u8, - 74u8, - 164u8, - 67u8, - 144u8, - 144u8, - 5u8, - 242u8, - 84u8, - 187u8, - 110u8, - 181u8, - 2u8, - 162u8, - 239u8, - 212u8, - 72u8, - 233u8, - 160u8, - 196u8, - 121u8, - 218u8, - 100u8, - 0u8, - 219u8, - 181u8, + 207u8, 253u8, 229u8, 237u8, 228u8, 85u8, 173u8, + 74u8, 164u8, 67u8, 144u8, 144u8, 5u8, 242u8, 84u8, + 187u8, 110u8, 181u8, 2u8, 162u8, 239u8, 212u8, + 72u8, 233u8, 160u8, 196u8, 121u8, 218u8, 100u8, + 0u8, 219u8, 181u8, ], ) } @@ -45128,86 +31286,34 @@ pub mod api { /// The amount held on deposit for a registered identity pub fn basic_deposit( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Identity", "BasicDeposit", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// The amount held on deposit per additional field for a registered identity. pub fn field_deposit( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Identity", "FieldDeposit", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } @@ -45216,85 +31322,33 @@ pub mod api { /// be another trie item whose value is the size of an account ID plus 32 bytes. pub fn sub_account_deposit( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address<::core::primitive::u128> + { ::subxt::constants::Address::new_static( "Identity", "SubAccountDeposit", [ - 84u8, - 157u8, - 140u8, - 4u8, - 93u8, - 57u8, - 29u8, - 133u8, - 105u8, - 200u8, - 214u8, - 27u8, - 144u8, - 208u8, - 218u8, - 160u8, - 130u8, - 109u8, - 101u8, - 54u8, - 210u8, - 136u8, - 71u8, - 63u8, - 49u8, - 237u8, - 234u8, - 15u8, - 178u8, - 98u8, - 148u8, - 156u8, + 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, ], ) } /// The maximum number of sub-accounts allowed per identified account. pub fn max_sub_accounts( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Identity", "MaxSubAccounts", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -45303,42 +31357,16 @@ pub mod api { /// required to access an identity, but can be pretty high. pub fn max_additional_fields( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Identity", "MaxAdditionalFields", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -45347,42 +31375,16 @@ pub mod api { /// of, e.g., updating judgements. pub fn max_registrars( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u32> + { ::subxt::constants::Address::new_static( "Identity", "MaxRegistrars", [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + 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, ], ) @@ -45394,9 +31396,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_utility::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_utility::pallet::Call; @@ -45414,11 +31416,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Batch { pub calls: ::std::vec::Vec< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -45436,11 +31442,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AsDerivative { pub index: ::core::primitive::u16, pub call: ::std::boxed::Box< @@ -45459,11 +31469,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BatchAll { pub calls: ::std::vec::Vec< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -45481,11 +31495,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct DispatchAs { pub as_origin: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::OriginCaller, @@ -45506,11 +31524,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ForceBatch { pub calls: ::std::vec::Vec< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -45528,11 +31550,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WithWeight { pub call: ::std::boxed::Box< runtime_types::tangle_standalone_runtime::RuntimeCall, @@ -45575,38 +31601,11 @@ pub mod api { "batch", types::Batch { calls }, [ - 148u8, - 82u8, - 203u8, - 239u8, - 130u8, - 141u8, - 20u8, - 115u8, - 21u8, - 138u8, - 121u8, - 169u8, - 214u8, - 64u8, - 206u8, - 55u8, - 93u8, - 177u8, - 77u8, - 157u8, - 239u8, - 80u8, - 221u8, - 96u8, - 160u8, - 170u8, - 241u8, - 110u8, - 101u8, - 185u8, - 198u8, - 180u8, + 148u8, 82u8, 203u8, 239u8, 130u8, 141u8, 20u8, + 115u8, 21u8, 138u8, 121u8, 169u8, 214u8, 64u8, + 206u8, 55u8, 93u8, 177u8, 77u8, 157u8, 239u8, 80u8, + 221u8, 96u8, 160u8, 170u8, 241u8, 110u8, 101u8, + 185u8, 198u8, 180u8, ], ) } @@ -45636,37 +31635,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 86u8, - 82u8, - 212u8, - 155u8, - 84u8, - 70u8, - 176u8, - 46u8, - 85u8, - 98u8, - 70u8, - 26u8, - 219u8, - 231u8, - 211u8, - 83u8, - 176u8, - 181u8, - 21u8, - 95u8, - 106u8, - 108u8, - 81u8, - 13u8, - 43u8, - 25u8, - 230u8, - 128u8, - 26u8, - 101u8, - 230u8, + 86u8, 82u8, 212u8, 155u8, 84u8, 70u8, 176u8, 46u8, + 85u8, 98u8, 70u8, 26u8, 219u8, 231u8, 211u8, 83u8, + 176u8, 181u8, 21u8, 95u8, 106u8, 108u8, 81u8, 13u8, + 43u8, 25u8, 230u8, 128u8, 26u8, 101u8, 230u8, 251u8, ], ) @@ -45695,38 +31667,11 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 35u8, - 207u8, - 179u8, - 93u8, - 242u8, - 219u8, - 248u8, - 226u8, - 40u8, - 28u8, - 191u8, - 137u8, - 91u8, - 232u8, - 195u8, - 148u8, - 170u8, - 80u8, - 162u8, - 117u8, - 56u8, - 212u8, - 229u8, - 158u8, - 36u8, - 166u8, - 173u8, - 163u8, - 108u8, - 104u8, - 37u8, - 215u8, + 35u8, 207u8, 179u8, 93u8, 242u8, 219u8, 248u8, + 226u8, 40u8, 28u8, 191u8, 137u8, 91u8, 232u8, + 195u8, 148u8, 170u8, 80u8, 162u8, 117u8, 56u8, + 212u8, 229u8, 158u8, 36u8, 166u8, 173u8, 163u8, + 108u8, 104u8, 37u8, 215u8, ], ) } @@ -45749,37 +31694,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 12u8, - 13u8, - 162u8, - 248u8, - 48u8, - 78u8, - 61u8, - 43u8, - 219u8, - 12u8, - 16u8, - 60u8, - 128u8, - 229u8, - 93u8, - 175u8, - 242u8, - 199u8, - 25u8, - 58u8, - 102u8, - 25u8, - 89u8, - 57u8, - 123u8, - 81u8, - 230u8, - 210u8, - 200u8, - 193u8, - 28u8, + 12u8, 13u8, 162u8, 248u8, 48u8, 78u8, 61u8, 43u8, + 219u8, 12u8, 16u8, 60u8, 128u8, 229u8, 93u8, 175u8, + 242u8, 199u8, 25u8, 58u8, 102u8, 25u8, 89u8, 57u8, + 123u8, 81u8, 230u8, 210u8, 200u8, 193u8, 28u8, 146u8, ], ) @@ -45808,38 +31726,11 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 229u8, - 153u8, - 249u8, - 130u8, - 228u8, - 60u8, - 221u8, - 82u8, - 243u8, - 223u8, - 178u8, - 13u8, - 160u8, - 142u8, - 173u8, - 194u8, - 95u8, - 19u8, - 63u8, - 33u8, - 8u8, - 239u8, - 107u8, - 191u8, - 21u8, - 1u8, - 8u8, - 135u8, - 141u8, - 63u8, - 69u8, - 252u8, + 229u8, 153u8, 249u8, 130u8, 228u8, 60u8, 221u8, + 82u8, 243u8, 223u8, 178u8, 13u8, 160u8, 142u8, + 173u8, 194u8, 95u8, 19u8, 63u8, 33u8, 8u8, 239u8, + 107u8, 191u8, 21u8, 1u8, 8u8, 135u8, 141u8, 63u8, + 69u8, 252u8, ], ) } @@ -45862,37 +31753,10 @@ pub mod api { weight, }, [ - 189u8, - 119u8, - 168u8, - 39u8, - 189u8, - 161u8, - 150u8, - 250u8, - 39u8, - 166u8, - 3u8, - 48u8, - 216u8, - 253u8, - 129u8, - 179u8, - 39u8, - 15u8, - 30u8, - 35u8, - 191u8, - 96u8, - 135u8, - 171u8, - 198u8, - 149u8, - 45u8, - 9u8, - 251u8, - 198u8, - 78u8, + 189u8, 119u8, 168u8, 39u8, 189u8, 161u8, 150u8, + 250u8, 39u8, 166u8, 3u8, 48u8, 216u8, 253u8, 129u8, + 179u8, 39u8, 15u8, 30u8, 35u8, 191u8, 96u8, 135u8, + 171u8, 198u8, 149u8, 45u8, 9u8, 251u8, 198u8, 78u8, 7u8, ], ) @@ -45900,9 +31764,9 @@ pub mod api { } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; @@ -45914,7 +31778,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -45937,7 +31801,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -45956,7 +31820,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -45975,7 +31839,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -45994,7 +31858,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -46015,7 +31879,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -46036,45 +31900,19 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The limit on the number of batched calls. - pub fn batched_calls_limit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Utility", - "batched_calls_limit", - [ - 98u8, - 252u8, - 116u8, - 72u8, - 26u8, - 180u8, - 225u8, - 83u8, - 200u8, - 157u8, - 125u8, - 151u8, - 53u8, - 76u8, - 168u8, - 26u8, - 10u8, - 9u8, - 98u8, - 68u8, - 9u8, - 178u8, - 197u8, - 113u8, - 31u8, - 79u8, - 200u8, - 90u8, - 203u8, - 100u8, - 41u8, + /// The limit on the number of batched calls. + pub fn batched_calls_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> + { + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, + 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, + 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ], ) @@ -46086,9 +31924,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_ethereum::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_ethereum::pallet::Call; @@ -46106,13 +31944,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Transact { - pub transaction: runtime_types::ethereum::transaction::TransactionV2, + pub transaction: + runtime_types::ethereum::transaction::TransactionV2, } impl ::subxt::blocks::StaticExtrinsic for Transact { const PALLET: &'static str = "Ethereum"; @@ -46131,37 +31974,10 @@ pub mod api { "transact", types::Transact { transaction }, [ - 248u8, - 108u8, - 75u8, - 85u8, - 58u8, - 246u8, - 249u8, - 43u8, - 29u8, - 250u8, - 7u8, - 20u8, - 236u8, - 54u8, - 22u8, - 33u8, - 219u8, - 68u8, - 48u8, - 20u8, - 112u8, - 97u8, - 144u8, - 52u8, - 177u8, - 101u8, - 142u8, - 222u8, - 46u8, - 45u8, - 24u8, + 248u8, 108u8, 75u8, 85u8, 58u8, 246u8, 249u8, 43u8, + 29u8, 250u8, 7u8, 20u8, 236u8, 54u8, 22u8, 33u8, + 219u8, 68u8, 48u8, 20u8, 112u8, 97u8, 144u8, 52u8, + 177u8, 101u8, 142u8, 222u8, 46u8, 45u8, 24u8, 241u8, ], ) @@ -46169,9 +31985,9 @@ pub mod api { } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_ethereum::pallet::Event; pub mod events { use super::runtime_types; @@ -46183,7 +31999,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -46210,13 +32026,11 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec< - ( - runtime_types::ethereum::transaction::TransactionV2, - runtime_types::fp_rpc::TransactionStatus, - runtime_types::ethereum::receipt::ReceiptV3, - ), - >, + ::std::vec::Vec<( + runtime_types::ethereum::transaction::TransactionV2, + runtime_types::fp_rpc::TransactionStatus, + runtime_types::ethereum::receipt::ReceiptV3, + )>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -46226,38 +32040,11 @@ pub mod api { "Pending", vec![], [ - 231u8, - 24u8, - 97u8, - 217u8, - 199u8, - 3u8, - 70u8, - 61u8, - 78u8, - 249u8, - 115u8, - 45u8, - 173u8, - 201u8, - 121u8, - 246u8, - 141u8, - 24u8, - 183u8, - 26u8, - 202u8, - 104u8, - 140u8, - 222u8, - 94u8, - 235u8, - 59u8, - 146u8, - 67u8, - 137u8, - 25u8, - 75u8, + 231u8, 24u8, 97u8, 217u8, 199u8, 3u8, 70u8, 61u8, + 78u8, 249u8, 115u8, 45u8, 173u8, 201u8, 121u8, + 246u8, 141u8, 24u8, 183u8, 26u8, 202u8, 104u8, + 140u8, 222u8, 94u8, 235u8, 59u8, 146u8, 67u8, + 137u8, 25u8, 75u8, ], ) } @@ -46278,38 +32065,11 @@ pub mod api { "CurrentBlock", vec![], [ - 25u8, - 90u8, - 87u8, - 29u8, - 99u8, - 98u8, - 206u8, - 100u8, - 198u8, - 125u8, - 245u8, - 141u8, - 121u8, - 182u8, - 95u8, - 234u8, - 195u8, - 38u8, - 63u8, - 93u8, - 11u8, - 58u8, - 181u8, - 73u8, - 156u8, - 147u8, - 88u8, - 162u8, - 174u8, - 234u8, - 143u8, - 71u8, + 25u8, 90u8, 87u8, 29u8, 99u8, 98u8, 206u8, 100u8, + 198u8, 125u8, 245u8, 141u8, 121u8, 182u8, 95u8, + 234u8, 195u8, 38u8, 63u8, 93u8, 11u8, 58u8, 181u8, + 73u8, 156u8, 147u8, 88u8, 162u8, 174u8, 234u8, + 143u8, 71u8, ], ) } @@ -46318,7 +32078,9 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec, + ::std::vec::Vec< + runtime_types::ethereum::receipt::ReceiptV3, + >, ::subxt::storage::address::Yes, (), (), @@ -46328,37 +32090,10 @@ pub mod api { "CurrentReceipts", vec![], [ - 88u8, - 205u8, - 87u8, - 124u8, - 82u8, - 43u8, - 38u8, - 99u8, - 217u8, - 154u8, - 44u8, - 212u8, - 189u8, - 166u8, - 42u8, - 154u8, - 95u8, - 133u8, - 143u8, - 81u8, - 36u8, - 18u8, - 2u8, - 115u8, - 30u8, - 189u8, - 52u8, - 26u8, - 171u8, - 75u8, - 108u8, + 88u8, 205u8, 87u8, 124u8, 82u8, 43u8, 38u8, 99u8, + 217u8, 154u8, 44u8, 212u8, 189u8, 166u8, 42u8, + 154u8, 95u8, 133u8, 143u8, 81u8, 36u8, 18u8, 2u8, + 115u8, 30u8, 189u8, 52u8, 26u8, 171u8, 75u8, 108u8, 143u8, ], ) @@ -46378,44 +32113,19 @@ pub mod api { "CurrentTransactionStatuses", vec![], [ - 236u8, - 78u8, - 43u8, - 37u8, - 243u8, - 211u8, - 105u8, - 209u8, - 27u8, - 201u8, - 130u8, - 207u8, - 58u8, - 171u8, - 144u8, - 57u8, - 185u8, - 221u8, - 36u8, - 114u8, - 120u8, - 74u8, - 211u8, - 210u8, - 19u8, - 61u8, - 244u8, - 70u8, - 85u8, - 150u8, - 172u8, - 138u8, + 236u8, 78u8, 43u8, 37u8, 243u8, 211u8, 105u8, + 209u8, 27u8, 201u8, 130u8, 207u8, 58u8, 171u8, + 144u8, 57u8, 185u8, 221u8, 36u8, 114u8, 120u8, + 74u8, 211u8, 210u8, 19u8, 61u8, 244u8, 70u8, 85u8, + 150u8, 172u8, 138u8, ], ) } pub fn block_hash( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow< + runtime_types::primitive_types::U256, + >, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ::subxt::utils::H256, @@ -46480,38 +32190,11 @@ pub mod api { "BlockHash", Vec::new(), [ - 131u8, - 87u8, - 201u8, - 82u8, - 203u8, - 241u8, - 176u8, - 149u8, - 39u8, - 243u8, - 227u8, - 1u8, - 86u8, - 62u8, - 6u8, - 231u8, - 55u8, - 6u8, - 212u8, - 96u8, - 207u8, - 73u8, - 56u8, - 204u8, - 215u8, - 227u8, - 48u8, - 249u8, - 67u8, - 137u8, - 139u8, - 76u8, + 131u8, 87u8, 201u8, 82u8, 203u8, 241u8, 176u8, + 149u8, 39u8, 243u8, 227u8, 1u8, 86u8, 62u8, 6u8, + 231u8, 55u8, 6u8, 212u8, 96u8, 207u8, 73u8, 56u8, + 204u8, 215u8, 227u8, 48u8, 249u8, 67u8, 137u8, + 139u8, 76u8, ], ) } @@ -46522,9 +32205,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_evm::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_evm::pallet::Call; @@ -46542,11 +32225,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Withdraw { pub address: ::subxt::utils::H160, pub value: ::core::primitive::u128, @@ -46563,11 +32250,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Call { pub source: ::subxt::utils::H160, pub target: ::subxt::utils::H160, @@ -46581,9 +32272,10 @@ pub mod api { pub nonce: ::core::option::Option< runtime_types::primitive_types::U256, >, - pub access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), - >, + pub access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, } impl ::subxt::blocks::StaticExtrinsic for Call { const PALLET: &'static str = "EVM"; @@ -46597,11 +32289,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Create { pub source: ::subxt::utils::H160, pub init: ::std::vec::Vec<::core::primitive::u8>, @@ -46614,9 +32310,10 @@ pub mod api { pub nonce: ::core::option::Option< runtime_types::primitive_types::U256, >, - pub access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), - >, + pub access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, } impl ::subxt::blocks::StaticExtrinsic for Create { const PALLET: &'static str = "EVM"; @@ -46630,11 +32327,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Create2 { pub source: ::subxt::utils::H160, pub init: ::std::vec::Vec<::core::primitive::u8>, @@ -46648,9 +32349,10 @@ pub mod api { pub nonce: ::core::option::Option< runtime_types::primitive_types::U256, >, - pub access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), - >, + pub access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, } impl ::subxt::blocks::StaticExtrinsic for Create2 { const PALLET: &'static str = "EVM"; @@ -46670,38 +32372,11 @@ pub mod api { "withdraw", types::Withdraw { address, value }, [ - 62u8, - 162u8, - 234u8, - 15u8, - 176u8, - 61u8, - 183u8, - 203u8, - 241u8, - 10u8, - 202u8, - 26u8, - 45u8, - 116u8, - 38u8, - 44u8, - 32u8, - 57u8, - 208u8, - 55u8, - 182u8, - 92u8, - 136u8, - 133u8, - 216u8, - 255u8, - 25u8, - 132u8, - 242u8, - 34u8, - 43u8, - 64u8, + 62u8, 162u8, 234u8, 15u8, 176u8, 61u8, 183u8, + 203u8, 241u8, 10u8, 202u8, 26u8, 45u8, 116u8, 38u8, + 44u8, 32u8, 57u8, 208u8, 55u8, 182u8, 92u8, 136u8, + 133u8, 216u8, 255u8, 25u8, 132u8, 242u8, 34u8, + 43u8, 64u8, ], ) } @@ -46717,10 +32392,13 @@ pub mod api { max_priority_fee_per_gas: ::core::option::Option< runtime_types::primitive_types::U256, >, - nonce: ::core::option::Option, - access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), + nonce: ::core::option::Option< + runtime_types::primitive_types::U256, >, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "EVM", @@ -46737,37 +32415,10 @@ pub mod api { access_list, }, [ - 31u8, - 56u8, - 90u8, - 21u8, - 253u8, - 230u8, - 198u8, - 191u8, - 141u8, - 49u8, - 97u8, - 207u8, - 47u8, - 172u8, - 68u8, - 131u8, - 67u8, - 6u8, - 242u8, - 173u8, - 172u8, - 228u8, - 80u8, - 72u8, - 196u8, - 50u8, - 121u8, - 174u8, - 41u8, - 152u8, - 25u8, + 31u8, 56u8, 90u8, 21u8, 253u8, 230u8, 198u8, 191u8, + 141u8, 49u8, 97u8, 207u8, 47u8, 172u8, 68u8, 131u8, + 67u8, 6u8, 242u8, 173u8, 172u8, 228u8, 80u8, 72u8, + 196u8, 50u8, 121u8, 174u8, 41u8, 152u8, 25u8, 167u8, ], ) @@ -46784,10 +32435,13 @@ pub mod api { max_priority_fee_per_gas: ::core::option::Option< runtime_types::primitive_types::U256, >, - nonce: ::core::option::Option, - access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), + nonce: ::core::option::Option< + runtime_types::primitive_types::U256, >, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "EVM", @@ -46803,38 +32457,11 @@ pub mod api { access_list, }, [ - 95u8, - 163u8, - 129u8, - 250u8, - 114u8, - 58u8, - 161u8, - 151u8, - 39u8, - 45u8, - 203u8, - 141u8, - 107u8, - 230u8, - 70u8, - 3u8, - 142u8, - 173u8, - 223u8, - 163u8, - 135u8, - 84u8, - 174u8, - 141u8, - 125u8, - 188u8, - 3u8, - 31u8, - 180u8, - 31u8, - 39u8, - 234u8, + 95u8, 163u8, 129u8, 250u8, 114u8, 58u8, 161u8, + 151u8, 39u8, 45u8, 203u8, 141u8, 107u8, 230u8, + 70u8, 3u8, 142u8, 173u8, 223u8, 163u8, 135u8, 84u8, + 174u8, 141u8, 125u8, 188u8, 3u8, 31u8, 180u8, 31u8, + 39u8, 234u8, ], ) } @@ -46850,10 +32477,13 @@ pub mod api { max_priority_fee_per_gas: ::core::option::Option< runtime_types::primitive_types::U256, >, - nonce: ::core::option::Option, - access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), + nonce: ::core::option::Option< + runtime_types::primitive_types::U256, >, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "EVM", @@ -46870,47 +32500,19 @@ pub mod api { access_list, }, [ - 168u8, - 68u8, - 11u8, - 93u8, - 6u8, - 200u8, - 56u8, - 193u8, - 161u8, - 64u8, - 205u8, - 55u8, - 62u8, - 37u8, - 91u8, - 117u8, - 93u8, - 171u8, - 112u8, - 24u8, - 84u8, - 137u8, - 60u8, - 109u8, - 82u8, - 210u8, - 156u8, - 136u8, - 43u8, - 105u8, - 71u8, - 8u8, + 168u8, 68u8, 11u8, 93u8, 6u8, 200u8, 56u8, 193u8, + 161u8, 64u8, 205u8, 55u8, 62u8, 37u8, 91u8, 117u8, + 93u8, 171u8, 112u8, 24u8, 84u8, 137u8, 60u8, 109u8, + 82u8, 210u8, 156u8, 136u8, 43u8, 105u8, 71u8, 8u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_evm::pallet::Event; pub mod events { use super::runtime_types; @@ -46922,7 +32524,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -46943,7 +32545,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -46964,7 +32566,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -46985,7 +32587,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -47006,7 +32608,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -47091,37 +32693,10 @@ pub mod api { "AccountCodes", Vec::new(), [ - 1u8, - 120u8, - 180u8, - 110u8, - 199u8, - 44u8, - 76u8, - 96u8, - 9u8, - 241u8, - 193u8, - 51u8, - 127u8, - 93u8, - 102u8, - 21u8, - 223u8, - 35u8, - 174u8, - 122u8, - 50u8, - 242u8, - 107u8, - 223u8, - 79u8, - 219u8, - 92u8, - 18u8, - 50u8, - 195u8, - 169u8, + 1u8, 120u8, 180u8, 110u8, 199u8, 44u8, 76u8, 96u8, + 9u8, 241u8, 193u8, 51u8, 127u8, 93u8, 102u8, 21u8, + 223u8, 35u8, 174u8, 122u8, 50u8, 242u8, 107u8, + 223u8, 79u8, 219u8, 92u8, 18u8, 50u8, 195u8, 169u8, 186u8, ], ) @@ -47193,38 +32768,11 @@ pub mod api { "AccountCodesMetadata", Vec::new(), [ - 42u8, - 123u8, - 20u8, - 87u8, - 93u8, - 176u8, - 248u8, - 64u8, - 61u8, - 101u8, - 238u8, - 187u8, - 254u8, - 240u8, - 217u8, - 241u8, - 6u8, - 120u8, - 48u8, - 130u8, - 191u8, - 26u8, - 1u8, - 248u8, - 174u8, - 81u8, - 35u8, - 179u8, - 27u8, - 161u8, - 156u8, - 97u8, + 42u8, 123u8, 20u8, 87u8, 93u8, 176u8, 248u8, 64u8, + 61u8, 101u8, 238u8, 187u8, 254u8, 240u8, 217u8, + 241u8, 6u8, 120u8, 48u8, 130u8, 191u8, 26u8, 1u8, + 248u8, 174u8, 81u8, 35u8, 179u8, 27u8, 161u8, + 156u8, 97u8, ], ) } @@ -47296,100 +32844,46 @@ pub mod api { ::subxt::storage::address::Address::new_static( "EVM", "AccountStorages", - Vec::new(), - [ - 200u8, - 211u8, - 77u8, - 68u8, - 88u8, - 0u8, - 217u8, - 252u8, - 31u8, - 168u8, - 125u8, - 198u8, - 225u8, - 52u8, - 102u8, - 222u8, - 156u8, - 238u8, - 215u8, - 254u8, - 11u8, - 62u8, - 183u8, - 234u8, - 84u8, - 5u8, - 11u8, - 172u8, - 244u8, - 199u8, - 55u8, - 67u8, - ], - ) - } - } - } - } - pub mod evm_chain_id { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct StorageApi; - impl StorageApi { - /// The EVM chain ID. - pub fn chain_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u64, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "EVMChainId", - "ChainId", - vec![], - [ - 250u8, - 158u8, - 90u8, - 220u8, - 184u8, - 126u8, - 207u8, - 222u8, - 62u8, - 226u8, - 144u8, - 204u8, - 19u8, - 136u8, - 127u8, - 5u8, - 135u8, - 48u8, - 234u8, - 138u8, - 216u8, - 103u8, - 28u8, - 140u8, - 193u8, - 197u8, - 142u8, - 22u8, - 159u8, - 16u8, - 225u8, - 255u8, + Vec::new(), + [ + 200u8, 211u8, 77u8, 68u8, 88u8, 0u8, 217u8, 252u8, + 31u8, 168u8, 125u8, 198u8, 225u8, 52u8, 102u8, + 222u8, 156u8, 238u8, 215u8, 254u8, 11u8, 62u8, + 183u8, 234u8, 84u8, 5u8, 11u8, 172u8, 244u8, 199u8, + 55u8, 67u8, + ], + ) + } + } + } + } + pub mod evm_chain_id { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The EVM chain ID. + pub fn chain_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "EVMChainId", + "ChainId", + vec![], + [ + 250u8, 158u8, 90u8, 220u8, 184u8, 126u8, 207u8, + 222u8, 62u8, 226u8, 144u8, 204u8, 19u8, 136u8, + 127u8, 5u8, 135u8, 48u8, 234u8, 138u8, 216u8, + 103u8, 28u8, 140u8, 193u8, 197u8, 142u8, 22u8, + 159u8, 16u8, 225u8, 255u8, ], ) } @@ -47415,11 +32909,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct NoteMinGasPriceTarget { pub target: runtime_types::primitive_types::U256, } @@ -47433,46 +32931,18 @@ pub mod api { pub fn note_min_gas_price_target( &self, target: runtime_types::primitive_types::U256, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "DynamicFee", "note_min_gas_price_target", - types::NoteMinGasPriceTarget { - target, - }, + types::NoteMinGasPriceTarget { target }, [ - 195u8, - 135u8, - 128u8, - 209u8, - 249u8, - 41u8, - 223u8, - 153u8, - 197u8, - 51u8, - 194u8, - 204u8, - 79u8, - 173u8, - 113u8, - 25u8, - 6u8, - 153u8, - 167u8, - 20u8, - 24u8, - 86u8, - 205u8, - 157u8, - 213u8, - 248u8, - 52u8, - 247u8, - 209u8, - 0u8, - 17u8, - 171u8, + 195u8, 135u8, 128u8, 209u8, 249u8, 41u8, 223u8, + 153u8, 197u8, 51u8, 194u8, 204u8, 79u8, 173u8, + 113u8, 25u8, 6u8, 153u8, 167u8, 20u8, 24u8, 86u8, + 205u8, 157u8, 213u8, 248u8, 52u8, 247u8, 209u8, + 0u8, 17u8, 171u8, ], ) } @@ -47496,38 +32966,11 @@ pub mod api { "MinGasPrice", vec![], [ - 135u8, - 244u8, - 108u8, - 147u8, - 120u8, - 36u8, - 33u8, - 200u8, - 200u8, - 249u8, - 110u8, - 39u8, - 180u8, - 17u8, - 231u8, - 219u8, - 95u8, - 60u8, - 227u8, - 68u8, - 150u8, - 151u8, - 67u8, - 45u8, - 235u8, - 130u8, - 4u8, - 244u8, - 35u8, - 112u8, - 69u8, - 119u8, + 135u8, 244u8, 108u8, 147u8, 120u8, 36u8, 33u8, + 200u8, 200u8, 249u8, 110u8, 39u8, 180u8, 17u8, + 231u8, 219u8, 95u8, 60u8, 227u8, 68u8, 150u8, + 151u8, 67u8, 45u8, 235u8, 130u8, 4u8, 244u8, 35u8, + 112u8, 69u8, 119u8, ], ) } @@ -47545,38 +32988,11 @@ pub mod api { "TargetMinGasPrice", vec![], [ - 219u8, - 94u8, - 37u8, - 223u8, - 148u8, - 89u8, - 16u8, - 136u8, - 218u8, - 154u8, - 54u8, - 94u8, - 202u8, - 5u8, - 82u8, - 185u8, - 235u8, - 239u8, - 152u8, - 206u8, - 203u8, - 71u8, - 237u8, - 200u8, - 28u8, - 250u8, - 217u8, - 29u8, - 132u8, - 255u8, - 78u8, - 94u8, + 219u8, 94u8, 37u8, 223u8, 148u8, 89u8, 16u8, 136u8, + 218u8, 154u8, 54u8, 94u8, 202u8, 5u8, 82u8, 185u8, + 235u8, 239u8, 152u8, 206u8, 203u8, 71u8, 237u8, + 200u8, 28u8, 250u8, 217u8, 29u8, 132u8, 255u8, + 78u8, 94u8, ], ) } @@ -47602,11 +33018,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetBaseFeePerGas { pub fee: runtime_types::primitive_types::U256, } @@ -47622,13 +33042,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SetElasticity { - pub elasticity: runtime_types::sp_arithmetic::per_things::Permill, + pub elasticity: + runtime_types::sp_arithmetic::per_things::Permill, } impl ::subxt::blocks::StaticExtrinsic for SetElasticity { const PALLET: &'static str = "BaseFee"; @@ -47640,97 +33065,45 @@ pub mod api { pub fn set_base_fee_per_gas( &self, fee: runtime_types::primitive_types::U256, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "BaseFee", "set_base_fee_per_gas", types::SetBaseFeePerGas { fee }, [ - 126u8, - 236u8, - 128u8, - 184u8, - 42u8, - 39u8, - 13u8, - 175u8, - 155u8, - 36u8, - 229u8, - 20u8, - 13u8, - 15u8, - 88u8, - 56u8, - 206u8, - 44u8, - 127u8, - 182u8, - 120u8, - 212u8, - 35u8, - 72u8, - 100u8, - 181u8, - 64u8, - 200u8, - 63u8, - 129u8, - 167u8, - 132u8, + 126u8, 236u8, 128u8, 184u8, 42u8, 39u8, 13u8, + 175u8, 155u8, 36u8, 229u8, 20u8, 13u8, 15u8, 88u8, + 56u8, 206u8, 44u8, 127u8, 182u8, 120u8, 212u8, + 35u8, 72u8, 100u8, 181u8, 64u8, 200u8, 63u8, 129u8, + 167u8, 132u8, ], ) } pub fn set_elasticity( &self, elasticity: runtime_types::sp_arithmetic::per_things::Permill, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "BaseFee", "set_elasticity", types::SetElasticity { elasticity }, [ - 209u8, - 8u8, - 19u8, - 35u8, - 199u8, - 151u8, - 122u8, - 91u8, - 181u8, - 133u8, - 162u8, - 167u8, - 186u8, - 150u8, - 54u8, - 83u8, - 101u8, - 180u8, - 188u8, - 136u8, - 111u8, - 100u8, - 76u8, - 51u8, - 118u8, - 171u8, - 15u8, - 75u8, - 120u8, - 106u8, - 37u8, - 1u8, + 209u8, 8u8, 19u8, 35u8, 199u8, 151u8, 122u8, 91u8, + 181u8, 133u8, 162u8, 167u8, 186u8, 150u8, 54u8, + 83u8, 101u8, 180u8, 188u8, 136u8, 111u8, 100u8, + 76u8, 51u8, 118u8, 171u8, 15u8, 75u8, 120u8, 106u8, + 37u8, 1u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_base_fee::pallet::Event; pub mod events { use super::runtime_types; @@ -47742,7 +33115,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -47762,7 +33135,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -47780,13 +33153,14 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NewElasticity { - pub elasticity: runtime_types::sp_arithmetic::per_things::Permill, + pub elasticity: + runtime_types::sp_arithmetic::per_things::Permill, } impl ::subxt::events::StaticEvent for NewElasticity { const PALLET: &'static str = "BaseFee"; @@ -47811,38 +33185,11 @@ pub mod api { "BaseFeePerGas", vec![], [ - 72u8, - 143u8, - 208u8, - 233u8, - 10u8, - 122u8, - 20u8, - 183u8, - 203u8, - 61u8, - 240u8, - 154u8, - 28u8, - 65u8, - 239u8, - 220u8, - 205u8, - 19u8, - 227u8, - 113u8, - 146u8, - 90u8, - 234u8, - 209u8, - 113u8, - 169u8, - 216u8, - 194u8, - 189u8, - 0u8, - 154u8, - 144u8, + 72u8, 143u8, 208u8, 233u8, 10u8, 122u8, 20u8, + 183u8, 203u8, 61u8, 240u8, 154u8, 28u8, 65u8, + 239u8, 220u8, 205u8, 19u8, 227u8, 113u8, 146u8, + 90u8, 234u8, 209u8, 113u8, 169u8, 216u8, 194u8, + 189u8, 0u8, 154u8, 144u8, ], ) } @@ -47860,37 +33207,10 @@ pub mod api { "Elasticity", vec![], [ - 196u8, - 184u8, - 245u8, - 90u8, - 25u8, - 50u8, - 66u8, - 69u8, - 140u8, - 128u8, - 179u8, - 63u8, - 197u8, - 133u8, - 135u8, - 141u8, - 56u8, - 0u8, - 143u8, - 241u8, - 200u8, - 114u8, - 73u8, - 157u8, - 85u8, - 190u8, - 1u8, - 2u8, - 208u8, - 235u8, - 62u8, + 196u8, 184u8, 245u8, 90u8, 25u8, 50u8, 66u8, 69u8, + 140u8, 128u8, 179u8, 63u8, 197u8, 133u8, 135u8, + 141u8, 56u8, 0u8, 143u8, 241u8, 200u8, 114u8, 73u8, + 157u8, 85u8, 190u8, 1u8, 2u8, 208u8, 235u8, 62u8, 16u8, ], ) @@ -47902,10 +33222,11 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ - pub type Error = runtime_types::pallet_hotfix_sufficients::pallet::Error; + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ + pub type Error = + runtime_types::pallet_hotfix_sufficients::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_hotfix_sufficients::pallet::Call; pub mod calls { @@ -47922,11 +33243,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct HotfixIncAccountSufficients { pub addresses: ::std::vec::Vec<::subxt::utils::H160>, } @@ -47944,46 +33269,18 @@ pub mod api { pub fn hotfix_inc_account_sufficients( &self, addresses: ::std::vec::Vec<::subxt::utils::H160>, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "HotfixSufficients", "hotfix_inc_account_sufficients", - types::HotfixIncAccountSufficients { - addresses, - }, + types::HotfixIncAccountSufficients { addresses }, [ - 135u8, - 117u8, - 192u8, - 209u8, - 218u8, - 115u8, - 124u8, - 21u8, - 78u8, - 250u8, - 55u8, - 209u8, - 86u8, - 92u8, - 17u8, - 196u8, - 209u8, - 131u8, - 185u8, - 20u8, - 166u8, - 25u8, - 175u8, - 119u8, - 21u8, - 155u8, - 139u8, - 112u8, - 128u8, - 35u8, - 223u8, - 195u8, + 135u8, 117u8, 192u8, 209u8, 218u8, 115u8, 124u8, + 21u8, 78u8, 250u8, 55u8, 209u8, 86u8, 92u8, 17u8, + 196u8, 209u8, 131u8, 185u8, 20u8, 166u8, 25u8, + 175u8, 119u8, 21u8, 155u8, 139u8, 112u8, 128u8, + 35u8, 223u8, 195u8, ], ) } @@ -47994,9 +33291,9 @@ pub mod api { use super::root_mod; use super::runtime_types; /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub type Error = runtime_types::pallet_eth2_light_client::pallet::Error; ///Contains one variant per dispatchable that can be called by an extrinsic. pub type Call = runtime_types::pallet_eth2_light_client::pallet::Call; @@ -48014,13 +33311,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Init { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub args: ::std::boxed::Box< runtime_types::eth_types::pallet::InitInput< ::subxt::utils::AccountId32, @@ -48039,13 +33341,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RegisterSubmitter { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, } impl ::subxt::blocks::StaticExtrinsic for RegisterSubmitter { const PALLET: &'static str = "Eth2Client"; @@ -48059,13 +33366,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UnregisterSubmitter { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, } impl ::subxt::blocks::StaticExtrinsic for UnregisterSubmitter { const PALLET: &'static str = "Eth2Client"; @@ -48079,19 +33391,25 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitBeaconChainLightClientUpdate { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, - pub light_client_update: runtime_types::eth_types::eth2::LightClientUpdate, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub light_client_update: + runtime_types::eth_types::eth2::LightClientUpdate, } - impl ::subxt::blocks::StaticExtrinsic - for SubmitBeaconChainLightClientUpdate { + impl ::subxt::blocks::StaticExtrinsic for SubmitBeaconChainLightClientUpdate { const PALLET: &'static str = "Eth2Client"; - const CALL: &'static str = "submit_beacon_chain_light_client_update"; + const CALL: &'static str = + "submit_beacon_chain_light_client_update"; } #[derive( ::subxt::ext::codec::Decode, @@ -48101,13 +33419,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SubmitExecutionHeader { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub block_header: runtime_types::eth_types::BlockHeader, } impl ::subxt::blocks::StaticExtrinsic for SubmitExecutionHeader { @@ -48122,11 +33445,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UpdateTrustedSigner { pub trusted_signer: ::subxt::utils::AccountId32, } @@ -48152,130 +33479,47 @@ pub mod api { args: ::std::boxed::Box::new(args), }, [ - 224u8, - 172u8, - 34u8, - 87u8, - 94u8, - 27u8, - 77u8, - 137u8, - 199u8, - 116u8, - 185u8, - 165u8, - 132u8, - 142u8, - 118u8, - 110u8, - 85u8, - 138u8, - 217u8, - 166u8, - 109u8, - 37u8, - 233u8, - 224u8, - 204u8, - 88u8, - 194u8, - 87u8, - 199u8, - 145u8, - 158u8, - 195u8, + 224u8, 172u8, 34u8, 87u8, 94u8, 27u8, 77u8, 137u8, + 199u8, 116u8, 185u8, 165u8, 132u8, 142u8, 118u8, + 110u8, 85u8, 138u8, 217u8, 166u8, 109u8, 37u8, + 233u8, 224u8, 204u8, 88u8, 194u8, 87u8, 199u8, + 145u8, 158u8, 195u8, ], ) } pub fn register_submitter( &self, typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Eth2Client", "register_submitter", - types::RegisterSubmitter { - typed_chain_id, - }, + types::RegisterSubmitter { typed_chain_id }, [ - 222u8, - 7u8, - 60u8, - 184u8, - 244u8, - 96u8, - 213u8, - 235u8, - 150u8, - 244u8, - 87u8, - 155u8, - 244u8, - 201u8, - 42u8, - 234u8, - 86u8, - 150u8, - 19u8, - 116u8, - 130u8, - 62u8, - 224u8, - 153u8, - 199u8, - 0u8, - 124u8, - 226u8, - 241u8, - 87u8, - 230u8, - 48u8, + 222u8, 7u8, 60u8, 184u8, 244u8, 96u8, 213u8, 235u8, + 150u8, 244u8, 87u8, 155u8, 244u8, 201u8, 42u8, + 234u8, 86u8, 150u8, 19u8, 116u8, 130u8, 62u8, + 224u8, 153u8, 199u8, 0u8, 124u8, 226u8, 241u8, + 87u8, 230u8, 48u8, ], ) } pub fn unregister_submitter( &self, typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Eth2Client", "unregister_submitter", - types::UnregisterSubmitter { - typed_chain_id, - }, + types::UnregisterSubmitter { typed_chain_id }, [ - 165u8, - 108u8, - 239u8, - 19u8, - 128u8, - 122u8, - 250u8, - 180u8, - 87u8, - 236u8, - 36u8, - 175u8, - 85u8, - 5u8, - 77u8, - 129u8, - 42u8, - 63u8, - 185u8, - 116u8, - 89u8, - 246u8, - 119u8, - 72u8, - 227u8, - 132u8, - 100u8, - 216u8, - 250u8, - 120u8, - 178u8, - 128u8, + 165u8, 108u8, 239u8, 19u8, 128u8, 122u8, 250u8, + 180u8, 87u8, 236u8, 36u8, 175u8, 85u8, 5u8, 77u8, + 129u8, 42u8, 63u8, 185u8, 116u8, 89u8, 246u8, + 119u8, 72u8, 227u8, 132u8, 100u8, 216u8, 250u8, + 120u8, 178u8, 128u8, ], ) } @@ -48283,7 +33527,9 @@ pub mod api { &self, typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, light_client_update: runtime_types::eth_types::eth2::LightClientUpdate, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload< + types::SubmitBeaconChainLightClientUpdate, + > { ::subxt::tx::Payload::new_static( "Eth2Client", "submit_beacon_chain_light_client_update", @@ -48292,38 +33538,11 @@ pub mod api { light_client_update, }, [ - 207u8, - 203u8, - 157u8, - 86u8, - 27u8, - 194u8, - 34u8, - 239u8, - 114u8, - 53u8, - 210u8, - 164u8, - 70u8, - 34u8, - 102u8, - 183u8, - 29u8, - 120u8, - 240u8, - 191u8, - 26u8, - 33u8, - 110u8, - 129u8, - 145u8, - 239u8, - 62u8, - 18u8, - 134u8, - 190u8, - 125u8, - 137u8, + 207u8, 203u8, 157u8, 86u8, 27u8, 194u8, 34u8, + 239u8, 114u8, 53u8, 210u8, 164u8, 70u8, 34u8, + 102u8, 183u8, 29u8, 120u8, 240u8, 191u8, 26u8, + 33u8, 110u8, 129u8, 145u8, 239u8, 62u8, 18u8, + 134u8, 190u8, 125u8, 137u8, ], ) } @@ -48331,7 +33550,8 @@ pub mod api { &self, typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, block_header: runtime_types::eth_types::BlockHeader, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Eth2Client", "submit_execution_header", @@ -48340,93 +33560,38 @@ pub mod api { block_header, }, [ - 38u8, - 118u8, - 239u8, - 79u8, - 229u8, - 71u8, - 163u8, - 234u8, - 175u8, - 198u8, - 140u8, - 174u8, - 121u8, - 139u8, - 55u8, - 0u8, - 11u8, - 133u8, - 224u8, - 31u8, - 253u8, - 178u8, - 14u8, - 233u8, - 103u8, - 208u8, - 232u8, - 211u8, - 218u8, - 68u8, - 151u8, - 26u8, + 38u8, 118u8, 239u8, 79u8, 229u8, 71u8, 163u8, + 234u8, 175u8, 198u8, 140u8, 174u8, 121u8, 139u8, + 55u8, 0u8, 11u8, 133u8, 224u8, 31u8, 253u8, 178u8, + 14u8, 233u8, 103u8, 208u8, 232u8, 211u8, 218u8, + 68u8, 151u8, 26u8, ], ) } pub fn update_trusted_signer( &self, trusted_signer: ::subxt::utils::AccountId32, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload + { ::subxt::tx::Payload::new_static( "Eth2Client", "update_trusted_signer", - types::UpdateTrustedSigner { - trusted_signer, - }, + types::UpdateTrustedSigner { trusted_signer }, [ - 135u8, - 127u8, - 171u8, - 28u8, - 199u8, - 19u8, - 175u8, - 128u8, - 88u8, - 130u8, - 38u8, - 205u8, - 75u8, - 117u8, - 25u8, - 185u8, - 27u8, - 122u8, - 93u8, - 169u8, - 210u8, - 246u8, - 87u8, - 174u8, - 15u8, - 61u8, - 152u8, - 173u8, - 27u8, - 4u8, - 172u8, - 194u8, + 135u8, 127u8, 171u8, 28u8, 199u8, 19u8, 175u8, + 128u8, 88u8, 130u8, 38u8, 205u8, 75u8, 117u8, 25u8, + 185u8, 27u8, 122u8, 93u8, 169u8, 210u8, 246u8, + 87u8, 174u8, 15u8, 61u8, 152u8, 173u8, 27u8, 4u8, + 172u8, 194u8, ], ) } } } /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub type Event = runtime_types::pallet_eth2_light_client::pallet::Event; pub mod events { use super::runtime_types; @@ -48438,16 +33603,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Init { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, - pub header_info: runtime_types::eth_types::pallet::ExecutionHeaderInfo< - ::subxt::utils::AccountId32, - >, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub header_info: + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, } impl ::subxt::events::StaticEvent for Init { const PALLET: &'static str = "Eth2Client"; @@ -48461,13 +33628,14 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RegisterSubmitter { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub submitter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for RegisterSubmitter { @@ -48482,13 +33650,14 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnregisterSubmitter { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub submitter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for UnregisterSubmitter { @@ -48503,19 +33672,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitBeaconChainLightClientUpdate { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, pub submitter: ::subxt::utils::AccountId32, - pub beacon_block_header: runtime_types::eth_types::eth2::BeaconBlockHeader, + pub beacon_block_header: + runtime_types::eth_types::eth2::BeaconBlockHeader, } impl ::subxt::events::StaticEvent for SubmitBeaconChainLightClientUpdate { const PALLET: &'static str = "Eth2Client"; - const EVENT: &'static str = "SubmitBeaconChainLightClientUpdate"; + const EVENT: &'static str = + "SubmitBeaconChainLightClientUpdate"; } #[derive( ::subxt::ext::codec::Decode, @@ -48525,16 +33697,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitExecutionHeader { - pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, - pub header_info: runtime_types::eth_types::pallet::ExecutionHeaderInfo< - ::subxt::utils::AccountId32, - >, + pub typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + pub header_info: + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, } impl ::subxt::events::StaticEvent for SubmitExecutionHeader { const PALLET: &'static str = "Eth2Client"; @@ -48548,7 +33722,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -48580,38 +33754,11 @@ pub mod api { "TrustedSigner", vec![], [ - 21u8, - 189u8, - 0u8, - 45u8, - 62u8, - 32u8, - 95u8, - 123u8, - 212u8, - 22u8, - 46u8, - 86u8, - 77u8, - 59u8, - 244u8, - 58u8, - 71u8, - 37u8, - 128u8, - 236u8, - 255u8, - 63u8, - 167u8, - 111u8, - 213u8, - 109u8, - 43u8, - 161u8, - 205u8, - 37u8, - 83u8, - 187u8, + 21u8, 189u8, 0u8, 45u8, 62u8, 32u8, 95u8, 123u8, + 212u8, 22u8, 46u8, 86u8, 77u8, 59u8, 244u8, 58u8, + 71u8, 37u8, 128u8, 236u8, 255u8, 63u8, 167u8, + 111u8, 213u8, 109u8, 43u8, 161u8, 205u8, 37u8, + 83u8, 187u8, ], ) } @@ -48686,38 +33833,11 @@ pub mod api { "Paused", Vec::new(), [ - 67u8, - 242u8, - 157u8, - 222u8, - 138u8, - 64u8, - 225u8, - 85u8, - 198u8, - 3u8, - 14u8, - 10u8, - 177u8, - 45u8, - 252u8, - 141u8, - 51u8, - 212u8, - 73u8, - 153u8, - 205u8, - 25u8, - 83u8, - 131u8, - 39u8, - 209u8, - 51u8, - 227u8, - 14u8, - 162u8, - 151u8, - 89u8, + 67u8, 242u8, 157u8, 222u8, 138u8, 64u8, 225u8, + 85u8, 198u8, 3u8, 14u8, 10u8, 177u8, 45u8, 252u8, + 141u8, 51u8, 212u8, 73u8, 153u8, 205u8, 25u8, 83u8, + 131u8, 39u8, 209u8, 51u8, 227u8, 14u8, 162u8, + 151u8, 89u8, ], ) } @@ -48794,38 +33914,11 @@ pub mod api { "ValidateUpdates", Vec::new(), [ - 49u8, - 117u8, - 104u8, - 75u8, - 255u8, - 224u8, - 49u8, - 241u8, - 128u8, - 105u8, - 57u8, - 193u8, - 229u8, - 15u8, - 122u8, - 6u8, - 254u8, - 88u8, - 166u8, - 175u8, - 211u8, - 54u8, - 95u8, - 204u8, - 219u8, - 147u8, - 10u8, - 114u8, - 51u8, - 13u8, - 122u8, - 139u8, + 49u8, 117u8, 104u8, 75u8, 255u8, 224u8, 49u8, + 241u8, 128u8, 105u8, 57u8, 193u8, 229u8, 15u8, + 122u8, 6u8, 254u8, 88u8, 166u8, 175u8, 211u8, 54u8, + 95u8, 204u8, 219u8, 147u8, 10u8, 114u8, 51u8, 13u8, + 122u8, 139u8, ], ) } @@ -48900,38 +33993,11 @@ pub mod api { "VerifyBlsSignatures", Vec::new(), [ - 5u8, - 63u8, - 177u8, - 128u8, - 97u8, - 61u8, - 181u8, - 19u8, - 96u8, - 253u8, - 208u8, - 216u8, - 145u8, - 117u8, - 73u8, - 101u8, - 103u8, - 245u8, - 155u8, - 63u8, - 18u8, - 28u8, - 237u8, - 241u8, - 129u8, - 11u8, - 128u8, - 86u8, - 181u8, - 232u8, - 172u8, - 77u8, + 5u8, 63u8, 177u8, 128u8, 97u8, 61u8, 181u8, 19u8, + 96u8, 253u8, 208u8, 216u8, 145u8, 117u8, 73u8, + 101u8, 103u8, 245u8, 155u8, 63u8, 18u8, 28u8, + 237u8, 241u8, 129u8, 11u8, 128u8, 86u8, 181u8, + 232u8, 172u8, 77u8, ], ) } @@ -49012,38 +34078,11 @@ pub mod api { "HashesGcThreshold", Vec::new(), [ - 124u8, - 226u8, - 124u8, - 138u8, - 247u8, - 40u8, - 139u8, - 198u8, - 245u8, - 212u8, - 132u8, - 125u8, - 120u8, - 218u8, - 56u8, - 100u8, - 227u8, - 189u8, - 165u8, - 46u8, - 145u8, - 91u8, - 159u8, - 150u8, - 145u8, - 49u8, - 125u8, - 137u8, - 118u8, - 255u8, - 71u8, - 62u8, + 124u8, 226u8, 124u8, 138u8, 247u8, 40u8, 139u8, + 198u8, 245u8, 212u8, 132u8, 125u8, 120u8, 218u8, + 56u8, 100u8, 227u8, 189u8, 165u8, 46u8, 145u8, + 91u8, 159u8, 150u8, 145u8, 49u8, 125u8, 137u8, + 118u8, 255u8, 71u8, 62u8, ], ) } @@ -49123,38 +34162,11 @@ pub mod api { "FinalizedExecutionBlocks", Vec::new(), [ - 134u8, - 41u8, - 62u8, - 140u8, - 194u8, - 61u8, - 138u8, - 61u8, - 66u8, - 103u8, - 12u8, - 216u8, - 239u8, - 109u8, - 178u8, - 34u8, - 221u8, - 93u8, - 125u8, - 37u8, - 228u8, - 53u8, - 108u8, - 201u8, - 173u8, - 246u8, - 56u8, - 150u8, - 67u8, - 233u8, - 35u8, - 27u8, + 134u8, 41u8, 62u8, 140u8, 194u8, 61u8, 138u8, 61u8, + 66u8, 103u8, 12u8, 216u8, 239u8, 109u8, 178u8, + 34u8, 221u8, 93u8, 125u8, 37u8, 228u8, 53u8, 108u8, + 201u8, 173u8, 246u8, 56u8, 150u8, 67u8, 233u8, + 35u8, 27u8, ], ) } @@ -49238,37 +34250,10 @@ pub mod api { "UnfinalizedHeaders", Vec::new(), [ - 129u8, - 60u8, - 100u8, - 53u8, - 242u8, - 2u8, - 223u8, - 237u8, - 18u8, - 205u8, - 47u8, - 93u8, - 193u8, - 153u8, - 25u8, - 0u8, - 149u8, - 5u8, - 165u8, - 124u8, - 2u8, - 255u8, - 108u8, - 109u8, - 196u8, - 157u8, - 183u8, - 131u8, - 178u8, - 79u8, - 94u8, + 129u8, 60u8, 100u8, 53u8, 242u8, 2u8, 223u8, 237u8, + 18u8, 205u8, 47u8, 93u8, 193u8, 153u8, 25u8, 0u8, + 149u8, 5u8, 165u8, 124u8, 2u8, 255u8, 108u8, 109u8, + 196u8, 157u8, 183u8, 131u8, 178u8, 79u8, 94u8, 232u8, ], ) @@ -49333,57 +34318,30 @@ pub mod api { ], ) } - /// `AccountId`s mapped to their number of submitted headers. - /// Submitter account -> Num of submitted headers - pub fn submitters_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::u32, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Eth2Client", - "Submitters", - Vec::new(), - [ - 59u8, - 140u8, - 198u8, - 164u8, - 176u8, - 105u8, - 237u8, - 249u8, - 77u8, - 243u8, - 29u8, - 13u8, - 152u8, - 202u8, - 158u8, - 203u8, - 81u8, - 118u8, - 248u8, - 241u8, - 89u8, - 193u8, - 70u8, - 78u8, - 56u8, - 164u8, - 40u8, - 33u8, - 103u8, - 17u8, - 250u8, - 118u8, - ], - ) - } + /// `AccountId`s mapped to their number of submitted headers. + /// Submitter account -> Num of submitted headers + pub fn submitters_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "Submitters", + Vec::new(), + [ + 59u8, 140u8, 198u8, 164u8, 176u8, 105u8, 237u8, + 249u8, 77u8, 243u8, 29u8, 13u8, 152u8, 202u8, + 158u8, 203u8, 81u8, 118u8, 248u8, 241u8, 89u8, + 193u8, 70u8, 78u8, 56u8, 164u8, 40u8, 33u8, 103u8, + 17u8, 250u8, 118u8, + ], + ) + } /// Max number of unfinalized blocks allowed to be stored by one submitter account /// This value should be at least 32 blocks (1 epoch), but the recommended value is 1024 (32 /// epochs @@ -49459,38 +34417,10 @@ pub mod api { "MaxUnfinalizedBlocksPerSubmitter", Vec::new(), [ - 92u8, - 16u8, - 141u8, - 155u8, - 234u8, - 201u8, - 38u8, - 45u8, - 34u8, - 90u8, - 7u8, - 82u8, - 40u8, - 224u8, - 31u8, - 135u8, - 201u8, - 205u8, - 31u8, - 193u8, - 227u8, - 1u8, - 125u8, - 32u8, - 134u8, - 43u8, - 236u8, - 224u8, - 31u8, - 12u8, - 79u8, - 75u8, + 92u8, 16u8, 141u8, 155u8, 234u8, 201u8, 38u8, 45u8, + 34u8, 90u8, 7u8, 82u8, 40u8, 224u8, 31u8, 135u8, + 201u8, 205u8, 31u8, 193u8, 227u8, 1u8, 125u8, 32u8, + 134u8, 43u8, 236u8, 224u8, 31u8, 12u8, 79u8, 75u8, ], ) } @@ -49565,38 +34495,10 @@ pub mod api { "MinSubmitterBalance", Vec::new(), [ - 235u8, - 98u8, - 223u8, - 184u8, - 115u8, - 57u8, - 22u8, - 25u8, - 38u8, - 173u8, - 108u8, - 116u8, - 37u8, - 3u8, - 16u8, - 106u8, - 32u8, - 81u8, - 121u8, - 18u8, - 49u8, - 33u8, - 19u8, - 53u8, - 41u8, - 172u8, - 99u8, - 120u8, - 231u8, - 80u8, - 238u8, - 20u8, + 235u8, 98u8, 223u8, 184u8, 115u8, 57u8, 22u8, 25u8, + 38u8, 173u8, 108u8, 116u8, 37u8, 3u8, 16u8, 106u8, + 32u8, 81u8, 121u8, 18u8, 49u8, 33u8, 19u8, 53u8, + 41u8, 172u8, 99u8, 120u8, 231u8, 80u8, 238u8, 20u8, ], ) } @@ -49671,38 +34573,11 @@ pub mod api { "FinalizedBeaconHeader", Vec::new(), [ - 71u8, - 146u8, - 230u8, - 183u8, - 36u8, - 170u8, - 254u8, - 126u8, - 155u8, - 247u8, - 27u8, - 104u8, - 156u8, - 119u8, - 52u8, - 51u8, - 78u8, - 136u8, - 156u8, - 79u8, - 201u8, - 177u8, - 253u8, - 118u8, - 47u8, - 17u8, - 50u8, - 195u8, - 43u8, - 177u8, - 245u8, - 127u8, + 71u8, 146u8, 230u8, 183u8, 36u8, 170u8, 254u8, + 126u8, 155u8, 247u8, 27u8, 104u8, 156u8, 119u8, + 52u8, 51u8, 78u8, 136u8, 156u8, 79u8, 201u8, 177u8, + 253u8, 118u8, 47u8, 17u8, 50u8, 195u8, 43u8, 177u8, + 245u8, 127u8, ], ) } @@ -49779,37 +34654,10 @@ pub mod api { "FinalizedExecutionHeader", Vec::new(), [ - 134u8, - 98u8, - 58u8, - 100u8, - 221u8, - 62u8, - 31u8, - 13u8, - 224u8, - 124u8, - 10u8, - 244u8, - 135u8, - 14u8, - 29u8, - 161u8, - 64u8, - 11u8, - 104u8, - 171u8, - 25u8, - 29u8, - 178u8, - 58u8, - 87u8, - 56u8, - 48u8, - 240u8, - 105u8, - 89u8, - 25u8, + 134u8, 98u8, 58u8, 100u8, 221u8, 62u8, 31u8, 13u8, + 224u8, 124u8, 10u8, 244u8, 135u8, 14u8, 29u8, + 161u8, 64u8, 11u8, 104u8, 171u8, 25u8, 29u8, 178u8, + 58u8, 87u8, 56u8, 48u8, 240u8, 105u8, 89u8, 25u8, 225u8, ], ) @@ -49883,38 +34731,11 @@ pub mod api { "CurrentSyncCommittee", Vec::new(), [ - 229u8, - 30u8, - 180u8, - 144u8, - 244u8, - 152u8, - 206u8, - 207u8, - 99u8, - 39u8, - 220u8, - 112u8, - 140u8, - 121u8, - 252u8, - 173u8, - 109u8, - 234u8, - 41u8, - 181u8, - 138u8, - 13u8, - 224u8, - 219u8, - 59u8, - 30u8, - 88u8, - 70u8, - 131u8, - 141u8, - 18u8, - 203u8, + 229u8, 30u8, 180u8, 144u8, 244u8, 152u8, 206u8, + 207u8, 99u8, 39u8, 220u8, 112u8, 140u8, 121u8, + 252u8, 173u8, 109u8, 234u8, 41u8, 181u8, 138u8, + 13u8, 224u8, 219u8, 59u8, 30u8, 88u8, 70u8, 131u8, + 141u8, 18u8, 203u8, ], ) } @@ -49987,37 +34808,10 @@ pub mod api { "NextSyncCommittee", Vec::new(), [ - 151u8, - 89u8, - 52u8, - 48u8, - 128u8, - 93u8, - 9u8, - 192u8, - 208u8, - 88u8, - 82u8, - 251u8, - 28u8, - 41u8, - 206u8, - 189u8, - 124u8, - 130u8, - 169u8, - 109u8, - 156u8, - 53u8, - 245u8, - 89u8, - 39u8, - 167u8, - 204u8, - 41u8, - 20u8, - 34u8, - 114u8, + 151u8, 89u8, 52u8, 48u8, 128u8, 93u8, 9u8, 192u8, + 208u8, 88u8, 82u8, 251u8, 28u8, 41u8, 206u8, 189u8, + 124u8, 130u8, 169u8, 109u8, 156u8, 53u8, 245u8, + 89u8, 39u8, 167u8, 204u8, 41u8, 20u8, 34u8, 114u8, 96u8, ], ) @@ -50091,38 +34885,11 @@ pub mod api { "GenesisValidatorsRoot", Vec::new(), [ - 22u8, - 246u8, - 23u8, - 170u8, - 76u8, - 154u8, - 63u8, - 7u8, - 13u8, - 138u8, - 226u8, - 165u8, - 178u8, - 249u8, - 45u8, - 181u8, - 237u8, - 145u8, - 150u8, - 47u8, - 219u8, - 108u8, - 243u8, - 192u8, - 245u8, - 82u8, - 34u8, - 85u8, - 86u8, - 234u8, - 64u8, - 181u8, + 22u8, 246u8, 23u8, 170u8, 76u8, 154u8, 63u8, 7u8, + 13u8, 138u8, 226u8, 165u8, 178u8, 249u8, 45u8, + 181u8, 237u8, 145u8, 150u8, 47u8, 219u8, 108u8, + 243u8, 192u8, 245u8, 82u8, 34u8, 85u8, 86u8, 234u8, + 64u8, 181u8, ], ) } @@ -50181,55 +34948,28 @@ pub mod api { ], ) } - pub fn bellatrix_fork_version_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - [::core::primitive::u8; 4usize], - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Eth2Client", - "BellatrixForkVersion", - Vec::new(), - [ - 29u8, - 130u8, - 38u8, - 233u8, - 229u8, - 221u8, - 100u8, - 210u8, - 123u8, - 131u8, - 211u8, - 94u8, - 163u8, - 66u8, - 192u8, - 210u8, - 42u8, - 6u8, - 4u8, - 166u8, - 107u8, - 176u8, - 234u8, - 117u8, - 40u8, - 178u8, - 84u8, - 136u8, - 79u8, - 201u8, - 190u8, - 6u8, - ], - ) - } + pub fn bellatrix_fork_version_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 4usize], + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "BellatrixForkVersion", + Vec::new(), + [ + 29u8, 130u8, 38u8, 233u8, 229u8, 221u8, 100u8, + 210u8, 123u8, 131u8, 211u8, 94u8, 163u8, 66u8, + 192u8, 210u8, 42u8, 6u8, 4u8, 166u8, 107u8, 176u8, + 234u8, 117u8, 40u8, 178u8, 84u8, 136u8, 79u8, + 201u8, 190u8, 6u8, + ], + ) + } pub fn bellatrix_fork_epoch( &self, _0: impl ::std::borrow::Borrow< @@ -50299,38 +35039,11 @@ pub mod api { "BellatrixForkEpoch", Vec::new(), [ - 87u8, - 55u8, - 13u8, - 246u8, - 134u8, - 53u8, - 165u8, - 86u8, - 195u8, - 249u8, - 9u8, - 47u8, - 204u8, - 189u8, - 167u8, - 159u8, - 59u8, - 44u8, - 9u8, - 84u8, - 27u8, - 107u8, - 161u8, - 171u8, - 46u8, - 110u8, - 166u8, - 199u8, - 103u8, - 47u8, - 46u8, - 174u8, + 87u8, 55u8, 13u8, 246u8, 134u8, 53u8, 165u8, 86u8, + 195u8, 249u8, 9u8, 47u8, 204u8, 189u8, 167u8, + 159u8, 59u8, 44u8, 9u8, 84u8, 27u8, 107u8, 161u8, + 171u8, 46u8, 110u8, 166u8, 199u8, 103u8, 47u8, + 46u8, 174u8, ], ) } @@ -50349,38 +35062,11 @@ pub mod api { "Eth2Client", "PalletId", [ - 56u8, - 243u8, - 53u8, - 83u8, - 154u8, - 179u8, - 170u8, - 80u8, - 133u8, - 173u8, - 61u8, - 161u8, - 47u8, - 225u8, - 146u8, - 21u8, - 50u8, - 229u8, - 248u8, - 27u8, - 104u8, - 58u8, - 129u8, - 197u8, - 102u8, - 160u8, - 168u8, - 205u8, - 154u8, - 42u8, - 217u8, - 53u8, + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, + 133u8, 173u8, 61u8, 161u8, 47u8, 225u8, 146u8, + 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, 129u8, + 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, + 217u8, 53u8, ], ) } @@ -50401,12 +35087,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct BoundedBTreeMap<_0, _1>( + pub ::subxt::utils::KeyedVec<_0, _1>, + ); } pub mod bounded_vec { use super::runtime_types; @@ -50418,11 +35110,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); } pub mod weak_bounded_vec { @@ -50435,11 +35131,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); } } @@ -50455,11 +35155,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub runtime_types::sp_core::ecdsa::Public); } pub mod proposal { @@ -50472,24 +35176,38 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DKGPayloadKey { #[codec(index = 0)] EVMProposal(runtime_types::webb_proposals::nonce::Nonce), #[codec(index = 1)] - RefreshProposal(runtime_types::webb_proposals::nonce::Nonce), + RefreshProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), #[codec(index = 2)] - AnchorCreateProposal(runtime_types::webb_proposals::nonce::Nonce), + AnchorCreateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), #[codec(index = 3)] - AnchorUpdateProposal(runtime_types::webb_proposals::nonce::Nonce), + AnchorUpdateProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), #[codec(index = 4)] - TokenAddProposal(runtime_types::webb_proposals::nonce::Nonce), + TokenAddProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), #[codec(index = 5)] - TokenRemoveProposal(runtime_types::webb_proposals::nonce::Nonce), + TokenRemoveProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), #[codec(index = 6)] WrappingFeeUpdateProposal( runtime_types::webb_proposals::nonce::Nonce, @@ -50499,7 +35217,9 @@ pub mod api { runtime_types::webb_proposals::nonce::Nonce, ), #[codec(index = 8)] - RescueTokensProposal(runtime_types::webb_proposals::nonce::Nonce), + RescueTokensProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), #[codec(index = 9)] MaxDepositLimitUpdateProposal( runtime_types::webb_proposals::nonce::Nonce, @@ -50509,7 +35229,9 @@ pub mod api { runtime_types::webb_proposals::nonce::Nonce, ), #[codec(index = 11)] - SetVerifierProposal(runtime_types::webb_proposals::nonce::Nonce), + SetVerifierProposal( + runtime_types::webb_proposals::nonce::Nonce, + ), #[codec(index = 12)] SetTreasuryHandlerProposal( runtime_types::webb_proposals::nonce::Nonce, @@ -50527,11 +35249,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RefreshProposal { pub voter_merkle_root: [::core::primitive::u8; 32usize], pub session_length: ::core::primitive::u64, @@ -50547,11 +35273,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SignedProposalBatch<_0, _1, _2, _3> { pub batch_id: _0, pub proposals: runtime_types::bounded_collections::bounded_vec::BoundedVec< @@ -50573,11 +35303,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct StoredUnsignedProposalBatch<_0, _1, _2, _3> { pub batch_id: _0, pub proposals: runtime_types::bounded_collections::bounded_vec::BoundedVec< @@ -50598,7 +35332,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -50626,18 +35360,16 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AggregatedPublicKeys { - pub keys_and_signatures: ::std::vec::Vec< - ( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - ), - >, + pub keys_and_signatures: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, } #[derive( ::subxt::ext::codec::Decode, @@ -50647,7 +35379,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -50661,7 +35393,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -50675,7 +35407,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -50689,7 +35421,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -50703,7 +35435,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -50722,7 +35454,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -50745,11 +35477,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BeaconBlockHeader { pub slot: ::core::primitive::u64, pub proposer_index: ::core::primitive::u64, @@ -50765,13 +35501,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ExtendedBeaconBlockHeader { - pub header: runtime_types::eth_types::eth2::BeaconBlockHeader, + pub header: + runtime_types::eth_types::eth2::BeaconBlockHeader, pub beacon_block_root: runtime_types::eth_types::H256, pub execution_block_hash: runtime_types::eth_types::H256, } @@ -50783,14 +35524,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct FinalizedHeaderUpdate { - pub header_update: runtime_types::eth_types::eth2::HeaderUpdate, - pub finality_branch: ::std::vec::Vec, + pub header_update: + runtime_types::eth_types::eth2::HeaderUpdate, + pub finality_branch: + ::std::vec::Vec, } #[derive( ::subxt::ext::codec::Decode, @@ -50800,17 +35547,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct HeaderUpdate { - pub beacon_header: runtime_types::eth_types::eth2::BeaconBlockHeader, + pub beacon_header: + runtime_types::eth_types::eth2::BeaconBlockHeader, pub execution_block_hash: runtime_types::eth_types::H256, - pub execution_hash_branch: ::std::vec::Vec< - runtime_types::eth_types::H256, - >, + pub execution_hash_branch: + ::std::vec::Vec, } #[derive( ::subxt::ext::codec::Decode, @@ -50820,16 +35571,23 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct LightClientUpdate { - pub attested_beacon_header: runtime_types::eth_types::eth2::BeaconBlockHeader, - pub sync_aggregate: runtime_types::eth_types::eth2::SyncAggregate, + pub attested_beacon_header: + runtime_types::eth_types::eth2::BeaconBlockHeader, + pub sync_aggregate: + runtime_types::eth_types::eth2::SyncAggregate, pub signature_slot: ::core::primitive::u64, - pub finality_update: runtime_types::eth_types::eth2::FinalizedHeaderUpdate, + pub finality_update: + runtime_types::eth_types::eth2::FinalizedHeaderUpdate, pub sync_committee_update: ::core::option::Option< runtime_types::eth_types::eth2::SyncCommitteeUpdate, >, @@ -50842,11 +35600,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PublicKeyBytes(pub [::core::primitive::u8; 48usize]); #[derive( ::subxt::ext::codec::Decode, @@ -50856,11 +35618,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SignatureBytes(pub [::core::primitive::u8; 96usize]); #[derive( ::subxt::ext::codec::Decode, @@ -50870,14 +35636,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SyncAggregate { - pub sync_committee_bits: runtime_types::eth_types::eth2::SyncCommitteeBits, - pub sync_committee_signature: runtime_types::eth_types::eth2::SignatureBytes, + pub sync_committee_bits: + runtime_types::eth_types::eth2::SyncCommitteeBits, + pub sync_committee_signature: + runtime_types::eth_types::eth2::SignatureBytes, } #[derive( ::subxt::ext::codec::Decode, @@ -50887,14 +35659,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SyncCommittee { - pub pubkeys: runtime_types::eth_types::eth2::SyncCommitteePublicKeys, - pub aggregate_pubkey: runtime_types::eth_types::eth2::PublicKeyBytes, + pub pubkeys: + runtime_types::eth_types::eth2::SyncCommitteePublicKeys, + pub aggregate_pubkey: + runtime_types::eth_types::eth2::PublicKeyBytes, } #[derive( ::subxt::ext::codec::Decode, @@ -50904,12 +35682,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SyncCommitteeBits(pub [::core::primitive::u8; 64usize]); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SyncCommitteeBits( + pub [::core::primitive::u8; 64usize], + ); #[derive( ::subxt::ext::codec::Decode, ::subxt::ext::codec::Encode, @@ -50918,13 +35702,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SyncCommitteePublicKeys( - pub ::std::vec::Vec, + pub ::std::vec::Vec< + runtime_types::eth_types::eth2::PublicKeyBytes, + >, ); #[derive( ::subxt::ext::codec::Decode, @@ -50934,16 +35724,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SyncCommitteeUpdate { - pub next_sync_committee: runtime_types::eth_types::eth2::SyncCommittee, - pub next_sync_committee_branch: ::std::vec::Vec< - runtime_types::eth_types::H256, - >, + pub next_sync_committee: + runtime_types::eth_types::eth2::SyncCommittee, + pub next_sync_committee_branch: + ::std::vec::Vec, } } pub mod pallet { @@ -50956,11 +35750,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ExecutionHeaderInfo<_0> { pub parent_hash: ::subxt::utils::H256, pub block_number: ::core::primitive::u64, @@ -50974,11 +35772,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct InitInput<_0> { pub finalized_execution_header: runtime_types::eth_types::BlockHeader, pub finalized_beacon_header: runtime_types::eth_types::eth2::ExtendedBeaconBlockHeader, @@ -50999,7 +35801,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51021,8 +35823,10 @@ pub mod api { pub mix_hash: runtime_types::eth_types::H256, pub nonce: runtime_types::eth_types::H64, pub base_fee_per_gas: ::core::primitive::u64, - pub hash: ::core::option::Option, - pub partial_hash: ::core::option::Option, + pub hash: + ::core::option::Option, + pub partial_hash: + ::core::option::Option, } #[derive( ::subxt::ext::codec::Decode, @@ -51032,7 +35836,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51046,7 +35850,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51060,7 +35864,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51074,7 +35878,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51088,7 +35892,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51105,7 +35909,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51124,15 +35928,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Block<_0> { pub header: runtime_types::ethereum::header::Header, pub transactions: ::std::vec::Vec<_0>, - pub ommers: ::std::vec::Vec, + pub ommers: ::std::vec::Vec< + runtime_types::ethereum::header::Header, + >, } } pub mod header { @@ -51145,11 +35955,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Header { pub parent_hash: ::subxt::utils::H256, pub ommers_hash: ::subxt::utils::H256, @@ -51178,11 +35992,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Log { pub address: ::subxt::utils::H160, pub topics: ::std::vec::Vec<::subxt::utils::H256>, @@ -51199,16 +36017,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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: ::std::vec::Vec, + pub logs: + ::std::vec::Vec, } #[derive( ::subxt::ext::codec::Decode, @@ -51218,18 +36041,26 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ReceiptV3 { #[codec(index = 0)] Legacy(runtime_types::ethereum::receipt::EIP658ReceiptData), #[codec(index = 1)] - EIP2930(runtime_types::ethereum::receipt::EIP658ReceiptData), + EIP2930( + runtime_types::ethereum::receipt::EIP658ReceiptData, + ), #[codec(index = 2)] - EIP1559(runtime_types::ethereum::receipt::EIP658ReceiptData), + EIP1559( + runtime_types::ethereum::receipt::EIP658ReceiptData, + ), } } pub mod transaction { @@ -51242,11 +36073,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AccessListItem { pub address: ::subxt::utils::H160, pub storage_keys: ::std::vec::Vec<::subxt::utils::H256>, @@ -51259,18 +36094,24 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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_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 action: + runtime_types::ethereum::transaction::TransactionAction, pub value: runtime_types::primitive_types::U256, pub input: ::std::vec::Vec<::core::primitive::u8>, pub access_list: ::std::vec::Vec< @@ -51288,17 +36129,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: 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 action: + runtime_types::ethereum::transaction::TransactionAction, pub value: runtime_types::primitive_types::U256, pub input: ::std::vec::Vec<::core::primitive::u8>, pub access_list: ::std::vec::Vec< @@ -51316,11 +36162,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct LegacyTransaction { pub nonce: runtime_types::primitive_types::U256, pub gas_price: runtime_types::primitive_types::U256, @@ -51338,11 +36188,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum TransactionAction { #[codec(index = 0)] Call(::subxt::utils::H160), @@ -51358,11 +36212,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct TransactionRecoveryId(pub ::core::primitive::u64); #[derive( ::subxt::ext::codec::Decode, @@ -51372,11 +36230,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct TransactionSignature { pub v: runtime_types::ethereum::transaction::TransactionRecoveryId, pub r: ::subxt::utils::H256, @@ -51390,11 +36252,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum TransactionV2 { #[codec(index = 0)] Legacy(runtime_types::ethereum::transaction::LegacyTransaction), @@ -51417,11 +36283,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct H64(pub [::core::primitive::u8; 8usize]); } } @@ -51437,11 +36307,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ExitError { #[codec(index = 0)] StackUnderflow, @@ -51484,11 +36358,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ExitFatal { #[codec(index = 0)] NotSupported, @@ -51507,11 +36385,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ExitReason { #[codec(index = 0)] Succeed(runtime_types::evm_core::error::ExitSucceed), @@ -51530,11 +36412,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ExitRevert { #[codec(index = 0)] Reverted, @@ -51547,11 +36433,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ExitSucceed { #[codec(index = 0)] Stopped, @@ -51572,11 +36462,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Opcode(pub ::core::primitive::u8); } } @@ -51590,7 +36484,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51609,7 +36503,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51626,7 +36520,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51646,7 +36540,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51656,7 +36550,8 @@ pub mod api { pub transaction_index: ::core::primitive::u32, pub from: ::subxt::utils::H160, pub to: ::core::option::Option<::subxt::utils::H160>, - pub contract_address: ::core::option::Option<::subxt::utils::H160>, + pub contract_address: + ::core::option::Option<::subxt::utils::H160>, pub logs: ::std::vec::Vec, pub logs_bloom: runtime_types::ethbloom::Bloom, } @@ -51673,11 +36568,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub runtime_types::sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic< _0, @@ -51700,11 +36599,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DispatchClass { #[codec(index = 0)] Normal, @@ -51721,14 +36624,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct DispatchInfo { pub weight: runtime_types::sp_weights::weight_v2::Weight, - pub class: runtime_types::frame_support::dispatch::DispatchClass, + pub class: + runtime_types::frame_support::dispatch::DispatchClass, pub pays_fee: runtime_types::frame_support::dispatch::Pays, } #[derive( @@ -51739,11 +36647,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Pays { #[codec(index = 0)] Yes, @@ -51758,11 +36670,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PerDispatchClass<_0> { pub normal: _0, pub operational: _0, @@ -51776,11 +36692,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum RawOrigin<_0> { #[codec(index = 0)] Root, @@ -51802,14 +36722,17 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WrapperOpaque<_0>( - #[codec(compact)] - pub ::core::primitive::u32, + #[codec(compact)] pub ::core::primitive::u32, pub _0, ); } @@ -51823,11 +36746,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Bounded<_0> { #[codec(index = 0)] Legacy { hash: ::subxt::utils::H256 }, @@ -51857,11 +36784,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum BalanceStatus { #[codec(index = 0)] Free, @@ -51879,7 +36810,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -51900,11 +36831,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckGenesis; } pub mod check_mortality { @@ -51917,11 +36852,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckMortality( pub runtime_types::sp_runtime::generic::era::Era, ); @@ -51936,11 +36875,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckNonZeroSender; } pub mod check_nonce { @@ -51953,12 +36896,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct CheckNonce( + #[codec(compact)] pub ::core::primitive::u32, + ); } pub mod check_spec_version { use super::runtime_types; @@ -51970,11 +36919,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckSpecVersion; } pub mod check_tx_version { @@ -51987,11 +36940,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckTxVersion; } pub mod check_weight { @@ -52004,11 +36961,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct CheckWeight; } } @@ -52022,11 +36983,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BlockLength { pub max: runtime_types::frame_support::dispatch::PerDispatchClass< ::core::primitive::u32, @@ -52040,11 +37005,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BlockWeights { pub base_block: runtime_types::sp_weights::weight_v2::Weight, pub max_block: runtime_types::sp_weights::weight_v2::Weight, @@ -52060,13 +37029,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct WeightsPerClass { - pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, + pub base_extrinsic: + runtime_types::sp_weights::weight_v2::Weight, pub max_extrinsic: ::core::option::Option< runtime_types::sp_weights::weight_v2::Weight, >, @@ -52088,24 +37062,32 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] ///Make some on-chain remark. /// ///- `O(1)` - remark { remark: ::std::vec::Vec<::core::primitive::u8> }, + remark { + remark: ::std::vec::Vec<::core::primitive::u8>, + }, #[codec(index = 1)] ///Set the number of pages in the WebAssembly environment's heap. set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] ///Set the new runtime code. - set_code { code: ::std::vec::Vec<::core::primitive::u8> }, + set_code { + code: ::std::vec::Vec<::core::primitive::u8>, + }, #[codec(index = 3)] ///Set the new runtime code without doing any checks of the given `code`. set_code_without_checks { @@ -52114,17 +37096,17 @@ pub mod api { #[codec(index = 4)] ///Set some items of storage. set_storage { - items: ::std::vec::Vec< - ( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - ), - >, + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, }, #[codec(index = 5)] ///Kill some items from storage. kill_storage { - keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + keys: ::std::vec::Vec< + ::std::vec::Vec<::core::primitive::u8>, + >, }, #[codec(index = 6)] ///Kill all storage items with a key that starts with the given prefix. @@ -52137,7 +37119,9 @@ pub mod api { }, #[codec(index = 7)] ///Make some on-chain remark and emit event. - remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8> }, + remark_with_event { + remark: ::std::vec::Vec<::core::primitive::u8>, + }, } #[derive( ::subxt::ext::codec::Decode, @@ -52147,11 +37131,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Error for the System pallet pub enum Error { #[codec(index = 0)] @@ -52185,11 +37173,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Event for the System pallet. pub enum Event { #[codec(index = 0)] @@ -52228,7 +37220,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -52248,7 +37240,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -52266,7 +37258,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -52284,7 +37276,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -52310,14 +37302,20 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Bag { - pub head: ::core::option::Option<::subxt::utils::AccountId32>, - pub tail: ::core::option::Option<::subxt::utils::AccountId32>, + pub head: + ::core::option::Option<::subxt::utils::AccountId32>, + pub tail: + ::core::option::Option<::subxt::utils::AccountId32>, } #[derive( ::subxt::ext::codec::Decode, @@ -52327,11 +37325,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ListError { #[codec(index = 0)] Duplicate, @@ -52350,15 +37352,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Node { pub id: ::subxt::utils::AccountId32, - pub prev: ::core::option::Option<::subxt::utils::AccountId32>, - pub next: ::core::option::Option<::subxt::utils::AccountId32>, + pub prev: + ::core::option::Option<::subxt::utils::AccountId32>, + pub next: + ::core::option::Option<::subxt::utils::AccountId32>, pub bag_upper: ::core::primitive::u64, pub score: ::core::primitive::u64, } @@ -52373,11 +37381,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -52421,15 +37433,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///A error in the list interface implementation. @@ -52443,15 +37459,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///Moved an account from one bag to another. @@ -52481,11 +37501,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -52630,15 +37654,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Vesting balance too high to send value. @@ -52679,15 +37707,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///An account was created with some free balance. @@ -52823,16 +37855,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct AccountData<_0> { pub free: _0, pub reserved: _0, pub frozen: _0, - pub flags: runtime_types::pallet_balances::types::ExtraFlags, + pub flags: + runtime_types::pallet_balances::types::ExtraFlags, } #[derive( ::subxt::ext::codec::Decode, @@ -52842,11 +37879,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BalanceLock<_0> { pub id: [::core::primitive::u8; 8usize], pub amount: _0, @@ -52861,11 +37902,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ExtraFlags(pub ::core::primitive::u128); #[derive( ::subxt::ext::codec::Decode, @@ -52875,11 +37920,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct IdAmount<_0, _1> { pub id: _0, pub amount: _1, @@ -52892,11 +37941,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Reasons { #[codec(index = 0)] Fee, @@ -52913,11 +37966,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ReserveData<_0, _1> { pub id: _0, pub amount: _1, @@ -52936,18 +37993,25 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] - set_base_fee_per_gas { fee: runtime_types::primitive_types::U256 }, + set_base_fee_per_gas { + fee: runtime_types::primitive_types::U256, + }, #[codec(index = 1)] set_elasticity { - elasticity: runtime_types::sp_arithmetic::per_things::Permill, + elasticity: + runtime_types::sp_arithmetic::per_things::Permill, }, } #[derive( @@ -52958,23 +38022,30 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] - NewBaseFeePerGas { fee: runtime_types::primitive_types::U256 }, + NewBaseFeePerGas { + fee: runtime_types::primitive_types::U256, + }, #[codec(index = 1)] BaseFeeOverflow, #[codec(index = 2)] NewElasticity { - elasticity: runtime_types::sp_arithmetic::per_things::Permill, + elasticity: + runtime_types::sp_arithmetic::per_things::Permill, }, } } @@ -52991,11 +38062,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -53107,7 +38182,10 @@ pub mod api { /// ///## Complexity ///- O(1). - claim_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32 }, + claim_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, #[codec(index = 7)] ///Cancel a proposed or active bounty. All the funds will be sent to treasury and ///the curator deposit will be unreserved if possible. @@ -53118,7 +38196,10 @@ pub mod api { /// ///## Complexity ///- O(1). - close_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32 }, + close_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, #[codec(index = 8)] ///Extend the expiry time of an active bounty. /// @@ -53143,15 +38224,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Proposer's balance is too low. @@ -53196,15 +38281,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///New bounty proposal. @@ -53247,7 +38336,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -53258,7 +38347,8 @@ pub mod api { pub fee: _1, pub curator_deposit: _1, pub bond: _1, - pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, + pub status: + runtime_types::pallet_bounties::BountyStatus<_0, _2>, } #[derive( ::subxt::ext::codec::Decode, @@ -53268,7 +38358,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -53285,7 +38375,11 @@ pub mod api { #[codec(index = 4)] Active { curator: _0, update_due: _1 }, #[codec(index = 5)] - PendingPayout { curator: _0, beneficiary: _0, unlock_at: _1 }, + PendingPayout { + curator: _0, + beneficiary: _0, + unlock_at: _1, + }, } } pub mod pallet_bridge_registry { @@ -53300,11 +38394,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -53338,15 +38436,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Parameters haven't been initialized @@ -53381,15 +38483,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event {} } pub mod types { @@ -53402,11 +38508,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BridgeInfo { pub additional: runtime_types::bounded_collections::bounded_vec::BoundedVec< ( @@ -53424,11 +38534,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BridgeMetadata { pub resource_ids: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::webb_proposals::header::ResourceId, @@ -53443,12 +38557,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SerdeData(pub runtime_types::pallet_identity::types::Data); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct SerdeData( + pub runtime_types::pallet_identity::types::Data, + ); } } pub mod pallet_child_bounties { @@ -53463,11 +38583,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -53681,15 +38805,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///The parent bounty is not in active state. @@ -53709,15 +38837,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A child-bounty is added. @@ -53756,7 +38888,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -53766,10 +38898,11 @@ pub mod api { pub value: _1, pub fee: _1, pub curator_deposit: _1, - pub status: runtime_types::pallet_child_bounties::ChildBountyStatus< - _0, - _2, - >, + pub status: + runtime_types::pallet_child_bounties::ChildBountyStatus< + _0, + _2, + >, } #[derive( ::subxt::ext::codec::Decode, @@ -53779,7 +38912,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -53792,7 +38925,11 @@ pub mod api { #[codec(index = 2)] Active { curator: _0 }, #[codec(index = 3)] - PendingPayout { curator: _0, beneficiary: _0, unlock_at: _1 }, + PendingPayout { + curator: _0, + beneficiary: _0, + unlock_at: _1, + }, } } pub mod pallet_collective { @@ -53807,11 +38944,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -53955,15 +39096,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Account is not a member @@ -54004,15 +39149,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A motion (given hash) has been proposed (by given account) with a threshold (given @@ -54074,7 +39223,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -54095,7 +39244,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -54120,11 +39269,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Conviction { #[codec(index = 0)] None, @@ -54152,11 +39305,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -54477,15 +39634,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Value too low @@ -54569,15 +39730,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A motion has been proposed by a public account. @@ -54677,11 +39842,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Delegations<_0> { pub votes: _0, pub capital: _0, @@ -54694,11 +39863,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum MetadataOwner { #[codec(index = 0)] External, @@ -54715,11 +39888,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ReferendumInfo<_0, _1, _2> { #[codec(index = 0)] Ongoing( @@ -54740,11 +39917,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ReferendumStatus<_0, _1, _2> { pub end: _0, pub proposal: _1, @@ -54760,11 +39941,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Tally<_0> { pub ayes: _0, pub nays: _0, @@ -54781,11 +39966,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum AccountVote<_0> { #[codec(index = 0)] Standard { @@ -54803,11 +39992,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive( ::subxt::ext::codec::CompactAs, @@ -54818,11 +40011,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Vote(pub ::core::primitive::u8); #[derive( ::subxt::ext::codec::Decode, @@ -54832,11 +40029,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Voting<_0, _1, _2> { #[codec(index = 0)] Direct { @@ -54870,11 +40071,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum VoteThreshold { #[codec(index = 0)] SuperMajorityApprove, @@ -54897,11 +40102,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -55033,15 +40242,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///No mapped account to authority @@ -55118,15 +40331,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///Current public key submitted @@ -55234,11 +40451,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RoundMetadata<_0, _1> { pub curr_round_pub_key: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, @@ -55268,11 +40489,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -55306,15 +40531,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Error names should be descriptive. @@ -55370,15 +40599,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///RuntimeEvent Emitted when we encounter a Proposal with invalid Signature. @@ -55431,13 +40664,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SignedProposalEventData { - pub kind: runtime_types::webb_proposals::proposal::ProposalKind, + pub kind: + runtime_types::webb_proposals::proposal::ProposalKind, pub data: ::std::vec::Vec<::core::primitive::u8>, } } @@ -55454,11 +40692,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -55553,15 +40795,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Account does not have correct permissions @@ -55629,15 +40875,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///Vote threshold has changed (new_threshold) @@ -55708,11 +40958,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ProposalStatus { #[codec(index = 0)] Initiated, @@ -55729,11 +40983,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ProposalVotes<_0, _1, _2> { pub votes_for: runtime_types::bounded_collections::bounded_vec::BoundedVec< _0, @@ -55760,11 +41018,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -55786,11 +41048,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -55820,7 +41086,8 @@ pub mod api { /// claim { dest: ::subxt::utils::AccountId32, - ethereum_signature: runtime_types::pallet_ecdsa_claims::EcdsaSignature, + ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, }, #[codec(index = 1)] ///Mint a new claim to collect WEBBs. @@ -55839,15 +41106,14 @@ pub mod api { ///Total Complexity: O(1) /// mint_claim { - who: runtime_types::pallet_ecdsa_claims::EthereumAddress, + who: + runtime_types::pallet_ecdsa_claims::EthereumAddress, value: ::core::primitive::u128, - vesting_schedule: ::core::option::Option< - ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ), - >, + vesting_schedule: ::core::option::Option<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u32, + )>, statement: ::core::option::Option< runtime_types::pallet_ecdsa_claims::StatementKind, >, @@ -55882,7 +41148,8 @@ pub mod api { /// claim_attest { dest: ::subxt::utils::AccountId32, - ethereum_signature: runtime_types::pallet_ecdsa_claims::EcdsaSignature, + ethereum_signature: + runtime_types::pallet_ecdsa_claims::EcdsaSignature, statement: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] @@ -55905,14 +41172,17 @@ pub mod api { /// ///Total Complexity: O(1) /// - attest { statement: ::std::vec::Vec<::core::primitive::u8> }, + attest { + statement: ::std::vec::Vec<::core::primitive::u8>, + }, #[codec(index = 4)] move_claim { - old: runtime_types::pallet_ecdsa_claims::EthereumAddress, - new: runtime_types::pallet_ecdsa_claims::EthereumAddress, - maybe_preclaim: ::core::option::Option< - ::subxt::utils::AccountId32, - >, + old: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + new: + runtime_types::pallet_ecdsa_claims::EthereumAddress, + maybe_preclaim: + ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 5)] ///Set the value for expiryconfig @@ -55930,15 +41200,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Invalid Ethereum signature. @@ -55968,21 +41242,26 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///Someone claimed some WEBBs. Claimed { who: ::subxt::utils::AccountId32, - ethereum_address: runtime_types::pallet_ecdsa_claims::EthereumAddress, + ethereum_address: + runtime_types::pallet_ecdsa_claims::EthereumAddress, amount: ::core::primitive::u128, }, } @@ -55995,7 +41274,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56009,7 +41288,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56023,7 +41302,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56047,11 +41326,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -56142,11 +41425,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Error of the pallet that can be returned in response to dispatches. pub enum Error { #[codec(index = 0)] @@ -56200,15 +41487,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A solution was stored with the given compute. @@ -56269,11 +41560,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SignedSubmission<_0, _1, _2> { pub who: _0, pub deposit: _1, @@ -56291,7 +41586,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56316,7 +41611,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56339,7 +41634,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56357,7 +41652,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56382,7 +41677,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56399,7 +41694,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56423,11 +41718,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -56554,15 +41853,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Cannot vote when no candidates or members exist. @@ -56624,15 +41927,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A new term with new_members. This indicates that enough candidates existed to run @@ -56641,9 +41948,10 @@ pub mod api { ///slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to ///begin with. NewTerm { - new_members: ::std::vec::Vec< - (::subxt::utils::AccountId32, ::core::primitive::u128), - >, + new_members: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, }, #[codec(index = 1)] ///No (or not enough) candidates existed for this round. This is different from @@ -56658,7 +41966,9 @@ pub mod api { MemberKicked { member: ::subxt::utils::AccountId32 }, #[codec(index = 4)] ///Someone has renounced their candidacy. - Renounced { candidate: ::subxt::utils::AccountId32 }, + Renounced { + candidate: ::subxt::utils::AccountId32, + }, #[codec(index = 5)] ///A candidate was slashed by amount due to failing to obtain a seat as member or ///runner-up. @@ -56684,7 +41994,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56705,7 +42015,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56723,7 +42033,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -56746,16 +42056,21 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] init { - typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, args: ::std::boxed::Box< runtime_types::eth_types::pallet::InitInput< ::subxt::utils::AccountId32, @@ -56764,20 +42079,25 @@ pub mod api { }, #[codec(index = 1)] register_submitter { - typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, }, #[codec(index = 2)] unregister_submitter { - typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, }, #[codec(index = 3)] submit_beacon_chain_light_client_update { - typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, - light_client_update: runtime_types::eth_types::eth2::LightClientUpdate, + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, + light_client_update: + runtime_types::eth_types::eth2::LightClientUpdate, }, #[codec(index = 4)] submit_execution_header { - typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + typed_chain_id: + runtime_types::webb_proposals::header::TypedChainId, block_header: runtime_types::eth_types::BlockHeader, }, #[codec(index = 5)] @@ -56793,15 +42113,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///The light client is already initialized for the typed chain ID @@ -56889,15 +42213,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] Init { @@ -56946,17 +42274,22 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] ///Transact an Ethereum transaction. transact { - transaction: runtime_types::ethereum::transaction::TransactionV2, + transaction: + runtime_types::ethereum::transaction::TransactionV2, }, } #[derive( @@ -56967,15 +42300,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Signature is invalid. @@ -56992,15 +42329,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///An ethereum transaction was successfully executed. @@ -57021,7 +42362,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -57043,11 +42384,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -57071,9 +42416,10 @@ pub mod api { nonce: ::core::option::Option< runtime_types::primitive_types::U256, >, - access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), - >, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, }, #[codec(index = 2)] ///Issue an EVM create operation. This is similar to a contract creation transaction in @@ -57090,9 +42436,10 @@ pub mod api { nonce: ::core::option::Option< runtime_types::primitive_types::U256, >, - access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), - >, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, }, #[codec(index = 3)] ///Issue an EVM create2 operation. @@ -57109,9 +42456,10 @@ pub mod api { nonce: ::core::option::Option< runtime_types::primitive_types::U256, >, - access_list: ::std::vec::Vec< - (::subxt::utils::H160, ::std::vec::Vec<::subxt::utils::H256>), - >, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, }, } #[derive( @@ -57122,15 +42470,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Not enough balance to perform action @@ -57174,19 +42526,25 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///Ethereum events from contracts. - Log { log: runtime_types::ethereum::log::Log }, + Log { + log: runtime_types::ethereum::log::Log, + }, #[codec(index = 1)] ///A contract has been created at given address. Created { address: ::subxt::utils::H160 }, @@ -57209,7 +42567,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -57231,11 +42589,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -57297,15 +42659,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Attempt to signal GRANDPA pause when the authority set isn't live @@ -57339,25 +42705,27 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///New authority set has been applied. NewAuthorities { - authority_set: ::std::vec::Vec< - ( - runtime_types::sp_consensus_grandpa::app::Public, - ::core::primitive::u64, - ), - >, + authority_set: ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>, }, #[codec(index = 1)] ///Current authority set has been paused. @@ -57375,7 +42743,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -57399,7 +42767,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -57427,11 +42795,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -57451,15 +42823,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Maximum address count exceeded @@ -57479,11 +42855,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Identity pallet declaration. pub enum Call { #[codec(index = 0)] @@ -57782,15 +43162,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Too many subs-accounts. @@ -57855,15 +43239,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A name was set or reset (which will remove all judgements). @@ -57900,7 +43288,9 @@ pub mod api { }, #[codec(index = 6)] ///A registrar was added. - RegistrarAdded { registrar_index: ::core::primitive::u32 }, + RegistrarAdded { + registrar_index: ::core::primitive::u32, + }, #[codec(index = 7)] ///A sub-identity was added to an identity and the deposit paid. SubIdentityAdded { @@ -57936,15 +43326,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct BitFlags<_0>( pub ::core::primitive::u64, - #[codec(skip)] - pub ::core::marker::PhantomData<_0>, + #[codec(skip)] pub ::core::marker::PhantomData<_0>, ); #[derive( ::subxt::ext::codec::Decode, @@ -57954,11 +43347,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Data { #[codec(index = 0)] None, @@ -58045,11 +43442,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum IdentityField { #[codec(index = 1)] Display, @@ -58076,11 +43477,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct IdentityInfo { pub additional: runtime_types::bounded_collections::bounded_vec::BoundedVec< ( @@ -58107,11 +43512,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Judgement<_0> { #[codec(index = 0)] Unknown, @@ -58136,11 +43545,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct RegistrarInfo<_0, _1> { pub account: _1, pub fee: _0, @@ -58156,11 +43569,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Registration<_0> { pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec< ( @@ -58185,11 +43602,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -58213,15 +43634,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Non existent public key. @@ -58238,15 +43663,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A new heartbeat was received from `AuthorityId`. @@ -58283,12 +43712,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public( + pub runtime_types::sp_core::sr25519::Public, + ); #[derive( ::subxt::ext::codec::Decode, ::subxt::ext::codec::Encode, @@ -58297,12 +43732,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature( + pub runtime_types::sp_core::sr25519::Signature, + ); } } #[derive( @@ -58313,7 +43754,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -58336,14 +43777,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat<_0> { pub block_number: _0, - pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, + pub network_state: + runtime_types::sp_core::offchain::OpaqueNetworkState, pub session_index: _0, pub authority_index: _0, pub validators_len: _0, @@ -58361,11 +43803,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -58461,15 +43907,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///The index was not already assigned. @@ -58495,15 +43945,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A account index was assigned. @@ -58535,11 +43989,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -58907,11 +44365,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DefensiveError { #[codec(index = 0)] NotEnoughSpaceInUnbondPool, @@ -58932,15 +44394,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///A (bonded) pool id does not exist. @@ -59051,11 +44517,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Events of this pallet. pub enum Event { #[codec(index = 0)] @@ -59190,7 +44660,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59209,13 +44679,14 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondedPoolInner { - pub commission: runtime_types::pallet_nomination_pools::Commission, + 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< @@ -59231,7 +44702,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59254,7 +44725,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59284,13 +44755,14 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommissionChangeRate<_0> { - pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, + pub max_increase: + runtime_types::sp_arithmetic::per_things::Perbill, pub min_delay: _0, } #[derive( @@ -59301,7 +44773,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59322,7 +44794,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59344,7 +44816,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59363,7 +44835,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59384,13 +44856,14 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RewardPool { - pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub last_recorded_reward_counter: + runtime_types::sp_arithmetic::fixed_point::FixedU128, pub last_recorded_total_payouts: ::core::primitive::u128, pub total_rewards_claimed: ::core::primitive::u128, pub total_commission_pending: ::core::primitive::u128, @@ -59404,7 +44877,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59424,7 +44897,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59446,11 +44919,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Events type. pub enum Event { #[codec(index = 0)] @@ -59476,11 +44953,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -59488,7 +44969,9 @@ pub mod api { /// ///If the preimage was previously requested, no fees or deposits are taken for providing ///the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. - note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8> }, + note_preimage { + bytes: ::std::vec::Vec<::core::primitive::u8>, + }, #[codec(index = 1)] ///Clear an unrequested preimage from the runtime storage. /// @@ -59517,15 +45000,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Preimage is too large to store on-chain. @@ -59554,15 +45041,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A preimage has been noted. @@ -59583,14 +45074,17 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RequestStatus<_0, _1> { #[codec(index = 0)] - Unrequested { deposit: (_0, _1), len: ::core::primitive::u32 }, + Unrequested { + deposit: (_0, _1), + len: ::core::primitive::u32, + }, #[codec(index = 1)] Requested { deposit: ::core::option::Option<(_0, _1)>, @@ -59611,11 +45105,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -59686,15 +45184,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Failed to schedule a call @@ -59720,11 +45222,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Events type. pub enum Event { #[codec(index = 0)] @@ -59743,7 +45249,9 @@ pub mod api { ///Dispatched some task. Dispatched { task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, result: ::core::result::Result< (), runtime_types::sp_runtime::DispatchError, @@ -59753,19 +45261,25 @@ pub mod api { ///The call for the provided hash was not found so the task has been aborted. CallUnavailable { task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, }, #[codec(index = 4)] ///The given task was unable to be renewed since the agenda is full at that block. PeriodicFailed { task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, }, #[codec(index = 5)] ///The given task can never be executed since it is overweight. PermanentlyOverweight { task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + id: ::core::option::Option< + [::core::primitive::u8; 32usize], + >, }, } } @@ -59777,7 +45291,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -59804,11 +45318,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -59848,11 +45366,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Error for the session pallet. pub enum Error { #[codec(index = 0)] @@ -59879,20 +45401,26 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///New session has happened. Note that the argument is the session index, not the ///block number as the type might suggest. - NewSession { session_index: ::core::primitive::u32 }, + NewSession { + session_index: ::core::primitive::u32, + }, } } } @@ -59910,11 +45438,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -60323,11 +45855,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ConfigOp<_0> { #[codec(index = 0)] Noop, @@ -60344,15 +45880,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Not a controller account. @@ -60442,15 +45982,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///The era payout has been set; the first balance is the validator-payout; the second is @@ -60551,11 +46095,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SlashingSpans { pub span_index: ::core::primitive::u32, pub last_start: ::core::primitive::u32, @@ -60570,11 +46118,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SpanRecord<_0> { pub slashed: _0, pub paid_out: _0, @@ -60588,7 +46140,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60605,14 +46157,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraRewardPoints<_0> { pub total: ::core::primitive::u32, - pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, + pub individual: + ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, } #[derive( ::subxt::ext::codec::Decode, @@ -60622,7 +46175,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60644,7 +46197,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60667,7 +46220,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60685,15 +46238,16 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { - pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, + pub targets: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, } @@ -60705,7 +46259,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60730,7 +46284,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60741,12 +46295,16 @@ pub mod api { pub total: ::core::primitive::u128, #[codec(compact)] pub active: ::core::primitive::u128, - pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, - >, - pub claimed_rewards: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, + pub unlocking: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk< + ::core::primitive::u128, + >, + >, + pub claimed_rewards: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, } #[derive( ::subxt::ext::codec::Decode, @@ -60756,7 +46314,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60776,7 +46334,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -60795,14 +46353,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorPrefs { #[codec(compact)] - pub commission: runtime_types::sp_arithmetic::per_things::Perbill, + pub commission: + runtime_types::sp_arithmetic::per_things::Perbill, pub blocked: ::core::primitive::bool, } } @@ -60818,11 +46377,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -60892,11 +46455,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Error for the Sudo pallet pub enum Error { #[codec(index = 0)] @@ -60911,15 +46478,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A sudo just took place. \[result\] @@ -60932,7 +46503,8 @@ pub mod api { #[codec(index = 1)] ///The \[sudoer\] just switched identity; the old key is supplied if one existed. KeyChanged { - old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + old_sudoer: + ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 2)] ///A sudo just took place. \[result\] @@ -60957,11 +46529,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -60980,7 +46556,10 @@ pub mod api { ///- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in /// `on_finalize`) ///- 1 event handler `on_timestamp_set`. Must be `O(1)`. - set { #[codec(compact)] now: ::core::primitive::u64 }, + set { + #[codec(compact)] + now: ::core::primitive::u64, + }, } } } @@ -60996,11 +46575,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -61022,15 +46605,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///can not pause @@ -61047,27 +46634,35 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///Paused transaction TransactionPaused { - pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, - function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + pallet_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, + function_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] ///Unpaused transaction TransactionUnpaused { - pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, - function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + pallet_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, + function_name_bytes: + ::std::vec::Vec<::core::primitive::u8>, }, } } @@ -61084,15 +46679,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, @@ -61112,14 +46711,13 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChargeTransactionPayment( - #[codec(compact)] - pub ::core::primitive::u128, + #[codec(compact)] pub ::core::primitive::u128, ); #[derive( ::subxt::ext::codec::Decode, @@ -61129,7 +46727,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -61153,11 +46751,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -61242,11 +46844,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Error for the treasury pallet. pub enum Error { #[codec(index = 0)] @@ -61274,22 +46880,30 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///New proposal. - Proposed { proposal_index: ::core::primitive::u32 }, + Proposed { + proposal_index: ::core::primitive::u32, + }, #[codec(index = 1)] ///We have ended a spend period and will now allocate funds. - Spending { budget_remaining: ::core::primitive::u128 }, + Spending { + budget_remaining: ::core::primitive::u128, + }, #[codec(index = 2)] ///Some funds have been allocated. Awarded { @@ -61305,10 +46919,14 @@ pub mod api { }, #[codec(index = 4)] ///Some of our funds have been burnt. - Burnt { burnt_funds: ::core::primitive::u128 }, + Burnt { + burnt_funds: ::core::primitive::u128, + }, #[codec(index = 5)] ///Spending has finished; this is the amount that rolls over until next spend. - Rollover { rollover_balance: ::core::primitive::u128 }, + Rollover { + rollover_balance: ::core::primitive::u128, + }, #[codec(index = 6)] ///Some funds have been deposited. Deposit { value: ::core::primitive::u128 }, @@ -61335,7 +46953,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -61359,11 +46977,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -61485,15 +47107,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) - of this pallet. - */ + Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) + of this pallet. + */ pub enum Error { #[codec(index = 0)] ///Too many calls batched. @@ -61507,15 +47133,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///Batch of dispatches did not complete fully. Index of first failing dispatch given, as @@ -61535,7 +47165,9 @@ pub mod api { ItemCompleted, #[codec(index = 4)] ///A single item within a Batch of dispatches has completed with error. - ItemFailed { error: runtime_types::sp_runtime::DispatchError }, + ItemFailed { + error: runtime_types::sp_runtime::DispatchError, + }, #[codec(index = 5)] ///A call was dispatched. DispatchedAs { @@ -61559,11 +47191,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Contains one variant per dispatchable that can be called by an extrinsic. pub enum Call { #[codec(index = 0)] @@ -61683,11 +47319,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] ///Error for the vesting pallet. pub enum Error { #[codec(index = 0)] @@ -61715,15 +47355,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] /** - The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted - by this pallet. - */ + The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted + by this pallet. + */ pub enum Event { #[codec(index = 0)] ///The amount vested has been updated. This could indicate a change in funds available. @@ -61734,7 +47378,9 @@ pub mod api { }, #[codec(index = 1)] ///An \[account\] has become fully vested. - VestingCompleted { account: ::subxt::utils::AccountId32 }, + VestingCompleted { + account: ::subxt::utils::AccountId32, + }, } } pub mod vesting_info { @@ -61747,11 +47393,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct VestingInfo<_0, _1> { pub locked: _0, pub per_block: _0, @@ -61766,7 +47416,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -61788,7 +47438,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -61808,11 +47458,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { @@ -61826,11 +47480,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct PerU16(pub ::core::primitive::u16); #[derive( ::subxt::ext::codec::CompactAs, @@ -61841,11 +47499,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Perbill(pub ::core::primitive::u32); #[derive( ::subxt::ext::codec::CompactAs, @@ -61856,11 +47518,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Percent(pub ::core::primitive::u8); #[derive( ::subxt::ext::codec::CompactAs, @@ -61871,11 +47537,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Permill(pub ::core::primitive::u32); } #[derive( @@ -61886,7 +47556,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -61914,12 +47584,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Public( + pub runtime_types::sp_core::sr25519::Public, + ); } } } @@ -61935,11 +47611,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub runtime_types::sp_core::ed25519::Public); #[derive( ::subxt::ext::codec::Decode, @@ -61949,12 +47629,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct Signature( + pub runtime_types::sp_core::ed25519::Signature, + ); } #[derive( ::subxt::ext::codec::Decode, @@ -61964,7 +47650,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -61995,17 +47681,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { pub set_id: ::core::primitive::u64, - pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation< - _0, - _1, - >, + pub equivocation: + runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, } } pub mod sp_consensus_slots { @@ -62019,7 +47703,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62038,11 +47722,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod ecdsa { @@ -62055,11 +47743,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub [::core::primitive::u8; 33usize]); #[derive( ::subxt::ext::codec::Decode, @@ -62069,11 +47761,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature(pub [::core::primitive::u8; 65usize]); } pub mod ed25519 { @@ -62086,11 +47782,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( ::subxt::ext::codec::Decode, @@ -62100,11 +47800,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature(pub [::core::primitive::u8; 64usize]); } pub mod offchain { @@ -62117,12 +47821,18 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueMultiaddr(pub ::std::vec::Vec<::core::primitive::u8>); + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] + pub struct OpaqueMultiaddr( + pub ::std::vec::Vec<::core::primitive::u8>, + ); #[derive( ::subxt::ext::codec::Decode, ::subxt::ext::codec::Encode, @@ -62131,11 +47841,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct OpaqueNetworkState { pub peer_id: runtime_types::sp_core::OpaquePeerId, pub external_addresses: ::std::vec::Vec< @@ -62153,11 +47867,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( ::subxt::ext::codec::Decode, @@ -62167,11 +47885,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( @@ -62182,7 +47904,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62196,7 +47918,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62213,7 +47935,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62231,7 +47953,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62255,11 +47977,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Digest { pub logs: ::std::vec::Vec< runtime_types::sp_runtime::generic::digest::DigestItem, @@ -62273,11 +47999,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum DigestItem { #[codec(index = 6)] PreRuntime( @@ -62310,11 +48040,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Era { #[codec(index = 0)] Immortal, @@ -62840,15 +48574,19 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub ::std::vec::Vec<::core::primitive::u8>, #[codec(skip)] - pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, + pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, ); } } @@ -62860,7 +48598,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62903,7 +48641,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62920,7 +48658,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62941,7 +48679,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -62976,7 +48714,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63000,11 +48738,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct OffenceDetails<_0, _1> { pub offender: _1, pub reporters: ::std::vec::Vec<_0>, @@ -63021,7 +48763,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63032,9 +48774,10 @@ pub mod api { pub authoring_version: ::core::primitive::u32, pub spec_version: ::core::primitive::u32, pub impl_version: ::core::primitive::u32, - pub apis: ::std::vec::Vec< - ([::core::primitive::u8; 8usize], ::core::primitive::u32), - >, + pub apis: ::std::vec::Vec<( + [::core::primitive::u8; 8usize], + ::core::primitive::u32, + )>, pub transaction_version: ::core::primitive::u32, pub state_version: ::core::primitive::u8, } @@ -63051,11 +48794,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Weight { #[codec(compact)] pub ref_time: ::core::primitive::u64, @@ -63071,7 +48818,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63093,11 +48840,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct SessionKeys { pub aura: runtime_types::sp_consensus_aura::sr25519::app_sr25519::Public, pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, @@ -63113,7 +48864,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63127,198 +48878,166 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NposSolution16 { - pub votes1: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes2: ::std::vec::Vec< + pub votes1: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes2: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - ( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ), ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, ), - >, - pub votes3: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 2usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes3: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes4: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 3usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 2usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes4: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes5: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 4usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 3usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes5: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes6: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 5usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 4usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes6: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes7: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 6usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 5usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes7: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes8: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 7usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 6usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes8: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes9: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 8usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 7usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes9: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes10: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 9usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 8usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes10: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes11: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 10usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 9usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes11: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes12: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 11usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 10usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes12: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes13: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 12usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 11usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes13: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes14: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 13usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 12usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes14: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes15: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 14usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 13usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes15: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, - pub votes16: ::std::vec::Vec< - ( - ::subxt::ext::codec::Compact<::core::primitive::u32>, - [( - ::subxt::ext::codec::Compact<::core::primitive::u16>, - ::subxt::ext::codec::Compact< - runtime_types::sp_arithmetic::per_things::PerU16, - >, - ); 15usize], + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 14usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes16: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( ::subxt::ext::codec::Compact<::core::primitive::u16>, - ), - >, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 15usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, } #[derive( ::subxt::ext::codec::Decode, @@ -63328,7 +49047,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63359,7 +49078,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63373,7 +49092,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63464,7 +49183,7 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] @@ -63558,11 +49277,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct ResourceId(pub [::core::primitive::u8; 32usize]); #[derive( ::subxt::ext::codec::Decode, @@ -63572,11 +49295,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum TypedChainId { #[codec(index = 0)] None, @@ -63609,11 +49336,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub struct Nonce(pub ::core::primitive::u32); } pub mod proposal { @@ -63626,11 +49357,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum Proposal<_0> { #[codec(index = 0)] Signed { @@ -63659,11 +49394,15 @@ pub mod api { Clone, Debug, Eq, - PartialEq + PartialEq, )] #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[decode_as_type( + crate_path = ":: subxt :: ext :: scale_decode" + )] + #[encode_as_type( + crate_path = ":: subxt :: ext :: scale_encode" + )] pub enum ProposalKind { #[codec(index = 0)] Refresh,