difftreelog
refactor(identity) displace set-identities to identity pallet
in: master
19 files changed
Makefilediffbeforeafterboth--- a/Makefile
+++ b/Makefile
@@ -133,6 +133,10 @@
bench-collator-selection:
make _bench PALLET=collator-selection
+.PHONY: bench-identity
+bench-identity:
+ make _bench PALLET=identity
+
.PHONY: bench-app-promotion
bench-app-promotion:
make _bench PALLET=app-promotion PALLET_DIR=app-promotion
pallets/data-management/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/data-management/src/benchmarking.rs
+++ b/pallets/data-management/src/benchmarking.rs
@@ -62,28 +62,4 @@
use codec::Encode;
let logs = (0..b).map(|_| <T as Config>::RuntimeEvent::from(crate::Event::<T>::TestEvent).encode()).collect::<Vec<_>>();
}: _(RawOrigin::Root, logs)
-
- set_identities {
- let b in 0..600;
- use frame_benchmarking::account;
- use pallet_identity::{BalanceOf, Registration, IdentityInfo};
- let identities = (0..b).map(|i| (
- account("caller", i, 0),
- Some(Registration::<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields> {
- judgements: Default::default(),
- deposit: Default::default(),
- info: IdentityInfo {
- additional: Default::default(),
- display: Default::default(),
- legal: Default::default(),
- web: Default::default(),
- riot: Default::default(),
- email: Default::default(),
- pgp_fingerprint: None,
- image: Default::default(),
- twitter: Default::default(),
- },
- }),
- )).collect::<Vec<_>>();
- }: _(RawOrigin::Root, identities)
}
pallets/data-management/src/lib.rsdiffbeforeafterboth--- a/pallets/data-management/src/lib.rs
+++ b/pallets/data-management/src/lib.rs
@@ -34,10 +34,9 @@
use sp_std::vec::Vec;
use super::weights::WeightInfo;
use pallet_evm::{PrecompileHandle, Pallet as PalletEvm};
- use pallet_identity::Registration;
#[pallet::config]
- pub trait Config: frame_system::Config + pallet_evm::Config + pallet_identity::Config {
+ pub trait Config: frame_system::Config + pallet_evm::Config {
/// Weights
type WeightInfo: WeightInfo;
/// The overarching event type.
@@ -147,29 +146,6 @@
<T as frame_system::Config>::RuntimeEvent::decode(&mut event.as_slice())
.map_err(|_| <Error<T>>::BadEvent)?,
);
- }
- Ok(())
- }
-
- /// Insert or remove identities.
- #[pallet::call_index(5)]
- #[pallet::weight(<SelfWeightOf<T>>::set_identities(identities.len() as u32))] // todo:collator weight
- pub fn set_identities(
- origin: OriginFor<T>,
- identities: Vec<(
- T::AccountId,
- Option<
- Registration<
- pallet_identity::BalanceOf<T>,
- T::MaxRegistrars,
- T::MaxAdditionalFields,
- >,
- >,
- )>,
- ) -> DispatchResult {
- ensure_root(origin)?;
- for identity in identities {
- <pallet_identity::IdentityOf<T>>::set(identity.0, identity.1);
}
Ok(())
}
pallets/data-management/src/weights.rsdiffbeforeafterboth--- a/pallets/data-management/src/weights.rs
+++ b/pallets/data-management/src/weights.rs
@@ -39,7 +39,6 @@
fn finish(b: u32, ) -> Weight;
fn insert_eth_logs(b: u32, ) -> Weight;
fn insert_events(b: u32, ) -> Weight;
- fn set_identities(b: u32, ) -> Weight;
}
/// Weights for pallet_data_management using the Substrate node and recommended hardware.
@@ -77,11 +76,6 @@
.saturating_add(Weight::from_ref_time(722_345 as u64).saturating_mul(b as u64))
}
fn insert_events(b: u32, ) -> Weight {
- Weight::from_ref_time(10_936_376 as u64)
- // Standard Error: 1_227
- .saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
- }
- fn set_identities(b: u32, ) -> Weight {
Weight::from_ref_time(10_936_376 as u64)
// Standard Error: 1_227
.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
@@ -122,11 +116,6 @@
.saturating_add(Weight::from_ref_time(722_345 as u64).saturating_mul(b as u64))
}
fn insert_events(b: u32, ) -> Weight {
- Weight::from_ref_time(10_936_376 as u64)
- // Standard Error: 1_227
- .saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
- }
- fn set_identities(b: u32, ) -> Weight {
Weight::from_ref_time(10_936_376 as u64)
// Standard Error: 1_227
.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
pallets/identity/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/identity/src/benchmarking.rs
+++ b/pallets/identity/src/benchmarking.rs
@@ -412,6 +412,21 @@
ensure!(!IdentityOf::<T>::contains_key(&target), "Identity not removed");
}
+ set_identities {
+ let x in 0 .. T::MaxAdditionalFields::get();
+ let n in 0..600;
+ use frame_benchmarking::account;
+ let identities = (0..n).map(|i| (
+ account("caller", i, 0),
+ Some(Registration::<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields> {
+ judgements: Default::default(),
+ deposit: Default::default(),
+ info: create_identity_info::<T>(x),
+ }),
+ )).collect::<Vec<_>>();
+ let origin = T::ForceOrigin::successful_origin();
+ }: _<T::RuntimeOrigin>(origin, identities)
+
add_sub {
let s in 0 .. T::MaxSubAccounts::get() - 1;
pallets/identity/src/lib.rsdiffbeforeafterboth--- a/pallets/identity/src/lib.rs
+++ b/pallets/identity/src/lib.rs
@@ -1089,6 +1089,26 @@
});
Ok(())
}
+
+ /// Insert or remove identities.
+ #[pallet::call_index(15)]
+ #[pallet::weight(T::WeightInfo::set_identities(
+ T::MaxAdditionalFields::get(), // X
+ identities.len() as u32, // N
+ ))] // todo:collator weight
+ pub fn set_identities(
+ origin: OriginFor<T>,
+ identities: Vec<(
+ T::AccountId,
+ Option<Registration<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields>>,
+ )>,
+ ) -> DispatchResult {
+ T::ForceOrigin::ensure_origin(origin)?;
+ for identity in identities {
+ IdentityOf::<T>::set(identity.0, identity.1);
+ }
+ Ok(())
+ }
}
}
pallets/identity/src/weights.rsdiffbeforeafterboth--- a/pallets/identity/src/weights.rs
+++ b/pallets/identity/src/weights.rs
@@ -76,6 +76,7 @@
fn set_fields(r: u32, ) -> Weight;
fn provide_judgement(r: u32, x: u32, ) -> Weight;
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight;
+ fn set_identities(x: u32, n: u32, ) -> Weight;
fn add_sub(s: u32, ) -> Weight;
fn rename_sub(s: u32, ) -> Weight;
fn remove_sub(s: u32, ) -> Weight;
@@ -245,6 +246,19 @@
.saturating_add(T::DbWeight::get().writes(3 as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
}
+ // Storage: Identity IdentityOf (r:1 w:1)
+ /// The range of component `x` is `[0, 100]`.
+ /// The range of component `n` is `[0, 600]`.
+ fn set_identities(x: u32, n: u32) -> Weight {
+ // Minimum execution time: 41_872 nanoseconds.
+ Weight::from_ref_time(40_230_216 as u64)
+ // Standard Error: 2_342
+ .saturating_add(Weight::from_ref_time(145_168 as u64))
+ // Standard Error: 457
+ .saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
+ .saturating_add(T::DbWeight::get().reads(1 as u64))
+ .saturating_add(T::DbWeight::get().writes(1 as u64).saturating_mul(n as u64))
+ }
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
@@ -455,6 +469,19 @@
.saturating_add(RocksDbWeight::get().writes(3 as u64))
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
}
+ // Storage: Identity IdentityOf (r:1 w:1)
+ /// The range of component `x` is `[0, 100]`.
+ /// The range of component `n` is `[0, 600]`.
+ fn set_identities(x: u32, n: u32) -> Weight {
+ // Minimum execution time: 41_872 nanoseconds.
+ Weight::from_ref_time(40_230_216 as u64)
+ // Standard Error: 2_342
+ .saturating_add(Weight::from_ref_time(145_168 as u64))
+ // Standard Error: 457
+ .saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
+ .saturating_add(RocksDbWeight::get().reads(1 as u64))
+ .saturating_add(RocksDbWeight::get().writes(1 as u64).saturating_mul(n as u64))
+ }
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
runtime/common/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -708,6 +708,9 @@
#[cfg(feature = "collator-selection")]
list_benchmark!(list, extra, pallet_collator_selection, CollatorSelection);
+ #[cfg(feature = "collator-selection")]
+ list_benchmark!(list, extra, pallet_identity, Identity);
+
#[cfg(feature = "foreign-assets")]
list_benchmark!(list, extra, pallet_foreign_assets, ForeignAssets);
@@ -774,6 +777,9 @@
#[cfg(feature = "collator-selection")]
add_benchmark!(params, batches, pallet_collator_selection, CollatorSelection);
+ #[cfg(feature = "collator-selection")]
+ add_benchmark!(params, batches, pallet_identity, Identity);
+
#[cfg(feature = "foreign-assets")]
add_benchmark!(params, batches, pallet_foreign_assets, ForeignAssets);
runtime/opal/Cargo.tomldiffbeforeafterboth1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Opal Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'opal-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'opal-runtime']20runtime-benchmarks = [21 'hex-literal',22 'frame-benchmarking',23 'frame-support/runtime-benchmarks',24 'frame-system-benchmarking',25 'frame-system/runtime-benchmarks',26 'pallet-ethereum/runtime-benchmarks',27 'pallet-data-management/runtime-benchmarks',28 'pallet-evm-coder-substrate/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',32 'pallet-structure/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',38 'pallet-foreign-assets/runtime-benchmarks',39 'pallet-unique/runtime-benchmarks',40 'pallet-inflation/runtime-benchmarks',41 'pallet-app-promotion/runtime-benchmarks',42 'pallet-collator-selection/runtime-benchmarks',43 'pallet-unique-scheduler-v2/runtime-benchmarks',44 'pallet-xcm/runtime-benchmarks',45 'sp-runtime/runtime-benchmarks',46 'xcm-builder/runtime-benchmarks',47 'pallet-maintenance/runtime-benchmarks',48 'cumulus-pallet-parachain-system/runtime-benchmarks'49]50try-runtime = [51 'frame-try-runtime',52 'frame-try-runtime?/try-runtime',53 'frame-executive/try-runtime',54 'frame-support/try-runtime',55 'frame-system/try-runtime',56 'cumulus-pallet-parachain-system/try-runtime',57 'parachain-info/try-runtime',58 'pallet-aura/try-runtime',59 'cumulus-pallet-aura-ext/try-runtime',60 'pallet-balances/try-runtime',61 'pallet-randomness-collective-flip/try-runtime',62 'pallet-timestamp/try-runtime',63 'pallet-transaction-payment/try-runtime',64 'pallet-treasury/try-runtime',65 'pallet-sudo/try-runtime',66 'orml-vesting/try-runtime',67 'orml-xtokens/try-runtime',68 'orml-tokens/try-runtime',69 'cumulus-pallet-xcmp-queue/try-runtime',70 'pallet-xcm/try-runtime',71 'cumulus-pallet-xcm/try-runtime',72 'cumulus-pallet-dmp-queue/try-runtime',73 "pallet-authorship/try-runtime",74 "pallet-collator-selection/try-runtime",75 "pallet-session/try-runtime",76 "pallet-identity/try-runtime",77 'pallet-inflation/try-runtime',78 'pallet-unique/try-runtime',79 'pallet-configuration/try-runtime',80 'pallet-charge-transaction/try-runtime',81 'pallet-common/try-runtime',82 'pallet-fungible/try-runtime',83 'pallet-refungible/try-runtime',84 'pallet-nonfungible/try-runtime',85 'pallet-structure/try-runtime',86 'pallet-proxy-rmrk-core/try-runtime',87 'pallet-proxy-rmrk-equip/try-runtime',88 'pallet-app-promotion/try-runtime',89 'pallet-foreign-assets/try-runtime',90 'pallet-ethereum/try-runtime',91 'pallet-evm/try-runtime',92 'pallet-evm-coder-substrate/try-runtime',93 'pallet-evm-contract-helpers/try-runtime',94 'pallet-evm-transaction-payment/try-runtime',95 'pallet-data-management/try-runtime',96 'pallet-base-fee/try-runtime',97 'pallet-unique-scheduler-v2/try-runtime',98 'pallet-maintenance/try-runtime',99 'pallet-test-utils?/try-runtime',100 'fp-self-contained/try-runtime',101]102std = [103 'codec/std',104 'cumulus-pallet-aura-ext/std',105 'cumulus-pallet-parachain-system/std',106 'cumulus-pallet-xcm/std',107 'cumulus-pallet-xcmp-queue/std',108 'cumulus-primitives-core/std',109 'cumulus-primitives-utility/std',110 'frame-try-runtime/std',111 'frame-executive/std',112 'frame-support/std',113 'frame-system/std',114 'frame-system-rpc-runtime-api/std',115 'pallet-aura/std',116 'pallet-balances/std',117 # 'pallet-contracts/std',118 # 'pallet-contracts-primitives/std',119 # 'pallet-contracts-rpc-runtime-api/std',120 # 'pallet-contract-helpers/std',121 "pallet-authorship/std",122 'pallet-collator-selection/std',123 "pallet-session/std",124 'pallet-identity/std',125 'pallet-randomness-collective-flip/std',126 'pallet-sudo/std',127 'pallet-timestamp/std',128 'pallet-transaction-payment/std',129 'pallet-transaction-payment-rpc-runtime-api/std',130 'pallet-treasury/std',131 'pallet-evm/std',132 'pallet-data-management/std',133 'pallet-evm-contract-helpers/std',134 'pallet-evm-transaction-payment/std',135 'pallet-evm-coder-substrate/std',136 'pallet-ethereum/std',137 'pallet-base-fee/std',138 'fp-rpc/std',139 'up-rpc/std',140 'up-pov-estimate-rpc/std',141 'app-promotion-rpc/std',142 'fp-evm-mapping/std',143 'fp-self-contained/std',144 'parachain-info/std',145 'serde',146 'pallet-inflation/std',147 'pallet-configuration/std',148 'pallet-app-promotion/std',149 'pallet-common/std',150 'pallet-structure/std',151 'pallet-fungible/std',152 'pallet-refungible/std',153 'pallet-nonfungible/std',154 'pallet-proxy-rmrk-core/std',155 'pallet-proxy-rmrk-equip/std',156 'pallet-unique/std',157 'pallet-unique-scheduler-v2/std',158 'pallet-charge-transaction/std',159 'up-data-structs/std',160 'sp-api/std',161 'sp-block-builder/std',162 "sp-consensus-aura/std",163 'sp-core/std',164 'sp-inherents/std',165 'sp-io/std',166 'sp-offchain/std',167 'sp-runtime/std',168 'sp-session/std',169 'sp-std/std',170 'sp-transaction-pool/std',171 'sp-version/std',172 'xcm/std',173 'xcm-builder/std',174 'xcm-executor/std',175 'up-common/std',176 'rmrk-rpc/std',177 'evm-coder/std',178 'up-sponsorship/std',179180 "orml-vesting/std",181 "orml-tokens/std",182 "orml-xtokens/std",183 "orml-traits/std",184 "pallet-foreign-assets/std",185186 'pallet-maintenance/std',187 'pallet-test-utils?/std',188]189limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']190opal-runtime = [191 'refungible',192 'rmrk',193 'app-promotion',194 'collator-selection',195 'foreign-assets',196 'pallet-test-utils',197]198become-sapphire = []199pov-estimate = []200201refungible = []202scheduler = []203rmrk = []204foreign-assets = []205app-promotion = []206collator-selection = []207208################################################################################209# Substrate Dependencies210211[dependencies.codec]212default-features = false213features = ['derive']214package = 'parity-scale-codec'215version = '3.1.2'216217[dependencies.frame-benchmarking]218default-features = false219git = "https://github.com/paritytech/substrate"220optional = true221branch = "polkadot-v0.9.36"222223[dependencies.frame-try-runtime]224default-features = false225git = "https://github.com/paritytech/substrate"226optional = true227branch = "polkadot-v0.9.36"228229[dependencies.frame-executive]230default-features = false231git = "https://github.com/paritytech/substrate"232branch = "polkadot-v0.9.36"233234[dependencies.frame-support]235default-features = false236git = "https://github.com/paritytech/substrate"237branch = "polkadot-v0.9.36"238239[dependencies.frame-system]240default-features = false241git = "https://github.com/paritytech/substrate"242branch = "polkadot-v0.9.36"243244[dependencies.frame-system-benchmarking]245default-features = false246git = "https://github.com/paritytech/substrate"247optional = true248branch = "polkadot-v0.9.36"249250[dependencies.frame-system-rpc-runtime-api]251default-features = false252git = "https://github.com/paritytech/substrate"253branch = "polkadot-v0.9.36"254255[dependencies.hex-literal]256optional = true257version = '0.3.3'258259[dependencies.serde]260default-features = false261features = ['derive']262optional = true263version = '1.0.130'264265[dependencies.pallet-aura]266default-features = false267git = "https://github.com/paritytech/substrate"268branch = "polkadot-v0.9.36"269270[dependencies.pallet-authorship]271default-features = false272git = 'https://github.com/paritytech/substrate'273branch = 'polkadot-v0.9.36'274275[dependencies.pallet-session]276default-features = false277git = 'https://github.com/paritytech/substrate'278branch = 'polkadot-v0.9.36'279280[dependencies.pallet-balances]281default-features = false282git = "https://github.com/paritytech/substrate"283branch = "polkadot-v0.9.36"284285# Contracts specific packages286# [dependencies.pallet-contracts]287# git = 'https://github.com/paritytech/substrate'288# default-features = false289# branch = 'master'290# version = '4.0.0-dev'291292# [dependencies.pallet-contracts-primitives]293# git = 'https://github.com/paritytech/substrate'294# default-features = false295# branch = 'master'296# version = '4.0.0-dev'297298# [dependencies.pallet-contracts-rpc-runtime-api]299# git = 'https://github.com/paritytech/substrate'300# default-features = false301# branch = 'master'302# version = '4.0.0-dev'303304[dependencies.pallet-randomness-collective-flip]305default-features = false306git = "https://github.com/paritytech/substrate"307branch = "polkadot-v0.9.36"308309[dependencies.pallet-sudo]310default-features = false311git = "https://github.com/paritytech/substrate"312branch = "polkadot-v0.9.36"313314[dependencies.pallet-timestamp]315default-features = false316git = "https://github.com/paritytech/substrate"317branch = "polkadot-v0.9.36"318319[dependencies.pallet-transaction-payment]320default-features = false321git = "https://github.com/paritytech/substrate"322branch = "polkadot-v0.9.36"323324[dependencies.pallet-transaction-payment-rpc-runtime-api]325default-features = false326git = "https://github.com/paritytech/substrate"327branch = "polkadot-v0.9.36"328329[dependencies.pallet-treasury]330default-features = false331git = "https://github.com/paritytech/substrate"332branch = "polkadot-v0.9.36"333334[dependencies.sp-arithmetic]335default-features = false336git = "https://github.com/paritytech/substrate"337branch = "polkadot-v0.9.36"338339[dependencies.sp-api]340default-features = false341git = "https://github.com/paritytech/substrate"342branch = "polkadot-v0.9.36"343344[dependencies.sp-block-builder]345default-features = false346git = "https://github.com/paritytech/substrate"347branch = "polkadot-v0.9.36"348349[dependencies.sp-core]350default-features = false351git = "https://github.com/paritytech/substrate"352branch = "polkadot-v0.9.36"353354[dependencies.sp-consensus-aura]355default-features = false356git = "https://github.com/paritytech/substrate"357branch = "polkadot-v0.9.36"358359[dependencies.sp-inherents]360default-features = false361git = "https://github.com/paritytech/substrate"362branch = "polkadot-v0.9.36"363364[dependencies.sp-io]365default-features = false366git = "https://github.com/paritytech/substrate"367branch = "polkadot-v0.9.36"368369[dependencies.sp-offchain]370default-features = false371git = "https://github.com/paritytech/substrate"372branch = "polkadot-v0.9.36"373374[dependencies.sp-runtime]375default-features = false376git = "https://github.com/paritytech/substrate"377branch = "polkadot-v0.9.36"378379[dependencies.sp-session]380default-features = false381git = "https://github.com/paritytech/substrate"382branch = "polkadot-v0.9.36"383384[dependencies.sp-std]385default-features = false386git = "https://github.com/paritytech/substrate"387branch = "polkadot-v0.9.36"388389[dependencies.sp-transaction-pool]390default-features = false391git = "https://github.com/paritytech/substrate"392branch = "polkadot-v0.9.36"393394[dependencies.sp-version]395default-features = false396git = "https://github.com/paritytech/substrate"397branch = "polkadot-v0.9.36"398399[dependencies.smallvec]400version = '1.6.1'401402################################################################################403# Cumulus dependencies404405[dependencies.parachain-info]406default-features = false407git = "https://github.com/paritytech/cumulus"408branch = "polkadot-v0.9.36"409410[dependencies.cumulus-pallet-aura-ext]411git = "https://github.com/paritytech/cumulus"412branch = "polkadot-v0.9.36"413default-features = false414415[dependencies.cumulus-pallet-parachain-system]416git = "https://github.com/paritytech/cumulus"417branch = "polkadot-v0.9.36"418default-features = false419420[dependencies.cumulus-primitives-core]421git = "https://github.com/paritytech/cumulus"422branch = "polkadot-v0.9.36"423default-features = false424425[dependencies.cumulus-pallet-xcm]426git = "https://github.com/paritytech/cumulus"427branch = "polkadot-v0.9.36"428default-features = false429430[dependencies.cumulus-pallet-dmp-queue]431git = "https://github.com/paritytech/cumulus"432branch = "polkadot-v0.9.36"433default-features = false434435[dependencies.cumulus-pallet-xcmp-queue]436git = "https://github.com/paritytech/cumulus"437branch = "polkadot-v0.9.36"438default-features = false439440[dependencies.cumulus-primitives-utility]441git = "https://github.com/paritytech/cumulus"442branch = "polkadot-v0.9.36"443default-features = false444445[dependencies.cumulus-primitives-timestamp]446git = "https://github.com/paritytech/cumulus"447branch = "polkadot-v0.9.36"448default-features = false449450################################################################################451# Polkadot dependencies452453[dependencies.polkadot-parachain]454git = "https://github.com/paritytech/polkadot"455branch = "release-v0.9.36"456default-features = false457458[dependencies.xcm]459git = "https://github.com/paritytech/polkadot"460branch = "release-v0.9.36"461default-features = false462463[dependencies.xcm-builder]464git = "https://github.com/paritytech/polkadot"465branch = "release-v0.9.36"466default-features = false467468[dependencies.xcm-executor]469git = "https://github.com/paritytech/polkadot"470branch = "release-v0.9.36"471default-features = false472473[dependencies.pallet-xcm]474git = "https://github.com/paritytech/polkadot"475branch = "release-v0.9.36"476default-features = false477478################################################################################479# local dependencies480481[dependencies]482orml-vesting.workspace = true483orml-xtokens.workspace = true484orml-tokens.workspace = true485orml-traits.workspace = true486487log = { version = "0.4.16", default-features = false }488up-common = { path = "../../primitives/common", default-features = false }489scale-info = { version = "2.0.1", default-features = false, features = [490 "derive",491] }492derivative = "2.2.0"493pallet-unique = { path = '../../pallets/unique', default-features = false }494up-rpc = { path = "../../primitives/rpc", default-features = false }495up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }496app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }497rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }498fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }499fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }500pallet-inflation = { path = '../../pallets/inflation', default-features = false }501pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }502up-data-structs = { path = '../../primitives/data-structs', default-features = false }503pallet-collator-selection = { default-features = false, path = "../../pallets/collator-selection" }504pallet-identity = { default-features = false, path = "../../pallets/identity" }505pallet-configuration = { default-features = false, path = "../../pallets/configuration" }506pallet-common = { default-features = false, path = "../../pallets/common" }507pallet-structure = { default-features = false, path = "../../pallets/structure" }508pallet-fungible = { default-features = false, path = "../../pallets/fungible" }509pallet-refungible = { default-features = false, path = "../../pallets/refungible" }510pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }511pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }512pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }513pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.36", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }514pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }515pallet-data-management = { path = '../../pallets/data-management', default-features = false }516pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }517pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }518pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }519pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }520pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }521pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }522fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }523fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }524pallet-evm-precompile-simple = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }525evm-coder = { default-features = false, path = '../../crates/evm-coder' }526up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.36' }527pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }528pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }529precompile-utils-macro = { path = "../common/ethereum/precompiles/utils/macro" }530num_enum = { version = "0.5.3", default-features = false }531532################################################################################533# Test dependencies534535pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }536537################################################################################538# Other Dependencies539540impl-trait-for-tuples = "0.2.2"541542################################################################################543# Dev Dependencies544545[dev-dependencies.logtest]546version = "2.0.0"547548################################################################################549# Build Dependencies550551[build-dependencies.substrate-wasm-builder]552git = "https://github.com/paritytech/substrate"553branch = "polkadot-v0.9.36"1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Opal Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'opal-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version.workspace = true1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'opal-runtime']20runtime-benchmarks = [21 'hex-literal',22 'frame-benchmarking',23 'frame-support/runtime-benchmarks',24 'frame-system-benchmarking',25 'frame-system/runtime-benchmarks',26 'pallet-ethereum/runtime-benchmarks',27 'pallet-data-management/runtime-benchmarks',28 'pallet-evm-coder-substrate/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',32 'pallet-structure/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',36 'pallet-proxy-rmrk-core/runtime-benchmarks',37 'pallet-proxy-rmrk-equip/runtime-benchmarks',38 'pallet-foreign-assets/runtime-benchmarks',39 'pallet-unique/runtime-benchmarks',40 'pallet-inflation/runtime-benchmarks',41 'pallet-app-promotion/runtime-benchmarks',42 'pallet-collator-selection/runtime-benchmarks',43 'pallet-identity/runtime-benchmarks',44 'pallet-unique-scheduler-v2/runtime-benchmarks',45 'pallet-xcm/runtime-benchmarks',46 'sp-runtime/runtime-benchmarks',47 'xcm-builder/runtime-benchmarks',48 'pallet-maintenance/runtime-benchmarks',49 'cumulus-pallet-parachain-system/runtime-benchmarks'50]51try-runtime = [52 'frame-try-runtime',53 'frame-try-runtime?/try-runtime',54 'frame-executive/try-runtime',55 'frame-support/try-runtime',56 'frame-system/try-runtime',57 'cumulus-pallet-parachain-system/try-runtime',58 'parachain-info/try-runtime',59 'pallet-aura/try-runtime',60 'cumulus-pallet-aura-ext/try-runtime',61 'pallet-balances/try-runtime',62 'pallet-randomness-collective-flip/try-runtime',63 'pallet-timestamp/try-runtime',64 'pallet-transaction-payment/try-runtime',65 'pallet-treasury/try-runtime',66 'pallet-sudo/try-runtime',67 'orml-vesting/try-runtime',68 'orml-xtokens/try-runtime',69 'orml-tokens/try-runtime',70 'cumulus-pallet-xcmp-queue/try-runtime',71 'pallet-xcm/try-runtime',72 'cumulus-pallet-xcm/try-runtime',73 'cumulus-pallet-dmp-queue/try-runtime',74 "pallet-authorship/try-runtime",75 "pallet-collator-selection/try-runtime",76 "pallet-session/try-runtime",77 "pallet-identity/try-runtime",78 'pallet-inflation/try-runtime',79 'pallet-unique/try-runtime',80 'pallet-configuration/try-runtime',81 'pallet-charge-transaction/try-runtime',82 'pallet-common/try-runtime',83 'pallet-fungible/try-runtime',84 'pallet-refungible/try-runtime',85 'pallet-nonfungible/try-runtime',86 'pallet-structure/try-runtime',87 'pallet-proxy-rmrk-core/try-runtime',88 'pallet-proxy-rmrk-equip/try-runtime',89 'pallet-app-promotion/try-runtime',90 'pallet-foreign-assets/try-runtime',91 'pallet-ethereum/try-runtime',92 'pallet-evm/try-runtime',93 'pallet-evm-coder-substrate/try-runtime',94 'pallet-evm-contract-helpers/try-runtime',95 'pallet-evm-transaction-payment/try-runtime',96 'pallet-data-management/try-runtime',97 'pallet-base-fee/try-runtime',98 'pallet-unique-scheduler-v2/try-runtime',99 'pallet-maintenance/try-runtime',100 'pallet-test-utils?/try-runtime',101 'fp-self-contained/try-runtime',102]103std = [104 'codec/std',105 'cumulus-pallet-aura-ext/std',106 'cumulus-pallet-parachain-system/std',107 'cumulus-pallet-xcm/std',108 'cumulus-pallet-xcmp-queue/std',109 'cumulus-primitives-core/std',110 'cumulus-primitives-utility/std',111 'frame-try-runtime/std',112 'frame-executive/std',113 'frame-support/std',114 'frame-system/std',115 'frame-system-rpc-runtime-api/std',116 'pallet-aura/std',117 'pallet-balances/std',118 # 'pallet-contracts/std',119 # 'pallet-contracts-primitives/std',120 # 'pallet-contracts-rpc-runtime-api/std',121 # 'pallet-contract-helpers/std',122 "pallet-authorship/std",123 'pallet-collator-selection/std',124 "pallet-session/std",125 'pallet-identity/std',126 'pallet-randomness-collective-flip/std',127 'pallet-sudo/std',128 'pallet-timestamp/std',129 'pallet-transaction-payment/std',130 'pallet-transaction-payment-rpc-runtime-api/std',131 'pallet-treasury/std',132 'pallet-evm/std',133 'pallet-data-management/std',134 'pallet-evm-contract-helpers/std',135 'pallet-evm-transaction-payment/std',136 'pallet-evm-coder-substrate/std',137 'pallet-ethereum/std',138 'pallet-base-fee/std',139 'fp-rpc/std',140 'up-rpc/std',141 'up-pov-estimate-rpc/std',142 'app-promotion-rpc/std',143 'fp-evm-mapping/std',144 'fp-self-contained/std',145 'parachain-info/std',146 'serde',147 'pallet-inflation/std',148 'pallet-configuration/std',149 'pallet-app-promotion/std',150 'pallet-common/std',151 'pallet-structure/std',152 'pallet-fungible/std',153 'pallet-refungible/std',154 'pallet-nonfungible/std',155 'pallet-proxy-rmrk-core/std',156 'pallet-proxy-rmrk-equip/std',157 'pallet-unique/std',158 'pallet-unique-scheduler-v2/std',159 'pallet-charge-transaction/std',160 'up-data-structs/std',161 'sp-api/std',162 'sp-block-builder/std',163 "sp-consensus-aura/std",164 'sp-core/std',165 'sp-inherents/std',166 'sp-io/std',167 'sp-offchain/std',168 'sp-runtime/std',169 'sp-session/std',170 'sp-std/std',171 'sp-transaction-pool/std',172 'sp-version/std',173 'xcm/std',174 'xcm-builder/std',175 'xcm-executor/std',176 'up-common/std',177 'rmrk-rpc/std',178 'evm-coder/std',179 'up-sponsorship/std',180181 "orml-vesting/std",182 "orml-tokens/std",183 "orml-xtokens/std",184 "orml-traits/std",185 "pallet-foreign-assets/std",186187 'pallet-maintenance/std',188 'pallet-test-utils?/std',189]190limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']191opal-runtime = [192 'refungible',193 'rmrk',194 'app-promotion',195 'collator-selection',196 'foreign-assets',197 'pallet-test-utils',198]199become-sapphire = []200pov-estimate = []201202refungible = []203scheduler = []204rmrk = []205foreign-assets = []206app-promotion = []207collator-selection = []208209################################################################################210# Substrate Dependencies211212[dependencies.codec]213default-features = false214features = ['derive']215package = 'parity-scale-codec'216version = '3.1.2'217218[dependencies.frame-benchmarking]219default-features = false220git = "https://github.com/paritytech/substrate"221optional = true222branch = "polkadot-v0.9.36"223224[dependencies.frame-try-runtime]225default-features = false226git = "https://github.com/paritytech/substrate"227optional = true228branch = "polkadot-v0.9.36"229230[dependencies.frame-executive]231default-features = false232git = "https://github.com/paritytech/substrate"233branch = "polkadot-v0.9.36"234235[dependencies.frame-support]236default-features = false237git = "https://github.com/paritytech/substrate"238branch = "polkadot-v0.9.36"239240[dependencies.frame-system]241default-features = false242git = "https://github.com/paritytech/substrate"243branch = "polkadot-v0.9.36"244245[dependencies.frame-system-benchmarking]246default-features = false247git = "https://github.com/paritytech/substrate"248optional = true249branch = "polkadot-v0.9.36"250251[dependencies.frame-system-rpc-runtime-api]252default-features = false253git = "https://github.com/paritytech/substrate"254branch = "polkadot-v0.9.36"255256[dependencies.hex-literal]257optional = true258version = '0.3.3'259260[dependencies.serde]261default-features = false262features = ['derive']263optional = true264version = '1.0.130'265266[dependencies.pallet-aura]267default-features = false268git = "https://github.com/paritytech/substrate"269branch = "polkadot-v0.9.36"270271[dependencies.pallet-authorship]272default-features = false273git = 'https://github.com/paritytech/substrate'274branch = 'polkadot-v0.9.36'275276[dependencies.pallet-session]277default-features = false278git = 'https://github.com/paritytech/substrate'279branch = 'polkadot-v0.9.36'280281[dependencies.pallet-balances]282default-features = false283git = "https://github.com/paritytech/substrate"284branch = "polkadot-v0.9.36"285286# Contracts specific packages287# [dependencies.pallet-contracts]288# git = 'https://github.com/paritytech/substrate'289# default-features = false290# branch = 'master'291# version = '4.0.0-dev'292293# [dependencies.pallet-contracts-primitives]294# git = 'https://github.com/paritytech/substrate'295# default-features = false296# branch = 'master'297# version = '4.0.0-dev'298299# [dependencies.pallet-contracts-rpc-runtime-api]300# git = 'https://github.com/paritytech/substrate'301# default-features = false302# branch = 'master'303# version = '4.0.0-dev'304305[dependencies.pallet-randomness-collective-flip]306default-features = false307git = "https://github.com/paritytech/substrate"308branch = "polkadot-v0.9.36"309310[dependencies.pallet-sudo]311default-features = false312git = "https://github.com/paritytech/substrate"313branch = "polkadot-v0.9.36"314315[dependencies.pallet-timestamp]316default-features = false317git = "https://github.com/paritytech/substrate"318branch = "polkadot-v0.9.36"319320[dependencies.pallet-transaction-payment]321default-features = false322git = "https://github.com/paritytech/substrate"323branch = "polkadot-v0.9.36"324325[dependencies.pallet-transaction-payment-rpc-runtime-api]326default-features = false327git = "https://github.com/paritytech/substrate"328branch = "polkadot-v0.9.36"329330[dependencies.pallet-treasury]331default-features = false332git = "https://github.com/paritytech/substrate"333branch = "polkadot-v0.9.36"334335[dependencies.sp-arithmetic]336default-features = false337git = "https://github.com/paritytech/substrate"338branch = "polkadot-v0.9.36"339340[dependencies.sp-api]341default-features = false342git = "https://github.com/paritytech/substrate"343branch = "polkadot-v0.9.36"344345[dependencies.sp-block-builder]346default-features = false347git = "https://github.com/paritytech/substrate"348branch = "polkadot-v0.9.36"349350[dependencies.sp-core]351default-features = false352git = "https://github.com/paritytech/substrate"353branch = "polkadot-v0.9.36"354355[dependencies.sp-consensus-aura]356default-features = false357git = "https://github.com/paritytech/substrate"358branch = "polkadot-v0.9.36"359360[dependencies.sp-inherents]361default-features = false362git = "https://github.com/paritytech/substrate"363branch = "polkadot-v0.9.36"364365[dependencies.sp-io]366default-features = false367git = "https://github.com/paritytech/substrate"368branch = "polkadot-v0.9.36"369370[dependencies.sp-offchain]371default-features = false372git = "https://github.com/paritytech/substrate"373branch = "polkadot-v0.9.36"374375[dependencies.sp-runtime]376default-features = false377git = "https://github.com/paritytech/substrate"378branch = "polkadot-v0.9.36"379380[dependencies.sp-session]381default-features = false382git = "https://github.com/paritytech/substrate"383branch = "polkadot-v0.9.36"384385[dependencies.sp-std]386default-features = false387git = "https://github.com/paritytech/substrate"388branch = "polkadot-v0.9.36"389390[dependencies.sp-transaction-pool]391default-features = false392git = "https://github.com/paritytech/substrate"393branch = "polkadot-v0.9.36"394395[dependencies.sp-version]396default-features = false397git = "https://github.com/paritytech/substrate"398branch = "polkadot-v0.9.36"399400[dependencies.smallvec]401version = '1.6.1'402403################################################################################404# Cumulus dependencies405406[dependencies.parachain-info]407default-features = false408git = "https://github.com/paritytech/cumulus"409branch = "polkadot-v0.9.36"410411[dependencies.cumulus-pallet-aura-ext]412git = "https://github.com/paritytech/cumulus"413branch = "polkadot-v0.9.36"414default-features = false415416[dependencies.cumulus-pallet-parachain-system]417git = "https://github.com/paritytech/cumulus"418branch = "polkadot-v0.9.36"419default-features = false420421[dependencies.cumulus-primitives-core]422git = "https://github.com/paritytech/cumulus"423branch = "polkadot-v0.9.36"424default-features = false425426[dependencies.cumulus-pallet-xcm]427git = "https://github.com/paritytech/cumulus"428branch = "polkadot-v0.9.36"429default-features = false430431[dependencies.cumulus-pallet-dmp-queue]432git = "https://github.com/paritytech/cumulus"433branch = "polkadot-v0.9.36"434default-features = false435436[dependencies.cumulus-pallet-xcmp-queue]437git = "https://github.com/paritytech/cumulus"438branch = "polkadot-v0.9.36"439default-features = false440441[dependencies.cumulus-primitives-utility]442git = "https://github.com/paritytech/cumulus"443branch = "polkadot-v0.9.36"444default-features = false445446[dependencies.cumulus-primitives-timestamp]447git = "https://github.com/paritytech/cumulus"448branch = "polkadot-v0.9.36"449default-features = false450451################################################################################452# Polkadot dependencies453454[dependencies.polkadot-parachain]455git = "https://github.com/paritytech/polkadot"456branch = "release-v0.9.36"457default-features = false458459[dependencies.xcm]460git = "https://github.com/paritytech/polkadot"461branch = "release-v0.9.36"462default-features = false463464[dependencies.xcm-builder]465git = "https://github.com/paritytech/polkadot"466branch = "release-v0.9.36"467default-features = false468469[dependencies.xcm-executor]470git = "https://github.com/paritytech/polkadot"471branch = "release-v0.9.36"472default-features = false473474[dependencies.pallet-xcm]475git = "https://github.com/paritytech/polkadot"476branch = "release-v0.9.36"477default-features = false478479################################################################################480# local dependencies481482[dependencies]483orml-vesting.workspace = true484orml-xtokens.workspace = true485orml-tokens.workspace = true486orml-traits.workspace = true487488log = { version = "0.4.16", default-features = false }489up-common = { path = "../../primitives/common", default-features = false }490scale-info = { version = "2.0.1", default-features = false, features = [491 "derive",492] }493derivative = "2.2.0"494pallet-unique = { path = '../../pallets/unique', default-features = false }495up-rpc = { path = "../../primitives/rpc", default-features = false }496up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }497app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }498rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }499fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }500fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }501pallet-inflation = { path = '../../pallets/inflation', default-features = false }502pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }503up-data-structs = { path = '../../primitives/data-structs', default-features = false }504pallet-collator-selection = { default-features = false, path = "../../pallets/collator-selection" }505pallet-identity = { default-features = false, path = "../../pallets/identity" }506pallet-configuration = { default-features = false, path = "../../pallets/configuration" }507pallet-common = { default-features = false, path = "../../pallets/common" }508pallet-structure = { default-features = false, path = "../../pallets/structure" }509pallet-fungible = { default-features = false, path = "../../pallets/fungible" }510pallet-refungible = { default-features = false, path = "../../pallets/refungible" }511pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }512pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }513pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }514pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.36", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }515pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }516pallet-data-management = { path = '../../pallets/data-management', default-features = false }517pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }518pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }519pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }520pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }521pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }522pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }523fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }524fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }525pallet-evm-precompile-simple = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }526evm-coder = { default-features = false, path = '../../crates/evm-coder' }527up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.36' }528pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }529pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }530precompile-utils-macro = { path = "../common/ethereum/precompiles/utils/macro" }531num_enum = { version = "0.5.3", default-features = false }532533################################################################################534# Test dependencies535536pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }537538################################################################################539# Other Dependencies540541impl-trait-for-tuples = "0.2.2"542543################################################################################544# Dev Dependencies545546[dev-dependencies.logtest]547version = "2.0.0"548549################################################################################550# Build Dependencies551552[build-dependencies.substrate-wasm-builder]553git = "https://github.com/paritytech/substrate"554branch = "polkadot-v0.9.36"runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -39,6 +39,7 @@
'pallet-foreign-assets/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
'pallet-collator-selection/runtime-benchmarks',
+ 'pallet-identity/runtime-benchmarks',
'pallet-app-promotion/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -39,6 +39,7 @@
'pallet-foreign-assets/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
'pallet-collator-selection/runtime-benchmarks',
+ 'pallet-identity/runtime-benchmarks',
'pallet-app-promotion/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
tests/src/collatorSelection.seqtest.tsdiffbeforeafterboth--- a/tests/src/collatorSelection.seqtest.ts
+++ b/tests/src/collatorSelection.seqtest.ts
@@ -287,7 +287,7 @@
expect(await helper.collatorSelection.getCandidates()).to.be.deep.equal([]);
});
- itSub('Dithmarschen', async ({helper}) => {
+ itSub('Penalizes and forfeits license from faulty collators', async ({helper}) => {
// This one shouldn't even be able to produce blocks.
const account = crowd.pop()!;
await helper.collatorSelection.obtainLicense(account);
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -318,10 +318,6 @@
**/
setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;
/**
- * Insert or remove identities.
- **/
- setIdentities: AugmentedSubmittable<(identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>> | ([AccountId32 | string | Uint8Array, Option<PalletIdentityRegistration> | null | Uint8Array | PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>]>;
- /**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
@@ -606,6 +602,10 @@
**/
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
/**
+ * Insert or remove identities.
+ **/
+ setIdentities: AugmentedSubmittable<(identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>> | ([AccountId32 | string | Uint8Array, Option<PalletIdentityRegistration> | null | Uint8Array | PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>]>;
+ /**
* Set an account's identity information and reserve the appropriate deposit.
*
* If the account already has identity information, the deposit is taken as part payment
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -1477,11 +1477,7 @@
readonly asInsertEvents: {
readonly events: Vec<Bytes>;
} & Struct;
- readonly isSetIdentities: boolean;
- readonly asSetIdentities: {
- readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;
- } & Struct;
- readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'SetIdentities';
+ readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';
}
/** @name PalletDataManagementError */
@@ -1825,7 +1821,11 @@
readonly sub: MultiAddress;
} & Struct;
readonly isQuitSub: boolean;
- readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub';
+ readonly isSetIdentities: boolean;
+ readonly asSetIdentities: {
+ readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;
+ } & Struct;
+ readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'SetIdentities';
}
/** @name PalletIdentityError */
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1863,17 +1863,20 @@
remove_sub: {
sub: 'MultiAddress',
},
- quit_sub: 'Null'
+ quit_sub: 'Null',
+ set_identities: {
+ identities: 'Vec<(AccountId32,Option<PalletIdentityRegistration>)>'
+ }
}
},
/**
- * Lookup248: pallet_identity::pallet::Error<T>
+ * Lookup251: pallet_identity::pallet::Error<T>
**/
PalletIdentityError: {
_enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned', 'JudgementForDifferentIdentity', 'JudgementPaymentFailed']
},
/**
- * Lookup250: pallet_balances::BalanceLock<Balance>
+ * Lookup253: pallet_balances::BalanceLock<Balance>
**/
PalletBalancesBalanceLock: {
id: '[u8;8]',
@@ -1881,20 +1884,20 @@
reasons: 'PalletBalancesReasons'
},
/**
- * Lookup251: pallet_balances::Reasons
+ * Lookup254: pallet_balances::Reasons
**/
PalletBalancesReasons: {
_enum: ['Fee', 'Misc', 'All']
},
/**
- * Lookup254: pallet_balances::ReserveData<ReserveIdentifier, Balance>
+ * Lookup257: pallet_balances::ReserveData<ReserveIdentifier, Balance>
**/
PalletBalancesReserveData: {
id: '[u8;16]',
amount: 'u128'
},
/**
- * Lookup256: pallet_balances::pallet::Call<T, I>
+ * Lookup259: pallet_balances::pallet::Call<T, I>
**/
PalletBalancesCall: {
_enum: {
@@ -1927,13 +1930,13 @@
}
},
/**
- * Lookup257: pallet_balances::pallet::Error<T, I>
+ * Lookup260: pallet_balances::pallet::Error<T, I>
**/
PalletBalancesError: {
_enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'KeepAlive', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves']
},
/**
- * Lookup259: pallet_timestamp::pallet::Call<T>
+ * Lookup262: pallet_timestamp::pallet::Call<T>
**/
PalletTimestampCall: {
_enum: {
@@ -1943,13 +1946,13 @@
}
},
/**
- * Lookup261: pallet_transaction_payment::Releases
+ * Lookup264: pallet_transaction_payment::Releases
**/
PalletTransactionPaymentReleases: {
_enum: ['V1Ancient', 'V2']
},
/**
- * Lookup262: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
+ * Lookup265: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
**/
PalletTreasuryProposal: {
proposer: 'AccountId32',
@@ -1958,7 +1961,7 @@
bond: 'u128'
},
/**
- * Lookup264: pallet_treasury::pallet::Call<T, I>
+ * Lookup267: pallet_treasury::pallet::Call<T, I>
**/
PalletTreasuryCall: {
_enum: {
@@ -1982,17 +1985,17 @@
}
},
/**
- * Lookup266: frame_support::PalletId
+ * Lookup269: frame_support::PalletId
**/
FrameSupportPalletId: '[u8;8]',
/**
- * Lookup267: pallet_treasury::pallet::Error<T, I>
+ * Lookup270: pallet_treasury::pallet::Error<T, I>
**/
PalletTreasuryError: {
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'InsufficientPermission', 'ProposalNotApproved']
},
/**
- * Lookup268: pallet_sudo::pallet::Call<T>
+ * Lookup271: pallet_sudo::pallet::Call<T>
**/
PalletSudoCall: {
_enum: {
@@ -2016,7 +2019,7 @@
}
},
/**
- * Lookup270: orml_vesting::module::Call<T>
+ * Lookup273: orml_vesting::module::Call<T>
**/
OrmlVestingModuleCall: {
_enum: {
@@ -2035,7 +2038,7 @@
}
},
/**
- * Lookup272: orml_xtokens::module::Call<T>
+ * Lookup275: orml_xtokens::module::Call<T>
**/
OrmlXtokensModuleCall: {
_enum: {
@@ -2078,7 +2081,7 @@
}
},
/**
- * Lookup273: xcm::VersionedMultiAsset
+ * Lookup276: xcm::VersionedMultiAsset
**/
XcmVersionedMultiAsset: {
_enum: {
@@ -2087,7 +2090,7 @@
}
},
/**
- * Lookup276: orml_tokens::module::Call<T>
+ * Lookup279: orml_tokens::module::Call<T>
**/
OrmlTokensModuleCall: {
_enum: {
@@ -2121,7 +2124,7 @@
}
},
/**
- * Lookup277: cumulus_pallet_xcmp_queue::pallet::Call<T>
+ * Lookup280: cumulus_pallet_xcmp_queue::pallet::Call<T>
**/
CumulusPalletXcmpQueueCall: {
_enum: {
@@ -2170,7 +2173,7 @@
}
},
/**
- * Lookup278: pallet_xcm::pallet::Call<T>
+ * Lookup281: pallet_xcm::pallet::Call<T>
**/
PalletXcmCall: {
_enum: {
@@ -2224,7 +2227,7 @@
}
},
/**
- * Lookup279: xcm::VersionedXcm<RuntimeCall>
+ * Lookup282: xcm::VersionedXcm<RuntimeCall>
**/
XcmVersionedXcm: {
_enum: {
@@ -2234,7 +2237,7 @@
}
},
/**
- * Lookup280: xcm::v0::Xcm<RuntimeCall>
+ * Lookup283: xcm::v0::Xcm<RuntimeCall>
**/
XcmV0Xcm: {
_enum: {
@@ -2288,7 +2291,7 @@
}
},
/**
- * Lookup282: xcm::v0::order::Order<RuntimeCall>
+ * Lookup285: xcm::v0::order::Order<RuntimeCall>
**/
XcmV0Order: {
_enum: {
@@ -2331,7 +2334,7 @@
}
},
/**
- * Lookup284: xcm::v0::Response
+ * Lookup287: xcm::v0::Response
**/
XcmV0Response: {
_enum: {
@@ -2339,7 +2342,7 @@
}
},
/**
- * Lookup285: xcm::v1::Xcm<RuntimeCall>
+ * Lookup288: xcm::v1::Xcm<RuntimeCall>
**/
XcmV1Xcm: {
_enum: {
@@ -2398,7 +2401,7 @@
}
},
/**
- * Lookup287: xcm::v1::order::Order<RuntimeCall>
+ * Lookup290: xcm::v1::order::Order<RuntimeCall>
**/
XcmV1Order: {
_enum: {
@@ -2443,7 +2446,7 @@
}
},
/**
- * Lookup289: xcm::v1::Response
+ * Lookup292: xcm::v1::Response
**/
XcmV1Response: {
_enum: {
@@ -2452,11 +2455,11 @@
}
},
/**
- * Lookup303: cumulus_pallet_xcm::pallet::Call<T>
+ * Lookup306: cumulus_pallet_xcm::pallet::Call<T>
**/
CumulusPalletXcmCall: 'Null',
/**
- * Lookup304: cumulus_pallet_dmp_queue::pallet::Call<T>
+ * Lookup307: cumulus_pallet_dmp_queue::pallet::Call<T>
**/
CumulusPalletDmpQueueCall: {
_enum: {
@@ -2467,7 +2470,7 @@
}
},
/**
- * Lookup305: pallet_inflation::pallet::Call<T>
+ * Lookup308: pallet_inflation::pallet::Call<T>
**/
PalletInflationCall: {
_enum: {
@@ -2477,7 +2480,7 @@
}
},
/**
- * Lookup306: pallet_unique::Call<T>
+ * Lookup309: pallet_unique::Call<T>
**/
PalletUniqueCall: {
_enum: {
@@ -2621,7 +2624,7 @@
}
},
/**
- * Lookup311: up_data_structs::CollectionMode
+ * Lookup314: up_data_structs::CollectionMode
**/
UpDataStructsCollectionMode: {
_enum: {
@@ -2631,7 +2634,7 @@
}
},
/**
- * Lookup312: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
+ * Lookup315: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
**/
UpDataStructsCreateCollectionData: {
mode: 'UpDataStructsCollectionMode',
@@ -2646,13 +2649,13 @@
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup314: up_data_structs::AccessMode
+ * Lookup317: up_data_structs::AccessMode
**/
UpDataStructsAccessMode: {
_enum: ['Normal', 'AllowList']
},
/**
- * Lookup316: up_data_structs::CollectionLimits
+ * Lookup319: up_data_structs::CollectionLimits
**/
UpDataStructsCollectionLimits: {
accountTokenOwnershipLimit: 'Option<u32>',
@@ -2666,7 +2669,7 @@
transfersEnabled: 'Option<bool>'
},
/**
- * Lookup318: up_data_structs::SponsoringRateLimit
+ * Lookup321: up_data_structs::SponsoringRateLimit
**/
UpDataStructsSponsoringRateLimit: {
_enum: {
@@ -2675,7 +2678,7 @@
}
},
/**
- * Lookup321: up_data_structs::CollectionPermissions
+ * Lookup324: up_data_structs::CollectionPermissions
**/
UpDataStructsCollectionPermissions: {
access: 'Option<UpDataStructsAccessMode>',
@@ -2683,7 +2686,7 @@
nesting: 'Option<UpDataStructsNestingPermissions>'
},
/**
- * Lookup323: up_data_structs::NestingPermissions
+ * Lookup326: up_data_structs::NestingPermissions
**/
UpDataStructsNestingPermissions: {
tokenOwner: 'bool',
@@ -2691,18 +2694,18 @@
restricted: 'Option<UpDataStructsOwnerRestrictedSet>'
},
/**
- * Lookup325: up_data_structs::OwnerRestrictedSet
+ * Lookup328: up_data_structs::OwnerRestrictedSet
**/
UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',
/**
- * Lookup330: up_data_structs::PropertyKeyPermission
+ * Lookup333: up_data_structs::PropertyKeyPermission
**/
UpDataStructsPropertyKeyPermission: {
key: 'Bytes',
permission: 'UpDataStructsPropertyPermission'
},
/**
- * Lookup331: up_data_structs::PropertyPermission
+ * Lookup334: up_data_structs::PropertyPermission
**/
UpDataStructsPropertyPermission: {
mutable: 'bool',
@@ -2710,14 +2713,14 @@
tokenOwner: 'bool'
},
/**
- * Lookup334: up_data_structs::Property
+ * Lookup337: up_data_structs::Property
**/
UpDataStructsProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup337: up_data_structs::CreateItemData
+ * Lookup340: up_data_structs::CreateItemData
**/
UpDataStructsCreateItemData: {
_enum: {
@@ -2727,26 +2730,26 @@
}
},
/**
- * Lookup338: up_data_structs::CreateNftData
+ * Lookup341: up_data_structs::CreateNftData
**/
UpDataStructsCreateNftData: {
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup339: up_data_structs::CreateFungibleData
+ * Lookup342: up_data_structs::CreateFungibleData
**/
UpDataStructsCreateFungibleData: {
value: 'u128'
},
/**
- * Lookup340: up_data_structs::CreateReFungibleData
+ * Lookup343: up_data_structs::CreateReFungibleData
**/
UpDataStructsCreateReFungibleData: {
pieces: 'u128',
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup343: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup346: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateItemExData: {
_enum: {
@@ -2757,14 +2760,14 @@
}
},
/**
- * Lookup345: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup348: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateNftExData: {
properties: 'Vec<UpDataStructsProperty>',
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup352: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup355: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExSingleOwner: {
user: 'PalletEvmAccountBasicCrossAccountIdRepr',
@@ -2772,14 +2775,14 @@
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup354: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup357: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExMultipleOwners: {
users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup355: pallet_configuration::pallet::Call<T>
+ * Lookup358: pallet_configuration::pallet::Call<T>
**/
PalletConfigurationCall: {
_enum: {
@@ -2807,7 +2810,7 @@
}
},
/**
- * Lookup360: pallet_configuration::AppPromotionConfiguration<BlockNumber>
+ * Lookup363: pallet_configuration::AppPromotionConfiguration<BlockNumber>
**/
PalletConfigurationAppPromotionConfiguration: {
recalculationInterval: 'Option<u32>',
@@ -2816,15 +2819,15 @@
maxStakersPerCalculation: 'Option<u8>'
},
/**
- * Lookup364: pallet_template_transaction_payment::Call<T>
+ * Lookup367: pallet_template_transaction_payment::Call<T>
**/
PalletTemplateTransactionPaymentCall: 'Null',
/**
- * Lookup365: pallet_structure::pallet::Call<T>
+ * Lookup368: pallet_structure::pallet::Call<T>
**/
PalletStructureCall: 'Null',
/**
- * Lookup366: pallet_rmrk_core::pallet::Call<T>
+ * Lookup369: pallet_rmrk_core::pallet::Call<T>
**/
PalletRmrkCoreCall: {
_enum: {
@@ -2915,7 +2918,7 @@
}
},
/**
- * Lookup372: rmrk_traits::resource::ResourceTypes<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup375: rmrk_traits::resource::ResourceTypes<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceResourceTypes: {
_enum: {
@@ -2925,7 +2928,7 @@
}
},
/**
- * Lookup374: rmrk_traits::resource::BasicResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup377: rmrk_traits::resource::BasicResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceBasicResource: {
src: 'Option<Bytes>',
@@ -2934,7 +2937,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup376: rmrk_traits::resource::ComposableResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup379: rmrk_traits::resource::ComposableResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceComposableResource: {
parts: 'Vec<u32>',
@@ -2945,7 +2948,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup377: rmrk_traits::resource::SlotResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup380: rmrk_traits::resource::SlotResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceSlotResource: {
base: 'u32',
@@ -2956,7 +2959,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup380: pallet_rmrk_equip::pallet::Call<T>
+ * Lookup383: pallet_rmrk_equip::pallet::Call<T>
**/
PalletRmrkEquipCall: {
_enum: {
@@ -2977,7 +2980,7 @@
}
},
/**
- * Lookup383: rmrk_traits::part::PartType<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup386: rmrk_traits::part::PartType<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartPartType: {
_enum: {
@@ -2986,7 +2989,7 @@
}
},
/**
- * Lookup385: rmrk_traits::part::FixedPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup388: rmrk_traits::part::FixedPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartFixedPart: {
id: 'u32',
@@ -2994,7 +2997,7 @@
src: 'Bytes'
},
/**
- * Lookup386: rmrk_traits::part::SlotPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup389: rmrk_traits::part::SlotPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartSlotPart: {
id: 'u32',
@@ -3003,7 +3006,7 @@
z: 'u32'
},
/**
- * Lookup387: rmrk_traits::part::EquippableList<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup390: rmrk_traits::part::EquippableList<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartEquippableList: {
_enum: {
@@ -3013,7 +3016,7 @@
}
},
/**
- * Lookup389: rmrk_traits::theme::Theme<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>, S>>
+ * Lookup392: rmrk_traits::theme::Theme<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>, S>>
**/
RmrkTraitsTheme: {
name: 'Bytes',
@@ -3021,14 +3024,14 @@
inherit: 'bool'
},
/**
- * Lookup391: rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup394: rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsThemeThemeProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup393: pallet_app_promotion::pallet::Call<T>
+ * Lookup396: pallet_app_promotion::pallet::Call<T>
**/
PalletAppPromotionCall: {
_enum: {
@@ -3057,7 +3060,7 @@
}
},
/**
- * Lookup394: pallet_foreign_assets::module::Call<T>
+ * Lookup397: pallet_foreign_assets::module::Call<T>
**/
PalletForeignAssetsModuleCall: {
_enum: {
@@ -3074,7 +3077,7 @@
}
},
/**
- * Lookup395: pallet_evm::pallet::Call<T>
+ * Lookup398: pallet_evm::pallet::Call<T>
**/
PalletEvmCall: {
_enum: {
@@ -3117,7 +3120,7 @@
}
},
/**
- * Lookup401: pallet_ethereum::pallet::Call<T>
+ * Lookup404: pallet_ethereum::pallet::Call<T>
**/
PalletEthereumCall: {
_enum: {
@@ -3127,7 +3130,7 @@
}
},
/**
- * Lookup402: ethereum::transaction::TransactionV2
+ * Lookup405: ethereum::transaction::TransactionV2
**/
EthereumTransactionTransactionV2: {
_enum: {
@@ -3137,7 +3140,7 @@
}
},
/**
- * Lookup403: ethereum::transaction::LegacyTransaction
+ * Lookup406: ethereum::transaction::LegacyTransaction
**/
EthereumTransactionLegacyTransaction: {
nonce: 'U256',
@@ -3149,7 +3152,7 @@
signature: 'EthereumTransactionTransactionSignature'
},
/**
- * Lookup404: ethereum::transaction::TransactionAction
+ * Lookup407: ethereum::transaction::TransactionAction
**/
EthereumTransactionTransactionAction: {
_enum: {
@@ -3158,7 +3161,7 @@
}
},
/**
- * Lookup405: ethereum::transaction::TransactionSignature
+ * Lookup408: ethereum::transaction::TransactionSignature
**/
EthereumTransactionTransactionSignature: {
v: 'u64',
@@ -3166,7 +3169,7 @@
s: 'H256'
},
/**
- * Lookup407: ethereum::transaction::EIP2930Transaction
+ * Lookup410: ethereum::transaction::EIP2930Transaction
**/
EthereumTransactionEip2930Transaction: {
chainId: 'u64',
@@ -3182,14 +3185,14 @@
s: 'H256'
},
/**
- * Lookup409: ethereum::transaction::AccessListItem
+ * Lookup412: ethereum::transaction::AccessListItem
**/
EthereumTransactionAccessListItem: {
address: 'H160',
storageKeys: 'Vec<H256>'
},
/**
- * Lookup410: ethereum::transaction::EIP1559Transaction
+ * Lookup413: ethereum::transaction::EIP1559Transaction
**/
EthereumTransactionEip1559Transaction: {
chainId: 'u64',
@@ -3206,7 +3209,7 @@
s: 'H256'
},
/**
- * Lookup411: pallet_data_management::pallet::Call<T>
+ * Lookup414: pallet_data_management::pallet::Call<T>
**/
PalletDataManagementCall: {
_enum: {
@@ -3225,10 +3228,7 @@
logs: 'Vec<EthereumLog>',
},
insert_events: {
- events: 'Vec<Bytes>',
- },
- set_identities: {
- identities: 'Vec<(AccountId32,Option<PalletIdentityRegistration>)>'
+ events: 'Vec<Bytes>'
}
}
},
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -2057,10 +2057,14 @@
readonly sub: MultiAddress;
} & Struct;
readonly isQuitSub: boolean;
- readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub';
+ readonly isSetIdentities: boolean;
+ readonly asSetIdentities: {
+ readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;
+ } & Struct;
+ readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'SetIdentities';
}
- /** @name PalletIdentityError (248) */
+ /** @name PalletIdentityError (251) */
interface PalletIdentityError extends Enum {
readonly isTooManySubAccounts: boolean;
readonly isNotFound: boolean;
@@ -2083,14 +2087,14 @@
readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';
}
- /** @name PalletBalancesBalanceLock (250) */
+ /** @name PalletBalancesBalanceLock (253) */
interface PalletBalancesBalanceLock extends Struct {
readonly id: U8aFixed;
readonly amount: u128;
readonly reasons: PalletBalancesReasons;
}
- /** @name PalletBalancesReasons (251) */
+ /** @name PalletBalancesReasons (254) */
interface PalletBalancesReasons extends Enum {
readonly isFee: boolean;
readonly isMisc: boolean;
@@ -2098,13 +2102,13 @@
readonly type: 'Fee' | 'Misc' | 'All';
}
- /** @name PalletBalancesReserveData (254) */
+ /** @name PalletBalancesReserveData (257) */
interface PalletBalancesReserveData extends Struct {
readonly id: U8aFixed;
readonly amount: u128;
}
- /** @name PalletBalancesCall (256) */
+ /** @name PalletBalancesCall (259) */
interface PalletBalancesCall extends Enum {
readonly isTransfer: boolean;
readonly asTransfer: {
@@ -2141,7 +2145,7 @@
readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
}
- /** @name PalletBalancesError (257) */
+ /** @name PalletBalancesError (260) */
interface PalletBalancesError extends Enum {
readonly isVestingBalance: boolean;
readonly isLiquidityRestrictions: boolean;
@@ -2154,7 +2158,7 @@
readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
}
- /** @name PalletTimestampCall (259) */
+ /** @name PalletTimestampCall (262) */
interface PalletTimestampCall extends Enum {
readonly isSet: boolean;
readonly asSet: {
@@ -2163,14 +2167,14 @@
readonly type: 'Set';
}
- /** @name PalletTransactionPaymentReleases (261) */
+ /** @name PalletTransactionPaymentReleases (264) */
interface PalletTransactionPaymentReleases extends Enum {
readonly isV1Ancient: boolean;
readonly isV2: boolean;
readonly type: 'V1Ancient' | 'V2';
}
- /** @name PalletTreasuryProposal (262) */
+ /** @name PalletTreasuryProposal (265) */
interface PalletTreasuryProposal extends Struct {
readonly proposer: AccountId32;
readonly value: u128;
@@ -2178,7 +2182,7 @@
readonly bond: u128;
}
- /** @name PalletTreasuryCall (264) */
+ /** @name PalletTreasuryCall (267) */
interface PalletTreasuryCall extends Enum {
readonly isProposeSpend: boolean;
readonly asProposeSpend: {
@@ -2205,10 +2209,10 @@
readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';
}
- /** @name FrameSupportPalletId (266) */
+ /** @name FrameSupportPalletId (269) */
interface FrameSupportPalletId extends U8aFixed {}
- /** @name PalletTreasuryError (267) */
+ /** @name PalletTreasuryError (270) */
interface PalletTreasuryError extends Enum {
readonly isInsufficientProposersBalance: boolean;
readonly isInvalidIndex: boolean;
@@ -2218,7 +2222,7 @@
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';
}
- /** @name PalletSudoCall (268) */
+ /** @name PalletSudoCall (271) */
interface PalletSudoCall extends Enum {
readonly isSudo: boolean;
readonly asSudo: {
@@ -2241,7 +2245,7 @@
readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
}
- /** @name OrmlVestingModuleCall (270) */
+ /** @name OrmlVestingModuleCall (273) */
interface OrmlVestingModuleCall extends Enum {
readonly isClaim: boolean;
readonly isVestedTransfer: boolean;
@@ -2261,7 +2265,7 @@
readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';
}
- /** @name OrmlXtokensModuleCall (272) */
+ /** @name OrmlXtokensModuleCall (275) */
interface OrmlXtokensModuleCall extends Enum {
readonly isTransfer: boolean;
readonly asTransfer: {
@@ -2308,7 +2312,7 @@
readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';
}
- /** @name XcmVersionedMultiAsset (273) */
+ /** @name XcmVersionedMultiAsset (276) */
interface XcmVersionedMultiAsset extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0MultiAsset;
@@ -2317,7 +2321,7 @@
readonly type: 'V0' | 'V1';
}
- /** @name OrmlTokensModuleCall (276) */
+ /** @name OrmlTokensModuleCall (279) */
interface OrmlTokensModuleCall extends Enum {
readonly isTransfer: boolean;
readonly asTransfer: {
@@ -2354,7 +2358,7 @@
readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';
}
- /** @name CumulusPalletXcmpQueueCall (277) */
+ /** @name CumulusPalletXcmpQueueCall (280) */
interface CumulusPalletXcmpQueueCall extends Enum {
readonly isServiceOverweight: boolean;
readonly asServiceOverweight: {
@@ -2390,7 +2394,7 @@
readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';
}
- /** @name PalletXcmCall (278) */
+ /** @name PalletXcmCall (281) */
interface PalletXcmCall extends Enum {
readonly isSend: boolean;
readonly asSend: {
@@ -2452,7 +2456,7 @@
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
}
- /** @name XcmVersionedXcm (279) */
+ /** @name XcmVersionedXcm (282) */
interface XcmVersionedXcm extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0Xcm;
@@ -2463,7 +2467,7 @@
readonly type: 'V0' | 'V1' | 'V2';
}
- /** @name XcmV0Xcm (280) */
+ /** @name XcmV0Xcm (283) */
interface XcmV0Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -2526,7 +2530,7 @@
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
}
- /** @name XcmV0Order (282) */
+ /** @name XcmV0Order (285) */
interface XcmV0Order extends Enum {
readonly isNull: boolean;
readonly isDepositAsset: boolean;
@@ -2574,14 +2578,14 @@
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
- /** @name XcmV0Response (284) */
+ /** @name XcmV0Response (287) */
interface XcmV0Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: Vec<XcmV0MultiAsset>;
readonly type: 'Assets';
}
- /** @name XcmV1Xcm (285) */
+ /** @name XcmV1Xcm (288) */
interface XcmV1Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -2650,7 +2654,7 @@
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
}
- /** @name XcmV1Order (287) */
+ /** @name XcmV1Order (290) */
interface XcmV1Order extends Enum {
readonly isNoop: boolean;
readonly isDepositAsset: boolean;
@@ -2700,7 +2704,7 @@
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
- /** @name XcmV1Response (289) */
+ /** @name XcmV1Response (292) */
interface XcmV1Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -2709,10 +2713,10 @@
readonly type: 'Assets' | 'Version';
}
- /** @name CumulusPalletXcmCall (303) */
+ /** @name CumulusPalletXcmCall (306) */
type CumulusPalletXcmCall = Null;
- /** @name CumulusPalletDmpQueueCall (304) */
+ /** @name CumulusPalletDmpQueueCall (307) */
interface CumulusPalletDmpQueueCall extends Enum {
readonly isServiceOverweight: boolean;
readonly asServiceOverweight: {
@@ -2722,7 +2726,7 @@
readonly type: 'ServiceOverweight';
}
- /** @name PalletInflationCall (305) */
+ /** @name PalletInflationCall (308) */
interface PalletInflationCall extends Enum {
readonly isStartInflation: boolean;
readonly asStartInflation: {
@@ -2731,7 +2735,7 @@
readonly type: 'StartInflation';
}
- /** @name PalletUniqueCall (306) */
+ /** @name PalletUniqueCall (309) */
interface PalletUniqueCall extends Enum {
readonly isCreateCollection: boolean;
readonly asCreateCollection: {
@@ -2904,7 +2908,7 @@
readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';
}
- /** @name UpDataStructsCollectionMode (311) */
+ /** @name UpDataStructsCollectionMode (314) */
interface UpDataStructsCollectionMode extends Enum {
readonly isNft: boolean;
readonly isFungible: boolean;
@@ -2913,7 +2917,7 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateCollectionData (312) */
+ /** @name UpDataStructsCreateCollectionData (315) */
interface UpDataStructsCreateCollectionData extends Struct {
readonly mode: UpDataStructsCollectionMode;
readonly access: Option<UpDataStructsAccessMode>;
@@ -2927,14 +2931,14 @@
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsAccessMode (314) */
+ /** @name UpDataStructsAccessMode (317) */
interface UpDataStructsAccessMode extends Enum {
readonly isNormal: boolean;
readonly isAllowList: boolean;
readonly type: 'Normal' | 'AllowList';
}
- /** @name UpDataStructsCollectionLimits (316) */
+ /** @name UpDataStructsCollectionLimits (319) */
interface UpDataStructsCollectionLimits extends Struct {
readonly accountTokenOwnershipLimit: Option<u32>;
readonly sponsoredDataSize: Option<u32>;
@@ -2947,7 +2951,7 @@
readonly transfersEnabled: Option<bool>;
}
- /** @name UpDataStructsSponsoringRateLimit (318) */
+ /** @name UpDataStructsSponsoringRateLimit (321) */
interface UpDataStructsSponsoringRateLimit extends Enum {
readonly isSponsoringDisabled: boolean;
readonly isBlocks: boolean;
@@ -2955,43 +2959,43 @@
readonly type: 'SponsoringDisabled' | 'Blocks';
}
- /** @name UpDataStructsCollectionPermissions (321) */
+ /** @name UpDataStructsCollectionPermissions (324) */
interface UpDataStructsCollectionPermissions extends Struct {
readonly access: Option<UpDataStructsAccessMode>;
readonly mintMode: Option<bool>;
readonly nesting: Option<UpDataStructsNestingPermissions>;
}
- /** @name UpDataStructsNestingPermissions (323) */
+ /** @name UpDataStructsNestingPermissions (326) */
interface UpDataStructsNestingPermissions extends Struct {
readonly tokenOwner: bool;
readonly collectionAdmin: bool;
readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;
}
- /** @name UpDataStructsOwnerRestrictedSet (325) */
+ /** @name UpDataStructsOwnerRestrictedSet (328) */
interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}
- /** @name UpDataStructsPropertyKeyPermission (330) */
+ /** @name UpDataStructsPropertyKeyPermission (333) */
interface UpDataStructsPropertyKeyPermission extends Struct {
readonly key: Bytes;
readonly permission: UpDataStructsPropertyPermission;
}
- /** @name UpDataStructsPropertyPermission (331) */
+ /** @name UpDataStructsPropertyPermission (334) */
interface UpDataStructsPropertyPermission extends Struct {
readonly mutable: bool;
readonly collectionAdmin: bool;
readonly tokenOwner: bool;
}
- /** @name UpDataStructsProperty (334) */
+ /** @name UpDataStructsProperty (337) */
interface UpDataStructsProperty extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name UpDataStructsCreateItemData (337) */
+ /** @name UpDataStructsCreateItemData (340) */
interface UpDataStructsCreateItemData extends Enum {
readonly isNft: boolean;
readonly asNft: UpDataStructsCreateNftData;
@@ -3002,23 +3006,23 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateNftData (338) */
+ /** @name UpDataStructsCreateNftData (341) */
interface UpDataStructsCreateNftData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateFungibleData (339) */
+ /** @name UpDataStructsCreateFungibleData (342) */
interface UpDataStructsCreateFungibleData extends Struct {
readonly value: u128;
}
- /** @name UpDataStructsCreateReFungibleData (340) */
+ /** @name UpDataStructsCreateReFungibleData (343) */
interface UpDataStructsCreateReFungibleData extends Struct {
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateItemExData (343) */
+ /** @name UpDataStructsCreateItemExData (346) */
interface UpDataStructsCreateItemExData extends Enum {
readonly isNft: boolean;
readonly asNft: Vec<UpDataStructsCreateNftExData>;
@@ -3031,26 +3035,26 @@
readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';
}
- /** @name UpDataStructsCreateNftExData (345) */
+ /** @name UpDataStructsCreateNftExData (348) */
interface UpDataStructsCreateNftExData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsCreateRefungibleExSingleOwner (352) */
+ /** @name UpDataStructsCreateRefungibleExSingleOwner (355) */
interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {
readonly user: PalletEvmAccountBasicCrossAccountIdRepr;
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateRefungibleExMultipleOwners (354) */
+ /** @name UpDataStructsCreateRefungibleExMultipleOwners (357) */
interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {
readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name PalletConfigurationCall (355) */
+ /** @name PalletConfigurationCall (358) */
interface PalletConfigurationCall extends Enum {
readonly isSetWeightToFeeCoefficientOverride: boolean;
readonly asSetWeightToFeeCoefficientOverride: {
@@ -3083,7 +3087,7 @@
readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetXcmAllowedLocations' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';
}
- /** @name PalletConfigurationAppPromotionConfiguration (360) */
+ /** @name PalletConfigurationAppPromotionConfiguration (363) */
interface PalletConfigurationAppPromotionConfiguration extends Struct {
readonly recalculationInterval: Option<u32>;
readonly pendingInterval: Option<u32>;
@@ -3091,13 +3095,13 @@
readonly maxStakersPerCalculation: Option<u8>;
}
- /** @name PalletTemplateTransactionPaymentCall (364) */
+ /** @name PalletTemplateTransactionPaymentCall (367) */
type PalletTemplateTransactionPaymentCall = Null;
- /** @name PalletStructureCall (365) */
+ /** @name PalletStructureCall (368) */
type PalletStructureCall = Null;
- /** @name PalletRmrkCoreCall (366) */
+ /** @name PalletRmrkCoreCall (369) */
interface PalletRmrkCoreCall extends Enum {
readonly isCreateCollection: boolean;
readonly asCreateCollection: {
@@ -3203,7 +3207,7 @@
readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';
}
- /** @name RmrkTraitsResourceResourceTypes (372) */
+ /** @name RmrkTraitsResourceResourceTypes (375) */
interface RmrkTraitsResourceResourceTypes extends Enum {
readonly isBasic: boolean;
readonly asBasic: RmrkTraitsResourceBasicResource;
@@ -3214,7 +3218,7 @@
readonly type: 'Basic' | 'Composable' | 'Slot';
}
- /** @name RmrkTraitsResourceBasicResource (374) */
+ /** @name RmrkTraitsResourceBasicResource (377) */
interface RmrkTraitsResourceBasicResource extends Struct {
readonly src: Option<Bytes>;
readonly metadata: Option<Bytes>;
@@ -3222,7 +3226,7 @@
readonly thumb: Option<Bytes>;
}
- /** @name RmrkTraitsResourceComposableResource (376) */
+ /** @name RmrkTraitsResourceComposableResource (379) */
interface RmrkTraitsResourceComposableResource extends Struct {
readonly parts: Vec<u32>;
readonly base: u32;
@@ -3232,7 +3236,7 @@
readonly thumb: Option<Bytes>;
}
- /** @name RmrkTraitsResourceSlotResource (377) */
+ /** @name RmrkTraitsResourceSlotResource (380) */
interface RmrkTraitsResourceSlotResource extends Struct {
readonly base: u32;
readonly src: Option<Bytes>;
@@ -3242,7 +3246,7 @@
readonly thumb: Option<Bytes>;
}
- /** @name PalletRmrkEquipCall (380) */
+ /** @name PalletRmrkEquipCall (383) */
interface PalletRmrkEquipCall extends Enum {
readonly isCreateBase: boolean;
readonly asCreateBase: {
@@ -3264,7 +3268,7 @@
readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';
}
- /** @name RmrkTraitsPartPartType (383) */
+ /** @name RmrkTraitsPartPartType (386) */
interface RmrkTraitsPartPartType extends Enum {
readonly isFixedPart: boolean;
readonly asFixedPart: RmrkTraitsPartFixedPart;
@@ -3273,14 +3277,14 @@
readonly type: 'FixedPart' | 'SlotPart';
}
- /** @name RmrkTraitsPartFixedPart (385) */
+ /** @name RmrkTraitsPartFixedPart (388) */
interface RmrkTraitsPartFixedPart extends Struct {
readonly id: u32;
readonly z: u32;
readonly src: Bytes;
}
- /** @name RmrkTraitsPartSlotPart (386) */
+ /** @name RmrkTraitsPartSlotPart (389) */
interface RmrkTraitsPartSlotPart extends Struct {
readonly id: u32;
readonly equippable: RmrkTraitsPartEquippableList;
@@ -3288,7 +3292,7 @@
readonly z: u32;
}
- /** @name RmrkTraitsPartEquippableList (387) */
+ /** @name RmrkTraitsPartEquippableList (390) */
interface RmrkTraitsPartEquippableList extends Enum {
readonly isAll: boolean;
readonly isEmpty: boolean;
@@ -3297,20 +3301,20 @@
readonly type: 'All' | 'Empty' | 'Custom';
}
- /** @name RmrkTraitsTheme (389) */
+ /** @name RmrkTraitsTheme (392) */
interface RmrkTraitsTheme extends Struct {
readonly name: Bytes;
readonly properties: Vec<RmrkTraitsThemeThemeProperty>;
readonly inherit: bool;
}
- /** @name RmrkTraitsThemeThemeProperty (391) */
+ /** @name RmrkTraitsThemeThemeProperty (394) */
interface RmrkTraitsThemeThemeProperty extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name PalletAppPromotionCall (393) */
+ /** @name PalletAppPromotionCall (396) */
interface PalletAppPromotionCall extends Enum {
readonly isSetAdminAddress: boolean;
readonly asSetAdminAddress: {
@@ -3344,7 +3348,7 @@
readonly type: 'SetAdminAddress' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers';
}
- /** @name PalletForeignAssetsModuleCall (394) */
+ /** @name PalletForeignAssetsModuleCall (397) */
interface PalletForeignAssetsModuleCall extends Enum {
readonly isRegisterForeignAsset: boolean;
readonly asRegisterForeignAsset: {
@@ -3361,7 +3365,7 @@
readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';
}
- /** @name PalletEvmCall (395) */
+ /** @name PalletEvmCall (398) */
interface PalletEvmCall extends Enum {
readonly isWithdraw: boolean;
readonly asWithdraw: {
@@ -3406,7 +3410,7 @@
readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
}
- /** @name PalletEthereumCall (401) */
+ /** @name PalletEthereumCall (404) */
interface PalletEthereumCall extends Enum {
readonly isTransact: boolean;
readonly asTransact: {
@@ -3415,7 +3419,7 @@
readonly type: 'Transact';
}
- /** @name EthereumTransactionTransactionV2 (402) */
+ /** @name EthereumTransactionTransactionV2 (405) */
interface EthereumTransactionTransactionV2 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumTransactionLegacyTransaction;
@@ -3426,7 +3430,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumTransactionLegacyTransaction (403) */
+ /** @name EthereumTransactionLegacyTransaction (406) */
interface EthereumTransactionLegacyTransaction extends Struct {
readonly nonce: U256;
readonly gasPrice: U256;
@@ -3437,7 +3441,7 @@
readonly signature: EthereumTransactionTransactionSignature;
}
- /** @name EthereumTransactionTransactionAction (404) */
+ /** @name EthereumTransactionTransactionAction (407) */
interface EthereumTransactionTransactionAction extends Enum {
readonly isCall: boolean;
readonly asCall: H160;
@@ -3445,14 +3449,14 @@
readonly type: 'Call' | 'Create';
}
- /** @name EthereumTransactionTransactionSignature (405) */
+ /** @name EthereumTransactionTransactionSignature (408) */
interface EthereumTransactionTransactionSignature extends Struct {
readonly v: u64;
readonly r: H256;
readonly s: H256;
}
- /** @name EthereumTransactionEip2930Transaction (407) */
+ /** @name EthereumTransactionEip2930Transaction (410) */
interface EthereumTransactionEip2930Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -3467,13 +3471,13 @@
readonly s: H256;
}
- /** @name EthereumTransactionAccessListItem (409) */
+ /** @name EthereumTransactionAccessListItem (412) */
interface EthereumTransactionAccessListItem extends Struct {
readonly address: H160;
readonly storageKeys: Vec<H256>;
}
- /** @name EthereumTransactionEip1559Transaction (410) */
+ /** @name EthereumTransactionEip1559Transaction (413) */
interface EthereumTransactionEip1559Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -3489,7 +3493,7 @@
readonly s: H256;
}
- /** @name PalletDataManagementCall (411) */
+ /** @name PalletDataManagementCall (414) */
interface PalletDataManagementCall extends Enum {
readonly isBegin: boolean;
readonly asBegin: {
@@ -3513,11 +3517,7 @@
readonly asInsertEvents: {
readonly events: Vec<Bytes>;
} & Struct;
- readonly isSetIdentities: boolean;
- readonly asSetIdentities: {
- readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;
- } & Struct;
- readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'SetIdentities';
+ readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';
}
/** @name PalletMaintenanceCall (418) */
tests/src/pallet-presence.test.tsdiffbeforeafterboth--- a/tests/src/pallet-presence.test.ts
+++ b/tests/src/pallet-presence.test.ts
@@ -69,7 +69,7 @@
const collatorSelection = ['authorship', 'session', 'collatorselection', 'identity'];
const testUtils = 'testutils';
- if (chain.eq('OPAL by UNIQUE')) {
+ if (chain.eq('OPAL by UNIQUE') || chain.eq('SAPPHIRE by UNIQUE')) {
requiredPallets.push(
refungible,
foreignAssets,
tests/src/util/identitySetter.tsdiffbeforeafterboth--- a/tests/src/util/identitySetter.ts
+++ b/tests/src/util/identitySetter.ts
@@ -33,7 +33,7 @@
try {
const superuser = await privateKey(key);
// todo:collator
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.dataManagement.setIdentities', [identities]);
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.setIdentities', [identities]);
console.log(`Tried to upload ${identities.length} identities. `
+ `Now there are ${(await helper.getApi().query.identity.identityOf.keys()).length}.`);
} catch (error) {
tests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/unique.dev.ts
+++ b/tests/src/util/playgrounds/unique.dev.ts
@@ -257,16 +257,17 @@
const accounts: IKeyringPair[] = [];
let nonce = await this.helper.chain.getNonce(donor.address);
const tokenNominal = this.helper.balance.getOneTokenNominal();
+ const ss58Format = this.helper.chain.getChainProperties().ss58Format;
for (let i = 0; i < accountsToCreate; i++) {
if (i === 500) { // if there are too many accounts to create
await Promise.allSettled(transactions); // wait while first 500 (should be 100 for devnode) tx will be settled
transactions = []; //
nonce = await this.helper.chain.getNonce(donor.address); // update nonce
}
- const recepient = this.helper.util.fromSeed(mnemonicGenerate());
- accounts.push(recepient);
+ const recipient = this.helper.util.fromSeed(mnemonicGenerate(), ss58Format);
+ accounts.push(recipient);
if (withBalance !== 0n) {
- const tx = this.helper.constructApiCall('api.tx.balances.transfer', [{Id: recepient.address}, withBalance * tokenNominal]);
+ const tx = this.helper.constructApiCall('api.tx.balances.transfer', [{Id: recipient.address}, withBalance * tokenNominal]);
transactions.push(this.helper.signTransaction(donor, tx, {nonce}, 'account generation'));
nonce++;
}