Complete rebrand: Polkadot→Pezkuwi, Substrate→Bizinikiwi

- Replace PolkadotConfig with PezkuwiConfig
- Replace SubstrateConfig with BizinikiwConfig
- Rename config module files (polkadot.rs→pezkuwi.rs, substrate.rs→bizinikiwi.rs)
- Update all documentation and examples
- All 165 files updated, cargo check passes
This commit is contained in:
2025-12-21 21:42:34 +03:00
parent 99e4ee3ab8
commit 7af0bcd262
166 changed files with 2395 additions and 2395 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ readme = "README.md"
repository.workspace = true
documentation.workspace = true
homepage.workspace = true
description = "Make RPC calls to Substrate based nodes"
description = "Make RPC calls to Bizinikiwi based nodes"
keywords = ["parity", "rpcs", "subxt"]
[features]
+1 -1
View File
@@ -1,6 +1,6 @@
# subxt-rpcs
This crate provides an interface for interacting with Substrate nodes via the available RPC methods.
This crate provides an interface for interacting with Bizinikiwi nodes via the available RPC methods.
```rust
use subxt_rpcs::{RpcClient, ChainHeadRpcMethods};
+1 -1
View File
@@ -2,7 +2,7 @@
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
// see LICENSE for license details.
//! RPC types and client for interacting with a substrate node.
//! RPC types and client for interacting with a bizinikiwi node.
//!
//! An RPC client is instantiated and then used to create some methods, for instance
//! [`crate::methods::ChainHeadRpcMethods`], which defines the calls that can be made with it.
+2 -2
View File
@@ -2,13 +2,13 @@
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
// see LICENSE for license details.
//! This crate provides a low level RPC interface to Substrate based nodes.
//! This crate provides a low level RPC interface to Bizinikiwi based nodes.
//!
//! See the [`client`] module for a [`client::RpcClient`] which is driven by implementations
//! of [`client::RpcClientT`] (several of which are provided behind feature flags).
//!
//! See the [`methods`] module for structs which implement sets of concrete RPC calls for
//! communicating with Substrate based nodes. These structs are all driven by a
//! communicating with Bizinikiwi based nodes. These structs are all driven by a
//! [`client::RpcClient`].
//!
//! The RPC clients/methods here are made use of in `subxt`. Enabling the `subxt` feature flag
+9 -9
View File
@@ -3,7 +3,7 @@
// see LICENSE for license details.
//! An interface to call the API methods. See
//! <https://github.com/paritytech/json-rpc-interface-spec/> for details of the API
//! <https://github.com/pezkuwichain/json-rpc-interface-spec/> for details of the API
//! methods exposed here.
use crate::{
@@ -298,7 +298,7 @@ impl<T: RpcConfig> ChainHeadRpcMethods<T> {
success: bool,
value: Option<Bytes>,
error: Option<String>,
// This was accidentally used instead of value in Substrate,
// This was accidentally used instead of value in Bizinikiwi,
// so to support those impls we try it here if needed:
result: Option<Bytes>,
}
@@ -409,7 +409,7 @@ impl<T: RpcConfig> ChainHeadRpcMethods<T> {
success: bool,
value: Option<Bytes>,
error: Option<String>,
// This was accidentally used instead of value in Substrate,
// This was accidentally used instead of value in Bizinikiwi,
// so to support those impls we try it here if needed:
result: Option<Bytes>,
}
@@ -655,7 +655,7 @@ pub struct RuntimeSpec {
/// making a runtime call (using chainHead_call), you should make sure that this list contains
/// the entry point API corresponding to the call and with a known version number.
///
/// **Note:** In Substrate, the keys in the apis field consists of the hexadecimal-encoded
/// **Note:** In Bizinikiwi, the keys in the apis field consists of the hexadecimal-encoded
/// 8-bytes blake2 hash of the name of the API. For example, the `TaggedTransactionQueue` API
/// is 0xd2bc9897eed08f15.
#[serde(with = "hashmap_as_tuple_list")]
@@ -1117,7 +1117,7 @@ fn to_hex(bytes: impl AsRef<[u8]>) -> String {
}
/// Attempt to deserialize either a string or integer into an integer.
/// See <https://github.com/paritytech/json-rpc-interface-spec/issues/83>
/// See <https://github.com/pezkuwichain/json-rpc-interface-spec/issues/83>
pub(crate) mod unsigned_number_as_string {
use serde::de::{Deserializer, Visitor};
use std::fmt;
@@ -1263,8 +1263,8 @@ mod test {
fn can_deserialize_apis_from_tuple_or_object() {
let old_response = serde_json::json!({
"authoringVersion": 10,
"specName": "westend",
"implName": "parity-westend",
"specName": "zagros",
"implName": "parity-zagros",
"specVersion": 9122,
"implVersion": 0,
"stateVersion": 1,
@@ -1289,8 +1289,8 @@ mod test {
let old_spec: RuntimeSpec = serde_json::from_value(old_response).unwrap();
let new_response = serde_json::json!({
"specName": "westend",
"implName": "parity-westend",
"specName": "zagros",
"implName": "parity-zagros",
"specVersion": 9122,
"implVersion": 0,
"transactionVersion": 7,
+2 -2
View File
@@ -468,7 +468,7 @@ pub struct RuntimeVersion {
/// # Note
///
/// This is copied from `sp-transaction-pool` to avoid a dependency on that crate. Therefore it
/// must be kept compatible with that type from the target substrate version.
/// must be kept compatible with that type from the target bizinikiwi version.
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum TransactionStatus<Hash> {
@@ -593,7 +593,7 @@ pub struct BlockStats {
/// # Note
///
/// This is copied from `sc-rpc-api` to avoid a dependency on that crate. Therefore it
/// must be kept compatible with that type from the target substrate version.
/// must be kept compatible with that type from the target bizinikiwi version.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ReadProof<Hash> {
+2 -2
View File
@@ -5,13 +5,13 @@
//! RPC methods are defined in this module. At the moment we have:
//!
//! - [`ChainHeadRpcMethods`] (and the types in [`chain_head`]): these methods
//! implement the RPC spec at <https://paritytech.github.io/json-rpc-interface-spec/api/chainHead.html>
//! implement the RPC spec at <https://pezkuwichain.github.io/json-rpc-interface-spec/api/chainHead.html>
//!
//! We also have (although their use is not advised):
//!
//! - [`LegacyRpcMethods`] (and the types in [`legacy`]): a collection of legacy RPCs. These are not
//! well specified and may change in implementations without warning, but for those methods we
//! expose, we make a best effort to work against latest Substrate versions.
//! expose, we make a best effort to work against latest Bizinikiwi versions.
pub mod chain_head;
pub mod legacy;