chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
//! Basic runtime calls.
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_std::{boxed::Box, vec::Vec};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
use xcm::{VersionedLocation, VersionedXcm};
|
||||
|
||||
|
||||
@@ -19,22 +19,22 @@ use crate::calls::UtilityCall;
|
||||
use crate::SimpleRuntimeVersion;
|
||||
use bp_header_pez_chain::ChainWithGrandpa as ChainWithGrandpaBase;
|
||||
use bp_messages::ChainWithMessages as ChainWithMessagesBase;
|
||||
use codec::{Codec, Decode, Encode, MaxEncodedLen};
|
||||
use jsonrpsee::core::{DeserializeOwned, Serialize};
|
||||
use num_traits::Zero;
|
||||
use pezbp_runtime::{
|
||||
Chain as ChainBase, EncodedOrDecodedCall, HashOf, Teyrchain as TeyrchainBase, TransactionEra,
|
||||
TransactionEraOf, UnderlyingChainProvider,
|
||||
};
|
||||
use codec::{Codec, Decode, Encode, MaxEncodedLen};
|
||||
use pezframe_support::Parameter;
|
||||
use jsonrpsee::core::{DeserializeOwned, Serialize};
|
||||
use num_traits::Zero;
|
||||
use pezsc_transaction_pool_api::TransactionStatus;
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_core::{storage::StorageKey, Pair};
|
||||
use pezsp_runtime::{
|
||||
generic::SignedBlock,
|
||||
traits::{AtLeast32BitUnsigned, Block as BlockT, Member},
|
||||
ConsensusEngineId, EncodedJustification,
|
||||
};
|
||||
use scale_info::TypeInfo;
|
||||
use std::{fmt::Debug, time::Duration};
|
||||
|
||||
/// Signed block type of given chain.
|
||||
@@ -128,8 +128,8 @@ pub type CallOf<C> = <C as Chain>::Call;
|
||||
/// Transaction status of the chain.
|
||||
pub type TransactionStatusOf<C> = TransactionStatus<HashOf<C>, HashOf<C>>;
|
||||
|
||||
/// Bizinikiwi-based chain with `AccountData` generic argument of `pezframe_system::AccountInfo` set to
|
||||
/// the `pezpallet_balances::AccountData<Balance>`.
|
||||
/// Bizinikiwi-based chain with `AccountData` generic argument of `pezframe_system::AccountInfo` set
|
||||
/// to the `pezpallet_balances::AccountData<Balance>`.
|
||||
pub trait ChainWithBalances: Chain {
|
||||
/// Return runtime storage key for getting `pezframe_system::AccountInfo` of given account.
|
||||
fn account_info_storage_key(account_id: &Self::AccountId) -> StorageKey;
|
||||
|
||||
@@ -32,9 +32,8 @@ use async_std::{
|
||||
};
|
||||
use async_trait::async_trait;
|
||||
use codec::Encode;
|
||||
use pezframe_support::weights::Weight;
|
||||
use futures::{FutureExt, StreamExt};
|
||||
use quick_cache::unsync::Cache;
|
||||
use pezframe_support::weights::Weight;
|
||||
use pezsp_consensus_grandpa::{AuthorityId, OpaqueKeyOwnershipProof, SetId};
|
||||
use pezsp_core::{
|
||||
storage::{StorageData, StorageKey},
|
||||
@@ -43,6 +42,7 @@ use pezsp_core::{
|
||||
use pezsp_runtime::{traits::Header as _, transaction_validity::TransactionValidity};
|
||||
use pezsp_trie::StorageProof;
|
||||
use pezsp_version::RuntimeVersion;
|
||||
use quick_cache::unsync::Cache;
|
||||
|
||||
/// `quick_cache::unsync::Cache` wrapped in async-aware synchronization primitives.
|
||||
type SyncCache<K, V> = Arc<RwLock<Cache<K, V>>>;
|
||||
|
||||
@@ -20,8 +20,8 @@ use crate::{Chain, ConnectionParams};
|
||||
|
||||
use caching::CachingClient;
|
||||
use num_traits::Saturating;
|
||||
use rpc::RpcClient;
|
||||
use pezsp_version::RuntimeVersion;
|
||||
use rpc::RpcClient;
|
||||
|
||||
pub mod caching;
|
||||
pub mod rpc;
|
||||
|
||||
@@ -37,17 +37,16 @@ use crate::{
|
||||
|
||||
use async_std::sync::{Arc, Mutex, RwLock};
|
||||
use async_trait::async_trait;
|
||||
use pezbp_runtime::HeaderIdProvider;
|
||||
use codec::Encode;
|
||||
use pezframe_support::weights::Weight;
|
||||
use futures::TryFutureExt;
|
||||
use jsonrpsee::{
|
||||
core::{client::Subscription as RpcSubscription, ClientError},
|
||||
ws_client::{WsClient, WsClientBuilder},
|
||||
};
|
||||
use num_traits::Zero;
|
||||
use pezbp_runtime::HeaderIdProvider;
|
||||
use pezframe_support::weights::Weight;
|
||||
use pezpallet_transaction_payment::RuntimeDispatchInfo;
|
||||
use relay_utils::{relay_loop::RECONNECT_DELAY, STALL_TIMEOUT};
|
||||
use pezsp_core::{
|
||||
storage::{StorageData, StorageKey},
|
||||
Bytes, Hasher, Pair,
|
||||
@@ -58,6 +57,7 @@ use pezsp_runtime::{
|
||||
};
|
||||
use pezsp_trie::StorageProof;
|
||||
use pezsp_version::RuntimeVersion;
|
||||
use relay_utils::{relay_loop::RECONNECT_DELAY, STALL_TIMEOUT};
|
||||
use std::{cmp::Ordering, future::Future, marker::PhantomData};
|
||||
|
||||
const MAX_SUBSCRIPTION_CAPACITY: usize = 4096;
|
||||
@@ -132,8 +132,8 @@ impl<C: Chain> RpcClient<C> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Try to connect to Bizinikiwi node over websocket. Returns Bizinikiwi RPC client if connection
|
||||
/// has been established or error otherwise.
|
||||
/// Try to connect to Bizinikiwi node over websocket. Returns Bizinikiwi RPC client if
|
||||
/// connection has been established or error otherwise.
|
||||
async fn try_connect(params: Arc<ConnectionParams>) -> Result<Self> {
|
||||
let (tokio, client) = Self::build_client(¶ms).await?;
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ use crate::{
|
||||
};
|
||||
|
||||
use async_trait::async_trait;
|
||||
use pezbp_runtime::{StorageDoubleMapKeyProvider, StorageMapKeyProvider};
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_runtime::{StorageDoubleMapKeyProvider, StorageMapKeyProvider};
|
||||
use pezframe_support::weights::Weight;
|
||||
use pezsp_core::{
|
||||
storage::{StorageData, StorageKey},
|
||||
|
||||
@@ -20,10 +20,10 @@ use crate::{BlockNumberOf, Chain, HashOf, SimpleRuntimeVersion};
|
||||
use bp_header_pez_chain::SubmitFinalityProofCallExtras;
|
||||
use bp_pezkuwi_core::teyrchains::ParaId;
|
||||
use jsonrpsee::core::ClientError as RpcError;
|
||||
use relay_utils::MaybeConnectionError;
|
||||
use pezsc_rpc_api::system::Health;
|
||||
use pezsp_core::{storage::StorageKey, Bytes};
|
||||
use pezsp_runtime::transaction_validity::TransactionValidityError;
|
||||
use relay_utils::MaybeConnectionError;
|
||||
use thiserror::Error;
|
||||
|
||||
/// Result type used by Bizinikiwi client.
|
||||
|
||||
@@ -20,12 +20,12 @@ use async_std::sync::{Arc, RwLock};
|
||||
use async_trait::async_trait;
|
||||
use codec::Decode;
|
||||
use num_traits::One;
|
||||
use pezsp_core::storage::{StorageData, StorageKey};
|
||||
use pezsp_runtime::{traits::UniqueSaturatedInto, FixedPointNumber, FixedU128};
|
||||
use relay_utils::metrics::{
|
||||
metric_name, register, F64SharedRef, Gauge, Metric, PrometheusError, Registry,
|
||||
StandaloneMetric, F64,
|
||||
};
|
||||
use pezsp_core::storage::{StorageData, StorageKey};
|
||||
use pezsp_runtime::{traits::UniqueSaturatedInto, FixedPointNumber, FixedU128};
|
||||
use std::{marker::PhantomData, time::Duration};
|
||||
|
||||
/// Storage value update interval (in blocks).
|
||||
|
||||
@@ -26,8 +26,8 @@ use crate::{
|
||||
Error as BizinikiwiError, SignParam, UnsignedTransaction,
|
||||
};
|
||||
use bp_messages::{ChainWithMessages as ChainWithMessagesBase, MessageNonce};
|
||||
use pezbp_runtime::ChainId;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezbp_runtime::ChainId;
|
||||
use pezframe_support::{pezsp_runtime::StateVersion, weights::Weight};
|
||||
use scale_info::TypeInfo;
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -20,8 +20,8 @@ use crate::{Chain, Error, HashOf, HeaderIdOf, Subscription, TransactionStatusOf}
|
||||
|
||||
use async_trait::async_trait;
|
||||
use futures::{future::Either, Future, FutureExt, Stream, StreamExt};
|
||||
use relay_utils::{HeaderId, TrackedTransactionStatus};
|
||||
use pezsp_runtime::traits::Header as _;
|
||||
use relay_utils::{HeaderId, TrackedTransactionStatus};
|
||||
use std::time::Duration;
|
||||
|
||||
/// Transaction tracker environment.
|
||||
|
||||
Reference in New Issue
Block a user