From 4fa37f66853ae07485c66a68941403b6d97e3057 Mon Sep 17 00:00:00 2001 From: Marko Petrlic Date: Mon, 11 Sep 2023 15:31:50 +0200 Subject: [PATCH] Reverted formatting --- .rustfmt.toml | 10 - avail-subxt/.rustfmt.toml | 10 - avail-subxt/rustfmt.toml | 13 + avail-subxt/src/api_dev.rs | 1958 +++++++++++------ avail-subxt/src/primitives/header.rs | 8 +- node/src/benchmarking.rs | 20 +- node/src/chain_spec.rs | 4 +- node/src/chain_spec/config.rs | 4 +- node/src/chain_spec/locals.rs | 4 +- node/src/command.rs | 24 +- node/src/main.rs | 4 +- node/src/service.rs | 4 +- .../bridges/nomad/da-bridge/src/message.rs | 4 +- .../bridges/nomad/updater-manager/src/lib.rs | 8 +- pallets/dactr/src/extensions/check_app_id.rs | 24 +- pallets/dactr/src/mock.rs | 33 +- .../system/src/extensions/check_genesis.rs | 8 +- .../system/src/extensions/check_mortality.rs | 8 +- .../src/extensions/check_non_zero_sender.rs | 12 +- pallets/system/src/extensions/check_nonce.rs | 29 +- .../src/extensions/check_spec_version.rs | 8 +- .../system/src/extensions/check_tx_version.rs | 8 +- pallets/system/src/extensions/check_weight.rs | 16 +- pallets/system/src/lib.rs | 124 +- pallets/system/src/limits.rs | 16 +- pallets/system/src/mock.rs | 4 +- pallets/system/src/mocking.rs | 4 +- pallets/system/src/offchain.rs | 16 +- pallets/system/src/submitted_data.rs | 35 +- pallets/system/src/tests.rs | 166 +- runtime/src/impls.rs | 8 +- runtime/src/lib.rs | 8 +- runtime/src/migration.rs | 8 +- rustfmt.toml | 21 +- 34 files changed, 1760 insertions(+), 871 deletions(-) delete mode 100644 .rustfmt.toml delete mode 100644 avail-subxt/.rustfmt.toml create mode 100644 avail-subxt/rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml deleted file mode 100644 index 6ac19618c..000000000 --- a/.rustfmt.toml +++ /dev/null @@ -1,10 +0,0 @@ -fn_single_line = true -match_arm_blocks = true -match_block_trailing_comma = true -imports_granularity = "Crate" -overflow_delimited_expr = true -reorder_impl_items = true -group_imports = "StdExternalCrate" -use_field_init_shorthand = true -edition = "2018" -hard_tabs = true \ No newline at end of file diff --git a/avail-subxt/.rustfmt.toml b/avail-subxt/.rustfmt.toml deleted file mode 100644 index 6ac19618c..000000000 --- a/avail-subxt/.rustfmt.toml +++ /dev/null @@ -1,10 +0,0 @@ -fn_single_line = true -match_arm_blocks = true -match_block_trailing_comma = true -imports_granularity = "Crate" -overflow_delimited_expr = true -reorder_impl_items = true -group_imports = "StdExternalCrate" -use_field_init_shorthand = true -edition = "2018" -hard_tabs = true \ No newline at end of file diff --git a/avail-subxt/rustfmt.toml b/avail-subxt/rustfmt.toml new file mode 100644 index 000000000..bb55bd1e8 --- /dev/null +++ b/avail-subxt/rustfmt.toml @@ -0,0 +1,13 @@ +match_block_trailing_comma = true +use_field_init_shorthand = true +edition = "2021" +hard_tabs = true + +# Disabled on Stable +# +# fn_single_line = true +# match_arm_blocks = true +# imports_granularity = "Crate" +# overflow_delimited_expr = true +# reorder_impl_items = true +# group_imports = "StdExternalCrate" \ No newline at end of file diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 9ad5ea030..edd9ec2f6 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -919,10 +919,18 @@ pub mod api { .into()) } } - pub fn constants() -> ConstantsApi { ConstantsApi } - pub fn storage() -> StorageApi { StorageApi } - pub fn tx() -> TransactionApi { TransactionApi } - pub fn apis() -> runtime_apis::RuntimeApi { runtime_apis::RuntimeApi } + pub fn constants() -> ConstantsApi { + ConstantsApi + } + pub fn storage() -> StorageApi { + StorageApi + } + pub fn tx() -> TransactionApi { + TransactionApi + } + pub fn apis() -> runtime_apis::RuntimeApi { + runtime_apis::RuntimeApi + } pub mod runtime_apis { use ::subxt::ext::codec::Encode; @@ -932,13 +940,17 @@ pub mod api { } pub struct ConstantsApi; impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { system::constants::ConstantsApi } + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi + } pub fn utility(&self) -> utility::constants::ConstantsApi { utility::constants::ConstantsApi } - pub fn babe(&self) -> babe::constants::ConstantsApi { babe::constants::ConstantsApi } + pub fn babe(&self) -> babe::constants::ConstantsApi { + babe::constants::ConstantsApi + } pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { timestamp::constants::ConstantsApi @@ -1002,7 +1014,9 @@ pub mod api { bounties::constants::ConstantsApi } - pub fn tips(&self) -> tips::constants::ConstantsApi { tips::constants::ConstantsApi } + pub fn tips(&self) -> tips::constants::ConstantsApi { + tips::constants::ConstantsApi + } pub fn data_availability(&self) -> data_availability::constants::ConstantsApi { data_availability::constants::ConstantsApi @@ -1034,19 +1048,29 @@ pub mod api { } pub struct StorageApi; impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { system::storage::StorageApi } + pub fn system(&self) -> system::storage::StorageApi { + system::storage::StorageApi + } - pub fn babe(&self) -> babe::storage::StorageApi { babe::storage::StorageApi } + pub fn babe(&self) -> babe::storage::StorageApi { + babe::storage::StorageApi + } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { timestamp::storage::StorageApi } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi + } pub fn authorship(&self) -> authorship::storage::StorageApi { authorship::storage::StorageApi } - pub fn indices(&self) -> indices::storage::StorageApi { indices::storage::StorageApi } + pub fn indices(&self) -> indices::storage::StorageApi { + indices::storage::StorageApi + } - pub fn balances(&self) -> balances::storage::StorageApi { balances::storage::StorageApi } + pub fn balances(&self) -> balances::storage::StorageApi { + balances::storage::StorageApi + } pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { transaction_payment::storage::StorageApi @@ -1058,49 +1082,77 @@ pub mod api { election_provider_multi_phase::storage::StorageApi } - pub fn staking(&self) -> staking::storage::StorageApi { staking::storage::StorageApi } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } - pub fn session(&self) -> session::storage::StorageApi { session::storage::StorageApi } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } - pub fn democracy(&self) -> democracy::storage::StorageApi { democracy::storage::StorageApi } + pub fn democracy(&self) -> democracy::storage::StorageApi { + democracy::storage::StorageApi + } - pub fn council(&self) -> council::storage::StorageApi { council::storage::StorageApi } + pub fn council(&self) -> council::storage::StorageApi { + council::storage::StorageApi + } pub fn technical_committee(&self) -> technical_committee::storage::StorageApi { technical_committee::storage::StorageApi } - pub fn elections(&self) -> elections::storage::StorageApi { elections::storage::StorageApi } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } pub fn technical_membership(&self) -> technical_membership::storage::StorageApi { technical_membership::storage::StorageApi } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { grandpa::storage::StorageApi } + pub fn grandpa(&self) -> grandpa::storage::StorageApi { + grandpa::storage::StorageApi + } - pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::storage::StorageApi + } - pub fn sudo(&self) -> sudo::storage::StorageApi { sudo::storage::StorageApi } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } - pub fn im_online(&self) -> im_online::storage::StorageApi { im_online::storage::StorageApi } + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi + } pub fn authority_discovery(&self) -> authority_discovery::storage::StorageApi { authority_discovery::storage::StorageApi } - pub fn offences(&self) -> offences::storage::StorageApi { offences::storage::StorageApi } + pub fn offences(&self) -> offences::storage::StorageApi { + offences::storage::StorageApi + } pub fn historical(&self) -> historical::storage::StorageApi { historical::storage::StorageApi } - pub fn scheduler(&self) -> scheduler::storage::StorageApi { scheduler::storage::StorageApi } + pub fn scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } - pub fn bounties(&self) -> bounties::storage::StorageApi { bounties::storage::StorageApi } + pub fn bounties(&self) -> bounties::storage::StorageApi { + bounties::storage::StorageApi + } - pub fn tips(&self) -> tips::storage::StorageApi { tips::storage::StorageApi } + pub fn tips(&self) -> tips::storage::StorageApi { + tips::storage::StorageApi + } - pub fn mmr(&self) -> mmr::storage::StorageApi { mmr::storage::StorageApi } + pub fn mmr(&self) -> mmr::storage::StorageApi { + mmr::storage::StorageApi + } pub fn data_availability(&self) -> data_availability::storage::StorageApi { data_availability::storage::StorageApi @@ -1114,9 +1166,13 @@ pub mod api { nomad_home::storage::StorageApi } - pub fn preimage(&self) -> preimage::storage::StorageApi { preimage::storage::StorageApi } + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } - pub fn multisig(&self) -> multisig::storage::StorageApi { multisig::storage::StorageApi } + pub fn multisig(&self) -> multisig::storage::StorageApi { + multisig::storage::StorageApi + } pub fn voter_list(&self) -> voter_list::storage::StorageApi { voter_list::storage::StorageApi @@ -1126,21 +1182,31 @@ pub mod api { nomination_pools::storage::StorageApi } - pub fn identity(&self) -> identity::storage::StorageApi { identity::storage::StorageApi } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } } pub struct TransactionApi; impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { system::calls::TransactionApi } + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } - pub fn utility(&self) -> utility::calls::TransactionApi { utility::calls::TransactionApi } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } - pub fn babe(&self) -> babe::calls::TransactionApi { babe::calls::TransactionApi } + pub fn babe(&self) -> babe::calls::TransactionApi { + babe::calls::TransactionApi + } pub fn timestamp(&self) -> timestamp::calls::TransactionApi { timestamp::calls::TransactionApi } - pub fn indices(&self) -> indices::calls::TransactionApi { indices::calls::TransactionApi } + pub fn indices(&self) -> indices::calls::TransactionApi { + indices::calls::TransactionApi + } pub fn balances(&self) -> balances::calls::TransactionApi { balances::calls::TransactionApi @@ -1152,15 +1218,21 @@ pub mod api { election_provider_multi_phase::calls::TransactionApi } - pub fn staking(&self) -> staking::calls::TransactionApi { staking::calls::TransactionApi } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } - pub fn session(&self) -> session::calls::TransactionApi { session::calls::TransactionApi } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } pub fn democracy(&self) -> democracy::calls::TransactionApi { democracy::calls::TransactionApi } - pub fn council(&self) -> council::calls::TransactionApi { council::calls::TransactionApi } + pub fn council(&self) -> council::calls::TransactionApi { + council::calls::TransactionApi + } pub fn technical_committee(&self) -> technical_committee::calls::TransactionApi { technical_committee::calls::TransactionApi @@ -1174,13 +1246,17 @@ pub mod api { technical_membership::calls::TransactionApi } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { grandpa::calls::TransactionApi } + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { + grandpa::calls::TransactionApi + } pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } - pub fn sudo(&self) -> sudo::calls::TransactionApi { sudo::calls::TransactionApi } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } pub fn im_online(&self) -> im_online::calls::TransactionApi { im_online::calls::TransactionApi @@ -1194,7 +1270,9 @@ pub mod api { bounties::calls::TransactionApi } - pub fn tips(&self) -> tips::calls::TransactionApi { tips::calls::TransactionApi } + pub fn tips(&self) -> tips::calls::TransactionApi { + tips::calls::TransactionApi + } pub fn data_availability(&self) -> data_availability::calls::TransactionApi { data_availability::calls::TransactionApi @@ -1232,7 +1310,9 @@ pub mod api { identity::calls::TransactionApi } - pub fn mandate(&self) -> mandate::calls::TransactionApi { mandate::calls::TransactionApi } + pub fn mandate(&self) -> mandate::calls::TransactionApi { + mandate::calls::TransactionApi + } } #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] pub fn validate_codegen>( @@ -1965,11 +2045,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Number", vec![], [ - 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, - 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, - 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Number", + vec![], + [ + 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, + 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, + 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, + ], + ) } #[doc = " Hash of the previous block."] @@ -2004,11 +2089,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Digest", vec![], [ - 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, 26u8, - 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, 254u8, - 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, 215u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Digest", + vec![], + [ + 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, + 26u8, 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, + 254u8, 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, + 215u8, + ], + ) } #[doc = " Events deposited for the current block."] @@ -2032,11 +2123,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Events", vec![], [ - 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, - 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, 209u8, - 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, 34u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Events", + vec![], + [ + 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, + 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, + 209u8, 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, + 34u8, + ], + ) } #[doc = " The number of events in the `Events` list."] @@ -2249,55 +2346,77 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "BlockWeights", [ - 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, - 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, 136u8, - 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockWeights", + [ + 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, + 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, + 136u8, 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, + ], + ) } #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "BlockLength", [ - 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, - 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, - 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockLength", + [ + 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, + 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, + 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, + ], + ) } #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("System", "BlockHashCount", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockHashCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "DbWeight", [ - 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, - 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, 24u8, - 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "DbWeight", + [ + 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, + 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, + 24u8, 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, + ], + ) } #[doc = " Get the chain's current version."] pub fn version( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "Version", [ - 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, - 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, 158u8, - 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, 28u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "Version", + [ + 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, + 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, + 158u8, 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, + 28u8, + ], + ) } #[doc = " The designated SS58 prefix of this chain."] @@ -2306,11 +2425,15 @@ pub mod api { #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { - ::subxt::constants::Address::new_static("System", "SS58Prefix", [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, 41u8, - 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, - 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, - ]) + ::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, + ], + ) } } } @@ -2457,11 +2580,16 @@ pub mod api { &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Utility", "batch", types::Batch { calls }, [ - 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, 54u8, - 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, 86u8, - 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, - ]) + ::subxt::tx::Payload::new_static( + "Utility", + "batch", + types::Batch { calls }, + [ + 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, + 54u8, 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, + 86u8, 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, + ], + ) } #[doc = "See [`Pallet::as_derivative`]."] @@ -2700,11 +2828,16 @@ pub mod api { 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, - ]) + ::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, + ], + ) } } } @@ -2889,11 +3022,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochIndex", vec![], [ - 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, 30u8, - 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, 177u8, 222u8, - 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, 112u8, 89u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochIndex", + vec![], + [ + 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, + 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, + 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, + 112u8, 89u8, + ], + ) } #[doc = " Current epoch authorities."] @@ -2909,11 +3048,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Authorities", vec![], [ - 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, - 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, 153u8, - 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, 85u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Authorities", + vec![], + [ + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, + 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, + 85u8, + ], + ) } #[doc = " The slot at which the first epoch actually started. This is 0"] @@ -2927,11 +3072,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "GenesisSlot", vec![], [ - 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, 139u8, - 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, 160u8, 120u8, - 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, 107u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "GenesisSlot", + vec![], + [ + 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, + 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, + 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, + 107u8, + ], + ) } #[doc = " Current slot number."] @@ -2944,11 +3095,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "CurrentSlot", vec![], [ - 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, 236u8, - 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, 201u8, 169u8, - 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, 43u8, 57u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "CurrentSlot", + vec![], + [ + 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, + 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, + 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, + 43u8, 57u8, + ], + ) } #[doc = " The epoch randomness for the *current* epoch."] @@ -2970,11 +3127,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Randomness", vec![], [ - 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, - 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, 226u8, - 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, 58u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Randomness", + vec![], + [ + 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, + 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, + 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, + 58u8, + ], + ) } #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] @@ -3141,11 +3304,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Babe", "Initialized", vec![], [ - 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, - 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, - 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Initialized", + vec![], + [ + 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, + 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, + 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, + ], + ) } #[doc = " This field should always be populated during block processing unless"] @@ -3188,11 +3356,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochStart", vec![], [ - 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, 50u8, - 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, 21u8, 160u8, - 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, 14u8, 160u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochStart", + vec![], + [ + 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, + 50u8, 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, + 21u8, 160u8, 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, + 14u8, 160u8, + ], + ) } #[doc = " How late the current block is compared to its parent."] @@ -3209,11 +3383,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Lateness", vec![], [ - 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, 200u8, - 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, 157u8, 38u8, - 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, 87u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Lateness", + vec![], + [ + 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, + 200u8, 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, + 157u8, 38u8, 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, + 87u8, + ], + ) } #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] @@ -3227,11 +3407,17 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochConfig", vec![], [ - 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, 85u8, - 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, 16u8, - 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, 166u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochConfig", + vec![], + [ + 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, + 85u8, 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, + 16u8, 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, + 166u8, + ], + ) } #[doc = " The configuration for the next epoch, `None` if the config will not change"] @@ -3300,11 +3486,16 @@ pub mod api { pub fn epoch_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Babe", "EpochDuration", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "EpochDuration", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } #[doc = " The expected average block time at which BABE should be creating"] @@ -3315,22 +3506,32 @@ pub mod api { pub fn expected_block_time( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Babe", "ExpectedBlockTime", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "ExpectedBlockTime", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } #[doc = " Max number of authorities allowed"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Babe", "MaxAuthorities", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -3370,11 +3571,16 @@ pub mod api { impl TransactionApi { #[doc = "See [`Pallet::set`]."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Timestamp", "set", types::Set { now }, [ - 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, 199u8, - 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, 200u8, 4u8, - 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, - ]) + ::subxt::tx::Payload::new_static( + "Timestamp", + "set", + types::Set { now }, + [ + 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, + 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, + 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, + ], + ) } } } @@ -3392,11 +3598,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Timestamp", "Now", vec![], [ - 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, - 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, - 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, - ]) + ::subxt::storage::address::Address::new_static( + "Timestamp", + "Now", + vec![], + [ + 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, + 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, + 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, + ], + ) } #[doc = " Did the timestamp get updated in this block?"] @@ -3434,11 +3645,16 @@ pub mod api { pub fn minimum_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Timestamp", "MinimumPeriod", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::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, + ], + ) } } } @@ -3605,11 +3821,16 @@ pub mod api { &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Indices", "claim", types::Claim { index }, [ - 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, - 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, 205u8, - 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, - ]) + ::subxt::tx::Payload::new_static( + "Indices", + "claim", + types::Claim { index }, + [ + 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, + 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, + 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, + ], + ) } #[doc = "See [`Pallet::transfer`]."] @@ -3639,11 +3860,17 @@ pub mod api { &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Indices", "free", types::Free { index }, [ - 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, - 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, 247u8, - 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, 244u8, - ]) + ::subxt::tx::Payload::new_static( + "Indices", + "free", + types::Free { index }, + [ + 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, + 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, + 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, + 244u8, + ], + ) } #[doc = "See [`Pallet::force_transfer`]."] @@ -3827,11 +4054,15 @@ pub mod api { impl ConstantsApi { #[doc = " The deposit needed for reserving an index."] pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Indices", "Deposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::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, + ], + ) } } } @@ -5134,48 +5365,72 @@ pub mod api { pub fn existential_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Balances", "ExistentialDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "ExistentialDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxLocks", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxLocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of named reserves that can exist on an account."] pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxReserves", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxReserves", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of holds that can exist on an account at any time."] pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxHolds", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxHolds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxFreezes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxFreezes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -7019,11 +7274,16 @@ pub mod api { #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Staking", "chill", types::Chill {}, [ - 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, - 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, - 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, - ]) + ::subxt::tx::Payload::new_static( + "Staking", + "chill", + types::Chill {}, + [ + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, + 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, + 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, + ], + ) } #[doc = "See [`Pallet::set_payee`]."] @@ -7286,11 +7546,16 @@ pub mod api { >, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Staking", "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, 249u8, - ]) + ::subxt::tx::Payload::new_static( + "Staking", + "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, 249u8, + ], + ) } #[doc = "See [`Pallet::set_staking_configs`]."] @@ -8738,11 +9003,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Staking", "ForceEra", vec![], [ - 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, - 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, 233u8, - 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, 222u8, - ]) + ::subxt::storage::address::Address::new_static( + "Staking", + "ForceEra", + vec![], + [ + 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, + 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, + 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, + 222u8, + ], + ) } #[doc = " The percentage of the slash that is distributed to reporters."] @@ -9173,11 +9444,16 @@ pub mod api { pub fn max_nominations( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "MaxNominations", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominations", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of eras to keep in history."] @@ -9201,33 +9477,48 @@ pub mod api { #[doc = " `StakingLedger` and will need to be handled properly in a migration."] #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "HistoryDepth", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "HistoryDepth", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "SessionsPerEra", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "SessionsPerEra", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "BondingDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "BondingDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of eras that slashes are deferred by, after computation."] @@ -9237,11 +9528,16 @@ pub mod api { pub fn slash_defer_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "SlashDeferDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of nominators rewarded for each validator."] @@ -9276,11 +9572,16 @@ pub mod api { pub fn max_unlocking_chunks( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "MaxUnlockingChunks", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "MaxUnlockingChunks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -11326,29 +11627,44 @@ pub mod api { pub fn enactment_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "EnactmentPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "EnactmentPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " How often (in blocks) new public referenda are launched."] pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "LaunchPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "LaunchPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " How often (in blocks) to check for new votes."] pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "VotingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "VotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The minimum period of vote locking."] @@ -11358,22 +11674,31 @@ pub mod api { pub fn vote_locking_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "VoteLockingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "VoteLockingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn minimum_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Democracy", "MinimumDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MinimumDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] @@ -11382,33 +11707,47 @@ pub mod api { pub fn instant_allowed( &self, ) -> ::subxt::constants::Address<::core::primitive::bool> { - ::subxt::constants::Address::new_static("Democracy", "InstantAllowed", [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, - 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, 100u8, - 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "InstantAllowed", + [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, + 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, + ], + ) } #[doc = " Minimum voting period allowed for a fast-track referendum."] pub fn fast_track_voting_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "FastTrackVotingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "FastTrackVotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] pub fn cooloff_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "CooloffPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "CooloffPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of votes for an account."] @@ -11416,40 +11755,60 @@ pub mod api { #[doc = " Also used to compute weight, an overly big value can"] #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxVotes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of public proposals that can exist at any time."] pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxProposals", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxProposals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of deposits a public proposal may have at any time."] pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxDeposits", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxDeposits", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of items which can be blacklisted."] pub fn max_blacklisted( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxBlacklisted", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxBlacklisted", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -12067,11 +12426,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Council", "Members", vec![], [ - 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, - 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, - 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, - ]) + ::subxt::storage::address::Address::new_static( + "Council", + "Members", + vec![], + [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ], + ) } #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] @@ -12084,11 +12448,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Council", "Prime", vec![], [ - 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, - 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, - 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, - ]) + ::subxt::storage::address::Address::new_static( + "Council", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) } } } @@ -12100,11 +12469,15 @@ pub mod api { pub fn max_proposal_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Council", "MaxProposalWeight", [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, - 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Council", + "MaxProposalWeight", + [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, + 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ], + ) } } } @@ -13378,22 +13751,30 @@ pub mod api { pub fn pallet_id( &self, ) -> ::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, 60u8, - ]) + ::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, 60u8, + ], + ) } #[doc = " How much should be locked up in order to submit one's candidacy."] pub fn candidacy_bond( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("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, - ]) + ::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, + ], + ) } #[doc = " Base deposit associated with voting."] @@ -13403,55 +13784,78 @@ pub mod api { pub fn voting_bond_base( &self, ) -> ::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, - ]) + ::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, + ], + ) } #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] pub fn voting_bond_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("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, - ]) + ::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, + ], + ) } #[doc = " Number of members to elect."] pub fn desired_members( &self, ) -> ::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, 145u8, - ]) + ::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, + 145u8, + ], + ) } #[doc = " Number of runners_up to keep."] pub fn desired_runners_up( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("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, 145u8, - ]) + ::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, + 145u8, + ], + ) } #[doc = " How long each seat is kept. This defines the next block number at which an election"] #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] #[doc = " be in passive mode."] pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("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, 145u8, - ]) + ::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, + 145u8, + ], + ) } #[doc = " The maximum number of candidates in a phragmen election."] @@ -13463,11 +13867,16 @@ pub mod api { pub fn max_candidates( &self, ) -> ::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, 145u8, - ]) + ::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, + 145u8, + ], + ) } #[doc = " The maximum number of voters to allow in a phragmen election."] @@ -13477,11 +13886,16 @@ pub mod api { #[doc = ""] #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("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, 145u8, - ]) + ::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, + 145u8, + ], + ) } #[doc = " Maximum numbers of votes per voter."] @@ -13491,11 +13905,16 @@ pub mod api { pub fn max_votes_per_voter( &self, ) -> ::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, 145u8, - ]) + ::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, + 145u8, + ], + ) } } } @@ -14223,11 +14642,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Grandpa", "State", vec![], [ - 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, 143u8, - 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, 151u8, - 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, - ]) + ::subxt::storage::address::Address::new_static( + "Grandpa", + "State", + vec![], + [ + 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, + 143u8, 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, + 151u8, 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, + ], + ) } #[doc = " Pending change: (signaled at, scheduled change)."] @@ -14284,11 +14708,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Grandpa", "Stalled", vec![], [ - 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, 74u8, - 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, 110u8, - 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, - ]) + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Stalled", + vec![], + [ + 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, + 74u8, 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, + 110u8, 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, + ], + ) } #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] @@ -14389,11 +14818,16 @@ pub mod api { pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Grandpa", "MaxAuthorities", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of entries to keep in the set id to session index mapping."] @@ -14405,11 +14839,16 @@ pub mod api { pub fn max_set_id_session_entries( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Grandpa", "MaxSetIdSessionEntries", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::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, + ], + ) } } } @@ -14982,42 +15421,60 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "ProposalBond", [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, - 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, - 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Treasury", "ProposalBondMinimum", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Treasury", "ProposalBondMaximum", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMaximum", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } #[doc = " Period between successive spends."] pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Treasury", "SpendPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "SpendPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] @@ -15025,33 +15482,46 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "Burn", [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, - 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, - 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "Burn", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) } #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "PalletId", [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) } #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Treasury", "MaxApprovals", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "MaxApprovals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -15207,11 +15677,17 @@ pub mod api { ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Sudo", "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, - ]) + ::subxt::tx::Payload::new_static( + "Sudo", + "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, + ], + ) } #[doc = "See [`Pallet::sudo_as`]."] @@ -15324,11 +15800,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Sudo", "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, - ]) + ::subxt::storage::address::Address::new_static( + "Sudo", + "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, + ], + ) } } } @@ -15512,11 +15993,17 @@ pub mod api { ::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, - ]) + ::subxt::storage::address::Address::new_static( + "ImOnline", + "Keys", + vec![], + [ + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, + 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, + 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, + 29u8, 218u8, + ], + ) } #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] @@ -15633,11 +16120,16 @@ pub mod api { pub fn unsigned_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("ImOnline", "UnsignedPriority", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::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, + ], + ) } } } @@ -16542,11 +17034,15 @@ pub mod api { pub fn maximum_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Scheduler", "MaximumWeight", [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, - 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Scheduler", + "MaximumWeight", + [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, + 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ], + ) } #[doc = " The maximum number of scheduled calls in the queue for a single block."] @@ -16557,11 +17053,16 @@ pub mod api { pub fn max_scheduled_per_block( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Scheduler", "MaxScheduledPerBlock", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Scheduler", + "MaxScheduledPerBlock", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -17288,11 +17789,15 @@ pub mod api { pub fn bounty_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "BountyDepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] @@ -17315,11 +17820,16 @@ pub mod api { pub fn bounty_update_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Bounties", "BountyUpdatePeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyUpdatePeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The curator deposit is calculated as a percentage of the curator fee."] @@ -17345,44 +17855,62 @@ pub mod api { pub fn curator_deposit_max( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMax", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMax", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMin", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMin", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } #[doc = " Minimum value for a bounty."] pub fn bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "BountyValueMinimum", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "DataDepositPerByte", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "DataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Maximum acceptable reason length."] @@ -17391,11 +17919,16 @@ pub mod api { pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Bounties", "MaximumReasonLength", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -17836,11 +18369,16 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Tips", "Tips", Vec::new(), [ - 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, 225u8, - 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, 73u8, - 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, - ]) + ::subxt::storage::address::Address::new_static( + "Tips", + "Tips", + Vec::new(), + [ + 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, + 225u8, 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, + 73u8, 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, + ], + ) } #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] @@ -17881,11 +18419,17 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Tips", "Reasons", Vec::new(), [ - 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, 200u8, - 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, 159u8, 38u8, - 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, 167u8, - ]) + ::subxt::storage::address::Address::new_static( + "Tips", + "Reasons", + Vec::new(), + [ + 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, + 200u8, 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, + 159u8, 38u8, 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, + 167u8, + ], + ) } } } @@ -17899,31 +18443,45 @@ pub mod api { pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Tips", "MaximumReasonLength", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Tips", "DataDepositPerByte", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "DataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Tips", "TipCountdown", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipCountdown", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The percent of the final tip which goes to the original reporter of the tip."] @@ -17931,22 +18489,31 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Tips", "TipFindersFee", [ - 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, - 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, 47u8, - 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, 122u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipFindersFee", + [ + 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, + 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, + 47u8, 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, + 122u8, + ], + ) } #[doc = " The amount held on deposit for placing a tip report."] pub fn tip_report_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Tips", "TipReportDepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipReportDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } } } @@ -17967,11 +18534,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Mmr", "RootHash", vec![], [ - 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, - 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, 229u8, - 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, - ]) + ::subxt::storage::address::Address::new_static( + "Mmr", + "RootHash", + vec![], + [ + 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, + 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, + 229u8, 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, + ], + ) } #[doc = " Current size of the MMR (number of leaves)."] @@ -18037,11 +18609,16 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Mmr", "Nodes", Vec::new(), [ - 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, - 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, - 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, - ]) + ::subxt::storage::address::Address::new_static( + "Mmr", + "Nodes", + Vec::new(), + [ + 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, + 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, + 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, + ], + ) } } } @@ -18378,44 +18955,60 @@ pub mod api { pub fn min_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MinBlockRows", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MinBlockRows", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } #[doc = " Maximum number of rows in a block."] pub fn max_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockRows", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MaxBlockRows", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } #[doc = " Minimum number of cols in a block."] pub fn min_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MinBlockCols", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MinBlockCols", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } #[doc = " Maximum number of cols in a block."] pub fn max_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockCols", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MaxBlockCols", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } } } @@ -18800,11 +19393,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("NomadHome", "Base", vec![], [ - 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, - 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, 80u8, - 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, - ]) + ::subxt::storage::address::Address::new_static( + "NomadHome", + "Base", + vec![], + [ + 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, + 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, + 80u8, 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, + ], + ) } pub fn tree( @@ -18816,11 +19414,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("NomadHome", "Tree", vec![], [ - 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, - 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, 29u8, - 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, 175u8, - ]) + ::subxt::storage::address::Address::new_static( + "NomadHome", + "Tree", + vec![], + [ + 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, + 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, + 29u8, 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, + 175u8, + ], + ) } pub fn nonces( @@ -18967,11 +19571,16 @@ pub mod api { pub fn max_message_body_bytes( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("NomadHome", "MaxMessageBodyBytes", [ - 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, - ]) + ::subxt::constants::Address::new_static( + "NomadHome", + "MaxMessageBodyBytes", + [ + 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, + ], + ) } } } @@ -19080,11 +19689,16 @@ pub mod api { pub fn da_bridge_pallet_id( &self, ) -> ::subxt::constants::Address<::subxt::utils::H256> { - ::subxt::constants::Address::new_static("NomadDABridge", "DABridgePalletId", [ - 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, 155u8, - 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, 204u8, - 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, 135u8, - ]) + ::subxt::constants::Address::new_static( + "NomadDABridge", + "DABridgePalletId", + [ + 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, + 155u8, 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, + 204u8, 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, + 135u8, + ], + ) } } } @@ -19827,11 +20441,15 @@ pub mod api { #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Multisig", "DepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "DepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] @@ -19840,22 +20458,31 @@ pub mod api { pub fn deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Multisig", "DepositFactor", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "DepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Multisig", "MaxSignatories", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "MaxSignatories", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -20194,11 +20821,15 @@ pub mod api { pub fn bag_thresholds( &self, ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> { - ::subxt::constants::Address::new_static("VoterList", "BagThresholds", [ - 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, - 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, - 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, - ]) + ::subxt::constants::Address::new_static( + "VoterList", + "BagThresholds", + [ + 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, + 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, + 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, + ], + ) } } } @@ -22238,11 +22869,15 @@ pub mod api { pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("NominationPools", "PalletId", [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ]) + ::subxt::constants::Address::new_static( + "NominationPools", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) } #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] @@ -22916,11 +23551,17 @@ pub mod api { #[doc = "See [`Pallet::quit_sub`]."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Identity", "quit_sub", types::QuitSub {}, [ - 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, 74u8, - 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, 208u8, - 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, 223u8, - ]) + ::subxt::tx::Payload::new_static( + "Identity", + "quit_sub", + types::QuitSub {}, + [ + 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, + 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, + 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, + 223u8, + ], + ) } } } @@ -23371,22 +24012,30 @@ pub mod api { pub fn basic_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "BasicDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "BasicDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "FieldDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "FieldDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] @@ -23395,22 +24044,31 @@ pub mod api { pub fn sub_account_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "SubAccountDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "SubAccountDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxSubAccounts", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxSubAccounts", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] @@ -23418,11 +24076,16 @@ pub mod api { pub fn max_additional_fields( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxAdditionalFields", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxAdditionalFields", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] @@ -23430,11 +24093,16 @@ pub mod api { pub fn max_registrars( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxRegistrars", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxRegistrars", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } diff --git a/avail-subxt/src/primitives/header.rs b/avail-subxt/src/primitives/header.rs index 72da1d9ae..8c809aad5 100644 --- a/avail-subxt/src/primitives/header.rs +++ b/avail-subxt/src/primitives/header.rs @@ -41,9 +41,13 @@ impl SPHeader for Header { type Hasher = BlakeTwo256; type Number = u32; - fn number(&self) -> Self::Number { self.number } + fn number(&self) -> Self::Number { + self.number + } - fn hash(&self) -> ::Output { Self::Hasher::hash_of(self) } + fn hash(&self) -> ::Output { + Self::Hasher::hash_of(self) + } } fn number_from_hex<'de, D>(deserializer: D) -> Result diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index edafca68d..54cb3487f 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -43,13 +43,19 @@ pub struct RemarkBuilder { impl RemarkBuilder { /// Creates a new [`Self`] from the given client. #[allow(dead_code)] - pub fn new(client: Arc) -> Self { Self { client } } + pub fn new(client: Arc) -> Self { + Self { client } + } } impl frame_benchmarking_cli::ExtrinsicBuilder for RemarkBuilder { - fn pallet(&self) -> &str { "system" } + fn pallet(&self) -> &str { + "system" + } - fn extrinsic(&self) -> &str { "remark" } + fn extrinsic(&self) -> &str { + "remark" + } fn build(&self, nonce: u32) -> std::result::Result { let acc = Sr25519Keyring::Bob.pair(); @@ -87,9 +93,13 @@ impl TransferKeepAliveBuilder { } impl frame_benchmarking_cli::ExtrinsicBuilder for TransferKeepAliveBuilder { - fn pallet(&self) -> &str { "balances" } + fn pallet(&self) -> &str { + "balances" + } - fn extrinsic(&self) -> &str { "transfer_keep_alive" } + fn extrinsic(&self) -> &str { + "transfer_keep_alive" + } fn build(&self, nonce: u32) -> std::result::Result { let acc = Sr25519Keyring::Bob.pair(); diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 791863d5b..7ea762c62 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -251,7 +251,9 @@ pub(crate) mod tests { */ #[test] - fn test_create_development_chain_spec() { locals::solo::chain_spec().build_storage().unwrap(); } + fn test_create_development_chain_spec() { + locals::solo::chain_spec().build_storage().unwrap(); + } #[test] fn test_create_development_tri_chain_spec() { diff --git a/node/src/chain_spec/config.rs b/node/src/chain_spec/config.rs index bf5c3667c..9f743e579 100644 --- a/node/src/chain_spec/config.rs +++ b/node/src/chain_spec/config.rs @@ -100,7 +100,9 @@ pub(crate) fn make_technical_committee_config(members: Vec) -> Techni } /// Uses `key` as `sudo` key. -pub(crate) fn make_sudo_config(key: AccountId) -> SudoConfig { SudoConfig { key: Some(key) } } +pub(crate) fn make_sudo_config(key: AccountId) -> SudoConfig { + SudoConfig { key: Some(key) } +} const INIT_APP_IDS: [&str; 3] = ["Data Avail", "Ethereum", "Polygon"]; diff --git a/node/src/chain_spec/locals.rs b/node/src/chain_spec/locals.rs index a9bcd2a63..6f83f75cd 100644 --- a/node/src/chain_spec/locals.rs +++ b/node/src/chain_spec/locals.rs @@ -24,7 +24,9 @@ fn dev_endowed_accounts() -> HashMap { } /// `Alice` is the sudo key in `dev`. -fn dev_sudo() -> AccountId { get_account_id_from_seed::("Alice") } +fn dev_sudo() -> AccountId { + get_account_id_from_seed::("Alice") +} fn make_genesis( sudo: AccountId, diff --git a/node/src/command.rs b/node/src/command.rs index f8c37a86f..c938e1ba0 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -35,17 +35,29 @@ use crate::{ }; impl SubstrateCli for Cli { - fn impl_name() -> String { "Avail Node".into() } + fn impl_name() -> String { + "Avail Node".into() + } - fn impl_version() -> String { env!("SUBSTRATE_CLI_IMPL_VERSION").into() } + fn impl_version() -> String { + env!("SUBSTRATE_CLI_IMPL_VERSION").into() + } - fn description() -> String { env!("CARGO_PKG_DESCRIPTION").into() } + fn description() -> String { + env!("CARGO_PKG_DESCRIPTION").into() + } - fn author() -> String { env!("CARGO_PKG_AUTHORS").into() } + fn author() -> String { + env!("CARGO_PKG_AUTHORS").into() + } - fn support_url() -> String { "support.anonymous.an".into() } + fn support_url() -> String { + "support.anonymous.an".into() + } - fn copyright_start_year() -> i32 { 2017 } + fn copyright_start_year() -> i32 { + 2017 + } fn load_spec(&self, id: &str) -> std::result::Result, String> { let spec = match id { diff --git a/node/src/main.rs b/node/src/main.rs index 7ed4f3491..accfed47f 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -11,4 +11,6 @@ mod command; mod da_block_import; mod rpc; -fn main() -> sc_cli::Result<()> { command::run() } +fn main() -> sc_cli::Result<()> { + command::run() +} diff --git a/node/src/service.rs b/node/src/service.rs index 37b430efc..971f3845d 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -59,7 +59,9 @@ impl sc_executor::NativeExecutionDispatch for ExecutorDispatch { da_runtime::apis::api::dispatch(method, data) } - fn native_version() -> sc_executor::NativeVersion { da_runtime::native_version() } + fn native_version() -> sc_executor::NativeVersion { + da_runtime::native_version() + } } /// The full client type definition. diff --git a/pallets/bridges/nomad/da-bridge/src/message.rs b/pallets/bridges/nomad/da-bridge/src/message.rs index 281beeec9..c4b5468cd 100644 --- a/pallets/bridges/nomad/da-bridge/src/message.rs +++ b/pallets/bridges/nomad/da-bridge/src/message.rs @@ -65,7 +65,9 @@ pub enum DABridgeMessages { } impl From for DABridgeMessages { - fn from(data_root_msg: DataRootMessage) -> Self { Self::DataRootMessage(data_root_msg) } + fn from(data_root_msg: DataRootMessage) -> Self { + Self::DataRootMessage(data_root_msg) + } } impl TypedMessage for DABridgeMessages { diff --git a/pallets/bridges/nomad/updater-manager/src/lib.rs b/pallets/bridges/nomad/updater-manager/src/lib.rs index 59a53ce42..2098e9542 100644 --- a/pallets/bridges/nomad/updater-manager/src/lib.rs +++ b/pallets/bridges/nomad/updater-manager/src/lib.rs @@ -43,7 +43,9 @@ pub mod pallet { #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { - fn build(&self) { >::put(self.updater); } + fn build(&self) { + >::put(self.updater); + } } #[pallet::event] @@ -69,7 +71,9 @@ pub mod pallet { impl Pallet {} impl Pallet { - pub fn get_updater() -> H160 { Updater::::get() } + pub fn get_updater() -> H160 { + Updater::::get() + } pub fn set_updater(new_updater: H160) -> DispatchResult { let old_updater = Updater::::get(); diff --git a/pallets/dactr/src/extensions/check_app_id.rs b/pallets/dactr/src/extensions/check_app_id.rs index 3829ca902..2ae7198e3 100644 --- a/pallets/dactr/src/extensions/check_app_id.rs +++ b/pallets/dactr/src/extensions/check_app_id.rs @@ -43,7 +43,9 @@ where ::RuntimeCall: IsSubType> + IsSubType>, { /// utility constructor. Used only in client/factory code. - pub fn from(app_id: AppId) -> Self { Self(app_id, sp_std::marker::PhantomData) } + pub fn from(app_id: AppId) -> Self { + Self(app_id, sp_std::marker::PhantomData) + } /// It validates that `AppId` is correct and already registered for the call and potential nested calls. /// Transaction validation: @@ -100,7 +102,9 @@ where } impl Default for CheckAppId { - fn default() -> Self { Self(AppId::default(), PhantomData) } + fn default() -> Self { + Self(AppId::default(), PhantomData) + } } impl Debug for CheckAppId @@ -108,10 +112,14 @@ where T: DAConfig + UtilityConfig + Send + Sync, { #[cfg(feature = "std")] - fn fmt(&self, f: &mut Formatter) -> fmt::Result { write!(f, "CheckAppId: {}", self.0) } + fn fmt(&self, f: &mut Formatter) -> fmt::Result { + write!(f, "CheckAppId: {}", self.0) + } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut Formatter) -> fmt::Result { Ok(()) } + fn fmt(&self, _: &mut Formatter) -> fmt::Result { + Ok(()) + } } impl SignedExtension for CheckAppId @@ -158,7 +166,9 @@ where T: DAConfig + UtilityConfig + Send + Sync, { #[inline] - fn app_id(&self) -> AppId { self.0 } + fn app_id(&self) -> AppId { + self.0 + } } #[cfg(test)] @@ -175,7 +185,9 @@ mod tests { pallet::Call as DACall, }; - fn remark_call() -> RuntimeCall { RuntimeCall::System(SysCall::remark { remark: vec![] }) } + fn remark_call() -> RuntimeCall { + RuntimeCall::System(SysCall::remark { remark: vec![] }) + } fn submit_data_call() -> RuntimeCall { RuntimeCall::DataAvailability(DACall::submit_data { diff --git a/pallets/dactr/src/mock.rs b/pallets/dactr/src/mock.rs index f24bd654f..866542b29 100644 --- a/pallets/dactr/src/mock.rs +++ b/pallets/dactr/src/mock.rs @@ -152,18 +152,27 @@ pub fn new_test_ext() -> sp_io::TestExternalities { da_control::GenesisConfig:: { _config: Default::default(), app_keys: vec![ - (b"Data Avail".to_vec(), AppKeyInfo { - owner: 1, - id: AppId(0), - }), - (b"Ethereum".to_vec(), AppKeyInfo { - owner: 2, - id: AppId(1), - }), - (b"Polygon".to_vec(), AppKeyInfo { - owner: 2, - id: AppId(2), - }), + ( + b"Data Avail".to_vec(), + AppKeyInfo { + owner: 1, + id: AppId(0), + }, + ), + ( + b"Ethereum".to_vec(), + AppKeyInfo { + owner: 2, + id: AppId(1), + }, + ), + ( + b"Polygon".to_vec(), + AppKeyInfo { + owner: 2, + id: AppId(2), + }, + ), ], } .assimilate_storage(&mut storage) diff --git a/pallets/system/src/extensions/check_genesis.rs b/pallets/system/src/extensions/check_genesis.rs index aa0f4e626..155ff8d0f 100644 --- a/pallets/system/src/extensions/check_genesis.rs +++ b/pallets/system/src/extensions/check_genesis.rs @@ -41,13 +41,17 @@ impl sp_std::fmt::Debug for CheckGenesis { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckGenesis { /// Creates new `SignedExtension` to check genesis hash. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckGenesis { diff --git a/pallets/system/src/extensions/check_mortality.rs b/pallets/system/src/extensions/check_mortality.rs index f0f9b97ab..06ce4904d 100644 --- a/pallets/system/src/extensions/check_mortality.rs +++ b/pallets/system/src/extensions/check_mortality.rs @@ -38,7 +38,9 @@ pub struct CheckMortality(pub Era, sp_std::marker::Phan impl CheckMortality { /// utility constructor. Used only in client/factory code. - pub fn from(era: Era) -> Self { Self(era, sp_std::marker::PhantomData) } + pub fn from(era: Era) -> Self { + Self(era, sp_std::marker::PhantomData) + } } impl sp_std::fmt::Debug for CheckMortality { @@ -48,7 +50,9 @@ impl sp_std::fmt::Debug for CheckMortality { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl SignedExtension for CheckMortality { diff --git a/pallets/system/src/extensions/check_non_zero_sender.rs b/pallets/system/src/extensions/check_non_zero_sender.rs index f2a7c3d72..c5c38e963 100644 --- a/pallets/system/src/extensions/check_non_zero_sender.rs +++ b/pallets/system/src/extensions/check_non_zero_sender.rs @@ -40,13 +40,17 @@ impl sp_std::fmt::Debug for CheckNonZeroSender { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckNonZeroSender { /// Create new `SignedExtension` to check runtime version. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckNonZeroSender @@ -60,7 +64,9 @@ where const IDENTIFIER: &'static str = "CheckNonZeroSender"; - fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { Ok(()) } + fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { + Ok(()) + } fn pre_dispatch( self, diff --git a/pallets/system/src/extensions/check_nonce.rs b/pallets/system/src/extensions/check_nonce.rs index bea3bc235..622305e25 100644 --- a/pallets/system/src/extensions/check_nonce.rs +++ b/pallets/system/src/extensions/check_nonce.rs @@ -42,7 +42,9 @@ pub struct CheckNonce(#[codec(compact)] pub T::Nonce); impl CheckNonce { /// utility constructor. Used only in client/factory code. - pub fn from(nonce: T::Nonce) -> Self { Self(nonce) } + pub fn from(nonce: T::Nonce) -> Self { + Self(nonce) + } } impl sp_std::fmt::Debug for CheckNonce { @@ -52,7 +54,9 @@ impl sp_std::fmt::Debug for CheckNonce { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl SignedExtension for CheckNonce @@ -66,7 +70,9 @@ where const IDENTIFIER: &'static str = "CheckNonce"; - fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { Ok(()) } + fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { + Ok(()) + } fn pre_dispatch( self, @@ -129,13 +135,16 @@ mod tests { #[test] fn signed_ext_check_nonce_works() { new_test_ext().execute_with(|| { - crate::Account::::insert(1, crate::AccountInfo { - nonce: 1, - consumers: 0, - providers: 0, - sufficients: 0, - data: 0, - }); + crate::Account::::insert( + 1, + crate::AccountInfo { + nonce: 1, + consumers: 0, + providers: 0, + sufficients: 0, + data: 0, + }, + ); let info = DispatchInfo::default(); let len = 0_usize; // stale diff --git a/pallets/system/src/extensions/check_spec_version.rs b/pallets/system/src/extensions/check_spec_version.rs index 7057051ad..f46a02c62 100644 --- a/pallets/system/src/extensions/check_spec_version.rs +++ b/pallets/system/src/extensions/check_spec_version.rs @@ -41,13 +41,17 @@ impl sp_std::fmt::Debug for CheckSpecVersion { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckSpecVersion { /// Create new `SignedExtension` to check runtime version. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckSpecVersion { diff --git a/pallets/system/src/extensions/check_tx_version.rs b/pallets/system/src/extensions/check_tx_version.rs index f5566054a..6d7f74f2a 100644 --- a/pallets/system/src/extensions/check_tx_version.rs +++ b/pallets/system/src/extensions/check_tx_version.rs @@ -41,13 +41,17 @@ impl sp_std::fmt::Debug for CheckTxVersion { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckTxVersion { /// Create new `SignedExtension` to check transaction version. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckTxVersion { diff --git a/pallets/system/src/extensions/check_weight.rs b/pallets/system/src/extensions/check_weight.rs index af9cfe37b..924bdaeb3 100644 --- a/pallets/system/src/extensions/check_weight.rs +++ b/pallets/system/src/extensions/check_weight.rs @@ -129,7 +129,9 @@ where } /// Creates new `SignedExtension` to check weight of the extrinsic. - pub fn new() -> Self { Self(Default::default()) } + pub fn new() -> Self { + Self(Default::default()) + } /// Do the pre-dispatch checks. This can be applied to both signed and unsigned. /// @@ -224,7 +226,9 @@ where const IDENTIFIER: &'static str = "CheckWeight"; - fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { Ok(()) } + fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { + Ok(()) + } fn pre_dispatch( self, @@ -287,7 +291,9 @@ impl sp_std::fmt::Debug for CheckWeight { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } #[cfg(test)] @@ -317,7 +323,9 @@ mod tests { .unwrap_or_else(|| block_weights().max_block) } - fn block_weight_limit() -> Weight { block_weights().max_block } + fn block_weight_limit() -> Weight { + block_weights().max_block + } fn normal_length_limit() -> u32 { *::BlockLength::get() diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index a001de04b..8862100aa 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -191,15 +191,23 @@ pub trait ConsumerLimits { } impl ConsumerLimits for ConstU32 { - fn max_consumers() -> RefCount { Z } + fn max_consumers() -> RefCount { + Z + } - fn max_overflow() -> RefCount { Z } + fn max_overflow() -> RefCount { + Z + } } impl, MaxOverflow: Get> ConsumerLimits for (MaxNormal, MaxOverflow) { - fn max_consumers() -> RefCount { MaxNormal::get() } + fn max_consumers() -> RefCount { + MaxNormal::get() + } - fn max_overflow() -> RefCount { MaxOverflow::get() } + fn max_overflow() -> RefCount { + MaxOverflow::get() + } } #[derive(Clone, Encode, Decode, TypeInfo, MaxEncodedLen)] pub struct ExtrinsicLen { @@ -731,7 +739,9 @@ pub enum Phase { } impl Default for Phase { - fn default() -> Self { Self::Initialization } + fn default() -> Self { + Self::Initialization + } } /// Record of an event happening. @@ -824,7 +834,9 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::Root)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -853,7 +865,9 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::Root)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -881,7 +895,9 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ensure::try_successful_origin() } + fn try_successful_origin() -> Result { + Ensure::try_successful_origin() + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -963,7 +979,9 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::None)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::None)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -977,10 +995,14 @@ pub struct EnsureNever(sp_std::marker::PhantomData); impl EnsureOrigin for EnsureNever { type Success = Success; - fn try_origin(o: O) -> Result { Err(o) } + fn try_origin(o: O) -> Result { + Err(o) + } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Err(()) } + fn try_successful_origin() -> Result { + Err(()) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -1065,7 +1087,9 @@ pub enum DecRefStatus { } impl Pallet { - pub fn account_exists(who: &T::AccountId) -> bool { Account::::contains_key(who) } + pub fn account_exists(who: &T::AccountId) -> bool { + Account::::contains_key(who) + } /// Write code to the storage and emit related events and digest items. /// @@ -1081,20 +1105,28 @@ impl Pallet { /// Increment the reference counter on an account. #[deprecated = "Use `inc_consumers` instead"] - pub fn inc_ref(who: &T::AccountId) { let _ = Self::inc_consumers(who); } + pub fn inc_ref(who: &T::AccountId) { + let _ = Self::inc_consumers(who); + } /// Decrement the reference counter on an account. This *MUST* only be done once for every time /// you called `inc_consumers` on `who`. #[deprecated = "Use `dec_consumers` instead"] - pub fn dec_ref(who: &T::AccountId) { Self::dec_consumers(who); } + pub fn dec_ref(who: &T::AccountId) { + Self::dec_consumers(who); + } /// The number of outstanding references for the account `who`. #[deprecated = "Use `consumers` instead"] - pub fn refs(who: &T::AccountId) -> RefCount { Self::consumers(who) } + pub fn refs(who: &T::AccountId) -> RefCount { + Self::consumers(who) + } /// True if the account has no outstanding references. #[deprecated = "Use `!is_provider_required` instead"] - pub fn allow_death(who: &T::AccountId) -> bool { !Self::is_provider_required(who) } + pub fn allow_death(who: &T::AccountId) -> bool { + !Self::is_provider_required(who) + } /// Increment the provider reference counter on an account. pub fn inc_providers(who: &T::AccountId) -> IncRefStatus { @@ -1204,10 +1236,14 @@ impl Pallet { } /// The number of outstanding provider references for the account `who`. - pub fn providers(who: &T::AccountId) -> RefCount { Account::::get(who).providers } + pub fn providers(who: &T::AccountId) -> RefCount { + Account::::get(who).providers + } /// The number of outstanding sufficient references for the account `who`. - pub fn sufficients(who: &T::AccountId) -> RefCount { Account::::get(who).sufficients } + pub fn sufficients(who: &T::AccountId) -> RefCount { + Account::::get(who).sufficients + } /// The number of outstanding provider and sufficient references for the account `who`. pub fn reference_count(who: &T::AccountId) -> RefCount { @@ -1264,7 +1300,9 @@ impl Pallet { } /// The number of outstanding references for the account `who`. - pub fn consumers(who: &T::AccountId) -> RefCount { Account::::get(who).consumers } + pub fn consumers(who: &T::AccountId) -> RefCount { + Account::::get(who).consumers + } /// True if the account has some outstanding consumer references. pub fn is_provider_required(who: &T::AccountId) -> bool { @@ -1289,7 +1327,9 @@ impl Pallet { /// True if the account has at least one provider reference and fewer consumer references than /// the maximum. - pub fn can_inc_consumer(who: &T::AccountId) -> bool { Self::can_accrue_consumers(who, 1) } + pub fn can_inc_consumer(who: &T::AccountId) -> bool { + Self::can_accrue_consumers(who, 1) + } /// Deposits an event into this block's event record. /// @@ -1345,10 +1385,14 @@ impl Pallet { } /// Gets extrinsics count. - pub fn extrinsic_count() -> u32 { ExtrinsicCount::::get().unwrap_or_default() } + pub fn extrinsic_count() -> u32 { + ExtrinsicCount::::get().unwrap_or_default() + } /// Returns all extrinsics len in raw. - pub fn all_extrinsics_len() -> u32 { AllExtrinsicsLen::::get().unwrap_or_default().raw } + pub fn all_extrinsics_len() -> u32 { + AllExtrinsicsLen::::get().unwrap_or_default().raw + } /// Returns all extrinsics len with padding. pub fn all_padded_extrinsics_len() -> u32 { @@ -1530,7 +1574,9 @@ impl Pallet { /// - `O(1)` /// - 1 storage write (codec `O(1)`) /// # - pub fn deposit_log(item: generic::DigestItem) { >::append(item); } + pub fn deposit_log(item: generic::DigestItem) { + >::append(item); + } /// Get the basic externalities for this pallet, useful for tests. #[cfg(any(feature = "std", test))] @@ -1585,7 +1631,9 @@ impl Pallet { /// Set the block number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] - pub fn set_block_number(n: BlockNumberFor) { >::put(n); } + pub fn set_block_number(n: BlockNumberFor) { + >::put(n); + } /// Sets the index of extrinsic that is currently executing. #[cfg(any(feature = "std", test))] @@ -1596,7 +1644,9 @@ impl Pallet { /// Set the parent hash number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", test))] - pub fn set_parent_hash(n: T::Hash) { >::put(n); } + pub fn set_parent_hash(n: T::Hash) { + >::put(n); + } /// Set the current block weight. This should only be used in some integration tests. #[cfg(any(feature = "std", test))] @@ -1653,7 +1703,9 @@ impl Pallet { } /// Return the chain's current runtime version. - pub fn runtime_version() -> RuntimeVersion { T::Version::get() } + pub fn runtime_version() -> RuntimeVersion { + T::Version::get() + } /// Retrieve the account transaction counter from storage. pub fn account_nonce(who: impl EncodeLike) -> T::Nonce { @@ -1718,7 +1770,9 @@ impl Pallet { /// To be called immediately after finishing the initialization of the block /// (e.g., called `on_initialize` for all pallets). - pub fn note_finished_initialize() { ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) } + pub fn note_finished_initialize() { + ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) + } /// An account is being created. pub fn on_created_account(who: T::AccountId, _a: &mut AccountInfo) { @@ -1814,7 +1868,9 @@ impl HandleLifetime for SelfSufficient { /// Event handler which registers a consumer when created. pub struct Consumer(PhantomData); impl HandleLifetime for Consumer { - fn created(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::inc_consumers(t) } + fn created(t: &T::AccountId) -> Result<(), DispatchError> { + Pallet::::inc_consumers(t) + } fn killed(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::dec_consumers(t); @@ -1825,7 +1881,9 @@ impl HandleLifetime for Consumer { impl BlockNumberProvider for Pallet { type BlockNumber = BlockNumberFor; - fn current_block_number() -> Self::BlockNumber { Pallet::::block_number() } + fn current_block_number() -> Self::BlockNumber { + Pallet::::block_number() + } } /// Implement StoredMap for a simple single-item, provide-when-not-default system. This works fine @@ -1834,7 +1892,9 @@ impl BlockNumberProvider for Pallet { /// /// Anything more complex will need more sophisticated logic. impl StoredMap for Pallet { - fn get(k: &T::AccountId) -> T::AccountData { Account::::get(k).data } + fn get(k: &T::AccountId) -> T::AccountData { + Account::::get(k).data + } fn try_mutate_exists>( k: &T::AccountId, @@ -1869,7 +1929,9 @@ pub fn split_inner( pub struct ChainContext(PhantomData); impl Default for ChainContext { - fn default() -> Self { ChainContext(PhantomData) } + fn default() -> Self { + ChainContext(PhantomData) + } } impl Lookup for ChainContext { diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index 5254a61ba..55a6a0cc3 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -75,7 +75,9 @@ const fn is_chunk_size_valid(new_size: NonZeroU32) -> bool { impl BlockLength { #[inline] - pub fn chunk_size(&self) -> NonZeroU32 { self.chunk_size } + pub fn chunk_size(&self) -> NonZeroU32 { + self.chunk_size + } pub fn set_chunk_size(&mut self, new_size: NonZeroU32) -> Result<(), BlockLengthError> { ensure!( @@ -412,11 +414,15 @@ impl Default for BlockWeights { impl BlockWeights { /// Get per-class weight settings. - pub fn get(&self, class: DispatchClass) -> &WeightsPerClass { self.per_class.get(class) } + pub fn get(&self, class: DispatchClass) -> &WeightsPerClass { + self.per_class.get(class) + } /// Verifies correctness of this `BlockWeights` object. pub fn validate(self) -> ValidationResult { - fn or_max(w: Option) -> Weight { w.unwrap_or_else(Weight::max_value) } + fn or_max(w: Option) -> Weight { + w.unwrap_or_else(Weight::max_value) + } let mut error = ValidationErrors::default(); for class in DispatchClass::all() { @@ -643,5 +649,7 @@ mod tests { use super::*; #[test] - fn default_weights_are_valid() { BlockWeights::default().validate().unwrap(); } + fn default_weights_are_valid() { + BlockWeights::default().validate().unwrap(); + } } diff --git a/pallets/system/src/mock.rs b/pallets/system/src/mock.rs index 4b1bd5cd7..724055854 100644 --- a/pallets/system/src/mock.rs +++ b/pallets/system/src/mock.rs @@ -80,7 +80,9 @@ parameter_types! { pub struct RecordKilled; impl OnKilledAccount for RecordKilled { - fn on_killed_account(who: &u64) { Killed::mutate(|r| r.push(*who)) } + fn on_killed_account(who: &u64) { + Killed::mutate(|r| r.push(*who)) + } } impl Config for Test { diff --git a/pallets/system/src/mocking.rs b/pallets/system/src/mocking.rs index 633ac02fa..54a96ac67 100644 --- a/pallets/system/src/mocking.rs +++ b/pallets/system/src/mocking.rs @@ -121,7 +121,9 @@ impl TryFrom<&OpaqueExtrinsic> for MockUncheckedExtrinsic { } impl From> for AppExtrinsic { - fn from(xt: MockUncheckedExtrinsic) -> Self { AppExtrinsic::from(xt.0) } + fn from(xt: MockUncheckedExtrinsic) -> Self { + AppExtrinsic::from(xt.0) + } } /// An implementation of `sp_runtime::traits::Block` to be used in tests. diff --git a/pallets/system/src/offchain.rs b/pallets/system/src/offchain.rs index aa4e3e375..16254acda 100644 --- a/pallets/system/src/offchain.rs +++ b/pallets/system/src/offchain.rs @@ -131,10 +131,14 @@ impl, X> Default for Sign impl, X> Signer { /// Use all available keys for signing. - pub fn all_accounts() -> Signer { Default::default() } + pub fn all_accounts() -> Signer { + Default::default() + } /// Use any of the available keys for signing. - pub fn any_account() -> Signer { Default::default() } + pub fn any_account() -> Signer { + Default::default() + } /// Use provided `accounts` for signing. /// @@ -147,7 +151,9 @@ impl, X> Signer } /// Check if there are any keys that could be used for signing. - pub fn can_sign(&self) -> bool { self.accounts_from_keys().count() > 0 } + pub fn can_sign(&self) -> bool { + self.accounts_from_keys().count() > 0 + } /// Return a vector of the intersection between /// all available accounts and the provided accounts @@ -651,7 +657,9 @@ mod tests { } impl SignedPayload for SimplePayload { - fn public(&self) -> UintAuthorityId { self.public.clone() } + fn public(&self) -> UintAuthorityId { + self.public.clone() + } } struct DummyAppCrypto; diff --git a/pallets/system/src/submitted_data.rs b/pallets/system/src/submitted_data.rs index 81b1e3528..274800c02 100644 --- a/pallets/system/src/submitted_data.rs +++ b/pallets/system/src/submitted_data.rs @@ -23,7 +23,9 @@ pub type RcMetrics = Rc>; impl Metrics { /// Creates a shared metric with internal mutability. - fn new_shared() -> RcMetrics { Rc::new(RefCell::new(Self::default())) } + fn new_shared() -> RcMetrics { + Rc::new(RefCell::new(Self::default())) + } } /// Extracts the `data` field from some types of extrinsics. @@ -43,7 +45,9 @@ pub trait Extractor { impl Extractor for () { type Error = (); - fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { Ok(vec![]) } + fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { + Ok(vec![]) + } } /// It is similar to `Extractor` but it uses `C` type for calls, instead of `AppExtrinsic`. @@ -57,9 +61,13 @@ pub trait Filter { #[cfg(any(feature = "std", test))] impl Filter for () { - fn filter(_: C, _: RcMetrics) -> Vec> { vec![] } + fn filter(_: C, _: RcMetrics) -> Vec> { + vec![] + } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { + vec![] + } } fn extract_and_inspect(opaque: &OpaqueExtrinsic, metrics: RcMetrics) -> Vec> @@ -136,7 +144,9 @@ where impl Hasher for Keccak256Algorithm { type Hash = [u8; 32]; - fn hash(data: &[u8]) -> [u8; 32] { sp_io::hashing::keccak_256(data).into() } + fn hash(data: &[u8]) -> [u8; 32] { + sp_io::hashing::keccak_256(data).into() + } } let mut tree = MerkleTree::::new(); @@ -298,7 +308,9 @@ mod test { } } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { + vec![] + } } #[test] @@ -541,10 +553,13 @@ mod test { let data_tree = MerkleTree::::from_leaves(&leaves); let proof = data_tree.proof(&[1usize]); let root_proof = proof.proof_hashes().to_vec(); - assert_eq!(root_proof, vec![ - hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), - hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), - ]); + assert_eq!( + root_proof, + vec![ + hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), + hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), + ] + ); } #[test] diff --git a/pallets/system/src/tests.rs b/pallets/system/src/tests.rs index 5942a830d..8eaf42835 100644 --- a/pallets/system/src/tests.rs +++ b/pallets/system/src/tests.rs @@ -79,13 +79,16 @@ fn stored_map_works() { assert_ok!(System::insert(&0, 42)); assert!(!System::is_provider_required(&0)); - assert_eq!(Account::::get(0), AccountInfo { - nonce: 0, - providers: 1, - consumers: 0, - sufficients: 0, - data: 42 - }); + assert_eq!( + Account::::get(0), + AccountInfo { + nonce: 0, + providers: 1, + consumers: 0, + sufficients: 0, + data: 42 + } + ); assert_ok!(System::inc_consumers(&0)); assert!(System::is_provider_required(&0)); @@ -203,11 +206,14 @@ fn deposit_event_should_work() { System::note_finished_extrinsics(); System::deposit_event(SysEvent::CodeUpdated); System::finalize(); - assert_eq!(System::events(), vec![EventRecord { - phase: Phase::Finalization, - event: SysEvent::CodeUpdated.into(), - topics: vec![], - }]); + assert_eq!( + System::events(), + vec![EventRecord { + phase: Phase::Finalization, + event: SysEvent::CodeUpdated.into(), + topics: vec![], + }] + ); let normal_base = ::BlockWeights::get() .get(DispatchClass::Normal) @@ -223,46 +229,49 @@ fn deposit_event_should_work() { System::note_finished_extrinsics(); System::deposit_event(SysEvent::NewAccount { account: 3 }); System::finalize(); - assert_eq!(System::events(), vec![ - EventRecord { - phase: Phase::Initialization, - event: SysEvent::NewAccount { account: 32 }.into(), - topics: vec![], - }, - EventRecord { - phase: Phase::ApplyExtrinsic(0), - event: SysEvent::KilledAccount { account: 42 }.into(), - topics: vec![] - }, - EventRecord { - phase: Phase::ApplyExtrinsic(0), - event: SysEvent::ExtrinsicSuccess { - dispatch_info: DispatchInfo { - weight: normal_base, - ..Default::default() + assert_eq!( + System::events(), + vec![ + EventRecord { + phase: Phase::Initialization, + event: SysEvent::NewAccount { account: 32 }.into(), + topics: vec![], + }, + EventRecord { + phase: Phase::ApplyExtrinsic(0), + event: SysEvent::KilledAccount { account: 42 }.into(), + topics: vec![] + }, + EventRecord { + phase: Phase::ApplyExtrinsic(0), + event: SysEvent::ExtrinsicSuccess { + dispatch_info: DispatchInfo { + weight: normal_base, + ..Default::default() + } } - } - .into(), - topics: vec![] - }, - EventRecord { - phase: Phase::ApplyExtrinsic(1), - event: SysEvent::ExtrinsicFailed { - dispatch_error: DispatchError::BadOrigin.into(), - dispatch_info: DispatchInfo { - weight: normal_base, - ..Default::default() + .into(), + topics: vec![] + }, + EventRecord { + phase: Phase::ApplyExtrinsic(1), + event: SysEvent::ExtrinsicFailed { + dispatch_error: DispatchError::BadOrigin.into(), + dispatch_info: DispatchInfo { + weight: normal_base, + ..Default::default() + } } - } - .into(), - topics: vec![] - }, - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 3 }.into(), - topics: vec![] - }, - ]); + .into(), + topics: vec![] + }, + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 3 }.into(), + topics: vec![] + }, + ] + ); }); } @@ -523,34 +532,37 @@ fn deposit_event_topics() { System::finalize(); // Check that topics are reflected in the event record. - assert_eq!(System::events(), vec![ - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 1 }.into(), - topics: topics[0..3].to_vec(), - }, - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 2 }.into(), - topics: topics[0..1].to_vec(), - }, - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 3 }.into(), - topics: topics[1..2].to_vec(), - } - ]); + assert_eq!( + System::events(), + vec![ + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 1 }.into(), + topics: topics[0..3].to_vec(), + }, + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 2 }.into(), + topics: topics[0..1].to_vec(), + }, + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 3 }.into(), + topics: topics[1..2].to_vec(), + } + ] + ); // Check that the topic-events mapping reflects the deposited topics. // Note that these are indexes of the events. - assert_eq!(System::event_topics(&topics[0]), vec![ - (BLOCK_NUMBER, 0), - (BLOCK_NUMBER, 1) - ]); - assert_eq!(System::event_topics(&topics[1]), vec![ - (BLOCK_NUMBER, 0), - (BLOCK_NUMBER, 2) - ]); + assert_eq!( + System::event_topics(&topics[0]), + vec![(BLOCK_NUMBER, 0), (BLOCK_NUMBER, 1)] + ); + assert_eq!( + System::event_topics(&topics[1]), + vec![(BLOCK_NUMBER, 0), (BLOCK_NUMBER, 2)] + ); assert_eq!(System::event_topics(&topics[2]), vec![(BLOCK_NUMBER, 0)]); }); } @@ -738,7 +750,9 @@ fn runtime_updated_digest_emitted_when_heap_pages_changed() { fn ensure_signed_stuff_works() { struct Members; impl SortedMembers for Members { - fn sorted_members() -> Vec { (0..10).collect() } + fn sorted_members() -> Vec { + (0..10).collect() + } } let signed_origin = RuntimeOrigin::signed(0u64); diff --git a/runtime/src/impls.rs b/runtime/src/impls.rs index 14f3ced48..647ae81c0 100644 --- a/runtime/src/impls.rs +++ b/runtime/src/impls.rs @@ -135,9 +135,13 @@ mod multiplier_tests { .unwrap_or_else(|| BlockWeights::get().max_block) } - fn min_multiplier() -> Multiplier { MinimumMultiplier::get() } + fn min_multiplier() -> Multiplier { + MinimumMultiplier::get() + } - fn target() -> Weight { TargetBlockFullness::get() * max_normal() } + fn target() -> Weight { + TargetBlockFullness::get() * max_normal() + } // update based on runtime impl. fn runtime_multiplier_update(fm: Multiplier) -> Multiplier { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 69a0efb72..cdf7c3772 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -605,11 +605,15 @@ parameter_types! { use sp_runtime::traits::Convert; pub struct BalanceToU256; impl Convert for BalanceToU256 { - fn convert(balance: Balance) -> sp_core::U256 { sp_core::U256::from(balance) } + fn convert(balance: Balance) -> sp_core::U256 { + sp_core::U256::from(balance) + } } pub struct U256ToBalance; impl Convert for U256ToBalance { - fn convert(n: sp_core::U256) -> Balance { n.try_into().unwrap_or(Balance::max_value()) } + fn convert(n: sp_core::U256) -> Balance { + n.try_into().unwrap_or(Balance::max_value()) + } } impl pallet_nomination_pools::Config for Runtime { diff --git a/runtime/src/migration.rs b/runtime/src/migration.rs index 1bfb159d3..d030f0125 100644 --- a/runtime/src/migration.rs +++ b/runtime/src/migration.rs @@ -29,7 +29,9 @@ use crate::{Bounties, NominationPools, Runtime, Weight}; struct NominationPoolsMigrationV4OldPallet; impl Get for NominationPoolsMigrationV4OldPallet { - fn get() -> Perbill { Perbill::zero() } + fn get() -> Perbill { + Perbill::zero() + } } /// Implements `OnRuntimeUpgrade` trait. @@ -211,7 +213,9 @@ mod nomination_pools { pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); #[cfg(feature = "try-runtime")] - pub(crate) fn pre_upgrade() -> Result, &'static str> { Ok(sp_std::vec![]) } + pub(crate) fn pre_upgrade() -> Result, &'static str> { + Ok(sp_std::vec![]) + } #[cfg(feature = "try-runtime")] pub(crate) fn post_upgrade(_state: Vec) -> Result<(), &'static str> { diff --git a/rustfmt.toml b/rustfmt.toml index 82b712fa8..bb55bd1e8 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,10 +1,13 @@ -binop_separator = "Back" -comment_width = 120 -imports_granularity = "Crate" -max_width = 120 -reorder_imports = true -tab_spaces = 4 -trailing_semicolon = true -use_small_heuristics = "Max" +match_block_trailing_comma = true use_field_init_shorthand = true -wrap_comments = true +edition = "2021" +hard_tabs = true + +# Disabled on Stable +# +# fn_single_line = true +# match_arm_blocks = true +# imports_granularity = "Crate" +# overflow_delimited_expr = true +# reorder_impl_items = true +# group_imports = "StdExternalCrate" \ No newline at end of file