From 97c658daa86d79a8378ce83252e7210faa717fca Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Fri, 14 Jul 2023 18:53:56 +0200 Subject: [PATCH 01/21] Add asset_registry.rs to runtime/common --- runtime/common/Cargo.toml | 35 +++++++++++------- runtime/common/src/asset_registry.rs | 54 ++++++++++++++++++++++++++++ runtime/common/src/lib.rs | 1 + 3 files changed, 77 insertions(+), 13 deletions(-) create mode 100644 runtime/common/src/asset_registry.rs diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 936fcb1c1..5c77013c5 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -11,30 +11,39 @@ edition = "2021" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -# Substrate -parity-scale-codec = {version = "3.1.5", default-features = false, features = ["derive"]} -scale-info = {version = "2.1.1", default-features = false, features = ["derive"]} +parity-scale-codec = { version = "3.1.5", default-features = false, features = ["derive"] } +scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } + +frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } +frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "06873f16c4a7ab884e4759d98b7b86c712e0c0ae"} + +orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.40" } + dia-oracle = { git = "https://github.com/pendulum-chain/oracle-pallet", default-features = false, branch = "polkadot-v0.9.40" } +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "06873f16c4a7ab884e4759d98b7b86c712e0c0ae" } + [features] default = [ - "std", + "std", ] std = [ - "sp-consensus-aura/std", - "sp-runtime/std", - "sp-core/std", - "spacewalk-primitives/std", - "parity-scale-codec/std", - "scale-info/std", - "dia-oracle/std", + "parity-scale-codec/std", + "scale-info/std", + "frame-support/std", + "frame-system/std", + "sp-runtime/std", + "sp-consensus-aura/std", + "sp-core/std", + "orml-traits/std", + "dia-oracle/std", + "spacewalk-primitives/std", ] runtime-benchmarks = [ - "sp-runtime/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] diff --git a/runtime/common/src/asset_registry.rs b/runtime/common/src/asset_registry.rs new file mode 100644 index 000000000..11ec9b838 --- /dev/null +++ b/runtime/common/src/asset_registry.rs @@ -0,0 +1,54 @@ +use crate::*; +use frame_support::{ + dispatch::RawOrigin, + sp_std::marker::PhantomData, + traits::{EnsureOrigin, EnsureOriginWithArg}, +}; +use frame_system::EnsureRoot; +use orml_traits::asset_registry::{AssetMetadata, AssetProcessor}; +use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; +use scale_info::TypeInfo; +use sp_runtime::DispatchError; +use spacewalk_primitives::CurrencyId; + +pub use spacewalk_primitives::CustomMetadata; + +#[derive( + Clone, Copy, PartialOrd, Ord, PartialEq, Eq, Debug, Encode, Decode, TypeInfo, MaxEncodedLen, +)] +pub struct CustomAssetProcessor; + +impl AssetProcessor> for CustomAssetProcessor { + fn pre_register( + id: Option, + metadata: AssetMetadata, + ) -> Result<(CurrencyId, AssetMetadata), DispatchError> { + match id { + Some(id) => Ok((id, metadata)), + None => Err(DispatchError::Other("asset-registry: AssetId is required")), + } + } + + fn post_register( + _id: CurrencyId, + _asset_metadata: AssetMetadata, + ) -> Result<(), DispatchError> { + Ok(()) + } +} + +pub struct AssetAuthority(PhantomData); +impl, Origin>> + From>> + EnsureOriginWithArg> for AssetAuthority +{ + type Success = (); + + fn try_origin(origin: Origin, _asset_id: &Option) -> Result { + EnsureRoot::try_origin(origin) + } + + #[cfg(feature = "runtime-benchmarks")] + fn try_successful_origin(_: &Option) -> Result { + EnsureRoot::try_successful_origin() + } +} diff --git a/runtime/common/src/lib.rs b/runtime/common/src/lib.rs index e35e39193..6a132d2d7 100644 --- a/runtime/common/src/lib.rs +++ b/runtime/common/src/lib.rs @@ -5,6 +5,7 @@ use sp_runtime::{ DispatchError, MultiSignature, }; +pub mod asset_registry; pub mod chain_ext; /// Alias to 512-bit hash when used in the context of a transaction signature on the chain. From 80ec89703e051e87759031175b38cee6959dbb9a Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Fri, 14 Jul 2023 18:54:09 +0200 Subject: [PATCH 02/21] Add asset registry pallet to Foucoco runtime --- Cargo.lock | 23 +++++++++++++++++++++++ node/src/chain_spec.rs | 1 + runtime/foucoco/Cargo.toml | 2 ++ runtime/foucoco/src/lib.rs | 18 +++++++++++++++--- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f6df3c19a..b22873f79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2989,6 +2989,7 @@ dependencies = [ "module-vault-registry-rpc-runtime-api", "nomination", "oracle", + "orml-asset-registry", "orml-currencies", "orml-currencies-allowance-extension", "orml-tokens", @@ -5997,6 +5998,25 @@ dependencies = [ "num-traits", ] +[[package]] +name = "orml-asset-registry" +version = "0.4.1-dev" +source = "git+https://github.com/open-web3-stack/open-runtime-module-library.git?branch=polkadot-v0.9.40#19afb58a300faac6ceb0e6e4e341859282897c53" +dependencies = [ + "frame-support", + "frame-system", + "orml-traits", + "pallet-xcm", + "parity-scale-codec", + "scale-info", + "serde", + "sp-runtime", + "sp-std", + "xcm", + "xcm-builder", + "xcm-executor", +] + [[package]] name = "orml-currencies" version = "0.4.1-dev" @@ -9813,6 +9833,9 @@ name = "runtime-common" version = "0.1.0" dependencies = [ "dia-oracle", + "frame-support", + "frame-system", + "orml-traits", "parity-scale-codec", "scale-info", "sp-consensus-aura", diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 38444f189..6521cbe96 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -727,6 +727,7 @@ fn foucoco_genesis( ); foucoco_runtime::GenesisConfig { + asset_registry: Default::default(), system: foucoco_runtime::SystemConfig { code: foucoco_runtime::WASM_BINARY .expect("WASM binary was not build, please build it!") diff --git a/runtime/foucoco/Cargo.toml b/runtime/foucoco/Cargo.toml index 5d07f0c4a..2fb0341d5 100644 --- a/runtime/foucoco/Cargo.toml +++ b/runtime/foucoco/Cargo.toml @@ -90,6 +90,7 @@ sp-transaction-pool = { git = "https://github.com/paritytech/substrate", default sp-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } # Open Runtime Module Library +orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.40" } orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } @@ -155,6 +156,7 @@ std = [ "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "orml-asset-registry/std", "orml-currencies/std", "orml-traits/std", "orml-tokens/std", diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index 2565d205e..04b4d53c0 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -59,8 +59,8 @@ use frame_system::{ pub use sp_runtime::{MultiAddress, Perbill, Permill, Perquintill}; use runtime_common::{ - chain_ext, opaque, AccountId, Amount, AuraId, Balance, BlockNumber, Hash, Index, PoolId, - ReserveIdentifier, Signature, EXISTENTIAL_DEPOSIT, MILLIUNIT, NANOUNIT, UNIT, + asset_registry, chain_ext, opaque, AccountId, Amount, AuraId, Balance, BlockNumber, Hash, + Index, PoolId, ReserveIdentifier, Signature, EXISTENTIAL_DEPOSIT, MILLIUNIT, NANOUNIT, UNIT, }; use cumulus_pallet_parachain_system::RelayNumberStrictlyIncreases; @@ -364,7 +364,8 @@ impl Contains for BaseFilter { RuntimeCall::VaultRegistry(_) | RuntimeCall::VaultRewards(_) | RuntimeCall::Farming(_) | - RuntimeCall::TokenAllowance(_) => true, + RuntimeCall::TokenAllowance(_) | + RuntimeCall::AssetRegistry(_) => true, // All pallets are allowed, but exhaustive match is defensive // in the case of adding new pallets. } @@ -822,6 +823,16 @@ impl orml_currencies::Config for Runtime { type WeightInfo = (); } +impl orml_asset_registry::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type CustomMetadata = asset_registry::CustomMetadata; + type AssetId = CurrencyId; + type AuthorityOrigin = asset_registry::AssetAuthority; + type AssetProcessor = asset_registry::CustomAssetProcessor; + type Balance = Balance; + type WeightInfo = weights::orml_asset_registry::WeightInfo; +} + parameter_types! { pub const MinBlocksPerRound: BlockNumber = HOURS; pub const DefaultBlocksPerRound: BlockNumber = 2 * HOURS; @@ -1540,6 +1551,7 @@ construct_runtime!( TokenAllowance: orml_currencies_allowance_extension::{Pallet, Storage, Call, Event} = 80, Farming: farming::{Pallet, Call, Storage, Event} = 90, + AssetRegistry: orml_asset_registry::{Pallet, Storage, Call, Event, Config} = 91, } ); From c7221472c5fc451dfdfd7219b38f70ed8d9a7f5e Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Fri, 14 Jul 2023 18:57:33 +0200 Subject: [PATCH 03/21] Add asset registry pallet to Amplitude runtime --- runtime/amplitude/Cargo.toml | 2 ++ runtime/amplitude/src/lib.rs | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/runtime/amplitude/Cargo.toml b/runtime/amplitude/Cargo.toml index 365208f3f..734215ddc 100644 --- a/runtime/amplitude/Cargo.toml +++ b/runtime/amplitude/Cargo.toml @@ -88,6 +88,7 @@ sp-transaction-pool = { git = "https://github.com/paritytech/substrate", default sp-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } # Open Runtime Module Library +orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } @@ -150,6 +151,7 @@ std = [ "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "orml-asset-registry/std", "orml-currencies/std", "orml-traits/std", "orml-tokens/std", diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index 36c5ee734..fd756b1e4 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -58,8 +58,8 @@ use frame_system::{ pub use sp_runtime::{MultiAddress, Perbill, Permill, Perquintill}; use runtime_common::{ - opaque, AccountId, Amount, AuraId, Balance, BlockNumber, Hash, Index, ReserveIdentifier, - Signature, EXISTENTIAL_DEPOSIT, MILLIUNIT, NANOUNIT, UNIT, + asset_registry, opaque, AccountId, Amount, AuraId, Balance, BlockNumber, Hash, Index, + ReserveIdentifier, Signature, EXISTENTIAL_DEPOSIT, MILLIUNIT, NANOUNIT, UNIT, }; use cumulus_pallet_parachain_system::RelayNumberStrictlyIncreases; @@ -819,6 +819,16 @@ impl orml_currencies::Config for Runtime { type WeightInfo = (); } +impl orml_asset_registry::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type CustomMetadata = asset_registry::CustomMetadata; + type AssetId = CurrencyId; + type AuthorityOrigin = asset_registry::AssetAuthority; + type AssetProcessor = asset_registry::CustomAssetProcessor; + type Balance = Balance; + type WeightInfo = weights::orml_asset_registry::WeightInfo; +} + parameter_types! { pub const MinBlocksPerRound: BlockNumber = HOURS; pub const DefaultBlocksPerRound: BlockNumber = 2 * HOURS; @@ -1251,6 +1261,8 @@ construct_runtime!( VaultRewards: reward::{Pallet, Call, Storage, Event} = 70, VaultStaking: staking::{Pallet, Storage, Event} = 71, + AssetRegistry: orml_asset_registry::{Pallet, Storage, Call, Event, Config} = 91, + VestingManager: vesting_manager::{Pallet, Call, Event} = 100 } ); From f726d187928c4c7fc88bd7cf5b94d14b33405aab Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Fri, 14 Jul 2023 18:59:56 +0200 Subject: [PATCH 04/21] Add asset registry pallet to Pendulum runtime --- Cargo.lock | 2 ++ runtime/pendulum/Cargo.toml | 2 ++ runtime/pendulum/src/lib.rs | 16 ++++++++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b22873f79..6929e6018 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -228,6 +228,7 @@ dependencies = [ "module-vault-registry-rpc-runtime-api", "nomination", "oracle", + "orml-asset-registry", "orml-currencies", "orml-tokens", "orml-traits", @@ -7622,6 +7623,7 @@ dependencies = [ "frame-try-runtime", "hex-literal", "log", + "orml-asset-registry", "orml-currencies", "orml-tokens", "orml-traits", diff --git a/runtime/pendulum/Cargo.toml b/runtime/pendulum/Cargo.toml index 2af166323..02679d357 100644 --- a/runtime/pendulum/Cargo.toml +++ b/runtime/pendulum/Cargo.toml @@ -68,6 +68,7 @@ sp-transaction-pool = {git = "https://github.com/paritytech/substrate", default- sp-version = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40"} # Open Runtime Module Library +orml-asset-registry = {git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-currencies = {git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-traits = {git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } orml-tokens = {git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.40" } @@ -131,6 +132,7 @@ std = [ "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "orml-asset-registry/std", "orml-currencies/std", "orml-traits/std", "orml-tokens/std", diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index 08d886208..aef010812 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -55,8 +55,8 @@ use frame_system::{ pub use sp_runtime::{traits::AccountIdConversion, MultiAddress, Perbill, Permill, Perquintill}; use runtime_common::{ - opaque, AccountId, Amount, AuraId, Balance, BlockNumber, Hash, Index, ReserveIdentifier, - Signature, EXISTENTIAL_DEPOSIT, MILLIUNIT, NANOUNIT, UNIT, + asset_registry, opaque, AccountId, Amount, AuraId, Balance, BlockNumber, Hash, Index, + ReserveIdentifier, Signature, EXISTENTIAL_DEPOSIT, MILLIUNIT, NANOUNIT, UNIT, }; use cumulus_pallet_parachain_system::RelayNumberStrictlyIncreases; @@ -728,6 +728,16 @@ impl orml_currencies::Config for Runtime { type WeightInfo = (); } +impl orml_asset_registry::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type CustomMetadata = asset_registry::CustomMetadata; + type AssetId = CurrencyId; + type AuthorityOrigin = asset_registry::AssetAuthority; + type AssetProcessor = asset_registry::CustomAssetProcessor; + type Balance = Balance; + type WeightInfo = weights::orml_asset_registry::WeightInfo; +} + parameter_types! { pub const MinBlocksPerRound: BlockNumber = HOURS; pub const DefaultBlocksPerRound: BlockNumber = 2 * HOURS; @@ -1001,6 +1011,8 @@ construct_runtime!( ZenlinkProtocol: zenlink_protocol::{Pallet, Call, Storage, Event} = 59, + AssetRegistry: orml_asset_registry::{Pallet, Storage, Call, Event, Config} = 91, + VestingManager: vesting_manager::{Pallet, Call, Event} = 100 } ); From 4468422567900092f878daa98381fb684ca88ae2 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 09:52:17 +0200 Subject: [PATCH 05/21] Add benchmarking logic for orml_asset_registry.rs to runtime/common --- Cargo.lock | 1 + runtime/common/Cargo.toml | 1 + runtime/common/src/benchmarking/mod.rs | 1 + .../src/benchmarking/orml_asset_registry.rs | 90 +++++++++++++++++++ runtime/common/src/lib.rs | 3 + 5 files changed, 96 insertions(+) create mode 100644 runtime/common/src/benchmarking/mod.rs create mode 100644 runtime/common/src/benchmarking/orml_asset_registry.rs diff --git a/Cargo.lock b/Cargo.lock index 6929e6018..25e4d5cc4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9837,6 +9837,7 @@ dependencies = [ "dia-oracle", "frame-support", "frame-system", + "orml-asset-registry", "orml-traits", "parity-scale-codec", "scale-info", diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 5c77013c5..7259d8cab 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -21,6 +21,7 @@ sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-f sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.40" } +orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.40" } dia-oracle = { git = "https://github.com/pendulum-chain/oracle-pallet", default-features = false, branch = "polkadot-v0.9.40" } diff --git a/runtime/common/src/benchmarking/mod.rs b/runtime/common/src/benchmarking/mod.rs new file mode 100644 index 000000000..31673820e --- /dev/null +++ b/runtime/common/src/benchmarking/mod.rs @@ -0,0 +1 @@ +pub mod orml_asset_registry; diff --git a/runtime/common/src/benchmarking/orml_asset_registry.rs b/runtime/common/src/benchmarking/orml_asset_registry.rs new file mode 100644 index 000000000..59fca9dfa --- /dev/null +++ b/runtime/common/src/benchmarking/orml_asset_registry.rs @@ -0,0 +1,90 @@ +use frame_benchmarking::v2::benchmarks; +use frame_support::assert_ok; +use frame_system::RawOrigin; +use orml_asset_registry::AssetMetadata; +use primitives::CustomMetadata; +use sp_std::{vec, vec::Vec}; +use spacewalk_primitives::{CurrencyId, CustomMetadata}; +use xcm::{ + latest::MultiLocation, + opaque::lts::{Junction::*, Junctions::*}, +}; + +pub struct Pallet(orml_asset_registry::Pallet); +pub trait Config: + orml_asset_registry::Config +{ +} + +#[benchmarks] +pub mod benchmarks { + use super::{Config, Pallet, *}; + use orml_asset_registry::Call; + + fn longest_vec() -> Vec { + // there is no fixed upperbound, but all actions are root-only so an assumed upperbound of 128 will do + vec![b'a', 128] + } + + fn longest_multilocation() -> MultiLocation { + let key = GeneralKey { length: 32, data: [0; 32] }; + MultiLocation::new(1, X8(key, key, key, key, key, key, key, key)) + } + + fn get_asset_metadata() -> AssetMetadata { + AssetMetadata { + decimals: 12, + name: longest_vec(), + symbol: longest_vec(), + existential_deposit: 0, + location: Some(longest_multilocation().into()), + additional: CustomMetadata { + fee_per_second: 1_000_000_000_000, + coingecko_id: longest_vec(), + }, + } + } + + #[benchmark] + fn register_asset() { + let metadata = get_asset_metadata(); + + #[extrinsic_call] + register_asset(RawOrigin::Root, metadata, None); + } + + #[benchmark] + fn update_asset() { + let metadata = get_asset_metadata(); + + assert_ok!(orml_asset_registry::Pallet::::register_asset( + RawOrigin::Root.into(), + metadata, + None, + )); + + // update values, and make sure to change the actual values in case there is some optimization + // somewhere in the codepath + let key = GeneralKey { length: 32, data: [1; 32] }; + let location = MultiLocation::new(1, X8(key, key, key, key, key, key, key, key)); + #[extrinsic_call] + update_asset( + RawOrigin::Root, + 1, + Some(123), + Some(vec![b'b', 128]), + Some(vec![b'b', 128]), + Some(1234), + Some(Some(location.into())), + Some(CustomMetadata { fee_per_second: 123, coingecko_id: vec![b'b', 128] }), + ); + } + + #[benchmark] + fn set_asset_location() { + #[block] + { + // todo: remove this benchmark when this unused item is removed from the weight type upstream + } + } +} diff --git a/runtime/common/src/lib.rs b/runtime/common/src/lib.rs index 6a132d2d7..dea4b64a9 100644 --- a/runtime/common/src/lib.rs +++ b/runtime/common/src/lib.rs @@ -8,6 +8,9 @@ use sp_runtime::{ pub mod asset_registry; pub mod chain_ext; +#[cfg(feature = "runtime-benchmarks")] +pub mod benchmarking; + /// Alias to 512-bit hash when used in the context of a transaction signature on the chain. pub type Signature = MultiSignature; From 66e2947853437663cd534a9b9bc4f8f116dfaf0f Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 16:17:29 +0200 Subject: [PATCH 06/21] Add benchmarked weights for orml-asset-registry --- runtime/amplitude/src/weights/mod.rs | 1 + .../src/weights/orml_asset_registry.rs | 78 +++++++++++++++++++ runtime/foucoco/src/weights/mod.rs | 1 + .../src/weights/orml_asset_registry.rs | 78 +++++++++++++++++++ runtime/pendulum/src/weights/mod.rs | 1 + .../src/weights/orml_asset_registry.rs | 78 +++++++++++++++++++ 6 files changed, 237 insertions(+) create mode 100644 runtime/amplitude/src/weights/orml_asset_registry.rs create mode 100644 runtime/foucoco/src/weights/orml_asset_registry.rs create mode 100644 runtime/pendulum/src/weights/orml_asset_registry.rs diff --git a/runtime/amplitude/src/weights/mod.rs b/runtime/amplitude/src/weights/mod.rs index aae2a4feb..b05024844 100644 --- a/runtime/amplitude/src/weights/mod.rs +++ b/runtime/amplitude/src/weights/mod.rs @@ -19,6 +19,7 @@ pub mod block_weights; pub mod extrinsic_weights; +pub mod orml_asset_registry; pub mod pallet_xcm; pub mod paritydb_weights; pub mod rocksdb_weights; diff --git a/runtime/amplitude/src/weights/orml_asset_registry.rs b/runtime/amplitude/src/weights/orml_asset_registry.rs new file mode 100644 index 000000000..4108bf6be --- /dev/null +++ b/runtime/amplitude/src/weights/orml_asset_registry.rs @@ -0,0 +1,78 @@ + +//! Autogenerated weights for orml_asset_registry +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-05, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 + +// Executed Command: +// target/release/interbtc-parachain +// benchmark +// pallet +// --pallet +// * +// --extrinsic +// * +// --chain +// interlay-dev +// --execution=wasm +// --wasm-execution=compiled +// --steps +// 50 +// --repeat +// 10 +// --output +// ../tmp-weight/ +// --template +// .deploy/runtime-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use sp_std::marker::PhantomData; + +/// Weights for orml_asset_registry using the Substrate node and recommended hardware. +pub struct WeightInfo(PhantomData); + +impl orml_asset_registry::WeightInfo for WeightInfo { + + /// Storage: AssetRegistry LastAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LastAssetId (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn register_asset () -> Weight { + // Proof Size summary in bytes: + // Measured: `107` + // Estimated: `8736` + // Minimum execution time: 55_685_000 picoseconds. + Weight::from_parts(63_994_000, 8736) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn update_asset () -> Weight { + // Proof Size summary in bytes: + // Measured: `774` + // Estimated: `8478` + // Minimum execution time: 67_201_000 picoseconds. + Weight::from_parts(75_234_000, 8478) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + fn set_asset_location () -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 524_000 picoseconds. + Weight::from_parts(579_000, 0) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/mod.rs b/runtime/foucoco/src/weights/mod.rs index aae2a4feb..b05024844 100644 --- a/runtime/foucoco/src/weights/mod.rs +++ b/runtime/foucoco/src/weights/mod.rs @@ -19,6 +19,7 @@ pub mod block_weights; pub mod extrinsic_weights; +pub mod orml_asset_registry; pub mod pallet_xcm; pub mod paritydb_weights; pub mod rocksdb_weights; diff --git a/runtime/foucoco/src/weights/orml_asset_registry.rs b/runtime/foucoco/src/weights/orml_asset_registry.rs new file mode 100644 index 000000000..4108bf6be --- /dev/null +++ b/runtime/foucoco/src/weights/orml_asset_registry.rs @@ -0,0 +1,78 @@ + +//! Autogenerated weights for orml_asset_registry +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-05, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 + +// Executed Command: +// target/release/interbtc-parachain +// benchmark +// pallet +// --pallet +// * +// --extrinsic +// * +// --chain +// interlay-dev +// --execution=wasm +// --wasm-execution=compiled +// --steps +// 50 +// --repeat +// 10 +// --output +// ../tmp-weight/ +// --template +// .deploy/runtime-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use sp_std::marker::PhantomData; + +/// Weights for orml_asset_registry using the Substrate node and recommended hardware. +pub struct WeightInfo(PhantomData); + +impl orml_asset_registry::WeightInfo for WeightInfo { + + /// Storage: AssetRegistry LastAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LastAssetId (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn register_asset () -> Weight { + // Proof Size summary in bytes: + // Measured: `107` + // Estimated: `8736` + // Minimum execution time: 55_685_000 picoseconds. + Weight::from_parts(63_994_000, 8736) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn update_asset () -> Weight { + // Proof Size summary in bytes: + // Measured: `774` + // Estimated: `8478` + // Minimum execution time: 67_201_000 picoseconds. + Weight::from_parts(75_234_000, 8478) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + fn set_asset_location () -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 524_000 picoseconds. + Weight::from_parts(579_000, 0) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/mod.rs b/runtime/pendulum/src/weights/mod.rs index aae2a4feb..b05024844 100644 --- a/runtime/pendulum/src/weights/mod.rs +++ b/runtime/pendulum/src/weights/mod.rs @@ -19,6 +19,7 @@ pub mod block_weights; pub mod extrinsic_weights; +pub mod orml_asset_registry; pub mod pallet_xcm; pub mod paritydb_weights; pub mod rocksdb_weights; diff --git a/runtime/pendulum/src/weights/orml_asset_registry.rs b/runtime/pendulum/src/weights/orml_asset_registry.rs new file mode 100644 index 000000000..4108bf6be --- /dev/null +++ b/runtime/pendulum/src/weights/orml_asset_registry.rs @@ -0,0 +1,78 @@ + +//! Autogenerated weights for orml_asset_registry +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-05, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 + +// Executed Command: +// target/release/interbtc-parachain +// benchmark +// pallet +// --pallet +// * +// --extrinsic +// * +// --chain +// interlay-dev +// --execution=wasm +// --wasm-execution=compiled +// --steps +// 50 +// --repeat +// 10 +// --output +// ../tmp-weight/ +// --template +// .deploy/runtime-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use sp_std::marker::PhantomData; + +/// Weights for orml_asset_registry using the Substrate node and recommended hardware. +pub struct WeightInfo(PhantomData); + +impl orml_asset_registry::WeightInfo for WeightInfo { + + /// Storage: AssetRegistry LastAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LastAssetId (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn register_asset () -> Weight { + // Proof Size summary in bytes: + // Measured: `107` + // Estimated: `8736` + // Minimum execution time: 55_685_000 picoseconds. + Weight::from_parts(63_994_000, 8736) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn update_asset () -> Weight { + // Proof Size summary in bytes: + // Measured: `774` + // Estimated: `8478` + // Minimum execution time: 67_201_000 picoseconds. + Weight::from_parts(75_234_000, 8478) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + fn set_asset_location () -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 524_000 picoseconds. + Weight::from_parts(579_000, 0) + } +} \ No newline at end of file From 5a5bd77190279084c5e13f3a230544d3999495c9 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 16:17:58 +0200 Subject: [PATCH 07/21] Change call filters --- runtime/amplitude/src/lib.rs | 3 ++- runtime/pendulum/src/lib.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index fd756b1e4..763bfd8ac 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -355,7 +355,8 @@ impl Contains for BaseFilter { RuntimeCall::Security(_) | RuntimeCall::StellarRelay(_) | RuntimeCall::VaultRegistry(_) | - RuntimeCall::VaultRewards(_) => true, + RuntimeCall::VaultRewards(_) | + RuntimeCall::AssetRegistry(_) => true, // All pallets are allowed, but exhaustive match is defensive // in the case of adding new pallets. } diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index aef010812..4055b718c 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -269,7 +269,8 @@ impl Contains for BaseFilter { RuntimeCall::Contracts(_) | RuntimeCall::ZenlinkProtocol(_) | RuntimeCall::DiaOracleModule(_) | - RuntimeCall::VestingManager(_) => true, + RuntimeCall::VestingManager(_) | + RuntimeCall::AssetRegistry(_) => true, // All pallets are allowed, but exhaustive match is defensive // in the case of adding new pallets. } From 2452fcd0c414a0e893c1f31c3664eb3ad75e15b5 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 16:19:58 +0200 Subject: [PATCH 08/21] Enable benchmarks for asset registry in all runtimes --- runtime/amplitude/src/lib.rs | 4 ++++ runtime/foucoco/src/lib.rs | 7 +++++-- runtime/pendulum/src/lib.rs | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index 763bfd8ac..f20998750 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -1290,6 +1290,9 @@ mod benches { [replace, Replace] [stellar_relay, StellarRelay] [vault_registry, VaultRegistry] + + // Other + [orml_asset_registry, runtime_common::benchmarking::orml_asset_registry::Pallet::] [pallet_xcm, PolkadotXcm] ); } @@ -1531,6 +1534,7 @@ impl_runtime_apis! { impl frame_system_benchmarking::Config for Runtime {} impl baseline::Config for Runtime {} + impl runtime_common::benchmarking::orml_asset_registry::Config for Runtime {} use cumulus_pallet_session_benchmarking::Pallet as SessionBench; impl cumulus_pallet_session_benchmarking::Config for Runtime {} diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index 04b4d53c0..afcde5503 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -1577,6 +1577,9 @@ mod benches { [replace, Replace] [stellar_relay, StellarRelay] [vault_registry, VaultRegistry] + + // Other + [orml_asset_registry, runtime_common::benchmarking::orml_asset_registry::Pallet::] [pallet_xcm, PolkadotXcm] ); } @@ -1823,13 +1826,13 @@ impl_runtime_apis! { fn dispatch_benchmark( config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { - use frame_benchmarking::{baseline, Benchmarking, BenchmarkBatch, TrackedStorageKey}; - + use frame_benchmarking::{baseline, Benchmarking, BenchmarkBatch, TrackedStorageKey}; use frame_system_benchmarking::Pallet as SystemBench; use baseline::Pallet as BaselineBench; impl frame_system_benchmarking::Config for Runtime {} impl baseline::Config for Runtime {} + impl runtime_common::benchmarking::orml_asset_registry::Config for Runtime {} use cumulus_pallet_session_benchmarking::Pallet as SessionBench; impl cumulus_pallet_session_benchmarking::Config for Runtime {} diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index 4055b718c..4ce4fe4ce 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -1032,6 +1032,8 @@ mod benches { [pallet_timestamp, Timestamp] [cumulus_pallet_xcmp_queue, XcmpQueue] + // Other + [orml_asset_registry, runtime_common::benchmarking::orml_asset_registry::Pallet::] [pallet_xcm, PolkadotXcm] ); } @@ -1273,6 +1275,7 @@ impl_runtime_apis! { impl frame_system_benchmarking::Config for Runtime {} impl baseline::Config for Runtime {} + impl runtime_common::benchmarking::orml_asset_registry::Config for Runtime {} use cumulus_pallet_session_benchmarking::Pallet as SessionBench; impl cumulus_pallet_session_benchmarking::Config for Runtime {} From 545597874f5916c4738249e8656eeffb19050b77 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 16:35:33 +0200 Subject: [PATCH 09/21] Configure asset_registry in chain_spec.rs --- node/src/chain_spec.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 6521cbe96..62fd657c2 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -550,6 +550,7 @@ fn amplitude_genesis( ); amplitude_runtime::GenesisConfig { + asset_registry: Default::default(), system: amplitude_runtime::SystemConfig { code: amplitude_runtime::WASM_BINARY .expect("WASM binary was not build, please build it!") @@ -890,6 +891,7 @@ fn pendulum_genesis( .collect(); pendulum_runtime::GenesisConfig { + asset_registry: Default::default(), system: pendulum_runtime::SystemConfig { code: pendulum_runtime::WASM_BINARY .expect("WASM binary was not build, please build it!") From 91b9e5208d58d784e73cc99e86d2f058e8b6d460 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 16:35:53 +0200 Subject: [PATCH 10/21] Update Cargo.lock --- Cargo.lock | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 25e4d5cc4..4a490f4ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2038,7 +2038,7 @@ dependencies = [ [[package]] name = "currency" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-support", "frame-system", @@ -2808,7 +2808,7 @@ dependencies = [ [[package]] name = "fee" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "currency", "frame-benchmarking", @@ -4098,7 +4098,7 @@ dependencies = [ [[package]] name = "issue" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "base64 0.13.1", "currency", @@ -5378,7 +5378,7 @@ dependencies = [ [[package]] name = "module-issue-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "jsonrpsee", "module-issue-rpc-runtime-api", @@ -5391,7 +5391,7 @@ dependencies = [ [[package]] name = "module-issue-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-support", "parity-scale-codec", @@ -5402,7 +5402,7 @@ dependencies = [ [[package]] name = "module-oracle-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "jsonrpsee", "module-oracle-rpc-runtime-api", @@ -5415,7 +5415,7 @@ dependencies = [ [[package]] name = "module-oracle-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-support", "parity-scale-codec", @@ -5427,7 +5427,7 @@ dependencies = [ [[package]] name = "module-redeem-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "jsonrpsee", "module-redeem-rpc-runtime-api", @@ -5440,7 +5440,7 @@ dependencies = [ [[package]] name = "module-redeem-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-support", "parity-scale-codec", @@ -5451,7 +5451,7 @@ dependencies = [ [[package]] name = "module-replace-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "jsonrpsee", "module-replace-rpc-runtime-api", @@ -5464,7 +5464,7 @@ dependencies = [ [[package]] name = "module-replace-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-support", "parity-scale-codec", @@ -5475,7 +5475,7 @@ dependencies = [ [[package]] name = "module-vault-registry-rpc" version = "0.3.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "jsonrpsee", "module-oracle-rpc-runtime-api", @@ -5489,7 +5489,7 @@ dependencies = [ [[package]] name = "module-vault-registry-rpc-runtime-api" version = "0.3.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-support", "module-oracle-rpc-runtime-api", @@ -5764,7 +5764,7 @@ dependencies = [ [[package]] name = "nomination" version = "0.5.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "currency", "fee", @@ -5935,7 +5935,7 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "oracle" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "currency", "dia-oracle", @@ -7671,6 +7671,7 @@ dependencies = [ "sp-std", "sp-transaction-pool", "sp-version", + "spacewalk-primitives", "substrate-wasm-builder", "vesting-manager", "xcm", @@ -9426,7 +9427,7 @@ dependencies = [ [[package]] name = "redeem" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "currency", "fee", @@ -9575,7 +9576,7 @@ dependencies = [ [[package]] name = "replace" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "currency", "fee", @@ -9617,7 +9618,7 @@ dependencies = [ [[package]] name = "reward" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-benchmarking", "frame-support", @@ -9845,6 +9846,7 @@ dependencies = [ "sp-core", "sp-runtime", "spacewalk-primitives", + "zenlink-protocol", ] [[package]] @@ -11342,7 +11344,7 @@ dependencies = [ [[package]] name = "security" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-support", "frame-system", @@ -12384,7 +12386,7 @@ dependencies = [ [[package]] name = "spacewalk-primitives" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "base58", "bstringify", @@ -12444,7 +12446,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staking" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "frame-benchmarking", "frame-support", @@ -12589,7 +12591,7 @@ dependencies = [ [[package]] name = "stellar-relay" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "base64 0.13.1", "currency", @@ -13568,7 +13570,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "vault-registry" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=06873f16c4a7ab884e4759d98b7b86c712e0c0ae#06873f16c4a7ab884e4759d98b7b86c712e0c0ae" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" dependencies = [ "currency", "fee", From 276cb172e86877a192a6c860e64364fde717ecb0 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 17:58:43 +0200 Subject: [PATCH 11/21] Fix missing dependencies of orml_asset_registry.rs --- Cargo.lock | 3 +++ runtime/common/Cargo.toml | 10 ++++++++++ runtime/common/src/benchmarking/orml_asset_registry.rs | 3 +-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4a490f4ce..2051a8865 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9836,6 +9836,7 @@ name = "runtime-common" version = "0.1.0" dependencies = [ "dia-oracle", + "frame-benchmarking", "frame-support", "frame-system", "orml-asset-registry", @@ -9845,7 +9846,9 @@ dependencies = [ "sp-consensus-aura", "sp-core", "sp-runtime", + "sp-std", "spacewalk-primitives", + "xcm", "zenlink-protocol", ] diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 72253fca8..0e1f93885 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -15,11 +15,15 @@ parity-scale-codec = { version = "3.1.5", default-features = false, features = [ scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } +frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.40", default-features = false, optional = true } frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } +sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.40" } +xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.40" } + orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.40" } orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.40" } @@ -36,11 +40,14 @@ default = [ std = [ "parity-scale-codec/std", "scale-info/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "sp-runtime/std", + "sp-std/std", "sp-consensus-aura/std", "sp-core/std", + "xcm/std", "orml-traits/std", "dia-oracle/std", "zenlink-protocol/std", @@ -48,5 +55,8 @@ std = [ ] runtime-benchmarks = [ + "frame-benchmarking", "sp-runtime/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", ] diff --git a/runtime/common/src/benchmarking/orml_asset_registry.rs b/runtime/common/src/benchmarking/orml_asset_registry.rs index 59fca9dfa..eb84713e1 100644 --- a/runtime/common/src/benchmarking/orml_asset_registry.rs +++ b/runtime/common/src/benchmarking/orml_asset_registry.rs @@ -2,7 +2,6 @@ use frame_benchmarking::v2::benchmarks; use frame_support::assert_ok; use frame_system::RawOrigin; use orml_asset_registry::AssetMetadata; -use primitives::CustomMetadata; use sp_std::{vec, vec::Vec}; use spacewalk_primitives::{CurrencyId, CustomMetadata}; use xcm::{ @@ -70,7 +69,7 @@ pub mod benchmarks { #[extrinsic_call] update_asset( RawOrigin::Root, - 1, + CurrencyId::Native, Some(123), Some(vec![b'b', 128]), Some(vec![b'b', 128]), From 4d81baa4eef01621d285fc24c012abc1245b7905 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 17 Jul 2023 18:14:57 +0200 Subject: [PATCH 12/21] Configure runtime-common/try-runtime features for runtimes --- runtime/amplitude/Cargo.toml | 4 +++- runtime/foucoco/Cargo.toml | 2 ++ runtime/pendulum/Cargo.toml | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/runtime/amplitude/Cargo.toml b/runtime/amplitude/Cargo.toml index da530ee86..4a41b387e 100644 --- a/runtime/amplitude/Cargo.toml +++ b/runtime/amplitude/Cargo.toml @@ -245,7 +245,9 @@ runtime-benchmarks = [ "xcm-builder/runtime-benchmarks", "cumulus-pallet-session-benchmarking/runtime-benchmarks", "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-collective/runtime-benchmarks" + "pallet-collective/runtime-benchmarks", + + "runtime-common/runtime-benchmarks" ] try-runtime = [ diff --git a/runtime/foucoco/Cargo.toml b/runtime/foucoco/Cargo.toml index c1d6e332e..80d00f2f0 100644 --- a/runtime/foucoco/Cargo.toml +++ b/runtime/foucoco/Cargo.toml @@ -255,6 +255,8 @@ runtime-benchmarks = [ "replace/runtime-benchmarks", "stellar-relay/runtime-benchmarks", "vault-registry/runtime-benchmarks", + + "runtime-common/runtime-benchmarks" ] try-runtime = [ diff --git a/runtime/pendulum/Cargo.toml b/runtime/pendulum/Cargo.toml index ffb0e8ff3..3c0a19da1 100644 --- a/runtime/pendulum/Cargo.toml +++ b/runtime/pendulum/Cargo.toml @@ -200,7 +200,9 @@ runtime-benchmarks = [ "xcm-builder/runtime-benchmarks", "cumulus-pallet-session-benchmarking/runtime-benchmarks", "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-collective/runtime-benchmarks" + "pallet-collective/runtime-benchmarks", + + "runtime-common/runtime-benchmarks" ] try-runtime = [ From 9c23c804795004f8ac94aa30b15284aad4c820f3 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 18 Jul 2023 17:02:06 +0200 Subject: [PATCH 13/21] Rewrite AssetAuthority type Pass the EnsureRoot to another type instead of implementing the whole trait --- runtime/amplitude/src/lib.rs | 2 +- runtime/common/src/asset_registry.rs | 22 ++-------------------- runtime/foucoco/src/lib.rs | 2 +- runtime/pendulum/src/lib.rs | 2 +- 4 files changed, 5 insertions(+), 23 deletions(-) diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index f20998750..2254cb240 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -824,7 +824,7 @@ impl orml_asset_registry::Config for Runtime { type RuntimeEvent = RuntimeEvent; type CustomMetadata = asset_registry::CustomMetadata; type AssetId = CurrencyId; - type AuthorityOrigin = asset_registry::AssetAuthority; + type AuthorityOrigin = asset_registry::AssetAuthority; type AssetProcessor = asset_registry::CustomAssetProcessor; type Balance = Balance; type WeightInfo = weights::orml_asset_registry::WeightInfo; diff --git a/runtime/common/src/asset_registry.rs b/runtime/common/src/asset_registry.rs index 11ec9b838..e61bbe924 100644 --- a/runtime/common/src/asset_registry.rs +++ b/runtime/common/src/asset_registry.rs @@ -1,9 +1,5 @@ use crate::*; -use frame_support::{ - dispatch::RawOrigin, - sp_std::marker::PhantomData, - traits::{EnsureOrigin, EnsureOriginWithArg}, -}; +use frame_support::traits::AsEnsureOriginWithArg; use frame_system::EnsureRoot; use orml_traits::asset_registry::{AssetMetadata, AssetProcessor}; use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; @@ -37,18 +33,4 @@ impl AssetProcessor> for Cust } } -pub struct AssetAuthority(PhantomData); -impl, Origin>> + From>> - EnsureOriginWithArg> for AssetAuthority -{ - type Success = (); - - fn try_origin(origin: Origin, _asset_id: &Option) -> Result { - EnsureRoot::try_origin(origin) - } - - #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin(_: &Option) -> Result { - EnsureRoot::try_successful_origin() - } -} +pub type AssetAuthority = AsEnsureOriginWithArg>; diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index afcde5503..e45866a20 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -827,7 +827,7 @@ impl orml_asset_registry::Config for Runtime { type RuntimeEvent = RuntimeEvent; type CustomMetadata = asset_registry::CustomMetadata; type AssetId = CurrencyId; - type AuthorityOrigin = asset_registry::AssetAuthority; + type AuthorityOrigin = asset_registry::AssetAuthority; type AssetProcessor = asset_registry::CustomAssetProcessor; type Balance = Balance; type WeightInfo = weights::orml_asset_registry::WeightInfo; diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index 990e76418..ef4c7792a 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -732,7 +732,7 @@ impl orml_asset_registry::Config for Runtime { type RuntimeEvent = RuntimeEvent; type CustomMetadata = asset_registry::CustomMetadata; type AssetId = CurrencyId; - type AuthorityOrigin = asset_registry::AssetAuthority; + type AuthorityOrigin = asset_registry::AssetAuthority; type AssetProcessor = asset_registry::CustomAssetProcessor; type Balance = Balance; type WeightInfo = weights::orml_asset_registry::WeightInfo; From 15392fc9c40ba1fe878d73d907b97187f948daaf Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 18 Jul 2023 17:25:12 +0200 Subject: [PATCH 14/21] Add instructions for benchmarking to README.md --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af0d25e6d..c456bab55 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,9 @@ A successful build will create a binary under `./target/release/pendulum-node`. ### How to Generate Chain Spec -There are 4 different [runtime](runtime)s currently in the repo; **amplitude** for the Amplitude parachain, **foucoco** for the Foucoco testnet (running on Rococo), **pendulum** for the Pendulum parachain and **development** for the local development. Any of these runtimes are used depending on the config. The config is created by generating the chain spec: +There are 4 different [runtime](runtime)s currently in the repo; **amplitude** for the Amplitude parachain, **foucoco** +for the Foucoco testnet (running on Rococo), **pendulum** for the Pendulum parachain and **development** for the local +development. Any of these runtimes are used depending on the config. The config is created by generating the chain spec: ``` ./target/release/pendulum-node build-spec --disable-default-bootnode > local-parachain-plain.json @@ -105,9 +107,11 @@ An example for Amplitude will look like this: --execution=wasm --sync fast --pruning archive ``` -You can find the kusama.json [here](https://github.com/paritytech/polkadot/blob/master/node/service/chain-specs/kusama.json). +You can find the +kusama.json [here](https://github.com/paritytech/polkadot/blob/master/node/service/chain-specs/kusama.json). -For local testing, you can replace `--name` with predefined keys like `--alice` or `--bob`. You also need to specify the `--bootnode`. Here's an example: +For local testing, you can replace `--name` with predefined keys like `--alice` or `--bob`. You also need to specify +the `--bootnode`. Here's an example: ``` ./target/release/pendulum-node \ @@ -129,6 +133,62 @@ For local testing, you can replace `--name` with predefined keys like `--alice` ``` where `ALICE_NODE_ID` is the peer id of Alice. -You can find the rococo-custom-2-raw.json [here](https://github.com/substrate-developer-hub/substrate-docs/blob/314e9cd3bd0ca9426bbfd381b79c3ef4d06b49c2/static/assets/tutorials/cumulus/chain-specs/rococo-custom-2-raw.json). +You can find the +rococo-custom-2-raw.json [here](https://github.com/substrate-developer-hub/substrate-docs/blob/314e9cd3bd0ca9426bbfd381b79c3ef4d06b49c2/static/assets/tutorials/cumulus/chain-specs/rococo-custom-2-raw.json). -There are prerequisites in running the collator with a local relay chain. Refer to [how to run Pendulum locally](https://pendulum.gitbook.io/pendulum-docs/build/build-environment/local-pendulum-chain-setup). +There are prerequisites in running the collator with a local relay chain. Refer +to [how to run Pendulum locally](https://pendulum.gitbook.io/pendulum-docs/build/build-environment/local-pendulum-chain-setup). + +## How to benchmark runtime pallets + +Build the node with the `production` profile and the `runtime-benchmarks` feature enabled. + +```shell +cargo build --profile=production --features runtime-benchmarks --package pendulum-node +``` + +Run the benchmarks of a registered pallet. +The pallet has to be added to the list of defined benchmarks that you can find in the `benches` module of each +runtimes `lib.rs` file. + +#### Pendulum + +```shell +./target/production/pendulum-node benchmark pallet \ + --chain pendulum \ + --execution=wasm \ + --wasm-execution=compiled \ + --pallet "*" \ + --extrinsic "*" \ + --steps 50 \ + --repeat 20 \ + --output runtime/pendulum/src/weights/ +``` + +#### Amplitude + +```shell +./target/production/pendulum-node benchmark pallet \ + --chain amplitude \ + --execution=wasm \ + --wasm-execution=compiled \ + --pallet "*" \ + --extrinsic "*" \ + --steps 50 \ + --repeat 20 \ + --output runtime/amplitude/src/weights/ +``` + +#### Foucoco + +```shell +./target/production/pendulum-node benchmark pallet \ + --chain foucoco \ + --execution=wasm \ + --wasm-execution=compiled \ + --pallet "*" \ + --extrinsic "*" \ + --steps 50 \ + --repeat 20 \ + --output runtime/foucoco/src/weights/ +``` From f22ee5bff6436b3e2f482ca17460a01e6117e69a Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 18 Jul 2023 17:57:45 +0200 Subject: [PATCH 15/21] Use Some(Currency) in benchmarks --- runtime/common/src/benchmarking/orml_asset_registry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/common/src/benchmarking/orml_asset_registry.rs b/runtime/common/src/benchmarking/orml_asset_registry.rs index eb84713e1..2def689a6 100644 --- a/runtime/common/src/benchmarking/orml_asset_registry.rs +++ b/runtime/common/src/benchmarking/orml_asset_registry.rs @@ -49,7 +49,7 @@ pub mod benchmarks { let metadata = get_asset_metadata(); #[extrinsic_call] - register_asset(RawOrigin::Root, metadata, None); + register_asset(RawOrigin::Root, metadata, Some(CurrencyId::Native)); } #[benchmark] @@ -59,7 +59,7 @@ pub mod benchmarks { assert_ok!(orml_asset_registry::Pallet::::register_asset( RawOrigin::Root.into(), metadata, - None, + Some(CurrencyId::Native), )); // update values, and make sure to change the actual values in case there is some optimization From 6e6cc00a7ed9e1671057d50d6d4a27132c8f4734 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 18 Jul 2023 17:59:30 +0200 Subject: [PATCH 16/21] Generate benchmarks for orml_asset_registry pallet for all runtimes --- .../src/weights/orml_asset_registry.rs | 105 +++++++++--------- .../src/weights/orml_asset_registry.rs | 105 +++++++++--------- .../src/weights/orml_asset_registry.rs | 103 +++++++++-------- 3 files changed, 152 insertions(+), 161 deletions(-) diff --git a/runtime/amplitude/src/weights/orml_asset_registry.rs b/runtime/amplitude/src/weights/orml_asset_registry.rs index 4108bf6be..8da6a863b 100644 --- a/runtime/amplitude/src/weights/orml_asset_registry.rs +++ b/runtime/amplitude/src/weights/orml_asset_registry.rs @@ -1,78 +1,75 @@ -//! Autogenerated weights for orml_asset_registry +//! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-05, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-07-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 +//! HOSTNAME: `Marcels-MBP`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 // Executed Command: -// target/release/interbtc-parachain +// ./target/production/pendulum-node // benchmark // pallet -// --pallet -// * -// --extrinsic -// * // --chain -// interlay-dev +// amplitude // --execution=wasm // --wasm-execution=compiled +// --pallet +// orml-asset-registry +// --extrinsic +// * // --steps // 50 // --repeat -// 10 +// 20 // --output -// ../tmp-weight/ -// --template -// .deploy/runtime-weight-template.hbs +// runtime/amplitude/src/weights/orml_asset_registry.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for orml_asset_registry using the Substrate node and recommended hardware. +/// Weight functions for `orml_asset_registry`. pub struct WeightInfo(PhantomData); - impl orml_asset_registry::WeightInfo for WeightInfo { - - /// Storage: AssetRegistry LastAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LastAssetId (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - fn register_asset () -> Weight { - // Proof Size summary in bytes: - // Measured: `107` - // Estimated: `8736` - // Minimum execution time: 55_685_000 picoseconds. - Weight::from_parts(63_994_000, 8736) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - fn update_asset () -> Weight { - // Proof Size summary in bytes: - // Measured: `774` - // Estimated: `8478` - // Minimum execution time: 67_201_000 picoseconds. - Weight::from_parts(75_234_000, 8478) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - fn set_asset_location () -> Weight { - // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 524_000 picoseconds. - Weight::from_parts(579_000, 0) - } -} \ No newline at end of file + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn register_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `104` + // Estimated: `7138` + // Minimum execution time: 19_000_000 picoseconds. + Weight::from_parts(20_000_000, 0) + .saturating_add(Weight::from_parts(0, 7138)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn update_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `764` + // Estimated: `8458` + // Minimum execution time: 26_000_000 picoseconds. + Weight::from_parts(27_000_000, 0) + .saturating_add(Weight::from_parts(0, 8458)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + fn set_asset_location() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 0_000 picoseconds. + Weight::from_parts(0, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} diff --git a/runtime/foucoco/src/weights/orml_asset_registry.rs b/runtime/foucoco/src/weights/orml_asset_registry.rs index 4108bf6be..e1d8f11bf 100644 --- a/runtime/foucoco/src/weights/orml_asset_registry.rs +++ b/runtime/foucoco/src/weights/orml_asset_registry.rs @@ -1,78 +1,75 @@ -//! Autogenerated weights for orml_asset_registry +//! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-05, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-07-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 +//! HOSTNAME: `Marcels-MBP`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 // Executed Command: -// target/release/interbtc-parachain +// ./target/production/pendulum-node // benchmark // pallet -// --pallet -// * -// --extrinsic -// * // --chain -// interlay-dev +// foucoco // --execution=wasm // --wasm-execution=compiled +// --pallet +// orml-asset-registry +// --extrinsic +// * // --steps // 50 // --repeat -// 10 +// 20 // --output -// ../tmp-weight/ -// --template -// .deploy/runtime-weight-template.hbs +// runtime/foucoco/src/weights/orml_asset_registry.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for orml_asset_registry using the Substrate node and recommended hardware. +/// Weight functions for `orml_asset_registry`. pub struct WeightInfo(PhantomData); - impl orml_asset_registry::WeightInfo for WeightInfo { - - /// Storage: AssetRegistry LastAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LastAssetId (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - fn register_asset () -> Weight { - // Proof Size summary in bytes: - // Measured: `107` - // Estimated: `8736` - // Minimum execution time: 55_685_000 picoseconds. - Weight::from_parts(63_994_000, 8736) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - fn update_asset () -> Weight { - // Proof Size summary in bytes: - // Measured: `774` - // Estimated: `8478` - // Minimum execution time: 67_201_000 picoseconds. - Weight::from_parts(75_234_000, 8478) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - fn set_asset_location () -> Weight { - // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 524_000 picoseconds. - Weight::from_parts(579_000, 0) - } -} \ No newline at end of file + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn register_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `104` + // Estimated: `7138` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(21_000_000, 0) + .saturating_add(Weight::from_parts(0, 7138)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn update_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `764` + // Estimated: `8458` + // Minimum execution time: 27_000_000 picoseconds. + Weight::from_parts(27_000_000, 0) + .saturating_add(Weight::from_parts(0, 8458)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + fn set_asset_location() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 0_000 picoseconds. + Weight::from_parts(0, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} diff --git a/runtime/pendulum/src/weights/orml_asset_registry.rs b/runtime/pendulum/src/weights/orml_asset_registry.rs index 4108bf6be..f4f70410f 100644 --- a/runtime/pendulum/src/weights/orml_asset_registry.rs +++ b/runtime/pendulum/src/weights/orml_asset_registry.rs @@ -1,78 +1,75 @@ -//! Autogenerated weights for orml_asset_registry +//! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-05, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-07-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024 +//! HOSTNAME: `Marcels-MBP`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 // Executed Command: -// target/release/interbtc-parachain +// ./target/production/pendulum-node // benchmark // pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled // --pallet // * // --extrinsic // * -// --chain -// interlay-dev -// --execution=wasm -// --wasm-execution=compiled // --steps // 50 // --repeat -// 10 +// 20 // --output -// ../tmp-weight/ -// --template -// .deploy/runtime-weight-template.hbs +// runtime/pendulum/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] -use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; -/// Weights for orml_asset_registry using the Substrate node and recommended hardware. +/// Weight functions for `orml_asset_registry`. pub struct WeightInfo(PhantomData); - impl orml_asset_registry::WeightInfo for WeightInfo { - - /// Storage: AssetRegistry LastAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LastAssetId (max_values: Some(1), max_size: None, mode: Measured) - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - fn register_asset () -> Weight { - // Proof Size summary in bytes: - // Measured: `107` - // Estimated: `8736` - // Minimum execution time: 55_685_000 picoseconds. - Weight::from_parts(63_994_000, 8736) - .saturating_add(T::DbWeight::get().reads(3_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - /// Storage: AssetRegistry Metadata (r:1 w:1) - /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) - /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - fn update_asset () -> Weight { - // Proof Size summary in bytes: - // Measured: `774` - // Estimated: `8478` - // Minimum execution time: 67_201_000 picoseconds. - Weight::from_parts(75_234_000, 8478) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(3_u64)) - } - fn set_asset_location () -> Weight { - // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `0` - // Minimum execution time: 524_000 picoseconds. - Weight::from_parts(579_000, 0) - } -} \ No newline at end of file + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:1) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn register_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `66` + // Estimated: `7062` + // Minimum execution time: 19_000_000 picoseconds. + Weight::from_parts(20_000_000, 0) + .saturating_add(Weight::from_parts(0, 7062)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + /// Storage: AssetRegistry Metadata (r:1 w:1) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:2) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + fn update_asset() -> Weight { + // Proof Size summary in bytes: + // Measured: `726` + // Estimated: `8382` + // Minimum execution time: 26_000_000 picoseconds. + Weight::from_parts(28_000_000, 0) + .saturating_add(Weight::from_parts(0, 8382)) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + fn set_asset_location() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 0_000 picoseconds. + Weight::from_parts(0, 0) + .saturating_add(Weight::from_parts(0, 0)) + } +} From ac87d954274881f0e521c567048386f834403ae1 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 25 Jul 2023 17:32:25 +0200 Subject: [PATCH 17/21] Bump spacewalk dependencies This is necessary to have the latest CustomMetadata --- Cargo.lock | 807 ++++++++++++++++++----------------- node/Cargo.toml | 12 +- runtime/amplitude/Cargo.toml | 36 +- runtime/common/Cargo.toml | 2 +- runtime/foucoco/Cargo.toml | 36 +- runtime/pendulum/Cargo.toml | 2 +- 6 files changed, 469 insertions(+), 426 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2051a8865..7645adfaf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,9 +23,9 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" +checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3" dependencies = [ "gimli 0.27.3", ] @@ -90,9 +90,9 @@ dependencies = [ [[package]] name = "aes" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433cfd6710c9986c576a25ca913c39d66a6474107b406f34f91d4a8923395241" +checksum = "ac1f845298e95f983ff1944b728ae08b8cebab80d684f0a832ed0fc74dfa27e2" dependencies = [ "cfg-if", "cipher 0.4.4", @@ -120,7 +120,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "209b47e8954a928e1d72e86eca7000ebb6655fe1436d33eefc2201cad027e237" dependencies = [ "aead 0.5.2", - "aes 0.8.2", + "aes 0.8.3", "cipher 0.4.4", "ctr 0.9.2", "ghash 0.5.0", @@ -170,15 +170,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "aho-corasick" -version = "0.7.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" -dependencies = [ - "memchr", -] - [[package]] name = "aho-corasick" version = "1.0.2" @@ -334,15 +325,15 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" +checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd" [[package]] name = "anstyle-parse" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" +checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" dependencies = [ "utf8parse", ] @@ -368,9 +359,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.71" +version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" +checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854" [[package]] name = "approx" @@ -413,9 +404,9 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "arrayvec" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8868f09ff8cea88b079da74ae569d9b8c62a23c68c746240b704ee6f7525c89c" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "asn1-rs" @@ -430,7 +421,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.22", + "time 0.3.23", ] [[package]] @@ -446,7 +437,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.22", + "time 0.3.23", ] [[package]] @@ -514,9 +505,9 @@ dependencies = [ [[package]] name = "async-channel" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf46fee83e5ccffc220104713af3292ff9bc7c64c7de289f66dae8e38d826833" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" dependencies = [ "concurrent-queue", "event-listener", @@ -537,7 +528,7 @@ dependencies = [ "log", "parking", "polling", - "rustix 0.37.20", + "rustix 0.37.23", "slab", "socket2 0.4.9", "waker-fn", @@ -554,26 +545,26 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.68" +version = "0.1.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" +checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] name = "asynchronous-codec" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06a0daa378f5fd10634e44b0a29b2a87b890657658e072a30d6f26e57ddee182" +checksum = "4057f2c32adbb2fc158e22fb38433c8e9bbf76b75a4732c7c0cbaf695fb65568" dependencies = [ "bytes", "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", ] [[package]] @@ -601,16 +592,16 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.67" +version = "0.3.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" +checksum = "4319208da049c43661739c5fade2ba182f09d1dc2299b32298d3a31692b17e12" dependencies = [ - "addr2line 0.19.0", + "addr2line 0.20.0", "cc", "cfg-if", "libc", - "miniz_oxide 0.6.2", - "object 0.30.4", + "miniz_oxide", + "object 0.31.1", "rustc-demangle", ] @@ -730,7 +721,7 @@ version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" dependencies = [ - "bitflags", + "bitflags 1.3.2", "cexpr", "clang-sys", "lazy_static", @@ -750,6 +741,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" + [[package]] name = "bitvec" version = "1.0.1" @@ -778,8 +775,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" dependencies = [ "arrayref", - "arrayvec 0.7.3", - "constant_time_eq", + "arrayvec 0.7.4", + "constant_time_eq 0.2.6", ] [[package]] @@ -789,21 +786,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6637f448b9e61dfadbdcbae9a885fadee1f3eaffb1f8d3c1965d3ade8bdfd44f" dependencies = [ "arrayref", - "arrayvec 0.7.3", - "constant_time_eq", + "arrayvec 0.7.4", + "constant_time_eq 0.2.6", ] [[package]] name = "blake3" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "729b71f35bd3fa1a4c86b85d32c8b9069ea7fe14f7a53cfabb65f62d4265b888" +checksum = "199c42ab6972d92c9f8995f086273d25c42fc0f7b2a1fcefba465c1352d25ba5" dependencies = [ "arrayref", - "arrayvec 0.7.3", + "arrayvec 0.7.4", "cc", "cfg-if", - "constant_time_eq", + "constant_time_eq 0.3.0", "digest 0.10.7", ] @@ -891,9 +888,9 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "bstr" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a246e68bb43f6cd9db24bea052a53e40405417c5fb372e3d1a8a7f770a564ef5" +checksum = "6798148dccfbff0fae41c7574d2fa8f1ef3492fba0face179de5d8d447d67b05" dependencies = [ "memchr", "serde", @@ -963,18 +960,18 @@ dependencies = [ [[package]] name = "camino" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c530edf18f37068ac2d977409ed5cd50d53d73bc653c7647b48eb78976ac9ae2" +checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" dependencies = [ "serde", ] [[package]] name = "cargo-platform" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27" +checksum = "2cfa25e60aea747ec7e1124f238816749faa93759c6ff5b31f1ccdda137f4479" dependencies = [ "serde", ] @@ -987,7 +984,7 @@ checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.17", + "semver 1.0.18", "serde", "serde_json", "thiserror", @@ -1146,9 +1143,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.3.4" +version = "4.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80672091db20273a15cf9fdd4e47ed43b5091ec9841bf4c6145c9dfbbcae09ed" +checksum = "5fd304a20bff958a57f04c4e96a2e7594cc4490a0e809cbd48bb6437edaa452d" dependencies = [ "clap_builder", "clap_derive", @@ -1157,27 +1154,26 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.3.4" +version = "4.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1458a1df40e1e2afebb7ab60ce55c1fa8f431146205aa5f4887e0b111c27636" +checksum = "01c6a3f08f1fe5662a35cfe393aec09c4df95f60ee93b7556505260f75eee9e1" dependencies = [ "anstream", "anstyle", - "bitflags", "clap_lex", "strsim", ] [[package]] name = "clap_derive" -version = "4.3.2" +version = "4.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8cd2b2a819ad6eec39e8f1d6b53001af1e5469f8c177579cdaeb313115b825f" +checksum = "54a9bb5758fc5dfe728d1019941681eccaf0cf8a4189b692a0ee2f2ecf90a050" dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -1236,9 +1232,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.9.2" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913" +checksum = "795bc6e66a8e340f075fcf6227e417a2dc976b92b91f3cdc778bb858778b6747" [[package]] name = "constant_time_eq" @@ -1246,6 +1242,12 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21a53c0a4d288377e7415b53dcfc3c04da5cdc2cc95c8d5ac178b58f0b861ad6" +[[package]] +name = "constant_time_eq" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" + [[package]] name = "convert_case" version = "0.4.0" @@ -1298,9 +1300,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.7" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e4c1eaa2012c47becbbad2ab175484c2a84d1185b566fb2cc5b8707343dfe58" +checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" dependencies = [ "libc", ] @@ -1320,7 +1322,7 @@ version = "0.93.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "253531aca9b6f56103c9420369db3263e784df39aa1c90685a1f69cfbba0623e" dependencies = [ - "arrayvec 0.7.3", + "arrayvec 0.7.4", "bumpalo", "cranelift-bforest", "cranelift-codegen-meta", @@ -2038,7 +2040,7 @@ dependencies = [ [[package]] name = "currency" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-support", "frame-system", @@ -2097,9 +2099,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.97" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e88abab2f5abbe4c56e8f1fb431b784d710b709888f35755a160e62e33fe38e8" +checksum = "f68e12e817cb19eaab81aaec582b4052d07debd3c3c6b083b9d361db47c7dc9d" dependencies = [ "cc", "cxxbridge-flags", @@ -2109,9 +2111,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.97" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c0c11acd0e63bae27dcd2afced407063312771212b7a823b4fd72d633be30fb" +checksum = "e789217e4ab7cf8cc9ce82253180a9fe331f35f5d339f0ccfe0270b39433f397" dependencies = [ "cc", "codespan-reporting", @@ -2119,24 +2121,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] name = "cxxbridge-flags" -version = "1.0.97" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d3816ed957c008ccd4728485511e3d9aaf7db419aa321e3d2c5a2f3411e36c8" +checksum = "78a19f4c80fd9ab6c882286fa865e92e07688f4387370a209508014ead8751d0" [[package]] name = "cxxbridge-macro" -version = "1.0.97" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26acccf6f445af85ea056362561a24ef56cdc15fcc685f03aec50b9c702cb6d" +checksum = "b8fcfa71f66c8563c4fa9dd2bb68368d50267856f831ac5d85367e0805f9606c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -2476,7 +2478,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -2493,9 +2495,9 @@ checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] name = "dtoa" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65d09067bfacaa79114679b279d7f5885b53295b1e2cfb4e79c8e4bd3d633169" +checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653" [[package]] name = "dyn-clonable" @@ -2520,9 +2522,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b0cf012f1230e43cd00ebb729c6bb58707ecfa8ad08b52ef3a4ccd2697fc30" +checksum = "304e6508efa593091e97a9abbc10f90aa7ca635b6d2784feff3c89d41dd12272" [[package]] name = "ecdsa" @@ -2575,9 +2577,9 @@ dependencies = [ [[package]] name = "either" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "elliptic-curve" @@ -2630,18 +2632,18 @@ checksum = "5e9a1f9f7d83e59740248a6e14ecf93929ade55027844dfcea78beafccc15745" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] name = "enumn" -version = "0.1.8" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48016319042fb7c87b78d2993084a831793a897a5cd1a2a67cab9d1eeb4b7d76" +checksum = "b893c4eb2dc092c811165f84dc7447fae16fb66521717968c34c509b39b1a5c5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -2676,6 +2678,12 @@ version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e48c92028aaa870e83d51c64e5d4e0b6981b360c522198c23959f219a4e1b15b" +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + [[package]] name = "errno" version = "0.3.1" @@ -2771,6 +2779,12 @@ dependencies = [ "instant", ] +[[package]] +name = "fastrand" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764" + [[package]] name = "fatality" version = "0.0.6" @@ -2788,7 +2802,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f5aa1e3ae159e592ad222dc90c5acbad632b527779ba88486abe92782ab268bd" dependencies = [ "expander 0.0.4", - "indexmap", + "indexmap 1.9.3", "proc-macro-crate", "proc-macro2", "quote", @@ -2808,7 +2822,7 @@ dependencies = [ [[package]] name = "fee" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "currency", "frame-benchmarking", @@ -2919,7 +2933,7 @@ checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" dependencies = [ "crc32fast", "libz-sys", - "miniz_oxide 0.7.1", + "miniz_oxide", ] [[package]] @@ -3212,7 +3226,7 @@ name = "frame-support" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.40#98f2e3451c9143278ec53c6718940aeabcd3b68a" dependencies = [ - "bitflags", + "bitflags 1.3.2", "environmental", "frame-metadata", "frame-support-procedural", @@ -3349,11 +3363,11 @@ dependencies = [ [[package]] name = "fs4" -version = "0.6.5" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7672706608ecb74ab2e055c68327ffc25ae4cac1e12349204fd5fb0f3487cce2" +checksum = "2eeb4ed9e12f43b7fa0baae3f9cdda28352770132ef2e09a23760c29cae8bd47" dependencies = [ - "rustix 0.37.20", + "rustix 0.38.4", "windows-sys 0.48.0", ] @@ -3418,12 +3432,12 @@ version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" dependencies = [ - "fastrand", + "fastrand 1.9.0", "futures-core", "futures-io", "memchr", "parking", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "waker-fn", ] @@ -3435,7 +3449,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -3480,7 +3494,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "pin-utils", "slab", ] @@ -3562,7 +3576,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" dependencies = [ "opaque-debug 0.3.0", - "polyval 0.6.0", + "polyval 0.6.1", ] [[package]] @@ -3572,7 +3586,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" dependencies = [ "fallible-iterator", - "indexmap", + "indexmap 1.9.3", "stable_deref_trait", ] @@ -3590,11 +3604,11 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.10" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" +checksum = "1391ab1f92ffcc08911957149833e682aa3fe252b9f45f966d2ef972274c97df" dependencies = [ - "aho-corasick 0.7.20", + "aho-corasick", "bstr", "fnv", "log", @@ -3614,9 +3628,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.19" +version = "0.3.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d357c7ae988e7d2182f7d7871d0b963962420b0678b0997ce7de72001aeab782" +checksum = "97ec8491ebaf99c8eaa73058b045fe58073cd6be7f596ac993ced0b0a0c01049" dependencies = [ "bytes", "fnv", @@ -3624,7 +3638,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap", + "indexmap 1.9.3", "slab", "tokio", "tokio-util", @@ -3678,6 +3692,12 @@ dependencies = [ "ahash 0.8.3", ] +[[package]] +name = "hashbrown" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" + [[package]] name = "heck" version = "0.4.1" @@ -3695,18 +3715,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" -dependencies = [ - "libc", -] - -[[package]] -name = "hermit-abi" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" [[package]] name = "hex" @@ -3799,14 +3810,14 @@ checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" dependencies = [ "bytes", "http", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", ] [[package]] name = "http-range-header" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29" +checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" [[package]] name = "httparse" @@ -3828,9 +3839,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.26" +version = "0.14.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab302d72a6f11a3b910431ff93aae7e773078c769f0a3ef15fb9ec692ed147d4" +checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" dependencies = [ "bytes", "futures-channel", @@ -3842,7 +3853,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "socket2 0.4.9", "tokio", "tower-service", @@ -3990,6 +4001,16 @@ dependencies = [ "serde", ] +[[package]] +name = "indexmap" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" +dependencies = [ + "equivalent", + "hashbrown 0.14.0", +] + [[package]] name = "indexmap-nostd" version = "0.4.0" @@ -4054,7 +4075,7 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi 0.3.2", "libc", "windows-sys 0.48.0", ] @@ -4079,26 +4100,25 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.7.2" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12b6ee2129af8d4fb011108c73d99a1b83a85977f23b82460c0ae2e25bb4b57f" +checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6" [[package]] name = "is-terminal" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" +checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ - "hermit-abi 0.3.1", - "io-lifetimes", - "rustix 0.37.20", + "hermit-abi 0.3.2", + "rustix 0.38.4", "windows-sys 0.48.0", ] [[package]] name = "issue" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "base64 0.13.1", "currency", @@ -4139,9 +4159,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" +checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "jobserver" @@ -4203,7 +4223,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4e70b4439a751a5de7dd5ed55eacff78ebf4ffe0fc009cb1ebb11417f5b536b" dependencies = [ "anyhow", - "arrayvec 0.7.3", + "arrayvec 0.7.4", "async-lock", "async-trait", "beef", @@ -4294,7 +4314,7 @@ dependencies = [ "cfg-if", "ecdsa", "elliptic-curve", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -4468,9 +4488,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.146" +version = "0.2.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b" +checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "libloading" @@ -4554,7 +4574,7 @@ dependencies = [ "rand 0.8.5", "rw-stream-sink", "sec1", - "sha2 0.10.6", + "sha2 0.10.7", "smallvec", "thiserror", "unsigned-varint", @@ -4638,7 +4658,7 @@ dependencies = [ "multihash 0.17.0", "quick-protobuf", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", "zeroize", ] @@ -4649,7 +4669,7 @@ version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2766dcd2be8c87d5e1f35487deb22d765f49c6ae1251b3633efe3b25698bd3d2" dependencies = [ - "arrayvec 0.7.3", + "arrayvec 0.7.4", "asynchronous-codec", "bytes", "either", @@ -4663,7 +4683,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "smallvec", "thiserror", "uint", @@ -4738,7 +4758,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "snow", "static_assertions", "thiserror", @@ -5012,9 +5032,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.9" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56ee889ecc9568871456d42f603d6a0ce59ff328d291063a45cbdf0036baf6db" +checksum = "24e6ab01971eb092ffe6a7d42f49f9ff42662f17604681e2843ad65077ba47dc" dependencies = [ "cc", "pkg-config", @@ -5023,9 +5043,9 @@ dependencies = [ [[package]] name = "link-cplusplus" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" +checksum = "9d240c6f7e1ba3a28b0249f774e6a9dd0175054b52dfbb61b16eb8505c3785c9" dependencies = [ "cc", ] @@ -5047,9 +5067,9 @@ dependencies = [ [[package]] name = "linregress" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "475015a7f8f017edb28d2e69813be23500ad4b32cfe3421c4148efc97324ee52" +checksum = "4de0b5f52a9f84544d268f5fabb71b38962d6aa3c6600b8bcd27d44ccf9c9c45" dependencies = [ "nalgebra", ] @@ -5066,6 +5086,12 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" +[[package]] +name = "linux-raw-sys" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0" + [[package]] name = "lock_api" version = "0.4.10" @@ -5150,7 +5176,7 @@ version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" dependencies = [ - "regex-automata", + "regex-automata 0.1.10", ] [[package]] @@ -5190,7 +5216,7 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" dependencies = [ - "rustix 0.37.20", + "rustix 0.37.23", ] [[package]] @@ -5264,15 +5290,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" -[[package]] -name = "miniz_oxide" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" -dependencies = [ - "adler", -] - [[package]] name = "miniz_oxide" version = "0.7.1" @@ -5378,7 +5395,7 @@ dependencies = [ [[package]] name = "module-issue-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "jsonrpsee", "module-issue-rpc-runtime-api", @@ -5391,7 +5408,7 @@ dependencies = [ [[package]] name = "module-issue-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-support", "parity-scale-codec", @@ -5402,7 +5419,7 @@ dependencies = [ [[package]] name = "module-oracle-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "jsonrpsee", "module-oracle-rpc-runtime-api", @@ -5415,7 +5432,7 @@ dependencies = [ [[package]] name = "module-oracle-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-support", "parity-scale-codec", @@ -5427,7 +5444,7 @@ dependencies = [ [[package]] name = "module-redeem-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "jsonrpsee", "module-redeem-rpc-runtime-api", @@ -5440,7 +5457,7 @@ dependencies = [ [[package]] name = "module-redeem-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-support", "parity-scale-codec", @@ -5451,7 +5468,7 @@ dependencies = [ [[package]] name = "module-replace-rpc" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "jsonrpsee", "module-replace-rpc-runtime-api", @@ -5464,7 +5481,7 @@ dependencies = [ [[package]] name = "module-replace-rpc-runtime-api" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-support", "parity-scale-codec", @@ -5475,7 +5492,7 @@ dependencies = [ [[package]] name = "module-vault-registry-rpc" version = "0.3.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "jsonrpsee", "module-oracle-rpc-runtime-api", @@ -5489,7 +5506,7 @@ dependencies = [ [[package]] name = "module-vault-registry-rpc-runtime-api" version = "0.3.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-support", "module-oracle-rpc-runtime-api", @@ -5558,7 +5575,7 @@ dependencies = [ "core2", "digest 0.10.7", "multihash-derive", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "unsigned-varint", ] @@ -5610,9 +5627,9 @@ dependencies = [ [[package]] name = "nalgebra" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d68d47bba83f9e2006d117a9a33af1524e655516b8919caac694427a6fb1e511" +checksum = "307ed9b18cc2423f29e83f84fd23a8e73628727990181f18641a8b5dc2ab1caa" dependencies = [ "approx", "matrixmultiply", @@ -5626,9 +5643,9 @@ dependencies = [ [[package]] name = "nalgebra-macros" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d232c68884c0c99810a5a4d333ef7e47689cfd0edc85efc9e54e1e6bf5212766" +checksum = "91761aed67d03ad966ef783ae962ef9bbaca728d2dd7ceb7939ec110fffad998" dependencies = [ "proc-macro2", "quote", @@ -5669,7 +5686,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9ea4302b9759a7a88242299225ea3688e63c85ea136371bb6cf94fd674efaab" dependencies = [ "anyhow", - "bitflags", + "bitflags 1.3.2", "byteorder", "libc", "netlink-packet-core", @@ -5722,7 +5739,7 @@ version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ - "bitflags", + "bitflags 1.3.2", "cfg-if", "libc", "memoffset 0.6.5", @@ -5764,7 +5781,7 @@ dependencies = [ [[package]] name = "nomination" version = "0.5.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "currency", "fee", @@ -5824,7 +5841,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec 0.7.3", + "arrayvec 0.7.4", "itoa", ] @@ -5852,20 +5869,20 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", ] [[package]] name = "num_cpus" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.2.6", + "hermit-abi 0.3.2", "libc", ] @@ -5877,15 +5894,15 @@ checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" dependencies = [ "crc32fast", "hashbrown 0.12.3", - "indexmap", + "indexmap 1.9.3", "memchr", ] [[package]] name = "object" -version = "0.30.4" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" +checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1" dependencies = [ "memchr", ] @@ -5935,7 +5952,7 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "oracle" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "currency", "dia-oracle", @@ -5981,7 +5998,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c8e83dbd049009426b445424a1104c78e6172a4c13e3614e52a38262785a5d7" dependencies = [ "expander 1.0.0", - "indexmap", + "indexmap 1.9.3", "itertools", "petgraph", "proc-macro-crate", @@ -6180,7 +6197,7 @@ checksum = "51f44edd08f51e2ade572f141051021c5af22677e42b7dd28a88155151c33594" dependencies = [ "ecdsa", "elliptic-curve", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -6191,7 +6208,7 @@ checksum = "dfc8c5bf642dde52bb9e87c0ecd8ca5a76faac2eeed98dedb7c717997e1080aa" dependencies = [ "ecdsa", "elliptic-curve", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -6463,7 +6480,7 @@ name = "pallet-contracts" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.40#98f2e3451c9143278ec53c6718940aeabcd3b68a" dependencies = [ - "bitflags", + "bitflags 1.3.2", "environmental", "frame-benchmarking", "frame-support", @@ -6492,7 +6509,7 @@ name = "pallet-contracts-primitives" version = "7.0.0" source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.40#98f2e3451c9143278ec53c6718940aeabcd3b68a" dependencies = [ - "bitflags", + "bitflags 1.3.2", "parity-scale-codec", "scale-info", "sp-runtime", @@ -7362,9 +7379,9 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.4.8" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4890dcb9556136a4ec2b0c51fa4a08c8b733b829506af8fff2e853f3a065985b" +checksum = "78f19d20a0d2cc52327a88d131fa1c4ea81ea4a04714aedcfeca2dd410049cf8" dependencies = [ "blake2", "crc32fast", @@ -7382,11 +7399,11 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.5.0" +version = "3.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ddb756ca205bd108aee3c62c6d3c994e1df84a59b9d6d4a5ea42ee1fd5a9a28" +checksum = "dd8e946cc0cc711189c0b0249fb8b599cbeeab9784d83c415719368bb8d4ac64" dependencies = [ - "arrayvec 0.7.3", + "arrayvec 0.7.4", "bitvec", "byte-slice-cast", "bytes", @@ -7397,9 +7414,9 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.1.4" +version = "3.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b26a931f824dd4eca30b3e43bb4f31cd5f0d3a403c5f5ff27106b805bfde7b" +checksum = "2a296c3079b5fefbc499e1de58dc26c09b1b9a5952d26694ee89f04a43ebbb3e" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -7470,14 +7487,14 @@ dependencies = [ "libc", "redox_syscall 0.3.5", "smallvec", - "windows-targets 0.48.0", + "windows-targets 0.48.1", ] [[package]] name = "paste" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "pbkdf2" @@ -7689,9 +7706,9 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pest" -version = "2.6.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e68e84bfb01f0507134eac1e9b410a12ba379d064eab48c50ba4ce329a527b70" +checksum = "0d2d1d55045829d65aad9d389139882ad623b33b904e7c9f1b10c5b8927298e5" dependencies = [ "thiserror", "ucd-trie", @@ -7699,9 +7716,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.6.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b79d4c71c865a25a4322296122e3924d30bc8ee0834c8bfc8b95f7f054afbfb" +checksum = "5f94bca7e7a599d89dea5dfa309e217e7906c3c007fb9c3299c40b10d6a315d3" dependencies = [ "pest", "pest_generator", @@ -7709,26 +7726,26 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.6.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c435bf1076437b851ebc8edc3a18442796b30f1728ffea6262d59bbe28b077e" +checksum = "99d490fe7e8556575ff6911e45567ab95e71617f43781e5c05490dc8d75c965c" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] name = "pest_meta" -version = "2.6.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "745a452f8eb71e39ffd8ee32b3c5f51d03845f99786fa9b68db6ff509c505411" +checksum = "2674c66ebb4b4d9036012091b537aae5878970d6999f81a265034d85b136b341" dependencies = [ "once_cell", "pest", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -7738,27 +7755,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" dependencies = [ "fixedbitset", - "indexmap", + "indexmap 1.9.3", ] [[package]] name = "pin-project" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c95a7476719eab1e366eaf73d0260af3021184f18177925b07f54b30089ceead" +checksum = "030ad2bc4db10a8944cb0d837f158bdfec4d4a4873ab701a95046770d11f8842" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39407670928234ebc5e6e580247dd567ad73a3578460c5990f9503df207e8f07" +checksum = "ec2e072ecce94ec471b13398d5402c188e76ac03cf74dd1a975161b23a3f6d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -7769,9 +7786,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" +checksum = "4c40d25201921e5ff0c862a505c6557ea88568a4e3ace775ab55e93f2f4f9d57" [[package]] name = "pin-utils" @@ -7993,7 +8010,7 @@ dependencies = [ "fatality", "futures", "futures-timer", - "indexmap", + "indexmap 1.9.3", "lru 0.9.0", "parity-scale-codec", "polkadot-erasure-coding", @@ -8770,7 +8787,7 @@ name = "polkadot-runtime-parachains" version = "0.9.40" source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.40#95fe4c8862810bffd68343231a517e62689c05c0" dependencies = [ - "bitflags", + "bitflags 1.3.2", "bitvec", "derive_more", "frame-benchmarking", @@ -8926,7 +8943,7 @@ dependencies = [ "arrayvec 0.5.2", "fatality", "futures", - "indexmap", + "indexmap 1.9.3", "parity-scale-codec", "polkadot-node-network-protocol", "polkadot-node-primitives", @@ -8956,12 +8973,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" dependencies = [ "autocfg", - "bitflags", + "bitflags 1.3.2", "cfg-if", "concurrent-queue", "libc", "log", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "windows-sys 0.48.0", ] @@ -8990,9 +9007,9 @@ dependencies = [ [[package]] name = "polyval" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef234e08c11dfcb2e56f79fd70f6f2eb7f025c0ce2333e82f4f0518ecad30c6" +checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" dependencies = [ "cfg-if", "cpufeatures", @@ -9112,9 +9129,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.60" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406" +checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" dependencies = [ "unicode-ident", ] @@ -9260,9 +9277,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67c10f662eee9c94ddd7135043e544f3c82fa839a1e7b865911331961b53186c" +checksum = "f31999cfc7927c4e212e60fd50934ab40e8e8bfd2d493d6095d2d306bc0764d9" dependencies = [ "bytes", "rand 0.8.5", @@ -9278,9 +9295,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.28" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" +checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" dependencies = [ "proc-macro2", ] @@ -9407,7 +9424,7 @@ checksum = "6413f3de1edee53342e6138e75b56d32e7bc6e332b3bd62d497b1929d4cfbcdd" dependencies = [ "pem", "ring", - "time 0.3.22", + "time 0.3.23", "x509-parser 0.13.2", "yasna", ] @@ -9420,14 +9437,14 @@ checksum = "ffbe84efe2f38dea12e9bfc1f65377fdf03e53a18cb3b995faedf7934c7e785b" dependencies = [ "pem", "ring", - "time 0.3.22", + "time 0.3.23", "yasna", ] [[package]] name = "redeem" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "currency", "fee", @@ -9461,7 +9478,7 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -9470,7 +9487,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -9499,22 +9516,22 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.16" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43faa91b1c8b36841ee70e97188a869d37ae21759da6846d4be66de5bf7b12c" +checksum = "61ef7e18e8841942ddb1cf845054f8008410030a3997875d9e49b7a363063df1" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.16" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d2275aab483050ab2a7364c1a46604865ee7d6906684e08db0f090acf74f9e7" +checksum = "2dfaf0c85b766276c797f3791f5bc6d5bd116b41d53049af2789666b0c0bc9fa" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -9531,13 +9548,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.4" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f" +checksum = "b2eae68fc220f7cf2532e4494aded17545fce192d59cd996e0fe7887f4ceb575" dependencies = [ - "aho-corasick 1.0.2", + "aho-corasick", "memchr", - "regex-syntax 0.7.2", + "regex-automata 0.3.3", + "regex-syntax 0.7.4", ] [[package]] @@ -9549,6 +9567,17 @@ dependencies = [ "regex-syntax 0.6.29", ] +[[package]] +name = "regex-automata" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39354c10dd07468c2e73926b23bb9c2caca74c5501e38a35da70406f1d923310" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax 0.7.4", +] + [[package]] name = "regex-syntax" version = "0.6.29" @@ -9557,9 +9586,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" +checksum = "e5ea92a5b6195c6ef2a0295ea818b312502c6fc94dde986c5553242e18fd4ce2" [[package]] name = "region" @@ -9567,7 +9596,7 @@ version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76e189c2369884dce920945e2ddf79b3dff49e071a167dd1817fa9c4c00d512e" dependencies = [ - "bitflags", + "bitflags 1.3.2", "libc", "mach", "winapi", @@ -9576,7 +9605,7 @@ dependencies = [ [[package]] name = "replace" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "currency", "fee", @@ -9618,7 +9647,7 @@ dependencies = [ [[package]] name = "reward" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-benchmarking", "frame-support", @@ -9918,7 +9947,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.17", + "semver 1.0.18", ] [[package]] @@ -9932,11 +9961,11 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.14" +version = "0.36.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14e4d67015953998ad0eb82887a0eb0129e18a7e2f3b7b0f6c422fddcd503d62" +checksum = "c37f1bd5ef1b5422177b7646cba67430579cfe2ace80f284fee876bca52ad941" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", "io-lifetimes", "libc", @@ -9946,11 +9975,11 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.20" +version = "0.37.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b96e891d04aa506a6d1f318d2771bcb1c7dfda84e126660ace067c9b474bb2c0" +checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", "io-lifetimes", "libc", @@ -9958,6 +9987,19 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "rustix" +version = "0.38.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a962918ea88d644592894bc6dc55acc6c0956488adcebbfb6e273506b7fd6e5" +dependencies = [ + "bitflags 2.3.3", + "errno", + "libc", + "linux-raw-sys 0.4.3", + "windows-sys 0.48.0", +] + [[package]] name = "rustls" version = "0.19.1" @@ -9997,18 +10039,18 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" +checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" dependencies = [ "base64 0.21.2", ] [[package]] name = "rustversion" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" +checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "rw-stream-sink" @@ -10023,9 +10065,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.13" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" +checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "safe-mix" @@ -10038,9 +10080,9 @@ dependencies = [ [[package]] name = "safe_arch" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62a7484307bd40f8f7ccbacccac730108f2cae119a3b11c74485b48aa9ea650f" +checksum = "f398075ce1e6a179b46f51bd88d0598b92b00d3551f1a2d4ac49e771b56ac354" dependencies = [ "bytemuck", ] @@ -10578,7 +10620,7 @@ dependencies = [ "libc", "log", "once_cell", - "rustix 0.36.14", + "rustix 0.36.15", "sc-allocator", "sc-executor-common", "sp-runtime-interface", @@ -10688,7 +10730,7 @@ source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.40#98 dependencies = [ "array-bytes 4.2.0", "async-trait", - "bitflags", + "bitflags 1.3.2", "bytes", "futures", "futures-timer", @@ -11197,9 +11239,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.7.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b569c32c806ec3abdf3b5869fb8bf1e0d275a7c1c9b0b05603d9464632649edf" +checksum = "35c0a159d0c45c12b20c5a844feb1fe4bea86e28f17b92a5f0c42193634d3782" dependencies = [ "bitvec", "cfg-if", @@ -11211,9 +11253,9 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.6.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53012eae69e5aa5c14671942a5dd47de59d4cdcff8532a6dd0e081faf1119482" +checksum = "912e55f6d20e0e80d63733872b40e1227c0bce1e1ab81ba67d696339bfd7fd29" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -11223,11 +11265,11 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.21" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713cfb06c7059f3588fb8044c0fad1d09e3c01d225e25b9220dbfdcf16dbb1b3" +checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" dependencies = [ - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] @@ -11261,15 +11303,15 @@ dependencies = [ [[package]] name = "scopeguard" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "scratch" -version = "1.0.5" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1792db035ce95be60c3f8853017b3999209281c24e2ba5bc8e59bf97a0c590c1" +checksum = "a3cf7c11c38cb994f3d40e8a8cde3bbd1f72a435e4c49e85d6553d8312306152" [[package]] name = "sct" @@ -11347,7 +11389,7 @@ dependencies = [ [[package]] name = "security" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-support", "frame-system", @@ -11362,11 +11404,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.9.1" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ - "bitflags", + "bitflags 1.3.2", "core-foundation", "core-foundation-sys", "libc", @@ -11375,9 +11417,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.9.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f51d0c0d83bec45f16480d0ce0058397a69e48fcdc52d1dc8855fb68acbd31a7" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", @@ -11403,9 +11445,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" +checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" dependencies = [ "serde", ] @@ -11418,29 +11460,29 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.164" +version = "1.0.175" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d" +checksum = "5d25439cd7397d044e2748a6fe2432b5e85db703d6d097bd014b3c0ad1ebff0b" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.164" +version = "1.0.175" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68" +checksum = "b23f7ade6f110613c0d63858ddb8b94c1041f550eab58a16b371bdf2c9c80ab4" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] name = "serde_json" -version = "1.0.96" +version = "1.0.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +checksum = "d03b412469450d4404fe8499a268edd7f8b79fecb074b0d812ad64ca21f4031b" dependencies = [ "itoa", "ryu", @@ -11498,9 +11540,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", @@ -11608,9 +11650,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" [[package]] name = "snap" @@ -11631,7 +11673,7 @@ dependencies = [ "rand_core 0.6.4", "ring", "rustc_version 0.4.0", - "sha2 0.10.6", + "sha2 0.10.7", "subtle", ] @@ -11908,7 +11950,7 @@ source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.40#98 dependencies = [ "array-bytes 4.2.0", "base58", - "bitflags", + "bitflags 1.3.2", "blake2", "bounded-collections", "dyn-clonable", @@ -11952,7 +11994,7 @@ dependencies = [ "blake2b_simd", "byteorder", "digest 0.10.7", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "sp-std", "twox-hash", @@ -12389,11 +12431,12 @@ dependencies = [ [[package]] name = "spacewalk-primitives" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "base58", "bstringify", "frame-support", + "hex", "parity-scale-codec", "scale-info", "serde", @@ -12427,9 +12470,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.40.0" +version = "1.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb47a8ad42e5fc72d5b1eb104a5546937eaf39843499948bb666d6e93c62423b" +checksum = "bfc443bad666016e012538782d9e3006213a7db43e9fb1dda91657dc06a6fa08" dependencies = [ "Inflector", "num-format", @@ -12449,7 +12492,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staking" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "frame-benchmarking", "frame-support", @@ -12556,7 +12599,7 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a2a1c578e98c1c16fc3b8ec1328f7659a500737d7a0c6d625e73e830ff9c1f6" dependencies = [ - "bitflags", + "bitflags 1.3.2", "cfg_aliases", "libc", "parking_lot 0.11.2", @@ -12594,7 +12637,7 @@ dependencies = [ [[package]] name = "stellar-relay" version = "1.0.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "base64 0.13.1", "currency", @@ -12604,7 +12647,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sha2 0.10.6", + "sha2 0.10.7", "sp-core", "sp-std", "spacewalk-primitives", @@ -12805,9 +12848,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.18" +version = "2.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" +checksum = "b60f673f44a8255b9c8c657daf66a596d435f2da81a555b06dc644d080ba45e0" dependencies = [ "proc-macro2", "quote", @@ -12832,7 +12875,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ - "bitflags", + "bitflags 1.3.2", "core-foundation", "system-configuration-sys", ] @@ -12855,21 +12898,20 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.7" +version = "0.12.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" +checksum = "1d2faeef5759ab89935255b1a4cd98e0baf99d1085e37d36599c625dac49ae8e" [[package]] name = "tempfile" -version = "3.6.0" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31c0432476357e58790aaa47a8efb0c5138f137343f3b5f23bd36a27e3b0a6d6" +checksum = "5486094ee78b2e5038a6382ed7645bc084dc2ec433426ca4c3cb61e2007b8998" dependencies = [ - "autocfg", "cfg-if", - "fastrand", + "fastrand 2.0.0", "redox_syscall 0.3.5", - "rustix 0.37.20", + "rustix 0.38.4", "windows-sys 0.48.0", ] @@ -12890,22 +12932,22 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "611040a08a0439f8248d1990b111c95baa9c704c805fa1f62104b39655fd7f90" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "090198534930841fab3a5d1bb637cde49e339654e606195f8d9c76eeb081dc96" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -12980,9 +13022,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.22" +version = "0.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd" +checksum = "59e399c068f43a5d116fedaf73b203fa4f9c519f17e2b34f63221d3792f81446" dependencies = [ "itoa", "serde", @@ -12998,9 +13040,9 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" [[package]] name = "time-macros" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b" +checksum = "96ba15a897f3c86766b757e5ac7221554c6750054d74d5b28844fce5fb36a6c4" dependencies = [ "time-core", ] @@ -13017,7 +13059,7 @@ dependencies = [ "pbkdf2 0.11.0", "rand 0.8.5", "rustc-hash", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", "unicode-normalization", "wasm-bindgen", @@ -13051,17 +13093,18 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.28.2" +version = "1.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2" +checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da" dependencies = [ "autocfg", + "backtrace", "bytes", "libc", "mio", "num_cpus", "parking_lot 0.12.1", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "signal-hook-registry", "socket2 0.4.9", "tokio-macros", @@ -13076,7 +13119,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -13097,7 +13140,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" dependencies = [ "futures-core", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "tokio", "tokio-util", ] @@ -13112,7 +13155,7 @@ dependencies = [ "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "tokio", "tracing", ] @@ -13128,17 +13171,17 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a76a9312f5ba4c2dec6b9161fdf25d87ad8a09256ccea5a556fef03c706a10f" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" [[package]] name = "toml_edit" -version = "0.19.10" +version = "0.19.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2380d56e8670370eee6566b0bfd4265f65b3f432e8c6d85623f728d4fa31f739" +checksum = "f8123f27e969974a3dfba720fdb560be359f57b44302d280ba72e76a74480e8a" dependencies = [ - "indexmap", + "indexmap 2.0.0", "toml_datetime", "winnow", ] @@ -13160,14 +13203,14 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f873044bf02dd1e8239e9c1293ea39dad76dc594ec16185d0a1bf31d8dc8d858" dependencies = [ - "bitflags", + "bitflags 1.3.2", "bytes", "futures-core", "futures-util", "http", "http-body", "http-range-header", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "tower-layer", "tower-service", ] @@ -13192,20 +13235,20 @@ checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", "log", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.10", "tracing-attributes", "tracing-core", ] [[package]] name = "tracing-attributes" -version = "0.1.24" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f57e3ca2a01450b1a921183a9c9cbfda207fd822cef4ccb00a65402cbba7a74" +checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] @@ -13451,9 +13494,9 @@ checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" [[package]] name = "ucd-trie" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" +checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" [[package]] name = "uint" @@ -13475,9 +13518,9 @@ checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" +checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "unicode-normalization" @@ -13557,9 +13600,9 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "uuid" -version = "1.3.4" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa2982af2eec27de306107c027578ff7f423d65f7250e40ce0fea8f45248b81" +checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" dependencies = [ "getrandom 0.2.10", ] @@ -13573,7 +13616,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "vault-registry" version = "1.2.0" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=ae95aa32f3cff47c5ff26d27af81540569bf81d3#ae95aa32f3cff47c5ff26d27af81540569bf81d3" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=eae146c3795debfdab7215fa82ff1ffc4c2cae48#eae146c3795debfdab7215fa82ff1ffc4c2cae48" dependencies = [ "currency", "fee", @@ -13711,7 +13754,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", "wasm-bindgen-shared", ] @@ -13745,7 +13788,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -13899,7 +13942,7 @@ version = "0.100.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64b20236ab624147dfbb62cf12a19aaf66af0e41b8398838b66e997d07d269d4" dependencies = [ - "indexmap", + "indexmap 1.9.3", "url", ] @@ -13921,7 +13964,7 @@ dependencies = [ "anyhow", "bincode", "cfg-if", - "indexmap", + "indexmap 1.9.3", "libc", "log", "object 0.29.0", @@ -13961,9 +14004,9 @@ dependencies = [ "directories-next", "file-per-thread-logger", "log", - "rustix 0.36.14", + "rustix 0.36.15", "serde", - "sha2 0.10.6", + "sha2 0.10.7", "toml", "windows-sys 0.42.0", "zstd", @@ -13999,7 +14042,7 @@ dependencies = [ "anyhow", "cranelift-entity", "gimli 0.26.2", - "indexmap", + "indexmap 1.9.3", "log", "object 0.29.0", "serde", @@ -14041,7 +14084,7 @@ checksum = "eed41cbcbf74ce3ff6f1d07d1b707888166dc408d1a880f651268f4f7c9194b2" dependencies = [ "object 0.29.0", "once_cell", - "rustix 0.36.14", + "rustix 0.36.15", ] [[package]] @@ -14064,7 +14107,7 @@ dependencies = [ "anyhow", "cc", "cfg-if", - "indexmap", + "indexmap 1.9.3", "libc", "log", "mach", @@ -14072,7 +14115,7 @@ dependencies = [ "memoffset 0.6.5", "paste", "rand 0.8.5", - "rustix 0.36.14", + "rustix 0.36.15", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", @@ -14153,10 +14196,10 @@ dependencies = [ "sdp", "serde", "serde_json", - "sha2 0.10.6", + "sha2 0.10.7", "stun", "thiserror", - "time 0.3.22", + "time 0.3.23", "tokio", "turn", "url", @@ -14216,7 +14259,7 @@ dependencies = [ "sec1", "serde", "sha1", - "sha2 0.10.6", + "sha2 0.10.7", "signature", "subtle", "thiserror", @@ -14325,7 +14368,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93f1db1727772c05cf7a2cfece52c3aca8045ca1e176cd517d323489aa3c6d87" dependencies = [ "async-trait", - "bitflags", + "bitflags 1.3.2", "bytes", "cc", "ipnet", @@ -14458,9 +14501,9 @@ dependencies = [ [[package]] name = "wide" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40018623e2dba2602a9790faba8d33f2ebdebf4b86561b83928db735f8784728" +checksum = "aa469ffa65ef7e0ba0f164183697b89b854253fd31aeb92358b7b6155177d62f" dependencies = [ "bytemuck", "safe_arch", @@ -14522,7 +14565,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows-targets 0.48.0", + "windows-targets 0.48.1", ] [[package]] @@ -14555,7 +14598,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.0", + "windows-targets 0.48.1", ] [[package]] @@ -14575,9 +14618,9 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.48.0" +version = "0.48.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" +checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f" dependencies = [ "windows_aarch64_gnullvm 0.48.0", "windows_aarch64_msvc 0.48.0", @@ -14704,9 +14747,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.4.7" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca0ace3845f0d96209f0375e6d367e3eb87eb65d27d445bdc9f1843a26f39448" +checksum = "25b5872fa2e10bd067ae946f927e726d7d603eaeb6e02fa6a350e0722d2b8c11" dependencies = [ "memchr", ] @@ -14768,7 +14811,7 @@ dependencies = [ "ring", "rusticata-macros", "thiserror", - "time 0.3.22", + "time 0.3.23", ] [[package]] @@ -14786,7 +14829,7 @@ dependencies = [ "oid-registry 0.6.1", "rusticata-macros", "thiserror", - "time 0.3.22", + "time 0.3.23", ] [[package]] @@ -14903,7 +14946,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" dependencies = [ - "time 0.3.22", + "time 0.3.23", ] [[package]] @@ -14972,7 +15015,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.27", ] [[package]] diff --git a/node/Cargo.toml b/node/Cargo.toml index 79c35930c..2b35554f9 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -15,13 +15,13 @@ codec = { package = "parity-scale-codec", version = "3.0.0" } serde = { version = "1.0.145", features = ["derive"] } jsonrpsee = { version = "0.16.2", features = ["server"] } -module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} +module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} # Local amplitude-runtime = {path = "../runtime/amplitude"} diff --git a/runtime/amplitude/Cargo.toml b/runtime/amplitude/Cargo.toml index 4a41b387e..d3660ec5f 100644 --- a/runtime/amplitude/Cargo.toml +++ b/runtime/amplitude/Cargo.toml @@ -26,24 +26,24 @@ smallvec = "1.9.0" runtime-common = { path = "../common", default-features = false } # Custom libraries for Spacewalk -currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -reward = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } -module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } +currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +reward = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } +module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } # Substrate frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.40" } diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 0e1f93885..f4a849783 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -30,7 +30,7 @@ orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-m dia-oracle = { git = "https://github.com/pendulum-chain/oracle-pallet", default-features = false, branch = "polkadot-v0.9.40" } zenlink-protocol = { git = "https://github.com/pendulum-chain/Zenlink-DEX-Module", default-features = false, branch = "polkadot-v0.9.40-protocol" } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3" } +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48" } [features] default = [ diff --git a/runtime/foucoco/Cargo.toml b/runtime/foucoco/Cargo.toml index 80d00f2f0..0aa4764fc 100644 --- a/runtime/foucoco/Cargo.toml +++ b/runtime/foucoco/Cargo.toml @@ -26,25 +26,25 @@ smallvec = "1.9.0" runtime-common = { path = "../common", default-features = false } # custom libraries from spacewalk -currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -reward = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} +currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +reward = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} -module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} -module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} +module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} +module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} # Substrate frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.40" } diff --git a/runtime/pendulum/Cargo.toml b/runtime/pendulum/Cargo.toml index 3c0a19da1..69cdc6ca1 100644 --- a/runtime/pendulum/Cargo.toml +++ b/runtime/pendulum/Cargo.toml @@ -26,7 +26,7 @@ smallvec = "1.9.0" runtime-common = {path = "../common", default-features = false} # Spacewalk libraries -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "eae146c3795debfdab7215fa82ff1ffc4c2cae48"} # Substrate frame-benchmarking = {git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.40"} From 5088b746234499235945899475a8c06f326f7cbf Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 25 Jul 2023 17:37:27 +0200 Subject: [PATCH 18/21] Adjust CustomMetadata struct usage --- runtime/common/src/benchmarking/orml_asset_registry.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/runtime/common/src/benchmarking/orml_asset_registry.rs b/runtime/common/src/benchmarking/orml_asset_registry.rs index 2def689a6..0fabd64ed 100644 --- a/runtime/common/src/benchmarking/orml_asset_registry.rs +++ b/runtime/common/src/benchmarking/orml_asset_registry.rs @@ -37,10 +37,7 @@ pub mod benchmarks { symbol: longest_vec(), existential_deposit: 0, location: Some(longest_multilocation().into()), - additional: CustomMetadata { - fee_per_second: 1_000_000_000_000, - coingecko_id: longest_vec(), - }, + additional: CustomMetadata, } } @@ -75,7 +72,7 @@ pub mod benchmarks { Some(vec![b'b', 128]), Some(1234), Some(Some(location.into())), - Some(CustomMetadata { fee_per_second: 123, coingecko_id: vec![b'b', 128] }), + Some(CustomMetadata), ); } From 767f8da4277978ccab7e875968d97f38dfa5ccd1 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 25 Jul 2023 17:39:25 +0200 Subject: [PATCH 19/21] Add comment to construct_runtime! macros --- runtime/amplitude/src/lib.rs | 1 + runtime/foucoco/src/lib.rs | 2 ++ runtime/pendulum/src/lib.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index 2254cb240..7a1e0b74b 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -1262,6 +1262,7 @@ construct_runtime!( VaultRewards: reward::{Pallet, Call, Storage, Event} = 70, VaultStaking: staking::{Pallet, Storage, Event} = 71, + // Asset Metadata AssetRegistry: orml_asset_registry::{Pallet, Storage, Call, Event, Config} = 91, VestingManager: vesting_manager::{Pallet, Call, Event} = 100 diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index e45866a20..b25607c50 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -1551,6 +1551,8 @@ construct_runtime!( TokenAllowance: orml_currencies_allowance_extension::{Pallet, Storage, Call, Event} = 80, Farming: farming::{Pallet, Call, Storage, Event} = 90, + + // Asset Metadata AssetRegistry: orml_asset_registry::{Pallet, Storage, Call, Event, Config} = 91, } ); diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index ef4c7792a..6e9ade8f9 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -1011,6 +1011,7 @@ construct_runtime!( ZenlinkProtocol: zenlink_protocol::{Pallet, Call, Storage, Event} = 59, + // Asset Metadata AssetRegistry: orml_asset_registry::{Pallet, Storage, Call, Event, Config} = 91, VestingManager: vesting_manager::{Pallet, Call, Event} = 100 From 4395e53898b664123773c28befd21417235d9874 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 25 Jul 2023 18:09:14 +0200 Subject: [PATCH 20/21] Fix misconfiguration in foucoco Cargo.toml --- runtime/foucoco/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/foucoco/Cargo.toml b/runtime/foucoco/Cargo.toml index 0aa4764fc..c65be1fa5 100644 --- a/runtime/foucoco/Cargo.toml +++ b/runtime/foucoco/Cargo.toml @@ -256,7 +256,8 @@ runtime-benchmarks = [ "stellar-relay/runtime-benchmarks", "vault-registry/runtime-benchmarks", - "runtime-common/runtime-benchmarks" + "runtime-common/runtime-benchmarks", + "orml-currencies-allowance-extension/runtime-benchmarks" ] try-runtime = [ From ee3a5adfc714dec7b86d3ab7f54d830d1d8158ab Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Tue, 25 Jul 2023 18:11:00 +0200 Subject: [PATCH 21/21] Re-generate benchmark weights for asset registry pallet --- .../amplitude/src/weights/orml_asset_registry.rs | 16 ++++++++-------- .../foucoco/src/weights/orml_asset_registry.rs | 16 ++++++++-------- .../pendulum/src/weights/orml_asset_registry.rs | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/runtime/amplitude/src/weights/orml_asset_registry.rs b/runtime/amplitude/src/weights/orml_asset_registry.rs index 8da6a863b..200ff9c48 100644 --- a/runtime/amplitude/src/weights/orml_asset_registry.rs +++ b/runtime/amplitude/src/weights/orml_asset_registry.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Marcels-MBP`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 @@ -44,8 +44,8 @@ impl orml_asset_registry::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `104` // Estimated: `7138` - // Minimum execution time: 19_000_000 picoseconds. - Weight::from_parts(20_000_000, 0) + // Minimum execution time: 18_000_000 picoseconds. + Weight::from_parts(18_000_000, 0) .saturating_add(Weight::from_parts(0, 7138)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -56,11 +56,11 @@ impl orml_asset_registry::WeightInfo for WeightInfo /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) fn update_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `764` - // Estimated: `8458` - // Minimum execution time: 26_000_000 picoseconds. - Weight::from_parts(27_000_000, 0) - .saturating_add(Weight::from_parts(0, 8458)) + // Measured: `745` + // Estimated: `8420` + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(26_000_000, 0) + .saturating_add(Weight::from_parts(0, 8420)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/foucoco/src/weights/orml_asset_registry.rs b/runtime/foucoco/src/weights/orml_asset_registry.rs index e1d8f11bf..d29e2db73 100644 --- a/runtime/foucoco/src/weights/orml_asset_registry.rs +++ b/runtime/foucoco/src/weights/orml_asset_registry.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Marcels-MBP`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 @@ -44,8 +44,8 @@ impl orml_asset_registry::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `104` // Estimated: `7138` - // Minimum execution time: 20_000_000 picoseconds. - Weight::from_parts(21_000_000, 0) + // Minimum execution time: 18_000_000 picoseconds. + Weight::from_parts(19_000_000, 0) .saturating_add(Weight::from_parts(0, 7138)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -56,11 +56,11 @@ impl orml_asset_registry::WeightInfo for WeightInfo /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) fn update_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `764` - // Estimated: `8458` - // Minimum execution time: 27_000_000 picoseconds. - Weight::from_parts(27_000_000, 0) - .saturating_add(Weight::from_parts(0, 8458)) + // Measured: `745` + // Estimated: `8420` + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(26_000_000, 0) + .saturating_add(Weight::from_parts(0, 8420)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/pendulum/src/weights/orml_asset_registry.rs b/runtime/pendulum/src/weights/orml_asset_registry.rs index f4f70410f..aabdf34d8 100644 --- a/runtime/pendulum/src/weights/orml_asset_registry.rs +++ b/runtime/pendulum/src/weights/orml_asset_registry.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `orml_asset_registry` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-07-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Marcels-MBP`, CPU: `` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 @@ -44,8 +44,8 @@ impl orml_asset_registry::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `66` // Estimated: `7062` - // Minimum execution time: 19_000_000 picoseconds. - Weight::from_parts(20_000_000, 0) + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(18_000_000, 0) .saturating_add(Weight::from_parts(0, 7062)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -56,11 +56,11 @@ impl orml_asset_registry::WeightInfo for WeightInfo /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) fn update_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `726` - // Estimated: `8382` - // Minimum execution time: 26_000_000 picoseconds. - Weight::from_parts(28_000_000, 0) - .saturating_add(Weight::from_parts(0, 8382)) + // Measured: `707` + // Estimated: `8344` + // Minimum execution time: 25_000_000 picoseconds. + Weight::from_parts(26_000_000, 0) + .saturating_add(Weight::from_parts(0, 8344)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) }