mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 07:41:08 +00:00
Rebrand subxt to pezkuwi-subxt with pezsp_runtime support
- Renamed all crate names from subxt-* to pezkuwi-subxt-* - Updated codegen to use pezsp_runtime, pezsp_core, pezframe_support instead of sp_runtime, sp_core, frame_support - Replaced all internal references from subxt_* to pezkuwi_subxt_* - Added local path dependencies to Pezkuwi SDK crates - Updated workspace configuration for edition 2024
This commit is contained in:
@@ -6,7 +6,7 @@ use super::{RawRpcFuture, RawRpcSubscription, RpcClientT};
|
||||
use crate::Error;
|
||||
use futures::stream::{StreamExt, TryStreamExt};
|
||||
use serde_json::value::RawValue;
|
||||
use subxt_lightclient::{LightClientRpc, LightClientRpcError};
|
||||
use pezkuwi_subxt_lightclient::{LightClientRpc, LightClientRpcError};
|
||||
|
||||
impl RpcClientT for LightClientRpc {
|
||||
fn request_raw<'a>(
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
//! # Example
|
||||
//!
|
||||
//! ```rust
|
||||
//! use subxt_rpcs::client::{ RpcClient, MockRpcClient };
|
||||
//! use subxt_rpcs::client::mock_rpc_client::Json;
|
||||
//! use pezkuwi_subxt_rpcs::client::{ RpcClient, MockRpcClient };
|
||||
//! use pezkuwi_subxt_rpcs::client::mock_rpc_client::Json;
|
||||
//!
|
||||
//! let mut state = vec![
|
||||
//! Json(1u8),
|
||||
|
||||
@@ -33,8 +33,8 @@ crate::macros::cfg_jsonrpsee! {
|
||||
|
||||
crate::macros::cfg_unstable_light_client! {
|
||||
mod lightclient_impl;
|
||||
pub use subxt_lightclient::LightClientRpc as LightClientRpcClient;
|
||||
pub use subxt_lightclient::LightClient;
|
||||
pub use pezkuwi_subxt_lightclient::LightClientRpc as LightClientRpcClient;
|
||||
pub use pezkuwi_subxt_lightclient::LightClient;
|
||||
}
|
||||
|
||||
crate::macros::cfg_reconnecting_rpc_client! {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
//!
|
||||
//! ```rust,no_run
|
||||
//! # async fn foo() -> Result<(), Box<dyn std::error::Error>> {
|
||||
//! use subxt_rpcs::client::{RpcClient, RoundRobinRpcClient, jsonrpsee_client};
|
||||
//! use pezkuwi_subxt_rpcs::client::{RpcClient, RoundRobinRpcClient, jsonrpsee_client};
|
||||
//!
|
||||
//! // Construct some RpcClients (we'll make some jsonrpsee clients here, but
|
||||
//! // you could use anything which implements `RpcClientT`).
|
||||
|
||||
@@ -107,7 +107,7 @@ impl std::ops::Deref for RpcClient {
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust,standalone_crate
|
||||
/// use subxt_rpcs::client::{ rpc_params, RpcParams };
|
||||
/// use pezkuwi_subxt_rpcs::client::{ rpc_params, RpcParams };
|
||||
///
|
||||
/// // If you provide no params you get `None` back
|
||||
/// let params: RpcParams = rpc_params![];
|
||||
@@ -139,7 +139,7 @@ pub use rpc_params;
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust,standalone_crate
|
||||
/// use subxt_rpcs::client::RpcParams;
|
||||
/// use pezkuwi_subxt_rpcs::client::RpcParams;
|
||||
///
|
||||
/// let mut params = RpcParams::new();
|
||||
/// params.push(1).unwrap();
|
||||
|
||||
+2
-2
@@ -67,11 +67,11 @@ impl<T> AccountId for T where T: serde::Serialize {}
|
||||
#[cfg(feature = "subxt")]
|
||||
mod impl_config {
|
||||
use super::*;
|
||||
use subxt_core::config::HashFor;
|
||||
use pezkuwi_subxt_core::config::HashFor;
|
||||
|
||||
impl<T> RpcConfig for T
|
||||
where
|
||||
T: subxt_core::Config,
|
||||
T: pezkuwi_subxt_core::Config,
|
||||
{
|
||||
type Header = T::Header;
|
||||
type Hash = HashFor<T>;
|
||||
|
||||
Reference in New Issue
Block a user