From 5e9aa916348d32eaa723b83ecd5c97d178930954 Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Tue, 29 Oct 2024 17:47:27 +0000 Subject: [PATCH 01/10] Make sure that the runtime apis are included in metadata v15 --- node/service/src/service.rs | 2 +- runtime/frequency/src/apis.rs | 383 ---------------------------------- runtime/frequency/src/lib.rs | 381 ++++++++++++++++++++++++++++++++- 3 files changed, 373 insertions(+), 393 deletions(-) delete mode 100644 runtime/frequency/src/apis.rs diff --git a/node/service/src/service.rs b/node/service/src/service.rs index af8830cfd2..f5d083339a 100644 --- a/node/service/src/service.rs +++ b/node/service/src/service.rs @@ -8,7 +8,7 @@ use sc_client_api::Backend; use std::{sync::Arc, time::Duration}; use cumulus_client_cli::CollatorOptions; -use frequency_runtime::apis::RuntimeApi; +use frequency_runtime::RuntimeApi; // RPC use common_primitives::node::{AccountId, Balance, Block, Hash, Index as Nonce}; diff --git a/runtime/frequency/src/apis.rs b/runtime/frequency/src/apis.rs deleted file mode 100644 index ae4ce9188f..0000000000 --- a/runtime/frequency/src/apis.rs +++ /dev/null @@ -1,383 +0,0 @@ -use frame_support::{ - dispatch::GetDispatchInfo, - genesis_builder_helper::{build_state, get_preset}, - weights::Weight, -}; -use scale_info::prelude::vec; -use sp_api::impl_runtime_apis; -use sp_consensus_aura::sr25519::AuthorityId as AuraId; -use sp_core::{crypto::KeyTypeId, OpaqueMetadata}; -use sp_runtime::{ - traits::Block as BlockT, - transaction_validity::{TransactionSource, TransactionValidity}, - ApplyExtrinsicResult, DispatchError, -}; -use sp_std::prelude::Vec; -use sp_version::RuntimeVersion; - -use super::{ - AccountId, Balance, Block, Executive, InherentDataExt, Runtime, RuntimeCall, - RuntimeGenesisConfig, SessionKeys, System, TransactionPayment, VERSION, -}; -use crate::{FrequencyTxPayment, Handles, Messages, Msa, Schemas, StatefulStorage}; - -use common_primitives::{ - handles::{BaseHandle, DisplayHandle, HandleResponse, PresumptiveSuffixesResponse}, - messages::MessageResponse, - msa::{ - DelegationResponse, DelegationValidator, DelegatorId, MessageSourceId, ProviderId, - SchemaGrant, SchemaGrantValidator, - }, - node::{BlockNumber, Index}, - rpc::RpcEvent, - schema::{PayloadLocation, SchemaId, SchemaResponse, SchemaVersionResponse}, - stateful_storage::{ItemizedStoragePageResponse, PaginatedStorageResponse}, -}; - -#[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check"))] -use super::{ConsensusHook, ParachainSystem}; - -#[cfg(feature = "try-runtime")] -use frame_support::traits::{TryStateSelect, UpgradeCheckSelect}; - -#[cfg(feature = "try-runtime")] -use crate::RuntimeBlockWeights; - -pub use common_runtime::constants::SLOT_DURATION; - -impl_runtime_apis! { - impl sp_consensus_aura::AuraApi for Runtime { - fn slot_duration() -> sp_consensus_aura::SlotDuration { - sp_consensus_aura::SlotDuration::from_millis(SLOT_DURATION) - } - - fn authorities() -> Vec { - pallet_aura::Authorities::::get().into_inner() - } - } - - #[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check"))] - impl cumulus_primitives_aura::AuraUnincludedSegmentApi for Runtime { - fn can_build_upon( - included_hash: ::Hash, - slot: cumulus_primitives_aura::Slot, - ) -> bool { - ConsensusHook::can_build_upon(included_hash, slot) - } - } - - impl sp_api::Core for Runtime { - fn version() -> RuntimeVersion { - VERSION - } - - fn execute_block(block: Block) { - Executive::execute_block(block) - } - - fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { - Executive::initialize_block(header) - } - } - - impl sp_api::Metadata for Runtime { - fn metadata() -> OpaqueMetadata { - OpaqueMetadata::new(Runtime::metadata().into()) - } - - fn metadata_at_version(version: u32) -> Option { - Runtime::metadata_at_version(version) - } - - fn metadata_versions() -> Vec { - Runtime::metadata_versions() - } - } - - impl sp_block_builder::BlockBuilder for Runtime { - fn apply_extrinsic(extrinsic: ::Extrinsic) -> ApplyExtrinsicResult { - Executive::apply_extrinsic(extrinsic) - } - - fn finalize_block() -> ::Header { - Executive::finalize_block() - } - - fn inherent_extrinsics(data: sp_inherents::InherentData) -> Vec<::Extrinsic> { - data.create_extrinsics() - } - - fn check_inherents( - block: Block, - data: sp_inherents::InherentData, - ) -> sp_inherents::CheckInherentsResult { - data.check_extrinsics(&block) - } - } - - impl sp_transaction_pool::runtime_api::TaggedTransactionQueue for Runtime { - fn validate_transaction( - source: TransactionSource, - tx: ::Extrinsic, - block_hash: ::Hash, - ) -> TransactionValidity { - Executive::validate_transaction(source, tx, block_hash) - } - } - - impl sp_offchain::OffchainWorkerApi for Runtime { - fn offchain_worker(header: &::Header) { - Executive::offchain_worker(header) - } - } - - impl sp_session::SessionKeys for Runtime { - fn generate_session_keys(seed: Option>) -> Vec { - SessionKeys::generate(seed) - } - - fn decode_session_keys( - encoded: Vec, - ) -> Option, KeyTypeId)>> { - SessionKeys::decode_into_raw_public_keys(&encoded) - } - } - - impl sp_genesis_builder::GenesisBuilder for Runtime { - fn build_state(config: Vec) -> sp_genesis_builder::Result { - build_state::(config) - } - - fn get_preset(id: &Option) -> Option> { - get_preset::(id, &crate::genesis::presets::get_preset) - } - - fn preset_names() -> Vec { - let mut presets = vec![]; - - #[cfg(any( - feature = "frequency-no-relay", - feature = "frequency-local", - feature = "frequency-lint-check" - ))] - presets.extend( - vec![ - sp_genesis_builder::PresetId::from("development"), - sp_genesis_builder::PresetId::from("frequency-local"), - sp_genesis_builder::PresetId::from("frequency"), - ]); - - - #[cfg(feature = "frequency-testnet")] - presets.push(sp_genesis_builder::PresetId::from("frequency-testnet")); - - #[cfg(feature = "frequency")] - presets.push(sp_genesis_builder::PresetId::from("frequency")); - - presets - } - } - - impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime { - fn account_nonce(account: AccountId) -> Index { - System::account_nonce(account) - } - } - - impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi for Runtime { - fn query_info( - uxt: ::Extrinsic, - len: u32, - ) -> pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo { - TransactionPayment::query_info(uxt, len) - } - fn query_fee_details( - uxt: ::Extrinsic, - len: u32, - ) -> pallet_transaction_payment::FeeDetails { - TransactionPayment::query_fee_details(uxt, len) - } - fn query_weight_to_fee(weight: Weight) -> Balance { - TransactionPayment::weight_to_fee(weight) - } - fn query_length_to_fee(len: u32) -> Balance { - TransactionPayment::length_to_fee(len) - } - } - - impl pallet_frequency_tx_payment_runtime_api::CapacityTransactionPaymentRuntimeApi for Runtime { - fn compute_capacity_fee( - uxt: ::Extrinsic, - len: u32, - ) ->pallet_transaction_payment::FeeDetails { - - // if the call is wrapped in a batch, we need to get the weight of the outer call - // and use that to compute the fee with the inner call's stable weight(s) - let dispatch_weight = match &uxt.function { - RuntimeCall::FrequencyTxPayment(pallet_frequency_tx_payment::Call::pay_with_capacity { .. }) | - RuntimeCall::FrequencyTxPayment(pallet_frequency_tx_payment::Call::pay_with_capacity_batch_all { .. }) => { - <::Extrinsic as GetDispatchInfo>::get_dispatch_info(&uxt).weight - }, - _ => { - Weight::zero() - } - }; - FrequencyTxPayment::compute_capacity_fee_details(&uxt.function, &dispatch_weight, len) - } - } - - #[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check"))] - impl cumulus_primitives_core::CollectCollationInfo for Runtime { - fn collect_collation_info(header: &::Header) -> cumulus_primitives_core::CollationInfo { - ParachainSystem::collect_collation_info(header) - } - } - - // Frequency runtime APIs - impl pallet_messages_runtime_api::MessagesRuntimeApi for Runtime { - fn get_messages_by_schema_and_block(schema_id: SchemaId, schema_payload_location: PayloadLocation, block_number: BlockNumber,) -> - Vec { - Messages::get_messages_by_schema_and_block(schema_id, schema_payload_location, block_number) - } - - fn get_schema_by_id(schema_id: SchemaId) -> Option { - Schemas::get_schema_by_id(schema_id) - } - } - - impl pallet_schemas_runtime_api::SchemasRuntimeApi for Runtime { - fn get_by_schema_id(schema_id: SchemaId) -> Option { - Schemas::get_schema_by_id(schema_id) - } - - fn get_schema_versions_by_name(schema_name: Vec) -> Option> { - Schemas::get_schema_versions(schema_name) - } - } - - impl system_runtime_api::AdditionalRuntimeApi for Runtime { - fn get_events() -> Vec { - System::read_events_no_consensus().into_iter().map(|e| (*e).into()).collect() - } - } - - impl pallet_msa_runtime_api::MsaRuntimeApi for Runtime { - fn has_delegation(delegator: DelegatorId, provider: ProviderId, block_number: BlockNumber, schema_id: Option) -> bool { - match schema_id { - Some(sid) => Msa::ensure_valid_schema_grant(provider, delegator, sid, block_number).is_ok(), - None => Msa::ensure_valid_delegation(provider, delegator, Some(block_number)).is_ok(), - } - } - - fn get_granted_schemas_by_msa_id(delegator: DelegatorId, provider: ProviderId) -> Option>> { - match Msa::get_granted_schemas_by_msa_id(delegator, Some(provider)) { - Ok(res) => match res.into_iter().next() { - Some(delegation) => Some(delegation.permissions), - None => None, - }, - _ => None, - } - } - - fn get_all_granted_delegations_by_msa_id(delegator: DelegatorId) -> Vec> { - match Msa::get_granted_schemas_by_msa_id(delegator, None) { - Ok(x) => x, - Err(_) => vec![], - } - } - } - - impl pallet_stateful_storage_runtime_api::StatefulStorageRuntimeApi for Runtime { - fn get_paginated_storage(msa_id: MessageSourceId, schema_id: SchemaId) -> Result, DispatchError> { - StatefulStorage::get_paginated_storage(msa_id, schema_id) - } - - fn get_itemized_storage(msa_id: MessageSourceId, schema_id: SchemaId) -> Result { - StatefulStorage::get_itemized_storage(msa_id, schema_id) - } - } - - impl pallet_handles_runtime_api::HandlesRuntimeApi for Runtime { - fn get_handle_for_msa(msa_id: MessageSourceId) -> Option { - Handles::get_handle_for_msa(msa_id) - } - - fn get_next_suffixes(base_handle: BaseHandle, count: u16) -> PresumptiveSuffixesResponse { - Handles::get_next_suffixes(base_handle, count) - } - - fn get_msa_for_handle(display_handle: DisplayHandle) -> Option { - Handles::get_msa_id_for_handle(display_handle) - } - fn validate_handle(base_handle: BaseHandle) -> bool { - Handles::validate_handle(base_handle.to_vec()) - } - } - - #[cfg(feature = "try-runtime")] - impl frame_try_runtime::TryRuntime for Runtime { - fn on_runtime_upgrade(checks: UpgradeCheckSelect) -> (Weight, Weight) { - log::info!("try-runtime::on_runtime_upgrade frequency."); - let weight = Executive::try_runtime_upgrade(checks).unwrap(); - (weight, RuntimeBlockWeights::get().max_block) - } - - fn execute_block(block: Block, - state_root_check: bool, - signature_check: bool, - try_state: TryStateSelect, - ) -> Weight { - log::info!( - target: "runtime::frequency", "try-runtime: executing block #{} ({:?}) / root checks: {:?} / sanity-checks: {:?}", - block.header.number, - block.header.hash(), - state_root_check, - try_state, - ); - Executive::try_execute_block(block, state_root_check, signature_check, try_state).expect("try_execute_block failed") - } - } - - #[cfg(feature = "runtime-benchmarks")] - impl frame_benchmarking::Benchmark for Runtime { - fn benchmark_metadata(extra: bool) -> ( - Vec, - Vec, - ) { - use frame_benchmarking::{Benchmarking, BenchmarkList}; - use frame_support::traits::StorageInfoTrait; - use frame_system_benchmarking::Pallet as SystemBench; - use cumulus_pallet_session_benchmarking::Pallet as SessionBench; - use super::*; - - let mut list = Vec::::new(); - list_benchmarks!(list, extra); - - let storage_info = AllPalletsWithSystem::storage_info(); - return (list, storage_info) - } - - fn dispatch_benchmark( - config: frame_benchmarking::BenchmarkConfig - ) -> Result, sp_runtime::RuntimeString> { - use frame_benchmarking::{Benchmarking, BenchmarkBatch}; - use super::*; - - use frame_system_benchmarking::Pallet as SystemBench; - impl frame_system_benchmarking::Config for Runtime {} - - use cumulus_pallet_session_benchmarking::Pallet as SessionBench; - impl cumulus_pallet_session_benchmarking::Config for Runtime {} - - use frame_support::traits::{WhitelistedStorageKeys, TrackedStorageKey}; - let whitelist: Vec = AllPalletsWithSystem::whitelisted_storage_keys(); - - let mut batches = Vec::::new(); - let params = (&config, &whitelist); - add_benchmarks!(params, batches); - - if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } - Ok(batches) - } - } -} diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 34f24da1ed..753cb2c7dc 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -20,10 +20,15 @@ pub fn wasm_binary_unwrap() -> &'static [u8] { #[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check"))] use cumulus_pallet_parachain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider}; +use sp_core::{crypto::KeyTypeId, OpaqueMetadata}; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, - traits::{AccountIdConversion, AccountIdLookup, BlakeTwo256, ConvertInto, IdentityLookup}, - DispatchError, + traits::{ + AccountIdConversion, AccountIdLookup, BlakeTwo256, Block as BlockT, ConvertInto, + IdentityLookup, + }, + transaction_validity::{TransactionSource, TransactionValidity}, + ApplyExtrinsicResult, DispatchError, }; use pallet_collective::Members; @@ -38,9 +43,20 @@ use sp_std::prelude::*; use sp_version::NativeVersion; use sp_version::RuntimeVersion; -use common_primitives::node::{ - AccountId, Address, Balance, BlockNumber, Hash, Header, Index, ProposalProvider, Signature, - UtilityProvider, +use common_primitives::{ + handles::{BaseHandle, DisplayHandle, HandleResponse, PresumptiveSuffixesResponse}, + messages::MessageResponse, + msa::{ + DelegationResponse, DelegationValidator, DelegatorId, MessageSourceId, ProviderId, + SchemaGrant, SchemaGrantValidator, + }, + node::{ + AccountId, Address, Balance, BlockNumber, Hash, Header, Index, ProposalProvider, Signature, + UtilityProvider, + }, + rpc::RpcEvent, + schema::{PayloadLocation, SchemaId, SchemaResponse, SchemaVersionResponse}, + stateful_storage::{ItemizedStoragePageResponse, PaginatedStorageResponse}, }; pub use common_runtime::{ @@ -53,6 +69,7 @@ pub use common_runtime::{ use frame_support::{ construct_runtime, dispatch::{DispatchClass, GetDispatchInfo, Pays}, + genesis_builder_helper::{build_state, get_preset}, pallet_prelude::DispatchResultWithPostInfo, parameter_types, traits::{ @@ -344,8 +361,6 @@ impl OnRuntimeUpgrade for MigratePalletsCu } } -pub mod apis; - /// Opaque types. These are used by the CLI to instantiate machinery that don't need to know /// the specifics of the runtime. They can then be made to be agnostic over specific formats /// of data like extrinsics, allowing for them to continue syncing the network through upgrades @@ -383,7 +398,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { authoring_version: 1, spec_version: 123, impl_version: 0, - apis: apis::RUNTIME_API_VERSIONS, + apis: RUNTIME_API_VERSIONS, transaction_version: 1, state_version: 1, }; @@ -397,7 +412,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { authoring_version: 1, spec_version: 123, impl_version: 0, - apis: apis::RUNTIME_API_VERSIONS, + apis: RUNTIME_API_VERSIONS, transaction_version: 1, state_version: 1, }; @@ -1294,6 +1309,349 @@ cumulus_pallet_parachain_system::register_validate_block! { BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::, } +// The implementation has to be here due to the linking in the macro. +// It CANNOT be extracted into a separate file +// Test with: subxt metadata --version 15 -f json | jq .[1].V15.apis +sp_api::impl_runtime_apis! { + impl sp_consensus_aura::AuraApi for Runtime { + fn slot_duration() -> sp_consensus_aura::SlotDuration { + sp_consensus_aura::SlotDuration::from_millis(SLOT_DURATION) + } + + fn authorities() -> Vec { + pallet_aura::Authorities::::get().into_inner() + } + } + + #[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check"))] + impl cumulus_primitives_aura::AuraUnincludedSegmentApi for Runtime { + fn can_build_upon( + included_hash: ::Hash, + slot: cumulus_primitives_aura::Slot, + ) -> bool { + ConsensusHook::can_build_upon(included_hash, slot) + } + } + + impl sp_api::Core for Runtime { + fn version() -> RuntimeVersion { + VERSION + } + + fn execute_block(block: Block) { + Executive::execute_block(block) + } + + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { + Executive::initialize_block(header) + } + } + + impl sp_api::Metadata for Runtime { + fn metadata() -> OpaqueMetadata { + OpaqueMetadata::new(Runtime::metadata().into()) + } + + fn metadata_at_version(version: u32) -> Option { + Runtime::metadata_at_version(version) + } + + fn metadata_versions() -> Vec { + Runtime::metadata_versions() + } + } + + impl sp_block_builder::BlockBuilder for Runtime { + fn apply_extrinsic(extrinsic: ::Extrinsic) -> ApplyExtrinsicResult { + Executive::apply_extrinsic(extrinsic) + } + + fn finalize_block() -> ::Header { + Executive::finalize_block() + } + + fn inherent_extrinsics(data: sp_inherents::InherentData) -> Vec<::Extrinsic> { + data.create_extrinsics() + } + + fn check_inherents( + block: Block, + data: sp_inherents::InherentData, + ) -> sp_inherents::CheckInherentsResult { + data.check_extrinsics(&block) + } + } + + impl sp_transaction_pool::runtime_api::TaggedTransactionQueue for Runtime { + fn validate_transaction( + source: TransactionSource, + tx: ::Extrinsic, + block_hash: ::Hash, + ) -> TransactionValidity { + Executive::validate_transaction(source, tx, block_hash) + } + } + + impl sp_offchain::OffchainWorkerApi for Runtime { + fn offchain_worker(header: &::Header) { + Executive::offchain_worker(header) + } + } + + impl sp_session::SessionKeys for Runtime { + fn generate_session_keys(seed: Option>) -> Vec { + SessionKeys::generate(seed) + } + + fn decode_session_keys( + encoded: Vec, + ) -> Option, KeyTypeId)>> { + SessionKeys::decode_into_raw_public_keys(&encoded) + } + } + + impl sp_genesis_builder::GenesisBuilder for Runtime { + fn build_state(config: Vec) -> sp_genesis_builder::Result { + build_state::(config) + } + + fn get_preset(id: &Option) -> Option> { + get_preset::(id, &crate::genesis::presets::get_preset) + } + + fn preset_names() -> Vec { + let mut presets = vec![]; + + #[cfg(any( + feature = "frequency-no-relay", + feature = "frequency-local", + feature = "frequency-lint-check" + ))] + presets.extend( + vec![ + sp_genesis_builder::PresetId::from("development"), + sp_genesis_builder::PresetId::from("frequency-local"), + sp_genesis_builder::PresetId::from("frequency"), + ]); + + + #[cfg(feature = "frequency-testnet")] + presets.push(sp_genesis_builder::PresetId::from("frequency-testnet")); + + #[cfg(feature = "frequency")] + presets.push(sp_genesis_builder::PresetId::from("frequency")); + + presets + } + } + + impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime { + fn account_nonce(account: AccountId) -> Index { + System::account_nonce(account) + } + } + + impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi for Runtime { + // THIS QUERY_INFO IS FAILING AFTER THE CHANGES I MADE. + // TO TEST: DID THIS ACTUALLY WORK ON LOCAL BEFORE THE CHANGES? + // ERROR: `Bad input data provided to query_info: Codec error` + fn query_info( + uxt: ::Extrinsic, + len: u32, + ) -> pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo { + TransactionPayment::query_info(uxt, len) + } + fn query_fee_details( + uxt: ::Extrinsic, + len: u32, + ) -> pallet_transaction_payment::FeeDetails { + TransactionPayment::query_fee_details(uxt, len) + } + fn query_weight_to_fee(weight: Weight) -> Balance { + TransactionPayment::weight_to_fee(weight) + } + fn query_length_to_fee(len: u32) -> Balance { + TransactionPayment::length_to_fee(len) + } + } + + impl pallet_frequency_tx_payment_runtime_api::CapacityTransactionPaymentRuntimeApi for Runtime { + fn compute_capacity_fee( + uxt: ::Extrinsic, + len: u32, + ) ->pallet_transaction_payment::FeeDetails { + + // if the call is wrapped in a batch, we need to get the weight of the outer call + // and use that to compute the fee with the inner call's stable weight(s) + let dispatch_weight = match &uxt.function { + RuntimeCall::FrequencyTxPayment(pallet_frequency_tx_payment::Call::pay_with_capacity { .. }) | + RuntimeCall::FrequencyTxPayment(pallet_frequency_tx_payment::Call::pay_with_capacity_batch_all { .. }) => { + <::Extrinsic as GetDispatchInfo>::get_dispatch_info(&uxt).weight + }, + _ => { + Weight::zero() + } + }; + FrequencyTxPayment::compute_capacity_fee_details(&uxt.function, &dispatch_weight, len) + } + } + + #[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check"))] + impl cumulus_primitives_core::CollectCollationInfo for Runtime { + fn collect_collation_info(header: &::Header) -> cumulus_primitives_core::CollationInfo { + ParachainSystem::collect_collation_info(header) + } + } + + // Frequency runtime APIs + impl pallet_messages_runtime_api::MessagesRuntimeApi for Runtime { + fn get_messages_by_schema_and_block(schema_id: SchemaId, schema_payload_location: PayloadLocation, block_number: BlockNumber,) -> + Vec { + Messages::get_messages_by_schema_and_block(schema_id, schema_payload_location, block_number) + } + + fn get_schema_by_id(schema_id: SchemaId) -> Option { + Schemas::get_schema_by_id(schema_id) + } + } + + impl pallet_schemas_runtime_api::SchemasRuntimeApi for Runtime { + fn get_by_schema_id(schema_id: SchemaId) -> Option { + Schemas::get_schema_by_id(schema_id) + } + + fn get_schema_versions_by_name(schema_name: Vec) -> Option> { + Schemas::get_schema_versions(schema_name) + } + } + + impl system_runtime_api::AdditionalRuntimeApi for Runtime { + fn get_events() -> Vec { + System::read_events_no_consensus().into_iter().map(|e| (*e).into()).collect() + } + } + + impl pallet_msa_runtime_api::MsaRuntimeApi for Runtime { + fn has_delegation(delegator: DelegatorId, provider: ProviderId, block_number: BlockNumber, schema_id: Option) -> bool { + match schema_id { + Some(sid) => Msa::ensure_valid_schema_grant(provider, delegator, sid, block_number).is_ok(), + None => Msa::ensure_valid_delegation(provider, delegator, Some(block_number)).is_ok(), + } + } + + fn get_granted_schemas_by_msa_id(delegator: DelegatorId, provider: ProviderId) -> Option>> { + match Msa::get_granted_schemas_by_msa_id(delegator, Some(provider)) { + Ok(res) => match res.into_iter().next() { + Some(delegation) => Some(delegation.permissions), + None => None, + }, + _ => None, + } + } + + fn get_all_granted_delegations_by_msa_id(delegator: DelegatorId) -> Vec> { + match Msa::get_granted_schemas_by_msa_id(delegator, None) { + Ok(x) => x, + Err(_) => vec![], + } + } + } + + impl pallet_stateful_storage_runtime_api::StatefulStorageRuntimeApi for Runtime { + fn get_paginated_storage(msa_id: MessageSourceId, schema_id: SchemaId) -> Result, DispatchError> { + StatefulStorage::get_paginated_storage(msa_id, schema_id) + } + + fn get_itemized_storage(msa_id: MessageSourceId, schema_id: SchemaId) -> Result { + StatefulStorage::get_itemized_storage(msa_id, schema_id) + } + } + + impl pallet_handles_runtime_api::HandlesRuntimeApi for Runtime { + fn get_handle_for_msa(msa_id: MessageSourceId) -> Option { + Handles::get_handle_for_msa(msa_id) + } + + fn get_next_suffixes(base_handle: BaseHandle, count: u16) -> PresumptiveSuffixesResponse { + Handles::get_next_suffixes(base_handle, count) + } + + fn get_msa_for_handle(display_handle: DisplayHandle) -> Option { + Handles::get_msa_id_for_handle(display_handle) + } + fn validate_handle(base_handle: BaseHandle) -> bool { + Handles::validate_handle(base_handle.to_vec()) + } + } + + #[cfg(feature = "try-runtime")] + impl frame_try_runtime::TryRuntime for Runtime { + fn on_runtime_upgrade(checks: UpgradeCheckSelect) -> (Weight, Weight) { + log::info!("try-runtime::on_runtime_upgrade frequency."); + let weight = Executive::try_runtime_upgrade(checks).unwrap(); + (weight, RuntimeBlockWeights::get().max_block) + } + + fn execute_block(block: Block, + state_root_check: bool, + signature_check: bool, + try_state: TryStateSelect, + ) -> Weight { + log::info!( + target: "runtime::frequency", "try-runtime: executing block #{} ({:?}) / root checks: {:?} / sanity-checks: {:?}", + block.header.number, + block.header.hash(), + state_root_check, + try_state, + ); + Executive::try_execute_block(block, state_root_check, signature_check, try_state).expect("try_execute_block failed") + } + } + + #[cfg(feature = "runtime-benchmarks")] + impl frame_benchmarking::Benchmark for Runtime { + fn benchmark_metadata(extra: bool) -> ( + Vec, + Vec, + ) { + use frame_benchmarking::{Benchmarking, BenchmarkList}; + use frame_support::traits::StorageInfoTrait; + use frame_system_benchmarking::Pallet as SystemBench; + use cumulus_pallet_session_benchmarking::Pallet as SessionBench; + use super::*; + + let mut list = Vec::::new(); + list_benchmarks!(list, extra); + + let storage_info = AllPalletsWithSystem::storage_info(); + return (list, storage_info) + } + + fn dispatch_benchmark( + config: frame_benchmarking::BenchmarkConfig + ) -> Result, sp_runtime::RuntimeString> { + use frame_benchmarking::{Benchmarking, BenchmarkBatch}; + use super::*; + + use frame_system_benchmarking::Pallet as SystemBench; + impl frame_system_benchmarking::Config for Runtime {} + + use cumulus_pallet_session_benchmarking::Pallet as SessionBench; + impl cumulus_pallet_session_benchmarking::Config for Runtime {} + + use frame_support::traits::{WhitelistedStorageKeys, TrackedStorageKey}; + let whitelist: Vec = AllPalletsWithSystem::whitelisted_storage_keys(); + + let mut batches = Vec::::new(); + let params = (&config, &whitelist); + add_benchmarks!(params, batches); + + if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } + Ok(batches) + } + } +} + #[cfg(test)] mod tests { use super::*; @@ -1329,4 +1687,9 @@ mod tests { whitelist.contains("26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7") ); } + + #[test] + fn runtime_apis_are_populated() { + assert!(!RUNTIME_API_VERSIONS.is_empty()); + } } From e026573d76ce9c3f3bdd7a10cd87ccc710b1ba0f Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Tue, 29 Oct 2024 18:21:21 +0000 Subject: [PATCH 02/10] Update polkadot-js/api for api-augment --- js/api-augment/package-lock.json | 492 +++++++++++++++---------------- js/api-augment/package.json | 12 +- js/api-augment/types.d.ts | 10 + 3 files changed, 262 insertions(+), 252 deletions(-) create mode 100644 js/api-augment/types.d.ts diff --git a/js/api-augment/package-lock.json b/js/api-augment/package-lock.json index e139f9260e..e999a1249a 100644 --- a/js/api-augment/package-lock.json +++ b/js/api-augment/package-lock.json @@ -9,22 +9,22 @@ "version": "0.0.0", "license": "Apache-2.0", "dependencies": { - "@polkadot/api": "^14.1.1", - "@polkadot/rpc-provider": "^14.1.1", - "@polkadot/types": "^14.1.1", + "@polkadot/api": "^14.2.1", + "@polkadot/rpc-provider": "^14.2.1", + "@polkadot/types": "^14.2.1", "globals": "^15.11.0" }, "devDependencies": { "@eslint/js": "^9.13.0", - "@polkadot/typegen": "^14.1.1", + "@polkadot/typegen": "^14.2.1", "@types/mocha": "^10.0.9", "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", "mocha": "10.7.3", "prettier": "^3.3.3", - "tsx": "^4.19.1", + "tsx": "^4.19.2", "typescript": "^5.6.3", - "typescript-eslint": "^8.10.0" + "typescript-eslint": "^8.12.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -338,24 +338,24 @@ "optional": true }, "node_modules/@polkadot/api": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-14.1.1.tgz", - "integrity": "sha512-3uSJUdaohKtAvj9fjqyOkYs0PthWBdWtkko2TcYGRxj9BikbZMmx+agdkty8VrOxvn3pPoTRKe/jMt2Txn2MaA==", - "dependencies": { - "@polkadot/api-augment": "14.1.1", - "@polkadot/api-base": "14.1.1", - "@polkadot/api-derive": "14.1.1", - "@polkadot/keyring": "^13.2.1", - "@polkadot/rpc-augment": "14.1.1", - "@polkadot/rpc-core": "14.1.1", - "@polkadot/rpc-provider": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-augment": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/types-create": "14.1.1", - "@polkadot/types-known": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-14.2.1.tgz", + "integrity": "sha512-vYYOvCbGzKWq2auv7e3r71lp0N9hLi4Wfvdb+PjDlUWy4CBydDPgNRL7eC/pJyY4/8zs5dAWVmmu5SQsdpM93g==", + "dependencies": { + "@polkadot/api-augment": "14.2.1", + "@polkadot/api-base": "14.2.1", + "@polkadot/api-derive": "14.2.1", + "@polkadot/keyring": "^13.2.2", + "@polkadot/rpc-augment": "14.2.1", + "@polkadot/rpc-core": "14.2.1", + "@polkadot/rpc-provider": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-augment": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/types-create": "14.2.1", + "@polkadot/types-known": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", "eventemitter3": "^5.0.1", "rxjs": "^7.8.1", "tslib": "^2.8.0" @@ -365,16 +365,16 @@ } }, "node_modules/@polkadot/api-augment": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-14.1.1.tgz", - "integrity": "sha512-n6aexVgdlHfh3d12qFYpooxzS9yjKq/oxLNXKvhpV3CMg36Hlq4ULDdtI6L3sB8I3nwdBEWaXyBvbpKvPZGUxQ==", - "dependencies": { - "@polkadot/api-base": "14.1.1", - "@polkadot/rpc-augment": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-augment": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-14.2.1.tgz", + "integrity": "sha512-Vi1iuGliJe3rrH2wyfZq/FIYncUqX6ue15Zx0gpj20kRW9hNEU3ywr3NRrr3UXGZRozJZ/C4s0FNneNYvu/KCQ==", + "dependencies": { + "@polkadot/api-base": "14.2.1", + "@polkadot/rpc-augment": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-augment": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -382,13 +382,13 @@ } }, "node_modules/@polkadot/api-base": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-14.1.1.tgz", - "integrity": "sha512-gMj0uIlAv6RkRMzmhl61KU1/Pcadrarxn0lBdDTcVua3KEWLuncI+VbiN3cEd/aW6QUTgcDFpppm8nfwD9eVzQ==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-14.2.1.tgz", + "integrity": "sha512-HofQlndP8OeO91iU+Ueg7DWo7fmzD5TJs/WHBS2XwSZfZ6rzYnfBxpFM8A51oY+HxXHc5EgvjdhqY2aO2OjZ2w==", "dependencies": { - "@polkadot/rpc-core": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/util": "^13.2.1", + "@polkadot/rpc-core": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/util": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -397,18 +397,18 @@ } }, "node_modules/@polkadot/api-derive": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-14.1.1.tgz", - "integrity": "sha512-ZElYAr/euw2fR7RmGkgJgF88IK9iz3rqgesmdLtgQ2a85MEiR4UrVvhNKSjMr9PSn7EUM1mUixZhGp3jvuqrsA==", - "dependencies": { - "@polkadot/api": "14.1.1", - "@polkadot/api-augment": "14.1.1", - "@polkadot/api-base": "14.1.1", - "@polkadot/rpc-core": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-14.2.1.tgz", + "integrity": "sha512-2JqFcu+qRHpeveu3f/LTxhWw0MNt4M+aNeyttyo5kRRSAL/pmU75E43b4tXq7UZmlmKZZtga8b0dFHoiMTuuwA==", + "dependencies": { + "@polkadot/api": "14.2.1", + "@polkadot/api-augment": "14.2.1", + "@polkadot/api-base": "14.2.1", + "@polkadot/rpc-core": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -417,28 +417,28 @@ } }, "node_modules/@polkadot/keyring": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-13.2.1.tgz", - "integrity": "sha512-tnNLHaOuwoVC3n2tUQe0iSI4Jyxzqm7CPnf/sWMAAFImaVnC7PhiZFvqs2QGpha4ks9Lv722Vkjh7iIKUpEsUA==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-13.2.2.tgz", + "integrity": "sha512-h4bPU92CALAAC+QOp6+zttuhI5H0GKOUzj1qwnmoPVoWxh21FoekLAXO1YJlsKxciTDdK5OhjdNPOIqcF0GCXA==", "dependencies": { - "@polkadot/util": "13.2.1", - "@polkadot/util-crypto": "13.2.1", + "@polkadot/util": "13.2.2", + "@polkadot/util-crypto": "13.2.2", "tslib": "^2.8.0" }, "engines": { "node": ">=18" }, "peerDependencies": { - "@polkadot/util": "13.2.1", - "@polkadot/util-crypto": "13.2.1" + "@polkadot/util": "13.2.2", + "@polkadot/util-crypto": "13.2.2" } }, "node_modules/@polkadot/networks": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-13.2.1.tgz", - "integrity": "sha512-T04RTY+w8X+JB0MNAIrSFr3WX/eIUrCyYTsuf6jpg89efubpWYvfchiLTDcQrA2KfdqTBl3bQ1wgKqmWMMKNzg==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-13.2.2.tgz", + "integrity": "sha512-di3dLB9BcLQ9ARcDe/nizl7jZZnQbQlxB8kXtAXqTIVFtshtKT+zYcji6dTX7xX9/O9tZB7qnrvuIuI0MkwJ5A==", "dependencies": { - "@polkadot/util": "13.2.1", + "@polkadot/util": "13.2.2", "@substrate/ss58-registry": "^1.51.0", "tslib": "^2.8.0" }, @@ -447,14 +447,14 @@ } }, "node_modules/@polkadot/rpc-augment": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-14.1.1.tgz", - "integrity": "sha512-jeDYDepe6IOzgUFD+vLEuLrWGqw/dJIcxb8uf/YpnsvzA8kbPZx3BcIhboIpI8HpdKdn6f5mflSTVgDUpUPmNg==", - "dependencies": { - "@polkadot/rpc-core": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-14.2.1.tgz", + "integrity": "sha512-ouRRq7suXiPBECImMf+pM7U/k4541uJxuYreFhnplE+egaikKieY720hKiRxesLALr6fjgBr3DRsUsk8yP3YtA==", + "dependencies": { + "@polkadot/rpc-core": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -462,14 +462,14 @@ } }, "node_modules/@polkadot/rpc-core": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-14.1.1.tgz", - "integrity": "sha512-rfV1ArJcAZQ3lzAM9P+yIaXN720yJysNGy14FxupLsFsvzowEnEPs4khS2HgnX6j1RqkElw6va/ZVhOsLPhy9w==", - "dependencies": { - "@polkadot/rpc-augment": "14.1.1", - "@polkadot/rpc-provider": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-14.2.1.tgz", + "integrity": "sha512-jGOoRKdY6XbMY4Z7N9lKI3YmLfZWjT+DcXo+kRfSr3YgORDUXNwHy9v5doJCkPoY3OIIDmhlK5OaIEXeEjvrcQ==", + "dependencies": { + "@polkadot/rpc-augment": "14.2.1", + "@polkadot/rpc-provider": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/util": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -478,18 +478,18 @@ } }, "node_modules/@polkadot/rpc-provider": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-14.1.1.tgz", - "integrity": "sha512-BY0H1CC7M360uHXU2IfFdgFmcdjmIz6NxPmXRhrT3QGFmJSHuFevjTbIFlPG7YBK5ivochLrcISelRr7HKXYOg==", - "dependencies": { - "@polkadot/keyring": "^13.2.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-support": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", - "@polkadot/x-fetch": "^13.2.1", - "@polkadot/x-global": "^13.2.1", - "@polkadot/x-ws": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-14.2.1.tgz", + "integrity": "sha512-5ty21djvymqgxIpqKya9ekLHbiIRISIq9pl/GyVUSj2y3ditmXHF1UElmKfMCvi0b6nmOJlkxJIb7ZDyfjkBag==", + "dependencies": { + "@polkadot/keyring": "^13.2.2", + "@polkadot/types": "14.2.1", + "@polkadot/types-support": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", + "@polkadot/x-fetch": "^13.2.2", + "@polkadot/x-global": "^13.2.2", + "@polkadot/x-ws": "^13.2.2", "eventemitter3": "^5.0.1", "mock-socket": "^9.3.1", "nock": "^13.5.5", @@ -503,23 +503,23 @@ } }, "node_modules/@polkadot/typegen": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/typegen/-/typegen-14.1.1.tgz", - "integrity": "sha512-Ynh2Rp0PHa7Y/QtJbmFw7d1RzhwD7liVtO9Pnuf5IwyGf5053SFO6ZhhYFlixgdtq3pmlfvNnEeFFay355Z5ow==", - "dev": true, - "dependencies": { - "@polkadot/api": "14.1.1", - "@polkadot/api-augment": "14.1.1", - "@polkadot/rpc-augment": "14.1.1", - "@polkadot/rpc-provider": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-augment": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/types-create": "14.1.1", - "@polkadot/types-support": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", - "@polkadot/x-ws": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/typegen/-/typegen-14.2.1.tgz", + "integrity": "sha512-TS543i1P6OwOM0f3cUol3IBjvS5vgm+GISEqQiCNJ6qn1AJtiRm8qSxO+hlGUrEi6LIzvx1BsYB+5d7gYn7/cg==", + "dev": true, + "dependencies": { + "@polkadot/api": "14.2.1", + "@polkadot/api-augment": "14.2.1", + "@polkadot/rpc-augment": "14.2.1", + "@polkadot/rpc-provider": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-augment": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/types-create": "14.2.1", + "@polkadot/types-support": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", + "@polkadot/x-ws": "^13.2.2", "handlebars": "^4.7.8", "tslib": "^2.8.0", "yargs": "^17.7.2" @@ -577,16 +577,16 @@ } }, "node_modules/@polkadot/types": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-14.1.1.tgz", - "integrity": "sha512-bT1wxu2wZsKR8Ih1PHu4SqptOF+MQbh21e+NJVZkIsrjQz1DvKkdcW4G/s0i0vX/QIjnXTJFC84vMzr5cxJm8Q==", - "dependencies": { - "@polkadot/keyring": "^13.2.1", - "@polkadot/types-augment": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/types-create": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-14.2.1.tgz", + "integrity": "sha512-C4mf3257vefKDCF5dPtw3WPztE/cTgHjI/fmimwxjGakX3u1mni19wqvBXKg69tuzJ31YMagqMkD2YFZ/zGSPg==", + "dependencies": { + "@polkadot/keyring": "^13.2.2", + "@polkadot/types-augment": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/types-create": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -595,13 +595,13 @@ } }, "node_modules/@polkadot/types-augment": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-14.1.1.tgz", - "integrity": "sha512-A73JCwmg5ZuYVHw1k7Lxx4MjjRwQd6Yw/VaRIPqjk3iyG5r9RyFJgsJ7xRafDlKFG0AJ5c6ixvlaHOnBrEAzpQ==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-14.2.1.tgz", + "integrity": "sha512-dAsiRRPr7ClX/zz7YqpIr4dB5fOR8UzXnxz8d4Tyrcxpf9CAivIIJ8Mxl5M/71CTF/LSlCbSvsmvBG0mAX7HLg==", "dependencies": { - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -609,12 +609,12 @@ } }, "node_modules/@polkadot/types-codec": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-14.1.1.tgz", - "integrity": "sha512-O6UyTjEAeZMf/uthF3NjCy4tiAeWjj4tfTEWTx2Z65fNTTbXx1Mq5YBBOWsvzBXGBFK35C8buYa4l8cgQS9MoA==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-14.2.1.tgz", + "integrity": "sha512-NKI9hiW2tE3AcEKL1eGd6fyNa2QbOvlH+mEq1vTyT3/fm65mrtIqOuZASWa3kXMQmOHCs2/mMGh7p1Kj8glalQ==", "dependencies": { - "@polkadot/util": "^13.2.1", - "@polkadot/x-bigint": "^13.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/x-bigint": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -622,12 +622,12 @@ } }, "node_modules/@polkadot/types-create": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-14.1.1.tgz", - "integrity": "sha512-t4gr5NKU8zZetnDvoRnlioEZlkYybBSql+Ep3mQUiJosF5w/SCN6EKV0GPqs0fB1ovqhDQSnwe2xoRjHsiHObA==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-14.2.1.tgz", + "integrity": "sha512-AhcyVR6eoc+br76QbqQ3LVwFuOrdZH/A9hlpMPI8MvIW46wZ5bPcDoqKLZugeH6wOKKVzbqw8z9tZ1KWgUSdVg==", "dependencies": { - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -635,15 +635,15 @@ } }, "node_modules/@polkadot/types-known": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-14.1.1.tgz", - "integrity": "sha512-TvyqTsm1Wxw+tjN8UsB04+vZv5znZE5ETGunHLHnvv4WF/lkz4WpkRc/9iqduM5O/iOZh8mEb7n/uyz8LL4brA==", - "dependencies": { - "@polkadot/networks": "^13.2.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/types-create": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-14.2.1.tgz", + "integrity": "sha512-Lp8km3+0NKBR3x9covI84Mz3dXFAmIkohzJhcGjpjwcOKH0W4GSQBTDcsYfTH+UAY1mF7hvgXCtvGwbyLm2kOQ==", + "dependencies": { + "@polkadot/networks": "^13.2.2", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/types-create": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -651,11 +651,11 @@ } }, "node_modules/@polkadot/types-support": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-14.1.1.tgz", - "integrity": "sha512-DJgJ/2n3eWFlgH1K/U7G4NSbgdsx4Lb1fK4yVlZ9t81lJWWiAeb/FodHJb8jlQ6Jezx5S71fRripXfg+FdyCDA==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-14.2.1.tgz", + "integrity": "sha512-pAaAGDEBUnDiC15AjVc1aULk+vfCma2OlVzU6usOLee1OKkwDuk74Bnyo9jshKVYuTjujLrmp3zmzmuU1NjbeQ==", "dependencies": { - "@polkadot/util": "^13.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -663,14 +663,14 @@ } }, "node_modules/@polkadot/util": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-13.2.1.tgz", - "integrity": "sha512-+zCyQQeW4llWD5yhvPAawekRpdAU3LZPLD0j3v8nJjsG9cAyiYGZjsVxDFPpD0yixS1Hl70937bPR46761NG9g==", - "dependencies": { - "@polkadot/x-bigint": "13.2.1", - "@polkadot/x-global": "13.2.1", - "@polkadot/x-textdecoder": "13.2.1", - "@polkadot/x-textencoder": "13.2.1", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-13.2.2.tgz", + "integrity": "sha512-zhsGtR0J2a0ODesJNbCYqEXOL2rhPrmv1F6OB2JMdho7iOrkONck3PZaoT/Y0JF7IlHjGV8K6yrw7k9KUtFrEA==", + "dependencies": { + "@polkadot/x-bigint": "13.2.2", + "@polkadot/x-global": "13.2.2", + "@polkadot/x-textdecoder": "13.2.2", + "@polkadot/x-textencoder": "13.2.2", "@types/bn.js": "^5.1.6", "bn.js": "^5.2.1", "tslib": "^2.8.0" @@ -680,18 +680,18 @@ } }, "node_modules/@polkadot/util-crypto": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-13.2.1.tgz", - "integrity": "sha512-IalVWtRfsLEkF0fQvEfbnYwrQWUw2AHSYgJINhrZvdoC+Vy6oetvO0ZAhbfUp1c/HOaql0gex4WVrfw7gcBKjQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-13.2.2.tgz", + "integrity": "sha512-C4vl07XC43vE6egd9LmSe0uOc7hAvBq6CIoILk5ZB95ABNBQSHOrS1pHugW4rJgVUiZgv8sdl+twmgisuSsSfg==", "dependencies": { "@noble/curves": "^1.3.0", "@noble/hashes": "^1.3.3", - "@polkadot/networks": "13.2.1", - "@polkadot/util": "13.2.1", + "@polkadot/networks": "13.2.2", + "@polkadot/util": "13.2.2", "@polkadot/wasm-crypto": "^7.4.1", "@polkadot/wasm-util": "^7.4.1", - "@polkadot/x-bigint": "13.2.1", - "@polkadot/x-randomvalues": "13.2.1", + "@polkadot/x-bigint": "13.2.2", + "@polkadot/x-randomvalues": "13.2.2", "@scure/base": "^1.1.7", "tslib": "^2.8.0" }, @@ -699,7 +699,7 @@ "node": ">=18" }, "peerDependencies": { - "@polkadot/util": "13.2.1" + "@polkadot/util": "13.2.2" } }, "node_modules/@polkadot/wasm-bridge": { @@ -801,11 +801,11 @@ } }, "node_modules/@polkadot/x-bigint": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-13.2.1.tgz", - "integrity": "sha512-NYfH0fKfZFkjE5wOiLmfj+oJFyzSHLJrJt5DmzWwvbhw3dT4Qz2UgBL0i/Ei6REkpOGCXX2DmNbbZBr6sn4f1Q==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-13.2.2.tgz", + "integrity": "sha512-9ENDfG2wYqABWhQYYrbjJK0aPBvCqVPiFhBiKgIg6OTSJKJToa4Di9R8NxelF8eJTtz7DIvgf6gZY/jnKfbtWw==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -813,11 +813,11 @@ } }, "node_modules/@polkadot/x-fetch": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-13.2.1.tgz", - "integrity": "sha512-y/JgDRyH4JZN0QzI4V3Hf7Bah2FOOTw7sbmlo/o/3Tt0zjLnCbSvu7Lf1+fKBDksQWpElUBg3nVJrw4HAIiaRQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-13.2.2.tgz", + "integrity": "sha512-aDhd2kdx3JWvZSU4Ge966C0111CH8pCsDX7+9IsMGaZhjLF1NEo2xDjs+EwfUbSvNk68A4UVeJsXjG+IVor/ug==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "node-fetch": "^3.3.2", "tslib": "^2.8.0" }, @@ -826,9 +826,9 @@ } }, "node_modules/@polkadot/x-global": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-13.2.1.tgz", - "integrity": "sha512-Q9PZY+Xw9ffBYcJjwMCQfGgFi5QNv4GJ1ZqIuJMQBAcM21fn8vuFMfGC24R1pAAJAaBMPkQ9xh8R2cpu9SIjRg==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-13.2.2.tgz", + "integrity": "sha512-a+iKD7JXxDRtYVo0bp1+HHlaem6MkUHU2yE0cx2e97p9x+IKyNEY58D0L5P66kszLvhFw+t3Jq+qHIj0+2YxkQ==", "dependencies": { "tslib": "^2.8.0" }, @@ -837,27 +837,27 @@ } }, "node_modules/@polkadot/x-randomvalues": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-13.2.1.tgz", - "integrity": "sha512-LZBlsmz6r+AKHpqTGAjWecn5aNYGnfgLxxu0JZJo1aOQdVrXy7sDl1M5x1U+ZFeShVeSAU54rrWCcHB+zsGHSA==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-13.2.2.tgz", + "integrity": "sha512-1UNImkS5PAaGHeIl2DlMjgt2iN7nlclzwrYhmxd0e9Z11RQqavGqi1a02HGREgnUu+wJ7eHmPMVe6K96+cL+aQ==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { "node": ">=18" }, "peerDependencies": { - "@polkadot/util": "13.2.1", + "@polkadot/util": "13.2.2", "@polkadot/wasm-util": "*" } }, "node_modules/@polkadot/x-textdecoder": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-13.2.1.tgz", - "integrity": "sha512-cyKv5T48goBEMsb1lnKrXPpAPXkpWwAa+Ob0w2eEzsjBPzWEeIPMKFuE4VpPRoZ/Sn6v3hwz98WS8ueCO5MXyQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-13.2.2.tgz", + "integrity": "sha512-elpIrgdq22yyvt4fzxwb2IRJEpswPVwizzauRipVy3uUmI/lC2f7D7u9jrC554Xy8UrrAPExX1sWJCxZA8DZ/g==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -865,11 +865,11 @@ } }, "node_modules/@polkadot/x-textencoder": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-13.2.1.tgz", - "integrity": "sha512-tugNLn/9UbA1n64mMWliWI1j5kAnnNIHgJ8khbMKyrHS5K+m8BP/avUrlg3u5ukM1RB1cCoJB9uWcT4Sovf65Q==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-13.2.2.tgz", + "integrity": "sha512-nxlNvK5h0KPCaAE/cx92e8JCPAlmFGbuXC9l03C1Ei1wAnOcWuJWRIk2qOkCEYkpT+G0jITPN4dgk634+pBQSw==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -877,11 +877,11 @@ } }, "node_modules/@polkadot/x-ws": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-13.2.1.tgz", - "integrity": "sha512-bLw4AL1UlzhveOPj5p3PPbDlrq+B7QbuNQ7F4UBVtEkaZZKJzhviE0mYGrObaguv1ib2tIIrYc7FNqmH6KpRzQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-13.2.2.tgz", + "integrity": "sha512-WEygcHPB55cKLiNoejJ0Lq3Z1fb4hUO3FmYTXdpHgk0xIOfYDrr7rTlI2cZ4Nb32MofeehN/ZStmEW5Edib6TQ==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0", "ws": "^8.18.0" }, @@ -972,24 +972,24 @@ "dev": true }, "node_modules/@types/node": { - "version": "22.7.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.7.tgz", - "integrity": "sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==", + "version": "22.8.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.4.tgz", + "integrity": "sha512-SpNNxkftTJOPk0oN+y2bIqurEXHTA2AOZ3EJDDKeJ5VzkvvORSvmQXGQarcOzWV1ac7DCaPBEdMDxBsM+d8jWw==", "dependencies": { - "undici-types": "~6.19.2" + "undici-types": "~6.19.8" } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.10.0.tgz", - "integrity": "sha512-phuB3hoP7FFKbRXxjl+DRlQDuJqhpOnm5MmtROXyWi3uS/Xg2ZXqiQfcG2BJHiN4QKyzdOJi3NEn/qTnjUlkmQ==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.12.2.tgz", + "integrity": "sha512-gQxbxM8mcxBwaEmWdtLCIGLfixBMHhQjBqR8sVWNTPpcj45WlYL2IObS/DNMLH1DBP0n8qz+aiiLTGfopPEebw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.10.0", - "@typescript-eslint/type-utils": "8.10.0", - "@typescript-eslint/utils": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0", + "@typescript-eslint/scope-manager": "8.12.2", + "@typescript-eslint/type-utils": "8.12.2", + "@typescript-eslint/utils": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -1013,15 +1013,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.10.0.tgz", - "integrity": "sha512-E24l90SxuJhytWJ0pTQydFT46Nk0Z+bsLKo/L8rtQSL93rQ6byd1V/QbDpHUTdLPOMsBCcYXZweADNCfOCmOAg==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.12.2.tgz", + "integrity": "sha512-MrvlXNfGPLH3Z+r7Tk+Z5moZAc0dzdVjTgUgwsdGweH7lydysQsnSww3nAmsq8blFuRD5VRlAr9YdEFw3e6PBw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.10.0", - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/typescript-estree": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0", + "@typescript-eslint/scope-manager": "8.12.2", + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/typescript-estree": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2", "debug": "^4.3.4" }, "engines": { @@ -1041,13 +1041,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.10.0.tgz", - "integrity": "sha512-AgCaEjhfql9MDKjMUxWvH7HjLeBqMCBfIaBbzzIcBbQPZE7CPh1m6FF+L75NUMJFMLYhCywJXIDEMa3//1A0dw==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.12.2.tgz", + "integrity": "sha512-gPLpLtrj9aMHOvxJkSbDBmbRuYdtiEbnvO25bCMza3DhMjTQw0u7Y1M+YR5JPbMsXXnSPuCf5hfq0nEkQDL/JQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0" + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1058,13 +1058,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.10.0.tgz", - "integrity": "sha512-PCpUOpyQSpxBn230yIcK+LeCQaXuxrgCm2Zk1S+PTIRJsEfU6nJ0TtwyH8pIwPK/vJoA+7TZtzyAJSGBz+s/dg==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.12.2.tgz", + "integrity": "sha512-bwuU4TAogPI+1q/IJSKuD4shBLc/d2vGcRT588q+jzayQyjVK2X6v/fbR4InY2U2sgf8MEvVCqEWUzYzgBNcGQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "8.10.0", - "@typescript-eslint/utils": "8.10.0", + "@typescript-eslint/typescript-estree": "8.12.2", + "@typescript-eslint/utils": "8.12.2", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -1082,9 +1082,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.10.0.tgz", - "integrity": "sha512-k/E48uzsfJCRRbGLapdZgrX52csmWJ2rcowwPvOZ8lwPUv3xW6CcFeJAXgx4uJm+Ge4+a4tFOkdYvSpxhRhg1w==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.12.2.tgz", + "integrity": "sha512-VwDwMF1SZ7wPBUZwmMdnDJ6sIFk4K4s+ALKLP6aIQsISkPv8jhiw65sAK6SuWODN/ix+m+HgbYDkH+zLjrzvOA==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1095,13 +1095,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.10.0.tgz", - "integrity": "sha512-3OE0nlcOHaMvQ8Xu5gAfME3/tWVDpb/HxtpUZ1WeOAksZ/h/gwrBzCklaGzwZT97/lBbbxJ16dMA98JMEngW4w==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.12.2.tgz", + "integrity": "sha512-mME5MDwGe30Pq9zKPvyduyU86PH7aixwqYR2grTglAdB+AN8xXQ1vFGpYaUSJ5o5P/5znsSBeNcs5g5/2aQwow==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0", + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1147,15 +1147,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.10.0.tgz", - "integrity": "sha512-Oq4uZ7JFr9d1ZunE/QKy5egcDRXT/FrS2z/nlxzPua2VHFtmMvFNDvpq1m/hq0ra+T52aUezfcjGRIB7vNJF9w==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.12.2.tgz", + "integrity": "sha512-UTTuDIX3fkfAz6iSVa5rTuSfWIYZ6ATtEocQ/umkRSyC9O919lbZ8dcH7mysshrCdrAM03skJOEYaBugxN+M6A==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.10.0", - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/typescript-estree": "8.10.0" + "@typescript-eslint/scope-manager": "8.12.2", + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/typescript-estree": "8.12.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1169,12 +1169,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.10.0.tgz", - "integrity": "sha512-k8nekgqwr7FadWk548Lfph6V3r9OVqjzAIVskE7orMZR23cGJjAOVazsZSJW+ElyjfTM4wx/1g88Mi70DDtG9A==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.12.2.tgz", + "integrity": "sha512-PChz8UaKQAVNHghsHcPyx1OMHoFRUEA7rJSK/mDhdq85bk+PLsUHUBqTQTFt18VJZbmxBovM65fezlheQRsSDA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.10.0", + "@typescript-eslint/types": "8.12.2", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -2860,9 +2860,9 @@ "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==" }, "node_modules/tsx": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.1.tgz", - "integrity": "sha512-0flMz1lh74BR4wOvBjuh9olbnwqCPc35OOlfyzHba0Dc+QNUeWX/Gq2YTbnwcWPO3BMd8fkzRVrHcsR+a7z7rA==", + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.2.tgz", + "integrity": "sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==", "dev": true, "dependencies": { "esbuild": "~0.23.0", @@ -2916,14 +2916,14 @@ } }, "node_modules/typescript-eslint": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.10.0.tgz", - "integrity": "sha512-YIu230PeN7z9zpu/EtqCIuRVHPs4iSlqW6TEvjbyDAE3MZsSl2RXBo+5ag+lbABCG8sFM1WVKEXhlQ8Ml8A3Fw==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.12.2.tgz", + "integrity": "sha512-UbuVUWSrHVR03q9CWx+JDHeO6B/Hr9p4U5lRH++5tq/EbFq1faYZe50ZSBePptgfIKLEti0aPQ3hFgnPVcd8ZQ==", "dev": true, "dependencies": { - "@typescript-eslint/eslint-plugin": "8.10.0", - "@typescript-eslint/parser": "8.10.0", - "@typescript-eslint/utils": "8.10.0" + "@typescript-eslint/eslint-plugin": "8.12.2", + "@typescript-eslint/parser": "8.12.2", + "@typescript-eslint/utils": "8.12.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" diff --git a/js/api-augment/package.json b/js/api-augment/package.json index c6c65de808..86e96e8c33 100644 --- a/js/api-augment/package.json +++ b/js/api-augment/package.json @@ -34,21 +34,21 @@ "author": "frequency-chain", "license": "Apache-2.0", "dependencies": { - "@polkadot/api": "^14.1.1", - "@polkadot/rpc-provider": "^14.1.1", - "@polkadot/types": "^14.1.1", + "@polkadot/api": "^14.2.1", + "@polkadot/rpc-provider": "^14.2.1", + "@polkadot/types": "^14.2.1", "globals": "^15.11.0" }, "devDependencies": { "@eslint/js": "^9.13.0", - "@polkadot/typegen": "^14.1.1", + "@polkadot/typegen": "^14.2.1", "@types/mocha": "^10.0.9", "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", "mocha": "10.7.3", "prettier": "^3.3.3", - "tsx": "^4.19.1", + "tsx": "^4.19.2", "typescript": "^5.6.3", - "typescript-eslint": "^8.10.0" + "typescript-eslint": "^8.12.2" } } diff --git a/js/api-augment/types.d.ts b/js/api-augment/types.d.ts new file mode 100644 index 0000000000..8d1b21a852 --- /dev/null +++ b/js/api-augment/types.d.ts @@ -0,0 +1,10 @@ +// Unknown is causing these to be left out of the generated types. +// Adding them here for now. + +declare global { + type SpConsensusSlotsSlotDuration = bigint; + type CommonPrimitivesMsaDelegatorId = bigint; + type CommonPrimitivesMsaProviderId = bigint; +} + +export {}; From 61dbeb8ace66ba2565a4df40a90d4823460cde26 Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Tue, 29 Oct 2024 18:21:29 +0000 Subject: [PATCH 03/10] Update e2e test packages --- e2e/capacity/capacity_rpc.test.ts | 5 +- e2e/package-lock.json | 696 +++++++++++++++--------------- e2e/package.json | 17 +- 3 files changed, 359 insertions(+), 359 deletions(-) diff --git a/e2e/capacity/capacity_rpc.test.ts b/e2e/capacity/capacity_rpc.test.ts index 70e1ec84d1..acb5653dff 100644 --- a/e2e/capacity/capacity_rpc.test.ts +++ b/e2e/capacity/capacity_rpc.test.ts @@ -54,7 +54,10 @@ describe('Capacity RPC', function () { // Actual weights and fee const { weight: { refTime, proofSize }, - } = await ExtrinsicHelper.apiPromise.call.transactionPaymentApi.queryInfo(call.toHex(), 0); + } = await ExtrinsicHelper.apiPromise.call.transactionPaymentApi.queryInfo(call.toU8a(), call.length); + // Why does it need to be call.toU8a() above instead of just call or call.toHex()? + // https://github.com/polkadot-js/apps/issues/10994 + const weightFee = await ExtrinsicHelper.apiPromise.call.transactionPaymentApi.queryWeightToFee({ refTime, proofSize, diff --git a/e2e/package-lock.json b/e2e/package-lock.json index 64badb16cf..aa0cb9cfae 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -13,11 +13,11 @@ "@frequency-chain/api-augment": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz", "@helia/unixfs": "^4.0.0", "@noble/curves": "^1.6.0", - "@polkadot-api/merkleize-metadata": "^1.1.7", - "@polkadot/api": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/util": "13.2.1", - "helia": "^5.0.1", + "@polkadot-api/merkleize-metadata": "^1.1.9", + "@polkadot/api": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/util": "13.2.2", + "helia": "^5.1.0", "multiformats": "^13.3.0", "rxjs": "^7.8.1", "workerpool": "^9.2.0" @@ -29,13 +29,12 @@ "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", "globals": "^15.11.0", - "mocha": "^10.7.3", - "node-datachannel": "^0.12.0", + "mocha": "^10.8.0", "prettier": "^3.3.3", "sinon": "^19.0.2", - "tsx": "^4.19.1", + "tsx": "^4.19.2", "typescript": "^5.6.3", - "typescript-eslint": "^8.10.0" + "typescript-eslint": "^8.12.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -2197,12 +2196,11 @@ "node_modules/@frequency-chain/api-augment": { "version": "0.0.0", "resolved": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz", - "integrity": "sha512-F7WdPWkU1rhFCZBX5pL31wegfCt9vctJxM6D7dYbEjUrR/X/MC0ddfb5H7B4xHltqZxs+DeL4I6685aS6P+IzA==", - "license": "Apache-2.0", + "integrity": "sha512-qOGhBFbBahTfiQOnVFgXj7oZugMXv82OrTyoXZ+RhQG+5QU8deO/WqRmUSr8OXpqL8j0/w30KgZoMNclyhyJYg==", "dependencies": { - "@polkadot/api": "^14.1.1", - "@polkadot/rpc-provider": "^14.1.1", - "@polkadot/types": "^14.1.1", + "@polkadot/api": "^14.2.1", + "@polkadot/rpc-provider": "^14.2.1", + "@polkadot/types": "^14.2.1", "globals": "^15.11.0" } }, @@ -2222,12 +2220,12 @@ } }, "node_modules/@helia/bitswap": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@helia/bitswap/-/bitswap-2.0.0.tgz", - "integrity": "sha512-PsZtD7w6HOimuxkmQQMC90K4Ao4moX+4WmzYSoID+pnq6jM1XbLjnDIMc/WsT59Ey6excPiKDZ8xp5n4zI5jLA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@helia/bitswap/-/bitswap-2.0.1.tgz", + "integrity": "sha512-9bwjwdgW3LfraDfIlfJ4g1WrO96IKW3hjrc63jXxlKHU8JPwMdd5a//XoNIQfQ5vx6DV0w+w2AM1aHHt+nHBGA==", "dependencies": { "@helia/interface": "^5.0.0", - "@helia/utils": "^1.0.0", + "@helia/utils": "^1.0.1", "@libp2p/interface": "^2.0.0", "@libp2p/logger": "^5.0.0", "@libp2p/peer-collections": "^6.0.0", @@ -2258,13 +2256,13 @@ "integrity": "sha512-KSFCXtBlNoG0hzwNa0RmhHtrdhzexp+S+UY2s0rWTBJyfdEIgn6i6Zl9otVqrcFYbYrneBT7hbmHQ8gE0C3umA==" }, "node_modules/@helia/block-brokers": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@helia/block-brokers/-/block-brokers-4.0.0.tgz", - "integrity": "sha512-vABeVaVS2SE4Lk9QbV2K6FiMNgqDuVJh8GVDAYBeVcWWUjGnLKmIezqKqM47txbY9Vq90Jvt55cNkQIdjZw+jA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@helia/block-brokers/-/block-brokers-4.0.1.tgz", + "integrity": "sha512-djYp4bmC15SBP1/ra9SrOAATr432hDcA2hnHWewkz1l84hCi+gSol7AcdAfW233pZ2ivZcI2Jc1Nyf7Vg6uFeg==", "dependencies": { - "@helia/bitswap": "^2.0.0", + "@helia/bitswap": "^2.0.1", "@helia/interface": "^5.0.0", - "@helia/utils": "^1.0.0", + "@helia/utils": "^1.0.1", "@libp2p/interface": "^2.0.0", "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.1", @@ -2282,9 +2280,9 @@ "integrity": "sha512-KSFCXtBlNoG0hzwNa0RmhHtrdhzexp+S+UY2s0rWTBJyfdEIgn6i6Zl9otVqrcFYbYrneBT7hbmHQ8gE0C3umA==" }, "node_modules/@helia/delegated-routing-v1-http-api-client": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@helia/delegated-routing-v1-http-api-client/-/delegated-routing-v1-http-api-client-4.1.0.tgz", - "integrity": "sha512-zeh1Hn3GZ8+QNcfdGL+iTLJC0avfFagp7rM0HydHp14c//Z+Zf5i+M6Yd5OLD764pPGD3ja/IVoP6idugiczNg==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@helia/delegated-routing-v1-http-api-client/-/delegated-routing-v1-http-api-client-4.1.1.tgz", + "integrity": "sha512-Pf5pZkZGEBhARFXoLRzVVSZ8E8yU0Q0F3DOadhxPQjaSNyahetwiTsV8TvJltfrs2Afy2+gbA2+Rycl7apSXdQ==", "dependencies": { "@libp2p/interface": "^2.0.1", "@libp2p/logger": "^5.0.1", @@ -2322,11 +2320,11 @@ "integrity": "sha512-KSFCXtBlNoG0hzwNa0RmhHtrdhzexp+S+UY2s0rWTBJyfdEIgn6i6Zl9otVqrcFYbYrneBT7hbmHQ8gE0C3umA==" }, "node_modules/@helia/routers": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@helia/routers/-/routers-2.0.0.tgz", - "integrity": "sha512-p9FlVMlX4JoeTDdXWo7UvHZTrhhJfHj0v7PIQXkwAhnjcl1HesHw4oDUSLJhWwQPsHxhJ82ttuWPUVjgRVGbfQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@helia/routers/-/routers-2.1.0.tgz", + "integrity": "sha512-JOvM+EfVd9c999gSz4tHLJWpwexU1kc82ujwoFRaRvKxT5pD77t9h0gwnfnsGbe9Br6iUPFXquNC+g0p8Xll3g==", "dependencies": { - "@helia/delegated-routing-v1-http-api-client": "^4.0.0", + "@helia/delegated-routing-v1-http-api-client": "^4.1.0", "@helia/interface": "^5.0.0", "@libp2p/interface": "^2.0.0", "@libp2p/peer-id": "^5.0.0", @@ -2365,20 +2363,18 @@ } }, "node_modules/@helia/utils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@helia/utils/-/utils-1.0.0.tgz", - "integrity": "sha512-26dxUS5cjhIvyqnY/VkR8/pAGGX2AOpIy1Afrb2Y/t6eFfDanQSw/X++oH+6VNhqbIi/KYF7VChn+TcclAEp7w==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@helia/utils/-/utils-1.0.1.tgz", + "integrity": "sha512-S1qLDiHNdBxQxtgonqPQHl8Rn7gs4HEQSrVF+ok//T/ZQPItNGnhKudV8qWhoOdpzCDaObx2ryqip+K9FK8VCQ==", "dependencies": { "@helia/interface": "^5.0.0", "@ipld/dag-cbor": "^9.2.0", "@ipld/dag-json": "^10.2.0", "@ipld/dag-pb": "^4.1.0", - "@libp2p/crypto": "^5.0.0", "@libp2p/interface": "^2.0.0", "@libp2p/logger": "^5.0.0", "@libp2p/utils": "^6.0.0", "@multiformats/dns": "^1.0.1", - "@types/murmurhash3js-revisited": "^3.0.3", "any-signal": "^4.1.1", "blockstore-core": "^5.0.0", "cborg": "^4.0.9", @@ -2391,10 +2387,8 @@ "it-merge": "^3.0.3", "mortice": "^3.0.4", "multiformats": "^13.1.0", - "murmurhash3js-revisited": "^3.0.0", "p-defer": "^4.0.1", "progress-events": "^1.0.0", - "uint8arraylist": "^2.4.8", "uint8arrays": "^5.0.2" } }, @@ -2663,37 +2657,37 @@ } }, "node_modules/@libp2p/circuit-relay-v2": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@libp2p/circuit-relay-v2/-/circuit-relay-v2-2.1.5.tgz", - "integrity": "sha512-7uJicxChosVPcj7r9xmeI2Z318sgOk2VclagPWjTFCZSMdSHPtou8G4i0CJEoWAI+Afpxuz0h8aPb90MpVbWCA==", - "dependencies": { - "@libp2p/crypto": "^5.0.5", - "@libp2p/interface": "^2.1.3", - "@libp2p/interface-internal": "^2.0.8", - "@libp2p/peer-collections": "^6.0.8", - "@libp2p/peer-id": "^5.0.5", - "@libp2p/peer-record": "^8.0.8", - "@libp2p/utils": "^6.1.1", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@libp2p/circuit-relay-v2/-/circuit-relay-v2-3.1.0.tgz", + "integrity": "sha512-g9AdFhT93P8Uc7sOKeAdULDKF+Tf/aGwnECWZMRo3GFIsvpbd06VdmnjqGmF9xSdll0NWPe8EwhI098rMRd7OQ==", + "dependencies": { + "@libp2p/crypto": "^5.0.6", + "@libp2p/interface": "^2.2.0", + "@libp2p/interface-internal": "^2.0.10", + "@libp2p/peer-collections": "^6.0.10", + "@libp2p/peer-id": "^5.0.7", + "@libp2p/peer-record": "^8.0.10", + "@libp2p/utils": "^6.1.3", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.3.0", "any-signal": "^4.1.1", "it-protobuf-stream": "^1.1.3", "it-stream-types": "^2.0.1", "multiformats": "^13.1.0", + "nanoid": "^5.0.7", "progress-events": "^1.0.0", "protons-runtime": "^5.4.0", - "race-signal": "^1.0.2", "retimeable-signal": "^0.0.0", "uint8arraylist": "^2.4.8", "uint8arrays": "^5.1.0" } }, "node_modules/@libp2p/crypto": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-5.0.5.tgz", - "integrity": "sha512-bs3PpSQS59I/YD2RnwcPv88pF/vB6GH2rw4jqb/0xm60LfRuSm0tNoCrJMuyG2pFz89WuKM+0BpnEWQi4alwCg==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-5.0.6.tgz", + "integrity": "sha512-5mD/riNxUuSOerk3aPXUUMN96lwZsrU33lp97ySfffloh2WhLZcjVJszibBgIP7DP5nqmSOWY9++rqrBuYHvnQ==", "dependencies": { - "@libp2p/interface": "^2.1.3", + "@libp2p/interface": "^2.2.0", "@noble/curves": "^1.4.0", "@noble/hashes": "^1.4.0", "asn1js": "^3.0.5", @@ -2742,9 +2736,9 @@ } }, "node_modules/@libp2p/interface": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-2.1.3.tgz", - "integrity": "sha512-t1i2LWcnTGJEr7fDMslA8wYwBzJP81QKBlrBHoGhXxqqpRQa9035roCh/Akuw5RUgjKE47/ezjuzo90aWsJB8g==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-2.2.0.tgz", + "integrity": "sha512-Pn3P5ixDggBjDyuULT0GvwdgD3JA426OqZ0e521mI7ysS+/M9Z9fp4Qcy8JrkJ45bLmIi9cgrNrefuU/Zu+bAQ==", "dependencies": { "@multiformats/multiaddr": "^12.2.3", "it-pushable": "^3.2.3", @@ -2755,12 +2749,12 @@ } }, "node_modules/@libp2p/interface-internal": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@libp2p/interface-internal/-/interface-internal-2.0.8.tgz", - "integrity": "sha512-yWAVuygiy2XhZK2UsOfy3iA30Bi78VeJDac6cAD/FQzu3rmGy2LNYtHuz1Vze9/OL4I6cseMNTGkozTeDg8nMg==", + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/@libp2p/interface-internal/-/interface-internal-2.0.10.tgz", + "integrity": "sha512-LRnn6w5rtvMQlEukihDI5NhSZXZj7ITFT1Hbo3Dn3HGo1oxZe7oWh7ERc5LwZw835QHGzFKZYerBFKdqxoWsFQ==", "dependencies": { - "@libp2p/interface": "^2.1.3", - "@libp2p/peer-collections": "^6.0.8", + "@libp2p/interface": "^2.2.0", + "@libp2p/peer-collections": "^6.0.10", "@multiformats/multiaddr": "^12.2.3", "progress-events": "^1.0.0", "uint8arraylist": "^2.4.8" @@ -2820,11 +2814,11 @@ } }, "node_modules/@libp2p/logger": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-5.1.1.tgz", - "integrity": "sha512-+pwFFZekKQHKdSrGURKZjfAJ86soc1e4HsI0r7dJN+kHICzKFzC+x5hM5GsWCorNj3y++xshWlF/n03zyxoyJQ==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-5.1.3.tgz", + "integrity": "sha512-NUVWEWGbXlBDgDE5ntdm51+ZICmaKYI8mor6KrlPeB1WXDyIFxRWIBw6uzt+HgprQJWzLTojeUEGv6OPsj95Dg==", "dependencies": { - "@libp2p/interface": "^2.1.3", + "@libp2p/interface": "^2.2.0", "@multiformats/multiaddr": "^12.2.3", "interface-datastore": "^8.3.0", "multiformats": "^13.1.0", @@ -2878,36 +2872,36 @@ } }, "node_modules/@libp2p/peer-collections": { - "version": "6.0.8", - "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-6.0.8.tgz", - "integrity": "sha512-/xaSvb45lydLibt7sb+Im1ohIGiMfOlz5wcxelEgxmvUd0QmvirZXM3eAavQ+xrxmvJSPEQDmWSP+851ohRlKQ==", + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-6.0.10.tgz", + "integrity": "sha512-KQQiBZ2Y3+wvxjfIWbUCL0suCRVn5ylLuQ2r+OGXLA7LtgRw1RLQnUHHFVoY+CE9pvfIfamwTFlkZhWtvi271w==", "dependencies": { - "@libp2p/interface": "^2.1.3", - "@libp2p/peer-id": "^5.0.5", - "@libp2p/utils": "^6.1.1", + "@libp2p/interface": "^2.2.0", + "@libp2p/peer-id": "^5.0.7", + "@libp2p/utils": "^6.1.3", "multiformats": "^13.2.2" } }, "node_modules/@libp2p/peer-id": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-5.0.5.tgz", - "integrity": "sha512-+9aX4II0hjMgKcFX/TMWUHRu2wOXOkfV5jO2N5m/R91K+Kp4Tt4n1ceXHjrbwwz3k2IWl0xJOMYjrf9dhOZWAw==", + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-5.0.7.tgz", + "integrity": "sha512-ecF0Mu4Nxy8IHUMBYVNIEihjUlx52DM+X3CIfBItvGqvnhrUSkJJjkska2dJX3yf2J8wufzCT3jCg4NZWmndYg==", "dependencies": { - "@libp2p/crypto": "^5.0.5", - "@libp2p/interface": "^2.1.3", + "@libp2p/crypto": "^5.0.6", + "@libp2p/interface": "^2.2.0", "multiformats": "^13.1.0", "uint8arrays": "^5.1.0" } }, "node_modules/@libp2p/peer-record": { - "version": "8.0.8", - "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-8.0.8.tgz", - "integrity": "sha512-wYqVN13ZaC/cVdFaTR3+Plzv4lf/BNVSzZK11cSSo3MqinOWqFs38plw9OC1Mfne2x9HYHLGwhj2zE802itD0A==", - "dependencies": { - "@libp2p/crypto": "^5.0.5", - "@libp2p/interface": "^2.1.3", - "@libp2p/peer-id": "^5.0.5", - "@libp2p/utils": "^6.1.1", + "version": "8.0.10", + "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-8.0.10.tgz", + "integrity": "sha512-k5A5YFhx7xGgFjiFWp0j8Cbw5kUYLJoBY9I3YTIHrieusLUUkMtUkYeuWeagNL1JYcXr06gguoIaYBRNCMQAow==", + "dependencies": { + "@libp2p/crypto": "^5.0.6", + "@libp2p/interface": "^2.2.0", + "@libp2p/peer-id": "^5.0.7", + "@libp2p/utils": "^6.1.3", "@multiformats/multiaddr": "^12.2.3", "multiformats": "^13.2.2", "protons-runtime": "^5.4.0", @@ -3009,14 +3003,14 @@ } }, "node_modules/@libp2p/utils": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-6.1.1.tgz", - "integrity": "sha512-lpqNyyTx7ygIfXyU4eqDONW7c4oc8Gf1xjDahlOWcggqNhLWsC3/8zTmziKlY3PjTvzY0W37nDRPO1KiM1Sduw==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-6.1.3.tgz", + "integrity": "sha512-n1D6phOXGkqE3tuvmZwm5gaHKcGanlKwCWEBlrZqx9SSCyd5U5C58BcyQ8YH5/nb4kYMI7HyjomfQAVs2S2R9Q==", "dependencies": { "@chainsafe/is-ip": "^2.0.2", - "@libp2p/crypto": "^5.0.5", - "@libp2p/interface": "^2.1.3", - "@libp2p/logger": "^5.1.1", + "@libp2p/crypto": "^5.0.6", + "@libp2p/interface": "^2.2.0", + "@libp2p/logger": "^5.1.3", "@multiformats/multiaddr": "^12.2.3", "@sindresorhus/fnv1a": "^3.1.0", "@types/murmurhash3js-revisited": "^3.0.3", @@ -3430,33 +3424,33 @@ "optional": true }, "node_modules/@polkadot-api/merkleize-metadata": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@polkadot-api/merkleize-metadata/-/merkleize-metadata-1.1.7.tgz", - "integrity": "sha512-t8El8ZfkH5gSxC60U+ZHWBDzBlWsIsRZwSaVATjW1G22aXuA9N5tRBU6/g+uA/zDc34NNSFwFzXMH065/fceSw==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@polkadot-api/merkleize-metadata/-/merkleize-metadata-1.1.9.tgz", + "integrity": "sha512-TwFhbnHcnad/O5S8NnT9OcCX0CRAyJL9PilwV/sd8cEdS9LWNwlBxjTqUWWKhRrtlsSeuvi2ldYC+dgUYUaIOA==", "dependencies": { - "@polkadot-api/metadata-builders": "0.8.2", - "@polkadot-api/substrate-bindings": "0.9.2", + "@polkadot-api/metadata-builders": "0.9.1", + "@polkadot-api/substrate-bindings": "0.9.3", "@polkadot-api/utils": "0.1.2" } }, "node_modules/@polkadot-api/merkleize-metadata/node_modules/@polkadot-api/metadata-builders": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/@polkadot-api/metadata-builders/-/metadata-builders-0.8.2.tgz", - "integrity": "sha512-+lasR2B0YXPlUJ7QNfO78MYCiXg/ANWWae7Qp53b9kEif5pe0pjxY/9KzdSu8FBA72s/FelQLn7lN/lhMC9zVg==", + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@polkadot-api/metadata-builders/-/metadata-builders-0.9.1.tgz", + "integrity": "sha512-yZPm9KKn7QydbjMQMzhKHekDuQSdSZXYdCyqGt74HSNz9DdJSdpFNwHv0p+vmp+9QDlVsKK7nbUTjYxLZT4vCA==", "dependencies": { - "@polkadot-api/substrate-bindings": "0.9.2", + "@polkadot-api/substrate-bindings": "0.9.3", "@polkadot-api/utils": "0.1.2" } }, "node_modules/@polkadot-api/merkleize-metadata/node_modules/@polkadot-api/substrate-bindings": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/@polkadot-api/substrate-bindings/-/substrate-bindings-0.9.2.tgz", - "integrity": "sha512-OzWVPoky/Da50V9jFOywRRs3+RZgl2WxiHG/NDi0ug/upEkH0W1bwepG0hMMhneYhoKm+JgUDhLrM67ZbFTStA==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/@polkadot-api/substrate-bindings/-/substrate-bindings-0.9.3.tgz", + "integrity": "sha512-ygaZo8+xssTdb6lj9mA8RTlanDfyd0iMex3aBFC1IzOSm08XUWdRpuSLRuerFCimLzKuz/oBOTKdqBFGb7ybUQ==", "dependencies": { "@noble/hashes": "^1.4.0", "@polkadot-api/utils": "0.1.2", "@scure/base": "^1.1.7", - "scale-ts": "^1.6.0" + "scale-ts": "^1.6.1" } }, "node_modules/@polkadot-api/merkleize-metadata/node_modules/@polkadot-api/utils": { @@ -3518,24 +3512,24 @@ "optional": true }, "node_modules/@polkadot/api": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-14.1.1.tgz", - "integrity": "sha512-3uSJUdaohKtAvj9fjqyOkYs0PthWBdWtkko2TcYGRxj9BikbZMmx+agdkty8VrOxvn3pPoTRKe/jMt2Txn2MaA==", - "dependencies": { - "@polkadot/api-augment": "14.1.1", - "@polkadot/api-base": "14.1.1", - "@polkadot/api-derive": "14.1.1", - "@polkadot/keyring": "^13.2.1", - "@polkadot/rpc-augment": "14.1.1", - "@polkadot/rpc-core": "14.1.1", - "@polkadot/rpc-provider": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-augment": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/types-create": "14.1.1", - "@polkadot/types-known": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-14.2.1.tgz", + "integrity": "sha512-vYYOvCbGzKWq2auv7e3r71lp0N9hLi4Wfvdb+PjDlUWy4CBydDPgNRL7eC/pJyY4/8zs5dAWVmmu5SQsdpM93g==", + "dependencies": { + "@polkadot/api-augment": "14.2.1", + "@polkadot/api-base": "14.2.1", + "@polkadot/api-derive": "14.2.1", + "@polkadot/keyring": "^13.2.2", + "@polkadot/rpc-augment": "14.2.1", + "@polkadot/rpc-core": "14.2.1", + "@polkadot/rpc-provider": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-augment": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/types-create": "14.2.1", + "@polkadot/types-known": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", "eventemitter3": "^5.0.1", "rxjs": "^7.8.1", "tslib": "^2.8.0" @@ -3545,16 +3539,16 @@ } }, "node_modules/@polkadot/api-augment": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-14.1.1.tgz", - "integrity": "sha512-n6aexVgdlHfh3d12qFYpooxzS9yjKq/oxLNXKvhpV3CMg36Hlq4ULDdtI6L3sB8I3nwdBEWaXyBvbpKvPZGUxQ==", - "dependencies": { - "@polkadot/api-base": "14.1.1", - "@polkadot/rpc-augment": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-augment": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-14.2.1.tgz", + "integrity": "sha512-Vi1iuGliJe3rrH2wyfZq/FIYncUqX6ue15Zx0gpj20kRW9hNEU3ywr3NRrr3UXGZRozJZ/C4s0FNneNYvu/KCQ==", + "dependencies": { + "@polkadot/api-base": "14.2.1", + "@polkadot/rpc-augment": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-augment": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3562,13 +3556,13 @@ } }, "node_modules/@polkadot/api-base": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-14.1.1.tgz", - "integrity": "sha512-gMj0uIlAv6RkRMzmhl61KU1/Pcadrarxn0lBdDTcVua3KEWLuncI+VbiN3cEd/aW6QUTgcDFpppm8nfwD9eVzQ==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-14.2.1.tgz", + "integrity": "sha512-HofQlndP8OeO91iU+Ueg7DWo7fmzD5TJs/WHBS2XwSZfZ6rzYnfBxpFM8A51oY+HxXHc5EgvjdhqY2aO2OjZ2w==", "dependencies": { - "@polkadot/rpc-core": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/util": "^13.2.1", + "@polkadot/rpc-core": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/util": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -3577,18 +3571,18 @@ } }, "node_modules/@polkadot/api-derive": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-14.1.1.tgz", - "integrity": "sha512-ZElYAr/euw2fR7RmGkgJgF88IK9iz3rqgesmdLtgQ2a85MEiR4UrVvhNKSjMr9PSn7EUM1mUixZhGp3jvuqrsA==", - "dependencies": { - "@polkadot/api": "14.1.1", - "@polkadot/api-augment": "14.1.1", - "@polkadot/api-base": "14.1.1", - "@polkadot/rpc-core": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-14.2.1.tgz", + "integrity": "sha512-2JqFcu+qRHpeveu3f/LTxhWw0MNt4M+aNeyttyo5kRRSAL/pmU75E43b4tXq7UZmlmKZZtga8b0dFHoiMTuuwA==", + "dependencies": { + "@polkadot/api": "14.2.1", + "@polkadot/api-augment": "14.2.1", + "@polkadot/api-base": "14.2.1", + "@polkadot/rpc-core": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -3597,28 +3591,28 @@ } }, "node_modules/@polkadot/keyring": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-13.2.1.tgz", - "integrity": "sha512-tnNLHaOuwoVC3n2tUQe0iSI4Jyxzqm7CPnf/sWMAAFImaVnC7PhiZFvqs2QGpha4ks9Lv722Vkjh7iIKUpEsUA==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-13.2.2.tgz", + "integrity": "sha512-h4bPU92CALAAC+QOp6+zttuhI5H0GKOUzj1qwnmoPVoWxh21FoekLAXO1YJlsKxciTDdK5OhjdNPOIqcF0GCXA==", "dependencies": { - "@polkadot/util": "13.2.1", - "@polkadot/util-crypto": "13.2.1", + "@polkadot/util": "13.2.2", + "@polkadot/util-crypto": "13.2.2", "tslib": "^2.8.0" }, "engines": { "node": ">=18" }, "peerDependencies": { - "@polkadot/util": "13.2.1", - "@polkadot/util-crypto": "13.2.1" + "@polkadot/util": "13.2.2", + "@polkadot/util-crypto": "13.2.2" } }, "node_modules/@polkadot/networks": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-13.2.1.tgz", - "integrity": "sha512-T04RTY+w8X+JB0MNAIrSFr3WX/eIUrCyYTsuf6jpg89efubpWYvfchiLTDcQrA2KfdqTBl3bQ1wgKqmWMMKNzg==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-13.2.2.tgz", + "integrity": "sha512-di3dLB9BcLQ9ARcDe/nizl7jZZnQbQlxB8kXtAXqTIVFtshtKT+zYcji6dTX7xX9/O9tZB7qnrvuIuI0MkwJ5A==", "dependencies": { - "@polkadot/util": "13.2.1", + "@polkadot/util": "13.2.2", "@substrate/ss58-registry": "^1.51.0", "tslib": "^2.8.0" }, @@ -3627,14 +3621,14 @@ } }, "node_modules/@polkadot/rpc-augment": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-14.1.1.tgz", - "integrity": "sha512-jeDYDepe6IOzgUFD+vLEuLrWGqw/dJIcxb8uf/YpnsvzA8kbPZx3BcIhboIpI8HpdKdn6f5mflSTVgDUpUPmNg==", - "dependencies": { - "@polkadot/rpc-core": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-14.2.1.tgz", + "integrity": "sha512-ouRRq7suXiPBECImMf+pM7U/k4541uJxuYreFhnplE+egaikKieY720hKiRxesLALr6fjgBr3DRsUsk8yP3YtA==", + "dependencies": { + "@polkadot/rpc-core": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3642,14 +3636,14 @@ } }, "node_modules/@polkadot/rpc-core": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-14.1.1.tgz", - "integrity": "sha512-rfV1ArJcAZQ3lzAM9P+yIaXN720yJysNGy14FxupLsFsvzowEnEPs4khS2HgnX6j1RqkElw6va/ZVhOsLPhy9w==", - "dependencies": { - "@polkadot/rpc-augment": "14.1.1", - "@polkadot/rpc-provider": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-14.2.1.tgz", + "integrity": "sha512-jGOoRKdY6XbMY4Z7N9lKI3YmLfZWjT+DcXo+kRfSr3YgORDUXNwHy9v5doJCkPoY3OIIDmhlK5OaIEXeEjvrcQ==", + "dependencies": { + "@polkadot/rpc-augment": "14.2.1", + "@polkadot/rpc-provider": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/util": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -3658,18 +3652,18 @@ } }, "node_modules/@polkadot/rpc-provider": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-14.1.1.tgz", - "integrity": "sha512-BY0H1CC7M360uHXU2IfFdgFmcdjmIz6NxPmXRhrT3QGFmJSHuFevjTbIFlPG7YBK5ivochLrcISelRr7HKXYOg==", - "dependencies": { - "@polkadot/keyring": "^13.2.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-support": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", - "@polkadot/x-fetch": "^13.2.1", - "@polkadot/x-global": "^13.2.1", - "@polkadot/x-ws": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-14.2.1.tgz", + "integrity": "sha512-5ty21djvymqgxIpqKya9ekLHbiIRISIq9pl/GyVUSj2y3ditmXHF1UElmKfMCvi0b6nmOJlkxJIb7ZDyfjkBag==", + "dependencies": { + "@polkadot/keyring": "^13.2.2", + "@polkadot/types": "14.2.1", + "@polkadot/types-support": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", + "@polkadot/x-fetch": "^13.2.2", + "@polkadot/x-global": "^13.2.2", + "@polkadot/x-ws": "^13.2.2", "eventemitter3": "^5.0.1", "mock-socket": "^9.3.1", "nock": "^13.5.5", @@ -3683,16 +3677,16 @@ } }, "node_modules/@polkadot/types": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-14.1.1.tgz", - "integrity": "sha512-bT1wxu2wZsKR8Ih1PHu4SqptOF+MQbh21e+NJVZkIsrjQz1DvKkdcW4G/s0i0vX/QIjnXTJFC84vMzr5cxJm8Q==", - "dependencies": { - "@polkadot/keyring": "^13.2.1", - "@polkadot/types-augment": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/types-create": "14.1.1", - "@polkadot/util": "^13.2.1", - "@polkadot/util-crypto": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-14.2.1.tgz", + "integrity": "sha512-C4mf3257vefKDCF5dPtw3WPztE/cTgHjI/fmimwxjGakX3u1mni19wqvBXKg69tuzJ31YMagqMkD2YFZ/zGSPg==", + "dependencies": { + "@polkadot/keyring": "^13.2.2", + "@polkadot/types-augment": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/types-create": "14.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/util-crypto": "^13.2.2", "rxjs": "^7.8.1", "tslib": "^2.8.0" }, @@ -3701,13 +3695,13 @@ } }, "node_modules/@polkadot/types-augment": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-14.1.1.tgz", - "integrity": "sha512-A73JCwmg5ZuYVHw1k7Lxx4MjjRwQd6Yw/VaRIPqjk3iyG5r9RyFJgsJ7xRafDlKFG0AJ5c6ixvlaHOnBrEAzpQ==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-14.2.1.tgz", + "integrity": "sha512-dAsiRRPr7ClX/zz7YqpIr4dB5fOR8UzXnxz8d4Tyrcxpf9CAivIIJ8Mxl5M/71CTF/LSlCbSvsmvBG0mAX7HLg==", "dependencies": { - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3715,12 +3709,12 @@ } }, "node_modules/@polkadot/types-codec": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-14.1.1.tgz", - "integrity": "sha512-O6UyTjEAeZMf/uthF3NjCy4tiAeWjj4tfTEWTx2Z65fNTTbXx1Mq5YBBOWsvzBXGBFK35C8buYa4l8cgQS9MoA==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-14.2.1.tgz", + "integrity": "sha512-NKI9hiW2tE3AcEKL1eGd6fyNa2QbOvlH+mEq1vTyT3/fm65mrtIqOuZASWa3kXMQmOHCs2/mMGh7p1Kj8glalQ==", "dependencies": { - "@polkadot/util": "^13.2.1", - "@polkadot/x-bigint": "^13.2.1", + "@polkadot/util": "^13.2.2", + "@polkadot/x-bigint": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3728,12 +3722,12 @@ } }, "node_modules/@polkadot/types-create": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-14.1.1.tgz", - "integrity": "sha512-t4gr5NKU8zZetnDvoRnlioEZlkYybBSql+Ep3mQUiJosF5w/SCN6EKV0GPqs0fB1ovqhDQSnwe2xoRjHsiHObA==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-14.2.1.tgz", + "integrity": "sha512-AhcyVR6eoc+br76QbqQ3LVwFuOrdZH/A9hlpMPI8MvIW46wZ5bPcDoqKLZugeH6wOKKVzbqw8z9tZ1KWgUSdVg==", "dependencies": { - "@polkadot/types-codec": "14.1.1", - "@polkadot/util": "^13.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3741,15 +3735,15 @@ } }, "node_modules/@polkadot/types-known": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-14.1.1.tgz", - "integrity": "sha512-TvyqTsm1Wxw+tjN8UsB04+vZv5znZE5ETGunHLHnvv4WF/lkz4WpkRc/9iqduM5O/iOZh8mEb7n/uyz8LL4brA==", - "dependencies": { - "@polkadot/networks": "^13.2.1", - "@polkadot/types": "14.1.1", - "@polkadot/types-codec": "14.1.1", - "@polkadot/types-create": "14.1.1", - "@polkadot/util": "^13.2.1", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-14.2.1.tgz", + "integrity": "sha512-Lp8km3+0NKBR3x9covI84Mz3dXFAmIkohzJhcGjpjwcOKH0W4GSQBTDcsYfTH+UAY1mF7hvgXCtvGwbyLm2kOQ==", + "dependencies": { + "@polkadot/networks": "^13.2.2", + "@polkadot/types": "14.2.1", + "@polkadot/types-codec": "14.2.1", + "@polkadot/types-create": "14.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3757,11 +3751,11 @@ } }, "node_modules/@polkadot/types-support": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-14.1.1.tgz", - "integrity": "sha512-DJgJ/2n3eWFlgH1K/U7G4NSbgdsx4Lb1fK4yVlZ9t81lJWWiAeb/FodHJb8jlQ6Jezx5S71fRripXfg+FdyCDA==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-14.2.1.tgz", + "integrity": "sha512-pAaAGDEBUnDiC15AjVc1aULk+vfCma2OlVzU6usOLee1OKkwDuk74Bnyo9jshKVYuTjujLrmp3zmzmuU1NjbeQ==", "dependencies": { - "@polkadot/util": "^13.2.1", + "@polkadot/util": "^13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3769,14 +3763,14 @@ } }, "node_modules/@polkadot/util": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-13.2.1.tgz", - "integrity": "sha512-+zCyQQeW4llWD5yhvPAawekRpdAU3LZPLD0j3v8nJjsG9cAyiYGZjsVxDFPpD0yixS1Hl70937bPR46761NG9g==", - "dependencies": { - "@polkadot/x-bigint": "13.2.1", - "@polkadot/x-global": "13.2.1", - "@polkadot/x-textdecoder": "13.2.1", - "@polkadot/x-textencoder": "13.2.1", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-13.2.2.tgz", + "integrity": "sha512-zhsGtR0J2a0ODesJNbCYqEXOL2rhPrmv1F6OB2JMdho7iOrkONck3PZaoT/Y0JF7IlHjGV8K6yrw7k9KUtFrEA==", + "dependencies": { + "@polkadot/x-bigint": "13.2.2", + "@polkadot/x-global": "13.2.2", + "@polkadot/x-textdecoder": "13.2.2", + "@polkadot/x-textencoder": "13.2.2", "@types/bn.js": "^5.1.6", "bn.js": "^5.2.1", "tslib": "^2.8.0" @@ -3786,18 +3780,18 @@ } }, "node_modules/@polkadot/util-crypto": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-13.2.1.tgz", - "integrity": "sha512-IalVWtRfsLEkF0fQvEfbnYwrQWUw2AHSYgJINhrZvdoC+Vy6oetvO0ZAhbfUp1c/HOaql0gex4WVrfw7gcBKjQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-13.2.2.tgz", + "integrity": "sha512-C4vl07XC43vE6egd9LmSe0uOc7hAvBq6CIoILk5ZB95ABNBQSHOrS1pHugW4rJgVUiZgv8sdl+twmgisuSsSfg==", "dependencies": { "@noble/curves": "^1.3.0", "@noble/hashes": "^1.3.3", - "@polkadot/networks": "13.2.1", - "@polkadot/util": "13.2.1", + "@polkadot/networks": "13.2.2", + "@polkadot/util": "13.2.2", "@polkadot/wasm-crypto": "^7.4.1", "@polkadot/wasm-util": "^7.4.1", - "@polkadot/x-bigint": "13.2.1", - "@polkadot/x-randomvalues": "13.2.1", + "@polkadot/x-bigint": "13.2.2", + "@polkadot/x-randomvalues": "13.2.2", "@scure/base": "^1.1.7", "tslib": "^2.8.0" }, @@ -3805,7 +3799,7 @@ "node": ">=18" }, "peerDependencies": { - "@polkadot/util": "13.2.1" + "@polkadot/util": "13.2.2" } }, "node_modules/@polkadot/wasm-bridge": { @@ -3907,11 +3901,11 @@ } }, "node_modules/@polkadot/x-bigint": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-13.2.1.tgz", - "integrity": "sha512-NYfH0fKfZFkjE5wOiLmfj+oJFyzSHLJrJt5DmzWwvbhw3dT4Qz2UgBL0i/Ei6REkpOGCXX2DmNbbZBr6sn4f1Q==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-13.2.2.tgz", + "integrity": "sha512-9ENDfG2wYqABWhQYYrbjJK0aPBvCqVPiFhBiKgIg6OTSJKJToa4Di9R8NxelF8eJTtz7DIvgf6gZY/jnKfbtWw==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3919,11 +3913,11 @@ } }, "node_modules/@polkadot/x-fetch": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-13.2.1.tgz", - "integrity": "sha512-y/JgDRyH4JZN0QzI4V3Hf7Bah2FOOTw7sbmlo/o/3Tt0zjLnCbSvu7Lf1+fKBDksQWpElUBg3nVJrw4HAIiaRQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-13.2.2.tgz", + "integrity": "sha512-aDhd2kdx3JWvZSU4Ge966C0111CH8pCsDX7+9IsMGaZhjLF1NEo2xDjs+EwfUbSvNk68A4UVeJsXjG+IVor/ug==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "node-fetch": "^3.3.2", "tslib": "^2.8.0" }, @@ -3932,9 +3926,9 @@ } }, "node_modules/@polkadot/x-global": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-13.2.1.tgz", - "integrity": "sha512-Q9PZY+Xw9ffBYcJjwMCQfGgFi5QNv4GJ1ZqIuJMQBAcM21fn8vuFMfGC24R1pAAJAaBMPkQ9xh8R2cpu9SIjRg==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-13.2.2.tgz", + "integrity": "sha512-a+iKD7JXxDRtYVo0bp1+HHlaem6MkUHU2yE0cx2e97p9x+IKyNEY58D0L5P66kszLvhFw+t3Jq+qHIj0+2YxkQ==", "dependencies": { "tslib": "^2.8.0" }, @@ -3943,27 +3937,27 @@ } }, "node_modules/@polkadot/x-randomvalues": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-13.2.1.tgz", - "integrity": "sha512-LZBlsmz6r+AKHpqTGAjWecn5aNYGnfgLxxu0JZJo1aOQdVrXy7sDl1M5x1U+ZFeShVeSAU54rrWCcHB+zsGHSA==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-13.2.2.tgz", + "integrity": "sha512-1UNImkS5PAaGHeIl2DlMjgt2iN7nlclzwrYhmxd0e9Z11RQqavGqi1a02HGREgnUu+wJ7eHmPMVe6K96+cL+aQ==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { "node": ">=18" }, "peerDependencies": { - "@polkadot/util": "13.2.1", + "@polkadot/util": "13.2.2", "@polkadot/wasm-util": "*" } }, "node_modules/@polkadot/x-textdecoder": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-13.2.1.tgz", - "integrity": "sha512-cyKv5T48goBEMsb1lnKrXPpAPXkpWwAa+Ob0w2eEzsjBPzWEeIPMKFuE4VpPRoZ/Sn6v3hwz98WS8ueCO5MXyQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-13.2.2.tgz", + "integrity": "sha512-elpIrgdq22yyvt4fzxwb2IRJEpswPVwizzauRipVy3uUmI/lC2f7D7u9jrC554Xy8UrrAPExX1sWJCxZA8DZ/g==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3971,11 +3965,11 @@ } }, "node_modules/@polkadot/x-textencoder": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-13.2.1.tgz", - "integrity": "sha512-tugNLn/9UbA1n64mMWliWI1j5kAnnNIHgJ8khbMKyrHS5K+m8BP/avUrlg3u5ukM1RB1cCoJB9uWcT4Sovf65Q==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-13.2.2.tgz", + "integrity": "sha512-nxlNvK5h0KPCaAE/cx92e8JCPAlmFGbuXC9l03C1Ei1wAnOcWuJWRIk2qOkCEYkpT+G0jITPN4dgk634+pBQSw==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0" }, "engines": { @@ -3983,11 +3977,11 @@ } }, "node_modules/@polkadot/x-ws": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-13.2.1.tgz", - "integrity": "sha512-bLw4AL1UlzhveOPj5p3PPbDlrq+B7QbuNQ7F4UBVtEkaZZKJzhviE0mYGrObaguv1ib2tIIrYc7FNqmH6KpRzQ==", + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-13.2.2.tgz", + "integrity": "sha512-WEygcHPB55cKLiNoejJ0Lq3Z1fb4hUO3FmYTXdpHgk0xIOfYDrr7rTlI2cZ4Nb32MofeehN/ZStmEW5Edib6TQ==", "dependencies": { - "@polkadot/x-global": "13.2.1", + "@polkadot/x-global": "13.2.2", "tslib": "^2.8.0", "ws": "^8.18.0" }, @@ -5399,16 +5393,16 @@ "peer": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.10.0.tgz", - "integrity": "sha512-phuB3hoP7FFKbRXxjl+DRlQDuJqhpOnm5MmtROXyWi3uS/Xg2ZXqiQfcG2BJHiN4QKyzdOJi3NEn/qTnjUlkmQ==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.12.2.tgz", + "integrity": "sha512-gQxbxM8mcxBwaEmWdtLCIGLfixBMHhQjBqR8sVWNTPpcj45WlYL2IObS/DNMLH1DBP0n8qz+aiiLTGfopPEebw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.10.0", - "@typescript-eslint/type-utils": "8.10.0", - "@typescript-eslint/utils": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0", + "@typescript-eslint/scope-manager": "8.12.2", + "@typescript-eslint/type-utils": "8.12.2", + "@typescript-eslint/utils": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -5432,15 +5426,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.10.0.tgz", - "integrity": "sha512-E24l90SxuJhytWJ0pTQydFT46Nk0Z+bsLKo/L8rtQSL93rQ6byd1V/QbDpHUTdLPOMsBCcYXZweADNCfOCmOAg==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.12.2.tgz", + "integrity": "sha512-MrvlXNfGPLH3Z+r7Tk+Z5moZAc0dzdVjTgUgwsdGweH7lydysQsnSww3nAmsq8blFuRD5VRlAr9YdEFw3e6PBw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.10.0", - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/typescript-estree": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0", + "@typescript-eslint/scope-manager": "8.12.2", + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/typescript-estree": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2", "debug": "^4.3.4" }, "engines": { @@ -5460,13 +5454,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.10.0.tgz", - "integrity": "sha512-AgCaEjhfql9MDKjMUxWvH7HjLeBqMCBfIaBbzzIcBbQPZE7CPh1m6FF+L75NUMJFMLYhCywJXIDEMa3//1A0dw==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.12.2.tgz", + "integrity": "sha512-gPLpLtrj9aMHOvxJkSbDBmbRuYdtiEbnvO25bCMza3DhMjTQw0u7Y1M+YR5JPbMsXXnSPuCf5hfq0nEkQDL/JQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0" + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5477,13 +5471,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.10.0.tgz", - "integrity": "sha512-PCpUOpyQSpxBn230yIcK+LeCQaXuxrgCm2Zk1S+PTIRJsEfU6nJ0TtwyH8pIwPK/vJoA+7TZtzyAJSGBz+s/dg==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.12.2.tgz", + "integrity": "sha512-bwuU4TAogPI+1q/IJSKuD4shBLc/d2vGcRT588q+jzayQyjVK2X6v/fbR4InY2U2sgf8MEvVCqEWUzYzgBNcGQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "8.10.0", - "@typescript-eslint/utils": "8.10.0", + "@typescript-eslint/typescript-estree": "8.12.2", + "@typescript-eslint/utils": "8.12.2", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -5501,9 +5495,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.10.0.tgz", - "integrity": "sha512-k/E48uzsfJCRRbGLapdZgrX52csmWJ2rcowwPvOZ8lwPUv3xW6CcFeJAXgx4uJm+Ge4+a4tFOkdYvSpxhRhg1w==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.12.2.tgz", + "integrity": "sha512-VwDwMF1SZ7wPBUZwmMdnDJ6sIFk4K4s+ALKLP6aIQsISkPv8jhiw65sAK6SuWODN/ix+m+HgbYDkH+zLjrzvOA==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5514,13 +5508,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.10.0.tgz", - "integrity": "sha512-3OE0nlcOHaMvQ8Xu5gAfME3/tWVDpb/HxtpUZ1WeOAksZ/h/gwrBzCklaGzwZT97/lBbbxJ16dMA98JMEngW4w==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.12.2.tgz", + "integrity": "sha512-mME5MDwGe30Pq9zKPvyduyU86PH7aixwqYR2grTglAdB+AN8xXQ1vFGpYaUSJ5o5P/5znsSBeNcs5g5/2aQwow==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/visitor-keys": "8.10.0", + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/visitor-keys": "8.12.2", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -5557,15 +5551,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.10.0.tgz", - "integrity": "sha512-Oq4uZ7JFr9d1ZunE/QKy5egcDRXT/FrS2z/nlxzPua2VHFtmMvFNDvpq1m/hq0ra+T52aUezfcjGRIB7vNJF9w==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.12.2.tgz", + "integrity": "sha512-UTTuDIX3fkfAz6iSVa5rTuSfWIYZ6ATtEocQ/umkRSyC9O919lbZ8dcH7mysshrCdrAM03skJOEYaBugxN+M6A==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.10.0", - "@typescript-eslint/types": "8.10.0", - "@typescript-eslint/typescript-estree": "8.10.0" + "@typescript-eslint/scope-manager": "8.12.2", + "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/typescript-estree": "8.12.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5579,12 +5573,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.10.0.tgz", - "integrity": "sha512-k8nekgqwr7FadWk548Lfph6V3r9OVqjzAIVskE7orMZR23cGJjAOVazsZSJW+ElyjfTM4wx/1g88Mi70DDtG9A==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.12.2.tgz", + "integrity": "sha512-PChz8UaKQAVNHghsHcPyx1OMHoFRUEA7rJSK/mDhdq85bk+PLsUHUBqTQTFt18VJZbmxBovM65fezlheQRsSDA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.10.0", + "@typescript-eslint/types": "8.12.2", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -7595,20 +7589,20 @@ } }, "node_modules/helia": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/helia/-/helia-5.0.1.tgz", - "integrity": "sha512-C2SUzeEwhQeur13mQpPnklsrZemKEwS/n/3ApcG5ORYJmTni2Fjt2cRs+RzcrOdQf7pdtqBK6RWQR7GobV7OlA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/helia/-/helia-5.1.0.tgz", + "integrity": "sha512-FqL+vtBpB3FQVmc0vTAtfneL6oAcWSkJCG+NVgTPeQ88jm+hLZXXqjUGVgI8aF8Wc3533gEBF2c8Y8+QN6K90Q==", "dependencies": { "@chainsafe/libp2p-noise": "^16.0.0", "@chainsafe/libp2p-yamux": "^7.0.0", - "@helia/block-brokers": "^4.0.0", - "@helia/delegated-routing-v1-http-api-client": "^4.0.0", + "@helia/block-brokers": "^4.0.1", + "@helia/delegated-routing-v1-http-api-client": "^4.1.0", "@helia/interface": "^5.0.0", - "@helia/routers": "^2.0.0", - "@helia/utils": "^1.0.0", + "@helia/routers": "^2.1.0", + "@helia/utils": "^1.0.1", "@libp2p/autonat": "^2.0.0", "@libp2p/bootstrap": "^11.0.0", - "@libp2p/circuit-relay-v2": "^2.0.0", + "@libp2p/circuit-relay-v2": "^3.0.0", "@libp2p/crypto": "^5.0.0", "@libp2p/dcutr": "^2.0.0", "@libp2p/identify": "^3.0.0", @@ -9610,9 +9604,10 @@ "license": "MIT" }, "node_modules/mocha": { - "version": "10.7.3", + "version": "10.8.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.0.tgz", + "integrity": "sha512-2Rh6KiLO56bXjfW77YQWNJGo76U3eMiqHshJHdm8Q89moNFBy6426qwRxCEKEFGSsUWhMOASVFq+DUSTwewyew==", "dev": true, - "license": "MIT", "dependencies": { "ansi-colors": "^4.1.3", "browser-stdout": "^1.3.1", @@ -9790,6 +9785,23 @@ "node": ">=8.0.0" } }, + "node_modules/nanoid": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.8.tgz", + "integrity": "sha512-TcJPw+9RV9dibz1hHUzlLVy8N4X9TnwirAjrU08Juo6BNKggzVfP2ZJ/3ZUSq15Xl5i85i+Z89XBO90pB2PghQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, "node_modules/napi-build-utils": { "version": "1.0.2", "license": "MIT" @@ -9882,20 +9894,6 @@ "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==", "peer": true }, - "node_modules/node-datachannel": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/node-datachannel/-/node-datachannel-0.12.0.tgz", - "integrity": "sha512-pZ9FsVZpHdUKqyWynuCc9IBLkZPJMpDzpNk4YNPCizbIXHYifpYeWqSF35REHGIWi9JMCf11QzapsyQGo/Y4Ig==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "node-domexception": "^2.0.1", - "prebuild-install": "^7.0.1" - }, - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/node-dir": { "version": "0.1.17", "resolved": "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz", @@ -11195,9 +11193,9 @@ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" }, "node_modules/scale-ts": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/scale-ts/-/scale-ts-1.6.0.tgz", - "integrity": "sha512-Ja5VCjNZR8TGKhUumy9clVVxcDpM+YFjAnkMuwQy68Hixio3VRRvWdE3g8T/yC+HXA0ZDQl2TGyUmtmbcVl40Q==" + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/scale-ts/-/scale-ts-1.6.1.tgz", + "integrity": "sha512-PBMc2AWc6wSEqJYBDPcyCLUj9/tMKnLX70jLOSndMtcUoLQucP/DM0vnQo1wJAYjTrQiq8iG9rD0q6wFzgjH7g==" }, "node_modules/scheduler": { "version": "0.24.0-canary-efb381bbf-20230505", @@ -12006,9 +12004,9 @@ "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==" }, "node_modules/tsx": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.1.tgz", - "integrity": "sha512-0flMz1lh74BR4wOvBjuh9olbnwqCPc35OOlfyzHba0Dc+QNUeWX/Gq2YTbnwcWPO3BMd8fkzRVrHcsR+a7z7rA==", + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.2.tgz", + "integrity": "sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==", "dev": true, "dependencies": { "esbuild": "~0.23.0", @@ -12093,14 +12091,14 @@ } }, "node_modules/typescript-eslint": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.10.0.tgz", - "integrity": "sha512-YIu230PeN7z9zpu/EtqCIuRVHPs4iSlqW6TEvjbyDAE3MZsSl2RXBo+5ag+lbABCG8sFM1WVKEXhlQ8Ml8A3Fw==", + "version": "8.12.2", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.12.2.tgz", + "integrity": "sha512-UbuVUWSrHVR03q9CWx+JDHeO6B/Hr9p4U5lRH++5tq/EbFq1faYZe50ZSBePptgfIKLEti0aPQ3hFgnPVcd8ZQ==", "dev": true, "dependencies": { - "@typescript-eslint/eslint-plugin": "8.10.0", - "@typescript-eslint/parser": "8.10.0", - "@typescript-eslint/utils": "8.10.0" + "@typescript-eslint/eslint-plugin": "8.12.2", + "@typescript-eslint/parser": "8.12.2", + "@typescript-eslint/utils": "8.12.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" diff --git a/e2e/package.json b/e2e/package.json index 8c9fd4f25c..5d0a1de617 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -21,11 +21,11 @@ "@frequency-chain/api-augment": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz", "@helia/unixfs": "^4.0.0", "@noble/curves": "^1.6.0", - "@polkadot-api/merkleize-metadata": "^1.1.7", - "@polkadot/api": "14.1.1", - "@polkadot/types": "14.1.1", - "@polkadot/util": "13.2.1", - "helia": "^5.0.1", + "@polkadot-api/merkleize-metadata": "^1.1.9", + "@polkadot/api": "14.2.1", + "@polkadot/types": "14.2.1", + "@polkadot/util": "13.2.2", + "helia": "^5.1.0", "multiformats": "^13.3.0", "rxjs": "^7.8.1", "workerpool": "^9.2.0" @@ -37,12 +37,11 @@ "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", "globals": "^15.11.0", - "mocha": "^10.7.3", - "node-datachannel": "^0.12.0", + "mocha": "^10.8.0", "prettier": "^3.3.3", "sinon": "^19.0.2", - "tsx": "^4.19.1", + "tsx": "^4.19.2", "typescript": "^5.6.3", - "typescript-eslint": "^8.10.0" + "typescript-eslint": "^8.12.2" } } From 9a9444ef02542041fde4298014d6048f68bbc478 Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Tue, 29 Oct 2024 18:28:06 +0000 Subject: [PATCH 04/10] Cleanup --- runtime/frequency/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 753cb2c7dc..39fb2beb13 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -1311,7 +1311,6 @@ cumulus_pallet_parachain_system::register_validate_block! { // The implementation has to be here due to the linking in the macro. // It CANNOT be extracted into a separate file -// Test with: subxt metadata --version 15 -f json | jq .[1].V15.apis sp_api::impl_runtime_apis! { impl sp_consensus_aura::AuraApi for Runtime { fn slot_duration() -> sp_consensus_aura::SlotDuration { @@ -1690,6 +1689,6 @@ mod tests { #[test] fn runtime_apis_are_populated() { - assert!(!RUNTIME_API_VERSIONS.is_empty()); + assert!(RUNTIME_API_VERSIONS.len() > 0); } } From 656602bfbece2d876fa78365d19c9d41964c905d Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Tue, 29 Oct 2024 18:30:04 +0000 Subject: [PATCH 05/10] Bump spec version --- runtime/frequency/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 39fb2beb13..4529380c78 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -396,7 +396,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 123, + spec_version: 124, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -410,7 +410,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency-testnet"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 123, + spec_version: 124, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From 834bcb90aeece276e964b81df02e4061299894fc Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Tue, 29 Oct 2024 19:31:46 +0000 Subject: [PATCH 06/10] Lint fixes --- runtime/frequency/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 4529380c78..9f54f21883 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -1617,7 +1617,6 @@ sp_api::impl_runtime_apis! { use frame_support::traits::StorageInfoTrait; use frame_system_benchmarking::Pallet as SystemBench; use cumulus_pallet_session_benchmarking::Pallet as SessionBench; - use super::*; let mut list = Vec::::new(); list_benchmarks!(list, extra); @@ -1630,7 +1629,6 @@ sp_api::impl_runtime_apis! { config: frame_benchmarking::BenchmarkConfig ) -> Result, sp_runtime::RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch}; - use super::*; use frame_system_benchmarking::Pallet as SystemBench; impl frame_system_benchmarking::Config for Runtime {} From 9c63ae1dcfc510a7beea5f3761398386bdbd908a Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Wed, 30 Oct 2024 14:48:07 +0000 Subject: [PATCH 07/10] Remove runtime types from the manual definitions as they are part of metadata v15 --- e2e/package-lock.json | 18 +++--- e2e/package.json | 4 +- js/api-augment/definitions/frequency.ts | 17 +----- .../definitions/frequencyTxPayment.ts | 23 ------- js/api-augment/definitions/handles.ts | 53 ---------------- js/api-augment/definitions/messages.ts | 37 ----------- js/api-augment/definitions/msa.ts | 61 ++----------------- js/api-augment/definitions/schemas.ts | 29 --------- js/api-augment/definitions/statefulStorage.ts | 37 ----------- js/api-augment/index.ts | 11 ---- js/api-augment/package-lock.json | 8 +-- js/api-augment/package.json | 2 +- js/api-augment/types.d.ts | 10 --- 13 files changed, 23 insertions(+), 287 deletions(-) delete mode 100644 js/api-augment/types.d.ts diff --git a/e2e/package-lock.json b/e2e/package-lock.json index aa0cb9cfae..ca03fd65f4 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -18,7 +18,7 @@ "@polkadot/types": "14.2.1", "@polkadot/util": "13.2.2", "helia": "^5.1.0", - "multiformats": "^13.3.0", + "multiformats": "^13.3.1", "rxjs": "^7.8.1", "workerpool": "^9.2.0" }, @@ -29,7 +29,7 @@ "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", "globals": "^15.11.0", - "mocha": "^10.8.0", + "mocha": "^10.8.1", "prettier": "^3.3.3", "sinon": "^19.0.2", "tsx": "^4.19.2", @@ -2196,7 +2196,7 @@ "node_modules/@frequency-chain/api-augment": { "version": "0.0.0", "resolved": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz", - "integrity": "sha512-qOGhBFbBahTfiQOnVFgXj7oZugMXv82OrTyoXZ+RhQG+5QU8deO/WqRmUSr8OXpqL8j0/w30KgZoMNclyhyJYg==", + "integrity": "sha512-pvf6V+LO0zFtPbqDEXrOxeWEu1+NvKhFEcZdYIiIZcUM9MXtyt8KC1Zf8uzBrmuG2sxBeuMCTQ3ODkviCi+JKg==", "dependencies": { "@polkadot/api": "^14.2.1", "@polkadot/rpc-provider": "^14.2.1", @@ -9604,9 +9604,9 @@ "license": "MIT" }, "node_modules/mocha": { - "version": "10.8.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.0.tgz", - "integrity": "sha512-2Rh6KiLO56bXjfW77YQWNJGo76U3eMiqHshJHdm8Q89moNFBy6426qwRxCEKEFGSsUWhMOASVFq+DUSTwewyew==", + "version": "10.8.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.1.tgz", + "integrity": "sha512-WxSpEWgF03HfgNKBuysfK40DUaOSVX5zxgLDoieMGO+zyE69iq2eQ1vBypvIJ5mOPKpuVAqWiTbt4Orj7L6wVw==", "dev": true, "dependencies": { "ansi-colors": "^4.1.3", @@ -9774,9 +9774,9 @@ } }, "node_modules/multiformats": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.3.0.tgz", - "integrity": "sha512-CBiqvsufgmpo01VT5ze94O+uc+Pbf6f/sThlvWss0sBZmAOu6GQn5usrYV2sf2mr17FWYc0rO8c/CNe2T90QAA==" + "version": "13.3.1", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.3.1.tgz", + "integrity": "sha512-QxowxTNwJ3r5RMctoGA5p13w5RbRT2QDkoM+yFlqfLiioBp78nhDjnRLvmSBI9+KAqN4VdgOVWM9c0CHd86m3g==" }, "node_modules/murmurhash3js-revisited": { "version": "3.0.0", diff --git a/e2e/package.json b/e2e/package.json index 5d0a1de617..0279201499 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -26,7 +26,7 @@ "@polkadot/types": "14.2.1", "@polkadot/util": "13.2.2", "helia": "^5.1.0", - "multiformats": "^13.3.0", + "multiformats": "^13.3.1", "rxjs": "^7.8.1", "workerpool": "^9.2.0" }, @@ -37,7 +37,7 @@ "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", "globals": "^15.11.0", - "mocha": "^10.8.0", + "mocha": "^10.8.1", "prettier": "^3.3.3", "sinon": "^19.0.2", "tsx": "^4.19.2", diff --git a/js/api-augment/definitions/frequency.ts b/js/api-augment/definitions/frequency.ts index 15435cd9f9..29665833d2 100644 --- a/js/api-augment/definitions/frequency.ts +++ b/js/api-augment/definitions/frequency.ts @@ -28,19 +28,8 @@ export default { event: 'u8', data: 'Vec', }, - }, - runtime: { - AdditionalRuntimeApi: [ - { - methods: { - get_events: { - description: 'Get the events with simple SCALE decoding', - params: [], - type: 'Vec', - }, - }, - version: 1, - }, - ], + // Part of the auraApi that is missing the type. + // Unsure why, but can safely be here. + SpConsensusSlotsSlotDuration: 'u64', }, }; diff --git a/js/api-augment/definitions/frequencyTxPayment.ts b/js/api-augment/definitions/frequencyTxPayment.ts index 3d2a9499fe..b0b09a2abf 100644 --- a/js/api-augment/definitions/frequencyTxPayment.ts +++ b/js/api-augment/definitions/frequencyTxPayment.ts @@ -16,27 +16,4 @@ export default { }, }, types: {}, - runtime: { - CapacityTransactionPaymentRuntimeApi: [ - { - methods: { - compute_capacity_fee: { - description: 'Compute the capacity fee for a given transaction', - params: [ - { - name: 'encoded_xt', - type: 'Vec', - }, - { - name: 'at', - type: 'Option', - }, - ], - type: 'FeeDetails', - }, - }, - version: 1, - }, - ], - }, }; diff --git a/js/api-augment/definitions/handles.ts b/js/api-augment/definitions/handles.ts index 95f3b72acd..2be4ac2a9d 100644 --- a/js/api-augment/definitions/handles.ts +++ b/js/api-augment/definitions/handles.ts @@ -57,57 +57,4 @@ export default { base_handle: 'String', }, }, - runtime: { - HandlesRuntimeApi: [ - { - methods: { - get_handle_for_msa: { - description: 'Get handle for a given msa_id', - params: [ - { - name: 'msa_id', - type: 'MessageSourceId', - }, - ], - type: 'Option', - }, - get_msa_for_handle: { - description: 'Get msa_id for a given handle', - params: [ - { - name: 'display_handle', - type: 'Vec', - }, - ], - type: 'Option', - }, - get_next_suffixes: { - description: 'Get next suffixes for a given handle and count', - params: [ - { - name: 'base_handle', - type: 'Vec', - }, - { - name: 'count', - type: 'u16', - }, - ], - type: 'PresumptiveSuffixesResponse', - }, - validate_handle: { - description: 'Check whether the supplied handle passes all the checks performed by claim_handle call.', - params: [ - { - name: 'base_handle', - type: 'String', - }, - ], - type: 'bool', - }, - }, - version: 2, - }, - ], - }, }; diff --git a/js/api-augment/definitions/messages.ts b/js/api-augment/definitions/messages.ts index adaa9d7d47..cdc0f0035d 100644 --- a/js/api-augment/definitions/messages.ts +++ b/js/api-augment/definitions/messages.ts @@ -38,41 +38,4 @@ export default { next_index: 'Option', }, }, - runtime: { - MessagesRuntimeApi: [ - { - methods: { - get_messages_by_schema_and_block: { - description: 'Retrieve the messages for a particular schema and block number', - params: [ - { - name: 'schema_id', - type: 'SchemaId', - }, - { - name: 'schema_payload_location', - type: 'PayloadLocation', - }, - { - name: 'block_number', - type: 'BlockNumber', - }, - ], - type: 'Vec', - }, - get_schema_by_id: { - description: 'Retrieve a schema by id', - params: [ - { - name: 'schema_id', - type: 'SchemaId', - }, - ], - type: 'Option', - }, - }, - version: 1, - }, - ], - }, }; diff --git a/js/api-augment/definitions/msa.ts b/js/api-augment/definitions/msa.ts index 5b30e1a66d..29162cc181 100644 --- a/js/api-augment/definitions/msa.ts +++ b/js/api-augment/definitions/msa.ts @@ -73,62 +73,9 @@ export default { provider_id: 'ProviderId', permissions: 'Vec', }, - }, - runtime: { - MsaRuntimeApi: [ - { - methods: { - has_delegation: { - description: - 'Check to see if a delegation existed between the given delegator and provider at a given block', - params: [ - { - name: 'delegator_id', - type: 'DelegatorId', - }, - { - name: 'provider_id', - type: 'ProviderId', - }, - { - name: 'block_number', - type: 'BlockNumber', - }, - { - name: 'schema_id', - type: 'Option', - }, - ], - type: 'bool', - }, - get_granted_schemas_by_msa_id: { - description: - 'Get the list of schema ids (if any) that exist in any delegation between the delegator and provider', - params: [ - { - name: 'delegator_id', - type: 'DelegatorId', - }, - { - name: 'provider_id', - type: 'ProviderId', - }, - ], - type: 'Option>', - }, - get_all_granted_delegations_by_msa_id: { - description: 'Get the list of all delegated providers with schema permission grants', - params: [ - { - name: 'delegator_msa_id', - type: 'DelegatorId', - }, - ], - type: 'Vec', - }, - }, - version: 2, - }, - ], + // Runtime types + // Not sure why these have to be noted here, but they do + CommonPrimitivesMsaDelegatorId: 'u64', + CommonPrimitivesMsaProviderId: 'u64', }, }; diff --git a/js/api-augment/definitions/schemas.ts b/js/api-augment/definitions/schemas.ts index 4aa19e5217..8c6e75cf70 100644 --- a/js/api-augment/definitions/schemas.ts +++ b/js/api-augment/definitions/schemas.ts @@ -62,33 +62,4 @@ export default { schema_id: 'SchemaId', }, }, - runtime: { - SchemasRuntimeApi: [ - { - methods: { - get_by_schema_id: { - description: 'Fetch the schema by id', - params: [ - { - name: 'schema_id', - type: 'SchemaId', - }, - ], - type: 'Option', - }, - get_schema_versions_by_name: { - description: 'Fetch the schema versions by name', - params: [ - { - name: 'schema_name', - type: 'Vec', - }, - ], - type: 'Option>', - }, - }, - version: 2, - }, - ], - }, }; diff --git a/js/api-augment/definitions/statefulStorage.ts b/js/api-augment/definitions/statefulStorage.ts index b3224529a7..92919e7bdf 100644 --- a/js/api-augment/definitions/statefulStorage.ts +++ b/js/api-augment/definitions/statefulStorage.ts @@ -53,41 +53,4 @@ export default { items: 'Vec', }, }, - runtime: { - StatefulStorageRuntimeApi: [ - { - methods: { - get_paginated_storage: { - description: 'Fetch the stateful paginated storage by msa_id and schema_id', - params: [ - { - name: 'msa_id', - type: 'MessageSourceId', - }, - { - name: 'schema_id', - type: 'SchemaId', - }, - ], - type: 'Result, SpRuntimeDispatchError>', - }, - get_itemized_storage: { - description: 'Fetch the stateful itemized storage by msa_id and schema_id', - params: [ - { - name: 'msa_id', - type: 'MessageSourceId', - }, - { - name: 'schema_id', - type: 'SchemaId', - }, - ], - type: 'Result', - }, - }, - version: 1, - }, - ], - }, }; diff --git a/js/api-augment/index.ts b/js/api-augment/index.ts index c16a0b257a..1a61267126 100644 --- a/js/api-augment/index.ts +++ b/js/api-augment/index.ts @@ -54,16 +54,6 @@ export const signedExtensions: ExtDef = { }, }; -/** - * Build up all the Runtime Api Calls - */ -export const runtime = Object.entries(definitions).reduce((acc, [key, value]) => { - return { - ...acc, - ...value.runtime, - }; -}, {}); - /** * Export for easy use with Polkadot API's ApiPromise * @@ -78,5 +68,4 @@ export const options = { rpc, types, signedExtensions, - runtime, }; diff --git a/js/api-augment/package-lock.json b/js/api-augment/package-lock.json index e999a1249a..48efca0a1a 100644 --- a/js/api-augment/package-lock.json +++ b/js/api-augment/package-lock.json @@ -20,7 +20,7 @@ "@types/mocha": "^10.0.9", "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", - "mocha": "10.7.3", + "mocha": "10.8.1", "prettier": "^3.3.3", "tsx": "^4.19.2", "typescript": "^5.6.3", @@ -2294,9 +2294,9 @@ "license": "MIT" }, "node_modules/mocha": { - "version": "10.7.3", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.3.tgz", - "integrity": "sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==", + "version": "10.8.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.1.tgz", + "integrity": "sha512-WxSpEWgF03HfgNKBuysfK40DUaOSVX5zxgLDoieMGO+zyE69iq2eQ1vBypvIJ5mOPKpuVAqWiTbt4Orj7L6wVw==", "dev": true, "dependencies": { "ansi-colors": "^4.1.3", diff --git a/js/api-augment/package.json b/js/api-augment/package.json index 86e96e8c33..e7afd8bfaf 100644 --- a/js/api-augment/package.json +++ b/js/api-augment/package.json @@ -45,7 +45,7 @@ "@types/mocha": "^10.0.9", "eslint": "^9.13.0", "eslint-plugin-mocha": "^10.5.0", - "mocha": "10.7.3", + "mocha": "10.8.1", "prettier": "^3.3.3", "tsx": "^4.19.2", "typescript": "^5.6.3", diff --git a/js/api-augment/types.d.ts b/js/api-augment/types.d.ts deleted file mode 100644 index 8d1b21a852..0000000000 --- a/js/api-augment/types.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Unknown is causing these to be left out of the generated types. -// Adding them here for now. - -declare global { - type SpConsensusSlotsSlotDuration = bigint; - type CommonPrimitivesMsaDelegatorId = bigint; - type CommonPrimitivesMsaProviderId = bigint; -} - -export {}; From a9ce7604405d0ebf5df930db9fe454923892abcf Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Wed, 30 Oct 2024 14:58:59 +0000 Subject: [PATCH 08/10] Remove the checklist item for Runtime APIs --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4ac7eb45c0..e05d91149f 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -9,7 +9,7 @@ Closes # Checklist - [ ] Updated Pallet Readme? -- [ ] Updated js/api-augment for Custom RPC OR Runtime API? +- [ ] Updated js/api-augment for Custom RPC APIs? - [ ] Design doc(s) updated? - [ ] Unit Tests added? - [ ] e2e Tests added? From dea3a4f140adf224daeeaff669eeaebc7e1e7023 Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Wed, 30 Oct 2024 15:41:20 +0000 Subject: [PATCH 09/10] Removing test for runtimeApis as they are not in types anymore --- js/api-augment/test/index.test.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/js/api-augment/test/index.test.ts b/js/api-augment/test/index.test.ts index 4da561b420..692460fd5a 100644 --- a/js/api-augment/test/index.test.ts +++ b/js/api-augment/test/index.test.ts @@ -24,19 +24,6 @@ describe('index', function () { await mock.disconnect(); }); - it('should know about runtime apis', function () { - const topLevelRuntimeApis = Object.keys((api.registry.knownTypes as any).runtime || {}); - assert.deepEqual(topLevelRuntimeApis, [ - 'AdditionalRuntimeApi', - 'CapacityTransactionPaymentRuntimeApi', - 'HandlesRuntimeApi', - 'MessagesRuntimeApi', - 'MsaRuntimeApi', - 'SchemasRuntimeApi', - 'StatefulStorageRuntimeApi', - ]); - }); - it('should have rpc calls', async function () { assert.notEqual(api.rpc.messages, undefined); assert.notEqual(api.rpc.msa, undefined); From 3e071f92264241480789ae7a853bd51e43cd99ae Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Wed, 30 Oct 2024 17:35:08 +0000 Subject: [PATCH 10/10] Bump spec version --- runtime/frequency/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/frequency/src/lib.rs b/runtime/frequency/src/lib.rs index 39c9c1e538..521ae49d8f 100644 --- a/runtime/frequency/src/lib.rs +++ b/runtime/frequency/src/lib.rs @@ -396,7 +396,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 124, + spec_version: 125, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -410,7 +410,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("frequency-testnet"), impl_name: create_runtime_str!("frequency"), authoring_version: 1, - spec_version: 124, + spec_version: 125, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1,