diff --git a/.github/issue_templates/nightly_run_failed.md b/.github/issue_templates/nightly_run_failed.md index 5743a84d6f..090f449de9 100644 --- a/.github/issue_templates/nightly_run_failed.md +++ b/.github/issue_templates/nightly_run_failed.md @@ -1,7 +1,7 @@ --- -title: Subxt integration tests failed against latest Substrate build. +title: Subxt integration tests failed against latest Bizinikiwi build. --- -The nightly CI run which downloads the latest version of Substrate ran into test failures, which likely means that there are breaking changes that need fixing in Subxt. +The nightly CI run which downloads the latest version of Bizinikiwi ran into test failures, which likely means that there are breaking changes that need fixing in Subxt. -Go to https://github.com/paritytech/subxt/actions/workflows/nightly.yml to see details about the failure. \ No newline at end of file +Go to https://github.com/pezkuwichain/subxt/actions/workflows/nightly.yml to see details about the failure. \ No newline at end of file diff --git a/.github/workflows/actions/use-nodes/README.md b/.github/workflows/actions/use-nodes/README.md index d78115a46f..340e0e99d3 100644 --- a/.github/workflows/actions/use-nodes/README.md +++ b/.github/workflows/actions/use-nodes/README.md @@ -1,3 +1,3 @@ # use-nodes -This action downloads the substrate and polkadot binaries produced from the `build-nodes` workflow and puts them into the `$PATH`. \ No newline at end of file +This action downloads the bizinikiwi and pezkuwi binaries produced from the `build-nodes` workflow and puts them into the `$PATH`. \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 97963ec679..708b4a180a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,33 +14,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This small release primarily fixes a few issues, but also adds the code for a prelease of `subxt-historic`, a new crate (at the moment) for working with historic blocks and state. Future releases will aim to stabilize this crate to the level of other `subxt` crates or otherwise merge the logic into `subxt` itself. -This is a minor version bump because, in theory at least, adding the `Clone` bound to block headers in ([#2047](https://github.com/paritytech/subxt/pull/2047)) is a breaking change, although I think it is unlikely that this will impact any users. +This is a minor version bump because, in theory at least, adding the `Clone` bound to block headers in ([#2047](https://github.com/pezkuwichain/subxt/pull/2047)) is a breaking change, although I think it is unlikely that this will impact any users. ### Added -- Add prerelease `subxt-historic` crate for accessing historic (non head-of-chain) blocks ([#2040](https://github.com/paritytech/subxt/pull/2040)) +- Add prerelease `subxt-historic` crate for accessing historic (non head-of-chain) blocks ([#2040](https://github.com/pezkuwichain/subxt/pull/2040)) ### Changed -- Block: Implement clone ([#2047](https://github.com/paritytech/subxt/pull/2047)) -- Increase number of dev accounts ([#2068](https://github.com/paritytech/subxt/pull/2068)) +- Block: Implement clone ([#2047](https://github.com/pezkuwichain/subxt/pull/2047)) +- Increase number of dev accounts ([#2068](https://github.com/pezkuwichain/subxt/pull/2068)) ### Fixed -- Do not panic when encoding call data with invalid fields ([#2070](https://github.com/paritytech/subxt/pull/2070)) -- Tweak test to reduce chance of failure, and need jsonrpsee/server for tests ([#2057](https://github.com/paritytech/subxt/pull/2057)) -- Fix 1.89 clippy warnings ([#2055](https://github.com/paritytech/subxt/pull/2055)) -- Increase reconnecting client request/response size ([#2046](https://github.com/paritytech/subxt/pull/2046)) +- Do not panic when encoding call data with invalid fields ([#2070](https://github.com/pezkuwichain/subxt/pull/2070)) +- Tweak test to reduce chance of failure, and need jsonrpsee/server for tests ([#2057](https://github.com/pezkuwichain/subxt/pull/2057)) +- Fix 1.89 clippy warnings ([#2055](https://github.com/pezkuwichain/subxt/pull/2055)) +- Increase reconnecting client request/response size ([#2046](https://github.com/pezkuwichain/subxt/pull/2046)) ## [0.43.0] - 2025-07-17 This is a reasonably small release which is mainly bug fixing, but has a couple of changes I'd like to elaborate on: -### Remove `codec::Encode` and `codec::Decode` derives from generated APIs by default ([#2008](https://github.com/paritytech/subxt/pull/2008)) +### Remove `codec::Encode` and `codec::Decode` derives from generated APIs by default ([#2008](https://github.com/pezkuwichain/subxt/pull/2008)) When generating an API using the `#[subxt::subxt(...)]` macro (or programatically via `subxt-codegen`), we had always previously added `parity_scale_codec::Encode` and `parity_scale_codec::Decode` derives to all of the generated types. Most places in Subxt have not made use of these for a long time (relying instead on `scale_encode::EncodeAsType` and `scale_decode::DecodeAsType`, since they allow encoding and encoding which takes the type information into account and can more gracefully handle incompatibilities). -We eventually [hit an issue](https://github.com/paritytech/subxt/issues/2006) to which the most appropriate fix was just to remove these derives. +We eventually [hit an issue](https://github.com/pezkuwichain/subxt/issues/2006) to which the most appropriate fix was just to remove these derives. If you still need the `parity_scale_codec::Encode` or `parity_scale_codec::Decode` derives on certain types, you have two options: @@ -63,7 +63,7 @@ If you still need the `parity_scale_codec::Encode` or `parity_scale_codec::Decod )] ``` -Prefer (1) where possible to reduce the amount of generated code, and reduce the likelihood of running into [issues](https://github.com/paritytech/subxt/issues/2006) around those derives in certain edge cases. +Prefer (1) where possible to reduce the amount of generated code, and reduce the likelihood of running into [issues](https://github.com/pezkuwichain/subxt/issues/2006) around those derives in certain edge cases. This PR changes some things around storage keys to remove one last requirement for `Encode` and `Decode` derives, and also as a side effect changes `api.storage().call_raw()` slightly to no longer also try to decode the resulting type via `Decode`, leaving this to the user (and also meaning it's much easier now for the user to obtain the raw bytes for some storage entry). @@ -86,10 +86,10 @@ let (compact_len, metadata): (Compact, frame_metadata::RuntimeMetadataPrefi Decode::decode(&mut &*meta_bytes)?; ``` -### Address some issues around tx mortality ([#2025](https://github.com/paritytech/subxt/pull/2025)) +### Address some issues around tx mortality ([#2025](https://github.com/pezkuwichain/subxt/pull/2025)) Prior to this change, the intended behavior was that any transaction submitted via an `OnlineClient` would have a mortality of 32 blocks by default, and any transaction submitted via an `OfflineClient` would be immortal by default. A couple of issues were present or cropped up however: -- If you explicitly configure the mortality via setting params like `PolkadotExtrinsicParamsBuilder::new().mortal(32).build()`, the `OfflineClient` transaction would _still_ be immortal, because it didn't have enough information to properly configure the mortality as asked for (by virtue of being offline and unable to fetch it). +- If you explicitly configure the mortality via setting params like `PezkuwiExtrinsicParamsBuilder::new().mortal(32).build()`, the `OfflineClient` transaction would _still_ be immortal, because it didn't have enough information to properly configure the mortality as asked for (by virtue of being offline and unable to fetch it). - The intended behaviour turned out to have been broken, and transactions were being submitted as immortal even via the `OnlineClient` by default, unless mortality was explicitly configured. - There was no easy way to actually set the mortality for an `OfflineClient` transaction; you'd have to do something like this: ```rust @@ -101,7 +101,7 @@ With this PR, transactions _are_ now mortal by default using the `OnlineClient`, In this PR, we also discovered an issue decoding `Eras` and fixed this, so that decoding the mortality of a transaction when it is mortal should now work. -### Add FFI example ([#2037](https://github.com/paritytech/subxt/pull/2037)) +### Add FFI example ([#2037](https://github.com/pezkuwichain/subxt/pull/2037)) I'd like to do a quick shoutout to @wassimans, who submitted an excellent example for how to interact with Subxt via the C FFI in Python and Node.JS. This is something I've wanted to add for a while, so it's lovely to see this new example which highlights one of the strengths of Subxt over Javascript based compatitors in the space. @@ -109,25 +109,25 @@ All of the non-trivial changes in this release are listed below: ### Added -- Add FFI example ([#2037](https://github.com/paritytech/subxt/pull/2037)) +- Add FFI example ([#2037](https://github.com/pezkuwichain/subxt/pull/2037)) ### Changed -- Remove `codec::Encode` and `codec::Decode` derives from generated APIs by default ([#2008](https://github.com/paritytech/subxt/pull/2008)) -- Address some issues around tx mortality ([#2025](https://github.com/paritytech/subxt/pull/2025)) +- Remove `codec::Encode` and `codec::Decode` derives from generated APIs by default ([#2008](https://github.com/pezkuwichain/subxt/pull/2008)) +- Address some issues around tx mortality ([#2025](https://github.com/pezkuwichain/subxt/pull/2025)) ### Fixed -- Fix 'subxt explore storage': don't turn keys to bytes ([#2038](https://github.com/paritytech/subxt/pull/2038)) -- Refactor: improve nonce and block injection in extrinsic params ([#2032](https://github.com/paritytech/subxt/pull/2032)) -- Improve docs for `at_latest` ([#2035](https://github.com/paritytech/subxt/pull/2035)) -- Clippy fixes for latest Rustc ([#2033](https://github.com/paritytech/subxt/pull/2033)) -- docs: fix minor comment typos ([#2027](https://github.com/paritytech/subxt/pull/2027)) -- chore: remove redundant backtick in comment ([#2020](https://github.com/paritytech/subxt/pull/2020)) -- Keep codec attrs even when Encode/Decode not used ([#2023](https://github.com/paritytech/subxt/pull/2023)) -- Run CI on v0.N.x branches or PRs to them for ease of backporting ([#2017](https://github.com/paritytech/subxt/pull/2017)) -- De-dup types early in CLI/macro so that derives/substitutes work for de-duped types ([#2015](https://github.com/paritytech/subxt/pull/2015)) -- If only one hasher, always treat any key as a single and not NMap key, even if it's a tuple. ([#2010](https://github.com/paritytech/subxt/pull/2010)) +- Fix 'subxt explore storage': don't turn keys to bytes ([#2038](https://github.com/pezkuwichain/subxt/pull/2038)) +- Refactor: improve nonce and block injection in extrinsic params ([#2032](https://github.com/pezkuwichain/subxt/pull/2032)) +- Improve docs for `at_latest` ([#2035](https://github.com/pezkuwichain/subxt/pull/2035)) +- Clippy fixes for latest Rustc ([#2033](https://github.com/pezkuwichain/subxt/pull/2033)) +- docs: fix minor comment typos ([#2027](https://github.com/pezkuwichain/subxt/pull/2027)) +- chore: remove redundant backtick in comment ([#2020](https://github.com/pezkuwichain/subxt/pull/2020)) +- Keep codec attrs even when Encode/Decode not used ([#2023](https://github.com/pezkuwichain/subxt/pull/2023)) +- Run CI on v0.N.x branches or PRs to them for ease of backporting ([#2017](https://github.com/pezkuwichain/subxt/pull/2017)) +- De-dup types early in CLI/macro so that derives/substitutes work for de-duped types ([#2015](https://github.com/pezkuwichain/subxt/pull/2015)) +- If only one hasher, always treat any key as a single and not NMap key, even if it's a tuple. ([#2010](https://github.com/pezkuwichain/subxt/pull/2010)) ## [0.42.1] - 2025-05-12 @@ -135,7 +135,7 @@ This patch release reduces the rust-version to 1.85.0, given that we don't use a ## [0.42.0] - 2025-05-09 -The primary benefit of this release is introducing support for the [_about-to-be-stabilised-in-polkadot-sdk_](https://github.com/paritytech/polkadot-sdk/pull/8443) V16 metadata, and with that, support for calling Pallet View Functions on runtimes which will support this. Pallet View Functions are used much like Runtime APIs, except that they are declared in specific pallets and not declared at the runtime-wide level, allowing pallets to carry their own APIs with them. +The primary benefit of this release is introducing support for the [_about-to-be-stabilised-in-pezkuwi-sdk_](https://github.com/pezkuwichain/pezkuwi-sdk/pull/8443) V16 metadata, and with that, support for calling Pallet View Functions on runtimes which will support this. Pallet View Functions are used much like Runtime APIs, except that they are declared in specific pallets and not declared at the runtime-wide level, allowing pallets to carry their own APIs with them. ### Pallet View Functions @@ -196,36 +196,36 @@ let _is_call_allowed = api ### Updated `Config` trait -Another change to be aware of is that [our `Config` trait has been tweaked](https://github.com/paritytech/subxt/pull/1974). The `Hash` associated type is no longer needed, as it can be obtained via the `Hasher` associated type already, and `PolkadotConfig`/`SubstrateConfig` now set the hasher by default to be `DynamicHasher256`, which will (when V16 metadata is available for a runtime) automatically select between Keccak256 and BlakeTwo256 hashers depending on what the chain requires. +Another change to be aware of is that [our `Config` trait has been tweaked](https://github.com/pezkuwichain/subxt/pull/1974). The `Hash` associated type is no longer needed, as it can be obtained via the `Hasher` associated type already, and `PezkuwiConfig`/`BizinikiwConfig` now set the hasher by default to be `DynamicHasher256`, which will (when V16 metadata is available for a runtime) automatically select between Keccak256 and BlakeTwo256 hashers depending on what the chain requires. ### Other changes -We also [solidify our support for V1 archive RPCs](https://github.com/paritytech/subxt/pull/1977), [upgrade the codebase to Rust 2024 edition](https://github.com/paritytech/subxt/pull/2001), and a bunch of other changes, the full list of which is here: +We also [solidify our support for V1 archive RPCs](https://github.com/pezkuwichain/subxt/pull/1977), [upgrade the codebase to Rust 2024 edition](https://github.com/pezkuwichain/subxt/pull/2001), and a bunch of other changes, the full list of which is here: ### Added -- Support v16 metadata and use it by default if it's available ([#1999](https://github.com/paritytech/subxt/pull/1999)) -- Metadata V16: Implement support for Pallet View Functions ([#1981](https://github.com/paritytech/subxt/pull/1981)) -- Metadata V16: Be more dynamic over which hasher is used. ([#1974](https://github.com/paritytech/subxt/pull/1974)) +- Support v16 metadata and use it by default if it's available ([#1999](https://github.com/pezkuwichain/subxt/pull/1999)) +- Metadata V16: Implement support for Pallet View Functions ([#1981](https://github.com/pezkuwichain/subxt/pull/1981)) +- Metadata V16: Be more dynamic over which hasher is used. ([#1974](https://github.com/pezkuwichain/subxt/pull/1974)) ### Changed -- Update to 2024 edition ([#2001](https://github.com/paritytech/subxt/pull/2001)) -- Update Smoldot to latest version ([#1991](https://github.com/paritytech/subxt/pull/1991)) -- Update native test timeout to 45 mins ([#2002](https://github.com/paritytech/subxt/pull/2002)) -- chore(deps): tokio ^1.44.2 ([#1989](https://github.com/paritytech/subxt/pull/1989)) -- Add DefaultParams to allow more transaction extensions to be used when calling _default() methods ([#1979](https://github.com/paritytech/subxt/pull/1979)) -- Use wat instead of wabt to avoid CI cmake error (and use supported dep) ([#1980](https://github.com/paritytech/subxt/pull/1980)) -- Support v1 archive RPCs ([#1977](https://github.com/paritytech/subxt/pull/1977)) -- Support V16 metadata and refactor metadata code ([#1967](https://github.com/paritytech/subxt/pull/1967)) -- Allow submitting transactions ignoring follow events ([#1962](https://github.com/paritytech/subxt/pull/1962)) -- Improve error message regarding failure to extract metadata from WASM runtime ([#1961](https://github.com/paritytech/subxt/pull/1961)) -- Add docs for subxt-rpcs and fix example ([#1954](https://github.com/paritytech/subxt/pull/1954)) +- Update to 2024 edition ([#2001](https://github.com/pezkuwichain/subxt/pull/2001)) +- Update Smoldot to latest version ([#1991](https://github.com/pezkuwichain/subxt/pull/1991)) +- Update native test timeout to 45 mins ([#2002](https://github.com/pezkuwichain/subxt/pull/2002)) +- chore(deps): tokio ^1.44.2 ([#1989](https://github.com/pezkuwichain/subxt/pull/1989)) +- Add DefaultParams to allow more transaction extensions to be used when calling _default() methods ([#1979](https://github.com/pezkuwichain/subxt/pull/1979)) +- Use wat instead of wabt to avoid CI cmake error (and use supported dep) ([#1980](https://github.com/pezkuwichain/subxt/pull/1980)) +- Support v1 archive RPCs ([#1977](https://github.com/pezkuwichain/subxt/pull/1977)) +- Support V16 metadata and refactor metadata code ([#1967](https://github.com/pezkuwichain/subxt/pull/1967)) +- Allow submitting transactions ignoring follow events ([#1962](https://github.com/pezkuwichain/subxt/pull/1962)) +- Improve error message regarding failure to extract metadata from WASM runtime ([#1961](https://github.com/pezkuwichain/subxt/pull/1961)) +- Add docs for subxt-rpcs and fix example ([#1954](https://github.com/pezkuwichain/subxt/pull/1954)) ### Fixed -- Fix CLI storage diff ([#1958](https://github.com/paritytech/subxt/pull/1958)) -- chore: fix some typos ([#1997](https://github.com/paritytech/subxt/pull/1997)) +- Fix CLI storage diff ([#1958](https://github.com/pezkuwichain/subxt/pull/1958)) +- chore: fix some typos ([#1997](https://github.com/pezkuwichain/subxt/pull/1997)) ## [0.41.0] - 2025-03-10 @@ -263,7 +263,7 @@ while let Some(follow_event) = follow_subscription.next().await { ### Support creating V5 transactions. -Subxt has supported decoding V5 transactions from blocks since 0.38.0, but now it also supports constructing V5 transactions where allowed. Some naming changes have also taken place to align with the Substrate terminology now around transactions (see [#1931](https://github.com/paritytech/subxt/pull/1931) for more!). +Subxt has supported decoding V5 transactions from blocks since 0.38.0, but now it also supports constructing V5 transactions where allowed. Some naming changes have also taken place to align with the Bizinikiwi terminology now around transactions (see [#1931](https://github.com/pezkuwichain/subxt/pull/1931) for more!). The main changes here are: @@ -277,52 +277,52 @@ A full list of the relevant changes is as follows: ### Added -- Support constructing and submitting V5 transactions ([#1931](https://github.com/paritytech/subxt/pull/1931)) -- Add archive RPCs to subxt-rpcs ([#1940](https://github.com/paritytech/subxt/pull/1940)) -- Document generating interface from Runtime WASM and change feature to `runtime-wasm-path` ([#1936](https://github.com/paritytech/subxt/pull/1936)) -- Split RPCs into a separate crate ([#1910](https://github.com/paritytech/subxt/pull/1910)) +- Support constructing and submitting V5 transactions ([#1931](https://github.com/pezkuwichain/subxt/pull/1931)) +- Add archive RPCs to subxt-rpcs ([#1940](https://github.com/pezkuwichain/subxt/pull/1940)) +- Document generating interface from Runtime WASM and change feature to `runtime-wasm-path` ([#1936](https://github.com/pezkuwichain/subxt/pull/1936)) +- Split RPCs into a separate crate ([#1910](https://github.com/pezkuwichain/subxt/pull/1910)) ### Changed -- Wrap the subxt::events::Events type to avoid exposing subxt_core errors and types unnecessarily ([#1948](https://github.com/paritytech/subxt/pull/1948)) -- Allow transaction timeout in ChainheadBackend to be configured ([#1943](https://github.com/paritytech/subxt/pull/1943)) -- refactor: make ExtrinsicEvents::new public for external access ([#1933](https://github.com/paritytech/subxt/pull/1933)) +- Wrap the subxt::events::Events type to avoid exposing subxt_core errors and types unnecessarily ([#1948](https://github.com/pezkuwichain/subxt/pull/1948)) +- Allow transaction timeout in ChainheadBackend to be configured ([#1943](https://github.com/pezkuwichain/subxt/pull/1943)) +- refactor: make ExtrinsicEvents::new public for external access ([#1933](https://github.com/pezkuwichain/subxt/pull/1933)) ## [0.40.0] - 2025-03-06 -This release reverts the usage of the `polkadot-sdk` umbrella crate, which was causing issues such as an increased number of dependencies in Cargo.lock. For more details, see [#1925](https://github.com/paritytech/subxt/issues/1925). +This release reverts the usage of the `pezkuwi-sdk` umbrella crate, which was causing issues such as an increased number of dependencies in Cargo.lock. For more details, see [#1925](https://github.com/pezkuwichain/subxt/issues/1925). -Additionally, this update bumps the Polkadot SDK-related dependencies to their latest versions, ensuring compatibility and stability. +Additionally, this update bumps the Pezkuwi SDK-related dependencies to their latest versions, ensuring compatibility and stability. ### Fixed -- Remove usage of polkadot-sdk umbrella crate ([#1926](https://github.com/paritytech/subxt/pull/1926)) +- Remove usage of pezkuwi-sdk umbrella crate ([#1926](https://github.com/pezkuwichain/subxt/pull/1926)) -**Full Changelog**: https://github.com/paritytech/subxt/compare/v0.39.0...v0.40.0 +**Full Changelog**: https://github.com/pezkuwichain/subxt/compare/v0.39.0...v0.40.0 ## [0.39.0] - 2025-02-04 -This release is mostly bug fixes and changes. The only change that should be a breaking change is removing the `substrate-compat` feature flag (see [#1850](https://github.com/paritytech/subxt/pull/1850)), which we'll go into more detail about. +This release is mostly bug fixes and changes. The only change that should be a breaking change is removing the `bizinikiwi-compat` feature flag (see [#1850](https://github.com/pezkuwichain/subxt/pull/1850)), which we'll go into more detail about. -### The `substrate-compat` feature flag has been removed. +### The `bizinikiwi-compat` feature flag has been removed. -The `substrate-compat` feature flag essentially provided: -1. An implementation of the `subxt::config::Header` trait for anything implementing `sp_runtime::traits::Header` ([here](https://github.com/paritytech/subxt/pull/1850/files#diff-26ab583bc154fdb10c63d7cc90045a6026ad6497efe790fe257b60ceb1a15ea7L137)). -2. Same for `subxt::config::Hasher` and anything implementing `sp_runtime::traits::Hasher` ([here](https://github.com/paritytech/subxt/pull/1850/files#diff-26ab583bc154fdb10c63d7cc90045a6026ad6497efe790fe257b60ceb1a15ea7L149)). -3. A `subxt_core::tx::PairSigner` type which could be given something implementing `sp_core::Pair` and then be used to sign transactions ([here](https://github.com/paritytech/subxt/pull/1850/files#diff-fe5469ea5a4788ffac7607c8d25f9d17c232c703f2d38ffe593cb6e87662a0afL46)). -4. From impls for `sp_runtime::AccountId32` and related for `subxt::utils::AccountId32` ([here](https://github.com/paritytech/subxt/pull/1850/files#diff-61f12204f1b6828f829ea82da72826674e8f6c35943795258860b25ce59fc692L169)). -5. Likewise for `sp_runtime::MultiAddress` and `subxt::utils::MultiAddress` ([here](https://github.com/paritytech/subxt/pull/1850/files#diff-956118f361c3e5fbdd6974d6f23f40fd0050714cd6bfdfe0f6624d883a2d0c7cL53)). -6. Likewise for `sp_runtime::MultiSignature` and `subxt::utils::MultiSignature` ([here](https://github.com/paritytech/subxt/pull/1850/files#diff-590233f1bae2f8031dfb010e9c35ba04bb700539d8b067daa7477a0a3f14e38dL29)). +The `bizinikiwi-compat` feature flag essentially provided: +1. An implementation of the `subxt::config::Header` trait for anything implementing `sp_runtime::traits::Header` ([here](https://github.com/pezkuwichain/subxt/pull/1850/files#diff-26ab583bc154fdb10c63d7cc90045a6026ad6497efe790fe257b60ceb1a15ea7L137)). +2. Same for `subxt::config::Hasher` and anything implementing `sp_runtime::traits::Hasher` ([here](https://github.com/pezkuwichain/subxt/pull/1850/files#diff-26ab583bc154fdb10c63d7cc90045a6026ad6497efe790fe257b60ceb1a15ea7L149)). +3. A `subxt_core::tx::PairSigner` type which could be given something implementing `sp_core::Pair` and then be used to sign transactions ([here](https://github.com/pezkuwichain/subxt/pull/1850/files#diff-fe5469ea5a4788ffac7607c8d25f9d17c232c703f2d38ffe593cb6e87662a0afL46)). +4. From impls for `sp_runtime::AccountId32` and related for `subxt::utils::AccountId32` ([here](https://github.com/pezkuwichain/subxt/pull/1850/files#diff-61f12204f1b6828f829ea82da72826674e8f6c35943795258860b25ce59fc692L169)). +5. Likewise for `sp_runtime::MultiAddress` and `subxt::utils::MultiAddress` ([here](https://github.com/pezkuwichain/subxt/pull/1850/files#diff-956118f361c3e5fbdd6974d6f23f40fd0050714cd6bfdfe0f6624d883a2d0c7cL53)). +6. Likewise for `sp_runtime::MultiSignature` and `subxt::utils::MultiSignature` ([here](https://github.com/pezkuwichain/subxt/pull/1850/files#diff-590233f1bae2f8031dfb010e9c35ba04bb700539d8b067daa7477a0a3f14e38dL29)). -While useful, providing these features in Subxt is almost impossible to maintain: we can only support a single version of `sp_runtime`/`sp_core` at a time, but many versions are in use in the wild. This led to various issues regarding the mismatch between `sp_*` crates in use and a given version of Subxt. More generally, the goal of Subxt is to be independent from any specific version of Substrate, and communicate via the exposed RPC APIs in order to work across any compatible Substrate version (or indeed, alternative implementations that follow things like [the RPC spec](https://github.com/paritytech/json-rpc-interface-spec)). +While useful, providing these features in Subxt is almost impossible to maintain: we can only support a single version of `sp_runtime`/`sp_core` at a time, but many versions are in use in the wild. This led to various issues regarding the mismatch between `sp_*` crates in use and a given version of Subxt. More generally, the goal of Subxt is to be independent from any specific version of Bizinikiwi, and communicate via the exposed RPC APIs in order to work across any compatible Bizinikiwi version (or indeed, alternative implementations that follow things like [the RPC spec](https://github.com/pezkuwichain/json-rpc-interface-spec)). As a result, we've taken the decision to remove this compatibility layer from Subxt itself. To migrate away from this feature, we suggest: -1. Using the example [here](https://github.com/paritytech/subxt/blob/d924ece39a5cb369ba5ccde3dc160b5ee006271b/subxt/examples/substrate_compat_signer.rs) to see how to use a Substrate signer to sign Subxt transactions. +1. Using the example [here](https://github.com/pezkuwichain/subxt/blob/d924ece39a5cb369ba5ccde3dc160b5ee006271b/subxt/examples/bizinikiwi_compat_signer.rs) to see how to use a Bizinikiwi signer to sign Subxt transactions. 2. Looking at `subxt_signer` instead, if it's a viable alternative in your case. -3. Following the "here" links above to see what impls were removed. Impls can generally be recreated as needed using wrapper types which allow converting between Substrate and Subxt types/traits, for instance: +3. Following the "here" links above to see what impls were removed. Impls can generally be recreated as needed using wrapper types which allow converting between Bizinikiwi and Subxt types/traits, for instance: ```rust -// Wrap a substrate header type in this to impl the subxt Header trait: +// Wrap a bizinikiwi header type in this to impl the subxt Header trait: struct SubxtHeader(pub T); // This basically copies the code removed from Subxt, but on a wrapper type: @@ -340,85 +340,85 @@ where } ``` -The hope is that this pattern is applicable to any such types that you find useful to share between Substrate and Subxt code. Please raise an issue if you can't find a solution in your case, and we'll endeavour to help! +The hope is that this pattern is applicable to any such types that you find useful to share between Bizinikiwi and Subxt code. Please raise an issue if you can't find a solution in your case, and we'll endeavour to help! -The result of this is that your code will work against whichever Substrate crate versions you are using, at the cost of this code no longer being included behind the `substrate-compat` feature flag. +The result of this is that your code will work against whichever Bizinikiwi crate versions you are using, at the cost of this code no longer being included behind the `bizinikiwi-compat` feature flag. A full list of relevant changes and fixes (nothing was added in this release) is as follows: ### Changed -- remove substrate compat ([#1850](https://github.com/paritytech/subxt/pull/1850)) -- migrate custom error trait impls to `thiserror` ([#1856](https://github.com/paritytech/subxt/pull/1856)) -- re-export `jsonrpsee` in `subxt::ext` ([#1843](https://github.com/paritytech/subxt/pull/1843)) +- remove bizinikiwi compat ([#1850](https://github.com/pezkuwichain/subxt/pull/1850)) +- migrate custom error trait impls to `thiserror` ([#1856](https://github.com/pezkuwichain/subxt/pull/1856)) +- re-export `jsonrpsee` in `subxt::ext` ([#1843](https://github.com/pezkuwichain/subxt/pull/1843)) ### Fixed -- don't double hash: use the same hash in ExtrinsicDetails and ExtrinsicDetails ([#1917](https://github.com/paritytech/subxt/pull/1917)) -- fix and test sr25519 signing in nostd ([#1872](https://github.com/paritytech/subxt/pull/1872)) -- preserve custom metadata when converting between Subxt metadata and frame_metadata ([#1914](https://github.com/paritytech/subxt/pull/1914)) -- fix: don't wrap rpc error in DisconnectedWillReconnect in reconnecting rpc client ([#1904](https://github.com/paritytech/subxt/pull/1904)) -- fix: substrate runner, support new libp2p addr log ([#1892](https://github.com/paritytech/subxt/pull/1892)) -- update Artifacts (auto-generated) ([#1874](https://github.com/paritytech/subxt/pull/1874)) -- bump frame-decode and frame-metadata to latest ([#1870](https://github.com/paritytech/subxt/pull/1870)) -- fix unstable-light-client + ChainHeadBackend tx events ([#1865](https://github.com/paritytech/subxt/pull/1865)) -- when native feature is enabled, we need polkadot-sdk/std for eg examples to work ([#1864](https://github.com/paritytech/subxt/pull/1864)) -- load latest metadata version from Wasm blobs. ([#1859](https://github.com/paritytech/subxt/pull/1859)) -- minor fix - Yew example ([#1852](https://github.com/paritytech/subxt/pull/1852)) -- update the release notes to work for current releases ([#1842](https://github.com/paritytech/subxt/pull/1842)) +- don't double hash: use the same hash in ExtrinsicDetails and ExtrinsicDetails ([#1917](https://github.com/pezkuwichain/subxt/pull/1917)) +- fix and test sr25519 signing in nostd ([#1872](https://github.com/pezkuwichain/subxt/pull/1872)) +- preserve custom metadata when converting between Subxt metadata and frame_metadata ([#1914](https://github.com/pezkuwichain/subxt/pull/1914)) +- fix: don't wrap rpc error in DisconnectedWillReconnect in reconnecting rpc client ([#1904](https://github.com/pezkuwichain/subxt/pull/1904)) +- fix: bizinikiwi runner, support new libp2p addr log ([#1892](https://github.com/pezkuwichain/subxt/pull/1892)) +- update Artifacts (auto-generated) ([#1874](https://github.com/pezkuwichain/subxt/pull/1874)) +- bump frame-decode and frame-metadata to latest ([#1870](https://github.com/pezkuwichain/subxt/pull/1870)) +- fix unstable-light-client + ChainHeadBackend tx events ([#1865](https://github.com/pezkuwichain/subxt/pull/1865)) +- when native feature is enabled, we need pezkuwi-sdk/std for eg examples to work ([#1864](https://github.com/pezkuwichain/subxt/pull/1864)) +- load latest metadata version from Wasm blobs. ([#1859](https://github.com/pezkuwichain/subxt/pull/1859)) +- minor fix - Yew example ([#1852](https://github.com/pezkuwichain/subxt/pull/1852)) +- update the release notes to work for current releases ([#1842](https://github.com/pezkuwichain/subxt/pull/1842)) ## [0.38.0] - 2024-10-24 This release doesn't introduce any substantial breaking changes and focuses primarily on incremental improvements, testing and bug fixes. A few of the highlights include: -- [#1785](https://github.com/paritytech/subxt/pull/1785): Support decoding V5 extrinsics in blocks (currently Subxt will still submit V4 extrinsics). This also unifies our extrinsic decoding logic into one place. -- [#1802](https://github.com/paritytech/subxt/pull/1802): Stabilizing the `subxt::backend::unstable::UnstableBackend` (it's now called `subxt::backend::chain_head::ChainHeadBackend`). This backend can be used to interact with the modern `chainHead` RPC methods exposed by Smoldot and compliant RPC nodes. See [this example](https://github.com/paritytech/subxt/blob/master/subxt/examples/setup_rpc_chainhead_backend.rs). -- [#1803](https://github.com/paritytech/subxt/pull/1803): Stabilizing the `reconnecting-rpc-client`. See [this example](https://github.com/paritytech/subxt/blob/master/subxt/examples/setup_reconnecting_rpc_client.rs). -- [#1720](https://github.com/paritytech/subxt/pull/1720): A nice little QoL improvement if you have the raw runtime WASM and would like to generate an interface directly from that (ie with `#[subx(runtime_path = "path/to/runtime.wasm")]`). -- [#1661](https://github.com/paritytech/subxt/pull/1661): Support loading keys directly from the PolkadotJS JSON to be used in Subxt. -- [#1638](https://github.com/paritytech/subxt/pull/1638): Improve support for Eth style chains by defining a 20-byte account ID type directly in `subxt-core`. See [this example](https://github.com/paritytech/subxt/blob/master/subxt/examples/tx_basic_frontier.rs). +- [#1785](https://github.com/pezkuwichain/subxt/pull/1785): Support decoding V5 extrinsics in blocks (currently Subxt will still submit V4 extrinsics). This also unifies our extrinsic decoding logic into one place. +- [#1802](https://github.com/pezkuwichain/subxt/pull/1802): Stabilizing the `subxt::backend::unstable::UnstableBackend` (it's now called `subxt::backend::chain_head::ChainHeadBackend`). This backend can be used to interact with the modern `chainHead` RPC methods exposed by Smoldot and compliant RPC nodes. See [this example](https://github.com/pezkuwichain/subxt/blob/master/subxt/examples/setup_rpc_chainhead_backend.rs). +- [#1803](https://github.com/pezkuwichain/subxt/pull/1803): Stabilizing the `reconnecting-rpc-client`. See [this example](https://github.com/pezkuwichain/subxt/blob/master/subxt/examples/setup_reconnecting_rpc_client.rs). +- [#1720](https://github.com/pezkuwichain/subxt/pull/1720): A nice little QoL improvement if you have the raw runtime WASM and would like to generate an interface directly from that (ie with `#[subx(runtime_path = "path/to/runtime.wasm")]`). +- [#1661](https://github.com/pezkuwichain/subxt/pull/1661): Support loading keys directly from the PezkuwiJS JSON to be used in Subxt. +- [#1638](https://github.com/pezkuwichain/subxt/pull/1638): Improve support for Eth style chains by defining a 20-byte account ID type directly in `subxt-core`. See [this example](https://github.com/pezkuwichain/subxt/blob/master/subxt/examples/tx_basic_frontier.rs). The notable changes in this release are as follows: ### Added -- add reconnecting tests for unstable_backend ([#1765](https://github.com/paritytech/subxt/pull/1765)) -- add support for generating metadata from runtime wasm files ([#1720](https://github.com/paritytech/subxt/pull/1720)) -- support loading keys from Polkadot-JS accounts ([#1661](https://github.com/paritytech/subxt/pull/1661)) -- allow tx payloads to be boxed ([#1690](https://github.com/paritytech/subxt/pull/1690)) -- add hash method to ExtrinsicDetails ([#1676](https://github.com/paritytech/subxt/pull/1676)) -- expose `secret_key` method for `ecdsa::Keypair` and `eth::Keypair` ([#1628](https://github.com/paritytech/subxt/pull/1628)) -- add 20-byte account id to subxt_core ([#1638](https://github.com/paritytech/subxt/pull/1638)) +- add reconnecting tests for unstable_backend ([#1765](https://github.com/pezkuwichain/subxt/pull/1765)) +- add support for generating metadata from runtime wasm files ([#1720](https://github.com/pezkuwichain/subxt/pull/1720)) +- support loading keys from Pezkuwi-JS accounts ([#1661](https://github.com/pezkuwichain/subxt/pull/1661)) +- allow tx payloads to be boxed ([#1690](https://github.com/pezkuwichain/subxt/pull/1690)) +- add hash method to ExtrinsicDetails ([#1676](https://github.com/pezkuwichain/subxt/pull/1676)) +- expose `secret_key` method for `ecdsa::Keypair` and `eth::Keypair` ([#1628](https://github.com/pezkuwichain/subxt/pull/1628)) +- add 20-byte account id to subxt_core ([#1638](https://github.com/pezkuwichain/subxt/pull/1638)) ### Changed -- make it clearer which extrinsic failed to decode ([#1835](https://github.com/paritytech/subxt/pull/1835)) -- chore(deps): bump frame-metadata from 16 to 17 ([#1836](https://github.com/paritytech/subxt/pull/1836)) -- chore(deps): bump `scale family crates`, `primitive-types` and `impl-serde` ([#1832](https://github.com/paritytech/subxt/pull/1832)) -- chore(deps): replace `instant` with `web-time` ([#1830](https://github.com/paritytech/subxt/pull/1830)) -- deps: use polkadot-sdk umbrella crate ([#1786](https://github.com/paritytech/subxt/pull/1786)) -- stabilize reconnecting-rpc-client ([#1803](https://github.com/paritytech/subxt/pull/1803)) -- stabilize chainhead backend ([#1802](https://github.com/paritytech/subxt/pull/1802)) -- derive serialize on more types ([#1797](https://github.com/paritytech/subxt/pull/1797)) -- use frame-decode for core extrinsic decode logic (including v5 support) ([#1785](https://github.com/paritytech/subxt/pull/1785)) -- reconn-rpc-client: parse URL before connecting ([#1789](https://github.com/paritytech/subxt/pull/1789)) -- update proc_macro_error to proc_macro_error2 ([#1767](https://github.com/paritytech/subxt/pull/1767)) -- chore(deps): update Smoldot to the latest version ([#1400](https://github.com/paritytech/subxt/pull/1400)) -- remove unneeded `?Sized` bound and replace never type with `()` ([#1758](https://github.com/paritytech/subxt/pull/1758)) -- improve test coverage for legacy `Backend` impl ([#1751](https://github.com/paritytech/subxt/pull/1751)) -- add integration tests for `unstable-reconnecting-rpc-client` ([#1711](https://github.com/paritytech/subxt/pull/1711)) -- replace `reconnecting-jsonrpsee-ws-client` with `subxt-reconnecting-rpc-client` ([#1705](https://github.com/paritytech/subxt/pull/1705)) -- allow PartialExtrinsic to be held across await points ([#1658](https://github.com/paritytech/subxt/pull/1658)) -- chore(deps): bump jsonrpsee from 0.22.5 to 0.23.1 ([#1656](https://github.com/paritytech/subxt/pull/1656)) +- make it clearer which extrinsic failed to decode ([#1835](https://github.com/pezkuwichain/subxt/pull/1835)) +- chore(deps): bump frame-metadata from 16 to 17 ([#1836](https://github.com/pezkuwichain/subxt/pull/1836)) +- chore(deps): bump `scale family crates`, `primitive-types` and `impl-serde` ([#1832](https://github.com/pezkuwichain/subxt/pull/1832)) +- chore(deps): replace `instant` with `web-time` ([#1830](https://github.com/pezkuwichain/subxt/pull/1830)) +- deps: use pezkuwi-sdk umbrella crate ([#1786](https://github.com/pezkuwichain/subxt/pull/1786)) +- stabilize reconnecting-rpc-client ([#1803](https://github.com/pezkuwichain/subxt/pull/1803)) +- stabilize chainhead backend ([#1802](https://github.com/pezkuwichain/subxt/pull/1802)) +- derive serialize on more types ([#1797](https://github.com/pezkuwichain/subxt/pull/1797)) +- use frame-decode for core extrinsic decode logic (including v5 support) ([#1785](https://github.com/pezkuwichain/subxt/pull/1785)) +- reconn-rpc-client: parse URL before connecting ([#1789](https://github.com/pezkuwichain/subxt/pull/1789)) +- update proc_macro_error to proc_macro_error2 ([#1767](https://github.com/pezkuwichain/subxt/pull/1767)) +- chore(deps): update Smoldot to the latest version ([#1400](https://github.com/pezkuwichain/subxt/pull/1400)) +- remove unneeded `?Sized` bound and replace never type with `()` ([#1758](https://github.com/pezkuwichain/subxt/pull/1758)) +- improve test coverage for legacy `Backend` impl ([#1751](https://github.com/pezkuwichain/subxt/pull/1751)) +- add integration tests for `unstable-reconnecting-rpc-client` ([#1711](https://github.com/pezkuwichain/subxt/pull/1711)) +- replace `reconnecting-jsonrpsee-ws-client` with `subxt-reconnecting-rpc-client` ([#1705](https://github.com/pezkuwichain/subxt/pull/1705)) +- allow PartialExtrinsic to be held across await points ([#1658](https://github.com/pezkuwichain/subxt/pull/1658)) +- chore(deps): bump jsonrpsee from 0.22.5 to 0.23.1 ([#1656](https://github.com/pezkuwichain/subxt/pull/1656)) ### Fixed -- fix stripping metadata in the case where enums like RuntimeCall are handed back ([#1774](https://github.com/paritytech/subxt/pull/1774)) -- fix: `defalt-feature` -> `default-features` Cargo.toml ([#1828](https://github.com/paritytech/subxt/pull/1828)) -- avoid hang by notifying subscribers when the backend is closed ([#1817](https://github.com/paritytech/subxt/pull/1817)) -- fix: error message on rpc errors ([#1804](https://github.com/paritytech/subxt/pull/1804)) -- docs: fix typos ([#1776](https://github.com/paritytech/subxt/pull/1776)) -- examples: fix reconnecting logging target ([#1733](https://github.com/paritytech/subxt/pull/1733)) -- docs: fix spelling issues ([#1699](https://github.com/paritytech/subxt/pull/1699)) -- chore: fix some comments ([#1697](https://github.com/paritytech/subxt/pull/1697)) -- codegen: Fix decode error by adding `#[codec(dumb_trait_bound)]` ([#1630](https://github.com/paritytech/subxt/pull/1630)) +- fix stripping metadata in the case where enums like RuntimeCall are handed back ([#1774](https://github.com/pezkuwichain/subxt/pull/1774)) +- fix: `defalt-feature` -> `default-features` Cargo.toml ([#1828](https://github.com/pezkuwichain/subxt/pull/1828)) +- avoid hang by notifying subscribers when the backend is closed ([#1817](https://github.com/pezkuwichain/subxt/pull/1817)) +- fix: error message on rpc errors ([#1804](https://github.com/pezkuwichain/subxt/pull/1804)) +- docs: fix typos ([#1776](https://github.com/pezkuwichain/subxt/pull/1776)) +- examples: fix reconnecting logging target ([#1733](https://github.com/pezkuwichain/subxt/pull/1733)) +- docs: fix spelling issues ([#1699](https://github.com/pezkuwichain/subxt/pull/1699)) +- chore: fix some comments ([#1697](https://github.com/pezkuwichain/subxt/pull/1697)) +- codegen: Fix decode error by adding `#[codec(dumb_trait_bound)]` ([#1630](https://github.com/pezkuwichain/subxt/pull/1630)) ## [0.37.0] - 2024-05-28 @@ -427,12 +427,12 @@ where the type de-duplication was too aggressive and lots of the same type such plenty of different types such as BoundedVec1, BoundedVec2, .. BoundedVec. ### Added -- Implemented `sign_prehashed` for `ecdsa::Keypair` and `eth::Keypair` ([#1598](https://github.com/paritytech/subxt/pull/1598)) -- Add a basic version of the CheckMetadataHash signed extension ([#1590](https://github.com/paritytech/subxt/pull/1590)) +- Implemented `sign_prehashed` for `ecdsa::Keypair` and `eth::Keypair` ([#1598](https://github.com/pezkuwichain/subxt/pull/1598)) +- Add a basic version of the CheckMetadataHash signed extension ([#1590](https://github.com/pezkuwichain/subxt/pull/1590)) ## Changed -- Remove `derive_more` ([#1600](https://github.com/paritytech/subxt/pull/1600)) -- chore(deps): bump scale-typegen v0.8.0 ([#1615](https://github.com/paritytech/subxt/pull/1615)) +- Remove `derive_more` ([#1600](https://github.com/pezkuwichain/subxt/pull/1600)) +- chore(deps): bump scale-typegen v0.8.0 ([#1615](https://github.com/pezkuwichain/subxt/pull/1615)) ## [0.36.1] - 2024-05-28 [YANKED] @@ -442,7 +442,7 @@ Yanked because the typegen changed, it's a breaking change. This release adds a few new features, which I'll go over below in more detail. -### [`subxt-core`](https://github.com/paritytech/subxt/pull/1508) +### [`subxt-core`](https://github.com/pezkuwichain/subxt/pull/1508) We now have a brand new `subxt-core` crate, which is `#[no-std]` compatible, and contains a lot of the core logic that is needed in Subxt. Using this crate, you can do things in a no-std environment like: @@ -459,7 +459,7 @@ Check out [the docs](https://docs.rs/subxt-core/latest/subxt_core/) for more, in A breaking change that comes from migrating a bunch of logic to this new crate is that the `ExtrinsicParams` trait is now handed `&ClientState` rather than a `Client`. `ClientState` is just a concrete struct containing the state that one needs for things like signed extensions. -### [Support for reconnecting](https://github.com/paritytech/subxt/pull/1505) +### [Support for reconnecting](https://github.com/pezkuwichain/subxt/pull/1505) We've baked in a bunch of support for automatically reconnecting after a connection loss into Subxt. This comes in three parts: 1. An RPC client that is capable of reconnecting. This is gated behind the `unstable-reconnecting-rpc-client` feature flag at the moment, and @@ -472,11 +472,11 @@ We'd love feedback on this reconnecting work! To try it out, enable the `unstabl use std::time::Duration; use futures::StreamExt; use subxt::backend::rpc::reconnecting_rpc_client::{Client, ExponentialBackoff}; -use subxt::{OnlineClient, PolkadotConfig}; +use subxt::{OnlineClient, PezkuwiConfig}; // Generate an interface that we can use from the node's metadata. -#[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { @@ -494,20 +494,20 @@ async fn main() -> Result<(), Box> { .await?; // Use this reconnecting client when instantiating a Subxt client: - let api: OnlineClient = OnlineClient::from_rpc_client(rpc.clone()).await?; + let api: OnlineClient = OnlineClient::from_rpc_client(rpc.clone()).await?; ``` -Check out the full example [here](https://github.com/paritytech/subxt/blob/64d3aae521112c8bc7366385c54a9340185d81ac/subxt/examples/setup_reconnecting_rpc_client.rs). +Check out the full example [here](https://github.com/pezkuwichain/subxt/blob/64d3aae521112c8bc7366385c54a9340185d81ac/subxt/examples/setup_reconnecting_rpc_client.rs). -### [Better Ethereum support](https://github.com/paritytech/subxt/pull/1501) +### [Better Ethereum support](https://github.com/pezkuwichain/subxt/pull/1501) We've added built-in support for Ethereum style chains (eg Frontier and Moonbeam) in `subxt-signer`, making it easier to sign transactions for these chains now. -Check out a full example [here](https://github.com/paritytech/subxt/blob/327b70ac94c4d925c8529a1e301d596d7db181ea/subxt/examples/tx_basic_frontier.rs). +Check out a full example [here](https://github.com/pezkuwichain/subxt/blob/327b70ac94c4d925c8529a1e301d596d7db181ea/subxt/examples/tx_basic_frontier.rs). We plan to improve on this in the future, baking in better Ethereum support if possible so that it's as seamless to use `AccountId20` as it is `AccountId32`. -### Stabilizing the new V2 RPCs ([#1540](https://github.com/paritytech/subxt/pull/1540), [#1539](https://github.com/paritytech/subxt/pull/1539), [#1538](https://github.com/paritytech/subxt/pull/1538)) +### Stabilizing the new V2 RPCs ([#1540](https://github.com/pezkuwichain/subxt/pull/1540), [#1539](https://github.com/pezkuwichain/subxt/pull/1539), [#1538](https://github.com/pezkuwichain/subxt/pull/1538)) A bunch of the new RPCs are now stable in the spec, and have consequently been stabilized here, bringing the `unstable-backend` a step closer to being stabilized itself! We'll probably first remove the feature flag and next make it the default backend, in upcoming releases. @@ -515,74 +515,74 @@ All of the notable changes in this release are as follows: ### Added -- Add `frontier/ethereum` example ([#1557](https://github.com/paritytech/subxt/pull/1557)) -- Rpc: add full support reconnecting rpc client ([#1505](https://github.com/paritytech/subxt/pull/1505)) -- Signer: ethereum implementation ([#1501](https://github.com/paritytech/subxt/pull/1501)) -- `subxt-core` crate ([#1466](https://github.com/paritytech/subxt/pull/1466)) +- Add `frontier/ethereum` example ([#1557](https://github.com/pezkuwichain/subxt/pull/1557)) +- Rpc: add full support reconnecting rpc client ([#1505](https://github.com/pezkuwichain/subxt/pull/1505)) +- Signer: ethereum implementation ([#1501](https://github.com/pezkuwichain/subxt/pull/1501)) +- `subxt-core` crate ([#1466](https://github.com/pezkuwichain/subxt/pull/1466)) ### Changed -- Bump scale-decode and related deps to latest ([#1583](https://github.com/paritytech/subxt/pull/1583)) -- Update Artifacts (auto-generated) ([#1577](https://github.com/paritytech/subxt/pull/1577)) -- Update deps to use `scale-type-resolver` 0.2 ([#1565](https://github.com/paritytech/subxt/pull/1565)) -- Stabilize transactionBroadcast methods ([#1540](https://github.com/paritytech/subxt/pull/1540)) -- Stabilize transactionWatch methods ([#1539](https://github.com/paritytech/subxt/pull/1539)) -- Stabilize chainHead methods ([#1538](https://github.com/paritytech/subxt/pull/1538)) -- Rename traits to remove T suffix ([#1535](https://github.com/paritytech/subxt/pull/1535)) -- Add Debug/Clone/etc for common Configs for convenience ([#1542](https://github.com/paritytech/subxt/pull/1542)) -- Unstable_rpc: Add transactionBroadcast and transactionStop ([#1497](https://github.com/paritytech/subxt/pull/1497)) +- Bump scale-decode and related deps to latest ([#1583](https://github.com/pezkuwichain/subxt/pull/1583)) +- Update Artifacts (auto-generated) ([#1577](https://github.com/pezkuwichain/subxt/pull/1577)) +- Update deps to use `scale-type-resolver` 0.2 ([#1565](https://github.com/pezkuwichain/subxt/pull/1565)) +- Stabilize transactionBroadcast methods ([#1540](https://github.com/pezkuwichain/subxt/pull/1540)) +- Stabilize transactionWatch methods ([#1539](https://github.com/pezkuwichain/subxt/pull/1539)) +- Stabilize chainHead methods ([#1538](https://github.com/pezkuwichain/subxt/pull/1538)) +- Rename traits to remove T suffix ([#1535](https://github.com/pezkuwichain/subxt/pull/1535)) +- Add Debug/Clone/etc for common Configs for convenience ([#1542](https://github.com/pezkuwichain/subxt/pull/1542)) +- Unstable_rpc: Add transactionBroadcast and transactionStop ([#1497](https://github.com/pezkuwichain/subxt/pull/1497)) ### Fixed -- metadata: Fix cargo clippy ([#1574](https://github.com/paritytech/subxt/pull/1574)) -- Fixed import in `subxt-signer::eth` ([#1553](https://github.com/paritytech/subxt/pull/1553)) -- chore: fix typos and link broken ([#1541](https://github.com/paritytech/subxt/pull/1541)) -- Make subxt-core ready for publishing ([#1508](https://github.com/paritytech/subxt/pull/1508)) -- Remove dupe storage item if we get one back, to be compatible with Smoldot + legacy RPCs ([#1534](https://github.com/paritytech/subxt/pull/1534)) -- fix: substrate runner libp2p port ([#1533](https://github.com/paritytech/subxt/pull/1533)) -- Swap BinaryHeap for Vec to avoid Ord constraint issue ([#1523](https://github.com/paritytech/subxt/pull/1523)) -- storage_type: Strip key proper hash and entry bytes (32 instead of 16) ([#1522](https://github.com/paritytech/subxt/pull/1522)) -- testing: Prepare light client testing with substrate binary and add subxt-test macro ([#1507](https://github.com/paritytech/subxt/pull/1507)) +- metadata: Fix cargo clippy ([#1574](https://github.com/pezkuwichain/subxt/pull/1574)) +- Fixed import in `subxt-signer::eth` ([#1553](https://github.com/pezkuwichain/subxt/pull/1553)) +- chore: fix typos and link broken ([#1541](https://github.com/pezkuwichain/subxt/pull/1541)) +- Make subxt-core ready for publishing ([#1508](https://github.com/pezkuwichain/subxt/pull/1508)) +- Remove dupe storage item if we get one back, to be compatible with Smoldot + legacy RPCs ([#1534](https://github.com/pezkuwichain/subxt/pull/1534)) +- fix: bizinikiwi runner libp2p port ([#1533](https://github.com/pezkuwichain/subxt/pull/1533)) +- Swap BinaryHeap for Vec to avoid Ord constraint issue ([#1523](https://github.com/pezkuwichain/subxt/pull/1523)) +- storage_type: Strip key proper hash and entry bytes (32 instead of 16) ([#1522](https://github.com/pezkuwichain/subxt/pull/1522)) +- testing: Prepare light client testing with bizinikiwi binary and add subxt-test macro ([#1507](https://github.com/pezkuwichain/subxt/pull/1507)) ## [0.35.0] - 2024-03-21 This release contains several fixes, adds `no_std` support to a couple of crates (`subxt-signer` and `subxt-metadata`) and introduces a few quality of life improvements, which I'll quickly cover: -### Reworked light client ([#1475](https://github.com/paritytech/subxt/pull/1475)) +### Reworked light client ([#1475](https://github.com/pezkuwichain/subxt/pull/1475)) This PR reworks the light client interface. The "basic" usage of connecting to a parachain now looks like this: ```rust -#[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} use subxt::lightclient::LightClient; -// Instantiate a light client with the Polkadot relay chain given its chain spec. -let (lightclient, polkadot_rpc) = LightClient::relay_chain(POLKADOT_SPEC)?; +// Instantiate a light client with the Pezkuwi relay chain given its chain spec. +let (lightclient, pezkuwi_rpc) = LightClient::relay_chain(POLKADOT_SPEC)?; // Connect the light client to some parachain by giving a chain spec for it. let asset_hub_rpc = lightclient.parachain(ASSET_HUB_SPEC)?; // Now, we can create Subxt clients from these Smoldot backed RPC clients: -let polkadot_api = OnlineClient::::from_rpc_client(polkadot_rpc).await?; -let asset_hub_api = OnlineClient::::from_rpc_client(asset_hub_rpc).await?; +let pezkuwi_api = OnlineClient::::from_rpc_client(pezkuwi_rpc).await?; +let asset_hub_api = OnlineClient::::from_rpc_client(asset_hub_rpc).await?; ``` This interface mirrors the requirement that we must connect to a relay chain before we can connect to a parachain. It also moves the light client specific logic into an `RpcClientT` implementation, rather than exposing it as a `subxt::client::LightClient`. -### Typed Storage Keys ([#1419](https://github.com/paritytech/subxt/pull/1419)) +### Typed Storage Keys ([#1419](https://github.com/pezkuwichain/subxt/pull/1419)) This PR changes the storage interface so that, where possible, we now also decode the storage keys as well as the values when iterating over storage entries: ```rust -#[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} -// Create a new API client, configured to talk to Polkadot nodes. -let api = OnlineClient::::new().await?; +// Create a new API client, configured to talk to Pezkuwi nodes. +let api = OnlineClient::::new().await?; // Build a storage query to iterate over account information. -let storage_query = polkadot::storage().system().account_iter(); +let storage_query = pezkuwi::storage().system().account_iter(); // Get back an iterator of results (here, we are fetching 10 items at // a time from the node, but we always iterate over one at a time). @@ -600,7 +600,7 @@ while let Some(Ok(kv)) = results.next().await { When using the static interface, keys come back as a tuple of values corresponding to the different hashers used in constructing the key. When using a dynamic interface, keys will be encoded/decoded from the type given so long as it implements `subxt::storage::StorageKey`, eg `Vec`. -### Extrinsic Params Refinement ([#1439](https://github.com/paritytech/subxt/pull/1439)) +### Extrinsic Params Refinement ([#1439](https://github.com/pezkuwichain/subxt/pull/1439)) Prior to this PR, one could configure extrinsic signed extensions by providing some params like so: @@ -627,42 +627,42 @@ For a full list of changes, please see the following: ### Added -- Reworked light client ([#1475](https://github.com/paritytech/subxt/pull/1475)) -- `no_std` compatibility for `subxt-signer` ([#1477](https://github.com/paritytech/subxt/pull/1477)) -- Typed Storage Keys ([#1419](https://github.com/paritytech/subxt/pull/1419)) -- Extrinsic Params Refinement ([#1439](https://github.com/paritytech/subxt/pull/1439)) -- Make storage_page_size for the LegacyBackend configurable ([#1458](https://github.com/paritytech/subxt/pull/1458)) -- `no_std` compatibility for `subxt-metadata` ([#1401](https://github.com/paritytech/subxt/pull/1401)) -- Experimental `reconnecting-rpc-client` ([#1396](https://github.com/paritytech/subxt/pull/1396)) +- Reworked light client ([#1475](https://github.com/pezkuwichain/subxt/pull/1475)) +- `no_std` compatibility for `subxt-signer` ([#1477](https://github.com/pezkuwichain/subxt/pull/1477)) +- Typed Storage Keys ([#1419](https://github.com/pezkuwichain/subxt/pull/1419)) +- Extrinsic Params Refinement ([#1439](https://github.com/pezkuwichain/subxt/pull/1439)) +- Make storage_page_size for the LegacyBackend configurable ([#1458](https://github.com/pezkuwichain/subxt/pull/1458)) +- `no_std` compatibility for `subxt-metadata` ([#1401](https://github.com/pezkuwichain/subxt/pull/1401)) +- Experimental `reconnecting-rpc-client` ([#1396](https://github.com/pezkuwichain/subxt/pull/1396)) ### Changed -- `scale-type-resolver` integration ([#1460](https://github.com/paritytech/subxt/pull/1460)) -- subxt: Derive `std::cmp` traits for subxt payloads and addresses ([#1429](https://github.com/paritytech/subxt/pull/1429)) -- CLI: Return error on wrongly specified type paths ([#1397](https://github.com/paritytech/subxt/pull/1397)) -- rpc v2: chainhead support multiple finalized block hashes in `FollowEvent::Initialized` ([#1476](https://github.com/paritytech/subxt/pull/1476)) -- rpc v2: rename transaction to transactionWatch ([#1399](https://github.com/paritytech/subxt/pull/1399)) +- `scale-type-resolver` integration ([#1460](https://github.com/pezkuwichain/subxt/pull/1460)) +- subxt: Derive `std::cmp` traits for subxt payloads and addresses ([#1429](https://github.com/pezkuwichain/subxt/pull/1429)) +- CLI: Return error on wrongly specified type paths ([#1397](https://github.com/pezkuwichain/subxt/pull/1397)) +- rpc v2: chainhead support multiple finalized block hashes in `FollowEvent::Initialized` ([#1476](https://github.com/pezkuwichain/subxt/pull/1476)) +- rpc v2: rename transaction to transactionWatch ([#1399](https://github.com/pezkuwichain/subxt/pull/1399)) ### Fixed -- Avoid a panic in case we try decoding naff bytes ([#1444](https://github.com/paritytech/subxt/pull/1444)) -- Fix error mapping to wrong transaction status ([#1445](https://github.com/paritytech/subxt/pull/1445)) -- Update DispatchError to match latest in polkadot-sdk ([#1442](https://github.com/paritytech/subxt/pull/1442)) -- Handle errors when fetching storage keys from Unstablebackend ([#1440](https://github.com/paritytech/subxt/pull/1440)) -- Swap type aliases around to be semantically correct ([#1441](https://github.com/paritytech/subxt/pull/1441)) +- Avoid a panic in case we try decoding naff bytes ([#1444](https://github.com/pezkuwichain/subxt/pull/1444)) +- Fix error mapping to wrong transaction status ([#1445](https://github.com/pezkuwichain/subxt/pull/1445)) +- Update DispatchError to match latest in pezkuwi-sdk ([#1442](https://github.com/pezkuwichain/subxt/pull/1442)) +- Handle errors when fetching storage keys from Unstablebackend ([#1440](https://github.com/pezkuwichain/subxt/pull/1440)) +- Swap type aliases around to be semantically correct ([#1441](https://github.com/pezkuwichain/subxt/pull/1441)) ## [0.34.0] - 2024-01-23 This release introduces a bunch of features that make subxt easier to use. Let's look at a few of them. -### Codegen - Integrating [`scale-typegen`](https://github.com/paritytech/scale-typegen) and adding type aliases ([#1249](https://github.com/paritytech/subxt/pull/1249)) +### Codegen - Integrating [`scale-typegen`](https://github.com/pezkuwichain/scale-typegen) and adding type aliases ([#1249](https://github.com/pezkuwichain/subxt/pull/1249)) -We rewrote the code generation functionality of subxt and outsourced it to the new [`scale-typegen`](https://github.com/paritytech/scale-typegen) crate, which serves a more general purpose. +We rewrote the code generation functionality of subxt and outsourced it to the new [`scale-typegen`](https://github.com/pezkuwichain/scale-typegen) crate, which serves a more general purpose. -Since a lot of types used in substrate are rich with generics, this release introduces type aliases into the generated code. -A type alias is generated for the arguments/keys or each call, storage entry, and runtime API method ([#1249](https://github.com/paritytech/subxt/pull/1249)). +Since a lot of types used in bizinikiwi are rich with generics, this release introduces type aliases into the generated code. +A type alias is generated for the arguments/keys or each call, storage entry, and runtime API method ([#1249](https://github.com/pezkuwichain/subxt/pull/1249)). -### Macro - Errors for misspecified type paths ([#1339](https://github.com/paritytech/subxt/pull/1339)) +### Macro - Errors for misspecified type paths ([#1339](https://github.com/pezkuwichain/subxt/pull/1339)) The subxt macro provides attributes to specify custom derives, attributes, and type substitutions on a per-type basis. Previously we did not verify that the provided type paths are part of the metadata. This is now fixed: @@ -673,7 +673,7 @@ If you provide an invalid type path, the macro will tell you so. It also suggest runtime_metadata_path = "metadata.scale", derive_for_type(path = "Junctions", derive = "Clone") )] -pub mod polkadot {} +pub mod pezkuwi {} ``` This gives you a compile-time error like this: @@ -686,7 +686,7 @@ xcm::v3::junctions::Junctions xcm::v2::multilocation::Junctions ``` -### Macro - Recursive derives and attributes ([#1379](https://github.com/paritytech/subxt/pull/1379)) +### Macro - Recursive derives and attributes ([#1379](https://github.com/pezkuwichain/subxt/pull/1379)) Previously adding derives on a type containing other types was also cumbersome, see this example: @@ -704,7 +704,7 @@ Previously adding derives on a type containing other types was also cumbersome, derive = "Clone" ) )] -pub mod polkadot {} +pub mod pezkuwi {} ``` We introduced a `recursive` flag for custom derives and attributes that automatically inserts the specified derives on all child types: @@ -714,23 +714,23 @@ We introduced a `recursive` flag for custom derives and attributes that automati runtime_metadata_path = "metadata.scale", derive_for_type(path = "xcm::v2::multilocation::MultiLocation", derive = "Clone", recursive), )] -pub mod polkadot {} +pub mod pezkuwi {} ``` -### Subxt CLI - New features and usability improvements ([#1290](https://github.com/paritytech/subxt/pull/1290), [#1336](https://github.com/paritytech/subxt/pull/1336), and [#1379](https://github.com/paritytech/subxt/pull/1379)) +### Subxt CLI - New features and usability improvements ([#1290](https://github.com/pezkuwichain/subxt/pull/1290), [#1336](https://github.com/pezkuwichain/subxt/pull/1336), and [#1379](https://github.com/pezkuwichain/subxt/pull/1379)) -Our CLI tool now allows you to explore runtime APIs and events ([#1290](https://github.com/paritytech/subxt/pull/1290)). We also fully integrated with [`scale-typegen-description`](https://github.com/paritytech/scale-typegen/tree/master/description), a crate that can describe types in a friendly way and provide type examples. The output is also color-coded to be easier on the eyes. Get started with these commands: +Our CLI tool now allows you to explore runtime APIs and events ([#1290](https://github.com/pezkuwichain/subxt/pull/1290)). We also fully integrated with [`scale-typegen-description`](https://github.com/pezkuwichain/scale-typegen/tree/master/description), a crate that can describe types in a friendly way and provide type examples. The output is also color-coded to be easier on the eyes. Get started with these commands: ```sh # Show details about a runtime API call: -subxt explore --url wss://westend-rpc.polkadot.io api StakingAPI nominations_quota +subxt explore --url wss://zagros-rpc.pezkuwi.io api StakingAPI nominations_quota # Execute a runtime API call from the CLI: -subxt explore --url wss://westend-rpc.polkadot.io api core version -e +subxt explore --url wss://zagros-rpc.pezkuwi.io api core version -e # Discover what events a pallet can emit: -subxt explore --url wss://westend-rpc.polkadot.io pallet Balances events +subxt explore --url wss://zagros-rpc.pezkuwi.io pallet Balances events ``` -All CLI commands that take some metadata via `--file` or `--url`, can now also read the metadata directly from `stdin` with `--file -` ([#1336](https://github.com/paritytech/subxt/pull/1336)). +All CLI commands that take some metadata via `--file` or `--url`, can now also read the metadata directly from `stdin` with `--file -` ([#1336](https://github.com/pezkuwichain/subxt/pull/1336)). This allows you to pipe in metadata from other processes like in this command chain: ```sh parachain-node export-metadata | subxt codegen --file - | rustfmt > main.rs @@ -744,57 +744,57 @@ subxt codegen --attributes-for-type "xcm::v2::multilocation::MultiLocation=#[mye ### Minor changes and things to be aware of -- Using insecure connections is now an explicit opt-in in many places ([#1309](https://github.com/paritytech/subxt/pull/1309)) -- When decoding extrinsics from a block into a static type, we now return it's details (e.g. signature, signed extensions, raw bytes) alongside the statically decoded extrinsic itself ([#1376](https://github.com/paritytech/subxt/pull/1376)) +- Using insecure connections is now an explicit opt-in in many places ([#1309](https://github.com/pezkuwichain/subxt/pull/1309)) +- When decoding extrinsics from a block into a static type, we now return it's details (e.g. signature, signed extensions, raw bytes) alongside the statically decoded extrinsic itself ([#1376](https://github.com/pezkuwichain/subxt/pull/1376)) We also made a few fixes and improvements around the unstable backend and the lightclient, preparing them for more stable usage in the future. ### Added -- Errors for misspecified type paths + suggestions ([#1339](https://github.com/paritytech/subxt/pull/1339)) -- CLI: Recursive derives and attributes ([#1379](https://github.com/paritytech/subxt/pull/1379)) -- CLI: Explore runtime APIs and events, colorized outputs, scale-typegen integration for examples ([#1290](https://github.com/paritytech/subxt/pull/1290)) -- Add chainflip to real world usage section of README ([#1351](https://github.com/paritytech/subxt/pull/1351)) -- CLI: Allow using `--file -` to read metadata from stdin ([#1336](https://github.com/paritytech/subxt/pull/1336)) -- Codegen: Generate type aliases for better API ergonomics ([#1249](https://github.com/paritytech/subxt/pull/1249)) +- Errors for misspecified type paths + suggestions ([#1339](https://github.com/pezkuwichain/subxt/pull/1339)) +- CLI: Recursive derives and attributes ([#1379](https://github.com/pezkuwichain/subxt/pull/1379)) +- CLI: Explore runtime APIs and events, colorized outputs, scale-typegen integration for examples ([#1290](https://github.com/pezkuwichain/subxt/pull/1290)) +- Add chainflip to real world usage section of README ([#1351](https://github.com/pezkuwichain/subxt/pull/1351)) +- CLI: Allow using `--file -` to read metadata from stdin ([#1336](https://github.com/pezkuwichain/subxt/pull/1336)) +- Codegen: Generate type aliases for better API ergonomics ([#1249](https://github.com/pezkuwichain/subxt/pull/1249)) ### Changed -- Return Pending rather than loop around if no new finalized hash in submit_transaction ([#1378](https://github.com/paritytech/subxt/pull/1378)) -- Return `ExtrinsicDetails` alongside decoded static extrinsics ([#1376](https://github.com/paritytech/subxt/pull/1376)) -- Improve Signed Extension and Block Decoding Examples/Book ([#1357](https://github.com/paritytech/subxt/pull/1357)) -- Use `scale-typegen` as a backend for the codegen ([#1260](https://github.com/paritytech/subxt/pull/1260)) -- Using insecure connections is now opt-in ([#1309](https://github.com/paritytech/subxt/pull/1309)) +- Return Pending rather than loop around if no new finalized hash in submit_transaction ([#1378](https://github.com/pezkuwichain/subxt/pull/1378)) +- Return `ExtrinsicDetails` alongside decoded static extrinsics ([#1376](https://github.com/pezkuwichain/subxt/pull/1376)) +- Improve Signed Extension and Block Decoding Examples/Book ([#1357](https://github.com/pezkuwichain/subxt/pull/1357)) +- Use `scale-typegen` as a backend for the codegen ([#1260](https://github.com/pezkuwichain/subxt/pull/1260)) +- Using insecure connections is now opt-in ([#1309](https://github.com/pezkuwichain/subxt/pull/1309)) ### Fixed -- Ensure lightclient chainSpec is at least one block old ([#1372](https://github.com/paritytech/subxt/pull/1372)) -- Typo fix in docs ([#1370](https://github.com/paritytech/subxt/pull/1370)) -- Don't unpin blocks that may show up again ([#1368](https://github.com/paritytech/subxt/pull/1368)) -- Runtime upgrades in unstable backend ([#1348](https://github.com/paritytech/subxt/pull/1348)) -- Generate docs for feature gated items ([#1332](https://github.com/paritytech/subxt/pull/1332)) -- Backend: Remove only finalized blocks from the event window ([#1356](https://github.com/paritytech/subxt/pull/1356)) -- Runtime updates: wait until upgrade on chain ([#1321](https://github.com/paritytech/subxt/pull/1321)) -- Cache extrinsic events ([#1327](https://github.com/paritytech/subxt/pull/1327)) +- Ensure lightclient chainSpec is at least one block old ([#1372](https://github.com/pezkuwichain/subxt/pull/1372)) +- Typo fix in docs ([#1370](https://github.com/pezkuwichain/subxt/pull/1370)) +- Don't unpin blocks that may show up again ([#1368](https://github.com/pezkuwichain/subxt/pull/1368)) +- Runtime upgrades in unstable backend ([#1348](https://github.com/pezkuwichain/subxt/pull/1348)) +- Generate docs for feature gated items ([#1332](https://github.com/pezkuwichain/subxt/pull/1332)) +- Backend: Remove only finalized blocks from the event window ([#1356](https://github.com/pezkuwichain/subxt/pull/1356)) +- Runtime updates: wait until upgrade on chain ([#1321](https://github.com/pezkuwichain/subxt/pull/1321)) +- Cache extrinsic events ([#1327](https://github.com/pezkuwichain/subxt/pull/1327)) ## [0.33.0] - 2023-12-06 This release makes a bunch of small QoL improvements and changes. Let's look at the main ones. -### Add support for configuring multiple chains ([#1238](https://github.com/paritytech/subxt/pull/1238)) +### Add support for configuring multiple chains ([#1238](https://github.com/pezkuwichain/subxt/pull/1238)) The light client support previously provided a high level interface for connecting to single chains (ie relay chains). This PR exposes a "low level" interface which allows smoldot (the light client implementation we use) to be configured somewhat more arbitrarily, and then converted into a valid subxt `OnlineClient` to be used. -See [this example](https://github.com/paritytech/subxt/blob/418c3afc923cacd17501f374fdee0d8f588e14fd/subxt/examples/light_client_parachains.rs) for more on how to do this. +See [this example](https://github.com/pezkuwichain/subxt/blob/418c3afc923cacd17501f374fdee0d8f588e14fd/subxt/examples/light_client_parachains.rs) for more on how to do this. We'll likely refine this over time and add a slightly higher level interface to make common operations much easier to do. -### Support decoding signed extensions ([#1209](https://github.com/paritytech/subxt/pull/1209) and [#1235](https://github.com/paritytech/subxt/pull/1235)) +### Support decoding signed extensions ([#1209](https://github.com/pezkuwichain/subxt/pull/1209) and [#1235](https://github.com/pezkuwichain/subxt/pull/1235)) This PR makes it possible to decode the signed extensions in extrinsics. This looks something like: ```rust -let api = OnlineClient::::new().await?; +let api = OnlineClient::::new().await?; // Get blocks; here we just subscribe to them: let mut blocks_sub = api.blocks().subscribe_finalized().await?; @@ -819,7 +819,7 @@ while let Some(block) = blocks_sub.next().await { // Or we can find and decode into a static signed extension type // (Err if we hit a decode error first, then None if it's not found): - if let Ok(Some(era)) = signed_exts.find::>() { + if let Ok(Some(era)) = signed_exts.find::>() { println!("Era: {era:?}"); } @@ -828,7 +828,7 @@ while let Some(block) = blocks_sub.next().await { println!("Signed Extension name: {}", signed_ext.name()); // We can try to statically decode each one: - if let Ok(Some(era)) = signed_ext.as_signed_extension::>() { + if let Ok(Some(era)) = signed_ext.as_signed_extension::>() { println!("Era: {era:?}"); } @@ -847,13 +847,13 @@ See the API docs for more. Still on the topic of signed extensions, the `ChargeAssetTxPayment` extension was previously not able to be used with a generic AssetId, which prohibited it from being used on the Asset Hub (which uses a `MultiLocation` instead). To address this, we added an `AssetId` type to our `subxt::Config`, which can now be configured. -One example of doing that [can be found here](https://github.com/paritytech/subxt/blob/master/subxt/examples/setup_config_custom.rs). +One example of doing that [can be found here](https://github.com/pezkuwichain/subxt/blob/master/subxt/examples/setup_config_custom.rs). This example uses a generated `MultiLocation` type to be used as the `AssetId`. Currently it requires a rather hideous set of manual clones like so: ```rust #[subxt::subxt( - runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", + runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", derive_for_type(path = "xcm::v2::multilocation::MultiLocation", derive = "Clone"), derive_for_type(path = "xcm::v2::multilocation::Junctions", derive = "Clone"), derive_for_type(path = "xcm::v2::junction::Junction", derive = "Clone"), @@ -869,11 +869,11 @@ This example uses a generated `MultiLocation` type to be used as the `AssetId`. This is something we plan to address in the next version of Subxt. -### Change SignedExtension matching logic ([#1283](https://github.com/paritytech/subxt/pull/1283)) +### Change SignedExtension matching logic ([#1283](https://github.com/pezkuwichain/subxt/pull/1283)) Before this release, each signed extension had a unique name (`SignedExtension::NAME`). We'd use this name to figure out which signed extensions to apply for a given chain inside the `signed_extensions::AnyOf` type. -However, we recently ran into a new signed extension in Substrate called `SkipCheckIfFeeless`. This extension would wrap another signed extension, but maintained its own name. It has since been "hidden" from the public Substrate interface again, but a result of encountering this is that we have generalised the way that we "match" on signed extensions, so that we can be smarter about it going forwards. +However, we recently ran into a new signed extension in Bizinikiwi called `SkipCheckIfFeeless`. This extension would wrap another signed extension, but maintained its own name. It has since been "hidden" from the public Bizinikiwi interface again, but a result of encountering this is that we have generalised the way that we "match" on signed extensions, so that we can be smarter about it going forwards. So now, for a given signed extension, we go from: @@ -897,7 +897,7 @@ impl SignedExtension for ChargeAssetTxPayment { On the whole, we continue matching by name, as in the example above, but this allows an author to inspect the type of the signed extension (and subtypes of it) too if they want the signed extension to match (and thus be used) only in certain cases. -### Remove `wait_for_in_block` helper method ([#1237](https://github.com/paritytech/subxt/pull/1237)) +### Remove `wait_for_in_block` helper method ([#1237](https://github.com/pezkuwichain/subxt/pull/1237)) One can no longer use `tx.wait_for_in_block` to wait for a transaction to enter a block. The reason for this removal is that, especially when we migrate to the new `chainHead` APIs, we will no longer be able to reliably obtain any details about the block that the transaction made it into. @@ -931,9 +931,9 @@ while let Some(status) = tx.next().await { } ``` -### Subxt-codegen: Tidy crate interface ([#1225](https://github.com/paritytech/subxt/pull/1225)) +### Subxt-codegen: Tidy crate interface ([#1225](https://github.com/pezkuwichain/subxt/pull/1225)) -The `subxt-codegen` crate has always been a bit of a mess because it wasn't really supposed to be used outside of the subxt crates, which had led to issues like https://github.com/paritytech/subxt/issues/1211. +The `subxt-codegen` crate has always been a bit of a mess because it wasn't really supposed to be used outside of the subxt crates, which had led to issues like https://github.com/pezkuwichain/subxt/issues/1211. This PR tidies up the interface to that crate so that it's much easier now to programmatically generate the Subxt interface. Now, we have three properly supported ways to do this, depending on your needs: @@ -943,56 +943,56 @@ This PR tidies up the interface to that crate so that it's much easier now to pr Each method aims to expose a similar and consistent set of options. -If you were previously looking to use parts of the type generation logic to, for instance, generate runtime types but not the rest of the Subxt interface, then the https://github.com/paritytech/scale-typegen crate will aim to fill this role eventually. +If you were previously looking to use parts of the type generation logic to, for instance, generate runtime types but not the rest of the Subxt interface, then the https://github.com/pezkuwichain/scale-typegen crate will aim to fill this role eventually. That sums up the most significant changes. A summary of all of the relevant changes is as follows: ### Added -- CLI: Add command to fetch chainSpec and optimize its size ([#1278](https://github.com/paritytech/subxt/pull/1278)) -- Add legacy RPC usage example ([#1279](https://github.com/paritytech/subxt/pull/1279)) -- impl RpcClientT for `Arc` and `Box` ([#1277](https://github.com/paritytech/subxt/pull/1277)) -- RPC: Implement legacy RPC system_account_next_index ([#1250](https://github.com/paritytech/subxt/pull/1250)) -- Lightclient: Add support for configuring multiple chains ([#1238](https://github.com/paritytech/subxt/pull/1238)) -- Extrinsics: Allow static decoding of signed extensions ([#1235](https://github.com/paritytech/subxt/pull/1235)) -- Extrinsics: Support decoding signed extensions ([#1209](https://github.com/paritytech/subxt/pull/1209)) -- ChargeAssetTxPayment: Add support for generic AssetId (eg `u32` or `MultiLocation`) ([#1227](https://github.com/paritytech/subxt/pull/1227)) -- Add Clone + Debug on Payloads/Addresses, and compare child storage results ([#1203](https://github.com/paritytech/subxt/pull/1203)) +- CLI: Add command to fetch chainSpec and optimize its size ([#1278](https://github.com/pezkuwichain/subxt/pull/1278)) +- Add legacy RPC usage example ([#1279](https://github.com/pezkuwichain/subxt/pull/1279)) +- impl RpcClientT for `Arc` and `Box` ([#1277](https://github.com/pezkuwichain/subxt/pull/1277)) +- RPC: Implement legacy RPC system_account_next_index ([#1250](https://github.com/pezkuwichain/subxt/pull/1250)) +- Lightclient: Add support for configuring multiple chains ([#1238](https://github.com/pezkuwichain/subxt/pull/1238)) +- Extrinsics: Allow static decoding of signed extensions ([#1235](https://github.com/pezkuwichain/subxt/pull/1235)) +- Extrinsics: Support decoding signed extensions ([#1209](https://github.com/pezkuwichain/subxt/pull/1209)) +- ChargeAssetTxPayment: Add support for generic AssetId (eg `u32` or `MultiLocation`) ([#1227](https://github.com/pezkuwichain/subxt/pull/1227)) +- Add Clone + Debug on Payloads/Addresses, and compare child storage results ([#1203](https://github.com/pezkuwichain/subxt/pull/1203)) ### Changed -- Lightclient: Update smoldot to `0.14.0` and smoldot-light to `0.12.0` ([#1307](https://github.com/paritytech/subxt/pull/1307)) -- Cargo: Switch to workspace lints ([#1299](https://github.com/paritytech/subxt/pull/1299)) -- Update substrate-* and signer-related dependencies ([#1297](https://github.com/paritytech/subxt/pull/1297)) -- Change SignedExtension matching logic and remove SkipCheckIfFeeless bits ([#1283](https://github.com/paritytech/subxt/pull/1283)) -- Update the README with the new location of node-cli ([#1282](https://github.com/paritytech/subxt/pull/1282)) -- Generalize `substrate-compat` impls to accept any valid hasher/header impl ([#1265](https://github.com/paritytech/subxt/pull/1265)) -- Extrinsics: Remove `wait_for_in_block` helper method ([#1237](https://github.com/paritytech/subxt/pull/1237)) -- Subxt-codegen: Tidy crate interface ([#1225](https://github.com/paritytech/subxt/pull/1225)) -- Lightclient: Update usage docs ([#1223](https://github.com/paritytech/subxt/pull/1223)) -- Wee tidy to subxt-signer flags ([#1200](https://github.com/paritytech/subxt/pull/1200)) -- Batch fetching storage values again to improve performance ([#1199](https://github.com/paritytech/subxt/pull/1199)) -- Add `subxt` feature in `subxt-signer` crate to default features ([#1193](https://github.com/paritytech/subxt/pull/1193)) +- Lightclient: Update smoldot to `0.14.0` and smoldot-light to `0.12.0` ([#1307](https://github.com/pezkuwichain/subxt/pull/1307)) +- Cargo: Switch to workspace lints ([#1299](https://github.com/pezkuwichain/subxt/pull/1299)) +- Update bizinikiwi-* and signer-related dependencies ([#1297](https://github.com/pezkuwichain/subxt/pull/1297)) +- Change SignedExtension matching logic and remove SkipCheckIfFeeless bits ([#1283](https://github.com/pezkuwichain/subxt/pull/1283)) +- Update the README with the new location of node-cli ([#1282](https://github.com/pezkuwichain/subxt/pull/1282)) +- Generalize `bizinikiwi-compat` impls to accept any valid hasher/header impl ([#1265](https://github.com/pezkuwichain/subxt/pull/1265)) +- Extrinsics: Remove `wait_for_in_block` helper method ([#1237](https://github.com/pezkuwichain/subxt/pull/1237)) +- Subxt-codegen: Tidy crate interface ([#1225](https://github.com/pezkuwichain/subxt/pull/1225)) +- Lightclient: Update usage docs ([#1223](https://github.com/pezkuwichain/subxt/pull/1223)) +- Wee tidy to subxt-signer flags ([#1200](https://github.com/pezkuwichain/subxt/pull/1200)) +- Batch fetching storage values again to improve performance ([#1199](https://github.com/pezkuwichain/subxt/pull/1199)) +- Add `subxt` feature in `subxt-signer` crate to default features ([#1193](https://github.com/pezkuwichain/subxt/pull/1193)) ### Fixed -- Trimmed metadata hash comparison fails in `is_codegen_valid_for` ([#1306](https://github.com/paritytech/subxt/pull/1306)) -- Sync tx submission with chainHead_follow ([#1305](https://github.com/paritytech/subxt/pull/1305)) -- Storage: Fix partial key storage iteration ([#1298](https://github.com/paritytech/subxt/pull/1298)) -- Lightclient: Fix wasm socket closure called after being dropped ([#1289](https://github.com/paritytech/subxt/pull/1289)) -- Fix parachain example ([#1228](https://github.com/paritytech/subxt/pull/1228)) +- Trimmed metadata hash comparison fails in `is_codegen_valid_for` ([#1306](https://github.com/pezkuwichain/subxt/pull/1306)) +- Sync tx submission with chainHead_follow ([#1305](https://github.com/pezkuwichain/subxt/pull/1305)) +- Storage: Fix partial key storage iteration ([#1298](https://github.com/pezkuwichain/subxt/pull/1298)) +- Lightclient: Fix wasm socket closure called after being dropped ([#1289](https://github.com/pezkuwichain/subxt/pull/1289)) +- Fix parachain example ([#1228](https://github.com/pezkuwichain/subxt/pull/1228)) ## [0.32.1] - 2023-10-05 -This is a patch release, mainly to deploy the fix [#1191](https://github.com/paritytech/subxt/pull/1191), which resolves an issue around codegen when runtime API definitions have an argument name "_". +This is a patch release, mainly to deploy the fix [#1191](https://github.com/pezkuwichain/subxt/pull/1191), which resolves an issue around codegen when runtime API definitions have an argument name "_". We also expose an API, `api.blocks().at(block_hash).account_nonce(account_id)`, which allows one to obtain the account nonce for some account at any block hash, and not just at the latest finalized block hash as is possible via `api.tx().account_nonce(..)`. The main changes are: -- fix for when runtime API field name is _ ([#1191](https://github.com/paritytech/subxt/pull/1191)) -- allow getting account nonce at arbitrary blocks, too ([#1182](https://github.com/paritytech/subxt/pull/1182)) -- chore: improve some error messages ([#1183](https://github.com/paritytech/subxt/pull/1183)) +- fix for when runtime API field name is _ ([#1191](https://github.com/pezkuwichain/subxt/pull/1191)) +- allow getting account nonce at arbitrary blocks, too ([#1182](https://github.com/pezkuwichain/subxt/pull/1182)) +- chore: improve some error messages ([#1183](https://github.com/pezkuwichain/subxt/pull/1183)) ## [0.32.0] - 2023-09-27 @@ -1000,9 +1000,9 @@ This is a big release that adds quite a lot, and also introduces some slightly l ### The `Backend` trait and the `UnstableBackend` and `LegacyBackend` impls. -See [#1126](https://github.com/paritytech/subxt/pull/1126), [#1137](https://github.com/paritytech/subxt/pull/1137) and [#1161](https://github.com/paritytech/subxt/pull/1161) for more information. +See [#1126](https://github.com/pezkuwichain/subxt/pull/1126), [#1137](https://github.com/pezkuwichain/subxt/pull/1137) and [#1161](https://github.com/pezkuwichain/subxt/pull/1161) for more information. -The overarching idea here is that we want Subxt to be able to continue to support talking to nodes/light-clients using the "legacy" RPC APIs that are currently available, but we _also_ want to be able to support using only [the new RPC APIs](https://paritytech.github.io/json-rpc-interface-spec/) once they are stabilized. +The overarching idea here is that we want Subxt to be able to continue to support talking to nodes/light-clients using the "legacy" RPC APIs that are currently available, but we _also_ want to be able to support using only [the new RPC APIs](https://pezkuwichain.github.io/json-rpc-interface-spec/) once they are stabilized. Until now, the higher level APIs in Subxt all had access to the RPCs and could call whatever they needed. Now, we've abstracted away which RPCs are called (or even that RPCs are used at all) behind a `subxt::backend::Backend` trait. Higher level APIs no longer have access to RPC methods and instead have access to the current `Backend` implementation. We then added two `Backend` implementations: @@ -1023,7 +1023,7 @@ Now, the client only knows about a `Backend` (ie it has a `.backend()` method in ```rust use subxt::{ - config::SubstrateConfig, + config::BizinikiwConfig, backend::rpc::RpcClient, backend::legacy::LegacyRpcMethods, }; @@ -1032,43 +1032,43 @@ use subxt::{ let rpc_client = RpcClient::from_url("ws://localhost:9944").await?; // We could also call unstable RPCs with `backend::unstable::UnstableRpcMethods`: -let rpc_methods = LegacyRpcMethods::::new(rpc_client); +let rpc_methods = LegacyRpcMethods::::new(rpc_client); // Use it to make RPC calls, here calling the legacy genesis_hash method. let genesis_hash = rpc_methods.genesis_hash().await? ``` -If you'd like to share a single client for RPCs and Subxt usage, you can clone this RPC client and run `OnlineClient::::from_rpc_client(rpc_client)` to create a Subxt client using it. +If you'd like to share a single client for RPCs and Subxt usage, you can clone this RPC client and run `OnlineClient::::from_rpc_client(rpc_client)` to create a Subxt client using it. Another side effect of this change is that RPC related things have moved from `subxt::rpc::*` to `subxt::backend::rpc::*` and some renaming has happened along the way. A number of smaller breaking changes have also been made in order to expose details that are compatible with both sets of RPCs, and to generally move Subxt towards working well with the new APIs and exposing things in a consistent way: - The storage methods `fetch_keys` is renamed to `fetch_raw_keys` (this just for consistency with `fetch_raw`). -- The storage method `iter` no longer accepts a `page_size` argument, and each item returned is now an `Option>` instead of a `Result>` (we now return a valid `Stream` implementation for storage entry iteration). See [this example](https://github.com/paritytech/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/examples/storage_iterating.rs#L18). -- The events returned when you manually watch a transaction have changed in order to be consistent with the new RPC APIs (the new events [can be seen here](https://github.com/paritytech/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/src/tx/tx_progress.rs#L203)), and `next_item` => `next`. If you rely on higher level calls like `sign_and_submit_then_watch`, nothing has changed. +- The storage method `iter` no longer accepts a `page_size` argument, and each item returned is now an `Option>` instead of a `Result>` (we now return a valid `Stream` implementation for storage entry iteration). See [this example](https://github.com/pezkuwichain/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/examples/storage_iterating.rs#L18). +- The events returned when you manually watch a transaction have changed in order to be consistent with the new RPC APIs (the new events [can be seen here](https://github.com/pezkuwichain/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/src/tx/tx_progress.rs#L203)), and `next_item` => `next`. If you rely on higher level calls like `sign_and_submit_then_watch`, nothing has changed. - Previously, using `.at_latest()` in various places would mean that calls would run against the latest _best_ block. Now, all such calls will run against the latest _finalized_ block. The latest best block is subject to changing or being pruned entirely, and can differ between nodes. - `.at(block_hash)` should continue to work as-is, but can now also accept a `BlockRef`, to keep the relevant block around while you're using the associated APIs. - To fetch the extrinsics in a block, you used to call `block.body().await?.extrinsics()`. This has now been simplified to `block.extrinsics().await?`. ### Making `ExtrinsicParams` more flexible with `SignedExtension`s. -See [#1107](https://github.com/paritytech/subxt/pull/1107) for more information. +See [#1107](https://github.com/pezkuwichain/subxt/pull/1107) for more information. When configuring Subxt to work against a given chain, you needed to configure the `ExtrinsicParams` associated type to encode exactly what was required by the chain when submitting transactions. This could be difficult to get right. -Now, we have "upgraded" the `ExtrinsicParams` trait to give it access to metadata, so that it can be smarter about how to encode the correct values. We've also added a `subxt::config::SignedExtension` trait, and provided implementations of it for all of the "standard" signed extensions (though [we have a little work to do still](https://github.com/paritytech/subxt/issues/1162)). +Now, we have "upgraded" the `ExtrinsicParams` trait to give it access to metadata, so that it can be smarter about how to encode the correct values. We've also added a `subxt::config::SignedExtension` trait, and provided implementations of it for all of the "standard" signed extensions (though [we have a little work to do still](https://github.com/pezkuwichain/subxt/issues/1162)). How can you use `SignedExtension`s? Well, `subxt::config::signed_extensions::AnyOf` is a type which can accept any tuple of `SignedExtension`s, and itself implements `ExtrinsicParams`. It's smart, and will use the metadata to know which of the signed extensions that you provided to actually use on a given chain. So, `AnyOf` makes it easy to compose whichever `SignedExtension`s you need to work with a chain. -Finally, we expose `subxt::config::{ DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder }`; the former just uses `AnyOf` to automatically use any of the "standard" signed extensions as needed, and the latter provided a nice builder interface to configure any parameters for them. This is now the default type used in `SubstrateConfig` and `PolkadotConfig`, so long story short: those configurations (and particularly their `ExtrinsicParams`) are more likely to _Just Work_ now across default chains. +Finally, we expose `subxt::config::{ DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder }`; the former just uses `AnyOf` to automatically use any of the "standard" signed extensions as needed, and the latter provided a nice builder interface to configure any parameters for them. This is now the default type used in `BizinikiwConfig` and `PezkuwiConfig`, so long story short: those configurations (and particularly their `ExtrinsicParams`) are more likely to _Just Work_ now across default chains. -[See this example](https://github.com/paritytech/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/examples/setup_config_signed_extension.rs) for how to create and use custom signed extensions, or [this example](https://github.com/paritytech/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/examples/setup_config_custom.rs) for how to implement custom `ExtrinsicParams` if you'd prefer to ignore `SignedExtension`s entirely. +[See this example](https://github.com/pezkuwichain/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/examples/setup_config_signed_extension.rs) for how to create and use custom signed extensions, or [this example](https://github.com/pezkuwichain/subxt/blob/cd5060a5a08c9bd73477477cd2cadc16015e77bf/subxt/examples/setup_config_custom.rs) for how to implement custom `ExtrinsicParams` if you'd prefer to ignore `SignedExtension`s entirely. -As a result of using the new `DefaultExtrinsicParams` in `SubstrateConfig` and `PolkadotConfig`, the interface to configure transactions has changed (and in fact been generally simplified). Configuring a mortal transaction with a small tip Æ’or instance used to look like: +As a result of using the new `DefaultExtrinsicParams` in `BizinikiwConfig` and `PezkuwiConfig`, the interface to configure transactions has changed (and in fact been generally simplified). Configuring a mortal transaction with a small tip Æ’or instance used to look like: ```rust -use subxt::config::polkadot::{Era, PlainTip, PolkadotExtrinsicParamsBuilder as Params}; +use subxt::config::pezkuwi::{Era, PlainTip, PezkuwiExtrinsicParamsBuilder as Params}; let tx_params = Params::new() .tip(PlainTip::new(1_000)) @@ -1080,7 +1080,7 @@ let hash = api.tx().sign_and_submit(&tx, &from, tx_params).await?; And now it will look like this: ```rust -use subxt::config::polkadot::PolkadotExtrinsicParamsBuilder as Params; +use subxt::config::pezkuwi::PezkuwiExtrinsicParamsBuilder as Params; let tx_params = Params::new() .tip(1_000) @@ -1090,17 +1090,17 @@ let tx_params = Params::new() let hash = api.tx().sign_and_submit(&tx, &from, tx_params).await?; ``` -Check the docs for `PolkadotExtrinsicParamsBuilder` and the `ExtrinsicParams` trait for more information. +Check the docs for `PezkuwiExtrinsicParamsBuilder` and the `ExtrinsicParams` trait for more information. ### Storage: Allow iterating storage entries at different depths -See ([#1079](https://github.com/paritytech/subxt/pull/1079)) for more information. +See ([#1079](https://github.com/pezkuwichain/subxt/pull/1079)) for more information. Previously, we could statically iterate over the root of some storage map using something like: ```rust // Build a storage query to iterate over account information. -let storage_query = polkadot::storage().system().account_root(); +let storage_query = pezkuwi::storage().system().account_root(); // Get back an iterator of results (here, we are fetching 10 items at // a time from the node, but we always iterate over one at a time). @@ -1111,7 +1111,7 @@ Now, the suffix `_root` has been renamed to `_iter`, and if the storage entry is ```rust // Build a storage query to iterate over account information. -let storage_query = polkadot::storage().system().account_iter(); +let storage_query = pezkuwi::storage().system().account_iter(); // Get back an iterator of results let mut results = api.storage().at_latest().await?.iter(storage_query).await?; @@ -1121,9 +1121,9 @@ Note also that the pagination size no longer needs to be provided; that's handle ### Custom values -This is not a breaking change, but just a noteworthy addition; see [#1106](https://github.com/paritytech/subxt/pull/1106), [#1117](https://github.com/paritytech/subxt/pull/1117) and [#1147](https://github.com/paritytech/subxt/pull/1147) for more information. +This is not a breaking change, but just a noteworthy addition; see [#1106](https://github.com/pezkuwichain/subxt/pull/1106), [#1117](https://github.com/pezkuwichain/subxt/pull/1117) and [#1147](https://github.com/pezkuwichain/subxt/pull/1147) for more information. -V15 metadata allows chains to insert arbitrary information into a new "custom values" hashmap ([see this](https://github.com/paritytech/frame-metadata/blob/0e90489c8588d48b55779f1c6b93216346ecc8a9/frame-metadata/src/v15.rs#L306)). Subxt has now added APIs to allow accessing these custom values a little like how constants can be accessed. +V15 metadata allows chains to insert arbitrary information into a new "custom values" hashmap ([see this](https://github.com/pezkuwichain/frame-metadata/blob/0e90489c8588d48b55779f1c6b93216346ecc8a9/frame-metadata/src/v15.rs#L306)). Subxt has now added APIs to allow accessing these custom values a little like how constants can be accessed. Dynamically accessing custom values looks a bit like this: @@ -1159,56 +1159,56 @@ That sums up the most significant changes. All of the key commits in this releas ### Added -- `UnstableBackend`: Add a chainHead based backend implementation ([#1161](https://github.com/paritytech/subxt/pull/1161)) -- `UnstableBackend`: Expose the chainHead RPCs ([#1137](https://github.com/paritytech/subxt/pull/1137)) -- Introduce Backend trait to allow different RPC (or other) backends to be implemented ([#1126](https://github.com/paritytech/subxt/pull/1126)) -- Custom Values: Fixes and tests for "custom values" ([#1147](https://github.com/paritytech/subxt/pull/1147)) -- Custom Values: Add generated APIs to statically access custom values in metadata ([#1117](https://github.com/paritytech/subxt/pull/1117)) -- Custom Values: Support dynamically accessing custom values in metadata ([#1106](https://github.com/paritytech/subxt/pull/1106)) -- Add `storage_version()` and `runtime_wasm_code()` to storage ([#1111](https://github.com/paritytech/subxt/pull/1111)) -- Make ExtrinsicParams more flexible, and introduce signed extensions ([#1107](https://github.com/paritytech/subxt/pull/1107)) +- `UnstableBackend`: Add a chainHead based backend implementation ([#1161](https://github.com/pezkuwichain/subxt/pull/1161)) +- `UnstableBackend`: Expose the chainHead RPCs ([#1137](https://github.com/pezkuwichain/subxt/pull/1137)) +- Introduce Backend trait to allow different RPC (or other) backends to be implemented ([#1126](https://github.com/pezkuwichain/subxt/pull/1126)) +- Custom Values: Fixes and tests for "custom values" ([#1147](https://github.com/pezkuwichain/subxt/pull/1147)) +- Custom Values: Add generated APIs to statically access custom values in metadata ([#1117](https://github.com/pezkuwichain/subxt/pull/1117)) +- Custom Values: Support dynamically accessing custom values in metadata ([#1106](https://github.com/pezkuwichain/subxt/pull/1106)) +- Add `storage_version()` and `runtime_wasm_code()` to storage ([#1111](https://github.com/pezkuwichain/subxt/pull/1111)) +- Make ExtrinsicParams more flexible, and introduce signed extensions ([#1107](https://github.com/pezkuwichain/subxt/pull/1107)) ### Changed -- `subxt-codegen`: Add "web" feature for WASM compilation that works with `jsonrpsee` ([#1175](https://github.com/paritytech/subxt/pull/1175)) -- `subxt-codegen`: support compiling to WASM ([#1154](https://github.com/paritytech/subxt/pull/1154)) -- CI: Use composite action to avoid dupe use-substrate code ([#1177](https://github.com/paritytech/subxt/pull/1177)) -- Add custom `Debug` impl for `DispatchError` to avoid huge metadata output ([#1153](https://github.com/paritytech/subxt/pull/1153)) -- Remove unused start_key that new RPC API may not be able to support ([#1148](https://github.com/paritytech/subxt/pull/1148)) -- refactor(rpc): Use the default port if one isn't provided ([#1122](https://github.com/paritytech/subxt/pull/1122)) -- Storage: Support iterating over NMaps with partial keys ([#1079](https://github.com/paritytech/subxt/pull/1079)) +- `subxt-codegen`: Add "web" feature for WASM compilation that works with `jsonrpsee` ([#1175](https://github.com/pezkuwichain/subxt/pull/1175)) +- `subxt-codegen`: support compiling to WASM ([#1154](https://github.com/pezkuwichain/subxt/pull/1154)) +- CI: Use composite action to avoid dupe use-bizinikiwi code ([#1177](https://github.com/pezkuwichain/subxt/pull/1177)) +- Add custom `Debug` impl for `DispatchError` to avoid huge metadata output ([#1153](https://github.com/pezkuwichain/subxt/pull/1153)) +- Remove unused start_key that new RPC API may not be able to support ([#1148](https://github.com/pezkuwichain/subxt/pull/1148)) +- refactor(rpc): Use the default port if one isn't provided ([#1122](https://github.com/pezkuwichain/subxt/pull/1122)) +- Storage: Support iterating over NMaps with partial keys ([#1079](https://github.com/pezkuwichain/subxt/pull/1079)) ### Fixed -- metadata: Generate runtime outer enums if not present in V14 ([#1174](https://github.com/paritytech/subxt/pull/1174)) -- Remove "std" feature from `sp-arithmetic` to help substrate compat. ([#1155](https://github.com/paritytech/subxt/pull/1155)) -- integration-tests: Increase the number of events we'll wait for ([#1152](https://github.com/paritytech/subxt/pull/1152)) -- allow 'latest' metadata to be returned from the fallback code ([#1127](https://github.com/paritytech/subxt/pull/1127)) -- chainHead: Propagate results on the `chainHead_follow` ([#1116](https://github.com/paritytech/subxt/pull/1116)) +- metadata: Generate runtime outer enums if not present in V14 ([#1174](https://github.com/pezkuwichain/subxt/pull/1174)) +- Remove "std" feature from `sp-arithmetic` to help bizinikiwi compat. ([#1155](https://github.com/pezkuwichain/subxt/pull/1155)) +- integration-tests: Increase the number of events we'll wait for ([#1152](https://github.com/pezkuwichain/subxt/pull/1152)) +- allow 'latest' metadata to be returned from the fallback code ([#1127](https://github.com/pezkuwichain/subxt/pull/1127)) +- chainHead: Propagate results on the `chainHead_follow` ([#1116](https://github.com/pezkuwichain/subxt/pull/1116)) ## [0.31.0] - 2023-08-02 This is a small release whose primary goal is to bump the versions of `scale-encode`, `scale-decode` and `scale-value` being used, to benefit from recent changes in those crates. -`scale-decode` changes how compact values are decoded as part of [#1103](https://github.com/paritytech/subxt/pull/1103). A compact encoded struct should now be properly decoded into a struct of matching shape (which implements `DecodeAsType`). This will hopefully resolve issues around structs like `Perbill`. When decoding the SCALE bytes for such types into `scale_value::Value`, the `Value` will now be a composite type wrapping a value, and not just the value. +`scale-decode` changes how compact values are decoded as part of [#1103](https://github.com/pezkuwichain/subxt/pull/1103). A compact encoded struct should now be properly decoded into a struct of matching shape (which implements `DecodeAsType`). This will hopefully resolve issues around structs like `Perbill`. When decoding the SCALE bytes for such types into `scale_value::Value`, the `Value` will now be a composite type wrapping a value, and not just the value. -We've also figured out how to sign extrinsics using browser wallets when a Subxt app is compiled to WASM; see [#1067](https://github.com/paritytech/subxt/pull/1067) for more on that! +We've also figured out how to sign extrinsics using browser wallets when a Subxt app is compiled to WASM; see [#1067](https://github.com/pezkuwichain/subxt/pull/1067) for more on that! The key commits: ### Added -- Add browser extension signing example ([#1067](https://github.com/paritytech/subxt/pull/1067)) +- Add browser extension signing example ([#1067](https://github.com/pezkuwichain/subxt/pull/1067)) ### Changed -- Bump to latest scale-encode/decode/value and fix test running ([#1103](https://github.com/paritytech/subxt/pull/1103)) -- Set minimum supported `rust-version` to `1.70` ([#1097](https://github.com/paritytech/subxt/pull/1097)) +- Bump to latest scale-encode/decode/value and fix test running ([#1103](https://github.com/pezkuwichain/subxt/pull/1103)) +- Set minimum supported `rust-version` to `1.70` ([#1097](https://github.com/pezkuwichain/subxt/pull/1097)) ### Fixed -- Tests: support 'substrate-node' too and allow multiple binary paths ([#1102](https://github.com/paritytech/subxt/pull/1102)) +- Tests: support 'bizinikiwi-node' too and allow multiple binary paths ([#1102](https://github.com/pezkuwichain/subxt/pull/1102)) ## [0.30.1] - 2023-07-25 @@ -1217,7 +1217,7 @@ This patch release fixes a small issue whereby using `runtime_metadata_url` in t ### Fixes -- codegen: Fetch and decode metadata version then fallback ([#1092](https://github.com/paritytech/subxt/pull/1092)) +- codegen: Fetch and decode metadata version then fallback ([#1092](https://github.com/pezkuwichain/subxt/pull/1092)) ## [0.30.0] - 2023-07-24 @@ -1233,19 +1233,19 @@ Here's how to use it: ```rust use subxt::{ client::{LightClient, LightClientBuilder}, - PolkadotConfig + PezkuwiConfig }; use subxt_signer::sr25519::dev; // Create a light client: -let api = LightClient::::builder() +let api = LightClient::::builder() // You can also pass a chain spec directly using `build`, which is preferred: .build_from_url("ws://127.0.0.1:9944") .await?; // Working with the interface is then the same as before: let dest = dev::bob().public_key().into(); -let balance_transfer_tx = polkadot::tx().balances().transfer(dest, 10_000); +let balance_transfer_tx = pezkuwi::tx().balances().transfer(dest, 10_000); let events = api .tx() .sign_and_submit_then_watch_default(&balance_transfer_tx, &dev::alice()) @@ -1263,9 +1263,9 @@ This release stabilizes the metadata V15 interface, which brings a few changes b ```rust // We can use the static interface to interact in a type safe way: #[subxt::subxt(runtime_metadata_path = "path/to/metadata.scale")] -pub mod polkadot {} +pub mod pezkuwi {} -let runtime_call = polkadot::apis() +let runtime_call = pezkuwi::apis() .metadata() .metadata_versions(); @@ -1286,14 +1286,14 @@ This is no longer behind a feature flag, but if the chain you're connecting to d The new `subxt-signer` crate provides the ability to sign transactions using either sr25519 or ECDSA. It's WASM compatible, and brings in fewer dependencies than using `sp_core`/`sp_keyring` does, while having an easy to use interface. Here's an example of signing a transaction using it: ```rust -use subxt::{OnlineClient, PolkadotConfig}; +use subxt::{OnlineClient, PezkuwiConfig}; use subxt_signer::sr25519::dev; -let api = OnlineClient::::new().await?; +let api = OnlineClient::::new().await?; // Build the extrinsic; a transfer to bob: let dest = dev::bob().public_key().into(); -let balance_transfer_tx = polkadot::tx().balances().transfer(dest, 10_000); +let balance_transfer_tx = pezkuwi::tx().balances().transfer(dest, 10_000); // Sign and submit the balance transfer extrinsic from Alice: let from = dev::alice(); @@ -1331,8 +1331,8 @@ let keypair = keypair.derive([ A few small breaking changes have occurred: - There is no longer a need for an `Index` associated type in your `Config` implementations; we now work it out dynamically where needed. -- The "substrate-compat" feature flag is no longer enabled by default. `subxt-signer` added native signing support and can be used instead of bringing in Substrate dependencies to sign transactions now. You can still enable this feature flag as before to make use of them if needed. - - **Note:** Be aware that Substrate crates haven't been published in a while and have fallen out of date, though. This will be addressed eventually, and when it is we can bring the Substrate crates back uptodate here. +- The "bizinikiwi-compat" feature flag is no longer enabled by default. `subxt-signer` added native signing support and can be used instead of bringing in Bizinikiwi dependencies to sign transactions now. You can still enable this feature flag as before to make use of them if needed. + - **Note:** Be aware that Bizinikiwi crates haven't been published in a while and have fallen out of date, though. This will be addressed eventually, and when it is we can bring the Bizinikiwi crates back uptodate here. For anything else that crops up, the compile errors and API docs will hopefully point you in the right direction, but please raise an issue if not. @@ -1340,36 +1340,36 @@ For a full list of changes, see below: ### Added -- Example: How to connect to parachain ([#1043](https://github.com/paritytech/subxt/pull/1043)) -- ECDSA Support in signer ([#1064](https://github.com/paritytech/subxt/pull/1064)) -- Add `subxt_signer` crate for native & WASM compatible signing ([#1016](https://github.com/paritytech/subxt/pull/1016)) -- Add light client platform WASM compatible ([#1026](https://github.com/paritytech/subxt/pull/1026)) -- light-client: Add experimental light-client support ([#965](https://github.com/paritytech/subxt/pull/965)) -- Add `diff` command to CLI tool to visualize metadata changes ([#1015](https://github.com/paritytech/subxt/pull/1015)) -- CLI: Allow output to be written to file ([#1018](https://github.com/paritytech/subxt/pull/1018)) +- Example: How to connect to parachain ([#1043](https://github.com/pezkuwichain/subxt/pull/1043)) +- ECDSA Support in signer ([#1064](https://github.com/pezkuwichain/subxt/pull/1064)) +- Add `subxt_signer` crate for native & WASM compatible signing ([#1016](https://github.com/pezkuwichain/subxt/pull/1016)) +- Add light client platform WASM compatible ([#1026](https://github.com/pezkuwichain/subxt/pull/1026)) +- light-client: Add experimental light-client support ([#965](https://github.com/pezkuwichain/subxt/pull/965)) +- Add `diff` command to CLI tool to visualize metadata changes ([#1015](https://github.com/pezkuwichain/subxt/pull/1015)) +- CLI: Allow output to be written to file ([#1018](https://github.com/pezkuwichain/subxt/pull/1018)) ### Changed -- Remove `substrate-compat` default feature flag ([#1078](https://github.com/paritytech/subxt/pull/1078)) -- runtime API: Substitute `UncheckedExtrinsic` with custom encoding ([#1076](https://github.com/paritytech/subxt/pull/1076)) -- Remove `Index` type from Config trait ([#1074](https://github.com/paritytech/subxt/pull/1074)) -- Utilize Metadata V15 ([#1041](https://github.com/paritytech/subxt/pull/1041)) -- chain_getBlock extrinsics encoding ([#1024](https://github.com/paritytech/subxt/pull/1024)) -- Make tx payload details public ([#1014](https://github.com/paritytech/subxt/pull/1014)) -- CLI tool tests ([#977](https://github.com/paritytech/subxt/pull/977)) -- Support NonZero numbers ([#1012](https://github.com/paritytech/subxt/pull/1012)) -- Get account nonce via state_call ([#1002](https://github.com/paritytech/subxt/pull/1002)) -- add `#[allow(rustdoc::broken_intra_doc_links)]` to subxt-codegen ([#998](https://github.com/paritytech/subxt/pull/998)) +- Remove `bizinikiwi-compat` default feature flag ([#1078](https://github.com/pezkuwichain/subxt/pull/1078)) +- runtime API: Substitute `UncheckedExtrinsic` with custom encoding ([#1076](https://github.com/pezkuwichain/subxt/pull/1076)) +- Remove `Index` type from Config trait ([#1074](https://github.com/pezkuwichain/subxt/pull/1074)) +- Utilize Metadata V15 ([#1041](https://github.com/pezkuwichain/subxt/pull/1041)) +- chain_getBlock extrinsics encoding ([#1024](https://github.com/pezkuwichain/subxt/pull/1024)) +- Make tx payload details public ([#1014](https://github.com/pezkuwichain/subxt/pull/1014)) +- CLI tool tests ([#977](https://github.com/pezkuwichain/subxt/pull/977)) +- Support NonZero numbers ([#1012](https://github.com/pezkuwichain/subxt/pull/1012)) +- Get account nonce via state_call ([#1002](https://github.com/pezkuwichain/subxt/pull/1002)) +- add `#[allow(rustdoc::broken_intra_doc_links)]` to subxt-codegen ([#998](https://github.com/pezkuwichain/subxt/pull/998)) ### Fixed -- remove parens in hex output for CLI tool ([#1017](https://github.com/paritytech/subxt/pull/1017)) -- Prevent bugs when reusing type ids in hashing ([#1075](https://github.com/paritytech/subxt/pull/1075)) -- Fix invalid generation of types with >1 generic parameters ([#1023](https://github.com/paritytech/subxt/pull/1023)) -- Fix jsonrpsee web features ([#1025](https://github.com/paritytech/subxt/pull/1025)) -- Fix codegen validation when Runtime APIs are stripped ([#1000](https://github.com/paritytech/subxt/pull/1000)) -- Fix hyperlink ([#994](https://github.com/paritytech/subxt/pull/994)) -- Remove invalid redundant clone warning ([#996](https://github.com/paritytech/subxt/pull/996)) +- remove parens in hex output for CLI tool ([#1017](https://github.com/pezkuwichain/subxt/pull/1017)) +- Prevent bugs when reusing type ids in hashing ([#1075](https://github.com/pezkuwichain/subxt/pull/1075)) +- Fix invalid generation of types with >1 generic parameters ([#1023](https://github.com/pezkuwichain/subxt/pull/1023)) +- Fix jsonrpsee web features ([#1025](https://github.com/pezkuwichain/subxt/pull/1025)) +- Fix codegen validation when Runtime APIs are stripped ([#1000](https://github.com/pezkuwichain/subxt/pull/1000)) +- Fix hyperlink ([#994](https://github.com/pezkuwichain/subxt/pull/994)) +- Remove invalid redundant clone warning ([#996](https://github.com/pezkuwichain/subxt/pull/996)) ## [0.29.0] - 2023-06-01 @@ -1379,7 +1379,7 @@ This is another big release for Subxt with a bunch of awesome changes. Let's tal This release will come with overhauled documentation and examples which is much more comprehensive than before, and goes into much more detail on each of the main areas that Subxt can work in. -Check out [the documentation](https://docs.rs/subxt/latest/subxt/) for more. We'll continue to build on this with some larger examples, too, going forwards. ([#968](https://github.com/paritytech/subxt/pull/968)) is particularly cool as it's our first example showcasing Subxt working with Yew and WASM; it'll be extended with more documentation and things in the next release. +Check out [the documentation](https://docs.rs/subxt/latest/subxt/) for more. We'll continue to build on this with some larger examples, too, going forwards. ([#968](https://github.com/pezkuwichain/subxt/pull/968)) is particularly cool as it's our first example showcasing Subxt working with Yew and WASM; it'll be extended with more documentation and things in the next release. ### A more powerful CLI tool: an `explore` command. @@ -1387,7 +1387,7 @@ The CLI tool has grown a new command, `explore`. Point it at a node and use `exp ### Support for (unstable) V15 metadata and generating a Runtime API interface -One of the biggest changes in this version is that, given (unstable) V15 metadata, Subxt can now generate a nice interface to make working with Runtime APIs as easy as building extrinsics or storage queries. This is currently unstable until the V15 metadata format is stabilised, and so will break as we introduce more tweaks to the metadata format. We hope to stabilise V15 metadata soon; [see this](https://forum.polkadot.network/t/stablising-v15-metadata/2819) for more information. At this point, we'll stabilize support in Subxt. +One of the biggest changes in this version is that, given (unstable) V15 metadata, Subxt can now generate a nice interface to make working with Runtime APIs as easy as building extrinsics or storage queries. This is currently unstable until the V15 metadata format is stabilised, and so will break as we introduce more tweaks to the metadata format. We hope to stabilise V15 metadata soon; [see this](https://forum.pezkuwi.network/t/stablising-v15-metadata/2819) for more information. At this point, we'll stabilize support in Subxt. ### Support for decoding extrinsics @@ -1396,25 +1396,25 @@ Up until now, you were able to retrieve the bytes for extrinsics, but weren't ab Now, we expose several methods to decode extrinsics that work much like decoding events: ```rust -#[subxt::subxt(runtime_metadata_path = "polkadot_metadata.scale")] -pub mod polkadot {} +#[subxt::subxt(runtime_metadata_path = "pezkuwi_metadata.scale")] +pub mod pezkuwi {} // Get some block: let block = api.blocks().at_latest().await?; // Find and decode a specific extrinsic in the block: -let remark = block.find::()?; +let remark = block.find::()?; // Iterate the extrinsics in the block: for ext in block.iter() { // Decode a specific extrinsic into the call data: - let remark = ext.as_extrinsic::()?; + let remark = ext.as_extrinsic::()?; // Decode any extrinsic into an enum containing the call data: - let extrinsic = ext.as_root_extrinsic::()?; + let extrinsic = ext.as_root_extrinsic::()?; } ``` -### New Metadata Type ([#974](https://github.com/paritytech/subxt/pull/974)) +### New Metadata Type ([#974](https://github.com/pezkuwichain/subxt/pull/974)) Previously, the `subxt_metadata` crate was simply a collection of functions that worked directly on `frame_metadata` types. Then, in `subxt`, we had a custom metadata type which wrapped this to provide the interface needed by various Subxt internals and traits. @@ -1440,7 +1440,7 @@ let metadata = Metadata::decode(&mut &*bytes).unwrap(); Otherwise, if you implement traits like `TxPayload` directly, you'll need to tweak the implementations to use the new `Metadata` type, which exposes everything you used to be able to get hold of but behind a slightly different interface. -### Removing `as_pallet_event` method ([#953](https://github.com/paritytech/subxt/pull/953)) +### Removing `as_pallet_event` method ([#953](https://github.com/pezkuwichain/subxt/pull/953)) In an effort to simplify the number of ways we have to decode events, `as_pallet_event` was removed. You can achieve a similar thing by calling `as_root_event`, which will decode _any_ event that the static interface knows about into an outer enum of pallet names to event names. if you only care about a specific event, you can match on this enum to look for events from a specific pallet. @@ -1454,53 +1454,53 @@ Beyond these, there's a bunch more that's been added, fixed and changes. A full ### Added -- Add topics to `EventDetails` ([#989](https://github.com/paritytech/subxt/pull/989)) -- Yew Subxt WASM examples ([#968](https://github.com/paritytech/subxt/pull/968)) -- CLI subxt explore commands ([#950](https://github.com/paritytech/subxt/pull/950)) -- Retain specific runtime APIs ([#961](https://github.com/paritytech/subxt/pull/961)) -- Subxt Guide ([#890](https://github.com/paritytech/subxt/pull/890)) -- Partial fee estimates for SubmittableExtrinsic ([#910](https://github.com/paritytech/subxt/pull/910)) -- Add ability to opt out from default derives and attributes ([#925](https://github.com/paritytech/subxt/pull/925)) -- add no_default_substitutions to the macro and cli ([#936](https://github.com/paritytech/subxt/pull/936)) -- extrinsics: Decode extrinsics from blocks ([#929](https://github.com/paritytech/subxt/pull/929)) -- Metadata V15: Generate Runtime APIs ([#918](https://github.com/paritytech/subxt/pull/918)) and ([#947](https://github.com/paritytech/subxt/pull/947)) -- impl Header and Hasher for some substrate types behind the "substrate-compat" feature flag ([#934](https://github.com/paritytech/subxt/pull/934)) -- add `as_root_error` for helping to decode ModuleErrors ([#930](https://github.com/paritytech/subxt/pull/930)) +- Add topics to `EventDetails` ([#989](https://github.com/pezkuwichain/subxt/pull/989)) +- Yew Subxt WASM examples ([#968](https://github.com/pezkuwichain/subxt/pull/968)) +- CLI subxt explore commands ([#950](https://github.com/pezkuwichain/subxt/pull/950)) +- Retain specific runtime APIs ([#961](https://github.com/pezkuwichain/subxt/pull/961)) +- Subxt Guide ([#890](https://github.com/pezkuwichain/subxt/pull/890)) +- Partial fee estimates for SubmittableExtrinsic ([#910](https://github.com/pezkuwichain/subxt/pull/910)) +- Add ability to opt out from default derives and attributes ([#925](https://github.com/pezkuwichain/subxt/pull/925)) +- add no_default_substitutions to the macro and cli ([#936](https://github.com/pezkuwichain/subxt/pull/936)) +- extrinsics: Decode extrinsics from blocks ([#929](https://github.com/pezkuwichain/subxt/pull/929)) +- Metadata V15: Generate Runtime APIs ([#918](https://github.com/pezkuwichain/subxt/pull/918)) and ([#947](https://github.com/pezkuwichain/subxt/pull/947)) +- impl Header and Hasher for some bizinikiwi types behind the "bizinikiwi-compat" feature flag ([#934](https://github.com/pezkuwichain/subxt/pull/934)) +- add `as_root_error` for helping to decode ModuleErrors ([#930](https://github.com/pezkuwichain/subxt/pull/930)) ### Changed -- Update scale-encode, scale-decode and scale-value to latest ([#991](https://github.com/paritytech/subxt/pull/991)) -- restrict sign_with_address_and_signature interface ([#988](https://github.com/paritytech/subxt/pull/988)) -- Introduce Metadata type ([#974](https://github.com/paritytech/subxt/pull/974)) and ([#978](https://github.com/paritytech/subxt/pull/978)) -- Have a pass over metadata validation ([#959](https://github.com/paritytech/subxt/pull/959)) -- remove as_pallet_extrinsic and as_pallet_event ([#953](https://github.com/paritytech/subxt/pull/953)) -- speed up ui tests. ([#944](https://github.com/paritytech/subxt/pull/944)) -- cli: Use WS by default instead of HTTP ([#954](https://github.com/paritytech/subxt/pull/954)) -- Upgrade to `syn 2.0` ([#875](https://github.com/paritytech/subxt/pull/875)) -- Move all deps to workspace toml ([#932](https://github.com/paritytech/subxt/pull/932)) -- Speed up CI ([#928](https://github.com/paritytech/subxt/pull/928)) and ([#926](https://github.com/paritytech/subxt/pull/926)) -- metadata: Use v15 internally ([#912](https://github.com/paritytech/subxt/pull/912)) -- Factor substrate node runner into separate crate ([#913](https://github.com/paritytech/subxt/pull/913)) -- Remove need to import parity-scale-codec to use subxt macro ([#907](https://github.com/paritytech/subxt/pull/907)) +- Update scale-encode, scale-decode and scale-value to latest ([#991](https://github.com/pezkuwichain/subxt/pull/991)) +- restrict sign_with_address_and_signature interface ([#988](https://github.com/pezkuwichain/subxt/pull/988)) +- Introduce Metadata type ([#974](https://github.com/pezkuwichain/subxt/pull/974)) and ([#978](https://github.com/pezkuwichain/subxt/pull/978)) +- Have a pass over metadata validation ([#959](https://github.com/pezkuwichain/subxt/pull/959)) +- remove as_pallet_extrinsic and as_pallet_event ([#953](https://github.com/pezkuwichain/subxt/pull/953)) +- speed up ui tests. ([#944](https://github.com/pezkuwichain/subxt/pull/944)) +- cli: Use WS by default instead of HTTP ([#954](https://github.com/pezkuwichain/subxt/pull/954)) +- Upgrade to `syn 2.0` ([#875](https://github.com/pezkuwichain/subxt/pull/875)) +- Move all deps to workspace toml ([#932](https://github.com/pezkuwichain/subxt/pull/932)) +- Speed up CI ([#928](https://github.com/pezkuwichain/subxt/pull/928)) and ([#926](https://github.com/pezkuwichain/subxt/pull/926)) +- metadata: Use v15 internally ([#912](https://github.com/pezkuwichain/subxt/pull/912)) +- Factor bizinikiwi node runner into separate crate ([#913](https://github.com/pezkuwichain/subxt/pull/913)) +- Remove need to import parity-scale-codec to use subxt macro ([#907](https://github.com/pezkuwichain/subxt/pull/907)) ### Fixed -- use blake2 for extrinsic hashing ([#921](https://github.com/paritytech/subxt/pull/921)) -- Ensure unique types in codegen ([#967](https://github.com/paritytech/subxt/pull/967)) -- use unit type in polkadot config ([#943](https://github.com/paritytech/subxt/pull/943)) +- use blake2 for extrinsic hashing ([#921](https://github.com/pezkuwichain/subxt/pull/921)) +- Ensure unique types in codegen ([#967](https://github.com/pezkuwichain/subxt/pull/967)) +- use unit type in pezkuwi config ([#943](https://github.com/pezkuwichain/subxt/pull/943)) ## [0.28.0] - 2023-04-11 This is a fairly significant change; what follows is a description of the main changes to be aware of: -### Unify how we encode and decode static and dynamic types ([#842](https://github.com/paritytech/subxt/pull/842)) +### Unify how we encode and decode static and dynamic types ([#842](https://github.com/pezkuwichain/subxt/pull/842)) Prior to this, static types generated by codegen (ie subxt macro) would implement `Encode` and `Decode` from the `parity-scale-codec` library. This meant that they woule be encoded-to and decoded-from based on their shape. Dynamic types (eg the `subxt::dynamic::Value` type) would be encoded and decoded based on the node metadata instead. -This change makes use of the new `scale-encode` and `scale-decode` crates to auto-implement `EncodeAsType` and `DecodeAsType` on all of our static types. These traits allow types to take the node metadata into account when working out how best to encode and decode into them. By using metadata, we can be much more flexible/robust about how to encode/decode various types (as an example, nested transactions will now be portable across runtimes). Additionally, we can merge our codepaths for static and dynamic encoding/decoding, since both static and dynamic types can implement these traits. Read [the PR description](https://github.com/paritytech/subxt/pull/842) for more info. +This change makes use of the new `scale-encode` and `scale-decode` crates to auto-implement `EncodeAsType` and `DecodeAsType` on all of our static types. These traits allow types to take the node metadata into account when working out how best to encode and decode into them. By using metadata, we can be much more flexible/robust about how to encode/decode various types (as an example, nested transactions will now be portable across runtimes). Additionally, we can merge our codepaths for static and dynamic encoding/decoding, since both static and dynamic types can implement these traits. Read [the PR description](https://github.com/pezkuwichain/subxt/pull/842) for more info. -A notable impact of this is that any types you wish to substitute when performing codegen (via the CLI tool or `#[subxt]` macro) must also implement `EncodeAsType` and `DecodeAsType` too. Substrate types, for instance, generally do not. To work around this, [#886](https://github.com/paritytech/subxt/pull/886) introduces a `Static` type and enhances the type substitution logic so that you're able to wrap any types which only implement `Encode` and `Decode` to work (note that you lose out on the improvements from `EncodeAsType` and `DecodeAsType` when you do this): +A notable impact of this is that any types you wish to substitute when performing codegen (via the CLI tool or `#[subxt]` macro) must also implement `EncodeAsType` and `DecodeAsType` too. Bizinikiwi types, for instance, generally do not. To work around this, [#886](https://github.com/pezkuwichain/subxt/pull/886) introduces a `Static` type and enhances the type substitution logic so that you're able to wrap any types which only implement `Encode` and `Decode` to work (note that you lose out on the improvements from `EncodeAsType` and `DecodeAsType` when you do this): ```rust #[subxt::subxt( @@ -1513,7 +1513,7 @@ A notable impact of this is that any types you wish to substitute when performin pub mod node_runtime {} ``` -So, if you want to substitute in Substrate types, wrap them in `::subxt::utils::Static` in the type substitution, as above. [#886](https://github.com/paritytech/subxt/pull/886) also generally improves type substitution so that you can substitute the generic params in nested types, since it's required in the above. +So, if you want to substitute in Bizinikiwi types, wrap them in `::subxt::utils::Static` in the type substitution, as above. [#886](https://github.com/pezkuwichain/subxt/pull/886) also generally improves type substitution so that you can substitute the generic params in nested types, since it's required in the above. Several types have been renamed as a result of this unification (though they aren't commonly made explicit use of). Additionally, to obtain the bytes from a storage address, instead of doing: @@ -1529,7 +1529,7 @@ let addr_bytes = cxt.client().storage().address_bytes(&storage_address).unwrap() This is because the address on it's own no longer requires as much static information, and relies more heavily now on the node metadata to encode it to bytes. -### Expose Signer payload ([#861](https://github.com/paritytech/subxt/pull/861)) +### Expose Signer payload ([#861](https://github.com/pezkuwichain/subxt/pull/861)) This is not a breaking change, but notable in that is adds `create_partial_signed_with_nonce` and `create_partial_signed` to the `TxClient` to allow you to break extrinsic creation into two steps: @@ -1538,13 +1538,13 @@ This is not a breaking change, but notable in that is adds `create_partial_signe This allows a signer payload to be obtained from Subxt, handed off to some external application, and then once a signature has been obtained, that can be passed back to Subxt to complete the creation of an extrinsic. This opens the door to using browser wallet extensions, for instance, to sign Subxt payloads. -### Stripping unneeded pallets from metadata ([#879](https://github.com/paritytech/subxt/pull/879)) +### Stripping unneeded pallets from metadata ([#879](https://github.com/pezkuwichain/subxt/pull/879)) This is not a breaking change, but adds the ability to use the Subxt CLI tool to strip out all but some named list of pallets from a metadata bundle. Aside from allowing you to store a significantly smaller metadata bundle with only the APIs you need in it, it will also lead to faster codegen, since there's much less of it to do. Use a command like `subxt metadata --pallets Balances,System` to select specific pallets. You can provide an existing metadata file to take that and strip it, outputting a smaller bundle. Alternately it will grab the metadata from a local node and strip that before outputting. -### Dispatch error changes ([#878](https://github.com/paritytech/subxt/pull/878)) +### Dispatch error changes ([#878](https://github.com/pezkuwichain/subxt/pull/878)) The `DispatchError` returned from either attempting to submit an extrinsic, or from calling `.dry_run()` has changed. It's now far more complete with respect to the information it returns in each case, and the interface has been tidied up. Changes include: @@ -1553,9 +1553,9 @@ The `DispatchError` returned from either attempting to submit an extrinsic, or f - Errors in general have been marked `#[non_exahustive]` since they could grow and change at any time. (Owing to our use of `scale-decode` internally, we are not so contrained when it comes to having precise variant indexes or anything now, and can potentially deprecate rather than remove old variants as needed). - On a lower level, the `rpc.dry_run()` RPC call now returns the raw dry run bytes which can then be decoded with the help of metadata into our `DryRunResult`. -### Extrinsic submission changes ([#897](https://github.com/paritytech/subxt/pull/897)) +### Extrinsic submission changes ([#897](https://github.com/pezkuwichain/subxt/pull/897)) -It was found by [@furoxr](https://github.com/furoxr) that Substrate nodes will stop sending transaction progress events under more circumstances than we originally expected. Thus, now calls like `wait_for_finalized()` and `wait_for_in_block()` will stop waiting for events when any of the following is sent from the node: +It was found by [@furoxr](https://github.com/furoxr) that Bizinikiwi nodes will stop sending transaction progress events under more circumstances than we originally expected. Thus, now calls like `wait_for_finalized()` and `wait_for_in_block()` will stop waiting for events when any of the following is sent from the node: - `Usurped` - `Finalized` @@ -1565,7 +1565,7 @@ It was found by [@furoxr](https://github.com/furoxr) that Substrate nodes will s Previously we'd only close the subscription and stop waiting when we saw a `Finalized` or `FinalityTimeout` event. Thanks for digging into this [@furoxr](https://github.com/furoxr)! -### Add `at_latest()` method ([#900](https://github.com/paritytech/subxt/pull/900) and [#904](https://github.com/paritytech/subxt/pull/904)) +### Add `at_latest()` method ([#900](https://github.com/pezkuwichain/subxt/pull/900) and [#904](https://github.com/pezkuwichain/subxt/pull/904)) A small breaking change; previously we had `.at(None)` or `.at(Some(block_hash))` methods in a few places to obtain things at either the latest block or some specific block hash. @@ -1575,66 +1575,66 @@ That covers the larger changes in this release. For more details, have a look at ### Added -- added at_latest ([#900](https://github.com/paritytech/subxt/pull/900) and [#904](https://github.com/paritytech/subxt/pull/904)) -- Metadata: Retain a subset of metadata pallets ([#879](https://github.com/paritytech/subxt/pull/879)) -- Expose signer payload to allow external signing ([#861](https://github.com/paritytech/subxt/pull/861)) -- Add ink! as a user of `subxt` ([#837](https://github.com/paritytech/subxt/pull/837)) -- codegen: Add codegen error ([#841](https://github.com/paritytech/subxt/pull/841)) -- codegen: allow documentation to be opted out of ([#843](https://github.com/paritytech/subxt/pull/843)) -- re-export `sp_core` and `sp_runtime` ([#853](https://github.com/paritytech/subxt/pull/853)) -- Allow generating only runtime types in subxt macro ([#845](https://github.com/paritytech/subxt/pull/845)) -- Add 'Static' type and improve type substitution codegen to accept it ([#886](https://github.com/paritytech/subxt/pull/886)) +- added at_latest ([#900](https://github.com/pezkuwichain/subxt/pull/900) and [#904](https://github.com/pezkuwichain/subxt/pull/904)) +- Metadata: Retain a subset of metadata pallets ([#879](https://github.com/pezkuwichain/subxt/pull/879)) +- Expose signer payload to allow external signing ([#861](https://github.com/pezkuwichain/subxt/pull/861)) +- Add ink! as a user of `subxt` ([#837](https://github.com/pezkuwichain/subxt/pull/837)) +- codegen: Add codegen error ([#841](https://github.com/pezkuwichain/subxt/pull/841)) +- codegen: allow documentation to be opted out of ([#843](https://github.com/pezkuwichain/subxt/pull/843)) +- re-export `sp_core` and `sp_runtime` ([#853](https://github.com/pezkuwichain/subxt/pull/853)) +- Allow generating only runtime types in subxt macro ([#845](https://github.com/pezkuwichain/subxt/pull/845)) +- Add 'Static' type and improve type substitution codegen to accept it ([#886](https://github.com/pezkuwichain/subxt/pull/886)) ### Changed -- Improve Dispatch Errors ([#878](https://github.com/paritytech/subxt/pull/878)) -- Use scale-encode and scale-decode to encode and decode based on metadata ([#842](https://github.com/paritytech/subxt/pull/842)) -- For smoldot: support deserializing block number in header from hex or number ([#863](https://github.com/paritytech/subxt/pull/863)) -- Bump Substrate dependencies to latest ([#905](https://github.com/paritytech/subxt/pull/905)) +- Improve Dispatch Errors ([#878](https://github.com/pezkuwichain/subxt/pull/878)) +- Use scale-encode and scale-decode to encode and decode based on metadata ([#842](https://github.com/pezkuwichain/subxt/pull/842)) +- For smoldot: support deserializing block number in header from hex or number ([#863](https://github.com/pezkuwichain/subxt/pull/863)) +- Bump Bizinikiwi dependencies to latest ([#905](https://github.com/pezkuwichain/subxt/pull/905)) ### Fixed -- wait_for_finalized behavior if the tx dropped, usurped or invalid ([#897](https://github.com/paritytech/subxt/pull/897)) +- wait_for_finalized behavior if the tx dropped, usurped or invalid ([#897](https://github.com/pezkuwichain/subxt/pull/897)) ## [0.27.1] - 2023-02-15 ### Added -- Add `find_last` for block types ([#825](https://github.com/paritytech/subxt/pull/825)) +- Add `find_last` for block types ([#825](https://github.com/pezkuwichain/subxt/pull/825)) ## [0.27.0] - 2023-02-13 -This is a fairly small release, primarily to bump substrate dependencies to their latest versions. +This is a fairly small release, primarily to bump bizinikiwi dependencies to their latest versions. -The main breaking change is fairly small: [#804](https://github.com/paritytech/subxt/pull/804). Here, the `BlockNumber` associated type has been removed from `Config` entirely, since it wasn't actually needed anywhere in Subxt. Additionally, the constraints on each of those associated types in `Config` were made more precise, primarily to tidy things up (but this should result in types more easily being able to meet the requirements here). If you use custom `Config`, the fix is simply to remove the `BlockNumber` type. If you also use the `Config` trait in your own functions and depend on those constraints, you may be able to define a custom `MyConfig` type which builds off `Config` and adds back any additional bounds that you want. +The main breaking change is fairly small: [#804](https://github.com/pezkuwichain/subxt/pull/804). Here, the `BlockNumber` associated type has been removed from `Config` entirely, since it wasn't actually needed anywhere in Subxt. Additionally, the constraints on each of those associated types in `Config` were made more precise, primarily to tidy things up (but this should result in types more easily being able to meet the requirements here). If you use custom `Config`, the fix is simply to remove the `BlockNumber` type. If you also use the `Config` trait in your own functions and depend on those constraints, you may be able to define a custom `MyConfig` type which builds off `Config` and adds back any additional bounds that you want. Note worthy PRs merged since the last release: ### Added -- Add find last function ([#821](https://github.com/paritytech/subxt/pull/821)) -- Doc: first item is current version comment ([#817](https://github.com/paritytech/subxt/pull/817)) +- Add find last function ([#821](https://github.com/pezkuwichain/subxt/pull/821)) +- Doc: first item is current version comment ([#817](https://github.com/pezkuwichain/subxt/pull/817)) ### Changed -- Remove unneeded Config bounds and BlockNumber associated type ([#804](https://github.com/paritytech/subxt/pull/804)) +- Remove unneeded Config bounds and BlockNumber associated type ([#804](https://github.com/pezkuwichain/subxt/pull/804)) ## [0.26.0] - 2023-01-24 This release adds a number of improvements, most notably: -- We make Substrate dependencies optional ([#760](https://github.com/paritytech/subxt/pull/760)), which makes WASM builds both smaller and more reliable. To do this, we re-implement some core types like `AccountId32`, `MultiAddress` and `MultiSignature` internally. -- Allow access to storage entries ([#774](https://github.com/paritytech/subxt/pull/774)) and runtime API's ([#777](https://github.com/paritytech/subxt/pull/777)) from some block. This is part of a move towards a more "block centric" interface, which will better align with the newly available `chainHead` style RPC interface. -- Add RPC methods for the new `chainHead` style interface (see https://paritytech.github.io/json-rpc-interface-spec/). These are currently unstable, but will allow users to start experimenting with this new API if their nodes support it. -- More advanced type substitution is now possible in the codegen interface ([#735](https://github.com/paritytech/subxt/pull/735)). +- We make Bizinikiwi dependencies optional ([#760](https://github.com/pezkuwichain/subxt/pull/760)), which makes WASM builds both smaller and more reliable. To do this, we re-implement some core types like `AccountId32`, `MultiAddress` and `MultiSignature` internally. +- Allow access to storage entries ([#774](https://github.com/pezkuwichain/subxt/pull/774)) and runtime API's ([#777](https://github.com/pezkuwichain/subxt/pull/777)) from some block. This is part of a move towards a more "block centric" interface, which will better align with the newly available `chainHead` style RPC interface. +- Add RPC methods for the new `chainHead` style interface (see https://pezkuwichain.github.io/json-rpc-interface-spec/). These are currently unstable, but will allow users to start experimenting with this new API if their nodes support it. +- More advanced type substitution is now possible in the codegen interface ([#735](https://github.com/pezkuwichain/subxt/pull/735)). This release introduces a number of breaking changes that can be generally be fixed with mechanical tweaks to your code. The notable changes are described below. ### Make Storage API more Block-centric -See [#774](https://github.com/paritytech/subxt/pull/774). This PR makes the Storage API more consistent with the Events API, and allows access to it from a given block as part of a push to provide a more block centric API that will hopefully be easier to understand, and will align with the new RPC `chainHead` style RPC interface. +See [#774](https://github.com/pezkuwichain/subxt/pull/774). This PR makes the Storage API more consistent with the Events API, and allows access to it from a given block as part of a push to provide a more block centric API that will hopefully be easier to understand, and will align with the new RPC `chainHead` style RPC interface. Before, your code will look like: @@ -1659,10 +1659,10 @@ let a = block.storage().fetch(&staking_bonded, None).await?; ### More advanced type substitution in codegen -See [#735](https://github.com/paritytech/subxt/pull/735). Previously, you could perform basic type substitution like this: +See [#735](https://github.com/pezkuwichain/subxt/pull/735). Previously, you could perform basic type substitution like this: ```rust -#[subxt::subxt(runtime_metadata_path = "../polkadot_metadata.scale")] +#[subxt::subxt(runtime_metadata_path = "../pezkuwi_metadata.scale")] pub mod node_runtime { #[subxt::subxt(substitute_type = "sp_arithmetic::per_things::Foo")] use crate::Foo; @@ -1675,7 +1675,7 @@ We've changed the interface above into: ```rust #[subxt::subxt( - runtime_metadata_path = "../polkadot_metadata.scale", + runtime_metadata_path = "../pezkuwi_metadata.scale", substitute_type( type = "sp_arithmetic::per_things::Foo", with = "crate::Foo" @@ -1686,9 +1686,9 @@ pub mod node_runtime {} In this example, we can (optionally) specify the generic parameters we expect to see on the original type ("type"), and then of those, decide which should be present on the substitute type ("with"). If no parameters are provided at all, we'll get the same behaviour as before. This allows much more flexibility when defining substitute types. -### Optional Substrate dependencies +### Optional Bizinikiwi dependencies -See [#760](https://github.com/paritytech/subxt/pull/760). Subxt now has a "substrate-compat" feature (enabled by default, and disabled for WASM builds). At present, enabling this feature simply exposes the `PairSigner` (which was always available before), allowing transactions to be signed via Substrate signer logic (as before). When disabled, you (currently) must bring your own signer implementation, but in return we can avoid bringing in a substantial number of Substrate dependencies in the process. +See [#760](https://github.com/pezkuwichain/subxt/pull/760). Subxt now has a "bizinikiwi-compat" feature (enabled by default, and disabled for WASM builds). At present, enabling this feature simply exposes the `PairSigner` (which was always available before), allowing transactions to be signed via Bizinikiwi signer logic (as before). When disabled, you (currently) must bring your own signer implementation, but in return we can avoid bringing in a substantial number of Bizinikiwi dependencies in the process. Regardless, this change also tidied up and moved various bits and pieces around to be consistent with this goal. To address some common moves, previously we'd have: @@ -1701,7 +1701,7 @@ use subxt::{ tx::{ Era, PlainTip, - PolkadotExtrinsicParamsBuilder + PezkuwiExtrinsicParamsBuilder } }; ``` @@ -1719,53 +1719,53 @@ use subxt::{ utils::AccountId32, // traits used in our `Config` trait are now provided directly in this module: config::Header, - // Polkadot and Substrate specific Config types are now in the relevant Config section: - config::polkadot::{ + // Pezkuwi and Bizinikiwi specific Config types are now in the relevant Config section: + config::pezkuwi::{ Era, PlainTip, - PolkadotExtrinsicParamsBuilder + PezkuwiExtrinsicParamsBuilder } } ``` -Additionally, the `type Hashing` in the `Config` trait is now called `Hasher`, to clarify what it is, and types returned directly from the RPC calls now all live in `crate::rpc::types`, rather than sometimes living in Substrate crates. +Additionally, the `type Hashing` in the `Config` trait is now called `Hasher`, to clarify what it is, and types returned directly from the RPC calls now all live in `crate::rpc::types`, rather than sometimes living in Bizinikiwi crates. Some other note worthy PRs that were merged since the last release: ### Added -- Add block-centric Storage API ([#774](https://github.com/paritytech/subxt/pull/774)) -- Add `chainHead` RPC methods ([#766](https://github.com/paritytech/subxt/pull/766)) -- Allow for remapping type parameters in type substitutions ([#735](https://github.com/paritytech/subxt/pull/735)) -- Add ability to set custom metadata etc on OnlineClient ([#794](https://github.com/paritytech/subxt/pull/794)) -- Add `Cargo.lock` for deterministic builds ([#795](https://github.com/paritytech/subxt/pull/795)) -- Add API to execute runtime calls ([#777](https://github.com/paritytech/subxt/pull/777)) -- Add bitvec-like generic support to the scale-bits type for use in codegen ([#718](https://github.com/paritytech/subxt/pull/718)) -- Add `--derive-for-type` to cli ([#708](https://github.com/paritytech/subxt/pull/708)) +- Add block-centric Storage API ([#774](https://github.com/pezkuwichain/subxt/pull/774)) +- Add `chainHead` RPC methods ([#766](https://github.com/pezkuwichain/subxt/pull/766)) +- Allow for remapping type parameters in type substitutions ([#735](https://github.com/pezkuwichain/subxt/pull/735)) +- Add ability to set custom metadata etc on OnlineClient ([#794](https://github.com/pezkuwichain/subxt/pull/794)) +- Add `Cargo.lock` for deterministic builds ([#795](https://github.com/pezkuwichain/subxt/pull/795)) +- Add API to execute runtime calls ([#777](https://github.com/pezkuwichain/subxt/pull/777)) +- Add bitvec-like generic support to the scale-bits type for use in codegen ([#718](https://github.com/pezkuwichain/subxt/pull/718)) +- Add `--derive-for-type` to cli ([#708](https://github.com/pezkuwichain/subxt/pull/708)) ### Changed -- rename subscribe_to_updates() to updater() ([#792](https://github.com/paritytech/subxt/pull/792)) -- Expose `Update` ([#791](https://github.com/paritytech/subxt/pull/791)) -- Expose version info in CLI tool with build-time obtained git hash ([#787](https://github.com/paritytech/subxt/pull/787)) -- Implement deserialize on AccountId32 ([#773](https://github.com/paritytech/subxt/pull/773)) -- Codegen: Preserve attrs and add #[allow(clippy::all)] ([#784](https://github.com/paritytech/subxt/pull/784)) -- make ChainBlockExtrinsic cloneable ([#778](https://github.com/paritytech/subxt/pull/778)) -- Make sp_core and sp_runtime dependencies optional, and bump to latest ([#760](https://github.com/paritytech/subxt/pull/760)) -- Make verbose rpc error display ([#758](https://github.com/paritytech/subxt/pull/758)) -- rpc: Expose the `subscription ID` for `RpcClientT` ([#733](https://github.com/paritytech/subxt/pull/733)) -- events: Fetch metadata at arbitrary blocks ([#727](https://github.com/paritytech/subxt/pull/727)) +- rename subscribe_to_updates() to updater() ([#792](https://github.com/pezkuwichain/subxt/pull/792)) +- Expose `Update` ([#791](https://github.com/pezkuwichain/subxt/pull/791)) +- Expose version info in CLI tool with build-time obtained git hash ([#787](https://github.com/pezkuwichain/subxt/pull/787)) +- Implement deserialize on AccountId32 ([#773](https://github.com/pezkuwichain/subxt/pull/773)) +- Codegen: Preserve attrs and add #[allow(clippy::all)] ([#784](https://github.com/pezkuwichain/subxt/pull/784)) +- make ChainBlockExtrinsic cloneable ([#778](https://github.com/pezkuwichain/subxt/pull/778)) +- Make sp_core and sp_runtime dependencies optional, and bump to latest ([#760](https://github.com/pezkuwichain/subxt/pull/760)) +- Make verbose rpc error display ([#758](https://github.com/pezkuwichain/subxt/pull/758)) +- rpc: Expose the `subscription ID` for `RpcClientT` ([#733](https://github.com/pezkuwichain/subxt/pull/733)) +- events: Fetch metadata at arbitrary blocks ([#727](https://github.com/pezkuwichain/subxt/pull/727)) ### Fixed -- Fix decoding events via `.as_root_event()` and add test ([#767](https://github.com/paritytech/subxt/pull/767)) -- Retain Rust code items from `mod` decorated with `subxt` attribute ([#721](https://github.com/paritytech/subxt/pull/721)) +- Fix decoding events via `.as_root_event()` and add test ([#767](https://github.com/pezkuwichain/subxt/pull/767)) +- Retain Rust code items from `mod` decorated with `subxt` attribute ([#721](https://github.com/pezkuwichain/subxt/pull/721)) ## [0.25.0] - 2022-11-16 -This release resolves the `parity-util-mem crate` several version guard by updating substrate related dependencies which makes -it possible to have other substrate dependencies in tree again along with subxt. +This release resolves the `parity-util-mem crate` several version guard by updating bizinikiwi related dependencies which makes +it possible to have other bizinikiwi dependencies in tree again along with subxt. In addition the release has several API improvements in the dynamic transaction API along with that subxt now compiles down to WASM. @@ -1773,33 +1773,33 @@ Notable PRs merged: ### Added -- Add getters for `Module` ([#697](https://github.com/paritytech/subxt/pull/697)) -- add wasm support ([#700](https://github.com/paritytech/subxt/pull/700)) -- Extend the new `api.blocks()` to be the primary way to subscribe and fetch blocks/extrinsics/events ([#691](https://github.com/paritytech/subxt/pull/691)) -- Add runtime_metadata_url to pull metadata directly from a node ([#689](https://github.com/paritytech/subxt/pull/689)) -- Implement `BlocksClient` for working with blocks ([#671](https://github.com/paritytech/subxt/pull/671)) -- Allow specifying the `subxt` crate path for generated code ([#664](https://github.com/paritytech/subxt/pull/664)) -- Allow taking out raw bytes from a SubmittableExtrinsic ([#683](https://github.com/paritytech/subxt/pull/683)) -- Add DecodedValueThunk to allow getting bytes back from dynamic queries ([#680](https://github.com/paritytech/subxt/pull/680)) +- Add getters for `Module` ([#697](https://github.com/pezkuwichain/subxt/pull/697)) +- add wasm support ([#700](https://github.com/pezkuwichain/subxt/pull/700)) +- Extend the new `api.blocks()` to be the primary way to subscribe and fetch blocks/extrinsics/events ([#691](https://github.com/pezkuwichain/subxt/pull/691)) +- Add runtime_metadata_url to pull metadata directly from a node ([#689](https://github.com/pezkuwichain/subxt/pull/689)) +- Implement `BlocksClient` for working with blocks ([#671](https://github.com/pezkuwichain/subxt/pull/671)) +- Allow specifying the `subxt` crate path for generated code ([#664](https://github.com/pezkuwichain/subxt/pull/664)) +- Allow taking out raw bytes from a SubmittableExtrinsic ([#683](https://github.com/pezkuwichain/subxt/pull/683)) +- Add DecodedValueThunk to allow getting bytes back from dynamic queries ([#680](https://github.com/pezkuwichain/subxt/pull/680)) ### Changed -- Update substrate crates ([#709](https://github.com/paritytech/subxt/pull/709)) -- Make working with nested queries a touch easier ([#714](https://github.com/paritytech/subxt/pull/714)) -- Upgrade to scale-info 2.3 and fix errors ([#704](https://github.com/paritytech/subxt/pull/704)) -- No need to entangle Signer and nonce now ([#702](https://github.com/paritytech/subxt/pull/702)) -- error: `RpcError` with custom client error ([#694](https://github.com/paritytech/subxt/pull/694)) -- into_encoded() for consistency ([#685](https://github.com/paritytech/subxt/pull/685)) -- make subxt::Config::Extrinsic Send ([#681](https://github.com/paritytech/subxt/pull/681)) -- Refactor CLI tool to give room for growth ([#667](https://github.com/paritytech/subxt/pull/667)) -- expose jsonrpc-core client ([#672](https://github.com/paritytech/subxt/pull/672)) -- Upgrade clap to v4 ([#678](https://github.com/paritytech/subxt/pull/678)) +- Update bizinikiwi crates ([#709](https://github.com/pezkuwichain/subxt/pull/709)) +- Make working with nested queries a touch easier ([#714](https://github.com/pezkuwichain/subxt/pull/714)) +- Upgrade to scale-info 2.3 and fix errors ([#704](https://github.com/pezkuwichain/subxt/pull/704)) +- No need to entangle Signer and nonce now ([#702](https://github.com/pezkuwichain/subxt/pull/702)) +- error: `RpcError` with custom client error ([#694](https://github.com/pezkuwichain/subxt/pull/694)) +- into_encoded() for consistency ([#685](https://github.com/pezkuwichain/subxt/pull/685)) +- make subxt::Config::Extrinsic Send ([#681](https://github.com/pezkuwichain/subxt/pull/681)) +- Refactor CLI tool to give room for growth ([#667](https://github.com/pezkuwichain/subxt/pull/667)) +- expose jsonrpc-core client ([#672](https://github.com/pezkuwichain/subxt/pull/672)) +- Upgrade clap to v4 ([#678](https://github.com/pezkuwichain/subxt/pull/678)) ## [0.24.0] - 2022-09-22 This release has a bunch of smaller changes and fixes. The breaking changes are fairly minor and should be easy to address if encountered. Notable additions are: -- Allowing the underlying RPC implementation to be swapped out ([#634](https://github.com/paritytech/subxt/pull/634)). This makes `jsonrpsee` an optional dependency, and opens the door for Subxt to be integrated into things like light clients, since we can decide how to handle RPC calls. +- Allowing the underlying RPC implementation to be swapped out ([#634](https://github.com/pezkuwichain/subxt/pull/634)). This makes `jsonrpsee` an optional dependency, and opens the door for Subxt to be integrated into things like light clients, since we can decide how to handle RPC calls. - A low level "runtime upgrade" API is exposed, giving more visibility into when node updates happen in case your application needs to handle them. - `scale-value` and `scale-decode` dependencies are bumped. The main effect of this is that `bitvec` is no longer used under the hood in the core of Subxt, which helps to remove one hurdle on the way to being able to compile it to WASM. @@ -1807,33 +1807,33 @@ Notable PRs merged: ### Added -- feat: add low-level `runtime upgrade API` ([#657](https://github.com/paritytech/subxt/pull/657)) -- Add accessor for `StaticTxPayload::call_data` ([#660](https://github.com/paritytech/subxt/pull/660)) -- Store type name of a field in event metadata, and export EventFieldMetadata ([#656](https://github.com/paritytech/subxt/pull/656) and [#654](https://github.com/paritytech/subxt/pull/654)) -- Allow generalising over RPC implementation ([#634](https://github.com/paritytech/subxt/pull/634)) -- Add conversion and default functions for `NumberOrHex` ([#636](https://github.com/paritytech/subxt/pull/636)) -- Allow creating/submitting unsigned transactions, too. ([#625](https://github.com/paritytech/subxt/pull/625)) -- Add Staking Miner and Introspector to usage list ([#647](https://github.com/paritytech/subxt/pull/647)) +- feat: add low-level `runtime upgrade API` ([#657](https://github.com/pezkuwichain/subxt/pull/657)) +- Add accessor for `StaticTxPayload::call_data` ([#660](https://github.com/pezkuwichain/subxt/pull/660)) +- Store type name of a field in event metadata, and export EventFieldMetadata ([#656](https://github.com/pezkuwichain/subxt/pull/656) and [#654](https://github.com/pezkuwichain/subxt/pull/654)) +- Allow generalising over RPC implementation ([#634](https://github.com/pezkuwichain/subxt/pull/634)) +- Add conversion and default functions for `NumberOrHex` ([#636](https://github.com/pezkuwichain/subxt/pull/636)) +- Allow creating/submitting unsigned transactions, too. ([#625](https://github.com/pezkuwichain/subxt/pull/625)) +- Add Staking Miner and Introspector to usage list ([#647](https://github.com/pezkuwichain/subxt/pull/647)) ### Changed -- Bump scale-value and scale-decode ([#659](https://github.com/paritytech/subxt/pull/659)) -- Tweak 0.23 notes and add another test for events ([#618](https://github.com/paritytech/subxt/pull/618)) -- Specialize metadata errors ([#633](https://github.com/paritytech/subxt/pull/633)) -- Simplify the TxPayload trait a little ([#638](https://github.com/paritytech/subxt/pull/638)) -- Remove unnecessary `async` ([#645](https://github.com/paritytech/subxt/pull/645)) -- Use 'sp_core::Hxxx' for all hash types ([#623](https://github.com/paritytech/subxt/pull/623)) +- Bump scale-value and scale-decode ([#659](https://github.com/pezkuwichain/subxt/pull/659)) +- Tweak 0.23 notes and add another test for events ([#618](https://github.com/pezkuwichain/subxt/pull/618)) +- Specialize metadata errors ([#633](https://github.com/pezkuwichain/subxt/pull/633)) +- Simplify the TxPayload trait a little ([#638](https://github.com/pezkuwichain/subxt/pull/638)) +- Remove unnecessary `async` ([#645](https://github.com/pezkuwichain/subxt/pull/645)) +- Use 'sp_core::Hxxx' for all hash types ([#623](https://github.com/pezkuwichain/subxt/pull/623)) ### Fixed -- Fix `history_depth` testing ([#662](https://github.com/paritytech/subxt/pull/662)) -- Fix codegen for `codec::Compact` as type parameters ([#651](https://github.com/paritytech/subxt/pull/651)) -- Support latest substrate release ([#653](https://github.com/paritytech/subxt/pull/653)) +- Fix `history_depth` testing ([#662](https://github.com/pezkuwichain/subxt/pull/662)) +- Fix codegen for `codec::Compact` as type parameters ([#651](https://github.com/pezkuwichain/subxt/pull/651)) +- Support latest bizinikiwi release ([#653](https://github.com/pezkuwichain/subxt/pull/653)) ## [0.23.0] - 2022-08-11 -This is one of the most significant releases to date in Subxt, and carries with it a number of significant breaking changes, but in exchange, a number of significant improvements. The most significant PR is [#593](https://github.com/paritytech/subxt/pull/593); the fundamental change that this makes is to separate creating a query/transaction/address from submitting it. This gives us flexibility when creating queries; they can be either dynamically or statically generated, but also flexibility in our client, enabling methods to be exposed for online or offline use. +This is one of the most significant releases to date in Subxt, and carries with it a number of significant breaking changes, but in exchange, a number of significant improvements. The most significant PR is [#593](https://github.com/pezkuwichain/subxt/pull/593); the fundamental change that this makes is to separate creating a query/transaction/address from submitting it. This gives us flexibility when creating queries; they can be either dynamically or statically generated, but also flexibility in our client, enabling methods to be exposed for online or offline use. The best place to look to get a feel for what's changed, aside from the documentation itself, is the `examples` folder. What follows are some examples of the changes you'll need to make, which all follow a similar pattern: @@ -1845,7 +1845,7 @@ Previously, we'd build a client which is tied to the static codegen, and then us let api = ClientBuilder::new() .build() .await? - .to_runtime_api::>>(); + .to_runtime_api::>>(); let balance_transfer = api .tx() @@ -1860,9 +1860,9 @@ let balance_transfer = api Now, we build a transaction separately (in this case, using static codegen to guide us as before) and then submit it to a client like so: ``` rust -let api = OnlineClient::::new().await?; +let api = OnlineClient::::new().await?; -let balance_transfer_tx = polkadot::tx().balances().transfer(dest, 10_000); +let balance_transfer_tx = pezkuwi::tx().balances().transfer(dest, 10_000); let balance_transfer = api .tx() @@ -1882,7 +1882,7 @@ Previously, we build and submit a storage query in one step: let api = ClientBuilder::new() .build() .await? - .to_runtime_api::>>(); + .to_runtime_api::>>(); let entry = api.storage().staking().bonded(&addr, None).await; ``` @@ -1890,9 +1890,9 @@ let entry = api.storage().staking().bonded(&addr, None).await; Now, we build the storage query separately and submit it to the client: ```rust -let api = OnlineClient::::new().await?; +let api = OnlineClient::::new().await?; -let staking_bonded = polkadot::storage().staking().bonded(&addr); +let staking_bonded = pezkuwi::storage().staking().bonded(&addr); let entry = api.storage().fetch(&staking_bonded, None).await; ``` @@ -1913,7 +1913,7 @@ Previously: let api = ClientBuilder::new() .build() .await? - .to_runtime_api::>>(); + .to_runtime_api::>>(); let mut iter = api .storage() @@ -1929,9 +1929,9 @@ while let Some((key, value)) = iter.next().await? { Now, as before, building the storage query to iterate over is separate from using it: ```rust -let api = OnlineClient::::new().await?; +let api = OnlineClient::::new().await?; -let key_addr = polkadot::storage() +let key_addr = pezkuwi::storage() .xcm_pallet() .version_notifiers_root(); @@ -1958,7 +1958,7 @@ Before, we'd build a client and use the client to select and query a constant: let api = ClientBuilder::new() .build() .await? - .to_runtime_api::>>(); + .to_runtime_api::>>(); let existential_deposit = api .constants() @@ -1969,9 +1969,9 @@ let existential_deposit = api Now, similar to the other examples, we separately build a constant _address_ and provide that address to the client to look it up: ```rust -let api = OnlineClient::::new().await?; +let api = OnlineClient::::new().await?; -let address = polkadot::constants() +let address = pezkuwi::constants() .balances() .existential_deposit(); @@ -1988,7 +1988,7 @@ Event subscriptions themselves are relatively unchanged (although the data you c let api = ClientBuilder::new() .build() .await? - .to_runtime_api::>>(); + .to_runtime_api::>>(); let mut event_sub = api.events().subscribe().await?; @@ -2000,7 +2000,7 @@ while let Some(events) = event_sub.next().await { Now, we simply swap the client out for our new one, and the rest is similar: ```rust -let api = OnlineClient::::new().await?; +let api = OnlineClient::::new().await?; let mut event_sub = api.events().subscribe().await?; @@ -2022,21 +2022,21 @@ For more details about all of the changes, the full commit history since the las ### Added -- Expose the extrinsic hash from TxProgress ([#614](https://github.com/paritytech/subxt/pull/614)) -- Add support for `ws` in `subxt-cli` ([#579](https://github.com/paritytech/subxt/pull/579)) -- Expose the SCALE encoded call data of an extrinsic ([#573](https://github.com/paritytech/subxt/pull/573)) -- Validate absolute path for `substitute_type` ([#577](https://github.com/paritytech/subxt/pull/577)) +- Expose the extrinsic hash from TxProgress ([#614](https://github.com/pezkuwichain/subxt/pull/614)) +- Add support for `ws` in `subxt-cli` ([#579](https://github.com/pezkuwichain/subxt/pull/579)) +- Expose the SCALE encoded call data of an extrinsic ([#573](https://github.com/pezkuwichain/subxt/pull/573)) +- Validate absolute path for `substitute_type` ([#577](https://github.com/pezkuwichain/subxt/pull/577)) ### Changed -- Rework Subxt API to support offline and dynamic transactions ([#593](https://github.com/paritytech/subxt/pull/593)) -- Use scale-decode to help optimise event decoding ([#607](https://github.com/paritytech/subxt/pull/607)) -- Decode raw events using scale_value and return the decoded Values, too ([#576](https://github.com/paritytech/subxt/pull/576)) -- dual license ([#590](https://github.com/paritytech/subxt/pull/590)) -- Don't hash constant values; only their types ([#587](https://github.com/paritytech/subxt/pull/587)) -- metadata: Exclude `field::type_name` from metadata validation ([#595](https://github.com/paritytech/subxt/pull/595)) -- Bump Swatinem/rust-cache from 1.4.0 to 2.0.0 ([#597](https://github.com/paritytech/subxt/pull/597)) -- Update jsonrpsee requirement from 0.14.0 to 0.15.1 ([#603](https://github.com/paritytech/subxt/pull/603)) +- Rework Subxt API to support offline and dynamic transactions ([#593](https://github.com/pezkuwichain/subxt/pull/593)) +- Use scale-decode to help optimise event decoding ([#607](https://github.com/pezkuwichain/subxt/pull/607)) +- Decode raw events using scale_value and return the decoded Values, too ([#576](https://github.com/pezkuwichain/subxt/pull/576)) +- dual license ([#590](https://github.com/pezkuwichain/subxt/pull/590)) +- Don't hash constant values; only their types ([#587](https://github.com/pezkuwichain/subxt/pull/587)) +- metadata: Exclude `field::type_name` from metadata validation ([#595](https://github.com/pezkuwichain/subxt/pull/595)) +- Bump Swatinem/rust-cache from 1.4.0 to 2.0.0 ([#597](https://github.com/pezkuwichain/subxt/pull/597)) +- Update jsonrpsee requirement from 0.14.0 to 0.15.1 ([#603](https://github.com/pezkuwichain/subxt/pull/603)) ## [0.22.0] - 2022-06-20 @@ -2051,31 +2051,31 @@ bytes instead of the JSON format. ### Fixed -- Handle `StorageEntry` empty keys ([#565](https://github.com/paritytech/subxt/pull/565)) -- Fix documentation examples ([#568](https://github.com/paritytech/subxt/pull/568)) -- Fix cargo clippy ([#548](https://github.com/paritytech/subxt/pull/548)) -- fix: Find substrate port on different log lines ([#536](https://github.com/paritytech/subxt/pull/536)) +- Handle `StorageEntry` empty keys ([#565](https://github.com/pezkuwichain/subxt/pull/565)) +- Fix documentation examples ([#568](https://github.com/pezkuwichain/subxt/pull/568)) +- Fix cargo clippy ([#548](https://github.com/pezkuwichain/subxt/pull/548)) +- fix: Find bizinikiwi port on different log lines ([#536](https://github.com/pezkuwichain/subxt/pull/536)) ### Added -- Followup test for checking propagated documentation ([#514](https://github.com/paritytech/subxt/pull/514)) -- feat: refactor signing in order to more easily be able to dryrun ([#547](https://github.com/paritytech/subxt/pull/547)) -- Add subxt documentation ([#546](https://github.com/paritytech/subxt/pull/546)) -- Add ability to iterate over N map storage keys ([#537](https://github.com/paritytech/subxt/pull/537)) -- Subscribe to Runtime upgrades for proper extrinsic construction ([#513](https://github.com/paritytech/subxt/pull/513)) +- Followup test for checking propagated documentation ([#514](https://github.com/pezkuwichain/subxt/pull/514)) +- feat: refactor signing in order to more easily be able to dryrun ([#547](https://github.com/pezkuwichain/subxt/pull/547)) +- Add subxt documentation ([#546](https://github.com/pezkuwichain/subxt/pull/546)) +- Add ability to iterate over N map storage keys ([#537](https://github.com/pezkuwichain/subxt/pull/537)) +- Subscribe to Runtime upgrades for proper extrinsic construction ([#513](https://github.com/pezkuwichain/subxt/pull/513)) ### Changed -- Move test crates into a "testing" folder and add a ui (trybuild) test and ui-test helpers ([#567](https://github.com/paritytech/subxt/pull/567)) -- Update jsonrpsee requirement from 0.13.0 to 0.14.0 ([#566](https://github.com/paritytech/subxt/pull/566)) -- Make storage futures only borrow client, not self, for better ergonomics ([#561](https://github.com/paritytech/subxt/pull/561)) -- Bump actions/checkout from 2 to 3 ([#557](https://github.com/paritytech/subxt/pull/557)) -- Deny unused crate dependencies ([#549](https://github.com/paritytech/subxt/pull/549)) -- Implement `Clone` for the generated `RuntimeApi` ([#544](https://github.com/paritytech/subxt/pull/544)) -- Update color-eyre requirement from 0.5.11 to 0.6.1 ([#540](https://github.com/paritytech/subxt/pull/540)) -- Update jsonrpsee requirement from 0.12.0 to 0.13.0 ([#541](https://github.com/paritytech/subxt/pull/541)) -- Update artifacts and polkadot.rs and change CLI to default bytes ([#533](https://github.com/paritytech/subxt/pull/533)) -- Replace `log` with `tracing` and record extrinsic info ([#535](https://github.com/paritytech/subxt/pull/535)) -- Bump jsonrpsee ([#528](https://github.com/paritytech/subxt/pull/528)) +- Move test crates into a "testing" folder and add a ui (trybuild) test and ui-test helpers ([#567](https://github.com/pezkuwichain/subxt/pull/567)) +- Update jsonrpsee requirement from 0.13.0 to 0.14.0 ([#566](https://github.com/pezkuwichain/subxt/pull/566)) +- Make storage futures only borrow client, not self, for better ergonomics ([#561](https://github.com/pezkuwichain/subxt/pull/561)) +- Bump actions/checkout from 2 to 3 ([#557](https://github.com/pezkuwichain/subxt/pull/557)) +- Deny unused crate dependencies ([#549](https://github.com/pezkuwichain/subxt/pull/549)) +- Implement `Clone` for the generated `RuntimeApi` ([#544](https://github.com/pezkuwichain/subxt/pull/544)) +- Update color-eyre requirement from 0.5.11 to 0.6.1 ([#540](https://github.com/pezkuwichain/subxt/pull/540)) +- Update jsonrpsee requirement from 0.12.0 to 0.13.0 ([#541](https://github.com/pezkuwichain/subxt/pull/541)) +- Update artifacts and pezkuwi.rs and change CLI to default bytes ([#533](https://github.com/pezkuwichain/subxt/pull/533)) +- Replace `log` with `tracing` and record extrinsic info ([#535](https://github.com/pezkuwichain/subxt/pull/535)) +- Bump jsonrpsee ([#528](https://github.com/pezkuwichain/subxt/pull/528)) ## [0.21.0] - 2022-05-02 @@ -2092,37 +2092,37 @@ to the `subxt` attribute. The metadata documentation is propagated to the statically generated API. -Previously developers wanting to build the subxt crate needed the `substrate` binary dependency in their local +Previously developers wanting to build the subxt crate needed the `bizinikiwi` binary dependency in their local environment. This restriction is removed via moving the integration tests to a dedicated crate. The number of dependencies is reduced for individual subxt crates. ### Fixed -- test-runtime: Add exponential backoff ([#518](https://github.com/paritytech/subxt/pull/518)) +- test-runtime: Add exponential backoff ([#518](https://github.com/pezkuwichain/subxt/pull/518)) ### Added -- Add custom derives for specific generated types ([#520](https://github.com/paritytech/subxt/pull/520)) -- Static Metadata Validation ([#478](https://github.com/paritytech/subxt/pull/478)) -- Propagate documentation to runtime API ([#511](https://github.com/paritytech/subxt/pull/511)) -- Add `tidext` in real world usage ([#508](https://github.com/paritytech/subxt/pull/508)) -- Add system health rpc ([#510](https://github.com/paritytech/subxt/pull/510)) +- Add custom derives for specific generated types ([#520](https://github.com/pezkuwichain/subxt/pull/520)) +- Static Metadata Validation ([#478](https://github.com/pezkuwichain/subxt/pull/478)) +- Propagate documentation to runtime API ([#511](https://github.com/pezkuwichain/subxt/pull/511)) +- Add `tidext` in real world usage ([#508](https://github.com/pezkuwichain/subxt/pull/508)) +- Add system health rpc ([#510](https://github.com/pezkuwichain/subxt/pull/510)) ### Changed -- Put integration tests behind feature flag ([#515](https://github.com/paritytech/subxt/pull/515)) -- Use minimum amount of dependencies for crates ([#524](https://github.com/paritytech/subxt/pull/524)) -- Export `BaseExtrinsicParams` ([#516](https://github.com/paritytech/subxt/pull/516)) -- bump jsonrpsee to v0.10.1 ([#504](https://github.com/paritytech/subxt/pull/504)) +- Put integration tests behind feature flag ([#515](https://github.com/pezkuwichain/subxt/pull/515)) +- Use minimum amount of dependencies for crates ([#524](https://github.com/pezkuwichain/subxt/pull/524)) +- Export `BaseExtrinsicParams` ([#516](https://github.com/pezkuwichain/subxt/pull/516)) +- bump jsonrpsee to v0.10.1 ([#504](https://github.com/pezkuwichain/subxt/pull/504)) ## [0.20.0] - 2022-04-06 The most significant change in this release is how we create and sign extrinsics, and how we manage the -"additional" and "extra" data that is attached to them. See https://github.com/paritytech/subxt/issues/477, and the -associated PR https://github.com/paritytech/subxt/pull/490 for a more detailed look at the code changes. +"additional" and "extra" data that is attached to them. See https://github.com/pezkuwichain/subxt/issues/477, and the +associated PR https://github.com/pezkuwichain/subxt/pull/490 for a more detailed look at the code changes. -If you're targeting a node with compatible additional and extra transaction data to Substrate or Polkadot, the main -change you'll have to make is to import and use `subxt::PolkadotExtrinsicParams` or `subxt::SubstrateExtrinsicParams` +If you're targeting a node with compatible additional and extra transaction data to Bizinikiwi or Pezkuwi, the main +change you'll have to make is to import and use `subxt::PezkuwiExtrinsicParams` or `subxt::BizinikiwiExtrinsicParams` instead of `subxt::DefaultExtra` (depending on what node you're compatible with), and then use `sign_and_submit_default` instead of `sign_and_submit` when making a call. Now, `sign_and_submit` accepts a second argument which allows these parameters (such as mortality and tip payment) to be customized. See `examples/balance_transfer_with_params.rs` for a @@ -2131,83 +2131,83 @@ small usage example. If you're targeting a node which involves custom additional and extra transaction data, you'll need to implement the trait `subxt::extrinsic::ExtrinsicParams`, which determines the parameters that can be provided to `sign_and_submit`, as well as how to encode these into the "additional" and "extra" data needed for a transaction. Have a look at -`subxt/src/extrinsic/params.rs` for the trait definition and Substrate/Polkadot implementations. The aim with this change +`subxt/src/extrinsic/params.rs` for the trait definition and Bizinikiwi/Pezkuwi implementations. The aim with this change is to make it easier to customise this for your own chains, and provide a simple way to provide values at runtime. ### Fixed -- Test utils: parse port from substrate binary output to avoid races ([#501](https://github.com/paritytech/subxt/pull/501)) -- Rely on the kernel for port allocation ([#498](https://github.com/paritytech/subxt/pull/498)) +- Test utils: parse port from bizinikiwi binary output to avoid races ([#501](https://github.com/pezkuwichain/subxt/pull/501)) +- Rely on the kernel for port allocation ([#498](https://github.com/pezkuwichain/subxt/pull/498)) ### Changed -- Export ModuleError for downstream matching ([#499](https://github.com/paritytech/subxt/pull/499)) -- Bump jsonrpsee to v0.9.0 ([#496](https://github.com/paritytech/subxt/pull/496)) -- Use tokio instead of async-std in tests/examples ([#495](https://github.com/paritytech/subxt/pull/495)) -- Read constants from metadata at runtime ([#494](https://github.com/paritytech/subxt/pull/494)) -- Handle `sp_runtime::ModuleError` substrate updates ([#492](https://github.com/paritytech/subxt/pull/492)) -- Simplify creating and signing extrinsics ([#490](https://github.com/paritytech/subxt/pull/490)) -- Add `dev_getBlockStats` RPC ([#489](https://github.com/paritytech/subxt/pull/489)) -- scripts: Hardcode github subxt pull link for changelog consistency ([#482](https://github.com/paritytech/subxt/pull/482)) +- Export ModuleError for downstream matching ([#499](https://github.com/pezkuwichain/subxt/pull/499)) +- Bump jsonrpsee to v0.9.0 ([#496](https://github.com/pezkuwichain/subxt/pull/496)) +- Use tokio instead of async-std in tests/examples ([#495](https://github.com/pezkuwichain/subxt/pull/495)) +- Read constants from metadata at runtime ([#494](https://github.com/pezkuwichain/subxt/pull/494)) +- Handle `sp_runtime::ModuleError` bizinikiwi updates ([#492](https://github.com/pezkuwichain/subxt/pull/492)) +- Simplify creating and signing extrinsics ([#490](https://github.com/pezkuwichain/subxt/pull/490)) +- Add `dev_getBlockStats` RPC ([#489](https://github.com/pezkuwichain/subxt/pull/489)) +- scripts: Hardcode github subxt pull link for changelog consistency ([#482](https://github.com/pezkuwichain/subxt/pull/482)) ## [0.19.0] - 2022-03-21 ### Changed -- Return events from blocks skipped over during Finalization, too ([#473](https://github.com/paritytech/subxt/pull/473)) -- Use RPC call to get account nonce ([#476](https://github.com/paritytech/subxt/pull/476)) -- Add script to generate release changelog based on commits ([#465](https://github.com/paritytech/subxt/pull/465)) -- README updates ([#472](https://github.com/paritytech/subxt/pull/472)) -- Make EventSubscription and FilterEvents Send-able ([#471](https://github.com/paritytech/subxt/pull/471)) +- Return events from blocks skipped over during Finalization, too ([#473](https://github.com/pezkuwichain/subxt/pull/473)) +- Use RPC call to get account nonce ([#476](https://github.com/pezkuwichain/subxt/pull/476)) +- Add script to generate release changelog based on commits ([#465](https://github.com/pezkuwichain/subxt/pull/465)) +- README updates ([#472](https://github.com/pezkuwichain/subxt/pull/472)) +- Make EventSubscription and FilterEvents Send-able ([#471](https://github.com/pezkuwichain/subxt/pull/471)) ## [0.18.1] - 2022-03-04 # Fixed -- Remove unused `sp_version` dependency to fix duplicate `parity-scale-codec` deps ([#466](https://github.com/paritytech/subxt/pull/466)) +- Remove unused `sp_version` dependency to fix duplicate `parity-scale-codec` deps ([#466](https://github.com/pezkuwichain/subxt/pull/466)) ## [0.18.0] - 2022-03-02 ### Added -- Expose method to fetch nonce via `Client` ([#451](https://github.com/paritytech/subxt/pull/451)) +- Expose method to fetch nonce via `Client` ([#451](https://github.com/pezkuwichain/subxt/pull/451)) ### Changed -- Reference key storage api ([#447](https://github.com/paritytech/subxt/pull/447)) -- Filter one or multiple events by type from an EventSubscription ([#461](https://github.com/paritytech/subxt/pull/461)) -- New Event Subscription API ([#442](https://github.com/paritytech/subxt/pull/442)) -- Distinct handling for N fields + 1 hasher vs N fields + N hashers ([#458](https://github.com/paritytech/subxt/pull/458)) -- Update scale-info and parity-scale-codec requirements ([#462](https://github.com/paritytech/subxt/pull/462)) -- Substitute BTreeMap/BTreeSet generated types for Vec ([#459](https://github.com/paritytech/subxt/pull/459)) -- Obtain DispatchError::Module info dynamically ([#453](https://github.com/paritytech/subxt/pull/453)) -- Add hardcoded override to ElectionScore ([#455](https://github.com/paritytech/subxt/pull/455)) -- DispatchError::Module is now a tuple variant in latest Substrate ([#439](https://github.com/paritytech/subxt/pull/439)) -- Fix flaky event subscription test ([#450](https://github.com/paritytech/subxt/pull/450)) -- Improve documentation ([#449](https://github.com/paritytech/subxt/pull/449)) -- Export `codegen::TypeGenerator` ([#444](https://github.com/paritytech/subxt/pull/444)) -- Fix conversion of `Call` struct names to UpperCamelCase ([#441](https://github.com/paritytech/subxt/pull/441)) -- Update release documentation with dry-run ([#435](https://github.com/paritytech/subxt/pull/435)) +- Reference key storage api ([#447](https://github.com/pezkuwichain/subxt/pull/447)) +- Filter one or multiple events by type from an EventSubscription ([#461](https://github.com/pezkuwichain/subxt/pull/461)) +- New Event Subscription API ([#442](https://github.com/pezkuwichain/subxt/pull/442)) +- Distinct handling for N fields + 1 hasher vs N fields + N hashers ([#458](https://github.com/pezkuwichain/subxt/pull/458)) +- Update scale-info and parity-scale-codec requirements ([#462](https://github.com/pezkuwichain/subxt/pull/462)) +- Substitute BTreeMap/BTreeSet generated types for Vec ([#459](https://github.com/pezkuwichain/subxt/pull/459)) +- Obtain DispatchError::Module info dynamically ([#453](https://github.com/pezkuwichain/subxt/pull/453)) +- Add hardcoded override to ElectionScore ([#455](https://github.com/pezkuwichain/subxt/pull/455)) +- DispatchError::Module is now a tuple variant in latest Bizinikiwi ([#439](https://github.com/pezkuwichain/subxt/pull/439)) +- Fix flaky event subscription test ([#450](https://github.com/pezkuwichain/subxt/pull/450)) +- Improve documentation ([#449](https://github.com/pezkuwichain/subxt/pull/449)) +- Export `codegen::TypeGenerator` ([#444](https://github.com/pezkuwichain/subxt/pull/444)) +- Fix conversion of `Call` struct names to UpperCamelCase ([#441](https://github.com/pezkuwichain/subxt/pull/441)) +- Update release documentation with dry-run ([#435](https://github.com/pezkuwichain/subxt/pull/435)) ## [0.17.0] - 2022-02-04 ### Added -- introduce jsonrpsee client abstraction + kill HTTP support. ([#341](https://github.com/paritytech/subxt/pull/341)) -- Get event context on EventSubscription ([#423](https://github.com/paritytech/subxt/pull/423)) +- introduce jsonrpsee client abstraction + kill HTTP support. ([#341](https://github.com/pezkuwichain/subxt/pull/341)) +- Get event context on EventSubscription ([#423](https://github.com/pezkuwichain/subxt/pull/423)) ### Changed -- Add more tests for events.rs/decode_and_consume_type ([#430](https://github.com/paritytech/subxt/pull/430)) -- Update substrate dependencies ([#429](https://github.com/paritytech/subxt/pull/429)) -- export RuntimeError struct ([#427](https://github.com/paritytech/subxt/pull/427)) -- remove unused PalletError struct ([#425](https://github.com/paritytech/subxt/pull/425)) -- Move Subxt crate into a subfolder ([#424](https://github.com/paritytech/subxt/pull/424)) -- Add release checklist ([#418](https://github.com/paritytech/subxt/pull/418)) +- Add more tests for events.rs/decode_and_consume_type ([#430](https://github.com/pezkuwichain/subxt/pull/430)) +- Update bizinikiwi dependencies ([#429](https://github.com/pezkuwichain/subxt/pull/429)) +- export RuntimeError struct ([#427](https://github.com/pezkuwichain/subxt/pull/427)) +- remove unused PalletError struct ([#425](https://github.com/pezkuwichain/subxt/pull/425)) +- Move Subxt crate into a subfolder ([#424](https://github.com/pezkuwichain/subxt/pull/424)) +- Add release checklist ([#418](https://github.com/pezkuwichain/subxt/pull/418)) ## [0.16.0] - 2022-02-01 @@ -2216,186 +2216,186 @@ is to make it easier to customise this for your own chains, and provide a simple ### Changed -- Log debug message for JSON-RPC response ([#415](https://github.com/paritytech/subxt/pull/415)) -- Only convert struct names to camel case for Call variant structs ([#412](https://github.com/paritytech/subxt/pull/412)) -- Parameterize AccountData ([#409](https://github.com/paritytech/subxt/pull/409)) -- Allow decoding Events containing BitVecs ([#408](https://github.com/paritytech/subxt/pull/408)) -- Custom derive for cli ([#407](https://github.com/paritytech/subxt/pull/407)) -- make storage-n-map fields public too ([#404](https://github.com/paritytech/subxt/pull/404)) -- add constants api to codegen ([#402](https://github.com/paritytech/subxt/pull/402)) -- Expose transaction::TransactionProgress as public ([#401](https://github.com/paritytech/subxt/pull/401)) -- add interbtc-clients to real world usage section ([#397](https://github.com/paritytech/subxt/pull/397)) -- Make own version of RuntimeVersion to avoid mismatches ([#395](https://github.com/paritytech/subxt/pull/395)) -- Use the generated DispatchError instead of the hardcoded Substrate one ([#394](https://github.com/paritytech/subxt/pull/394)) -- Remove bounds on Config trait that aren't strictly necessary ([#389](https://github.com/paritytech/subxt/pull/389)) -- add crunch to readme ([#388](https://github.com/paritytech/subxt/pull/388)) -- fix remote example ([#386](https://github.com/paritytech/subxt/pull/386)) -- fetch system chain, name and version ([#385](https://github.com/paritytech/subxt/pull/385)) -- Fix compact event field decoding ([#384](https://github.com/paritytech/subxt/pull/384)) -- fix: use index override when decoding enums in events ([#382](https://github.com/paritytech/subxt/pull/382)) -- Update to jsonrpsee 0.7 and impl Stream on TransactionProgress ([#380](https://github.com/paritytech/subxt/pull/380)) -- Add links to projects using subxt ([#376](https://github.com/paritytech/subxt/pull/376)) -- Use released substrate dependencies ([#375](https://github.com/paritytech/subxt/pull/375)) -- Configurable Config and Extra types ([#373](https://github.com/paritytech/subxt/pull/373)) -- Implement pre_dispatch for SignedExtensions ([#370](https://github.com/paritytech/subxt/pull/370)) -- Export TransactionEvents ([#363](https://github.com/paritytech/subxt/pull/363)) -- Rebuild test-runtime if substrate binary is updated ([#362](https://github.com/paritytech/subxt/pull/362)) -- Expand the subscribe_and_watch example ([#361](https://github.com/paritytech/subxt/pull/361)) -- Add TooManyConsumers variant to track latest sp-runtime addition ([#360](https://github.com/paritytech/subxt/pull/360)) -- Implement new API for sign_and_submit_then_watch ([#354](https://github.com/paritytech/subxt/pull/354)) -- Simpler dependencies ([#353](https://github.com/paritytech/subxt/pull/353)) -- Refactor type generation, remove code duplication ([#352](https://github.com/paritytech/subxt/pull/352)) -- Make system properties an arbitrary JSON object, plus CI fixes ([#349](https://github.com/paritytech/subxt/pull/349)) -- Fix a couple of CI niggles ([#344](https://github.com/paritytech/subxt/pull/344)) -- Add timestamp pallet test ([#340](https://github.com/paritytech/subxt/pull/340)) -- Add nightly CI check against latest substrate. ([#335](https://github.com/paritytech/subxt/pull/335)) -- Ensure metadata is in sync with running node during tests ([#333](https://github.com/paritytech/subxt/pull/333)) -- Update to jsonrpsee 0.5.1 ([#332](https://github.com/paritytech/subxt/pull/332)) -- Update substrate and hardcoded default ChargeAssetTxPayment extension ([#330](https://github.com/paritytech/subxt/pull/330)) -- codegen: fix compact unnamed fields ([#327](https://github.com/paritytech/subxt/pull/327)) -- Check docs and run clippy on PRs ([#326](https://github.com/paritytech/subxt/pull/326)) -- Additional parameters for SignedExtra ([#322](https://github.com/paritytech/subxt/pull/322)) -- fix: also processess initialize and finalize events in event subscription ([#321](https://github.com/paritytech/subxt/pull/321)) -- Release initial versions of subxt-codegen and subxt-cli ([#320](https://github.com/paritytech/subxt/pull/320)) -- Add some basic usage docs to README. ([#319](https://github.com/paritytech/subxt/pull/319)) -- Update jsonrpsee ([#317](https://github.com/paritytech/subxt/pull/317)) -- Add missing cargo metadata fields for new crates ([#311](https://github.com/paritytech/subxt/pull/311)) -- fix: keep processing a block's events after encountering a dispatch error ([#310](https://github.com/paritytech/subxt/pull/310)) -- Codegen: enum variant indices ([#308](https://github.com/paritytech/subxt/pull/308)) -- fix extrinsics retracted ([#307](https://github.com/paritytech/subxt/pull/307)) -- Add utility pallet tests ([#300](https://github.com/paritytech/subxt/pull/300)) -- fix metadata constants ([#299](https://github.com/paritytech/subxt/pull/299)) -- Generate runtime API from metadata ([#294](https://github.com/paritytech/subxt/pull/294)) -- Add NextKeys and QueuedKeys for session module ([#291](https://github.com/paritytech/subxt/pull/291)) -- deps: update jsonrpsee 0.3.0 ([#289](https://github.com/paritytech/subxt/pull/289)) -- deps: update jsonrpsee 0.2.0 ([#285](https://github.com/paritytech/subxt/pull/285)) -- deps: Reorg the order of deps ([#284](https://github.com/paritytech/subxt/pull/284)) -- Expose the rpc client in Client ([#267](https://github.com/paritytech/subxt/pull/267)) -- update jsonrpsee to 0.2.0-alpha.6 ([#266](https://github.com/paritytech/subxt/pull/266)) -- Remove funty pin, upgrade codec ([#265](https://github.com/paritytech/subxt/pull/265)) -- Use async-trait ([#264](https://github.com/paritytech/subxt/pull/264)) -- [jsonrpsee http client]: support tokio1 & tokio02. ([#263](https://github.com/paritytech/subxt/pull/263)) -- impl `From>` and `From>` ([#257](https://github.com/paritytech/subxt/pull/257)) -- update jsonrpsee ([#251](https://github.com/paritytech/subxt/pull/251)) -- return none if subscription returns early ([#250](https://github.com/paritytech/subxt/pull/250)) +- Log debug message for JSON-RPC response ([#415](https://github.com/pezkuwichain/subxt/pull/415)) +- Only convert struct names to camel case for Call variant structs ([#412](https://github.com/pezkuwichain/subxt/pull/412)) +- Parameterize AccountData ([#409](https://github.com/pezkuwichain/subxt/pull/409)) +- Allow decoding Events containing BitVecs ([#408](https://github.com/pezkuwichain/subxt/pull/408)) +- Custom derive for cli ([#407](https://github.com/pezkuwichain/subxt/pull/407)) +- make storage-n-map fields public too ([#404](https://github.com/pezkuwichain/subxt/pull/404)) +- add constants api to codegen ([#402](https://github.com/pezkuwichain/subxt/pull/402)) +- Expose transaction::TransactionProgress as public ([#401](https://github.com/pezkuwichain/subxt/pull/401)) +- add interbtc-clients to real world usage section ([#397](https://github.com/pezkuwichain/subxt/pull/397)) +- Make own version of RuntimeVersion to avoid mismatches ([#395](https://github.com/pezkuwichain/subxt/pull/395)) +- Use the generated DispatchError instead of the hardcoded Bizinikiwi one ([#394](https://github.com/pezkuwichain/subxt/pull/394)) +- Remove bounds on Config trait that aren't strictly necessary ([#389](https://github.com/pezkuwichain/subxt/pull/389)) +- add crunch to readme ([#388](https://github.com/pezkuwichain/subxt/pull/388)) +- fix remote example ([#386](https://github.com/pezkuwichain/subxt/pull/386)) +- fetch system chain, name and version ([#385](https://github.com/pezkuwichain/subxt/pull/385)) +- Fix compact event field decoding ([#384](https://github.com/pezkuwichain/subxt/pull/384)) +- fix: use index override when decoding enums in events ([#382](https://github.com/pezkuwichain/subxt/pull/382)) +- Update to jsonrpsee 0.7 and impl Stream on TransactionProgress ([#380](https://github.com/pezkuwichain/subxt/pull/380)) +- Add links to projects using subxt ([#376](https://github.com/pezkuwichain/subxt/pull/376)) +- Use released bizinikiwi dependencies ([#375](https://github.com/pezkuwichain/subxt/pull/375)) +- Configurable Config and Extra types ([#373](https://github.com/pezkuwichain/subxt/pull/373)) +- Implement pre_dispatch for SignedExtensions ([#370](https://github.com/pezkuwichain/subxt/pull/370)) +- Export TransactionEvents ([#363](https://github.com/pezkuwichain/subxt/pull/363)) +- Rebuild test-runtime if bizinikiwi binary is updated ([#362](https://github.com/pezkuwichain/subxt/pull/362)) +- Expand the subscribe_and_watch example ([#361](https://github.com/pezkuwichain/subxt/pull/361)) +- Add TooManyConsumers variant to track latest sp-runtime addition ([#360](https://github.com/pezkuwichain/subxt/pull/360)) +- Implement new API for sign_and_submit_then_watch ([#354](https://github.com/pezkuwichain/subxt/pull/354)) +- Simpler dependencies ([#353](https://github.com/pezkuwichain/subxt/pull/353)) +- Refactor type generation, remove code duplication ([#352](https://github.com/pezkuwichain/subxt/pull/352)) +- Make system properties an arbitrary JSON object, plus CI fixes ([#349](https://github.com/pezkuwichain/subxt/pull/349)) +- Fix a couple of CI niggles ([#344](https://github.com/pezkuwichain/subxt/pull/344)) +- Add timestamp pallet test ([#340](https://github.com/pezkuwichain/subxt/pull/340)) +- Add nightly CI check against latest bizinikiwi. ([#335](https://github.com/pezkuwichain/subxt/pull/335)) +- Ensure metadata is in sync with running node during tests ([#333](https://github.com/pezkuwichain/subxt/pull/333)) +- Update to jsonrpsee 0.5.1 ([#332](https://github.com/pezkuwichain/subxt/pull/332)) +- Update bizinikiwi and hardcoded default ChargeAssetTxPayment extension ([#330](https://github.com/pezkuwichain/subxt/pull/330)) +- codegen: fix compact unnamed fields ([#327](https://github.com/pezkuwichain/subxt/pull/327)) +- Check docs and run clippy on PRs ([#326](https://github.com/pezkuwichain/subxt/pull/326)) +- Additional parameters for SignedExtra ([#322](https://github.com/pezkuwichain/subxt/pull/322)) +- fix: also processess initialize and finalize events in event subscription ([#321](https://github.com/pezkuwichain/subxt/pull/321)) +- Release initial versions of subxt-codegen and subxt-cli ([#320](https://github.com/pezkuwichain/subxt/pull/320)) +- Add some basic usage docs to README. ([#319](https://github.com/pezkuwichain/subxt/pull/319)) +- Update jsonrpsee ([#317](https://github.com/pezkuwichain/subxt/pull/317)) +- Add missing cargo metadata fields for new crates ([#311](https://github.com/pezkuwichain/subxt/pull/311)) +- fix: keep processing a block's events after encountering a dispatch error ([#310](https://github.com/pezkuwichain/subxt/pull/310)) +- Codegen: enum variant indices ([#308](https://github.com/pezkuwichain/subxt/pull/308)) +- fix extrinsics retracted ([#307](https://github.com/pezkuwichain/subxt/pull/307)) +- Add utility pallet tests ([#300](https://github.com/pezkuwichain/subxt/pull/300)) +- fix metadata constants ([#299](https://github.com/pezkuwichain/subxt/pull/299)) +- Generate runtime API from metadata ([#294](https://github.com/pezkuwichain/subxt/pull/294)) +- Add NextKeys and QueuedKeys for session module ([#291](https://github.com/pezkuwichain/subxt/pull/291)) +- deps: update jsonrpsee 0.3.0 ([#289](https://github.com/pezkuwichain/subxt/pull/289)) +- deps: update jsonrpsee 0.2.0 ([#285](https://github.com/pezkuwichain/subxt/pull/285)) +- deps: Reorg the order of deps ([#284](https://github.com/pezkuwichain/subxt/pull/284)) +- Expose the rpc client in Client ([#267](https://github.com/pezkuwichain/subxt/pull/267)) +- update jsonrpsee to 0.2.0-alpha.6 ([#266](https://github.com/pezkuwichain/subxt/pull/266)) +- Remove funty pin, upgrade codec ([#265](https://github.com/pezkuwichain/subxt/pull/265)) +- Use async-trait ([#264](https://github.com/pezkuwichain/subxt/pull/264)) +- [jsonrpsee http client]: support tokio1 & tokio02. ([#263](https://github.com/pezkuwichain/subxt/pull/263)) +- impl `From>` and `From>` ([#257](https://github.com/pezkuwichain/subxt/pull/257)) +- update jsonrpsee ([#251](https://github.com/pezkuwichain/subxt/pull/251)) +- return none if subscription returns early ([#250](https://github.com/pezkuwichain/subxt/pull/250)) ## [0.15.0] - 2021-03-15 ### Added -- implement variant of subscription that returns finalized storage changes - [#237](https://github.com/paritytech/subxt/pull/237) -- implement session handling for unsubscribe in subxt-client - [#242](https://github.com/paritytech/subxt/pull/242) +- implement variant of subscription that returns finalized storage changes - [#237](https://github.com/pezkuwichain/subxt/pull/237) +- implement session handling for unsubscribe in subxt-client - [#242](https://github.com/pezkuwichain/subxt/pull/242) ### Changed -- update jsonrpsee [#251](https://github.com/paritytech/subxt/pull/251) -- return none if subscription returns early [#250](https://github.com/paritytech/subxt/pull/250) -- export ModuleError and RuntimeError for downstream usage - [#246](https://github.com/paritytech/subxt/pull/246) -- rpc client methods should be public for downstream usage - [#240](https://github.com/paritytech/subxt/pull/240) -- re-export WasmExecutionMethod for downstream usage - [#239](https://github.com/paritytech/subxt/pull/239) -- integration with jsonrpsee v2 - [#214](https://github.com/paritytech/subxt/pull/214) -- expose wasm execution method on subxt client config - [#230](https://github.com/paritytech/subxt/pull/230) -- Add hooks to register event types for decoding - [#227](https://github.com/paritytech/subxt/pull/227) -- Substrate 3.0 - [#232](https://github.com/paritytech/subxt/pull/232) +- update jsonrpsee [#251](https://github.com/pezkuwichain/subxt/pull/251) +- return none if subscription returns early [#250](https://github.com/pezkuwichain/subxt/pull/250) +- export ModuleError and RuntimeError for downstream usage - [#246](https://github.com/pezkuwichain/subxt/pull/246) +- rpc client methods should be public for downstream usage - [#240](https://github.com/pezkuwichain/subxt/pull/240) +- re-export WasmExecutionMethod for downstream usage - [#239](https://github.com/pezkuwichain/subxt/pull/239) +- integration with jsonrpsee v2 - [#214](https://github.com/pezkuwichain/subxt/pull/214) +- expose wasm execution method on subxt client config - [#230](https://github.com/pezkuwichain/subxt/pull/230) +- Add hooks to register event types for decoding - [#227](https://github.com/pezkuwichain/subxt/pull/227) +- Bizinikiwi 3.0 - [#232](https://github.com/pezkuwichain/subxt/pull/232) ## [0.14.0] - 2021-02-05 -- Refactor event type decoding and declaration [#221](https://github.com/paritytech/subxt/pull/221) -- Add Balances Locks [#197](https://github.com/paritytech/subxt/pull/197) -- Add event Phase::Initialization [#215](https://github.com/paritytech/subxt/pull/215) -- Make type explicit [#217](https://github.com/paritytech/subxt/pull/217) -- Upgrade dependencies, bumps substrate to 2.0.1 [#219](https://github.com/paritytech/subxt/pull/219) -- Export extra types [#212](https://github.com/paritytech/subxt/pull/212) -- Enable retrieval of constants from rutnime metadata [#207](https://github.com/paritytech/subxt/pull/207) -- register type sizes for u64 and u128 [#200](https://github.com/paritytech/subxt/pull/200) -- Remove some substrate dependencies to improve compile time [#194](https://github.com/paritytech/subxt/pull/194) -- propagate 'RuntimeError's to 'decode_raw_bytes' caller [#189](https://github.com/paritytech/subxt/pull/189) -- Derive `Clone` for `PairSigner` [#184](https://github.com/paritytech/subxt/pull/184) +- Refactor event type decoding and declaration [#221](https://github.com/pezkuwichain/subxt/pull/221) +- Add Balances Locks [#197](https://github.com/pezkuwichain/subxt/pull/197) +- Add event Phase::Initialization [#215](https://github.com/pezkuwichain/subxt/pull/215) +- Make type explicit [#217](https://github.com/pezkuwichain/subxt/pull/217) +- Upgrade dependencies, bumps bizinikiwi to 2.0.1 [#219](https://github.com/pezkuwichain/subxt/pull/219) +- Export extra types [#212](https://github.com/pezkuwichain/subxt/pull/212) +- Enable retrieval of constants from rutnime metadata [#207](https://github.com/pezkuwichain/subxt/pull/207) +- register type sizes for u64 and u128 [#200](https://github.com/pezkuwichain/subxt/pull/200) +- Remove some bizinikiwi dependencies to improve compile time [#194](https://github.com/pezkuwichain/subxt/pull/194) +- propagate 'RuntimeError's to 'decode_raw_bytes' caller [#189](https://github.com/pezkuwichain/subxt/pull/189) +- Derive `Clone` for `PairSigner` [#184](https://github.com/pezkuwichain/subxt/pull/184) ## [0.13.0] -- Make the contract call extrinsic work [#165](https://github.com/paritytech/subxt/pull/165) -- Update to Substrate 2.0.0 [#173](https://github.com/paritytech/subxt/pull/173) -- Display RawEvent data in hex [#168](https://github.com/paritytech/subxt/pull/168) -- Add SudoUncheckedWeightCall [#167](https://github.com/paritytech/subxt/pull/167) -- Add Add SetCodeWithoutChecksCall [#166](https://github.com/paritytech/subxt/pull/166) -- Improve contracts pallet tests [#163](https://github.com/paritytech/subxt/pull/163) -- Make Metadata types public [#162](https://github.com/paritytech/subxt/pull/162) -- Fix option decoding and add basic sanity test [#161](https://github.com/paritytech/subxt/pull/161) -- Add staking support [#160](https://github.com/paritytech/subxt/pull/161) -- Decode option event arg [#158](https://github.com/paritytech/subxt/pull/158) -- Remove unnecessary Sync bound [#172](https://github.com/paritytech/subxt/pull/172) +- Make the contract call extrinsic work [#165](https://github.com/pezkuwichain/subxt/pull/165) +- Update to Bizinikiwi 2.0.0 [#173](https://github.com/pezkuwichain/subxt/pull/173) +- Display RawEvent data in hex [#168](https://github.com/pezkuwichain/subxt/pull/168) +- Add SudoUncheckedWeightCall [#167](https://github.com/pezkuwichain/subxt/pull/167) +- Add Add SetCodeWithoutChecksCall [#166](https://github.com/pezkuwichain/subxt/pull/166) +- Improve contracts pallet tests [#163](https://github.com/pezkuwichain/subxt/pull/163) +- Make Metadata types public [#162](https://github.com/pezkuwichain/subxt/pull/162) +- Fix option decoding and add basic sanity test [#161](https://github.com/pezkuwichain/subxt/pull/161) +- Add staking support [#160](https://github.com/pezkuwichain/subxt/pull/161) +- Decode option event arg [#158](https://github.com/pezkuwichain/subxt/pull/158) +- Remove unnecessary Sync bound [#172](https://github.com/pezkuwichain/subxt/pull/172) ## [0.12.0] -- Only return an error if the extrinsic failed. [#156](https://github.com/paritytech/subxt/pull/156) -- Update to rc6. [#155](https://github.com/paritytech/subxt/pull/155) -- Different assert. [#153](https://github.com/paritytech/subxt/pull/153) -- Add a method to fetch an unhashed key, close #100 [#152](https://github.com/paritytech/subxt/pull/152) -- Fix port number. [#151](https://github.com/paritytech/subxt/pull/151) -- Implement the `concat` in `twox_64_concat` [#150](https://github.com/paritytech/subxt/pull/150) -- Storage map iter [#148](https://github.com/paritytech/subxt/pull/148) +- Only return an error if the extrinsic failed. [#156](https://github.com/pezkuwichain/subxt/pull/156) +- Update to rc6. [#155](https://github.com/pezkuwichain/subxt/pull/155) +- Different assert. [#153](https://github.com/pezkuwichain/subxt/pull/153) +- Add a method to fetch an unhashed key, close #100 [#152](https://github.com/pezkuwichain/subxt/pull/152) +- Fix port number. [#151](https://github.com/pezkuwichain/subxt/pull/151) +- Implement the `concat` in `twox_64_concat` [#150](https://github.com/pezkuwichain/subxt/pull/150) +- Storage map iter [#148](https://github.com/pezkuwichain/subxt/pull/148) ## [0.11.0] -- Fix build error, wabt 0.9.2 is yanked [#146](https://github.com/paritytech/subxt/pull/146) -- Rc5 [#143](https://github.com/paritytech/subxt/pull/143) -- Refactor: extract functions and types for creating extrinsics [#138](https://github.com/paritytech/subxt/pull/138) -- event subscription example [#140](https://github.com/paritytech/subxt/pull/140) -- Document the `Call` derive macro [#137](https://github.com/paritytech/subxt/pull/137) -- Document the #[module] macro [#135](https://github.com/paritytech/subxt/pull/135) -- Support authors api. [#134](https://github.com/paritytech/subxt/pull/134) +- Fix build error, wabt 0.9.2 is yanked [#146](https://github.com/pezkuwichain/subxt/pull/146) +- Rc5 [#143](https://github.com/pezkuwichain/subxt/pull/143) +- Refactor: extract functions and types for creating extrinsics [#138](https://github.com/pezkuwichain/subxt/pull/138) +- event subscription example [#140](https://github.com/pezkuwichain/subxt/pull/140) +- Document the `Call` derive macro [#137](https://github.com/pezkuwichain/subxt/pull/137) +- Document the #[module] macro [#135](https://github.com/pezkuwichain/subxt/pull/135) +- Support authors api. [#134](https://github.com/pezkuwichain/subxt/pull/134) ## [0.10.1] - 2020-06-19 -- Release client v0.2.0 [#133](https://github.com/paritytech/subxt/pull/133) +- Release client v0.2.0 [#133](https://github.com/pezkuwichain/subxt/pull/133) ## [0.10.0] - 2020-06-19 -- Upgrade to substrate rc4 release [#131](https://github.com/paritytech/subxt/pull/131) -- Support unsigned extrinsics. [#130](https://github.com/paritytech/subxt/pull/130) +- Upgrade to bizinikiwi rc4 release [#131](https://github.com/pezkuwichain/subxt/pull/131) +- Support unsigned extrinsics. [#130](https://github.com/pezkuwichain/subxt/pull/130) ## [0.9.0] - 2020-06-25 -- Events sub [#126](https://github.com/paritytech/subxt/pull/126) -- Improve error handling in proc-macros, handle DispatchError etc. [#123](https://github.com/paritytech/subxt/pull/123) -- Support embedded full/light node clients. [#91](https://github.com/paritytech/subxt/pull/91) -- Zero sized types [#121](https://github.com/paritytech/subxt/pull/121) -- Fix optional store items. [#120](https://github.com/paritytech/subxt/pull/120) -- Make signing fallable and asynchronous [#119](https://github.com/paritytech/subxt/pull/119) +- Events sub [#126](https://github.com/pezkuwichain/subxt/pull/126) +- Improve error handling in proc-macros, handle DispatchError etc. [#123](https://github.com/pezkuwichain/subxt/pull/123) +- Support embedded full/light node clients. [#91](https://github.com/pezkuwichain/subxt/pull/91) +- Zero sized types [#121](https://github.com/pezkuwichain/subxt/pull/121) +- Fix optional store items. [#120](https://github.com/pezkuwichain/subxt/pull/120) +- Make signing fallable and asynchronous [#119](https://github.com/pezkuwichain/subxt/pull/119) ## [0.8.0] - 2020-05-26 -- Update to Substrate release candidate [#116](https://github.com/paritytech/subxt/pull/116) -- Update to alpha.8 [#114](https://github.com/paritytech/subxt/pull/114) -- Refactors the api [#113](https://github.com/paritytech/subxt/pull/113) +- Update to Bizinikiwi release candidate [#116](https://github.com/pezkuwichain/subxt/pull/116) +- Update to alpha.8 [#114](https://github.com/pezkuwichain/subxt/pull/114) +- Refactors the api [#113](https://github.com/pezkuwichain/subxt/pull/113) ## [0.7.0] - 2020-05-13 -- Split subxt [#102](https://github.com/paritytech/subxt/pull/102) -- Add support for RPC `state_getReadProof` [#106](https://github.com/paritytech/subxt/pull/106) -- Update to substrate alpha.7 release [#105](https://github.com/paritytech/subxt/pull/105) -- Double map and plain storage support, introduce macros [#93](https://github.com/paritytech/subxt/pull/93) -- Raw payload return SignedPayload struct [#92](https://github.com/paritytech/subxt/pull/92) +- Split subxt [#102](https://github.com/pezkuwichain/subxt/pull/102) +- Add support for RPC `state_getReadProof` [#106](https://github.com/pezkuwichain/subxt/pull/106) +- Update to bizinikiwi alpha.7 release [#105](https://github.com/pezkuwichain/subxt/pull/105) +- Double map and plain storage support, introduce macros [#93](https://github.com/pezkuwichain/subxt/pull/93) +- Raw payload return SignedPayload struct [#92](https://github.com/pezkuwichain/subxt/pull/92) ## [0.6.0] - 2020-04-15 -- Raw extrinsic payloads in Client [#83](https://github.com/paritytech/subxt/pull/83) -- Custom extras [#89](https://github.com/paritytech/subxt/pull/89) -- Wrap and export BlockNumber [#87](https://github.com/paritytech/subxt/pull/87) -- All substrate dependencies upgraded to `alpha.6` +- Raw extrinsic payloads in Client [#83](https://github.com/pezkuwichain/subxt/pull/83) +- Custom extras [#89](https://github.com/pezkuwichain/subxt/pull/89) +- Wrap and export BlockNumber [#87](https://github.com/pezkuwichain/subxt/pull/87) +- All bizinikiwi dependencies upgraded to `alpha.6` ## [0.5.0] - 2020-03-25 - First release -- All substrate dependencies upgraded to `alpha.5` +- All bizinikiwi dependencies upgraded to `alpha.5` diff --git a/Cargo.toml b/Cargo.toml index c739e6c319..8331aceeab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -132,7 +132,7 @@ futures-timer = "3" web-time = { version = "1.1", default-features = false } tokio-util = "0.7.12" -# Pezkuwi SDK crates (rebranded from Substrate) - using git deps: +# Pezkuwi SDK crates (rebranded from Bizinikiwi) - using git deps: pezsc-executor = { git = "https://github.com/pezkuwichain/pezkuwi-sdk.git", branch = "main", default-features = false } pezsc-executor-common = { git = "https://github.com/pezkuwichain/pezkuwi-sdk.git", branch = "main", default-features = false } pezsp-crypto-hashing = { git = "https://github.com/pezkuwichain/pezkuwi-sdk.git", branch = "main", default-features = false } @@ -155,7 +155,7 @@ pezkuwi-subxt-lightclient = { version = "0.44.0", path = "lightclient", default- pezkuwi-subxt-utils-fetchmetadata = { version = "0.44.0", path = "utils/fetch-metadata", default-features = false } pezkuwi-subxt-utils-stripmetadata = { version = "0.44.0", path = "utils/strip-metadata", default-features = false } test-runtime = { path = "testing/test-runtime" } -bizinikiwi-runner = { path = "testing/substrate-runner" } +bizinikiwi-runner = { path = "testing/bizinikiwi-runner" } # subxt-signer deps that I expect aren't useful anywhere else: bip39 = { version = "2.1.0", default-features = false } diff --git a/README.md b/README.md index cdaee35193..d1e69e1ac7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# subxt · [![build](https://github.com/paritytech/subxt/actions/workflows/rust.yml/badge.svg)](https://github.com/paritytech/subxt/actions/workflows/rust.yml) [![Latest Version](https://img.shields.io/crates/v/subxt.svg)](https://crates.io/crates/subxt) [![Documentation](https://docs.rs/subxt/badge.svg)](https://docs.rs/subxt) +# subxt · [![build](https://github.com/pezkuwichain/subxt/actions/workflows/rust.yml/badge.svg)](https://github.com/pezkuwichain/subxt/actions/workflows/rust.yml) [![Latest Version](https://img.shields.io/crates/v/subxt.svg)](https://crates.io/crates/subxt) [![Documentation](https://docs.rs/subxt/badge.svg)](https://docs.rs/subxt) -Subxt is a library for interacting with [Substrate](https://github.com/paritytech/polkadot-sdk) based nodes in Rust and WebAssembly. It can: +Subxt is a library for interacting with [Bizinikiwi](https://github.com/pezkuwichain/pezkuwi-sdk) based nodes in Rust and WebAssembly. It can: - Submit Extrinsics (this is where the name comes from). - Subscribe to blocks, reading the extrinsics and associated events from them. @@ -17,7 +17,7 @@ Subxt is a library for interacting with [Substrate](https://github.com/paritytec Take a look in the [examples](./subxt/examples) folder or the [examples](./examples) folder for various smaller or larger `subxt` usage examples, or [read the guide](https://docs.rs/subxt/latest/subxt/book/index.html) to learn more. -### Downloading metadata from a Substrate node +### Downloading metadata from a Bizinikiwi node Use the [`subxt-cli`](./cli) tool to download the metadata for your target runtime from a node. @@ -42,35 +42,35 @@ For more details regarding utilizing subxt, please visit the [documentation](htt ## Integration Testing -Most tests require a running substrate node to communicate with. This is done by spawning an instance of the -substrate node per test. It requires an up-to-date `substrate` executable on your path. +Most tests require a running bizinikiwi node to communicate with. This is done by spawning an instance of the +bizinikiwi node per test. It requires an up-to-date `bizinikiwi` executable on your path. This can be installed from source via cargo: ```bash -cargo install --git https://github.com/paritytech/polkadot-sdk staging-node-cli --force +cargo install --git https://github.com/pezkuwichain/pezkuwi-sdk staging-node-cli --force ``` ## Real world usage Please add your project to this list via a PR. -- [cargo-contract](https://github.com/paritytech/cargo-contract/) CLI for interacting with Wasm smart contracts. +- [cargo-contract](https://github.com/pezkuwichain/cargo-contract/) CLI for interacting with Wasm smart contracts. - [xcm-cli](https://github.com/ascjones/xcm-cli) CLI for submitting XCM messages. - [phala-pherry](https://github.com/Phala-Network/phala-blockchain/tree/master/standalone/pherry) The relayer between Phala blockchain and the off-chain Secure workers. -- [crunch](https://github.com/turboflakes/crunch) CLI to claim staking rewards in batch every Era or X hours for substrate-based chains. +- [crunch](https://github.com/turboflakes/crunch) CLI to claim staking rewards in batch every Era or X hours for bizinikiwi-based chains. - [interbtc-clients](https://github.com/interlay/interbtc-clients) Client implementations for the interBTC parachain; notably the Vault / Relayer and Oracle. - [tidext](https://github.com/tidelabs/tidext) Tidechain client with Stronghold signer. -- [staking-miner-v2](https://github.com/paritytech/staking-miner-v2) Submit NPos election solutions and get rewards. -- [polkadot-introspector](https://github.com/paritytech/polkadot-introspector) Tools for monitoring Polkadot nodes. -- [ink!](https://github.com/paritytech/ink) Smart contract language that uses `subxt` for allowing developers to conduct [End-to-End testing](https://use.ink/basics/contract-testing/end-to-end-e2e-testing) of their contracts. +- [staking-miner-v2](https://github.com/pezkuwichain/staking-miner-v2) Submit NPos election solutions and get rewards. +- [pezkuwi-introspector](https://github.com/pezkuwichain/pezkuwi-introspector) Tools for monitoring Pezkuwi nodes. +- [ink!](https://github.com/pezkuwichain/ink) Smart contract language that uses `subxt` for allowing developers to conduct [End-to-End testing](https://use.ink/basics/contract-testing/end-to-end-e2e-testing) of their contracts. - [Chainflip](https://github.com/chainflip-io/chainflip-backend) A decentralised exchange for native cross-chain swaps. - [Hyperbridge](https://github.com/polytope-labs/hyperbridge) A hyperscalable coprocessor for verifiable cross-chain interoperability. -- [pop CLI](https://github.com/r0gue-io/pop-cli) The all-in-one tool for Polkadot development. +- [pop CLI](https://github.com/r0gue-io/pop-cli) The all-in-one tool for Pezkuwi development. **Alternatives** -[substrate-api-client](https://github.com/scs/substrate-api-client) provides similar functionality. +[bizinikiwi-api-client](https://github.com/scs/bizinikiwi-api-client) provides similar functionality. #### License diff --git a/RELEASING.md b/RELEASING.md index 85134e51b3..21499a2fcb 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -103,6 +103,6 @@ We also assume that ongoing work done is being merged directly to the `master` b git push --tags ``` - Once this is pushed, go along to [the releases page on GitHub](https://github.com/paritytech/subxt/releases) + Once this is pushed, go along to [the releases page on GitHub](https://github.com/pezkuwichain/subxt/releases) and draft a new release which points to the tag you just pushed to `master` above. Copy the changelog comments for the current release into the release description. diff --git a/cli/README.md b/cli/README.md index c282dbf01d..07715ee5ea 100644 --- a/cli/README.md +++ b/cli/README.md @@ -1,6 +1,6 @@ # subxt-cli -Utilities for working with substrate metadata for `subxt` +Utilities for working with bizinikiwi metadata for `subxt` ``` USAGE: @@ -17,7 +17,7 @@ Prints help information SUBCOMMANDS: codegen Generate runtime API client code from metadata help Prints this message or the help of the given subcommand(s) -metadata Download metadata from a substrate node, for use with `subxt` codegen +metadata Download metadata from a bizinikiwi node, for use with `subxt` codegen ``` ## Metadata @@ -32,7 +32,7 @@ USAGE: OPTIONS: -f, --format the format of the metadata to display: `json`, `hex` or `bytes` [default: json] - --url the url of the substrate node to query for metadata [default: http://localhost:9933] + --url the url of the bizinikiwi node to query for metadata [default: http://localhost:9933] ``` ## Codegen @@ -52,7 +52,7 @@ OPTIONS: the path to the encoded metadata file --url - the url of the substrate node to query for metadata for codegen + the url of the bizinikiwi node to query for metadata for codegen ``` diff --git a/cli/src/commands/chain_spec/mod.rs b/cli/src/commands/chain_spec/mod.rs index 9c840bbc2d..ac519f76a4 100644 --- a/cli/src/commands/chain_spec/mod.rs +++ b/cli/src/commands/chain_spec/mod.rs @@ -10,10 +10,10 @@ use std::{io::Write, path::PathBuf}; mod fetch; -/// Download chainSpec from a substrate node. +/// Download chainSpec from a bizinikiwi node. #[derive(Debug, ClapParser)] pub struct Opts { - /// The url of the substrate node to query for metadata for codegen. + /// The url of the bizinikiwi node to query for metadata for codegen. #[clap(long)] url: Url, /// Write the output of the command to the provided file path. diff --git a/cli/src/commands/codegen.rs b/cli/src/commands/codegen.rs index 839df6327c..3306133a1a 100644 --- a/cli/src/commands/codegen.rs +++ b/cli/src/commands/codegen.rs @@ -301,7 +301,7 @@ fn codegen( // Run this first to ensure type paths are unique (which may result in 1,2,3 suffixes being // added to type paths), so that when we validate derives/substitutions below, they are - // allowed for such types. See . + // allowed for such types. See . scale_typegen::utils::ensure_unique_type_paths(metadata.types_mut()) .expect("ensure_unique_type_paths should not fail; please report an issue."); @@ -418,7 +418,7 @@ mod tests { } async fn run(args_str: &str) -> color_eyre::Result { - let mut args = vec!["codegen", "--file=../artifacts/polkadot_metadata_small.scale"]; + let mut args = vec!["codegen", "--file=../artifacts/pezkuwi_metadata_small.scale"]; args.extend(args_str.split(' ').filter(|e| !e.is_empty())); let opts: super::Opts = clap::Parser::try_parse_from(args)?; let mut output: Vec = Vec::new(); diff --git a/cli/src/commands/compatibility.rs b/cli/src/commands/compatibility.rs index 9c98db6d33..dca2b6ae0c 100644 --- a/cli/src/commands/compatibility.rs +++ b/cli/src/commands/compatibility.rs @@ -13,10 +13,10 @@ use std::collections::HashMap; use crate::utils::validate_url_security; -/// Verify metadata compatibility between substrate nodes. +/// Verify metadata compatibility between bizinikiwi nodes. #[derive(Debug, ClapParser)] pub struct Opts { - /// Urls of the substrate nodes to verify for metadata compatibility. + /// Urls of the bizinikiwi nodes to verify for metadata compatibility. #[clap(name = "nodes", long, use_value_delimiter = true, value_parser)] nodes: Vec, /// Check the compatibility of metadata for a particular pallet. diff --git a/cli/src/commands/diff.rs b/cli/src/commands/diff.rs index 1523a0e784..25795f707e 100644 --- a/cli/src/commands/diff.rs +++ b/cli/src/commands/diff.rs @@ -17,8 +17,8 @@ use pezkuwi_subxt_metadata::{ /// /// # Example /// ```text -/// subxt diff ./artifacts/polkadot_metadata_small.scale ./artifacts/polkadot_metadata_tiny.scale -/// subxt diff ./artifacts/polkadot_metadata_small.scale wss://rpc.polkadot.io:443 +/// subxt diff ./artifacts/pezkuwi_metadata_small.scale ./artifacts/pezkuwi_metadata_tiny.scale +/// subxt diff ./artifacts/pezkuwi_metadata_small.scale wss://rpc.pezkuwi.io:443 /// ``` #[derive(Debug, Args)] #[command(author, version, about, long_about = None)] diff --git a/cli/src/commands/explore/mod.rs b/cli/src/commands/explore/mod.rs index abb06b9ec3..716efd0cda 100644 --- a/cli/src/commands/explore/mod.rs +++ b/cli/src/commands/explore/mod.rs @@ -20,7 +20,7 @@ mod runtime_apis; /// Show the pallets and runtime apis that are available: /// /// ```text -/// subxt explore --file=polkadot_metadata.scale +/// subxt explore --file=pezkuwi_metadata.scale /// ``` /// /// ## Pallets @@ -290,7 +290,7 @@ pub mod tests { } async fn run_against_file(cli_command: &str) -> color_eyre::Result { - run(&format!("--file=../artifacts/polkadot_metadata_small.scale {cli_command}")).await + run(&format!("--file=../artifacts/pezkuwi_metadata_small.scale {cli_command}")).await } #[tokio::test] @@ -422,11 +422,11 @@ pub mod tests { #[tokio::test] async fn insecure_urls_get_denied() { // Connection should work fine: - run("--url wss://rpc.polkadot.io:443").await.unwrap(); + run("--url wss://rpc.pezkuwi.io:443").await.unwrap(); // Errors, because the --allow-insecure is not set: assert!( - run("--url ws://rpc.polkadot.io:443") + run("--url ws://rpc.pezkuwi.io:443") .await .unwrap_err() .to_string() diff --git a/cli/src/commands/explore/pallets/calls.rs b/cli/src/commands/explore/pallets/calls.rs index 96e5ece92e..1931605e7e 100644 --- a/cli/src/commands/explore/pallets/calls.rs +++ b/cli/src/commands/explore/pallets/calls.rs @@ -7,7 +7,7 @@ use std::str::FromStr; use pezkuwi_subxt::{ OfflineClient, - config::SubstrateConfig, + config::BizinikiwConfig, metadata::{Metadata, PalletMetadata}, tx, utils::H256, @@ -146,7 +146,7 @@ fn get_calls_enum_type<'a>( /// The specific values used for construction do not matter too much, we just need any OfflineClient /// to create unsigned extrinsics -fn mocked_offline_client(metadata: Metadata) -> OfflineClient { +fn mocked_offline_client(metadata: Metadata) -> OfflineClient { let genesis_hash = H256::from_str("91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3") .expect("Valid hash; qed"); @@ -154,7 +154,7 @@ fn mocked_offline_client(metadata: Metadata) -> OfflineClient { let runtime_version = pezkuwi_subxt::client::RuntimeVersion { spec_version: 9370, transaction_version: 20 }; - OfflineClient::::new(genesis_hash, runtime_version, metadata) + OfflineClient::::new(genesis_hash, runtime_version, metadata) } /// composites stay composites, all other types are converted into a 1-fielded unnamed composite diff --git a/cli/src/commands/metadata.rs b/cli/src/commands/metadata.rs index 28012cc8d7..7758700d47 100644 --- a/cli/src/commands/metadata.rs +++ b/cli/src/commands/metadata.rs @@ -10,7 +10,7 @@ use frame_metadata::{RuntimeMetadata, RuntimeMetadataPrefixed}; use pezkuwi_subxt_utils_stripmetadata::StripMetadata; use std::{io::Write, path::PathBuf}; -/// Download metadata from a substrate node, for use with `subxt` codegen. +/// Download metadata from a bizinikiwi node, for use with `subxt` codegen. #[derive(Debug, ClapParser)] pub struct Opts { #[command(flatten)] diff --git a/cli/src/main.rs b/cli/src/main.rs index 4d19856b35..941f4a790b 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -9,7 +9,7 @@ mod utils; use clap::Parser as ClapParser; -/// Subxt utilities for interacting with Substrate based nodes. +/// Subxt utilities for interacting with Bizinikiwi based nodes. #[derive(Debug, ClapParser)] enum Command { Metadata(commands::metadata::Opts), diff --git a/cli/src/utils.rs b/cli/src/utils.rs index f04741f99b..1386e21d53 100644 --- a/cli/src/utils.rs +++ b/cli/src/utils.rs @@ -11,7 +11,7 @@ use heck::ToUpperCamelCase; use scale_info::PortableRegistry; use scale_typegen_description::{format_type_description, type_description}; use std::{fmt::Display, fs, io::Read, path::PathBuf, str::FromStr}; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; use pezkuwi_subxt_utils_fetchmetadata::{self as fetch_metadata, MetadataVersion, Url}; use scale_value::Value; @@ -19,7 +19,7 @@ use scale_value::Value; /// The source of the metadata. #[derive(Debug, Args, Clone)] pub struct FileOrUrl { - /// The url of the substrate node to query for metadata for codegen. + /// The url of the bizinikiwi node to query for metadata for codegen. #[clap(long, value_parser)] pub url: Option, /// The path to the encoded metadata file. @@ -219,10 +219,10 @@ impl Indent for T {} pub async fn create_client( file_or_url: &FileOrUrl, -) -> color_eyre::Result> { +) -> color_eyre::Result> { let client = match &file_or_url.url { - Some(url) => OnlineClient::::from_url(url).await?, - None => OnlineClient::::new().await?, + Some(url) => OnlineClient::::from_url(url).await?, + None => OnlineClient::::new().await?, }; Ok(client) } @@ -368,7 +368,7 @@ mod tests { assert!(FileOrUrl::from_str("./src/i_dont_exist.rs").is_err()); assert!(matches!( - FileOrUrl::from_str("https://github.com/paritytech/subxt"), + FileOrUrl::from_str("https://github.com/pezkuwichain/subxt"), Ok(FileOrUrl { url: Some(_), file: None, version: None, at_block: None }) )); } diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index b69ed0a1ca..3536c2900c 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! Generate code for submitting extrinsics and query storage of a Substrate runtime. +//! Generate code for submitting extrinsics and query storage of a Bizinikiwi runtime. mod calls; mod constants; @@ -35,7 +35,7 @@ use heck::{ToSnakeCase as _, ToUpperCamelCase}; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; -/// Create the API for interacting with a Substrate runtime. +/// Create the API for interacting with a Bizinikiwi runtime. pub struct RuntimeGenerator { metadata: Metadata, } @@ -57,7 +57,7 @@ impl RuntimeGenerator { RuntimeGenerator { metadata } } - /// Generate the API for interacting with a Substrate runtime. + /// Generate the API for interacting with a Bizinikiwi runtime. /// /// # Arguments /// @@ -107,7 +107,7 @@ impl RuntimeGenerator { }) } - /// Generate the API for interacting with a Substrate runtime. + /// Generate the API for interacting with a Bizinikiwi runtime. /// /// # Arguments /// @@ -218,8 +218,8 @@ impl RuntimeGenerator { )?; // Fetch the paths of the outer enums. - // Substrate exposes those under `kitchensink_runtime`, while Polkadot under - // `polkadot_runtime`. + // Bizinikiwi exposes those under `kitchensink_runtime`, while Pezkuwi under + // `pezkuwi_runtime`. let call_path = type_gen .resolve_type_path(self.metadata.outer_enums().call_enum_ty())? .to_token_stream(type_gen.settings()); diff --git a/codegen/src/error.rs b/codegen/src/error.rs index b3a984b5e7..359b9ec856 100644 --- a/codegen/src/error.rs +++ b/codegen/src/error.rs @@ -16,7 +16,7 @@ pub enum CodegenError { Decode(#[from] codec::Error), /// Out of line modules are not supported. #[error( - "Out-of-line subxt modules are not supported, make sure you are providing a body to your module: pub mod polkadot {{ ... }}" + "Out-of-line subxt modules are not supported, make sure you are providing a body to your module: pub mod pezkuwi {{ ... }}" )] InvalidModule(Span), /// Invalid type path. @@ -24,37 +24,37 @@ pub enum CodegenError { InvalidTypePath(String, syn::Error), /// Metadata for constant could not be found. #[error( - "Metadata for constant entry {0}_{1} could not be found. Make sure you are providing a valid substrate-based metadata" + "Metadata for constant entry {0}_{1} could not be found. Make sure you are providing a valid bizinikiwi-based metadata" )] MissingConstantMetadata(String, String), /// Metadata for storage could not be found. #[error( - "Metadata for storage entry {0}_{1} could not be found. Make sure you are providing a valid substrate-based metadata" + "Metadata for storage entry {0}_{1} could not be found. Make sure you are providing a valid bizinikiwi-based metadata" )] MissingStorageMetadata(String, String), /// Metadata for call could not be found. #[error( - "Metadata for call entry {0}_{1} could not be found. Make sure you are providing a valid substrate-based metadata" + "Metadata for call entry {0}_{1} could not be found. Make sure you are providing a valid bizinikiwi-based metadata" )] MissingCallMetadata(String, String), /// Metadata for call could not be found. #[error( - "Metadata for runtime API entry {0}_{1} could not be found. Make sure you are providing a valid substrate-based metadata" + "Metadata for runtime API entry {0}_{1} could not be found. Make sure you are providing a valid bizinikiwi-based metadata" )] MissingRuntimeApiMetadata(String, String), /// Call variant must have all named fields. #[error( - "Call variant for type {0} must have all named fields. Make sure you are providing a valid substrate-based metadata" + "Call variant for type {0} must have all named fields. Make sure you are providing a valid bizinikiwi-based metadata" )] InvalidCallVariant(u32), /// Type should be an variant/enum. #[error( - "{0} type should be an variant/enum type. Make sure you are providing a valid substrate-based metadata" + "{0} type should be an variant/enum type. Make sure you are providing a valid bizinikiwi-based metadata" )] InvalidType(String), /// Extrinsic call type could not be found. #[error( - "Extrinsic call type could not be found. Make sure you are providing a valid substrate-based metadata" + "Extrinsic call type could not be found. Make sure you are providing a valid bizinikiwi-based metadata" )] MissingCallType, /// There are too many or too few hashers. diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index 7bfd76ac3a..0d82d2980b 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! Generate a type safe Subxt interface for a Substrate runtime from its metadata. +//! Generate a type safe Subxt interface for a Bizinikiwi runtime from its metadata. //! This is used by the `#[subxt]` macro and `subxt codegen` CLI command, but can also //! be used directly if preferable. @@ -44,7 +44,7 @@ pub use syn; /// use pezkuwi_subxt_codegen::{ Metadata, CodegenBuilder }; /// /// // Get hold of and decode some metadata: -/// let encoded = std::fs::read("../artifacts/polkadot_metadata_full.scale").unwrap(); +/// let encoded = std::fs::read("../artifacts/pezkuwi_metadata_full.scale").unwrap(); /// let metadata = Metadata::decode(&mut &*encoded).unwrap(); /// /// // Generate a TokenStream representing the code for the interface. @@ -388,7 +388,7 @@ fn default_substitutes(crate_path: &syn::Path) -> TypeSubstitutes { // `EncodeAsType` the bytes would be re-encoded. This leads to the bytes // being altered by adding the length prefix in front of them. - // Note: Not sure if this is appropriate or not. The most recent polkadot.rs file does not + // Note: Not sure if this is appropriate or not. The most recent pezkuwi.rs file does not // have these. ( parse_quote!(pezsp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic), diff --git a/core/src/blocks/extrinsics.rs b/core/src/blocks/extrinsics.rs index 629491ef02..cbbd88f2a2 100644 --- a/core/src/blocks/extrinsics.rs +++ b/core/src/blocks/extrinsics.rs @@ -336,7 +336,7 @@ pub struct FoundExtrinsic { #[cfg(test)] mod tests { use super::*; - use crate::config::SubstrateConfig; + use crate::config::BizinikiwConfig; use assert_matches::assert_matches; use codec::{Decode, Encode}; use frame_metadata::{ @@ -478,7 +478,7 @@ mod tests { let metadata = metadata(); // Decode with empty bytes. - let result = Extrinsics::::decode_from(vec![vec![]], metadata); + let result = Extrinsics::::decode_from(vec![vec![]], metadata); assert_matches!( result.err(), Some(crate::error::ExtrinsicDecodeErrorAt { extrinsic_index: 0, error: _ }) @@ -492,7 +492,7 @@ mod tests { let metadata = metadata(); // Decode with invalid version. - let result = Extrinsics::::decode_from(vec![vec![3u8].encode()], metadata); + let result = Extrinsics::::decode_from(vec![vec![3u8].encode()], metadata); assert_matches!( result.err(), @@ -508,7 +508,7 @@ mod tests { #[test] fn tx_hashes_line_up() { let metadata = metadata(); - let hasher = ::Hasher::new(&metadata); + let hasher = ::Hasher::new(&metadata); let tx = crate::dynamic::tx( "Test", @@ -517,11 +517,11 @@ mod tests { ); // Encoded TX ready to submit. - let tx_encoded = crate::tx::create_v4_unsigned::(&tx, &metadata) + let tx_encoded = crate::tx::create_v4_unsigned::(&tx, &metadata) .expect("Valid dynamic parameters are provided"); // Extrinsic details ready to decode. - let extrinsics = Extrinsics::::decode_from( + let extrinsics = Extrinsics::::decode_from( vec![tx_encoded.encoded().to_owned()], metadata, ) @@ -544,13 +544,13 @@ mod tests { "TestCall", vec![Value::u128(10), Value::bool(true), Value::string("SomeValue")], ); - let tx_encoded = crate::tx::create_v4_unsigned::(&tx, &metadata) + let tx_encoded = crate::tx::create_v4_unsigned::(&tx, &metadata) .expect("Valid dynamic parameters are provided"); // Note: `create_unsigned` produces the extrinsic bytes by prefixing the extrinsic length. // The length is handled deserializing `ChainBlockExtrinsic`, therefore the first byte is // not needed. - let extrinsics = Extrinsics::::decode_from( + let extrinsics = Extrinsics::::decode_from( vec![tx_encoded.encoded().to_owned()], metadata, ) diff --git a/core/src/blocks/mod.rs b/core/src/blocks/mod.rs index 445d10cb66..886098f05e 100644 --- a/core/src/blocks/mod.rs +++ b/core/src/blocks/mod.rs @@ -16,18 +16,18 @@ //! use pezkuwi_subxt_macro::subxt; //! use pezkuwi_subxt_core::blocks; //! use pezkuwi_subxt_core::Metadata; -//! use pezkuwi_subxt_core::config::PolkadotConfig; +//! use pezkuwi_subxt_core::config::PezkuwiConfig; //! use alloc::vec; //! //! // If we generate types without `subxt`, we need to point to `::pezkuwi_subxt_core`: //! #[subxt( //! crate = "::pezkuwi_subxt_core", -//! runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale", +//! runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale", //! )] -//! pub mod polkadot {} +//! pub mod pezkuwi {} //! //! // Some metadata we'd like to use to help us decode extrinsics: -//! let metadata_bytes = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); +//! let metadata_bytes = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); //! let metadata = Metadata::decode_from(&metadata_bytes[..]).unwrap(); //! //! // Some extrinsics we'd like to decode: @@ -38,7 +38,7 @@ //! ]; //! //! // Given some chain config and metadata, we know how to decode the bytes. -//! let exts = blocks::decode_from::(ext_bytes, metadata).unwrap(); +//! let exts = blocks::decode_from::(ext_bytes, metadata).unwrap(); //! //! // We'll see 3 extrinsics: //! assert_eq!(exts.len(), 3); diff --git a/core/src/config/substrate.rs b/core/src/config/bizinikiwi.rs similarity index 92% rename from core/src/config/substrate.rs rename to core/src/config/bizinikiwi.rs index 631a32db15..efcf47d5d0 100644 --- a/core/src/config/substrate.rs +++ b/core/src/config/bizinikiwi.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! Substrate specific configuration +//! Bizinikiwi specific configuration use super::{Config, DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder, Hasher, Header}; pub use crate::utils::{AccountId32, MultiAddress, MultiSignature}; @@ -12,31 +12,31 @@ use pezkuwi_subxt_metadata::Metadata; pub use primitive_types::{H256, U256}; use serde::{Deserialize, Serialize}; -/// Default set of commonly used types by Substrate runtimes. +/// Default set of commonly used types by Bizinikiwi runtimes. // Note: We only use this at the type level, so it should be impossible to // create an instance of it. // The trait implementations exist just to make life easier, // but shouldn't strictly be necessary since users can't instantiate this type. #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] -pub enum SubstrateConfig {} +pub enum BizinikiwConfig {} -impl Config for SubstrateConfig { +impl Config for BizinikiwConfig { type AccountId = AccountId32; type Address = MultiAddress; type Signature = MultiSignature; type Hasher = DynamicHasher256; - type Header = SubstrateHeader; - type ExtrinsicParams = SubstrateExtrinsicParams; + type Header = BizinikiwiHeader; + type ExtrinsicParams = BizinikiwiExtrinsicParams; type AssetId = u32; } /// A struct representing the signed extra and additional parameters required -/// to construct a transaction for the default substrate node. -pub type SubstrateExtrinsicParams = DefaultExtrinsicParams; +/// to construct a transaction for the default bizinikiwi node. +pub type BizinikiwiExtrinsicParams = DefaultExtrinsicParams; -/// A builder which leads to [`SubstrateExtrinsicParams`] being constructed. +/// A builder which leads to [`BizinikiwiExtrinsicParams`] being constructed. /// This is what you provide to methods like `sign_and_submit()`. -pub type SubstrateExtrinsicParamsBuilder = DefaultExtrinsicParamsBuilder; +pub type BizinikiwiExtrinsicParamsBuilder = DefaultExtrinsicParamsBuilder; /// A hasher (ie implements [`Hasher`]) which hashes values using the blaks2_256 algorithm. #[derive(Debug, Clone, Copy, PartialEq, Eq)] @@ -105,11 +105,11 @@ impl Hasher for DynamicHasher256 { } } -/// A generic Substrate header type, adapted from `sp_runtime::generic::Header`. +/// A generic Bizinikiwi header type, adapted from `sp_runtime::generic::Header`. /// The block number and hasher can be configured to adapt this for other nodes. #[derive(Encode, Decode, Debug, PartialEq, Eq, Clone, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] -pub struct SubstrateHeader + TryFrom, H: Hasher> { +pub struct BizinikiwiHeader + TryFrom, H: Hasher> { /// The parent hash. pub parent_hash: H::Output, /// The block number. @@ -124,11 +124,11 @@ pub struct SubstrateHeader + TryFrom, H: Hasher> { pub digest: Digest, } -impl Header for SubstrateHeader +impl Header for BizinikiwiHeader where N: Copy + Into + Into + TryFrom + Encode, H: Hasher, - SubstrateHeader: Encode + Decode, + BizinikiwiHeader: Encode + Decode, { type Number = N; type Hasher = H; @@ -365,12 +365,12 @@ mod test { } "#; - let header: SubstrateHeader = + let header: BizinikiwiHeader = serde_json::from_str(numeric_block_number_json).expect("valid block header"); assert_eq!(header.number(), 4); } - // Substrate returns hex block numbers; ensure we can also deserialize those OK. + // Bizinikiwi returns hex block numbers; ensure we can also deserialize those OK. #[test] fn can_deserialize_hex_block_number() { let numeric_block_number_json = r#" @@ -385,7 +385,7 @@ mod test { } "#; - let header: SubstrateHeader = + let header: BizinikiwiHeader = serde_json::from_str(numeric_block_number_json).expect("valid block header"); assert_eq!(header.number(), 4); } diff --git a/core/src/config/default_extrinsic_params.rs b/core/src/config/default_extrinsic_params.rs index 3b7da21acd..d1aa9ebd5b 100644 --- a/core/src/config/default_extrinsic_params.rs +++ b/core/src/config/default_extrinsic_params.rs @@ -161,7 +161,7 @@ mod test { #[test] fn params_are_default() { - let params = DefaultExtrinsicParamsBuilder::::new().build(); + let params = DefaultExtrinsicParamsBuilder::::new().build(); assert_default(params) } } diff --git a/core/src/config/mod.rs b/core/src/config/mod.rs index ed3e5f9552..523f560806 100644 --- a/core/src/config/mod.rs +++ b/core/src/config/mod.rs @@ -4,15 +4,15 @@ //! This module provides a [`Config`] type, which is used to define various //! types that are important in order to speak to a particular chain. -//! [`SubstrateConfig`] provides a default set of these types suitable for the -//! default Substrate node implementation, and [`PolkadotConfig`] for a -//! Polkadot node. +//! [`BizinikiwConfig`] provides a default set of these types suitable for the +//! default Bizinikiwi node implementation, and [`PezkuwiConfig`] for a +//! Pezkuwi node. mod default_extrinsic_params; mod extrinsic_params; -pub mod polkadot; -pub mod substrate; +pub mod pezkuwi; +pub mod bizinikiwi; pub mod transaction_extensions; use codec::{Decode, Encode}; @@ -24,8 +24,8 @@ use serde::{Serialize, de::DeserializeOwned}; pub use default_extrinsic_params::{DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder}; pub use extrinsic_params::{ExtrinsicParams, ExtrinsicParamsEncoder}; -pub use polkadot::{PolkadotConfig, PolkadotExtrinsicParams, PolkadotExtrinsicParamsBuilder}; -pub use substrate::{SubstrateConfig, SubstrateExtrinsicParams, SubstrateExtrinsicParamsBuilder}; +pub use pezkuwi::{PezkuwiConfig, PezkuwiExtrinsicParams, PezkuwiExtrinsicParamsBuilder}; +pub use bizinikiwi::{BizinikiwConfig, BizinikiwiExtrinsicParams, BizinikiwiExtrinsicParamsBuilder}; pub use transaction_extensions::TransactionExtension; /// Runtime types. diff --git a/core/src/config/pezkuwi.rs b/core/src/config/pezkuwi.rs new file mode 100644 index 0000000000..845c9f0102 --- /dev/null +++ b/core/src/config/pezkuwi.rs @@ -0,0 +1,41 @@ +// Copyright 2019-2024 Parity Technologies (UK) Ltd. +// This file is dual-licensed as Apache-2.0 or GPL-3.0. +// see LICENSE for license details. + +//! Pezkuwi specific configuration + +use super::{Config, DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder}; + +use crate::config::BizinikiwConfig; +pub use crate::utils::{AccountId32, MultiAddress, MultiSignature}; +pub use primitive_types::{H256, U256}; + +/// Default set of commonly used types by Pezkuwi nodes. +// Note: The trait implementations exist just to make life easier, +// but shouldn't strictly be necessary since users can't instantiate this type. +#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] +pub enum PezkuwiConfig {} + +impl Config for PezkuwiConfig { + type AccountId = ::AccountId; + type Signature = ::Signature; + type Hasher = ::Hasher; + type Header = ::Header; + type AssetId = ::AssetId; + + // Address on Pezkuwi has no account index, whereas it's u32 on + // the default bizinikiwi dev node. + type Address = MultiAddress; + + // These are the same as the default bizinikiwi node, but redefined + // because we need to pass the PezkuwiConfig trait as a param. + type ExtrinsicParams = PezkuwiExtrinsicParams; +} + +/// A struct representing the signed extra and additional parameters required +/// to construct a transaction for a pezkuwi node. +pub type PezkuwiExtrinsicParams = DefaultExtrinsicParams; + +/// A builder which leads to [`PezkuwiExtrinsicParams`] being constructed. +/// This is what you provide to methods like `sign_and_submit()`. +pub type PezkuwiExtrinsicParamsBuilder = DefaultExtrinsicParamsBuilder; diff --git a/core/src/config/polkadot.rs b/core/src/config/polkadot.rs deleted file mode 100644 index a9e15e484d..0000000000 --- a/core/src/config/polkadot.rs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2019-2024 Parity Technologies (UK) Ltd. -// This file is dual-licensed as Apache-2.0 or GPL-3.0. -// see LICENSE for license details. - -//! Polkadot specific configuration - -use super::{Config, DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder}; - -use crate::config::SubstrateConfig; -pub use crate::utils::{AccountId32, MultiAddress, MultiSignature}; -pub use primitive_types::{H256, U256}; - -/// Default set of commonly used types by Polkadot nodes. -// Note: The trait implementations exist just to make life easier, -// but shouldn't strictly be necessary since users can't instantiate this type. -#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] -pub enum PolkadotConfig {} - -impl Config for PolkadotConfig { - type AccountId = ::AccountId; - type Signature = ::Signature; - type Hasher = ::Hasher; - type Header = ::Header; - type AssetId = ::AssetId; - - // Address on Polkadot has no account index, whereas it's u32 on - // the default substrate dev node. - type Address = MultiAddress; - - // These are the same as the default substrate node, but redefined - // because we need to pass the PolkadotConfig trait as a param. - type ExtrinsicParams = PolkadotExtrinsicParams; -} - -/// A struct representing the signed extra and additional parameters required -/// to construct a transaction for a polkadot node. -pub type PolkadotExtrinsicParams = DefaultExtrinsicParams; - -/// A builder which leads to [`PolkadotExtrinsicParams`] being constructed. -/// This is what you provide to methods like `sign_and_submit()`. -pub type PolkadotExtrinsicParamsBuilder = DefaultExtrinsicParamsBuilder; diff --git a/core/src/config/transaction_extensions.rs b/core/src/config/transaction_extensions.rs index 35c4c21484..58e334e168 100644 --- a/core/src/config/transaction_extensions.rs +++ b/core/src/config/transaction_extensions.rs @@ -96,7 +96,7 @@ impl TransactionExtension for VerifySignature { } /// This allows a signature to be provided to the [`VerifySignature`] transaction extension. -// Dev note: this must encode identically to https://github.com/paritytech/polkadot-sdk/blob/fd72d58313c297a10600037ce1bb88ec958d722e/substrate/frame/verify-signature/src/extension.rs#L43 +// Dev note: this must encode identically to https://github.com/pezkuwichain/pezkuwi-sdk/blob/fd72d58313c297a10600037ce1bb88ec958d722e/bizinikiwi/frame/verify-signature/src/extension.rs#L43 #[derive(codec::Encode, codec::Decode)] pub enum VerifySignatureDetails { /// A signature has been provided. diff --git a/core/src/constants/mod.rs b/core/src/constants/mod.rs index 07ce2b0513..1b97b059dc 100644 --- a/core/src/constants/mod.rs +++ b/core/src/constants/mod.rs @@ -17,16 +17,16 @@ //! // If we generate types without `subxt`, we need to point to `::pezkuwi_subxt_core`: //! #[subxt( //! crate = "::pezkuwi_subxt_core", -//! runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale", +//! runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale", //! )] -//! pub mod polkadot {} +//! pub mod pezkuwi {} //! //! // Some metadata we'd like to access constants in: -//! let metadata_bytes = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); +//! let metadata_bytes = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); //! let metadata = Metadata::decode_from(&metadata_bytes[..]).unwrap(); //! //! // We can use a static address to obtain some constant: -//! let address = polkadot::constants().balances().existential_deposit(); +//! let address = pezkuwi::constants().balances().existential_deposit(); //! //! // This validates that the address given is in line with the metadata //! // we're trying to access the constant in: diff --git a/core/src/custom_values/mod.rs b/core/src/custom_values/mod.rs index d6e33f39bf..5d378423a5 100644 --- a/core/src/custom_values/mod.rs +++ b/core/src/custom_values/mod.rs @@ -17,16 +17,16 @@ //! // If we generate types without `subxt`, we need to point to `::pezkuwi_subxt_core`: //! #[subxt( //! crate = "::pezkuwi_subxt_core", -//! runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale", +//! runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale", //! )] -//! pub mod polkadot {} +//! pub mod pezkuwi {} //! //! // Some metadata we'd like to access custom values in: -//! let metadata_bytes = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); +//! let metadata_bytes = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); //! let metadata = Metadata::decode_from(&metadata_bytes[..]).unwrap(); //! //! // At the moment, we don't expect to see any custom values in the metadata -//! // for Polkadot, so this will return an error: +//! // for Pezkuwi, so this will return an error: //! let err = custom_values::get("Foo", &metadata); //! ``` diff --git a/core/src/events.rs b/core/src/events.rs index a5450f5647..ad36026374 100644 --- a/core/src/events.rs +++ b/core/src/events.rs @@ -8,7 +8,7 @@ //! //! ```rust //! use pezkuwi_subxt_macro::subxt; -//! use pezkuwi_subxt_core::config::PolkadotConfig; +//! use pezkuwi_subxt_core::config::PezkuwiConfig; //! use pezkuwi_subxt_core::events; //! use pezkuwi_subxt_core::Metadata; //! use pezkuwi_subxt_core::dynamic::Value; @@ -16,19 +16,19 @@ //! // If we generate types without `subxt`, we need to point to `::pezkuwi_subxt_core`: //! #[subxt( //! crate = "::pezkuwi_subxt_core", -//! runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +//! runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", //! )] -//! pub mod polkadot {} +//! pub mod pezkuwi {} //! //! // Some metadata we'll use to work with storage entries: -//! let metadata_bytes = include_bytes!("../../artifacts/polkadot_metadata_full.scale"); +//! let metadata_bytes = include_bytes!("../../artifacts/pezkuwi_metadata_full.scale"); //! let metadata = Metadata::decode_from(&metadata_bytes[..]).unwrap(); //! //! // Some bytes representing events (located in System.Events storage): //! let event_bytes = hex::decode("1c00000000000000a2e9b53d5517020000000100000000000310c96d901d0102000000020000000408d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27dbeea5a030000000000000000000000000000020000000402d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48102700000000000000000000000000000000020000000407be5ddb1579b72e84524fc29e78609e3caf42e85aa118ebfe0b0ad404b5bdd25fbeea5a030000000000000000000000000000020000002100d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27dbeea5a03000000000000000000000000000000000000000000000000000000000000020000000000426df03e00000000").unwrap(); //! //! // We can decode these bytes like so: -//! let evs = events::decode_from::(event_bytes, metadata); +//! let evs = events::decode_from::(event_bytes, metadata); //! //! // And then do things like iterate over them and inspect details: //! for ev in evs.iter() { @@ -461,7 +461,7 @@ pub struct EventMetadataDetails<'a> { #[cfg(test)] pub(crate) mod test_utils { use super::*; - use crate::config::{HashFor, SubstrateConfig}; + use crate::config::{HashFor, BizinikiwConfig}; use codec::Encode; use frame_metadata::{ RuntimeMetadataPrefixed, @@ -494,12 +494,12 @@ pub(crate) mod test_utils { pub struct EventRecord { phase: Phase, event: AllEvents, - topics: Vec>, + topics: Vec>, } impl EventRecord { /// Create a new event record with the given phase, event, and topics. - pub fn new(phase: Phase, event: E, topics: Vec>) -> Self { + pub fn new(phase: Phase, event: E, topics: Vec>) -> Self { Self { phase, event: AllEvents::Test(event), topics } } } @@ -580,7 +580,7 @@ pub(crate) mod test_utils { pub fn events( metadata: Metadata, event_records: Vec>, - ) -> Events { + ) -> Events { let num_events = event_records.len() as u32; let mut event_bytes = Vec::new(); for ev in event_records { @@ -595,7 +595,7 @@ pub(crate) mod test_utils { metadata: Metadata, event_bytes: Vec, num_events: u32, - ) -> Events { + ) -> Events { // Prepend compact encoded length to event bytes: let mut all_event_bytes = Compact(num_events).encode(); all_event_bytes.extend(event_bytes); @@ -609,7 +609,7 @@ mod tests { test_utils::{AllEvents, EventRecord, event_record, events, events_raw}, *, }; - use crate::{config::SubstrateConfig, events::Phase}; + use crate::{config::BizinikiwConfig, events::Phase}; use codec::Encode; use primitive_types::H256; use scale_info::TypeInfo; @@ -637,7 +637,7 @@ mod tests { /// Compare some actual [`RawEventDetails`] with a hand-constructed /// (probably) [`TestRawEventDetails`]. pub fn assert_raw_events_match( - actual: EventDetails, + actual: EventDetails, expected: TestRawEventDetails, ) { let actual_fields_no_context: Vec<_> = actual diff --git a/core/src/runtime_api/mod.rs b/core/src/runtime_api/mod.rs index 73d9e3e1f2..8605e86e31 100644 --- a/core/src/runtime_api/mod.rs +++ b/core/src/runtime_api/mod.rs @@ -15,16 +15,16 @@ //! // If we generate types without `subxt`, we need to point to `::pezkuwi_subxt_core`: //! #[subxt( //! crate = "::pezkuwi_subxt_core", -//! runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale", +//! runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale", //! )] -//! pub mod polkadot {} +//! pub mod pezkuwi {} //! //! // Some metadata we'll use to work with storage entries: -//! let metadata_bytes = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); +//! let metadata_bytes = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); //! let metadata = Metadata::decode_from(&metadata_bytes[..]).unwrap(); //! //! // Build a storage query to access account information. -//! let payload = polkadot::apis().metadata().metadata_versions(); +//! let payload = pezkuwi::apis().metadata().metadata_versions(); //! //! // We can validate that the payload is compatible with the given metadata. //! runtime_api::validate(&payload, &metadata).unwrap(); diff --git a/core/src/storage/mod.rs b/core/src/storage/mod.rs index 071ae2aa44..3271f21d52 100644 --- a/core/src/storage/mod.rs +++ b/core/src/storage/mod.rs @@ -15,16 +15,16 @@ //! // If we generate types without `subxt`, we need to point to `::pezkuwi_subxt_core`: //! #[subxt( //! crate = "::pezkuwi_subxt_core", -//! runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale", +//! runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale", //! )] -//! pub mod polkadot {} +//! pub mod pezkuwi {} //! //! // Some metadata we'll use to work with storage entries: -//! let metadata_bytes = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); +//! let metadata_bytes = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); //! let metadata = Metadata::decode_from(&metadata_bytes[..]).unwrap(); //! //! // Build a storage query to access account information. -//! let address = polkadot::storage().system().account(); +//! let address = pezkuwi::storage().system().account(); //! //! // We can validate that the address is compatible with the given metadata. //! storage::validate(&address, &metadata).unwrap(); diff --git a/core/src/tx/mod.rs b/core/src/tx/mod.rs index 28898728bc..31cc6bccfb 100644 --- a/core/src/tx/mod.rs +++ b/core/src/tx/mod.rs @@ -9,7 +9,7 @@ //! ```rust //! use pezkuwi_subxt_signer::sr25519::dev; //! use pezkuwi_subxt_macro::subxt; -//! use pezkuwi_subxt_core::config::{PolkadotConfig, HashFor}; +//! use pezkuwi_subxt_core::config::{PezkuwiConfig, HashFor}; //! use pezkuwi_subxt_core::config::DefaultExtrinsicParamsBuilder as Params; //! use pezkuwi_subxt_core::tx; //! use pezkuwi_subxt_core::utils::H256; @@ -18,14 +18,14 @@ //! // If we generate types without `subxt`, we need to point to `::pezkuwi_subxt_core`: //! #[subxt( //! crate = "::pezkuwi_subxt_core", -//! runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale", +//! runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale", //! )] -//! pub mod polkadot {} +//! pub mod pezkuwi {} //! //! // Gather some other information about the chain that we'll need to construct valid extrinsics: -//! let state = tx::ClientState:: { +//! let state = tx::ClientState:: { //! metadata: { -//! let metadata_bytes = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); +//! let metadata_bytes = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); //! Metadata::decode_from(&metadata_bytes[..]).unwrap() //! }, //! genesis_hash: { @@ -41,7 +41,7 @@ //! //! // Now we can build a balance transfer extrinsic. //! let dest = dev::bob().public_key().into(); -//! let call = polkadot::tx().balances().transfer_allow_death(dest, 10_000); +//! let call = pezkuwi::tx().balances().transfer_allow_death(dest, 10_000); //! let params = Params::new().tip(1_000).nonce(0).build(); //! //! // We can validate that this lines up with the given metadata: diff --git a/core/src/tx/payload.rs b/core/src/tx/payload.rs index 0c67c394cd..931f571fed 100644 --- a/core/src/tx/payload.rs +++ b/core/src/tx/payload.rs @@ -222,7 +222,7 @@ mod tests { use scale_value::Composite; fn test_metadata() -> Metadata { - let metadata_bytes = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); + let metadata_bytes = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); Metadata::decode(&mut &metadata_bytes[..]).expect("Valid metadata") } diff --git a/core/src/tx/signer.rs b/core/src/tx/signer.rs index 6132a7144a..4bda9bf91b 100644 --- a/core/src/tx/signer.rs +++ b/core/src/tx/signer.rs @@ -3,7 +3,7 @@ // see LICENSE for license details. //! A library to **sub**mit e**xt**rinsics to a -//! [substrate](https://github.com/paritytech/substrate) node via RPC. +//! [bizinikiwi](https://github.com/pezkuwichain/bizinikiwi) node via RPC. use crate::Config; diff --git a/core/src/utils/account_id.rs b/core/src/utils/account_id.rs index 3e27426944..91abd6aa0b 100644 --- a/core/src/utils/account_id.rs +++ b/core/src/utils/account_id.rs @@ -2,17 +2,17 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! The "default" Substrate/Polkadot AccountId. This is used in codegen, as well as signing related +//! The "default" Bizinikiwi/Pezkuwi AccountId. This is used in codegen, as well as signing related //! bits. This doesn't contain much functionality itself, but is easy to convert to/from an //! `sp_core::AccountId32` for instance, to gain functionality without forcing a dependency on -//! Substrate crates here. +//! Bizinikiwi crates here. use alloc::{format, string::String, vec, vec::Vec}; use codec::{Decode, Encode}; use serde::{Deserialize, Serialize}; use thiserror::Error as DeriveError; -/// A 32-byte cryptographic identifier. This is a simplified version of Substrate's +/// A 32-byte cryptographic identifier. This is a simplified version of Bizinikiwi's /// `sp_core::crypto::AccountId32`. To obtain more functionality, convert this into /// that type. #[derive( @@ -52,7 +52,7 @@ impl AccountId32 { // Return the ss58-check string for this key. Adapted from `sp_core::crypto`. We need this to // serialize our account appropriately but otherwise don't care. fn to_ss58check(&self) -> String { - // For serializing to a string to obtain the account nonce, we use the default substrate + // For serializing to a string to obtain the account nonce, we use the default bizinikiwi // prefix (since we have no way to otherwise pick one). It doesn't really matter, since when // it's deserialized back in system_accountNextIndex, we ignore this (so long as it's // valid). @@ -166,23 +166,23 @@ mod test { use sp_keyring::sr25519::Keyring; #[test] - fn ss58_is_compatible_with_substrate_impl() { + fn ss58_is_compatible_with_bizinikiwi_impl() { let keyrings = vec![Keyring::Alice, Keyring::Bob, Keyring::Charlie]; for keyring in keyrings { - let substrate_account = keyring.to_account_id(); - let local_account = AccountId32(substrate_account.clone().into()); + let bizinikiwi_account = keyring.to_account_id(); + let local_account = AccountId32(bizinikiwi_account.clone().into()); // Both should encode to ss58 the same way: - let substrate_ss58 = substrate_account.to_ss58check(); - assert_eq!(substrate_ss58, local_account.to_ss58check()); + let bizinikiwi_ss58 = bizinikiwi_account.to_ss58check(); + assert_eq!(bizinikiwi_ss58, local_account.to_ss58check()); // Both should decode from ss58 back to the same: assert_eq!( - sp_core::crypto::AccountId32::from_ss58check(&substrate_ss58).unwrap(), - substrate_account + sp_core::crypto::AccountId32::from_ss58check(&bizinikiwi_ss58).unwrap(), + bizinikiwi_account ); - assert_eq!(AccountId32::from_ss58check(&substrate_ss58).unwrap(), local_account); + assert_eq!(AccountId32::from_ss58check(&bizinikiwi_ss58).unwrap(), local_account); } } } diff --git a/core/src/utils/multi_address.rs b/core/src/utils/multi_address.rs index 3482c65a4b..22bbb355b2 100644 --- a/core/src/utils/multi_address.rs +++ b/core/src/utils/multi_address.rs @@ -2,16 +2,16 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! The "default" Substrate/Polkadot Address type. This is used in codegen, as well as signing +//! The "default" Bizinikiwi/Pezkuwi Address type. This is used in codegen, as well as signing //! related bits. This doesn't contain much functionality itself, but is easy to convert to/from an //! `sp_runtime::MultiAddress` for instance, to gain functionality without forcing a dependency on -//! Substrate crates here. +//! Bizinikiwi crates here. use alloc::vec::Vec; use codec::{Decode, Encode}; /// A multi-format address wrapper for on-chain accounts. This is a simplified version of -/// Substrate's `sp_runtime::MultiAddress`. +/// Bizinikiwi's `sp_runtime::MultiAddress`. #[derive( Clone, Eq, diff --git a/core/src/utils/multi_signature.rs b/core/src/utils/multi_signature.rs index 86560c6f75..43434bdb28 100644 --- a/core/src/utils/multi_signature.rs +++ b/core/src/utils/multi_signature.rs @@ -2,10 +2,10 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! The "default" Substrate/Polkadot Signature type. This is used in codegen, as well as signing +//! The "default" Bizinikiwi/Pezkuwi Signature type. This is used in codegen, as well as signing //! related bits. This doesn't contain much functionality itself, but is easy to convert to/from an //! `sp_runtime::MultiSignature` for instance, to gain functionality without forcing a dependency on -//! Substrate crates here. +//! Bizinikiwi crates here. use codec::{Decode, Encode}; diff --git a/core/src/utils/unchecked_extrinsic.rs b/core/src/utils/unchecked_extrinsic.rs index 5a9a7ed31e..cceb91768b 100644 --- a/core/src/utils/unchecked_extrinsic.rs +++ b/core/src/utils/unchecked_extrinsic.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! The "default" Substrate/Polkadot UncheckedExtrinsic. +//! The "default" Bizinikiwi/Pezkuwi UncheckedExtrinsic. //! This is used in codegen for runtime API calls. //! //! The inner bytes represent the encoded extrinsic expected by the @@ -17,7 +17,7 @@ use scale_decode::{DecodeAsType, IntoVisitor, TypeResolver, Visitor, visitor::De use super::{Encoded, Static}; use alloc::vec::Vec; -/// The unchecked extrinsic from substrate. +/// The unchecked extrinsic from bizinikiwi. #[derive(Clone, Debug, Eq, PartialEq, Encode)] pub struct UncheckedExtrinsic( Static, diff --git a/core/src/utils/wrapper_opaque.rs b/core/src/utils/wrapper_opaque.rs index 339b758baa..a8dfeeaf3a 100644 --- a/core/src/utils/wrapper_opaque.rs +++ b/core/src/utils/wrapper_opaque.rs @@ -15,7 +15,7 @@ use alloc::{format, vec::Vec}; /// access the real type `T` [`Self::try_decode`] needs to be used. // Dev notes: // -// - This is adapted from [here](https://github.com/paritytech/substrate/blob/master/frame/support/src/traits/misc.rs). +// - This is adapted from [here](https://github.com/pezkuwichain/bizinikiwi/blob/master/frame/support/src/traits/misc.rs). // - The encoded bytes will be a compact encoded length followed by that number of bytes. // - However, the TypeInfo describes the type as a composite with first a compact encoded length and // next the type itself. @@ -153,7 +153,7 @@ mod test { use super::*; - // Copied from https://github.com/paritytech/substrate/blob/master/frame/support/src/traits/misc.rs + // Copied from https://github.com/pezkuwichain/bizinikiwi/blob/master/frame/support/src/traits/misc.rs // and used for tests to check that we can work with the expected TypeInfo without needing to // import the frame_support crate, which has quite a lot of dependencies. impl scale_info::TypeInfo for WrapperKeepOpaque { diff --git a/examples/ffi-example/README.md b/examples/ffi-example/README.md index aa2228fe56..dced7ca48c 100644 --- a/examples/ffi-example/README.md +++ b/examples/ffi-example/README.md @@ -4,7 +4,7 @@ This example shows how to expose a small piece of Subxt functionality, in our ca ## Overview -- We want to let non-Rust clients interact with any Substrate-based node (Polkadot in this example) via a tiny FFI layer. +- We want to let non-Rust clients interact with any Bizinikiwi-based node (Pezkuwi in this example) via a tiny FFI layer. - Instead of exposing Subxt’s full, Rust-centric API, we build a thin **facade crate** that: 1. Calls Subxt under the hood 2. Exposes just the functions we need via `pub extern "C" fn …` @@ -15,7 +15,7 @@ flowchart LR subgraph Rust side subxt[Subxt Public API] facade[Facade crate] - node[Substrate node] + node[Bizinikiwi node] cabi[C ABI library] subxt --> facade facade --> node @@ -46,14 +46,14 @@ which does a single balance transfer and returns 0 on success, –1 on error. - Rust toolchain (with cargo) - Python 3 - Node.js (for the JS example. Version 19 worked on my M2 Mac, but version 22 did not, so YMMV). -- A running Substrate node (Polkadot) on ws://127.0.0.1:8000. One can use Chopsticks for a quick local Polkadot node: +- A running Bizinikiwi node (Pezkuwi) on ws://127.0.0.1:8000. One can use Chopsticks for a quick local Pezkuwi node: ```shell npx @acala-network/chopsticks \ - --config=https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/polkadot.yml + --config=https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/pezkuwi.yml ``` - Or, if you have a `substrate-node` binary, just run `substrate-node --dev --rpc-port 8000`. + Or, if you have a `bizinikiwi-node` binary, just run `bizinikiwi-node --dev --rpc-port 8000`. - In our Python and Javascript files, we introduce a **dest** variable that represents the destination account for the transfer, we gave it a hard coded value (Bob's account public key) from the running Chopsticks node. Feel free to change it to any other account, or better yet, make it generic! If you run into any issues running the Node version, I found that I needed to run `brew install python-setuptools` too. diff --git a/examples/ffi-example/src/lib.rs b/examples/ffi-example/src/lib.rs index eb08077c4e..f0eea8c8d6 100644 --- a/examples/ffi-example/src/lib.rs +++ b/examples/ffi-example/src/lib.rs @@ -1,6 +1,6 @@ use hex::decode; use std::{ffi::CStr, os::raw::c_char, sync::OnceLock}; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig, dynamic::Value, ext::scale_value::Composite, tx}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig, dynamic::Value, ext::scale_value::Composite, tx}; use pezkuwi_subxt_signer::sr25519::dev; use tokio::runtime::Runtime; @@ -35,7 +35,7 @@ pub extern "C" fn do_transfer(dest_hex: *const c_char, amount: u64) -> i32 { // Spin up (or reuse) our Tokio runtime and connect: let client = tokio_rt().block_on(async { - OnlineClient::::from_url("ws://127.0.0.1:8000") + OnlineClient::::from_url("ws://127.0.0.1:8000") .await .unwrap() }); diff --git a/examples/parachain-example/README.md b/examples/parachain-example/README.md index b11622cd1c..beecb7432c 100644 --- a/examples/parachain-example/README.md +++ b/examples/parachain-example/README.md @@ -7,40 +7,40 @@ This example showcases working with Subxt and Zombienet to try out connecting to ### 1. Install `zombienet` -[Zombienet](https://github.com/paritytech/zombienet) is a tool for quickly spinning up a (local) blockchain +[Zombienet](https://github.com/pezkuwichain/zombienet) is a tool for quickly spinning up a (local) blockchain network. We will use it to start up a local Asset Hub for us. -Please follow the install guide in the [zombienet github repo](https://github.com/paritytech/zombienet) to +Please follow the install guide in the [zombienet github repo](https://github.com/pezkuwichain/zombienet) to install it. -### 2. `polkadot` +### 2. `pezkuwi` -We need a relay chain. Build the polkadot binary from the [polkadot github repo](https://github.com/paritytech/polkadot) +We need a relay chain. Build the pezkuwi binary from the [pezkuwi github repo](https://github.com/pezkuwichain/pezkuwi) and install it in your path: ```txt -git clone https://github.com/paritytech/polkadot.git -cd polkadot +git clone https://github.com/pezkuwichain/pezkuwi.git +cd pezkuwi cargo install --path . ``` -### 3. `polkadot-parachain` +### 3. `pezkuwi-parachain` -The Asset Hub is part of the [cumulus github repo](https://github.com/paritytech/cumulus), an SDK for developing -parachains. Building the cumulus workspace produces a binary called `polkadot-parachain` which can be used to run +The Asset Hub is part of the [pezcumulus github repo](https://github.com/pezkuwichain/pezcumulus), an SDK for developing +parachains. Building the pezcumulus workspace produces a binary called `pezkuwi-parachain` which can be used to run Asset Hub nodes. ```txt -git clone https://github.com/paritytech/cumulus.git -cd cumulus -cargo install --path polkadot-parachain +git clone https://github.com/pezkuwichain/pezcumulus.git +cd pezcumulus +cargo install --path pezkuwi-parachain ``` ### 4. Run the parachain locally With these binaries installed, Zombienet can now get the parachain running locally from a configuration file, `asset-hub-zombienet.toml` -in this case. We need to have at least 2 validator nodes running via the `polkadot` binary, and an Asset Hub node running via the -`polkadot-parachain` binary. Zombienet starts these up, and gets the parachain registered with the validator nodes for us. To do that, +in this case. We need to have at least 2 validator nodes running via the `pezkuwi` binary, and an Asset Hub node running via the +`pezkuwi-parachain` binary. Zombienet starts these up, and gets the parachain registered with the validator nodes for us. To do that, run: ```txt @@ -49,8 +49,8 @@ zombienet -p native spawn asset-hub-zombienet.toml Zombienet uses Kubernetes by default, but we can use it without Kubernetes by providing the `-p native` flag. -You might have noticed that we use `chain = "rococo-local"` in the `asset-hub-zombienet.toml` file for the relay chain. This is just to -make the epoch time shorter and should have no effect on your interactions with the parachain. Polkadot / Kusama / Rococo have different +You might have noticed that we use `chain = "pezkuwichain-local"` in the `asset-hub-zombienet.toml` file for the relay chain. This is just to +make the epoch time shorter and should have no effect on your interactions with the parachain. Pezkuwi / Kusama / Pezkuwichain have different epoch times of `24h` / `2h` / `2min` respectively. ### 5. Run the example @@ -69,10 +69,10 @@ To run our example code. We can obtain the metadata for Statemint via the [subxt cli](https://crates.io/crates/subxt-cli) tool, like so: ```txt -subxt metadata --url wss://polkadot-asset-hub-rpc.polkadot.io:443 > statemint_metadata.scale +subxt metadata --url wss://pezkuwi-asset-hub-rpc.pezkuwi.io:443 > statemint_metadata.scale ``` It is important to explicitly specify the port as `443`. -One way to find a suitable URL to obtain this from is by looking through the sidebar on [Polkadot.js](https://polkadot.js.org/apps/) +One way to find a suitable URL to obtain this from is by looking through the sidebar on [Pezkuwi.js](https://pezkuwi.js.org/apps/) to find the Asset Hub entry, and seeing which RPC node URLs it uses. diff --git a/examples/parachain-example/asset-hub-zombienet.toml b/examples/parachain-example/asset-hub-zombienet.toml index 9d7fb0a651..5c6fb171e3 100644 --- a/examples/parachain-example/asset-hub-zombienet.toml +++ b/examples/parachain-example/asset-hub-zombienet.toml @@ -1,9 +1,9 @@ [relaychain] -default_image = "docker.io/parity/polkadot:latest" -default_command = "polkadot" +default_image = "docker.io/parity/pezkuwi:latest" +default_command = "pezkuwi" default_args = ["-lparachain=debug"] -chain = "rococo-local" +chain = "pezkuwichain-local" [[relaychain.nodes]] name = "alice" @@ -15,11 +15,11 @@ validator = true [[parachains]] id = 100 -chain = "asset-hub-polkadot-local" +chain = "asset-hub-pezkuwi-local" [parachains.collator] name = "collator01" -image = "docker.io/parity/polkadot-parachain:latest" +image = "docker.io/parity/pezkuwi-parachain:latest" ws_port = 42069 -command = "polkadot-parachain" +command = "pezkuwi-parachain" args = ["-lparachain=debug"] diff --git a/examples/parachain-example/src/main.rs b/examples/parachain-example/src/main.rs index d281073d85..88e547f25b 100644 --- a/examples/parachain-example/src/main.rs +++ b/examples/parachain-example/src/main.rs @@ -1,5 +1,5 @@ use pezkuwi_subxt::{ - PolkadotConfig, + PezkuwiConfig, utils::{AccountId32, MultiAddress}, OnlineClient, }; @@ -8,9 +8,9 @@ use pezkuwi_subxt_signer::sr25519::dev::{self}; #[pezkuwi_subxt::subxt(runtime_metadata_path = "statemint_metadata.scale")] pub mod statemint {} -// PolkadotConfig or SubstrateConfig will suffice for this example at the moment, -// but PolkadotConfig is a little more correct, having the right `Address` type. -type StatemintConfig = PolkadotConfig; +// PezkuwiConfig or BizinikiwConfig will suffice for this example at the moment, +// but PezkuwiConfig is a little more correct, having the right `Address` type. +type StatemintConfig = PezkuwiConfig; #[tokio::main] pub async fn main() { diff --git a/examples/wasm-example/README.md b/examples/wasm-example/README.md index de479ee730..fab2fea442 100644 --- a/examples/wasm-example/README.md +++ b/examples/wasm-example/README.md @@ -8,11 +8,11 @@ To run the app locally we first install Trunk, a WASM bundler: cargo install --locked trunk ``` -You need to have a local polkadot/substrate node with it's JSON-RPC HTTP server running at 127.0.0.1:9933 in order for the examples to be working. -If you have a `polkadot` binary already, running this should be sufficient: +You need to have a local pezkuwi/bizinikiwi node with it's JSON-RPC HTTP server running at 127.0.0.1:9933 in order for the examples to be working. +If you have a `pezkuwi` binary already, running this should be sufficient: ``` -polkadot --dev +pezkuwi --dev ``` Then, in another terminal, run the app locally with: @@ -23,4 +23,4 @@ trunk serve --open # signing example -For the signing example, we use the `@polkadot/extension-dapp` NPM package to talk to wallets loaded as browser extensions. In order to sign and submit the transaction using the `polkadot --dev` node we spawned above, you'll need to create a dev account in your wallet of choice. Use the recovery phrase `bottom drive obey lake curtain smoke basket hold race lonely fit walk` and the derivation path `//Alice` to create a dev account that can be used. \ No newline at end of file +For the signing example, we use the `@pezkuwi/extension-dapp` NPM package to talk to wallets loaded as browser extensions. In order to sign and submit the transaction using the `pezkuwi --dev` node we spawned above, you'll need to create a dev account in your wallet of choice. Use the recovery phrase `bottom drive obey lake curtain smoke basket hold race lonely fit walk` and the derivation path `//Alice` to create a dev account that can be used. \ No newline at end of file diff --git a/examples/wasm-example/src/routes/signing.rs b/examples/wasm-example/src/routes/signing.rs index 39dc062f40..fa16606766 100644 --- a/examples/wasm-example/src/routes/signing.rs +++ b/examples/wasm-example/src/routes/signing.rs @@ -1,7 +1,7 @@ use anyhow::anyhow; use futures::FutureExt; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; use pezkuwi_subxt::config::DefaultExtrinsicParamsBuilder; use pezkuwi_subxt::ext::codec::{Decode, Encode}; @@ -9,14 +9,14 @@ use pezkuwi_subxt::tx::Payload as _; use pezkuwi_subxt::tx::SubmittableTransaction; use pezkuwi_subxt::utils::{AccountId32, MultiSignature}; -use crate::services::{extension_signature_for_extrinsic, get_accounts, polkadot, Account}; +use crate::services::{extension_signature_for_extrinsic, get_accounts, pezkuwi, Account}; use web_sys::HtmlInputElement; use yew::prelude::*; pub struct SigningExamplesComponent { message: String, remark_call_bytes: Vec, - online_client: Option>, + online_client: Option>, stage: SigningStage, } @@ -24,7 +24,7 @@ impl SigningExamplesComponent { /// # Panics /// panics if self.online_client is None. fn set_message(&mut self, message: String) { - let remark_call = polkadot::tx().system().remark(message.as_bytes().to_vec()); + let remark_call = pezkuwi::tx().system().remark(message.as_bytes().to_vec()); let online_client = self.online_client.as_ref().unwrap(); let remark_call_bytes = remark_call .encode_call_data(&online_client.metadata()) @@ -51,18 +51,18 @@ pub enum SigningStage { pub enum SubmittingStage { Initial { - signed_extrinsic: SubmittableTransaction>, + signed_extrinsic: SubmittableTransaction>, }, Submitting, Success { - remark_event: polkadot::system::events::ExtrinsicSuccess, + remark_event: pezkuwi::system::events::ExtrinsicSuccess, }, Error(anyhow::Error), } pub enum Message { Error(anyhow::Error), - OnlineClientCreated(OnlineClient), + OnlineClientCreated(OnlineClient), ChangeMessage(String), RequestAccounts, ReceivedAccounts(Vec), @@ -70,11 +70,11 @@ pub enum Message { SignWithAccount(usize), ReceivedSignature( MultiSignature, - SubmittableTransaction>, + SubmittableTransaction>, ), SubmitSigned, ExtrinsicFinalized { - remark_event: polkadot::system::events::ExtrinsicSuccess, + remark_event: pezkuwi::system::events::ExtrinsicSuccess, }, ExtrinsicFailed(anyhow::Error), } @@ -85,7 +85,7 @@ impl Component for SigningExamplesComponent { type Properties = (); fn create(ctx: &Context) -> Self { - ctx.link().send_future(OnlineClient::::new().map(|res| { + ctx.link().send_future(OnlineClient::::new().map(|res| { match res { Ok(online_client) => Message::OnlineClientCreated(online_client), Err(err) => Message::Error(anyhow!("Online Client could not be created. Make sure you have a local node running:\n{err}")), @@ -131,7 +131,7 @@ impl Component for SigningExamplesComponent { self.stage = SigningStage::Signing(account.clone()); - let remark_call = polkadot::tx() + let remark_call = pezkuwi::tx() .system() .remark(self.message.as_bytes().to_vec()); @@ -258,7 +258,7 @@ impl Component for SigningExamplesComponent { | SigningStage::EnterMessage | SigningStage::CreatingOnlineClient => html!(<>), _ => { - let _remark_call = polkadot::tx() + let _remark_call = pezkuwi::tx() .system() .remark(self.message.as_bytes().to_vec()); html!( @@ -321,7 +321,7 @@ impl Component for SigningExamplesComponent { } SigningStage::SelectAccount(accounts) => { if accounts.is_empty() { - html!(
{"No Web3 extension accounts found. Install Talisman or the Polkadot.js extension and add an account."}
) + html!(
{"No Web3 extension accounts found. Install Talisman or the Pezkuwi.js extension and add an account."}
) } else { html!( <> @@ -394,8 +394,8 @@ impl Component for SigningExamplesComponent { } async fn submit_wait_finalized_and_get_extrinsic_success_event( - extrinsic: SubmittableTransaction>, -) -> Result { + extrinsic: SubmittableTransaction>, +) -> Result { let events = extrinsic .submit_and_watch() .await? @@ -404,10 +404,10 @@ async fn submit_wait_finalized_and_get_extrinsic_success_event( let events_str = format!("{:?}", &events); web_sys::console::log_1(&events_str.into()); - for event in events.find::() { + for event in events.find::() { web_sys::console::log_1(&format!("{:?}", event).into()); } - let success = events.find_first::()?; + let success = events.find_first::()?; success.ok_or(anyhow!("ExtrinsicSuccess not found in events")) } diff --git a/examples/wasm-example/src/services.rs b/examples/wasm-example/src/services.rs index e090fc8a0d..faa79a3b76 100644 --- a/examples/wasm-example/src/services.rs +++ b/examples/wasm-example/src/services.rs @@ -4,24 +4,24 @@ use serde::{Deserialize, Serialize}; use serde_json::json; use std::fmt::Write; use pezkuwi_subxt::ext::codec::{Compact, Encode}; -use pezkuwi_subxt::{self, OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{self, OnlineClient, PezkuwiConfig}; use wasm_bindgen::prelude::*; use wasm_bindgen_futures::JsFuture; use yew::{AttrValue, Callback}; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} pub(crate) async fn fetch_constant_block_length() -> Result { - let api = OnlineClient::::new().await?; - let constant_query = polkadot::constants().system().block_length(); + let api = OnlineClient::::new().await?; + let constant_query = pezkuwi::constants().system().block_length(); let value = api.constants().at(&constant_query)?; Ok(format!("{value:?}")) } pub(crate) async fn fetch_events_dynamically() -> Result, pezkuwi_subxt::Error> { - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; let events = api.events().at_latest().await?; let mut event_strings = Vec::::new(); for event in events.iter() { @@ -38,7 +38,7 @@ pub(crate) async fn fetch_events_dynamically() -> Result, pezkuwi_su pub(crate) async fn subscribe_to_finalized_blocks( cb: Callback, ) -> Result<(), pezkuwi_subxt::Error> { - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Subscribe to all finalized blocks: let mut blocks_sub = api.blocks().subscribe_finalized().await?; while let Some(block) = blocks_sub.next().await { @@ -54,7 +54,7 @@ pub(crate) async fn subscribe_to_finalized_blocks( let bytes_hex = format!("0x{}", hex::encode(ext.bytes())); // See the API docs for more ways to decode extrinsics: - let decoded_ext = ext.as_root_extrinsic::(); + let decoded_ext = ext.as_root_extrinsic::(); writeln!(output, " Extrinsic #{idx}:").ok(); writeln!(output, " Bytes: {bytes_hex}").ok(); @@ -117,12 +117,12 @@ fn encode_then_hex(input: &E) -> String { format!("0x{}", hex::encode(input.encode())) } -/// communicates with JavaScript to obtain a signature for the `partial_extrinsic` via a browser extension (e.g. polkadot-js or Talisman) +/// communicates with JavaScript to obtain a signature for the `partial_extrinsic` via a browser extension (e.g. pezkuwi-js or Talisman) /// /// Some parameters are hard-coded here and not taken from the partial_extrinsic itself (mortality_checkpoint, era, tip). pub async fn extension_signature_for_extrinsic( call_data: &[u8], - api: &OnlineClient, + api: &OnlineClient, account_nonce: u64, account_source: String, account_address: String, diff --git a/historic/Cargo.toml b/historic/Cargo.toml index 444adcaaa3..e10e655a8e 100644 --- a/historic/Cargo.toml +++ b/historic/Cargo.toml @@ -11,8 +11,8 @@ readme = "README.md" repository.workspace = true documentation.workspace = true homepage.workspace = true -description = "Download non head-of-chain blocks and state from Substrate based nodes" -keywords = ["blockchain", "parity", "substrate"] +description = "Download non head-of-chain blocks and state from Bizinikiwi based nodes" +keywords = ["blockchain", "parity", "bizinikiwi"] [lints] workspace = true diff --git a/historic/README.md b/historic/README.md index 43c2a9611b..531379fe46 100644 --- a/historic/README.md +++ b/historic/README.md @@ -13,4 +13,4 @@ While `subxt` is a library for working at the head of a chain (submitting transa # Examples -See the [examples](https://github.com/paritytech/subxt/tree/master/historic/examples) folder for examples of how to use `subxt-historic`. +See the [examples](https://github.com/pezkuwichain/subxt/tree/master/historic/examples) folder for examples of how to use `subxt-historic`. diff --git a/historic/examples/extrinsics.rs b/historic/examples/extrinsics.rs index b3f13905c3..0d4247f57f 100644 --- a/historic/examples/extrinsics.rs +++ b/historic/examples/extrinsics.rs @@ -1,13 +1,13 @@ #![allow(missing_docs)] -use subxt_historic::{OnlineClient, PolkadotConfig}; +use subxt_historic::{OnlineClient, PezkuwiConfig}; #[tokio::main] async fn main() -> Result<(), Box> { - // Configuration for the Polkadot relay chain. - let config = PolkadotConfig::new(); + // Configuration for the Pezkuwi relay chain. + let config = PezkuwiConfig::new(); - // Create an online client for the Polkadot relay chain, pointed at a Polkadot archive node. - let client = OnlineClient::from_url(config, "wss://rpc.polkadot.io").await?; + // Create an online client for the Pezkuwi relay chain, pointed at a Pezkuwi archive node. + let client = OnlineClient::from_url(config, "wss://rpc.pezkuwi.io").await?; // Iterate through some randomly selected old blocks to show how to fetch and decode extrinsics. for block_number in 1234567.. { diff --git a/historic/examples/storage.rs b/historic/examples/storage.rs index f61ed9ac02..6a376d0eef 100644 --- a/historic/examples/storage.rs +++ b/historic/examples/storage.rs @@ -1,13 +1,13 @@ #![allow(missing_docs)] -use subxt_historic::{OnlineClient, PolkadotConfig, ext::StreamExt}; +use subxt_historic::{OnlineClient, PezkuwiConfig, ext::StreamExt}; #[tokio::main] async fn main() -> Result<(), Box> { - // Configuration for the Polkadot relay chain. - let config = PolkadotConfig::new(); + // Configuration for the Pezkuwi relay chain. + let config = PezkuwiConfig::new(); - // Create an online client for the Polkadot relay chain, pointed at a Polkadot archive node. - let client = OnlineClient::from_url(config, "wss://rpc.polkadot.io").await?; + // Create an online client for the Pezkuwi relay chain, pointed at a Pezkuwi archive node. + let client = OnlineClient::from_url(config, "wss://rpc.pezkuwi.io").await?; // Iterate through some randomly selected blocks to show how to fetch and decode storage. for block_number in 12345678.. { diff --git a/historic/src/config.rs b/historic/src/config.rs index 588177760f..4ce958c11a 100644 --- a/historic/src/config.rs +++ b/historic/src/config.rs @@ -1,13 +1,13 @@ -pub mod polkadot; -pub mod substrate; +pub mod pezkuwi; +pub mod bizinikiwi; use scale_info_legacy::TypeRegistrySet; use std::fmt::Display; use std::sync::Arc; use pezkuwi_subxt_rpcs::RpcConfig; -pub use polkadot::PolkadotConfig; -pub use substrate::SubstrateConfig; +pub use pezkuwi::PezkuwiConfig; +pub use bizinikiwi::BizinikiwConfig; /// This represents the configuration needed for a specific chain. This includes /// any hardcoded types we need to know about for that chain, as well as a means to diff --git a/historic/src/config/substrate.rs b/historic/src/config/bizinikiwi.rs similarity index 88% rename from historic/src/config/substrate.rs rename to historic/src/config/bizinikiwi.rs index c7561a79d4..c510d11fca 100644 --- a/historic/src/config/substrate.rs +++ b/historic/src/config/bizinikiwi.rs @@ -6,30 +6,30 @@ use std::collections::HashMap; use std::sync::Arc; use std::sync::Mutex; -/// Configuration that's suitable for standard Substrate chains (ie those +/// Configuration that's suitable for standard Bizinikiwi chains (ie those /// that have not customized the block hash type). -pub struct SubstrateConfig { +pub struct BizinikiwConfig { legacy_types: ChainTypeRegistry, spec_version_for_block_number: RangeMap, metadata_for_spec_version: Mutex>>, } -impl SubstrateConfig { - /// Create a new SubstrateConfig with no legacy types. +impl BizinikiwConfig { + /// Create a new BizinikiwConfig with no legacy types. /// /// Without any further configuration, this will only work with /// the [`crate::client::OnlineClient`] for blocks that were produced by Runtimes /// that emit metadata V14 or later. /// /// To support working at any block with the [`crate::client::OnlineClient`], you - /// must call [`SubstrateConfig::set_legacy_types`] with appropriate legacy type + /// must call [`BizinikiwConfig::set_legacy_types`] with appropriate legacy type /// definitions. /// /// To support working with the [`crate::client::OfflineClient`] at any block, /// you must also call: - /// - [`SubstrateConfig::set_metadata_for_spec_versions`] to set the metadata to + /// - [`BizinikiwConfig::set_metadata_for_spec_versions`] to set the metadata to /// use at each spec version we might encounter. - /// - [`SubstrateConfig::set_spec_version_for_block_ranges`] to set the spec version + /// - [`BizinikiwConfig::set_spec_version_for_block_ranges`] to set the spec version /// to use for each range of blocks we might encounter. pub fn new() -> Self { Self { @@ -74,13 +74,13 @@ impl SubstrateConfig { } } -impl Default for SubstrateConfig { +impl Default for BizinikiwConfig { fn default() -> Self { Self::new() } } -impl Config for SubstrateConfig { +impl Config for BizinikiwConfig { type Hash = H256; fn legacy_types_for_spec_version(&'_ self, spec_version: u32) -> TypeRegistrySet<'_> { @@ -120,7 +120,7 @@ impl Config for SubstrateConfig { } } -impl pezkuwi_subxt_rpcs::RpcConfig for SubstrateConfig { +impl pezkuwi_subxt_rpcs::RpcConfig for BizinikiwConfig { type Hash = ::Hash; // We don't use these types in any of the RPC methods we call, // so don't bother setting them up: diff --git a/historic/src/config/polkadot.rs b/historic/src/config/pezkuwi.rs similarity index 69% rename from historic/src/config/polkadot.rs rename to historic/src/config/pezkuwi.rs index 279afa8628..95f5117df6 100644 --- a/historic/src/config/polkadot.rs +++ b/historic/src/config/pezkuwi.rs @@ -1,16 +1,16 @@ use super::Config; -use super::SubstrateConfig; +use super::BizinikiwConfig; use scale_info_legacy::{ChainTypeRegistry, TypeRegistrySet}; use std::sync::Arc; -/// Configuration that's suitable for the Polkadot Relay Chain -pub struct PolkadotConfig(SubstrateConfig); +/// Configuration that's suitable for the Pezkuwi Relay Chain +pub struct PezkuwiConfig(BizinikiwConfig); -impl PolkadotConfig { - /// Create a new PolkadotConfig. +impl PezkuwiConfig { + /// Create a new PezkuwiConfig. pub fn new() -> Self { - let config = SubstrateConfig::new() - .set_legacy_types(frame_decode::legacy_types::polkadot::relay_chain()); + let config = BizinikiwConfig::new() + .set_legacy_types(frame_decode::legacy_types::pezkuwi::relay_chain()); // TODO: Set spec versions as well with known spec version changes, to speed // up accessing historic blocks within the known ranges. For now, we just let @@ -39,19 +39,19 @@ impl PolkadotConfig { } } -/// This hands back the legacy types for the Polkadot Relay Chain, which is what [`PolkadotConfig`] uses internally. +/// This hands back the legacy types for the Pezkuwi Relay Chain, which is what [`PezkuwiConfig`] uses internally. pub fn legacy_types() -> ChainTypeRegistry { - frame_decode::legacy_types::polkadot::relay_chain() + frame_decode::legacy_types::pezkuwi::relay_chain() } -impl Default for PolkadotConfig { +impl Default for PezkuwiConfig { fn default() -> Self { Self::new() } } -impl Config for PolkadotConfig { - type Hash = ::Hash; +impl Config for PezkuwiConfig { + type Hash = ::Hash; fn legacy_types_for_spec_version(&'_ self, spec_version: u32) -> TypeRegistrySet<'_> { self.0.legacy_types_for_spec_version(spec_version) @@ -77,12 +77,12 @@ impl Config for PolkadotConfig { } fn hash(s: &[u8]) -> ::Hash { - SubstrateConfig::hash(s) + BizinikiwConfig::hash(s) } } -impl pezkuwi_subxt_rpcs::RpcConfig for PolkadotConfig { - type Hash = ::Hash; - type Header = ::Header; - type AccountId = ::AccountId; +impl pezkuwi_subxt_rpcs::RpcConfig for PezkuwiConfig { + type Hash = ::Hash; + type Header = ::Header; + type AccountId = ::AccountId; } diff --git a/historic/src/lib.rs b/historic/src/lib.rs index 8c15ab2e6f..5ffc4542de 100644 --- a/historic/src/lib.rs +++ b/historic/src/lib.rs @@ -1,4 +1,4 @@ -//! `subxt-historic` is a library for working with non head-of-chain data on Substrate-based blockchains. +//! `subxt-historic` is a library for working with non head-of-chain data on Bizinikiwi-based blockchains. // TODO: Remove this when we're ready to release, and document everything! #![allow(missing_docs)] @@ -12,8 +12,8 @@ pub mod extrinsics; pub mod storage; pub use client::{OfflineClient, OnlineClient}; -pub use config::polkadot::PolkadotConfig; -pub use config::substrate::SubstrateConfig; +pub use config::pezkuwi::PezkuwiConfig; +pub use config::bizinikiwi::BizinikiwConfig; pub use error::Error; /// External types and crates that may be useful. diff --git a/lightclient/Cargo.toml b/lightclient/Cargo.toml index 0afba45011..678dbad62e 100644 --- a/lightclient/Cargo.toml +++ b/lightclient/Cargo.toml @@ -12,7 +12,7 @@ repository.workspace = true documentation.workspace = true homepage.workspace = true description = "Light Client for chain interaction" -keywords = ["blockchain", "parity", "substrate"] +keywords = ["blockchain", "parity", "bizinikiwi"] [lints] workspace = true diff --git a/lightclient/src/lib.rs b/lightclient/src/lib.rs index c4e35c1890..a210ed8fd2 100644 --- a/lightclient/src/lib.rs +++ b/lightclient/src/lib.rs @@ -3,7 +3,7 @@ // see LICENSE for license details. //! A wrapper around [`smoldot_light`] which provides an light client capable of connecting -//! to Substrate based chains. +//! to Bizinikiwi based chains. #![deny(missing_docs)] #![cfg_attr(docsrs, feature(doc_cfg))] diff --git a/macro/Cargo.toml b/macro/Cargo.toml index ba19dcaf40..133434e654 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -11,7 +11,7 @@ license.workspace = true repository.workspace = true documentation.workspace = true homepage.workspace = true -description = "Generate types and helpers for interacting with Substrate runtimes." +description = "Generate types and helpers for interacting with Bizinikiwi runtimes." [features] web = ["pezkuwi-subxt-codegen/web"] diff --git a/macro/src/lib.rs b/macro/src/lib.rs index a234a1df66..cd2260e5b4 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! Subxt macro for generating Substrate runtime interfaces. +//! Subxt macro for generating Bizinikiwi runtime interfaces. use codec::Decode; use darling::{FromMeta, ast::NestedMeta}; @@ -108,7 +108,7 @@ fn subxt_inner(args: TokenStream, item_mod: syn::ItemMod) -> Result. + // allowed for such types. See . scale_typegen::utils::ensure_unique_type_paths(metadata.types_mut()) .expect("ensure_unique_type_paths should not fail; please report an issue."); diff --git a/macro/src/wasm_loader.rs b/macro/src/wasm_loader.rs index 114155e9f5..913cd4f082 100644 --- a/macro/src/wasm_loader.rs +++ b/macro/src/wasm_loader.rs @@ -46,7 +46,7 @@ fn maybe_decompress(file_contents: Vec) -> WasmMetadataResult> { struct Executor { runtime_blob: RuntimeBlob, - executor: WasmExecutor, + executor: WasmExecutor, externalities: sp_state_machine::BasicExternalities, } @@ -54,7 +54,7 @@ impl Executor { fn new(wasm_file: &[u8]) -> WasmMetadataResult { let externalities: sp_state_machine::BasicExternalities = Default::default(); - let executor: WasmExecutor = WasmExecutor::builder() + let executor: WasmExecutor = WasmExecutor::builder() .with_execution_method(WasmExecutionMethod::default()) .with_offchain_heap_alloc_strategy(sc_executor::HeapAllocStrategy::Dynamic { maximum_pages: Some(64), diff --git a/metadata/benches/bench.rs b/metadata/benches/bench.rs index c243a69a9a..d08bf6fde5 100644 --- a/metadata/benches/bench.rs +++ b/metadata/benches/bench.rs @@ -11,7 +11,7 @@ use pezkuwi_subxt_metadata::Metadata; use std::{fs, path::Path}; fn load_metadata() -> Metadata { - let bytes = fs::read(Path::new("../artifacts/polkadot_metadata_full.scale")) + let bytes = fs::read(Path::new("../artifacts/pezkuwi_metadata_full.scale")) .expect("Cannot read metadata blob"); let meta: RuntimeMetadataPrefixed = Decode::decode(&mut &*bytes).expect("Cannot decode scale metadata"); diff --git a/metadata/src/from/legacy/tests.rs b/metadata/src/from/legacy/tests.rs index 4395822d6b..f67343fcfc 100644 --- a/metadata/src/from/legacy/tests.rs +++ b/metadata/src/from/legacy/tests.rs @@ -35,7 +35,7 @@ fn legacy_kusama_metadata(version: u8) -> (u64, RuntimeMetadata) { /// Load our kusama types. /// TODO: This is WRONG at the moment; change to point to kusama types when they exist: fn kusama_types() -> scale_info_legacy::ChainTypeRegistry { - frame_decode::legacy_types::polkadot::relay_chain() + frame_decode::legacy_types::pezkuwi::relay_chain() } /// Sanitizing paths changes things between old and new, so disable this in tests by default diff --git a/metadata/src/from/v14.rs b/metadata/src/from/v14.rs index 3edaaaad08..8673c4dda0 100644 --- a/metadata/src/from/v14.rs +++ b/metadata/src/from/v14.rs @@ -229,7 +229,7 @@ fn generate_outer_error_enum_type( /// The type IDs extracted from the metadata that represent the /// generic type parameters passed to the `UncheckedExtrinsic` from -/// the substrate-based chain. +/// the bizinikiwi-based chain. #[derive(Clone, Copy)] struct MissingExtrinsicTypeIds { address: u32, diff --git a/metadata/src/lib.rs b/metadata/src/lib.rs index 142d145243..7250532c7e 100644 --- a/metadata/src/lib.rs +++ b/metadata/src/lib.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! A representation of the metadata provided by a substrate based node. +//! A representation of the metadata provided by a bizinikiwi based node. //! This representation is optimized to be used by Subxt and related crates, //! and is independent of the different versions of metadata that can be //! provided from a node. diff --git a/rpcs/Cargo.toml b/rpcs/Cargo.toml index fb588a5dee..7bc2725905 100644 --- a/rpcs/Cargo.toml +++ b/rpcs/Cargo.toml @@ -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] diff --git a/rpcs/README.md b/rpcs/README.md index 99819b5d14..ca9caea8d1 100644 --- a/rpcs/README.md +++ b/rpcs/README.md @@ -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}; diff --git a/rpcs/src/client/mod.rs b/rpcs/src/client/mod.rs index 64b2532821..89ffd6c77d 100644 --- a/rpcs/src/client/mod.rs +++ b/rpcs/src/client/mod.rs @@ -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. diff --git a/rpcs/src/lib.rs b/rpcs/src/lib.rs index ed56df93e6..ddd2671729 100644 --- a/rpcs/src/lib.rs +++ b/rpcs/src/lib.rs @@ -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 diff --git a/rpcs/src/methods/chain_head.rs b/rpcs/src/methods/chain_head.rs index c3e2062827..0fe45ed163 100644 --- a/rpcs/src/methods/chain_head.rs +++ b/rpcs/src/methods/chain_head.rs @@ -3,7 +3,7 @@ // see LICENSE for license details. //! An interface to call the API methods. See -//! for details of the API +//! for details of the API //! methods exposed here. use crate::{ @@ -298,7 +298,7 @@ impl ChainHeadRpcMethods { success: bool, value: Option, error: Option, - // 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, } @@ -409,7 +409,7 @@ impl ChainHeadRpcMethods { success: bool, value: Option, error: Option, - // 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, } @@ -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 +/// See 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, diff --git a/rpcs/src/methods/legacy.rs b/rpcs/src/methods/legacy.rs index df67d87187..62f0d753fc 100644 --- a/rpcs/src/methods/legacy.rs +++ b/rpcs/src/methods/legacy.rs @@ -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 { @@ -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 { diff --git a/rpcs/src/methods/mod.rs b/rpcs/src/methods/mod.rs index 7aaeb7f21c..40b7288078 100644 --- a/rpcs/src/methods/mod.rs +++ b/rpcs/src/methods/mod.rs @@ -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 +//! implement the RPC spec at //! //! 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; diff --git a/scripts/artifacts/Cargo.toml b/scripts/artifacts/Cargo.toml index b06ea9da56..a936b02633 100644 --- a/scripts/artifacts/Cargo.toml +++ b/scripts/artifacts/Cargo.toml @@ -11,4 +11,4 @@ homepage.workspace = true description = "Internal tool to regenerate artifacts" [dependencies] -substrate-runner = { workspace = true } +bizinikiwi-runner = { workspace = true } diff --git a/scripts/artifacts/src/main.rs b/scripts/artifacts/src/main.rs index f36ff6c7b2..8702724e56 100644 --- a/scripts/artifacts/src/main.rs +++ b/scripts/artifacts/src/main.rs @@ -3,14 +3,14 @@ use std::{ process::{Command, Stdio}, }; -use substrate_runner::SubstrateNode; +use bizinikiwi_runner::BizinikiwiNode; /// A Script to generate artifacts that are used in the integration tests. /// /// Run with `cargo run --bin artifacts` from the root of the repository. fn main() { - let mut node_builder = SubstrateNode::builder(); - node_builder.polkadot(); + let mut node_builder = BizinikiwiNode::builder(); + node_builder.pezkuwi(); // Spawn the node and retrieve a ws URL to it: let proc = node_builder @@ -19,32 +19,32 @@ fn main() { .expect("Could not spawn node"); let node_url = format!("ws://127.0.0.1:{}", proc.ws_port()); - // Get the full metadata from the spawned substrate node + // Get the full metadata from the spawned bizinikiwi node run_cmd( &format!("cargo run --bin subxt metadata --version 15 --url {node_url}"), - Some("artifacts/polkadot_metadata_full.scale"), + Some("artifacts/pezkuwi_metadata_full.scale"), ); - // Use it to generate polkadot.rs + // Use it to generate pezkuwi.rs run_cmd( - "cargo run --bin subxt codegen --file artifacts/polkadot_metadata_full.scale", - Some("testing/integration-tests/src/full_client/codegen/polkadot.rs"), + "cargo run --bin subxt codegen --file artifacts/pezkuwi_metadata_full.scale", + Some("testing/integration-tests/src/full_client/codegen/pezkuwi.rs"), ); run_cmd( - "rustfmt testing/integration-tests/src/full_client/codegen/polkadot.rs", + "rustfmt testing/integration-tests/src/full_client/codegen/pezkuwi.rs", None, ); // Generate a metadata file that only contains a few pallets that we need for our examples. run_cmd( - "cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets Balances,Staking,System,Multisig,Timestamp,ParaInherent", - Some("artifacts/polkadot_metadata_small.scale"), + "cargo run --bin subxt metadata --file artifacts/pezkuwi_metadata_full.scale --pallets Balances,Staking,System,Multisig,Timestamp,ParaInherent", + Some("artifacts/pezkuwi_metadata_small.scale"), ); // Generate a metadata file that contains no pallets run_cmd( - "cargo run --bin subxt metadata --file artifacts/polkadot_metadata_full.scale --pallets \"\"", - Some("artifacts/polkadot_metadata_tiny.scale"), + "cargo run --bin subxt metadata --file artifacts/pezkuwi_metadata_full.scale --pallets \"\"", + Some("artifacts/pezkuwi_metadata_tiny.scale"), ); // Generate a metadata file that only contains some custom metadata @@ -53,9 +53,9 @@ fn main() { Some("artifacts/metadata_with_custom_values.scale"), ); - // Generate the polkadot chain spec. + // Generate the pezkuwi chain spec. run_cmd( - "cargo run --features chain-spec-pruning --bin subxt chain-spec --url wss://rpc.polkadot.io:443 --output-file artifacts/demo_chain_specs/polkadot.json --state-root-hash --remove-substitutes", + "cargo run --features chain-spec-pruning --bin subxt chain-spec --url wss://rpc.pezkuwi.io:443 --output-file artifacts/demo_chain_specs/pezkuwi.json --state-root-hash --remove-substitutes", None, ); } diff --git a/signer/Cargo.toml b/signer/Cargo.toml index e3e668e897..4a136bd29b 100644 --- a/signer/Cargo.toml +++ b/signer/Cargo.toml @@ -39,8 +39,8 @@ sr25519 = ["schnorrkel"] ecdsa = ["secp256k1"] unstable-eth = ["bip32", "ecdsa", "keccak-hash", "secp256k1"] -# Enable support for loading key pairs from polkadot-js json. -polkadot-js-compat = [ +# Enable support for loading key pairs from pezkuwi-js json. +pezkuwi-js-compat = [ "base64", "crypto_secretbox", "scrypt", @@ -83,7 +83,7 @@ sha2 = { workspace = true } thiserror = { workspace = true, default-features = false } zeroize = { workspace = true } -# These are used if the polkadot-js-compat feature is enabled +# These are used if the pezkuwi-js-compat feature is enabled base64 = { workspace = true, optional = true, features = ["alloc"] } crypto_secretbox = { workspace = true, optional = true, features = ["alloc", "salsa20"] } scrypt = { workspace = true, default-features = false, optional = true } diff --git a/signer/src/crypto/seed_from_entropy.rs b/signer/src/crypto/seed_from_entropy.rs index 6454ff9e39..c62cb8dbd1 100644 --- a/signer/src/crypto/seed_from_entropy.rs +++ b/signer/src/crypto/seed_from_entropy.rs @@ -8,7 +8,7 @@ use pbkdf2::pbkdf2; use sha2::Sha512; use zeroize::Zeroize; -/// This is taken from `substrate-bip39` so that we can keep dependencies in line, and +/// This is taken from `bizinikiwi-bip39` so that we can keep dependencies in line, and /// is the same logic that sp-core uses to go from mnemonic entropy to seed. Returns /// `None` if invalid length. #[allow(dead_code)] diff --git a/signer/src/ecdsa.rs b/signer/src/ecdsa.rs index 1274f979ff..ac306f230c 100644 --- a/signer/src/ecdsa.rs +++ b/signer/src/ecdsa.rs @@ -19,7 +19,7 @@ const SECRET_KEY_LENGTH: usize = 32; pub type SecretKeyBytes = [u8; SECRET_KEY_LENGTH]; /// A signature generated by [`Keypair::sign()`]. These bytes are equivalent -/// to a Substrate `MultiSignature::Ecdsa(bytes)`. +/// to a Bizinikiwi `MultiSignature::Ecdsa(bytes)`. #[derive(Clone, Copy, PartialEq, Eq)] pub struct Signature(pub [u8; 65]); @@ -145,7 +145,7 @@ impl Keypair { /// Obtain the [`PublicKey`] part of this key pair, which can be used in calls to [`verify()`]. /// or otherwise converted into an address. In case of ECDSA, the public key bytes are not - /// equivalent to a Substrate `AccountId32`. They have to be hashed to obtain `AccountId32`. + /// equivalent to a Bizinikiwi `AccountId32`. They have to be hashed to obtain `AccountId32`. pub fn public_key(&self) -> PublicKey { PublicKey(self.0.public_key().serialize()) } @@ -155,7 +155,7 @@ impl Keypair { *self.0.secret_key().as_ref() } - /// Sign some message. These bytes can be used directly in a Substrate + /// Sign some message. These bytes can be used directly in a Bizinikiwi /// `MultiSignature::Ecdsa(..)`. pub fn sign(&self, message: &[u8]) -> Signature { self.sign_prehashed(&pezsp_crypto_hashing::blake2_256(message)) diff --git a/signer/src/eth.rs b/signer/src/eth.rs index 374abfc722..c504775055 100644 --- a/signer/src/eth.rs +++ b/signer/src/eth.rs @@ -376,9 +376,9 @@ mod test { type AccountId = AccountId20; type Address = AccountId20; type Signature = Signature; - type Hasher = substrate::BlakeTwo256; - type Header = substrate::SubstrateHeader; - type ExtrinsicParams = SubstrateExtrinsicParams; + type Hasher = bizinikiwi::BlakeTwo256; + type Header = bizinikiwi::BizinikiwiHeader; + type ExtrinsicParams = BizinikiwiExtrinsicParams; type AssetId = u32; } diff --git a/signer/src/lib.rs b/signer/src/lib.rs index 7ceaf87586..8e09f1b39d 100644 --- a/signer/src/lib.rs +++ b/signer/src/lib.rs @@ -6,7 +6,7 @@ //! //! The main output from this crate is the [`sr25519::Keypair`], which can //! be constructed from a bip39 phrase, secret URI or raw seed, and used to -//! sign and verify arbitrary messages. This crate is aligned with how Substrate's +//! sign and verify arbitrary messages. This crate is aligned with how Bizinikiwi's //! `sp_core` crate constructs and signs keypairs, but is lighter on dependencies //! and can support compilation to WASM with the `web` feature. //! @@ -37,10 +37,10 @@ pub mod ecdsa; #[cfg_attr(docsrs, doc(cfg(feature = "unstable-eth")))] pub mod eth; -/// A polkadot-js account json loader. -#[cfg(feature = "polkadot-js-compat")] -#[cfg_attr(docsrs, doc(cfg(feature = "polkadot-js-compat")))] -pub mod polkadot_js_compat; +/// A pezkuwi-js account json loader. +#[cfg(feature = "pezkuwi-js-compat")] +#[cfg_attr(docsrs, doc(cfg(feature = "pezkuwi-js-compat")))] +pub mod pezkuwi_js_compat; // Re-export useful bits and pieces for generating a Pair from a phrase, // namely the Mnemonic struct. diff --git a/signer/src/polkadot_js_compat.rs b/signer/src/pezkuwi_js_compat.rs similarity index 89% rename from signer/src/polkadot_js_compat.rs rename to signer/src/pezkuwi_js_compat.rs index 02b583bd62..70b1a37bbe 100644 --- a/signer/src/polkadot_js_compat.rs +++ b/signer/src/pezkuwi_js_compat.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! A Polkadot-JS account loader. +//! A Pezkuwi-JS account loader. use base64::Engine; use crypto_secretbox::{ @@ -16,7 +16,7 @@ use thiserror::Error as DeriveError; use crate::sr25519; -/// Given a JSON keypair as exported from Polkadot-JS, this returns an [`sr25519::Keypair`] +/// Given a JSON keypair as exported from Pezkuwi-JS, this returns an [`sr25519::Keypair`] pub fn decrypt_json(json: &str, password: &str) -> Result { let pair_json: KeyringPairJson = serde_json::from_str(json)?; Ok(pair_json.decrypt(password)?) @@ -65,7 +65,7 @@ struct EncryptionMetadata { version: String, } -/// https://github.com/polkadot-js/common/blob/37fa211fdb141d4f6eb32e8f377a4651ed2d9068/packages/keyring/src/types.ts#L67 +/// https://github.com/pezkuwi-js/common/blob/37fa211fdb141d4f6eb32e8f377a4651ed2d9068/packages/keyring/src/types.ts#L67 #[derive(Deserialize)] struct KeyringPairJson { /// The encoded string @@ -85,7 +85,7 @@ impl KeyringPairJson { /// Decrypt JSON keypair. fn decrypt(self, password: &str) -> Result { // Check encoding. - // https://github.com/polkadot-js/common/blob/37fa211fdb141d4f6eb32e8f377a4651ed2d9068/packages/keyring/src/keyring.ts#L166 + // https://github.com/pezkuwi-js/common/blob/37fa211fdb141d4f6eb32e8f377a4651ed2d9068/packages/keyring/src/keyring.ts#L166 if self.encoding.version != "3" || !self.encoding.content.contains(&"pkcs8".to_owned()) || !self.encoding.content.contains(&"sr25519".to_owned()) || @@ -100,7 +100,7 @@ impl KeyringPairJson { let params: [u8; 68] = decoded[..68].try_into().map_err(|_| Error::UnsupportedEncoding)?; // Extract scrypt parameters. - // https://github.com/polkadot-js/common/blob/master/packages/util-crypto/src/scrypt/fromU8a.ts + // https://github.com/pezkuwi-js/common/blob/master/packages/util-crypto/src/scrypt/fromU8a.ts let salt = ¶ms[0..32]; let n = slice_to_u32(¶ms[32..36]); let p = slice_to_u32(¶ms[36..40]); @@ -123,13 +123,13 @@ impl KeyringPairJson { .expect("Key should be 32 bytes."); // Decrypt keys. - // https://github.com/polkadot-js/common/blob/master/packages/util-crypto/src/json/decryptData.ts + // https://github.com/pezkuwi-js/common/blob/master/packages/util-crypto/src/json/decryptData.ts let cipher = XSalsa20Poly1305::new(&key); let nonce = Nonce::from_slice(¶ms[44..68]); let ciphertext = &decoded[68..]; let plaintext = cipher.decrypt(nonce, ciphertext)?; - // https://github.com/polkadot-js/common/blob/master/packages/keyring/src/pair/decode.ts + // https://github.com/pezkuwi-js/common/blob/master/packages/keyring/src/pair/decode.ts if plaintext.len() != 117 { return Err(Error::InvalidKeys); } diff --git a/signer/src/sr25519.rs b/signer/src/sr25519.rs index 8c488995f2..35472d48cd 100644 --- a/signer/src/sr25519.rs +++ b/signer/src/sr25519.rs @@ -22,13 +22,13 @@ use secrecy::ExposeSecret; use thiserror::Error as DeriveError; const SECRET_KEY_LENGTH: usize = schnorrkel::keys::MINI_SECRET_KEY_LENGTH; -const SIGNING_CTX: &[u8] = b"substrate"; +const SIGNING_CTX: &[u8] = b"bizinikiwi"; /// Seed bytes used to generate a key pair. pub type SecretKeyBytes = [u8; SECRET_KEY_LENGTH]; /// A signature generated by [`Keypair::sign()`]. These bytes are equivalent -/// to a Substrate `MultiSignature::sr25519(bytes)`. +/// to a Bizinikiwi `MultiSignature::sr25519(bytes)`. #[derive(Clone, Copy, PartialEq, Eq)] pub struct Signature(pub [u8; 64]); @@ -39,7 +39,7 @@ impl AsRef<[u8]> for Signature { } /// The public key for an [`Keypair`] key pair. This is equivalent to a -/// Substrate `AccountId32`. +/// Bizinikiwi `AccountId32`. pub struct PublicKey(pub [u8; 32]); impl AsRef<[u8]> for PublicKey { @@ -125,7 +125,7 @@ impl Keypair { /// Construct a keypair from a slice of bytes, corresponding to /// an Ed25519 expanded secret key. - #[cfg(feature = "polkadot-js-compat")] + #[cfg(feature = "pezkuwi-js-compat")] pub(crate) fn from_ed25519_bytes(bytes: &[u8]) -> Result { let secret_key = schnorrkel::SecretKey::from_ed25519_bytes(bytes)?; @@ -162,13 +162,13 @@ impl Keypair { } /// Obtain the [`PublicKey`] part of this key pair, which can be used in calls to [`verify()`]. - /// or otherwise converted into an address. The public key bytes are equivalent to a Substrate + /// or otherwise converted into an address. The public key bytes are equivalent to a Bizinikiwi /// `AccountId32`. pub fn public_key(&self) -> PublicKey { PublicKey(self.0.public.to_bytes()) } - /// Sign some message. These bytes can be used directly in a Substrate + /// Sign some message. These bytes can be used directly in a Bizinikiwi /// `MultiSignature::sr25519(..)`. pub fn sign(&self, message: &[u8]) -> Signature { let context = schnorrkel::signing_context(SIGNING_CTX); diff --git a/subxt/examples/substrate_compat_signer.rs b/subxt/examples/bizinikiwi_compat_signer.rs similarity index 67% rename from subxt/examples/substrate_compat_signer.rs rename to subxt/examples/bizinikiwi_compat_signer.rs index 41d0262b12..d42531e08f 100644 --- a/subxt/examples/substrate_compat_signer.rs +++ b/subxt/examples/bizinikiwi_compat_signer.rs @@ -1,19 +1,19 @@ //! This example demonstrates how to use to add a custom signer implementation to `subxt` -//! by using the signer implementation from polkadot-sdk. +//! by using the signer implementation from pezkuwi-sdk. //! -//! Similar functionality was provided by the `substrate-compat` feature in the original `subxt` +//! Similar functionality was provided by the `bizinikiwi-compat` feature in the original `subxt` //! crate. which is now removed. #![allow(missing_docs, unused)] use sp_core::{Pair as _, sr25519}; -use pezkuwi_subxt::{Config, OnlineClient, PolkadotConfig, config::substrate::MultiAddress}; +use pezkuwi_subxt::{Config, OnlineClient, PezkuwiConfig, config::bizinikiwi::MultiAddress}; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} /// A concrete PairSigner implementation which relies on `sr25519::Pair` for signing -/// and that PolkadotConfig is the runtime configuration. +/// and that PezkuwiConfig is the runtime configuration. mod pair_signer { use super::*; use sp_runtime::{ @@ -21,14 +21,14 @@ mod pair_signer { traits::{IdentifyAccount, Verify}, }; use pezkuwi_subxt::{ - config::substrate::{AccountId32, MultiSignature}, + config::bizinikiwi::{AccountId32, MultiSignature}, tx::Signer, }; /// A [`Signer`] implementation for [`sp_core::sr25519::Pair`]. #[derive(Clone)] pub struct PairSigner { - account_id: ::AccountId, + account_id: ::AccountId, signer: sr25519::Pair, } @@ -38,14 +38,14 @@ mod pair_signer { let account_id = ::Signer::from(signer.public()).into_account(); Self { - // Convert `sp_core::AccountId32` to `pezkuwi_subxt::config::substrate::AccountId32`. + // Convert `sp_core::AccountId32` to `pezkuwi_subxt::config::bizinikiwi::AccountId32`. // - // This is necessary because we use `pezkuwi_subxt::config::substrate::AccountId32` and no + // This is necessary because we use `pezkuwi_subxt::config::bizinikiwi::AccountId32` and no // From/Into impls are provided between `sp_core::AccountId32` because - // `polkadot-sdk` isn't a direct dependency in subxt. + // `pezkuwi-sdk` isn't a direct dependency in subxt. // // This can also be done by provided a wrapper type around - // `pezkuwi_subxt::config::substrate::AccountId32` to implement such conversions but + // `pezkuwi_subxt::config::bizinikiwi::AccountId32` to implement such conversions but // that also most likely requires a custom `Config` with a separate `AccountId` type // to work properly without additional hacks. account_id: AccountId32(account_id.into()), @@ -64,12 +64,12 @@ mod pair_signer { } } - impl Signer for PairSigner { - fn account_id(&self) -> ::AccountId { + impl Signer for PairSigner { + fn account_id(&self) -> ::AccountId { self.account_id.clone() } - fn sign(&self, signer_payload: &[u8]) -> ::Signature { + fn sign(&self, signer_payload: &[u8]) -> ::Signature { let signature = self.signer.sign(signer_payload); MultiSignature::Sr25519(signature.0) } @@ -80,8 +80,8 @@ mod pair_signer { async fn main() -> Result<(), Box> { tracing_subscriber::fmt::init(); - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; let signer = { let acc = sr25519::Pair::from_string("//Alice", None)?; @@ -94,7 +94,7 @@ async fn main() -> Result<(), Box> { }; // Build a balance transfer extrinsic. - let balance_transfer_tx = polkadot::tx().balances().transfer_allow_death(dest, 100_000); + let balance_transfer_tx = pezkuwi::tx().balances().transfer_allow_death(dest, 100_000); // Submit the balance transfer extrinsic from Alice, and wait for it to be successful // and in a finalized block. We get back the extrinsic events if all is well. @@ -106,7 +106,7 @@ async fn main() -> Result<(), Box> { .await?; // Find a Transfer event and print it. - let transfer_event = events.find_first::()?; + let transfer_event = events.find_first::()?; if let Some(event) = transfer_event { println!("Balance transfer success: {event:?}"); } diff --git a/subxt/examples/block_decoding_dynamic.rs b/subxt/examples/block_decoding_dynamic.rs index 651a8570ed..e879d590e1 100644 --- a/subxt/examples/block_decoding_dynamic.rs +++ b/subxt/examples/block_decoding_dynamic.rs @@ -1,10 +1,10 @@ #![allow(missing_docs)] -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; #[tokio::main] async fn main() -> Result<(), Box> { - // Create a client that subscribes to blocks of the Polkadot network. - let api = OnlineClient::::from_url("wss://rpc.polkadot.io:443").await?; + // Create a client that subscribes to blocks of the Pezkuwi network. + let api = OnlineClient::::from_url("wss://rpc.pezkuwi.io:443").await?; // Subscribe to all finalized blocks: let mut blocks_sub = api.blocks().subscribe_finalized().await?; diff --git a/subxt/examples/block_decoding_static.rs b/subxt/examples/block_decoding_static.rs index 75d3a38954..9cae4ba4d4 100644 --- a/subxt/examples/block_decoding_static.rs +++ b/subxt/examples/block_decoding_static.rs @@ -1,20 +1,20 @@ #![allow(missing_docs)] use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, utils::{AccountId32, MultiAddress}, }; use codec::Decode; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} -use polkadot::balances::calls::types::TransferKeepAlive; +use pezkuwi::balances::calls::types::TransferKeepAlive; #[tokio::main] async fn main() -> Result<(), Box> { - // Create a client that subscribes to blocks of the Polkadot network. - let api = OnlineClient::::from_url("wss://rpc.polkadot.io:443").await?; + // Create a client that subscribes to blocks of the Pezkuwi network. + let api = OnlineClient::::from_url("wss://rpc.pezkuwi.io:443").await?; // Subscribe to all finalized blocks: let mut blocks_sub = api.blocks().subscribe_finalized().await?; diff --git a/subxt/examples/blocks_subscribing.rs b/subxt/examples/blocks_subscribing.rs index f7e8e8d8e4..5bca0b0dfe 100644 --- a/subxt/examples/blocks_subscribing.rs +++ b/subxt/examples/blocks_subscribing.rs @@ -1,13 +1,13 @@ #![allow(missing_docs)] -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { // Create a client to use: - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Subscribe to all finalized blocks: let mut blocks_sub = api.blocks().subscribe_finalized().await?; @@ -31,7 +31,7 @@ async fn main() -> Result<(), Box> { let bytes_hex = format!("0x{}", hex::encode(ext.bytes())); // See the API docs for more ways to decode extrinsics: - let decoded_ext = ext.as_root_extrinsic::(); + let decoded_ext = ext.as_root_extrinsic::(); println!(" Extrinsic #{idx}:"); println!(" Bytes: {bytes_hex}"); diff --git a/subxt/examples/constants_dynamic.rs b/subxt/examples/constants_dynamic.rs index e0cf42ce1e..842752678e 100644 --- a/subxt/examples/constants_dynamic.rs +++ b/subxt/examples/constants_dynamic.rs @@ -1,10 +1,10 @@ #![allow(missing_docs)] -use pezkuwi_subxt::{OnlineClient, PolkadotConfig, dynamic::Value}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig, dynamic::Value}; #[tokio::main] async fn main() -> Result<(), Box> { // Create a client to use: - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // We can query a constant by providing a tuple of the pallet and constant name. The return type // will be `Value` if we pass this query: diff --git a/subxt/examples/constants_static.rs b/subxt/examples/constants_static.rs index 56853784b4..f16017a056 100644 --- a/subxt/examples/constants_static.rs +++ b/subxt/examples/constants_static.rs @@ -1,16 +1,16 @@ #![allow(missing_docs)] -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { // Create a client to use: - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // A query to obtain some constant: - let constant_query = polkadot::constants().system().block_length(); + let constant_query = pezkuwi::constants().system().block_length(); // Obtain the value: let value = api.constants().at(&constant_query)?; diff --git a/subxt/examples/events.rs b/subxt/examples/events.rs index 0b468f9a6a..297bd42ec4 100644 --- a/subxt/examples/events.rs +++ b/subxt/examples/events.rs @@ -1,13 +1,13 @@ #![allow(missing_docs)] -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { // Create a client to use: - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Get events for the latest block: let events = api.events().at_latest().await?; @@ -29,7 +29,7 @@ async fn main() -> Result<(), Box> { for event in events.iter() { let event = event?; - if let Ok(ev) = event.as_root_event::() { + if let Ok(ev) = event.as_root_event::() { println!("{ev:?}"); } else { println!(""); @@ -37,7 +37,7 @@ async fn main() -> Result<(), Box> { } // Or we can look for specific events which match our statically defined ones: - let transfer_event = events.find_first::()?; + let transfer_event = events.find_first::()?; if let Some(ev) = transfer_event { println!(" - Balance transfer success: value: {:?}", ev.amount); } else { diff --git a/subxt/examples/light_client_basic.rs b/subxt/examples/light_client_basic.rs index 523975c371..6ca7d69e39 100644 --- a/subxt/examples/light_client_basic.rs +++ b/subxt/examples/light_client_basic.rs @@ -1,42 +1,42 @@ #![allow(missing_docs)] use futures::StreamExt; -use pezkuwi_subxt::{PolkadotConfig, client::OnlineClient, lightclient::LightClient}; +use pezkuwi_subxt::{PezkuwiConfig, client::OnlineClient, lightclient::LightClient}; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} -const POLKADOT_SPEC: &str = include_str!("../../artifacts/demo_chain_specs/polkadot.json"); +const POLKADOT_SPEC: &str = include_str!("../../artifacts/demo_chain_specs/pezkuwi.json"); const ASSET_HUB_SPEC: &str = - include_str!("../../artifacts/demo_chain_specs/polkadot_asset_hub.json"); + include_str!("../../artifacts/demo_chain_specs/pezkuwi_asset_hub.json"); #[tokio::main] async fn main() -> Result<(), Box> { // The lightclient logs are informative: tracing_subscriber::fmt::init(); - // Instantiate a light client with the Polkadot relay chain, + // Instantiate a light client with the Pezkuwi relay chain, // and connect it to Asset Hub, too. - let (lightclient, polkadot_rpc) = LightClient::relay_chain(POLKADOT_SPEC)?; + let (lightclient, pezkuwi_rpc) = LightClient::relay_chain(POLKADOT_SPEC)?; let asset_hub_rpc = lightclient.parachain(ASSET_HUB_SPEC)?; // Create Subxt clients from these Smoldot backed RPC clients. - let polkadot_api = OnlineClient::::from_rpc_client(polkadot_rpc).await?; - let asset_hub_api = OnlineClient::::from_rpc_client(asset_hub_rpc).await?; + let pezkuwi_api = OnlineClient::::from_rpc_client(pezkuwi_rpc).await?; + let asset_hub_api = OnlineClient::::from_rpc_client(asset_hub_rpc).await?; // Use them! - let polkadot_sub = polkadot_api + let pezkuwi_sub = pezkuwi_api .blocks() .subscribe_finalized() .await? - .map(|block| ("Polkadot", block)); + .map(|block| ("Pezkuwi", block)); let parachain_sub = asset_hub_api .blocks() .subscribe_finalized() .await? .map(|block| ("AssetHub", block)); - let mut stream_combinator = futures::stream::select(polkadot_sub, parachain_sub); + let mut stream_combinator = futures::stream::select(pezkuwi_sub, parachain_sub); while let Some((chain, block)) = stream_combinator.next().await { let block = block?; diff --git a/subxt/examples/light_client_local_node.rs b/subxt/examples/light_client_local_node.rs index e1b8f9f959..7b876fe07e 100644 --- a/subxt/examples/light_client_local_node.rs +++ b/subxt/examples/light_client_local_node.rs @@ -1,15 +1,15 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; use pezkuwi_subxt::{ - PolkadotConfig, + PezkuwiConfig, client::OnlineClient, lightclient::{ChainConfig, LightClient}, utils::fetch_chainspec_from_rpc_node, }; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { @@ -24,7 +24,7 @@ async fn main() -> Result<(), Box> { // to the local node. // // The `12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp` is the P2P address - // from a local polkadot node starting with + // from a local pezkuwi node starting with // `--node-key 0000000000000000000000000000000000000000000000000000000000000001` let chain_config = ChainConfig::chain_spec(chain_spec.get()).set_bootnodes([ "/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp", @@ -32,11 +32,11 @@ async fn main() -> Result<(), Box> { // Start the light client up, establishing a connection to the local node. let (_light_client, chain_rpc) = LightClient::relay_chain(chain_config)?; - let api = OnlineClient::::from_rpc_client(chain_rpc).await?; + let api = OnlineClient::::from_rpc_client(chain_rpc).await?; // Build a balance transfer extrinsic. let dest = dev::bob().public_key().into(); - let balance_transfer_tx = polkadot::tx().balances().transfer_allow_death(dest, 10_000); + let balance_transfer_tx = pezkuwi::tx().balances().transfer_allow_death(dest, 10_000); // Submit the balance transfer extrinsic from Alice, and wait for it to be successful // and in a finalized block. We get back the extrinsic events if all is well. @@ -49,7 +49,7 @@ async fn main() -> Result<(), Box> { .await?; // Find a Transfer event and print it. - let transfer_event = events.find_first::()?; + let transfer_event = events.find_first::()?; if let Some(event) = transfer_event { println!("Balance transfer success: {event:?}"); } diff --git a/subxt/examples/rpc_legacy.rs b/subxt/examples/rpc_legacy.rs index 45b3ca1bd1..3865908283 100644 --- a/subxt/examples/rpc_legacy.rs +++ b/subxt/examples/rpc_legacy.rs @@ -1,13 +1,13 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, backend::{legacy::LegacyRpcMethods, rpc::RpcClient}, config::DefaultExtrinsicParamsBuilder as Params, }; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { @@ -15,10 +15,10 @@ async fn main() -> Result<(), Box> { let rpc_client = RpcClient::from_url("ws://127.0.0.1:9944").await?; // Use this to construct our RPC methods: - let rpc = LegacyRpcMethods::::new(rpc_client.clone()); + let rpc = LegacyRpcMethods::::new(rpc_client.clone()); // We can use the same client to drive our full Subxt interface too: - let api = OnlineClient::::from_rpc_client(rpc_client.clone()).await?; + let api = OnlineClient::::from_rpc_client(rpc_client.clone()).await?; // Now, we can make some RPC calls using some legacy RPC methods. println!( @@ -41,7 +41,7 @@ async fn main() -> Result<(), Box> { let ext_params = Params::new().mortal(8).nonce(current_nonce).build(); - let balance_transfer = polkadot::tx() + let balance_transfer = pezkuwi::tx() .balances() .transfer_allow_death(bob.public_key().into(), 1_000_000); diff --git a/subxt/examples/runtime_apis_dynamic.rs b/subxt/examples/runtime_apis_dynamic.rs index 013239cf34..e2ab296bd8 100644 --- a/subxt/examples/runtime_apis_dynamic.rs +++ b/subxt/examples/runtime_apis_dynamic.rs @@ -1,11 +1,11 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; -use pezkuwi_subxt::{OnlineClient, config::PolkadotConfig, utils::AccountId32}; +use pezkuwi_subxt::{OnlineClient, config::PezkuwiConfig, utils::AccountId32}; #[tokio::main] async fn main() -> Result<(), Box> { // Create a client to use: - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Create a "dynamic" runtime API payload that calls the // `AccountNonceApi_account_nonce` function. We could use the diff --git a/subxt/examples/runtime_apis_raw.rs b/subxt/examples/runtime_apis_raw.rs index ca8833976e..b4f6ec74b5 100644 --- a/subxt/examples/runtime_apis_raw.rs +++ b/subxt/examples/runtime_apis_raw.rs @@ -1,19 +1,19 @@ #![allow(missing_docs)] use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, ext::{ codec::{Compact, Decode}, frame_metadata::RuntimeMetadataPrefixed, }, }; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { // Create a client to use: - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Use runtime APIs at the latest block: let runtime_apis = api.runtime_api().at_latest().await?; diff --git a/subxt/examples/runtime_apis_static.rs b/subxt/examples/runtime_apis_static.rs index 7687125dc5..97c21efd71 100644 --- a/subxt/examples/runtime_apis_static.rs +++ b/subxt/examples/runtime_apis_static.rs @@ -1,19 +1,19 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; -use pezkuwi_subxt::{OnlineClient, config::PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, config::PezkuwiConfig}; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { // Create a client to use: - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Create a runtime API payload that calls into // `AccountNonceApi_account_nonce` function. let account = dev::alice().public_key().into(); - let runtime_api_call = polkadot::apis().account_nonce_api().account_nonce(account); + let runtime_api_call = pezkuwi::apis().account_nonce_api().account_nonce(account); // Submit the call and get back a result. let nonce = api.runtime_api().at_latest().await?.call(runtime_api_call).await; diff --git a/subxt/examples/setup_client_custom_rpc.rs b/subxt/examples/setup_client_custom_rpc.rs index d92442f145..8438241e97 100644 --- a/subxt/examples/setup_client_custom_rpc.rs +++ b/subxt/examples/setup_client_custom_rpc.rs @@ -5,7 +5,7 @@ use std::{ sync::{Arc, Mutex}, }; use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, backend::rpc::{RawRpcFuture, RawRpcSubscription, RawValue, RpcClient, RpcClientT}, }; @@ -73,7 +73,7 @@ async fn main() -> Result<(), Box> { // Pass this into our OnlineClient to instantiate it. This will lead to some // RPC calls being made to fetch chain details/metadata, which will immediately // fail.. - let _ = OnlineClient::::from_rpc_client(rpc_client).await; + let _ = OnlineClient::::from_rpc_client(rpc_client).await; // But, we can see that the calls were made via our custom RPC client: println!("Log of calls made:\n\n{}", log.lock().unwrap().as_str()); diff --git a/subxt/examples/setup_client_offline.rs b/subxt/examples/setup_client_offline.rs index 027c41fd64..1cff0981ec 100644 --- a/subxt/examples/setup_client_offline.rs +++ b/subxt/examples/setup_client_offline.rs @@ -1,6 +1,6 @@ #![allow(missing_docs)] use pezkuwi_subxt::{ - OfflineClient, config::PolkadotConfig, ext::codec::Decode, metadata::Metadata, utils::H256, + OfflineClient, config::PezkuwiConfig, ext::codec::Decode, metadata::Metadata, utils::H256, }; #[tokio::main] @@ -14,19 +14,19 @@ async fn main() -> Result<(), Box> { H256::from_slice(&bytes) }; - // 2. A runtime version (system_version constant on a Substrate node has these): + // 2. A runtime version (system_version constant on a Bizinikiwi node has these): let runtime_version = pezkuwi_subxt::client::RuntimeVersion { spec_version: 9370, transaction_version: 20 }; // 3. Metadata (I'll load it from the downloaded metadata, but you can use `subxt metadata > // file.scale` to download it): let metadata = { - let bytes = std::fs::read("./artifacts/polkadot_metadata_small.scale").unwrap(); + let bytes = std::fs::read("./artifacts/pezkuwi_metadata_small.scale").unwrap(); Metadata::decode(&mut &*bytes).unwrap() }; // Create an offline client using the details obtained above: - let _api = OfflineClient::::new(genesis_hash, runtime_version, metadata); + let _api = OfflineClient::::new(genesis_hash, runtime_version, metadata); Ok(()) } diff --git a/subxt/examples/setup_config_assethub.rs b/subxt/examples/setup_config_assethub.rs index 1fafd5c47f..7e2d9ef73f 100644 --- a/subxt/examples/setup_config_assethub.rs +++ b/subxt/examples/setup_config_assethub.rs @@ -1,11 +1,11 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; use pezkuwi_subxt::config::{ - Config, DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder, PolkadotConfig, SubstrateConfig, + Config, DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder, PezkuwiConfig, BizinikiwConfig, }; #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", + runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", derive_for_type( path = "staging_xcm::v3::multilocation::MultiLocation", derive = "Clone, codec::Encode", @@ -21,11 +21,11 @@ use runtime::runtime_types::{ pub enum AssetHubConfig {} impl Config for AssetHubConfig { - type AccountId = ::AccountId; - type Address = ::Address; - type Signature = ::Signature; - type Hasher = ::Hasher; - type Header = ::Header; + type AccountId = ::AccountId; + type Address = ::Address; + type Signature = ::Signature; + type Hasher = ::Hasher; + type Header = ::Header; type ExtrinsicParams = DefaultExtrinsicParams; // Here we use the MultiLocation from the metadata as a part of the config: // The `ChargeAssetTxPayment` signed extension that is part of the ExtrinsicParams above, now diff --git a/subxt/examples/setup_config_custom.rs b/subxt/examples/setup_config_custom.rs index f210e449b6..dd856e7652 100644 --- a/subxt/examples/setup_config_custom.rs +++ b/subxt/examples/setup_config_custom.rs @@ -9,7 +9,7 @@ use pezkuwi_subxt::{ }, }; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale")] +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale")] pub mod runtime {} // We don't need to construct this at runtime, @@ -20,8 +20,8 @@ impl Config for CustomConfig { type AccountId = pezkuwi_subxt::utils::AccountId32; type Address = pezkuwi_subxt::utils::MultiAddress; type Signature = pezkuwi_subxt::utils::MultiSignature; - type Hasher = pezkuwi_subxt::config::substrate::BlakeTwo256; - type Header = pezkuwi_subxt::config::substrate::SubstrateHeader; + type Hasher = pezkuwi_subxt::config::bizinikiwi::BlakeTwo256; + type Header = pezkuwi_subxt::config::bizinikiwi::BizinikiwiHeader; type ExtrinsicParams = CustomExtrinsicParams; type AssetId = u32; } diff --git a/subxt/examples/setup_config_transaction_extension.rs b/subxt/examples/setup_config_transaction_extension.rs index f3e0c228fe..3b9867292a 100644 --- a/subxt/examples/setup_config_transaction_extension.rs +++ b/subxt/examples/setup_config_transaction_extension.rs @@ -11,7 +11,7 @@ use pezkuwi_subxt::{ }, }; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] pub mod runtime {} // We don't need to construct this at runtime, @@ -23,8 +23,8 @@ impl Config for CustomConfig { type AccountId = pezkuwi_subxt::utils::AccountId32; type Address = pezkuwi_subxt::utils::MultiAddress; type Signature = pezkuwi_subxt::utils::MultiSignature; - type Hasher = pezkuwi_subxt::config::substrate::BlakeTwo256; - type Header = pezkuwi_subxt::config::substrate::SubstrateHeader; + type Hasher = pezkuwi_subxt::config::bizinikiwi::BlakeTwo256; + type Header = pezkuwi_subxt::config::bizinikiwi::BizinikiwiHeader; type ExtrinsicParams = transaction_extensions::AnyOf< Self, ( diff --git a/subxt/examples/setup_reconnecting_rpc_client.rs b/subxt/examples/setup_reconnecting_rpc_client.rs index a9e87ab63b..7f88c3f2ea 100644 --- a/subxt/examples/setup_reconnecting_rpc_client.rs +++ b/subxt/examples/setup_reconnecting_rpc_client.rs @@ -10,13 +10,13 @@ use std::time::Duration; use futures::StreamExt; use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, backend::rpc::reconnecting_rpc_client::{ExponentialBackoff, RpcClient}, }; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { @@ -43,15 +43,15 @@ async fn main() -> Result<(), Box> { // use pezkuwi_subxt::OnlineClient; // // let backend = ChainHeadBackend::builder().build_with_background_task(RpcClient::new(rpc.clone())); - // let api: OnlineClient = OnlineClient::from_backend(Arc::new(backend)).await?; + // let api: OnlineClient = OnlineClient::from_backend(Arc::new(backend)).await?; // ``` - let api: OnlineClient = OnlineClient::from_rpc_client(rpc.clone()).await?; + let api: OnlineClient = OnlineClient::from_rpc_client(rpc.clone()).await?; // Run for at most 100 blocks and print a bunch of information about it. // // The subscription is automatically re-started when the RPC client has reconnected. - // You can test that by stopping the polkadot node and restarting it. + // You can test that by stopping the pezkuwi node and restarting it. let mut blocks_sub = api.blocks().subscribe_finalized().await?.take(100); while let Some(block) = blocks_sub.next().await { diff --git a/subxt/examples/setup_rpc_chainhead_backend.rs b/subxt/examples/setup_rpc_chainhead_backend.rs index 426722c331..8bed2878c8 100644 --- a/subxt/examples/setup_rpc_chainhead_backend.rs +++ b/subxt/examples/setup_rpc_chainhead_backend.rs @@ -4,7 +4,7 @@ use futures::StreamExt; use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, backend::{ chain_head::{ChainHeadBackend, ChainHeadBackendBuilder}, rpc::RpcClient, @@ -12,15 +12,15 @@ use pezkuwi_subxt::{ }; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { tracing_subscriber::fmt::init(); let rpc = RpcClient::from_url("ws://localhost:9944".to_string()).await?; - let backend: ChainHeadBackend = + let backend: ChainHeadBackend = ChainHeadBackendBuilder::default().build_with_background_driver(rpc.clone()); let api = OnlineClient::from_backend(std::sync::Arc::new(backend)).await?; diff --git a/subxt/examples/storage_fetch.rs b/subxt/examples/storage_fetch.rs index b392150c92..d2858597aa 100644 --- a/subxt/examples/storage_fetch.rs +++ b/subxt/examples/storage_fetch.rs @@ -1,19 +1,19 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; let account = dev::alice().public_key().into(); // Build a storage query to access account information. - let storage_query = polkadot::storage().system().account(); + let storage_query = pezkuwi::storage().system().account(); // Use that query to access a storage entry, fetch a result and decode the value. // The static address knows that fetching requires a tuple of one value, an diff --git a/subxt/examples/storage_fetch_dynamic.rs b/subxt/examples/storage_fetch_dynamic.rs index 47fe58bd83..7db0542329 100644 --- a/subxt/examples/storage_fetch_dynamic.rs +++ b/subxt/examples/storage_fetch_dynamic.rs @@ -1,15 +1,15 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, dynamic::{At, Value}, utils::AccountId32, }; #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; // Build a dynamic storage query to access account information. // here, we assume that there is one value to provide at this entry diff --git a/subxt/examples/storage_iterating.rs b/subxt/examples/storage_iterating.rs index 5736f70e52..cb6a2e110d 100644 --- a/subxt/examples/storage_iterating.rs +++ b/subxt/examples/storage_iterating.rs @@ -1,18 +1,18 @@ #![allow(missing_docs)] -use pezkuwi_subxt::{OnlineClient, PolkadotConfig, ext::futures::StreamExt}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig, ext::futures::StreamExt}; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; // Build a storage query to access account information. Same as if we were // fetching a single value from this entry. - let storage_query = polkadot::storage().system().account(); + let storage_query = pezkuwi::storage().system().account(); // Use that query to access a storage entry, iterate over it and decode values. let client_at = api.storage().at_latest().await?; diff --git a/subxt/examples/storage_iterating_dynamic.rs b/subxt/examples/storage_iterating_dynamic.rs index 8d19a3f7e9..a0e33e4e79 100644 --- a/subxt/examples/storage_iterating_dynamic.rs +++ b/subxt/examples/storage_iterating_dynamic.rs @@ -1,6 +1,6 @@ #![allow(missing_docs)] use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, + OnlineClient, PezkuwiConfig, dynamic::{At, Value}, ext::futures::StreamExt, utils::AccountId32, @@ -8,8 +8,8 @@ use pezkuwi_subxt::{ #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; // Build a dynamic storage query to access account information. // here, we assume that there is one value to provide at this entry diff --git a/subxt/examples/tx_basic.rs b/subxt/examples/tx_basic.rs index 24f1a002b8..08e379b1a7 100644 --- a/subxt/examples/tx_basic.rs +++ b/subxt/examples/tx_basic.rs @@ -1,19 +1,19 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; // Build a balance transfer extrinsic. let dest = dev::bob().public_key().into(); - let balance_transfer_tx = polkadot::tx().balances().transfer_allow_death(dest, 10_000); + let balance_transfer_tx = pezkuwi::tx().balances().transfer_allow_death(dest, 10_000); // Submit the balance transfer extrinsic from Alice, and wait for it to be successful // and in a finalized block. We get back the extrinsic events if all is well. @@ -26,7 +26,7 @@ async fn main() -> Result<(), Box> { .await?; // Find a Transfer event and print it. - let transfer_event = events.find_first::()?; + let transfer_event = events.find_first::()?; if let Some(event) = transfer_event { println!("Balance transfer success: {event:?}"); } diff --git a/subxt/examples/tx_basic_frontier.rs b/subxt/examples/tx_basic_frontier.rs index 4d4ead1d02..348d057dcd 100644 --- a/subxt/examples/tx_basic_frontier.rs +++ b/subxt/examples/tx_basic_frontier.rs @@ -1,4 +1,4 @@ -//! Example to use subxt to talk to substrate-based nodes with ethereum accounts +//! Example to use subxt to talk to bizinikiwi-based nodes with ethereum accounts //! which is not the default for subxt which is why we need to provide a custom config. //! //! This example requires to run a local frontier/moonbeam node to work. @@ -18,10 +18,10 @@ impl pezkuwi_subxt::Config for EthRuntimeConfig { type AccountId = AccountId20; type Address = AccountId20; type Signature = Signature; - type Hasher = pezkuwi_subxt::config::substrate::BlakeTwo256; + type Hasher = pezkuwi_subxt::config::bizinikiwi::BlakeTwo256; type Header = - pezkuwi_subxt::config::substrate::SubstrateHeader; - type ExtrinsicParams = pezkuwi_subxt::config::SubstrateExtrinsicParams; + pezkuwi_subxt::config::bizinikiwi::BizinikiwiHeader; + type ExtrinsicParams = pezkuwi_subxt::config::BizinikiwiExtrinsicParams; type AssetId = u32; } diff --git a/subxt/examples/tx_boxed.rs b/subxt/examples/tx_boxed.rs index 77cd08bf3e..d09bb73aed 100644 --- a/subxt/examples/tx_boxed.rs +++ b/subxt/examples/tx_boxed.rs @@ -1,13 +1,13 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Prepare some extrinsics. These are boxed so that they can live alongside each other. let txs = [dynamic_remark(), balance_transfer(), remark()]; @@ -28,11 +28,11 @@ async fn main() -> Result<(), Box> { fn balance_transfer() -> Box { let dest = dev::bob().public_key().into(); - Box::new(polkadot::tx().balances().transfer_allow_death(dest, 10_000)) + Box::new(pezkuwi::tx().balances().transfer_allow_death(dest, 10_000)) } fn remark() -> Box { - Box::new(polkadot::tx().system().remark(vec![1, 2, 3, 4, 5])) + Box::new(pezkuwi::tx().system().remark(vec![1, 2, 3, 4, 5])) } fn dynamic_remark() -> Box { diff --git a/subxt/examples/tx_partial.rs b/subxt/examples/tx_partial.rs index 160ddc54ab..60574744fe 100644 --- a/subxt/examples/tx_partial.rs +++ b/subxt/examples/tx_partial.rs @@ -1,11 +1,11 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; type BoxedError = Box; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), BoxedError> { @@ -16,11 +16,11 @@ async fn main() -> Result<(), BoxedError> { } async fn signing_example() -> Result<(), BoxedError> { - let api = OnlineClient::::new().await?; + let api = OnlineClient::::new().await?; // Build a balance transfer extrinsic. let dest = dev::bob().public_key().into(); - let balance_transfer_tx = polkadot::tx().balances().transfer_allow_death(dest, 10_000); + let balance_transfer_tx = pezkuwi::tx().balances().transfer_allow_death(dest, 10_000); let alice = dev::alice(); diff --git a/subxt/examples/tx_status_stream.rs b/subxt/examples/tx_status_stream.rs index 6f081dd6e6..9ef5cfd844 100644 --- a/subxt/examples/tx_status_stream.rs +++ b/subxt/examples/tx_status_stream.rs @@ -1,19 +1,19 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; -use pezkuwi_subxt::{OnlineClient, PolkadotConfig, tx::TxStatus}; +use pezkuwi_subxt::{OnlineClient, PezkuwiConfig, tx::TxStatus}; // Generate an interface that we can use from the node's metadata. -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; // Build a balance transfer extrinsic. let dest = dev::bob().public_key().into(); - let balance_transfer_tx = polkadot::tx().balances().transfer_allow_death(dest, 10_000); + let balance_transfer_tx = pezkuwi::tx().balances().transfer_allow_death(dest, 10_000); // Submit the balance transfer extrinsic from Alice, and then monitor the // progress of it. @@ -35,7 +35,7 @@ async fn main() -> Result<(), Box> { let events = in_block.wait_for_success().await?; // We can look for events (this uses the static interface; we can also iterate // over them and dynamically decode them): - let transfer_event = events.find_first::()?; + let transfer_event = events.find_first::()?; if let Some(event) = transfer_event { println!("Balance transfer success: {event:?}"); diff --git a/subxt/examples/tx_with_params.rs b/subxt/examples/tx_with_params.rs index ce525ca793..1d83f303b6 100644 --- a/subxt/examples/tx_with_params.rs +++ b/subxt/examples/tx_with_params.rs @@ -1,20 +1,20 @@ #![allow(missing_docs)] use pezkuwi_subxt_signer::sr25519::dev; use pezkuwi_subxt::{ - OnlineClient, PolkadotConfig, config::polkadot::PolkadotExtrinsicParamsBuilder as Params, + OnlineClient, PezkuwiConfig, config::pezkuwi::PezkuwiExtrinsicParamsBuilder as Params, }; -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -pub mod polkadot {} +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +pub mod pezkuwi {} #[tokio::main] async fn main() -> Result<(), Box> { - // Create a new API client, configured to talk to Polkadot nodes. - let api = OnlineClient::::new().await?; + // Create a new API client, configured to talk to Pezkuwi nodes. + let api = OnlineClient::::new().await?; // Build a balance transfer extrinsic. let dest = dev::bob().public_key().into(); - let tx = polkadot::tx().balances().transfer_allow_death(dest, 10_000); + let tx = pezkuwi::tx().balances().transfer_allow_death(dest, 10_000); // Configure the transaction parameters; we give a small tip and set the // transaction to live for 32 blocks from the `latest_block` above. diff --git a/subxt/src/backend/chain_head/follow_stream.rs b/subxt/src/backend/chain_head/follow_stream.rs index e1d0a78b7f..59eb19ef91 100644 --- a/subxt/src/backend/chain_head/follow_stream.rs +++ b/subxt/src/backend/chain_head/follow_stream.rs @@ -222,7 +222,7 @@ impl Stream for FollowStream { #[cfg(test)] pub(super) mod test_utils { use super::*; - use crate::config::substrate::H256; + use crate::config::bizinikiwi::H256; use pezkuwi_subxt_rpcs::methods::chain_head::{ BestBlockChanged, Finalized, Initialized, NewBlock, }; diff --git a/subxt/src/backend/chain_head/follow_stream_unpin.rs b/subxt/src/backend/chain_head/follow_stream_unpin.rs index 2291294e1e..cf95540df5 100644 --- a/subxt/src/backend/chain_head/follow_stream_unpin.rs +++ b/subxt/src/backend/chain_head/follow_stream_unpin.rs @@ -463,7 +463,7 @@ pub(super) mod test_utils { super::follow_stream::{FollowStream, test_utils::test_stream_getter}, *, }; - use crate::config::substrate::H256; + use crate::config::bizinikiwi::H256; pub type UnpinRx = std::sync::mpsc::Receiver<(H, Arc)>; @@ -552,7 +552,7 @@ mod test { test_utils::{assert_from_unpin_rx, ev_new_block_ref, test_unpin_stream_getter}, *, }; - use crate::config::substrate::H256; + use crate::config::bizinikiwi::H256; #[tokio::test] async fn hands_back_blocks() { diff --git a/subxt/src/backend/chain_head/mod.rs b/subxt/src/backend/chain_head/mod.rs index 3d0af2ce4d..83bef67cbe 100644 --- a/subxt/src/backend/chain_head/mod.rs +++ b/subxt/src/backend/chain_head/mod.rs @@ -3,7 +3,7 @@ // see LICENSE for license details. //! This module will expose a backend implementation based on the new APIs -//! described at . See +//! described at . See //! [`rpc_methods`] for the raw API calls. //! //! # Warning @@ -539,7 +539,7 @@ impl Backend for ChainHeadBackend { &self, _hasher: T::Hasher, ) -> Result>)>, BackendError> { - // TODO: https://github.com/paritytech/subxt/issues/1568 + // TODO: https://github.com/pezkuwichain/subxt/issues/1568 // // It's possible that blocks may be silently missed if // a reconnection occurs because it's restarted by the unstable backend. @@ -557,7 +557,7 @@ impl Backend for ChainHeadBackend { &self, _hasher: T::Hasher, ) -> Result>)>, BackendError> { - // TODO: https://github.com/paritytech/subxt/issues/1568 + // TODO: https://github.com/pezkuwichain/subxt/issues/1568 // // It's possible that blocks may be silently missed if // a reconnection occurs because it's restarted by the unstable backend. diff --git a/subxt/src/backend/legacy.rs b/subxt/src/backend/legacy.rs index 0815765b47..62aa176696 100644 --- a/subxt/src/backend/legacy.rs +++ b/subxt/src/backend/legacy.rs @@ -508,11 +508,11 @@ impl Stream for StorageFetchDescendantKeysStream { keys.first() == this.pagination_start_key.as_ref() { // Currently, Smoldot returns the "start key" as the first key in the - // input (see https://github.com/smol-dot/smoldot/issues/1692), whereas Substrate doesn't. + // input (see https://github.com/smol-dot/smoldot/issues/1692), whereas Bizinikiwi doesn't. // We don't expect the start key to be returned either (since it was the // last key of prev iteration), so remove it if we see it. This // `remove()` method isn't very efficient but this will be a non - // issue with the RPC V2 APIs or if Smoldot aligns with Substrate + // issue with the RPC V2 APIs or if Smoldot aligns with Bizinikiwi // anyway. keys.remove(0); } diff --git a/subxt/src/backend/mod.rs b/subxt/src/backend/mod.rs index d5d973fc03..39f542dd21 100644 --- a/subxt/src/backend/mod.rs +++ b/subxt/src/backend/mod.rs @@ -39,7 +39,7 @@ pub mod rpc { /// use std::time::Duration; /// use futures::StreamExt; /// use pezkuwi_subxt::backend::rpc::reconnecting_rpc_client::{RpcClient, ExponentialBackoff}; - /// use pezkuwi_subxt::{OnlineClient, PolkadotConfig}; + /// use pezkuwi_subxt::{OnlineClient, PezkuwiConfig}; /// /// #[tokio::main] /// async fn main() { @@ -49,7 +49,7 @@ pub mod rpc { /// .await /// .unwrap(); /// - /// let subxt_client: OnlineClient = OnlineClient::from_rpc_client(rpc.clone()).await.unwrap(); + /// let subxt_client: OnlineClient = OnlineClient::from_rpc_client(rpc.clone()).await.unwrap(); /// let mut blocks_sub = subxt_client.blocks().subscribe_finalized().await.unwrap(); /// /// while let Some(block) = blocks_sub.next().await { @@ -420,8 +420,8 @@ mod test { type AccountId = crate::utils::AccountId32; type Address = crate::utils::MultiAddress; type Signature = crate::utils::MultiSignature; - type Hasher = crate::config::substrate::BlakeTwo256; - type Header = crate::config::substrate::SubstrateHeader; + type Hasher = crate::config::bizinikiwi::BlakeTwo256; + type Header = crate::config::bizinikiwi::BizinikiwiHeader; type ExtrinsicParams = DefaultExtrinsicParams; type AssetId = u32; } @@ -645,8 +645,8 @@ mod test { fn runtime_spec() -> RuntimeSpec { let spec = serde_json::json!({ - "specName": "westend", - "implName": "parity-westend", + "specName": "zagros", + "implName": "parity-zagros", "specVersion": 9122, "implVersion": 0, "transactionVersion": 7, @@ -968,7 +968,7 @@ mod test { } // Check that the backend will resubscribe on Stop, and handle a change in subscription ID. - // see https://github.com/paritytech/subxt/issues/1567 + // see https://github.com/pezkuwichain/subxt/issues/1567 #[tokio::test] async fn stale_subscription_id_failure() { let (tx, rx) = tokio::sync::mpsc::unbounded_channel(); diff --git a/subxt/src/backend/utils.rs b/subxt/src/backend/utils.rs index fb3f8da719..186ae16317 100644 --- a/subxt/src/backend/utils.rs +++ b/subxt/src/backend/utils.rs @@ -117,7 +117,7 @@ where continue; } - // TODO: https://github.com/paritytech/subxt/issues/1567 + // TODO: https://github.com/pezkuwichain/subxt/issues/1567 // This is a hack because, in the event of a disconnection, // we may not get the correct subscription ID back on reconnecting. // diff --git a/subxt/src/book/mod.rs b/subxt/src/book/mod.rs index 36fef0c554..dc225dd038 100644 --- a/subxt/src/book/mod.rs +++ b/subxt/src/book/mod.rs @@ -9,7 +9,7 @@ //! # The Subxt Guide //! -//! Subxt is a library for interacting with Substrate based nodes. It has a focus on **sub**mitting +//! Subxt is a library for interacting with Bizinikiwi based nodes. It has a focus on **sub**mitting //! e**xt**rinsics, hence the name, however it's also capable of reading blocks, storage, events and //! constants from a node. The aim of this guide is to explain key concepts and get you started with //! using Subxt. @@ -68,8 +68,8 @@ #![doc = include_str!("../../examples/tx_basic.rs")] //! ``` //! -//! This example assumes that a Polkadot node is running locally (Subxt endeavors to support all -//! recent releases). Typically, to use Subxt to talk to some custom Substrate node (for example a +//! This example assumes that a Pezkuwi node is running locally (Subxt endeavors to support all +//! recent releases). Typically, to use Subxt to talk to some custom Bizinikiwi node (for example a //! parachain node), you'll want to: //! //! 1. [Generate an interface](setup::codegen) @@ -100,9 +100,9 @@ //! //! Some complete, self contained examples which are not a part of this guide: //! -//! - [`parachain-example`](https://github.com/paritytech/subxt/tree/master/examples/parachain-example) is an example +//! - [`parachain-example`](https://github.com/pezkuwichain/subxt/tree/master/examples/parachain-example) is an example //! which uses Zombienet to spawn a parachain locally, and then connects to it using Subxt. -//! - [`wasm-example`](https://github.com/paritytech/subxt/tree/master/examples/wasm-example) is an example of writing +//! - [`wasm-example`](https://github.com/pezkuwichain/subxt/tree/master/examples/wasm-example) is an example of writing //! a Rust app that contains a Yew based UI, uses Subxt to interact with a chain, and compiles to WASM in order to //! run entirely in the browser. pub mod setup; diff --git a/subxt/src/book/setup/codegen.rs b/subxt/src/book/setup/codegen.rs index 57f8ec96a5..c459c1b43b 100644 --- a/subxt/src/book/setup/codegen.rs +++ b/subxt/src/book/setup/codegen.rs @@ -14,8 +14,8 @@ //! Using this macro looks something like: //! //! ```rust,no_run,standalone_crate -//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_tiny.scale")] -//! pub mod polkadot {} +//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_tiny.scale")] +//! pub mod pezkuwi {} //! ``` //! //! The macro takes a path to some node metadata, and uses that to generate the interface you'll use diff --git a/subxt/src/book/setup/config.rs b/subxt/src/book/setup/config.rs index 4712f0bcda..2756e0cbc5 100644 --- a/subxt/src/book/setup/config.rs +++ b/subxt/src/book/setup/config.rs @@ -5,29 +5,29 @@ //! `frame_system::Config` trait. For most use cases, you can just use one of the following Configs //! shipped with Subxt: //! -//! - [`PolkadotConfig`](crate::config::PolkadotConfig) for talking to Polkadot nodes, and -//! - [`SubstrateConfig`](crate::config::SubstrateConfig) for talking to generic nodes built with -//! Substrate. +//! - [`PezkuwiConfig`](crate::config::PezkuwiConfig) for talking to Pezkuwi nodes, and +//! - [`BizinikiwConfig`](crate::config::BizinikiwConfig) for talking to generic nodes built with +//! Bizinikiwi. //! //! # How to create a Config for a custom chain? //! //! Some chains may use config that is not compatible with our -//! [`PolkadotConfig`](crate::config::PolkadotConfig) or -//! [`SubstrateConfig`](crate::config::SubstrateConfig). +//! [`PezkuwiConfig`](crate::config::PezkuwiConfig) or +//! [`BizinikiwConfig`](crate::config::BizinikiwConfig). //! //! We now walk through creating a custom [`crate::config::Config`] for a parachain, using the //! ["Statemint"](https://parachains.info/details/statemint) parachain, also known as "Asset Hub", as an example. It -//! is currently (as of 2023-06-26) deployed on Polkadot and [Kusama (as "Statemine")](https://parachains.info/details/statemine). +//! is currently (as of 2023-06-26) deployed on Pezkuwi and [Kusama (as "Statemine")](https://parachains.info/details/statemine). //! //! To construct a valid [`crate::config::Config`] implementation, we need to find out which types -//! to use for `AccountId`, `Hasher`, etc. For this, we need to take a look at the source code of Statemint, which is currently a part of the [Cumulus Github repository](https://github.com/paritytech/cumulus). -//! The crate defining the asset hub runtime can be found [here](https://github.com/paritytech/cumulus/tree/master/parachains/runtimes/assets/asset-hub-polkadot). +//! to use for `AccountId`, `Hasher`, etc. For this, we need to take a look at the source code of Statemint, which is currently a part of the [Pezpezcumulus Github repository](https://github.com/pezkuwichain/pezcumulus). +//! The crate defining the asset hub runtime can be found [here](https://github.com/pezkuwichain/pezcumulus/tree/master/parachains/runtimes/assets/asset-hub-pezkuwi). //! //! ## `AccountId`, `Hash`, `Hasher` and `Header` //! //! For these config types, we need to find out where the parachain runtime implements the //! `frame_system::Config` trait. Look for a code fragment like `impl frame_system::Config for -//! Runtime { ... }` In the source code. For Statemint it looks like [this](https://github.com/paritytech/cumulus/blob/e2b7ad2061824f490c08df27a922c64f50accd6b/parachains/runtimes/assets/asset-hub-polkadot/src/lib.rs#L179) +//! Runtime { ... }` In the source code. For Statemint it looks like [this](https://github.com/pezkuwichain/pezcumulus/blob/e2b7ad2061824f490c08df27a922c64f50accd6b/parachains/runtimes/assets/asset-hub-pezkuwi/src/lib.rs#L179) //! at the time of writing. The `AccountId`, `Hash` and `Header` types of the [frame_system::pallet::Config](https://docs.rs/frame-system/latest/frame_system/pallet/trait.Config.html) //! correspond to the ones we want to use in our Subxt [crate::Config]. In the Case of Statemint //! (Asset Hub) they are: @@ -38,36 +38,36 @@ //! `sp_runtime::traits::BlakeTwo256` //! - Header: `sp_runtime::generic::Header` //! -//! Subxt has its own versions of some of these types in order to avoid needing to pull in Substrate +//! Subxt has its own versions of some of these types in order to avoid needing to pull in Bizinikiwi //! dependencies: //! //! - `sp_core::crypto::AccountId32` can be swapped with [`crate::utils::AccountId32`]. //! - `sp_core::H256` is a re-export which subxt also provides as -//! [`crate::config::substrate::H256`]. +//! [`crate::config::bizinikiwi::H256`]. //! - `sp_runtime::traits::BlakeTwo256` can be swapped with -//! [`crate::config::substrate::BlakeTwo256`]. +//! [`crate::config::bizinikiwi::BlakeTwo256`]. //! - `sp_runtime::generic::Header` can be swapped with -//! [`crate::config::substrate::SubstrateHeader`]. +//! [`crate::config::bizinikiwi::BizinikiwiHeader`]. //! //! Having a look at how those types are implemented can give some clues as to how to implement //! other custom types that you may need to use as part of your config. //! //! ## `Address`, `Signature` //! -//! A Substrate runtime is typically constructed by using the [frame_support::construct_runtime](https://docs.rs/frame-support/latest/frame_support/macro.construct_runtime.html) macro. +//! A Bizinikiwi runtime is typically constructed by using the [frame_support::construct_runtime](https://docs.rs/frame-support/latest/frame_support/macro.construct_runtime.html) macro. //! In this macro, we need to specify the type of an `UncheckedExtrinsic`. Most of the time, the //! `UncheckedExtrinsic` will be of the type `sp_runtime::generic::UncheckedExtrinsic`. The generic parameters `Address` and `Signature` //! specified when declaring the `UncheckedExtrinsic` type are the types for `Address` and //! `Signature` we should use with our [crate::Config] implementation. This information can //! also be obtained from the metadata (see [`frame_metadata::v15::ExtrinsicMetadata`]). In case of -//! Statemint (Polkadot Asset Hub) we see the following types being used in `UncheckedExtrinsic`: +//! Statemint (Pezkuwi Asset Hub) we see the following types being used in `UncheckedExtrinsic`: //! //! - Address: `sp_runtime::MultiAddress` //! - Signature: `sp_runtime::MultiSignature` //! //! As above, Subxt has its own versions of these types that can be used instead to avoid pulling in -//! Substrate dependencies. Using the Subxt versions also makes interacting with generated code +//! Bizinikiwi dependencies. Using the Subxt versions also makes interacting with generated code //! (which uses them in some places) a little nicer: //! //! - `sp_runtime::MultiAddress` can be swapped with [`crate::utils::MultiAddress`]. @@ -111,7 +111,7 @@ //! metadata (see [`frame_metadata::v15::SignedExtensionMetadata`]). //! //! For statemint, the transaction extensions look like -//! [this](https://github.com/paritytech/cumulus/blob/d4bb2215bb28ee05159c4c7df1b3435177b5bf4e/parachains/runtimes/assets/asset-hub-polkadot/src/lib.rs#L786): +//! [this](https://github.com/pezkuwichain/pezcumulus/blob/d4bb2215bb28ee05159c4c7df1b3435177b5bf4e/parachains/runtimes/assets/asset-hub-pezkuwi/src/lib.rs#L786): //! //! ```rust,ignore //! pub type SignedExtra = ( diff --git a/subxt/src/book/usage/blocks.rs b/subxt/src/book/usage/blocks.rs index bc36587504..8ef13b0c60 100644 --- a/subxt/src/book/usage/blocks.rs +++ b/subxt/src/book/usage/blocks.rs @@ -67,7 +67,7 @@ //! If you are only interested in finding specific extrinsics in a block, you can also [iterate over all of them](crate::blocks::Extrinsics::find), //! get only [the first one](crate::blocks::Extrinsics::find_first), or [the last one](crate::blocks::Extrinsics::find_last). //! -//! The following example monitors `TransferKeepAlive` extrinsics on the Polkadot network. +//! The following example monitors `TransferKeepAlive` extrinsics on the Pezkuwi network. //! We statically decode them and access the [tip](crate::blocks::ExtrinsicTransactionExtensions::tip()) and //! [account nonce](crate::blocks::ExtrinsicTransactionExtensions::nonce()) transaction extensions. //! ```rust,ignore @@ -80,9 +80,9 @@ //! have access to a statically generated interface module that contains the relevant Rust types. You can //! [decode ExtrinsicDetails dynamically](crate::blocks::ExtrinsicDetails::decode_as_fields()), which gives //! you access to it's fields as a [scale value composite](scale_value::Composite). The following example -//! looks for signed extrinsics on the Polkadot network and retrieves their pallet name, variant name, data +//! looks for signed extrinsics on the Pezkuwi network and retrieves their pallet name, variant name, data //! fields and transaction extensions dynamically. Notice how we do not need to use code generation via the -//! subxt macro. The only fixed component we provide is the [PolkadotConfig](crate::config::PolkadotConfig). +//! subxt macro. The only fixed component we provide is the [PezkuwiConfig](crate::config::PezkuwiConfig). //! Other than that it works in a chain-agnostic way: //! ```rust,ignore #![doc = include_str!("../../../examples/block_decoding_dynamic.rs")] diff --git a/subxt/src/book/usage/constants.rs b/subxt/src/book/usage/constants.rs index 2cd0ec6063..ae43e07164 100644 --- a/subxt/src/book/usage/constants.rs +++ b/subxt/src/book/usage/constants.rs @@ -16,10 +16,10 @@ //! We can use the statically generated interface to build constant queries: //! //! ```rust,no_run,standalone_crate -//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale")] -//! pub mod polkadot {} +//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale")] +//! pub mod pezkuwi {} //! -//! let constant_query = polkadot::constants().system().block_length(); +//! let constant_query = pezkuwi::constants().system().block_length(); //! ``` //! //! Alternately, we can dynamically construct a constant query. A dynamic query needs the return diff --git a/subxt/src/book/usage/custom_values.rs b/subxt/src/book/usage/custom_values.rs index be27f6993f..8198c38e8b 100644 --- a/subxt/src/book/usage/custom_values.rs +++ b/subxt/src/book/usage/custom_values.rs @@ -4,7 +4,7 @@ //! # Custom Values //! -//! Substrate-based chains can expose custom values in their metadata. +//! Bizinikiwi-based chains can expose custom values in their metadata. //! Each of these values: //! //! - can be accessed by a unique __name__. @@ -29,10 +29,10 @@ //! Dynamically accessing a custom value using a [`str`] to select which one: //! //! ```rust,ignore -//! use pezkuwi_subxt::{OnlineClient, PolkadotConfig, ext::scale_decode::DecodeAsType}; +//! use pezkuwi_subxt::{OnlineClient, PezkuwiConfig, ext::scale_decode::DecodeAsType}; //! use pezkuwi_subxt::dynamic::Value; //! -//! let api = OnlineClient::::new().await?; +//! let api = OnlineClient::::new().await?; //! let custom_value_client = api.custom_values(); //! let foo: Value = custom_value_client.at("foo")?; //! ``` @@ -40,7 +40,7 @@ //! Use the [`dynamic`](crate::custom_values::dynamic) function to select the return type: //! //! ```rust,ignore -//! use pezkuwi_subxt::{OnlineClient, PolkadotConfig, ext::scale_decode::DecodeAsType}; +//! use pezkuwi_subxt::{OnlineClient, PezkuwiConfig, ext::scale_decode::DecodeAsType}; //! //! #[derive(Decode, DecodeAsType, Debug)] //! struct Foo { @@ -48,7 +48,7 @@ //! b: bool, //! } //! -//! let api = OnlineClient::::new().await?; +//! let api = OnlineClient::::new().await?; //! let custom_value_client = api.custom_values(); //! let custom_value_addr = pezkuwi_subxt::custom_values::dynamic::("foo"); //! let foo: Foo = custom_value_client.at(&custom_value_addr)?; @@ -62,7 +62,7 @@ //! //! let static_address = interface::custom().foo(); //! -//! let api = OnlineClient::::new().await?; +//! let api = OnlineClient::::new().await?; //! let custom_value_client = api.custom_values(); //! //! // Now the `at()` function already decodes the value into the Foo type: diff --git a/subxt/src/book/usage/events.rs b/subxt/src/book/usage/events.rs index 9e63901b67..1854634741 100644 --- a/subxt/src/book/usage/events.rs +++ b/subxt/src/book/usage/events.rs @@ -24,10 +24,10 @@ //! # #[tokio::main] //! # async fn main() -> Result<(), Box> { //! use pezkuwi_subxt::client::OnlineClient; -//! use pezkuwi_subxt::config::PolkadotConfig; +//! use pezkuwi_subxt::config::PezkuwiConfig; //! //! // Create client: -//! let client = OnlineClient::::new().await?; +//! let client = OnlineClient::::new().await?; //! //! // Get events from the latest block (use .at() to specify a block hash): //! let events = client.blocks().at_latest().await?.events().await?; diff --git a/subxt/src/book/usage/light_client.rs b/subxt/src/book/usage/light_client.rs index 7821638fee..4438a32c76 100644 --- a/subxt/src/book/usage/light_client.rs +++ b/subxt/src/book/usage/light_client.rs @@ -37,9 +37,9 @@ //! ### Connecting to a local node //! //! This example connects to a local chain and submits a transaction. To run this, you first need -//! to have a local polkadot node running using the following command: +//! to have a local pezkuwi node running using the following command: //! ```text -//! polkadot --dev --node-key 0000000000000000000000000000000000000000000000000000000000000001 +//! pezkuwi --dev --node-key 0000000000000000000000000000000000000000000000000000000000000001 //! ``` //! //! Then, the following code will download a chain spec from this local node, alter the bootnodes diff --git a/subxt/src/book/usage/runtime_apis.rs b/subxt/src/book/usage/runtime_apis.rs index 8808289aa8..a5582c610a 100644 --- a/subxt/src/book/usage/runtime_apis.rs +++ b/subxt/src/book/usage/runtime_apis.rs @@ -22,10 +22,10 @@ //! We can use the statically generated interface to build runtime calls: //! //! ```rust,no_run,standalone_crate -//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -//! pub mod polkadot {} +//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +//! pub mod pezkuwi {} //! -//! let runtime_call = polkadot::apis().metadata().metadata_versions(); +//! let runtime_call = pezkuwi::apis().metadata().metadata_versions(); //! ``` //! //! Alternately, we can dynamically construct a runtime call. The input type can be a tuple or diff --git a/subxt/src/book/usage/storage.rs b/subxt/src/book/usage/storage.rs index 627b89c391..1e88b0c44f 100644 --- a/subxt/src/book/usage/storage.rs +++ b/subxt/src/book/usage/storage.rs @@ -4,7 +4,7 @@ //! # Storage //! -//! A Substrate based chain can be seen as a key/value database which starts off at some initial +//! A Bizinikiwi based chain can be seen as a key/value database which starts off at some initial //! state, and is modified by the extrinsics in each block. This database is referred to as the //! node storage. With Subxt, you can query this key/value storage with the following steps: //! @@ -18,10 +18,10 @@ //! We can use the statically generated interface to build storage queries: //! //! ```rust,no_run,standalone_crate -//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -//! pub mod polkadot {} +//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +//! pub mod pezkuwi {} //! -//! let storage_query = polkadot::storage().system().account(); +//! let storage_query = pezkuwi::storage().system().account(); //! ``` //! //! Alternately, we can dynamically construct a storage query. A dynamic query needs the input diff --git a/subxt/src/book/usage/transactions.rs b/subxt/src/book/usage/transactions.rs index 2e872acb80..c4403f920f 100644 --- a/subxt/src/book/usage/transactions.rs +++ b/subxt/src/book/usage/transactions.rs @@ -26,11 +26,11 @@ //! We can use the statically generated interface to build transaction payloads: //! //! ```rust,no_run,standalone_crate -//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata_small.scale")] -//! pub mod polkadot {} +//! #[pezkuwi_subxt::subxt(runtime_metadata_path = "../artifacts/pezkuwi_metadata_small.scale")] +//! pub mod pezkuwi {} //! //! let remark = "Hello there".as_bytes().to_vec(); -//! let tx_payload = polkadot::tx().system().remark(remark); +//! let tx_payload = pezkuwi::tx().system().remark(remark); //! ``` //! //! > If you're not sure what types to import and use to build a given payload, you can use the @@ -73,18 +73,18 @@ //! pattern. //! //! Going for 1 leads to fewer dependencies being imported and WASM compatibility out of the box via -//! the `web` feature flag. Going for 2 is useful if you're already using the Substrate dependencies +//! the `web` feature flag. Going for 2 is useful if you're already using the Bizinikiwi dependencies //! or need additional signing algorithms that `pezkuwi_subxt_signer` doesn't support, and don't //! care about WASM compatibility. //! //! Because 2 is more complex and require more code, we'll focus on 1 here. -//! For 2, see the example in `subxt/examples/substrate_compat_signer.rs` how +//! For 2, see the example in `subxt/examples/bizinikiwi_compat_signer.rs` how //! you can integrate things like sp_core's signer in subxt. //! //! Let's go through how to create a signer using the `pezkuwi_subxt_signer` crate: //! //! ```rust,standalone_crate -//! use pezkuwi_subxt::config::PolkadotConfig; +//! use pezkuwi_subxt::config::PezkuwiConfig; //! use std::str::FromStr; //! //! use pezkuwi_subxt_signer::{SecretUri, sr25519}; @@ -105,11 +105,11 @@ //! # #[tokio::main] //! # async fn main() -> Result<(), Box> { //! use pezkuwi_subxt::client::OnlineClient; -//! use pezkuwi_subxt::config::PolkadotConfig; +//! use pezkuwi_subxt::config::PezkuwiConfig; //! use pezkuwi_subxt::dynamic::Value; //! //! // Create client: -//! let client = OnlineClient::::new().await?; +//! let client = OnlineClient::::new().await?; //! //! // Create a dummy tx payload to sign: //! let payload = pezkuwi_subxt::dynamic::tx("System", "remark", vec![ diff --git a/subxt/src/client/online_client.rs b/subxt/src/client/online_client.rs index a9d1b9c273..8b5308f440 100644 --- a/subxt/src/client/online_client.rs +++ b/subxt/src/client/online_client.rs @@ -170,7 +170,7 @@ impl OnlineClient { }) } - /// Fetch the metadata from substrate using the runtime API. + /// Fetch the metadata from bizinikiwi using the runtime API. async fn fetch_metadata( backend: &dyn Backend, block_hash: HashFor, @@ -219,9 +219,9 @@ impl OnlineClient { /// ```rust,no_run,standalone_crate /// # #[tokio::main] /// # async fn main() { - /// use pezkuwi_subxt::{ OnlineClient, PolkadotConfig }; + /// use pezkuwi_subxt::{ OnlineClient, PezkuwiConfig }; /// - /// let client = OnlineClient::::new().await.unwrap(); + /// let client = OnlineClient::::new().await.unwrap(); /// /// // high level API. /// @@ -437,7 +437,7 @@ impl ClientRuntimeUpdater { let update = runtime_version_stream.next().await?; // This only fails if received the runtime version is the same the current runtime - // version which might occur because that runtime subscriptions in substrate sends + // version which might occur because that runtime subscriptions in bizinikiwi sends // out the initial value when they created and not only when runtime upgrades occurs. // Thus, fine to ignore here as it strictly speaking isn't really an error let _ = self.apply_update(update); @@ -532,7 +532,7 @@ async fn wait_runtime_upgrade_in_finalized_block( let value = client_at .entry(addr) // The storage `system::lastRuntimeUpgrade` should always exist. - // + // .map_err(|_| RuntimeUpdaterError::CantFindSystemLastRuntimeUpgrade)? .fetch(()) .await diff --git a/subxt/src/custom_values/custom_values_client.rs b/subxt/src/custom_values/custom_values_client.rs index cdda84a0ef..d28f57cf3b 100644 --- a/subxt/src/custom_values/custom_values_client.rs +++ b/subxt/src/custom_values/custom_values_client.rs @@ -45,7 +45,7 @@ impl> CustomValuesClient { #[cfg(test)] mod tests { use crate::{ - Metadata, OfflineClient, SubstrateConfig, + Metadata, OfflineClient, BizinikiwConfig, custom_values::{self, CustomValuesClient}, }; use codec::Encode; @@ -102,7 +102,7 @@ mod tests { #[test] fn test_decoding() { - let client = OfflineClient::::new( + let client = OfflineClient::::new( Default::default(), RuntimeVersion { spec_version: 0, transaction_version: 0 }, mock_metadata(), diff --git a/subxt/src/lib.rs b/subxt/src/lib.rs index 2763ce231b..8103cf0624 100644 --- a/subxt/src/lib.rs +++ b/subxt/src/lib.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -//! Subxt is a library for interacting with Substrate based nodes. Using it looks something like +//! Subxt is a library for interacting with Bizinikiwi based nodes. Using it looks something like //! this: //! //! ```rust,ignore @@ -54,16 +54,16 @@ pub mod view_functions; /// This module provides a [`Config`] type, which is used to define various /// types that are important in order to speak to a particular chain. -/// [`SubstrateConfig`] provides a default set of these types suitable for the -/// default Substrate node implementation, and [`PolkadotConfig`] for a -/// Polkadot node. +/// [`BizinikiwConfig`] provides a default set of these types suitable for the +/// default Bizinikiwi node implementation, and [`PezkuwiConfig`] for a +/// Pezkuwi node. pub mod config { pub use pezkuwi_subxt_core::{ config::{ Config, DefaultExtrinsicParams, DefaultExtrinsicParamsBuilder, ExtrinsicParams, - ExtrinsicParamsEncoder, Hash, HashFor, Hasher, Header, PolkadotConfig, - PolkadotExtrinsicParams, SubstrateConfig, SubstrateExtrinsicParams, - TransactionExtension, polkadot, substrate, transaction_extensions, + ExtrinsicParamsEncoder, Hash, HashFor, Hasher, Header, PezkuwiConfig, + PezkuwiExtrinsicParams, BizinikiwConfig, BizinikiwiExtrinsicParams, + TransactionExtension, pezkuwi, bizinikiwi, transaction_extensions, }, error::ExtrinsicParamsError, }; @@ -88,7 +88,7 @@ cfg_unstable_light_client! { // but leave most types behind their respective modules. pub use crate::{ client::{OfflineClient, OnlineClient}, - config::{Config, PolkadotConfig, SubstrateConfig}, + config::{Config, PezkuwiConfig, BizinikiwConfig}, error::Error, metadata::Metadata, }; @@ -110,7 +110,7 @@ pub mod ext { } } -/// Generate a strongly typed API for interacting with a Substrate runtime from its metadata of +/// Generate a strongly typed API for interacting with a Bizinikiwi runtime from its metadata of /// WASM. /// /// # Metadata @@ -122,7 +122,7 @@ pub mod ext { /// # Install the CLI tool: /// cargo install subxt-cli /// # Use it to download metadata (in this case, from a node running locally) -/// subxt metadata > polkadot_metadata.scale +/// subxt metadata > pezkuwi_metadata.scale /// ``` /// /// Run `subxt metadata --help` for more options. @@ -146,9 +146,9 @@ pub mod ext { /// /// ```rust,no_run,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// You can use the `$OUT_DIR` placeholder in the path to reference metadata generated at build @@ -158,7 +158,7 @@ pub mod ext { /// #[pezkuwi_subxt::subxt( /// runtime_metadata_path = "$OUT_DIR/metadata.scale", /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// ## Using a WASM runtime via `runtime_path = "..."` @@ -169,9 +169,9 @@ pub mod ext { /// /// ```rust,ignore /// #[pezkuwi_subxt::subxt( -/// runtime_path = "../artifacts/westend_runtime.wasm", +/// runtime_path = "../artifacts/zagros_runtime.wasm", /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// You can also use the `$OUT_DIR` placeholder in the path to reference WASM files generated @@ -181,7 +181,7 @@ pub mod ext { /// #[pezkuwi_subxt::subxt( /// runtime_path = "$OUT_DIR/runtime.wasm", /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// ## Connecting to a node to download metadata via `runtime_metadata_insecure_url = "..."` @@ -199,9 +199,9 @@ pub mod ext { /// /// ```rust,ignore /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_insecure_url = "wss://rpc.polkadot.io:443" +/// runtime_metadata_insecure_url = "wss://rpc.pezkuwi.io:443" /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// # Configuration @@ -217,10 +217,10 @@ pub mod ext { /// # pub mod path { pub mod to { pub use pezkuwi_subxt_core; } } /// # fn main() {} /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// crate = "crate::path::to::pezkuwi_subxt_core" /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// This is useful if you write a library which uses this macro, but don't want to force users @@ -233,10 +233,10 @@ pub mod ext { /// /// ```rust,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// substitute_type(path = "sp_arithmetic::per_things::Perbill", with = "crate::Foo") /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// /// # #[derive( /// # scale_encode::EncodeAsType, @@ -271,13 +271,13 @@ pub mod ext { /// /// ```rust,no_run,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// substitute_type( /// path = "sp_runtime::multiaddress::MultiAddress", /// with = "::pezkuwi_subxt::utils::Static>" /// ) /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// The above is also an example of using the [`crate::utils::Static`] type to wrap some type @@ -292,10 +292,10 @@ pub mod ext { /// /// ```rust,no_run,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// derive_for_all_types = "Eq, PartialEq" /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// Any substituted types (including the default substitutes) must also implement these traits @@ -309,12 +309,12 @@ pub mod ext { /// /// ```rust,no_run,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// derive_for_all_types = "Eq, PartialEq", /// derive_for_type(path = "frame_support::PalletId", derive = "Ord, PartialOrd"), /// derive_for_type(path = "sp_runtime::ModuleError", derive = "Hash"), /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// ## `generate_docs` @@ -324,10 +324,10 @@ pub mod ext { /// /// ```rust,no_run,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// generate_docs /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// ## `runtime_types_only` @@ -338,10 +338,10 @@ pub mod ext { /// /// ```rust,no_run,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// runtime_types_only /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// ## `no_default_derives` @@ -351,12 +351,12 @@ pub mod ext { /// /// ```rust,no_run,standalone_crate /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale", +/// runtime_metadata_path = "../artifacts/pezkuwi_metadata_full.scale", /// runtime_types_only, /// no_default_derives, /// derive_for_all_types="codec::Encode, codec::Decode" /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` /// /// **Note**: At the moment, you must derive at least one of `codec::Encode` or `codec::Decode` @@ -375,9 +375,9 @@ pub mod ext { /// /// ```rust,ignore /// #[pezkuwi_subxt::subxt( -/// runtime_metadata_insecure_url = "wss://rpc.polkadot.io:443", +/// runtime_metadata_insecure_url = "wss://rpc.pezkuwi.io:443", /// unstable_metadata /// )] -/// mod polkadot {} +/// mod pezkuwi {} /// ``` pub use pezkuwi_subxt_macro::subxt; diff --git a/subxt/src/tx/tx_client.rs b/subxt/src/tx/tx_client.rs index 799ea654a8..4718f13192 100644 --- a/subxt/src/tx/tx_client.rs +++ b/subxt/src/tx/tx_client.rs @@ -557,7 +557,7 @@ where ) -> Result { let block_hash = at.into().hash(); - // Approach taken from https://github.com/paritytech/json-rpc-interface-spec/issues/55. + // Approach taken from https://github.com/pezkuwichain/json-rpc-interface-spec/issues/55. let mut params = Vec::with_capacity(8 + self.encoded().len() + 8); 2u8.encode_to(&mut params); params.extend(self.encoded().iter()); @@ -586,7 +586,7 @@ where .await .map_err(ExtrinsicError::CannotGetLatestFinalizedBlock)?; - // destructuring RuntimeDispatchInfo, see type information + // destructuring RuntimeDispatchInfo, see type information // data layout: {weight_ref_time: Compact, weight_proof_size: Compact, class: u8, // partial_fee: u128} let (_, _, _, partial_fee) = self @@ -648,7 +648,7 @@ impl ValidationResult { #[allow(clippy::get_first)] fn try_from_bytes(bytes: Vec) -> Result { // TaggedTransactionQueue_validate_transaction returns this: - // https://github.com/paritytech/substrate/blob/0cdf7029017b70b7c83c21a4dc0aa1020e7914f6/primitives/runtime/src/transaction_validity.rs#L210 + // https://github.com/pezkuwichain/bizinikiwi/blob/0cdf7029017b70b7c83c21a4dc0aa1020e7914f6/primitives/runtime/src/transaction_validity.rs#L210 // We copy some of the inner types and put the three states (valid, invalid, unknown) into // one enum, because from our perspective, the call was successful regardless. if bytes.get(0) == Some(&0) { @@ -708,7 +708,7 @@ pub struct TransactionValid { /// /// A list of tags this transaction provides. Successfully importing the transaction /// will enable other transactions that depend on (require) those tags to be included as well. - /// Provided and required tags allow Substrate to build a dependency graph of transactions + /// Provided and required tags allow Bizinikiwi to build a dependency graph of transactions /// and import them in the right (linear) order. pub provides: Vec>, /// Transaction longevity @@ -761,7 +761,7 @@ pub enum TransactionInvalid { /// # Possible causes /// /// For `FRAME`-based runtimes this would be caused by `current block number` - /// - Era::birth block number > BlockHashCount`. (e.g. in Polkadot `BlockHashCount` = 2400, so a + /// - Era::birth block number > BlockHashCount`. (e.g. in Pezkuwi `BlockHashCount` = 2400, so a /// transaction with birth block number 1337 would be valid up until block number 1337 + 2400, /// after which point the transaction would be considered to have an ancient birth block.) AncientBirthBlock, diff --git a/subxt/src/tx/tx_progress.rs b/subxt/src/tx/tx_progress.rs index 05a2ce3172..088ab6ec07 100644 --- a/subxt/src/tx/tx_progress.rs +++ b/subxt/src/tx/tx_progress.rs @@ -347,22 +347,22 @@ mod test { use pezkuwi_subxt_core::client::RuntimeVersion; use crate::{ - SubstrateConfig, + BizinikiwConfig, backend::{StreamOfResults, TransactionStatus}, client::{OfflineClientT, OnlineClientT}, config::{Config, HashFor}, tx::TxProgress, }; - type MockTxProgress = TxProgress; - type MockHash = HashFor; - type MockSubstrateTxStatus = TransactionStatus; + type MockTxProgress = TxProgress; + type MockHash = HashFor; + type MockBizinikiwiTxStatus = TransactionStatus; /// a mock client to satisfy trait bounds in tests #[derive(Clone, Debug)] struct MockClient; - impl OfflineClientT for MockClient { + impl OfflineClientT for MockClient { fn metadata(&self) -> crate::Metadata { unimplemented!("just a mock impl to satisfy trait bounds") } @@ -375,17 +375,17 @@ mod test { unimplemented!("just a mock impl to satisfy trait bounds") } - fn hasher(&self) -> ::Hasher { + fn hasher(&self) -> ::Hasher { unimplemented!("just a mock impl to satisfy trait bounds") } - fn client_state(&self) -> pezkuwi_subxt_core::client::ClientState { + fn client_state(&self) -> pezkuwi_subxt_core::client::ClientState { unimplemented!("just a mock impl to satisfy trait bounds") } } - impl OnlineClientT for MockClient { - fn backend(&self) -> &dyn crate::backend::Backend { + impl OnlineClientT for MockClient { + fn backend(&self) -> &dyn crate::backend::Backend { unimplemented!("just a mock impl to satisfy trait bounds") } } @@ -393,8 +393,8 @@ mod test { #[tokio::test] async fn wait_for_finalized_returns_err_when_error() { let tx_progress = mock_tx_progress(vec![ - MockSubstrateTxStatus::Broadcasted, - MockSubstrateTxStatus::Error { message: "err".into() }, + MockBizinikiwiTxStatus::Broadcasted, + MockBizinikiwiTxStatus::Error { message: "err".into() }, ]); let finalized_result = tx_progress.wait_for_finalized().await; assert!(matches!( @@ -406,8 +406,8 @@ mod test { #[tokio::test] async fn wait_for_finalized_returns_err_when_invalid() { let tx_progress = mock_tx_progress(vec![ - MockSubstrateTxStatus::Broadcasted, - MockSubstrateTxStatus::Invalid { message: "err".into() }, + MockBizinikiwiTxStatus::Broadcasted, + MockBizinikiwiTxStatus::Invalid { message: "err".into() }, ]); let finalized_result = tx_progress.wait_for_finalized().await; assert!(matches!( @@ -419,8 +419,8 @@ mod test { #[tokio::test] async fn wait_for_finalized_returns_err_when_dropped() { let tx_progress = mock_tx_progress(vec![ - MockSubstrateTxStatus::Broadcasted, - MockSubstrateTxStatus::Dropped { message: "err".into() }, + MockBizinikiwiTxStatus::Broadcasted, + MockBizinikiwiTxStatus::Dropped { message: "err".into() }, ]); let finalized_result = tx_progress.wait_for_finalized().await; assert!(matches!( @@ -429,17 +429,17 @@ mod test { )); } - fn mock_tx_progress(statuses: Vec) -> MockTxProgress { - let sub = create_substrate_tx_status_subscription(statuses); + fn mock_tx_progress(statuses: Vec) -> MockTxProgress { + let sub = create_bizinikiwi_tx_status_subscription(statuses); TxProgress::new(sub, MockClient, Default::default()) } - fn create_substrate_tx_status_subscription( - elements: Vec, - ) -> StreamOfResults { + fn create_bizinikiwi_tx_status_subscription( + elements: Vec, + ) -> StreamOfResults { let results = elements.into_iter().map(Ok); let stream = Box::pin(futures::stream::iter(results)); - let sub: StreamOfResults = StreamOfResults::new(stream); + let sub: StreamOfResults = StreamOfResults::new(stream); sub } } diff --git a/testing/integration-tests/Cargo.toml b/testing/integration-tests/Cargo.toml index 5349884c37..17a1f71829 100644 --- a/testing/integration-tests/Cargo.toml +++ b/testing/integration-tests/Cargo.toml @@ -10,7 +10,7 @@ license.workspace = true repository.workspace = true documentation.workspace = true homepage.workspace = true -description = "Subxt integration tests that rely on the Substrate binary" +description = "Subxt integration tests that rely on the Bizinikiwi binary" [features] default = [] @@ -42,7 +42,7 @@ regex = { workspace = true } scale-info = { workspace = true, features = ["bit-vec"] } scale-value = { workspace = true } serde = { workspace = true } -substrate-runner = { workspace = true } +bizinikiwi-runner = { workspace = true } subxt-test-macro = { path = "subxt-test-macro" } syn = { workspace = true } test-runtime = { workspace = true } diff --git a/testing/integration-tests/src/full_client/blocks.rs b/testing/integration-tests/src/full_client/blocks.rs index b9cf6ce09e..f094a973f0 100644 --- a/testing/integration-tests/src/full_client/blocks.rs +++ b/testing/integration-tests/src/full_client/blocks.rs @@ -12,7 +12,7 @@ use crate::utils::node_runtime; #[cfg(fullclient)] use pezkuwi_subxt::{ config::{ - DefaultExtrinsicParamsBuilder, SubstrateConfig, + DefaultExtrinsicParamsBuilder, BizinikiwConfig, transaction_extensions::{ChargeAssetTxPayment, CheckMortality, CheckNonce}, }, utils::Era, @@ -268,9 +268,9 @@ async fn fetch_block_and_decode_extrinsic_details() { /// A helper function to submit a transaction with some params and then get it back in a block, /// so that we can test the decoding of it. async fn submit_extrinsic_and_get_it_back( - api: &pezkuwi_subxt::OnlineClient, - params: pezkuwi_subxt::config::DefaultExtrinsicParamsBuilder, -) -> pezkuwi_subxt::blocks::ExtrinsicDetails> { + api: &pezkuwi_subxt::OnlineClient, + params: pezkuwi_subxt::config::DefaultExtrinsicParamsBuilder, +) -> pezkuwi_subxt::blocks::ExtrinsicDetails> { let alice = dev::alice(); let bob = dev::bob(); @@ -313,7 +313,7 @@ async fn decode_transaction_extensions_from_blocks() { let nonce1_static = extensions1.find::().unwrap().unwrap(); let tip1 = extensions1.tip().unwrap(); let tip1_static: u128 = extensions1 - .find::>() + .find::>() .unwrap() .unwrap() .tip(); @@ -326,7 +326,7 @@ async fn decode_transaction_extensions_from_blocks() { let nonce2_static = extensions2.find::().unwrap().unwrap(); let tip2 = extensions2.tip().unwrap(); let tip2_static: u128 = extensions2 - .find::>() + .find::>() .unwrap() .unwrap() .tip(); @@ -393,7 +393,7 @@ async fn decode_block_mortality() { let mortality = tx .transaction_extensions() .unwrap() - .find::>() + .find::>() .unwrap() .unwrap(); @@ -411,7 +411,7 @@ async fn decode_block_mortality() { let mortality = tx .transaction_extensions() .unwrap() - .find::>() + .find::>() .unwrap() .unwrap(); @@ -429,7 +429,7 @@ async fn decode_block_mortality() { let mortality = tx .transaction_extensions() .unwrap() - .find::>() + .find::>() .unwrap() .unwrap(); diff --git a/testing/integration-tests/src/full_client/client/mod.rs b/testing/integration-tests/src/full_client/client/mod.rs index 2ca015fa60..ac9c467afa 100644 --- a/testing/integration-tests/src/full_client/client/mod.rs +++ b/testing/integration-tests/src/full_client/client/mod.rs @@ -192,7 +192,7 @@ async fn external_signing() { #[cfg(fullclient)] // TODO: Investigate and fix this test failure when using the ChainHeadBackend. -// (https://github.com/paritytech/subxt/issues/1308) +// (https://github.com/pezkuwichain/subxt/issues/1308) #[cfg(legacy_backend)] #[subxt_test] async fn submit_large_extrinsic() { @@ -267,7 +267,7 @@ async fn decode_a_module_error() { } #[subxt_test] -async fn unsigned_extrinsic_is_same_shape_as_polkadotjs() { +async fn unsigned_extrinsic_is_same_shape_as_pezkuwijs() { let ctx = test_context().await; let api = ctx.client(); @@ -280,8 +280,8 @@ async fn unsigned_extrinsic_is_same_shape_as_polkadotjs() { let actual_tx_bytes = actual_tx.encoded(); // How these were obtained: - // - start local substrate node. - // - open polkadot.js UI in browser and point at local node. + // - start local bizinikiwi node. + // - open pezkuwi.js UI in browser and point at local node. // - open dev console (may need to refresh page now) and find the WS connection. // - create a balances.transferAllowDeath to ALICE (doesn't matter who from) with 12345 and "submit unsigned". // - find the submitAndWatchExtrinsic call in the WS connection to get these bytes: @@ -290,7 +290,7 @@ async fn unsigned_extrinsic_is_same_shape_as_polkadotjs() { ) .unwrap(); - // Make sure our encoding is the same as the encoding polkadot UI created. + // Make sure our encoding is the same as the encoding pezkuwi UI created. assert_eq!(actual_tx_bytes, expected_tx_bytes); } @@ -393,8 +393,8 @@ async fn partial_fee_estimate_correct() { // This test runs OK locally but fails sporadically in CI eg: // -// https://github.com/paritytech/subxt/actions/runs/13374953009/job/37353887719?pr=1910#step:7:178 -// https://github.com/paritytech/subxt/actions/runs/13385878645/job/37382498200#step:6:163 +// https://github.com/pezkuwichain/subxt/actions/runs/13374953009/job/37353887719?pr=1910#step:7:178 +// https://github.com/pezkuwichain/subxt/actions/runs/13385878645/job/37382498200#step:6:163 // // While those errors were timeouts, I also saw errors like "intersections size is 1". /* diff --git a/testing/integration-tests/src/full_client/codegen/mod.rs b/testing/integration-tests/src/full_client/codegen/mod.rs index 7c13ae97e7..4053517a28 100644 --- a/testing/integration-tests/src/full_client/codegen/mod.rs +++ b/testing/integration-tests/src/full_client/codegen/mod.rs @@ -8,10 +8,10 @@ /// Generate by running this at the root of the repository: /// /// ```text -/// cargo run --bin subxt -- codegen --file artifacts/polkadot_metadata_full.scale | rustfmt > testing/integration-tests/src/full_client/codegen/polkadot.rs +/// cargo run --bin subxt -- codegen --file artifacts/pezkuwi_metadata_full.scale | rustfmt > testing/integration-tests/src/full_client/codegen/pezkuwi.rs /// ``` #[rustfmt::skip] #[allow(clippy::all)] -mod polkadot; +mod pezkuwi; mod documentation; diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/pezkuwi.rs similarity index 97% rename from testing/integration-tests/src/full_client/codegen/polkadot.rs rename to testing/integration-tests/src/full_client/codegen/pezkuwi.rs index 461686536f..e6c3d2904c 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/pezkuwi.rs @@ -101,11 +101,11 @@ pub mod api { #[doc = r" The error type that is returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[doc = r" The outer event enum."] - pub type Event = runtime_types::rococo_runtime::RuntimeEvent; + pub type Event = runtime_types::pezkuwichain_runtime::RuntimeEvent; #[doc = r" The outer extrinsic enum."] - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; #[doc = r" The outer error enum represents the DispatchError's Module variant."] - pub type Error = runtime_types::rococo_runtime::RuntimeError; + pub type Error = runtime_types::pezkuwichain_runtime::RuntimeError; pub fn constants() -> ConstantsApi { ConstantsApi } @@ -194,7 +194,7 @@ pub mod api { pub mod core { use super::root_mod; use super::runtime_types; - #[doc = " The `Core` runtime api that every Substrate runtime needs to implement."] + #[doc = " The `Core` runtime api that every Bizinikiwi runtime needs to implement."] pub struct Core; impl Core { #[doc = " Returns the version of the runtime."] @@ -265,7 +265,7 @@ pub mod api { pub mod execute_block { use super::root_mod; use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: pezkuwichain_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ; pub mod output { use super::runtime_types; pub type Output = (); @@ -526,14 +526,14 @@ pub mod api { pub mod dry_run_call { use super::root_mod; use super::runtime_types; - pub type Origin = runtime_types::rococo_runtime::OriginCaller; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Origin = runtime_types::pezkuwichain_runtime::OriginCaller; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; pub type ResultXcmsVersion = ::core::primitive::u32; pub mod output { use super::runtime_types; pub type Output = ::core::result::Result< runtime_types::xcm_runtime_apis::dry_run::CallDryRunEffects< - runtime_types::rococo_runtime::RuntimeEvent, + runtime_types::pezkuwichain_runtime::RuntimeEvent, >, runtime_types::xcm_runtime_apis::dry_run::Error, >; @@ -548,7 +548,7 @@ pub mod api { use super::runtime_types; pub type Output = ::core::result::Result< runtime_types::xcm_runtime_apis::dry_run::XcmDryRunEffects< - runtime_types::rococo_runtime::RuntimeEvent, + runtime_types::pezkuwichain_runtime::RuntimeEvent, >, runtime_types::xcm_runtime_apis::dry_run::Error, >; @@ -783,7 +783,7 @@ pub mod api { pub mod apply_extrinsic { use super::root_mod; use super::runtime_types; - pub type Extrinsic = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; + pub type Extrinsic = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: pezkuwichain_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; pub mod output { use super::runtime_types; pub type Output = ::core::result::Result< @@ -807,13 +807,13 @@ pub mod api { pub type Inherent = runtime_types::sp_inherents::InherentData; pub mod output { use super::runtime_types; - pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ; + pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: pezkuwichain_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ; } } pub mod check_inherents { use super::root_mod; use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: LazyBlock < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: pezkuwichain_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > > ; pub type Data = runtime_types::sp_inherents::InherentData; pub mod output { use super::runtime_types; @@ -867,7 +867,7 @@ pub mod api { use super::runtime_types; pub type Source = runtime_types::sp_runtime::transaction_validity::TransactionSource; - pub type Tx = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; + pub type Tx = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: pezkuwichain_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; pub type BlockHash = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256; pub mod output { use super::runtime_types; @@ -1667,7 +1667,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::validator_app::Public, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, >; } } @@ -1679,10 +1679,10 @@ pub mod api { pub type Output = ( ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, >, >, - runtime_types::polkadot_primitives::v9::GroupRotationInfo< + runtime_types::pezkuwi_primitives::v9::GroupRotationInfo< ::core::primitive::u32, >, ); @@ -1694,7 +1694,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::CoreState< + runtime_types::pezkuwi_primitives::v9::CoreState< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, ::core::primitive::u32, >, @@ -1704,13 +1704,13 @@ pub mod api { pub mod persisted_validation_data { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Assumption = - runtime_types::polkadot_primitives::v9::OccupiedCoreAssumption; + runtime_types::pezkuwi_primitives::v9::OccupiedCoreAssumption; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v9::PersistedValidationData< + runtime_types::pezkuwi_primitives::v9::PersistedValidationData< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, ::core::primitive::u32, >, @@ -1720,19 +1720,19 @@ pub mod api { pub mod assumed_validation_data { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type ExpectedPersistedValidationDataHash = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256; pub mod output { use super::runtime_types; - pub type Output = :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v9 :: PersistedValidationData < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > ; + pub type Output = :: core :: option :: Option < (runtime_types :: pezkuwi_primitives :: v9 :: PersistedValidationData < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash ,) > ; } } pub mod check_validation_outputs { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Outputs = runtime_types::polkadot_primitives::v9::CandidateCommitments< + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type Outputs = runtime_types::pezkuwi_primitives::v9::CandidateCommitments< ::core::primitive::u32, >; pub mod output { @@ -1751,24 +1751,24 @@ pub mod api { pub mod validation_code { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Assumption = - runtime_types::polkadot_primitives::v9::OccupiedCoreAssumption; + runtime_types::pezkuwi_primitives::v9::OccupiedCoreAssumption; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode, >; } } pub mod candidate_pending_availability { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v9::CommittedCandidateReceiptV2< + runtime_types::pezkuwi_primitives::v9::CommittedCandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, >; @@ -1780,7 +1780,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::CandidateEvent< + runtime_types::pezkuwi_primitives::v9::CandidateEvent< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, >; @@ -1789,11 +1789,11 @@ pub mod api { pub mod dmq_contents { use super::root_mod; use super::runtime_types; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< + runtime_types::pezkuwi_core_primitives::InboundDownwardMessage< ::core::primitive::u32, >, >; @@ -1802,13 +1802,13 @@ pub mod api { pub mod inbound_hrmp_channels_contents { use super::root_mod; use super::runtime_types; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::KeyedVec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< + runtime_types::pezkuwi_core_primitives::InboundHrmpMessage< ::core::primitive::u32, >, >, @@ -1819,11 +1819,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Hash = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode, >; } } @@ -1833,7 +1833,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v9::ScrapedOnChainVotes< + runtime_types::pezkuwi_primitives::v9::ScrapedOnChainVotes< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, >; @@ -1846,15 +1846,15 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = - ::core::option::Option; + ::core::option::Option; } } pub mod submit_pvf_check_statement { use super::root_mod; use super::runtime_types; - pub type Stmt = runtime_types::polkadot_primitives::v9::PvfCheckStatement; + pub type Stmt = runtime_types::pezkuwi_primitives::v9::PvfCheckStatement; pub type Signature = - runtime_types::polkadot_primitives::v9::validator_app::Signature; + runtime_types::pezkuwi_primitives::v9::validator_app::Signature; pub mod output { use super::runtime_types; pub type Output = (); @@ -1865,18 +1865,18 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash > ; } } pub mod validation_code_hash { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Assumption = - runtime_types::polkadot_primitives::v9::OccupiedCoreAssumption; + runtime_types::pezkuwi_primitives::v9::OccupiedCoreAssumption; pub mod output { use super::runtime_types; - pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + pub type Output = :: core :: option :: Option < runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash > ; } } pub mod disputes { @@ -1886,8 +1886,8 @@ pub mod api { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v9::DisputeState< + runtime_types::pezkuwi_core_primitives::CandidateHash, + runtime_types::pezkuwi_primitives::v9::DisputeState< ::core::primitive::u32, >, )>; @@ -1900,7 +1900,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v9::executor_params::ExecutorParams, + runtime_types::pezkuwi_primitives::v9::executor_params::ExecutorParams, >; } } @@ -1911,8 +1911,8 @@ pub mod api { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v9::slashing::LegacyPendingSlashes, + runtime_types::pezkuwi_core_primitives::CandidateHash, + runtime_types::pezkuwi_primitives::v9::slashing::LegacyPendingSlashes, )>; } } @@ -1920,11 +1920,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type ValidatorId = - runtime_types::polkadot_primitives::v9::validator_app::Public; + runtime_types::pezkuwi_primitives::v9::validator_app::Public; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v9::slashing::OpaqueKeyOwnershipProof, + runtime_types::pezkuwi_primitives::v9::slashing::OpaqueKeyOwnershipProof, >; } } @@ -1932,9 +1932,9 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type DisputeProof = - runtime_types::polkadot_primitives::v9::slashing::DisputeProof; + runtime_types::pezkuwi_primitives::v9::slashing::DisputeProof; pub type KeyOwnershipProof = - runtime_types::polkadot_primitives::v9::slashing::OpaqueKeyOwnershipProof; + runtime_types::pezkuwi_primitives::v9::slashing::OpaqueKeyOwnershipProof; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option<()>; @@ -1952,11 +1952,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type RuntimeApiGeneratedName0 = - runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v9::async_backing::BackingState< + runtime_types::pezkuwi_primitives::v9::async_backing::BackingState< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, ::core::primitive::u32, >, @@ -1969,7 +1969,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_primitives::v9::async_backing::AsyncBackingParams; + runtime_types::pezkuwi_primitives::v9::async_backing::AsyncBackingParams; } } pub mod disabled_validators { @@ -1978,7 +1978,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, >; } } @@ -1998,7 +1998,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_primitives::v9::ApprovalVotingParams; + pub type Output = runtime_types::pezkuwi_primitives::v9::ApprovalVotingParams; } } pub mod claim_queue { @@ -2007,9 +2007,9 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::KeyedVec< - runtime_types::polkadot_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::CoreIndex, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >, >; } @@ -2017,11 +2017,11 @@ pub mod api { pub mod candidates_pending_availability { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::CommittedCandidateReceiptV2< + runtime_types::pezkuwi_primitives::v9::CommittedCandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, >; @@ -2038,11 +2038,11 @@ pub mod api { pub mod backing_constraints { use super::root_mod; use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v9::async_backing::Constraints< + runtime_types::pezkuwi_primitives::v9::async_backing::Constraints< ::core::primitive::u32, >, >; @@ -2062,7 +2062,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >; } } @@ -2073,8 +2073,8 @@ pub mod api { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v9::slashing::PendingSlashes, + runtime_types::pezkuwi_core_primitives::CandidateHash, + runtime_types::pezkuwi_primitives::v9::slashing::PendingSlashes, )>; } } @@ -3172,7 +3172,7 @@ pub mod api { pub mod query_info { use super::root_mod; use super::runtime_types; - pub type Uxt = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; + pub type Uxt = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: pezkuwichain_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; pub type Len = ::core::primitive::u32; pub mod output { use super::runtime_types; @@ -3186,7 +3186,7 @@ pub mod api { pub mod query_fee_details { use super::root_mod; use super::runtime_types; - pub type Uxt = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; + pub type Uxt = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: MultiAddress < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , () > , runtime_types :: pezkuwichain_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: authorize_call :: AuthorizeCall , runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash , runtime_types :: frame_system :: extensions :: weight_reclaim :: WeightReclaim ,) > ; pub type Len = ::core::primitive::u32; pub mod output { use super::runtime_types; @@ -5157,7 +5157,7 @@ pub mod api { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< runtime_types::frame_system::EventRecord< - runtime_types::rococo_runtime::RuntimeEvent, + runtime_types::pezkuwichain_runtime::RuntimeEvent, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, >; @@ -7934,7 +7934,7 @@ pub mod api { } pub mod held { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -7957,7 +7957,7 @@ pub mod api { } pub mod burned_held { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -7981,7 +7981,7 @@ pub mod api { } pub mod transfer_on_hold { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Source = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Dest = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; @@ -8006,7 +8006,7 @@ pub mod api { } pub mod transfer_and_hold { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Source = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Dest = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Transferred = ::core::primitive::u128; @@ -8030,7 +8030,7 @@ pub mod api { } pub mod released { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -8142,7 +8142,7 @@ pub mod api { #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] #[doc = ""] - #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn locks( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::storage::address::StaticAddress< @@ -8163,7 +8163,7 @@ pub mod api { } #[doc = " Named reserves on some account balances."] #[doc = ""] - #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn reserves( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::storage::address::StaticAddress< @@ -8282,7 +8282,7 @@ pub mod api { use super::runtime_types; pub type Output = runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::frame_support::traits::tokens::misc::IdAmount< - runtime_types::rococo_runtime::RuntimeHoldReason, + runtime_types::pezkuwichain_runtime::RuntimeHoldReason, ::core::primitive::u128, >, >; @@ -8333,7 +8333,7 @@ pub mod api { #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] #[doc = ""] - #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn max_locks( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::constants::address::StaticAddress< @@ -8352,7 +8352,7 @@ pub mod api { } #[doc = " The maximum number of named reserves that can exist on an account."] #[doc = ""] - #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn max_reserves( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::constants::address::StaticAddress< @@ -8420,7 +8420,7 @@ pub mod api { } pub mod set_parameter { use super::runtime_types; - pub type KeyValue = runtime_types::rococo_runtime::RuntimeParameters; + pub type KeyValue = runtime_types::pezkuwichain_runtime::RuntimeParameters; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SetParameter { const PALLET: &'static str = "Parameters"; @@ -8472,11 +8472,11 @@ pub mod api { } pub mod updated { use super::runtime_types; - pub type Key = runtime_types::rococo_runtime::RuntimeParametersKey; + pub type Key = runtime_types::pezkuwichain_runtime::RuntimeParametersKey; pub type OldValue = - ::core::option::Option; + ::core::option::Option; pub type NewValue = - ::core::option::Option; + ::core::option::Option; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Updated { const PALLET: &'static str = "Parameters"; @@ -8511,10 +8511,10 @@ pub mod api { pub mod parameters { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::rococo_runtime::RuntimeParametersKey; + pub type Param0 = runtime_types::pezkuwichain_runtime::RuntimeParametersKey; pub mod output { use super::runtime_types; - pub type Output = runtime_types::rococo_runtime::RuntimeParametersValue; + pub type Output = runtime_types::pezkuwichain_runtime::RuntimeParametersValue; } } } @@ -8974,7 +8974,7 @@ pub mod api { } pub mod set_keys { use super::runtime_types; - pub type Keys = runtime_types::rococo_runtime::SessionKeys; + pub type Keys = runtime_types::pezkuwichain_runtime::SessionKeys; pub type Proof = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>; } @@ -9322,7 +9322,7 @@ pub mod api { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - runtime_types::rococo_runtime::SessionKeys, + runtime_types::pezkuwichain_runtime::SessionKeys, )>; } } @@ -9343,7 +9343,7 @@ pub mod api { pub type Param0 = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub mod output { use super::runtime_types; - pub type Output = runtime_types::rococo_runtime::SessionKeys; + pub type Output = runtime_types::pezkuwichain_runtime::SessionKeys; } } pub mod key_owner { @@ -10145,7 +10145,7 @@ pub mod api { pub mod spend { use super::runtime_types; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; pub type Amount = ::core::primitive::u128; pub type Beneficiary = runtime_types::xcm::VersionedLocation; pub type ValidFrom = ::core::option::Option<::core::primitive::u32>; @@ -10678,7 +10678,7 @@ pub mod api { use super::runtime_types; pub type Index = ::core::primitive::u32; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; pub type Amount = ::core::primitive::u128; pub type Beneficiary = runtime_types::xcm::VersionedLocation; pub type ValidFrom = ::core::primitive::u32; @@ -10776,7 +10776,7 @@ pub mod api { pub struct StorageApi; impl StorageApi { #[doc = " DEPRECATED: associated with `spend_local` call and will be removed in May 2025."] - #[doc = " Refer to for migration to `spend`."] + #[doc = " Refer to for migration to `spend`."] #[doc = ""] #[doc = " Number of proposals that have been made."] pub fn proposal_count( @@ -10798,7 +10798,7 @@ pub mod api { ) } #[doc = " DEPRECATED: associated with `spend_local` call and will be removed in May 2025."] - #[doc = " Refer to for migration to `spend`."] + #[doc = " Refer to for migration to `spend`."] #[doc = ""] #[doc = " Proposals that have been made."] pub fn proposals( @@ -10837,7 +10837,7 @@ pub mod api { ) } #[doc = " DEPRECATED: associated with `spend_local` call and will be removed in May 2025."] - #[doc = " Refer to for migration to `spend`."] + #[doc = " Refer to for migration to `spend`."] #[doc = ""] #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( @@ -10968,7 +10968,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = runtime_types::pallet_treasury::SpendStatus< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, ::core::primitive::u128, runtime_types::xcm::VersionedLocation, ::core::primitive::u32, @@ -11039,7 +11039,7 @@ pub mod api { ) } #[doc = " DEPRECATED: associated with `spend_local` call and will be removed in May 2025."] - #[doc = " Refer to for migration to `spend`."] + #[doc = " Refer to for migration to `spend`."] #[doc = ""] #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] @@ -11871,9 +11871,9 @@ pub mod api { } pub mod submit { use super::runtime_types; - pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type ProposalOrigin = runtime_types::pezkuwichain_runtime::OriginCaller; pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >; pub type EnactmentMoment = @@ -12369,7 +12369,7 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Track = ::core::primitive::u16; pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >; } @@ -12463,7 +12463,7 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Track = ::core::primitive::u16; pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >; pub type Tally = @@ -12826,10 +12826,10 @@ pub mod api { use super::runtime_types; pub type Output = runtime_types::pallet_referenda::types::ReferendumInfo< ::core::primitive::u16, - runtime_types::rococo_runtime::OriginCaller, + runtime_types::pezkuwichain_runtime::OriginCaller, ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, ::core::primitive::u128, @@ -13728,9 +13728,9 @@ pub mod api { } pub mod submit { use super::runtime_types; - pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; + pub type ProposalOrigin = runtime_types::pezkuwichain_runtime::OriginCaller; pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >; pub type EnactmentMoment = @@ -14226,7 +14226,7 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Track = ::core::primitive::u16; pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >; } @@ -14320,7 +14320,7 @@ pub mod api { pub type Index = ::core::primitive::u32; pub type Track = ::core::primitive::u16; pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >; pub type Tally = runtime_types::pallet_ranked_collective::Tally; @@ -14676,10 +14676,10 @@ pub mod api { use super::runtime_types; pub type Output = runtime_types::pallet_referenda::types::ReferendumInfo< ::core::primitive::u16, - runtime_types::rococo_runtime::OriginCaller, + runtime_types::pezkuwichain_runtime::OriginCaller, ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, ::core::primitive::u128, @@ -14927,7 +14927,7 @@ pub mod api { } pub mod dispatch_whitelisted_call_with_preimage { use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { const PALLET: &'static str = "Whitelist"; @@ -15121,9 +15121,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::claims::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_common::claims::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::claims::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::claims::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -15173,7 +15173,7 @@ pub mod api { use super::runtime_types; pub type Dest = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type EthereumSignature = - runtime_types::polkadot_runtime_common::claims::EcdsaSignature; + runtime_types::pezkuwi_runtime_common::claims::EcdsaSignature; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Claim { const PALLET: &'static str = "Claims"; @@ -15213,7 +15213,7 @@ pub mod api { } pub mod mint_claim { use super::runtime_types; - pub type Who = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Who = runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; pub type Value = ::core::primitive::u128; pub type VestingSchedule = ::core::option::Option<( ::core::primitive::u128, @@ -15221,7 +15221,7 @@ pub mod api { ::core::primitive::u32, )>; pub type Statement = ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, + runtime_types::pezkuwi_runtime_common::claims::StatementKind, >; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for MintClaim { @@ -15275,7 +15275,7 @@ pub mod api { use super::runtime_types; pub type Dest = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type EthereumSignature = - runtime_types::polkadot_runtime_common::claims::EcdsaSignature; + runtime_types::pezkuwi_runtime_common::claims::EcdsaSignature; pub type Statement = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>; } @@ -15343,8 +15343,8 @@ pub mod api { } pub mod move_claim { use super::runtime_types; - pub type Old = runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type New = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Old = runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; + pub type New = runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; pub type MaybePreclaim = ::core::option::Option<::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32>; } @@ -15550,7 +15550,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_common::claims::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -15570,7 +15570,7 @@ pub mod api { use super::runtime_types; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type EthereumAddress = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; + runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; pub type Amount = ::core::primitive::u128; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Claimed { @@ -15681,7 +15681,7 @@ pub mod api { pub mod claims { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Param0 = runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u128; @@ -15698,7 +15698,7 @@ pub mod api { pub mod vesting { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Param0 = runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; pub mod output { use super::runtime_types; pub type Output = ( @@ -15711,10 +15711,10 @@ pub mod api { pub mod signing { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_runtime_common::claims::EthereumAddress; + pub type Param0 = runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_runtime_common::claims::StatementKind; + pub type Output = runtime_types::pezkuwi_runtime_common::claims::StatementKind; } } pub mod preclaims { @@ -15724,7 +15724,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; + runtime_types::pezkuwi_runtime_common::claims::EthereumAddress; } } } @@ -15799,7 +15799,7 @@ pub mod api { pub mod batch { use super::runtime_types; pub type Calls = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Batch { @@ -15837,7 +15837,7 @@ pub mod api { pub mod as_derivative { use super::runtime_types; pub type Index = ::core::primitive::u16; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AsDerivative { const PALLET: &'static str = "Utility"; @@ -15873,7 +15873,7 @@ pub mod api { pub mod batch_all { use super::runtime_types; pub type Calls = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for BatchAll { @@ -15904,8 +15904,8 @@ pub mod api { } pub mod dispatch_as { use super::runtime_types; - pub type AsOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type AsOrigin = runtime_types::pezkuwichain_runtime::OriginCaller; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for DispatchAs { const PALLET: &'static str = "Utility"; @@ -15941,7 +15941,7 @@ pub mod api { pub mod force_batch { use super::runtime_types; pub type Calls = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceBatch { @@ -15971,7 +15971,7 @@ pub mod api { } pub mod with_weight { use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for WithWeight { @@ -16018,8 +16018,8 @@ pub mod api { } pub mod if_else { use super::runtime_types; - pub type Main = runtime_types::rococo_runtime::RuntimeCall; - pub type Fallback = runtime_types::rococo_runtime::RuntimeCall; + pub type Main = runtime_types::pezkuwichain_runtime::RuntimeCall; + pub type Fallback = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for IfElse { const PALLET: &'static str = "Utility"; @@ -16049,8 +16049,8 @@ pub mod api { } pub mod dispatch_as_fallible { use super::runtime_types; - pub type AsOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type AsOrigin = runtime_types::pezkuwichain_runtime::OriginCaller; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for DispatchAsFallible { const PALLET: &'static str = "Utility"; @@ -21165,7 +21165,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AsRecovered { const PALLET: &'static str = "Recovery"; @@ -21953,7 +21953,7 @@ pub mod api { use super::runtime_types; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Kind = runtime_types::pallet_recovery::DepositKind< - runtime_types::rococo_runtime::Runtime, + runtime_types::pezkuwichain_runtime::Runtime, >; pub type OldDeposit = ::core::primitive::u128; pub type NewDeposit = ::core::primitive::u128; @@ -22809,7 +22809,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Schedule { const PALLET: &'static str = "Scheduler"; @@ -22869,7 +22869,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ScheduleNamed { const PALLET: &'static str = "Scheduler"; @@ -22922,7 +22922,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ScheduleAfter { const PALLET: &'static str = "Scheduler"; @@ -22955,7 +22955,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ScheduleNamedAfter { const PALLET: &'static str = "Scheduler"; @@ -23667,11 +23667,11 @@ pub mod api { runtime_types::pallet_scheduler::Scheduled< [::core::primitive::u8; 32usize], runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, ::core::primitive::u32, - runtime_types::rococo_runtime::OriginCaller, + runtime_types::pezkuwichain_runtime::OriginCaller, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, >, >, @@ -23788,8 +23788,8 @@ pub mod api { (), >; pub type ForceProxyType = - ::core::option::Option; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + ::core::option::Option; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Proxy { const PALLET: &'static str = "Proxy"; @@ -23826,7 +23826,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type Delay = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AddProxy { @@ -23862,7 +23862,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type Delay = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for RemoveProxy { @@ -23927,7 +23927,7 @@ pub mod api { } pub mod create_pure { use super::runtime_types; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type Delay = ::core::primitive::u32; pub type Index = ::core::primitive::u16; } @@ -23977,7 +23977,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type Index = ::core::primitive::u16; pub type Height = ::core::primitive::u32; pub type ExtIndex = ::core::primitive::u32; @@ -24141,8 +24141,8 @@ pub mod api { (), >; pub type ForceProxyType = - ::core::option::Option; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + ::core::option::Option; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ProxyAnnounced { const PALLET: &'static str = "Proxy"; @@ -24567,7 +24567,7 @@ pub mod api { use super::runtime_types; pub type Pure = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type DisambiguationIndex = ::core::primitive::u16; pub type At = ::core::primitive::u32; pub type ExtrinsicIndex = ::core::primitive::u32; @@ -24594,7 +24594,7 @@ pub mod api { use super::runtime_types; pub type Pure = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Spawner = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type DisambiguationIndex = ::core::primitive::u16; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for PureKilled { @@ -24642,7 +24642,7 @@ pub mod api { use super::runtime_types; pub type Delegator = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Delegatee = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type Delay = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for ProxyAdded { @@ -24667,7 +24667,7 @@ pub mod api { use super::runtime_types; pub type Delegator = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Delegatee = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; + pub type ProxyType = runtime_types::pezkuwichain_runtime::ProxyType; pub type Delay = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for ProxyRemoved { @@ -24753,7 +24753,7 @@ pub mod api { runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_proxy::ProxyDefinition< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - runtime_types::rococo_runtime::ProxyType, + runtime_types::pezkuwichain_runtime::ProxyType, ::core::primitive::u32, >, >, @@ -24944,7 +24944,7 @@ pub mod api { pub type OtherSignatories = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, >; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AsMultiThreshold1 { const PALLET: &'static str = "Multisig"; @@ -25016,7 +25016,7 @@ pub mod api { pub type MaybeTimepoint = ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AsMulti { @@ -26110,7 +26110,7 @@ pub mod api { pub mod create { use super::runtime_types; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Create { @@ -26139,7 +26139,7 @@ pub mod api { pub mod update { use super::runtime_types; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Update { @@ -26167,7 +26167,7 @@ pub mod api { pub mod remove { use super::runtime_types; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Remove { const PALLET: &'static str = "AssetRate"; @@ -26273,7 +26273,7 @@ pub mod api { pub mod asset_rate_created { use super::runtime_types; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for AssetRateCreated { @@ -26293,7 +26293,7 @@ pub mod api { pub mod asset_rate_removed { use super::runtime_types; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for AssetRateRemoved { const PALLET: &'static str = "AssetRate"; @@ -26314,7 +26314,7 @@ pub mod api { pub mod asset_rate_updated { use super::runtime_types; pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; pub type Old = runtime_types::sp_arithmetic::fixed_point::FixedU128; pub type New = runtime_types::sp_arithmetic::fixed_point::FixedU128; } @@ -26353,7 +26353,7 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset; pub mod output { use super::runtime_types; pub type Output = runtime_types::sp_arithmetic::fixed_point::FixedU128; @@ -30554,7 +30554,7 @@ pub mod api { } pub mod held { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -30577,7 +30577,7 @@ pub mod api { } pub mod burned_held { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -30601,7 +30601,7 @@ pub mod api { } pub mod transfer_on_hold { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Source = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Dest = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; @@ -30626,7 +30626,7 @@ pub mod api { } pub mod transfer_and_hold { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Source = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Dest = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Transferred = ::core::primitive::u128; @@ -30650,7 +30650,7 @@ pub mod api { } pub mod released { use super::runtime_types; - pub type Reason = runtime_types::rococo_runtime::RuntimeHoldReason; + pub type Reason = runtime_types::pezkuwichain_runtime::RuntimeHoldReason; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -30762,7 +30762,7 @@ pub mod api { #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] #[doc = ""] - #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn locks( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::storage::address::StaticAddress< @@ -30783,7 +30783,7 @@ pub mod api { } #[doc = " Named reserves on some account balances."] #[doc = ""] - #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn reserves( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::storage::address::StaticAddress< @@ -30902,7 +30902,7 @@ pub mod api { use super::runtime_types; pub type Output = runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::frame_support::traits::tokens::misc::IdAmount< - runtime_types::rococo_runtime::RuntimeHoldReason, + runtime_types::pezkuwichain_runtime::RuntimeHoldReason, ::core::primitive::u128, >, >; @@ -30953,7 +30953,7 @@ pub mod api { #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] #[doc = ""] - #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn max_locks( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::constants::address::StaticAddress< @@ -30972,7 +30972,7 @@ pub mod api { } #[doc = " The maximum number of named reserves that can exist on an account."] #[doc = ""] - #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] + #[doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/pezkuwichain/bizinikiwi/pull/12951/`"] pub fn max_reserves( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::constants::address::StaticAddress< @@ -31017,9 +31017,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::configuration::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::configuration::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::configuration::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::configuration::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -31884,7 +31884,7 @@ pub mod api { pub mod set_async_backing_params { use super::runtime_types; pub type New = - runtime_types::polkadot_primitives::v9::async_backing::AsyncBackingParams; + runtime_types::pezkuwi_primitives::v9::async_backing::AsyncBackingParams; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SetAsyncBackingParams { const PALLET: &'static str = "Configuration"; @@ -31908,7 +31908,7 @@ pub mod api { pub mod set_executor_params { use super::runtime_types; pub type New = - runtime_types::polkadot_primitives::v9::executor_params::ExecutorParams; + runtime_types::pezkuwi_primitives::v9::executor_params::ExecutorParams; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SetExecutorParams { const PALLET: &'static str = "Configuration"; @@ -32071,7 +32071,7 @@ pub mod api { } pub mod set_approval_voting_params { use super::runtime_types; - pub type New = runtime_types::polkadot_primitives::v9::ApprovalVotingParams; + pub type New = runtime_types::pezkuwi_primitives::v9::ApprovalVotingParams; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SetApprovalVotingParams { const PALLET: &'static str = "Configuration"; @@ -32094,7 +32094,7 @@ pub mod api { } pub mod set_scheduler_params { use super::runtime_types; - pub type New = runtime_types::polkadot_primitives::v9::SchedulerParams< + pub type New = runtime_types::pezkuwi_primitives::v9::SchedulerParams< ::core::primitive::u32, >; } @@ -33028,7 +33028,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ; + pub type Output = runtime_types :: pezkuwi_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ; } } pub mod pending_configs { @@ -33036,7 +33036,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > ; + pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: pezkuwi_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > ; } } pub mod bypass_consistency_check { @@ -33053,7 +33053,7 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::shared::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::shared::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -33159,7 +33159,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, >; } } @@ -33169,7 +33169,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::validator_app::Public, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, >; } } @@ -33178,7 +33178,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_parachains :: shared :: AllowedRelayParentsTracker < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; + pub type Output = runtime_types :: pezkuwi_runtime_parachains :: shared :: AllowedRelayParentsTracker < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; } } } @@ -33187,9 +33187,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::inclusion::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::inclusion::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -33201,7 +33201,7 @@ pub mod api { impl TransactionApi {} } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_parachains::inclusion::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -33220,13 +33220,13 @@ pub mod api { ); pub mod candidate_backed { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_primitives::v9::CandidateReceiptV2< + pub type Field0 = runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >; pub type Field1 = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v9::CoreIndex; - pub type Field3 = runtime_types::polkadot_primitives::v9::GroupIndex; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; + pub type Field2 = runtime_types::pezkuwi_primitives::v9::CoreIndex; + pub type Field3 = runtime_types::pezkuwi_primitives::v9::GroupIndex; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CandidateBacked { const PALLET: &'static str = "ParaInclusion"; @@ -33248,13 +33248,13 @@ pub mod api { ); pub mod candidate_included { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_primitives::v9::CandidateReceiptV2< + pub type Field0 = runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >; pub type Field1 = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v9::CoreIndex; - pub type Field3 = runtime_types::polkadot_primitives::v9::GroupIndex; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; + pub type Field2 = runtime_types::pezkuwi_primitives::v9::CoreIndex; + pub type Field3 = runtime_types::pezkuwi_primitives::v9::GroupIndex; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CandidateIncluded { const PALLET: &'static str = "ParaInclusion"; @@ -33275,12 +33275,12 @@ pub mod api { ); pub mod candidate_timed_out { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_primitives::v9::CandidateReceiptV2< + pub type Field0 = runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >; pub type Field1 = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v9::CoreIndex; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; + pub type Field2 = runtime_types::pezkuwi_primitives::v9::CoreIndex; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CandidateTimedOut { const PALLET: &'static str = "ParaInclusion"; @@ -33300,7 +33300,7 @@ pub mod api { } pub mod upward_messages_received { use super::runtime_types; - pub type From = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type From = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Count = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for UpwardMessagesReceived { @@ -33339,10 +33339,10 @@ pub mod api { pub mod v1 { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > ; + pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: pezkuwi_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > ; } } } @@ -33351,9 +33351,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::paras_inherent::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::paras_inherent::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -33377,7 +33377,7 @@ pub mod api { } pub mod enter { use super::runtime_types; - pub type Data = runtime_types::polkadot_primitives::v9::InherentData< + pub type Data = runtime_types::pezkuwi_primitives::v9::InherentData< runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, >; } @@ -33467,7 +33467,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_primitives::v9::ScrapedOnChainVotes< + pub type Output = runtime_types::pezkuwi_primitives::v9::ScrapedOnChainVotes< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >; } @@ -33483,7 +33483,7 @@ pub mod api { pub struct StorageApi; impl StorageApi { #[doc = " All the validator groups. One for each core. Indices are into `ActiveValidators` - not the"] - #[doc = " broader set of Polkadot validators, but instead just the subset used for parachains during"] + #[doc = " broader set of Pezkuwi validators, but instead just the subset used for parachains during"] #[doc = " this session."] #[doc = ""] #[doc = " Bound: The number of cores is the sum of the numbers of parachains and parathread"] @@ -33558,7 +33558,7 @@ pub mod api { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, >, >; } @@ -33576,7 +33576,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v9 :: CoreIndex , :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: common :: Assignment > > ; + pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: utils :: KeyedVec < runtime_types :: pezkuwi_primitives :: v9 :: CoreIndex , :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: pezkuwi_runtime_parachains :: scheduler :: common :: Assignment > > ; } } } @@ -33585,9 +33585,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::paras::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::paras::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::paras::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::paras::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -33612,9 +33612,9 @@ pub mod api { } pub mod force_set_current_code { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceSetCurrentCode { const PALLET: &'static str = "Paras"; @@ -33638,9 +33638,9 @@ pub mod api { } pub mod force_set_current_head { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceSetCurrentHead { const PALLET: &'static str = "Paras"; @@ -33665,9 +33665,9 @@ pub mod api { } pub mod force_schedule_code_upgrade { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; pub type RelayParentNumber = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceScheduleCodeUpgrade { @@ -33692,9 +33692,9 @@ pub mod api { } pub mod force_note_new_head { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceNoteNewHead { const PALLET: &'static str = "Paras"; @@ -33719,7 +33719,7 @@ pub mod api { } pub mod force_queue_action { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceQueueAction { const PALLET: &'static str = "Paras"; @@ -33756,7 +33756,7 @@ pub mod api { pub mod add_trusted_validation_code { use super::runtime_types; pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AddTrustedValidationCode { const PALLET: &'static str = "Paras"; @@ -33783,7 +33783,7 @@ pub mod api { } pub mod poke_unused_validation_code { use super::runtime_types; - pub type ValidationCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type ValidationCodeHash = runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash ; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for PokeUnusedValidationCode { const PALLET: &'static str = "Paras"; @@ -33808,9 +33808,9 @@ pub mod api { } pub mod include_pvf_check_statement { use super::runtime_types; - pub type Stmt = runtime_types::polkadot_primitives::v9::PvfCheckStatement; + pub type Stmt = runtime_types::pezkuwi_primitives::v9::PvfCheckStatement; pub type Signature = - runtime_types::polkadot_primitives::v9::validator_app::Signature; + runtime_types::pezkuwi_primitives::v9::validator_app::Signature; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; @@ -33834,7 +33834,7 @@ pub mod api { } pub mod force_set_most_recent_context { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Context = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceSetMostRecentContext { @@ -33861,7 +33861,7 @@ pub mod api { } pub mod remove_upgrade_cooldown { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for RemoveUpgradeCooldown { const PALLET: &'static str = "Paras"; @@ -33896,8 +33896,8 @@ pub mod api { } pub mod authorize_force_set_current_code_hash { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type NewCodeHash = runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash ; pub type ValidPeriod = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AuthorizeForceSetCurrentCodeHash { @@ -33923,9 +33923,9 @@ pub mod api { } pub mod apply_authorized_force_set_current_code { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ApplyAuthorizedForceSetCurrentCode { const PALLET: &'static str = "Paras"; @@ -34208,7 +34208,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::paras::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_parachains::paras::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -34222,7 +34222,7 @@ pub mod api { pub struct CurrentCodeUpdated(pub current_code_updated::Field0); pub mod current_code_updated { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CurrentCodeUpdated { const PALLET: &'static str = "Paras"; @@ -34239,7 +34239,7 @@ pub mod api { pub struct CurrentHeadUpdated(pub current_head_updated::Field0); pub mod current_head_updated { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CurrentHeadUpdated { const PALLET: &'static str = "Paras"; @@ -34256,7 +34256,7 @@ pub mod api { pub struct CodeUpgradeScheduled(pub code_upgrade_scheduled::Field0); pub mod code_upgrade_scheduled { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CodeUpgradeScheduled { const PALLET: &'static str = "Paras"; @@ -34273,7 +34273,7 @@ pub mod api { pub struct NewHeadNoted(pub new_head_noted::Field0); pub mod new_head_noted { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for NewHeadNoted { const PALLET: &'static str = "Paras"; @@ -34290,7 +34290,7 @@ pub mod api { pub struct ActionQueued(pub action_queued::Field0, pub action_queued::Field1); pub mod action_queued { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Field1 = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for ActionQueued { @@ -34313,8 +34313,8 @@ pub mod api { pub mod pvf_check_started { use super::runtime_types; pub type Field0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; + pub type Field1 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for PvfCheckStarted { const PALLET: &'static str = "Paras"; @@ -34336,8 +34336,8 @@ pub mod api { pub mod pvf_check_accepted { use super::runtime_types; pub type Field0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; + pub type Field1 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for PvfCheckAccepted { const PALLET: &'static str = "Paras"; @@ -34359,8 +34359,8 @@ pub mod api { pub mod pvf_check_rejected { use super::runtime_types; pub type Field0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; + pub type Field1 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for PvfCheckRejected { const PALLET: &'static str = "Paras"; @@ -34379,7 +34379,7 @@ pub mod api { } pub mod upgrade_cooldown_removed { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for UpgradeCooldownRemoved { const PALLET: &'static str = "Paras"; @@ -34400,9 +34400,9 @@ pub mod api { } pub mod code_authorized { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type CodeHash = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; pub type ExpireAt = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CodeAuthorized { @@ -34890,11 +34890,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< + runtime_types::pezkuwi_runtime_parachains::paras::PvfCheckActiveVoteState< ::core::primitive::u32, >; } @@ -34904,7 +34904,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; + pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash > ; } } pub mod parachains { @@ -34913,34 +34913,34 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >; } } pub mod para_lifecycles { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle; + runtime_types::pezkuwi_runtime_parachains::paras::ParaLifecycle; } } pub mod heads { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; } } pub mod most_recent_context { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -34949,32 +34949,32 @@ pub mod api { pub mod current_code_hash { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Output = runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash ; } } pub mod past_code_hash { use super::root_mod; use super::runtime_types; pub type Param0 = ( - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::core::primitive::u32, ); pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Output = runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash ; } } pub mod past_code_meta { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< + runtime_types::pezkuwi_runtime_parachains::paras::ParaPastCodeMeta< ::core::primitive::u32, >; } @@ -34985,7 +34985,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::core::primitive::u32, )>; } @@ -34993,7 +34993,7 @@ pub mod api { pub mod future_code_upgrades { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -35005,7 +35005,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::core::primitive::u32, )>; } @@ -35013,37 +35013,37 @@ pub mod api { pub mod future_code_hash { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; + pub type Output = runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash ; } } pub mod authorized_code_hash { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_parachains :: paras :: AuthorizedCodeHashAndExpiry < :: core :: primitive :: u32 > ; + pub type Output = runtime_types :: pezkuwi_runtime_parachains :: paras :: AuthorizedCodeHashAndExpiry < :: core :: primitive :: u32 > ; } } pub mod upgrade_go_ahead_signal { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_primitives::v9::UpgradeGoAhead; + pub type Output = runtime_types::pezkuwi_primitives::v9::UpgradeGoAhead; } } pub mod upgrade_restriction_signal { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_primitives::v9::UpgradeRestriction; + pub type Output = runtime_types::pezkuwi_primitives::v9::UpgradeRestriction; } } pub mod upgrade_cooldowns { @@ -35052,7 +35052,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::core::primitive::u32, )>; } @@ -35063,7 +35063,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::core::primitive::u32, )>; } @@ -35075,25 +35075,25 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >; } } pub mod upcoming_paras_genesis { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; + runtime_types::pezkuwi_runtime_parachains::paras::ParaGenesisArgs; } } pub mod code_by_hash_refs { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -35103,11 +35103,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCodeHash; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; } } } @@ -35138,7 +35138,7 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::initializer::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::initializer::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -35264,7 +35264,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > ; + pub type Output = :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: pezkuwi_runtime_parachains :: initializer :: BufferedSessionChange > ; } } } @@ -35342,11 +35342,11 @@ pub mod api { pub mod downward_message_queues { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< + runtime_types::pezkuwi_core_primitives::InboundDownwardMessage< ::core::primitive::u32, >, >; @@ -35355,7 +35355,7 @@ pub mod api { pub mod downward_message_queue_heads { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256; @@ -35364,7 +35364,7 @@ pub mod api { pub mod delivery_fee_factor { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = runtime_types::sp_arithmetic::fixed_point::FixedU128; @@ -35376,9 +35376,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::hrmp::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::hrmp::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -35414,7 +35414,7 @@ pub mod api { pub mod hrmp_init_open_channel { use super::runtime_types; pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type ProposedMaxCapacity = ::core::primitive::u32; pub type ProposedMaxMessageSize = ::core::primitive::u32; } @@ -35441,7 +35441,7 @@ pub mod api { } pub mod hrmp_accept_open_channel { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for HrmpAcceptOpenChannel { const PALLET: &'static str = "Hrmp"; @@ -35468,7 +35468,7 @@ pub mod api { pub mod hrmp_close_channel { use super::runtime_types; pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for HrmpCloseChannel { const PALLET: &'static str = "Hrmp"; @@ -35499,7 +35499,7 @@ pub mod api { } pub mod force_clean_hrmp { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NumInbound = ::core::primitive::u32; pub type NumOutbound = ::core::primitive::u32; } @@ -35593,7 +35593,7 @@ pub mod api { pub mod hrmp_cancel_open_request { use super::runtime_types; pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; pub type OpenRequests = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for HrmpCancelOpenRequest { @@ -35627,9 +35627,9 @@ pub mod api { } pub mod force_open_hrmp_channel { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type MaxCapacity = ::core::primitive::u32; pub type MaxMessageSize = ::core::primitive::u32; } @@ -35666,9 +35666,9 @@ pub mod api { } pub mod establish_system_channel { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for EstablishSystemChannel { const PALLET: &'static str = "Hrmp"; @@ -35700,9 +35700,9 @@ pub mod api { } pub mod poke_channel_deposits { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for PokeChannelDeposits { const PALLET: &'static str = "Hrmp"; @@ -35732,7 +35732,7 @@ pub mod api { pub mod establish_channel_with_system { use super::runtime_types; pub type TargetSystemChain = - runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for EstablishChannelWithSystem { const PALLET: &'static str = "Hrmp"; @@ -36041,7 +36041,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_parachains::hrmp::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -36060,8 +36060,8 @@ pub mod api { } pub mod open_channel_requested { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type ProposedMaxCapacity = ::core::primitive::u32; pub type ProposedMaxMessageSize = ::core::primitive::u32; } @@ -36083,9 +36083,9 @@ pub mod api { } pub mod open_channel_canceled { use super::runtime_types; - pub type ByParachain = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ByParachain = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for OpenChannelCanceled { const PALLET: &'static str = "Hrmp"; @@ -36105,8 +36105,8 @@ pub mod api { } pub mod open_channel_accepted { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for OpenChannelAccepted { const PALLET: &'static str = "Hrmp"; @@ -36126,9 +36126,9 @@ pub mod api { } pub mod channel_closed { use super::runtime_types; - pub type ByParachain = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ByParachain = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for ChannelClosed { const PALLET: &'static str = "Hrmp"; @@ -36150,8 +36150,8 @@ pub mod api { } pub mod hrmp_channel_force_opened { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type ProposedMaxCapacity = ::core::primitive::u32; pub type ProposedMaxMessageSize = ::core::primitive::u32; } @@ -36175,8 +36175,8 @@ pub mod api { } pub mod hrmp_system_channel_opened { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type ProposedMaxCapacity = ::core::primitive::u32; pub type ProposedMaxMessageSize = ::core::primitive::u32; } @@ -36198,8 +36198,8 @@ pub mod api { } pub mod open_channel_deposits_updated { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type Recipient = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for OpenChannelDepositsUpdated { const PALLET: &'static str = "Hrmp"; @@ -36472,11 +36472,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest; + runtime_types::pezkuwi_runtime_parachains::hrmp::HrmpOpenChannelRequest; } } pub mod hrmp_open_channel_requests_list { @@ -36485,14 +36485,14 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId, >; } } pub mod hrmp_open_channel_request_count { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -36501,7 +36501,7 @@ pub mod api { pub mod hrmp_accepted_channel_request_count { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -36511,7 +36511,7 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; pub mod output { use super::runtime_types; pub type Output = (); @@ -36523,14 +36523,14 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId, >; } } pub mod hrmp_watermarks { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -36540,31 +36540,31 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel; + pub type Output = runtime_types::pezkuwi_runtime_parachains::hrmp::HrmpChannel; } } pub mod hrmp_ingress_channels_index { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >; } } pub mod hrmp_egress_channels_index { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >; } } @@ -36572,11 +36572,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; + runtime_types::pezkuwi_parachain_primitives::primitives::HrmpChannelId; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< + runtime_types::pezkuwi_core_primitives::InboundHrmpMessage< ::core::primitive::u32, >, >; @@ -36585,13 +36585,13 @@ pub mod api { pub mod hrmp_channel_digests { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( ::core::primitive::u32, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >, )>; } @@ -36712,7 +36712,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::assignment_app::Public, + runtime_types::pezkuwi_primitives::v9::assignment_app::Public, >; } } @@ -36730,7 +36730,7 @@ pub mod api { pub type Param0 = ::core::primitive::u32; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_primitives::v9::SessionInfo; + pub type Output = runtime_types::pezkuwi_primitives::v9::SessionInfo; } } pub mod account_keys { @@ -36751,7 +36751,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_primitives::v9::executor_params::ExecutorParams; + runtime_types::pezkuwi_primitives::v9::executor_params::ExecutorParams; } } } @@ -36760,9 +36760,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::disputes::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::disputes::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::disputes::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::disputes::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -36806,7 +36806,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_parachains::disputes::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -36823,9 +36823,9 @@ pub mod api { ); pub mod dispute_initiated { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Field0 = runtime_types::pezkuwi_core_primitives::CandidateHash; pub type Field1 = - runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation; + runtime_types::pezkuwi_runtime_parachains::disputes::DisputeLocation; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for DisputeInitiated { const PALLET: &'static str = "ParasDisputes"; @@ -36846,9 +36846,9 @@ pub mod api { ); pub mod dispute_concluded { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Field0 = runtime_types::pezkuwi_core_primitives::CandidateHash; pub type Field1 = - runtime_types::polkadot_runtime_parachains::disputes::DisputeResult; + runtime_types::pezkuwi_runtime_parachains::disputes::DisputeResult; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for DisputeConcluded { const PALLET: &'static str = "ParasDisputes"; @@ -36993,10 +36993,10 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Param1 = runtime_types::pezkuwi_core_primitives::CandidateHash; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_primitives::v9::DisputeState< + pub type Output = runtime_types::pezkuwi_primitives::v9::DisputeState< ::core::primitive::u32, >; } @@ -37005,11 +37005,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Param1 = runtime_types::pezkuwi_core_primitives::CandidateHash; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, >; } } @@ -37017,7 +37017,7 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Param1 = runtime_types::pezkuwi_core_primitives::CandidateHash; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -37038,10 +37038,10 @@ pub mod api { use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error; + runtime_types::pezkuwi_runtime_parachains::disputes::slashing::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call; + runtime_types::pezkuwi_runtime_parachains::disputes::slashing::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -37068,7 +37068,7 @@ pub mod api { pub mod report_dispute_lost_unsigned { use super::runtime_types; pub type DisputeProof = - runtime_types::polkadot_primitives::v9::slashing::DisputeProof; + runtime_types::pezkuwi_primitives::v9::slashing::DisputeProof; pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { @@ -37149,11 +37149,11 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; + pub type Param1 = runtime_types::pezkuwi_core_primitives::CandidateHash; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_primitives::v9::slashing::PendingSlashes; + runtime_types::pezkuwi_primitives::v9::slashing::PendingSlashes; } } pub mod validator_set_counts { @@ -37198,7 +37198,7 @@ pub mod api { } pub mod reap_page { use super::runtime_types; - pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type MessageOrigin = runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin ; pub type PageIndex = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ReapPage { @@ -37237,7 +37237,7 @@ pub mod api { } pub mod execute_overweight { use super::runtime_types; - pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type MessageOrigin = runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin ; pub type Page = ::core::primitive::u32; pub type Index = ::core::primitive::u32; pub type WeightLimit = runtime_types::sp_weights::weight_v2::Weight; @@ -37331,7 +37331,7 @@ pub mod api { use super::runtime_types; pub type Id = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256; pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + runtime_types::pezkuwi_runtime_parachains::inclusion::AggregateMessageOrigin; pub type Error = runtime_types::frame_support::traits::messages::ProcessMessageError; } @@ -37357,7 +37357,7 @@ pub mod api { use super::runtime_types; pub type Id = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256; pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + runtime_types::pezkuwi_runtime_parachains::inclusion::AggregateMessageOrigin; pub type WeightUsed = runtime_types::sp_weights::weight_v2::Weight; pub type Success = ::core::primitive::bool; } @@ -37383,7 +37383,7 @@ pub mod api { use super::runtime_types; pub type Id = [::core::primitive::u8; 32usize]; pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + runtime_types::pezkuwi_runtime_parachains::inclusion::AggregateMessageOrigin; pub type PageIndex = ::core::primitive::u32; pub type MessageIndex = ::core::primitive::u32; } @@ -37406,7 +37406,7 @@ pub mod api { pub mod page_reaped { use super::runtime_types; pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + runtime_types::pezkuwi_runtime_parachains::inclusion::AggregateMessageOrigin; pub type Index = ::core::primitive::u32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for PageReaped { @@ -37479,10 +37479,10 @@ pub mod api { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + runtime_types::pezkuwi_runtime_parachains::inclusion::AggregateMessageOrigin; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > ; + pub type Output = runtime_types :: pallet_message_queue :: BookState < runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin > ; } } pub mod service_head { @@ -37490,14 +37490,14 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; + pub type Output = runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin ; } } pub mod pages { use super::root_mod; use super::runtime_types; pub type Param0 = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; + runtime_types::pezkuwi_runtime_parachains::inclusion::AggregateMessageOrigin; pub type Param1 = ::core::primitive::u32; pub mod output { use super::runtime_types; @@ -37598,9 +37598,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::on_demand::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::on_demand::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::on_demand::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::on_demand::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -37640,7 +37640,7 @@ pub mod api { pub mod place_order_allow_death { use super::runtime_types; pub type MaxAmount = ::core::primitive::u128; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for PlaceOrderAllowDeath { const PALLET: &'static str = "OnDemandAssignmentProvider"; @@ -37679,7 +37679,7 @@ pub mod api { pub mod place_order_keep_alive { use super::runtime_types; pub type MaxAmount = ::core::primitive::u128; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for PlaceOrderKeepAlive { const PALLET: &'static str = "OnDemandAssignmentProvider"; @@ -37720,7 +37720,7 @@ pub mod api { pub mod place_order_with_credits { use super::runtime_types; pub type MaxAmount = ::core::primitive::u128; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for PlaceOrderWithCredits { const PALLET: &'static str = "OnDemandAssignmentProvider"; @@ -37842,7 +37842,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::on_demand::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_parachains::on_demand::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -37860,7 +37860,7 @@ pub mod api { } pub mod on_demand_order_placed { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type SpotPrice = ::core::primitive::u128; pub type OrderedBy = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; } @@ -38030,10 +38030,10 @@ pub mod api { pub mod para_id_affinity { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_parachains :: on_demand :: types :: CoreAffinityCount ; + pub type Output = runtime_types :: pezkuwi_runtime_parachains :: on_demand :: types :: CoreAffinityCount ; } } pub mod queue_status { @@ -38041,7 +38041,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_parachains :: on_demand :: types :: QueueStatusType ; + pub type Output = runtime_types :: pezkuwi_runtime_parachains :: on_demand :: types :: QueueStatusType ; } } pub mod free_entries { @@ -38050,18 +38050,18 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_runtime_parachains::on_demand::types::EnqueuedOrder, + runtime_types::pezkuwi_runtime_parachains::on_demand::types::EnqueuedOrder, >; } } pub mod affinity_entries { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_primitives::v9::CoreIndex; + pub type Param0 = runtime_types::pezkuwi_primitives::v9::CoreIndex; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_runtime_parachains::on_demand::types::EnqueuedOrder, + runtime_types::pezkuwi_runtime_parachains::on_demand::types::EnqueuedOrder, >; } } @@ -38148,7 +38148,7 @@ pub mod api { use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = - runtime_types::polkadot_runtime_parachains::assigner_coretime::pallet::Error; + runtime_types::pezkuwi_runtime_parachains::assigner_coretime::pallet::Error; pub mod storage { use super::root_mod; use super::runtime_types; @@ -38203,12 +38203,12 @@ pub mod api { use super::runtime_types; pub type Param0 = ( ::core::primitive::u32, - runtime_types::polkadot_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::CoreIndex, ); pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_parachains::assigner_coretime::Schedule< + runtime_types::pezkuwi_runtime_parachains::assigner_coretime::Schedule< ::core::primitive::u32, >; } @@ -38216,10 +38216,10 @@ pub mod api { pub mod core_descriptors { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_primitives::v9::CoreIndex; + pub type Param0 = runtime_types::pezkuwi_primitives::v9::CoreIndex; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: CoreDescriptor < :: core :: primitive :: u32 > ; + pub type Output = runtime_types :: pezkuwi_runtime_parachains :: assigner_coretime :: CoreDescriptor < :: core :: primitive :: u32 > ; } } } @@ -38228,9 +38228,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_common::paras_registrar::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::paras_registrar::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -38275,11 +38275,11 @@ pub mod api { } pub mod register { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type GenesisHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Register { const PALLET: &'static str = "Registrar"; @@ -38313,11 +38313,11 @@ pub mod api { use super::runtime_types; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Deposit = ::core::primitive::u128; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type GenesisHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ForceRegister { const PALLET: &'static str = "Registrar"; @@ -38343,7 +38343,7 @@ pub mod api { } pub mod deregister { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Deregister { const PALLET: &'static str = "Registrar"; @@ -38378,8 +38378,8 @@ pub mod api { } pub mod swap { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Other = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type Other = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Swap { const PALLET: &'static str = "Registrar"; @@ -38405,7 +38405,7 @@ pub mod api { } pub mod remove_lock { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for RemoveLock { const PALLET: &'static str = "Registrar"; @@ -38465,7 +38465,7 @@ pub mod api { } pub mod add_lock { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AddLock { const PALLET: &'static str = "Registrar"; @@ -38499,9 +38499,9 @@ pub mod api { } pub mod schedule_code_upgrade { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ScheduleCodeUpgrade { const PALLET: &'static str = "Registrar"; @@ -38528,9 +38528,9 @@ pub mod api { } pub mod set_current_head { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SetCurrentHead { const PALLET: &'static str = "Registrar"; @@ -38791,7 +38791,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_common::paras_registrar::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -38807,7 +38807,7 @@ pub mod api { } pub mod registered { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Manager = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Registered { @@ -38826,7 +38826,7 @@ pub mod api { } pub mod deregistered { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Deregistered { const PALLET: &'static str = "Registrar"; @@ -38845,7 +38845,7 @@ pub mod api { } pub mod reserved { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Reserved { @@ -38865,8 +38865,8 @@ pub mod api { } pub mod swapped { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type OtherId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type OtherId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Swapped { const PALLET: &'static str = "Registrar"; @@ -38941,20 +38941,20 @@ pub mod api { pub mod pending_swap { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Output = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } } pub mod paras { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< + runtime_types::pezkuwi_runtime_common::paras_registrar::ParaInfo< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, ::core::primitive::u128, >; @@ -38965,7 +38965,7 @@ pub mod api { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Output = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } } } @@ -39013,9 +39013,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::slots::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_common::slots::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::slots::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::slots::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -39046,7 +39046,7 @@ pub mod api { } pub mod force_lease { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Leaser = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; pub type PeriodBegin = ::core::primitive::u32; @@ -39075,7 +39075,7 @@ pub mod api { } pub mod clear_all_leases { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for ClearAllLeases { const PALLET: &'static str = "Slots"; @@ -39104,7 +39104,7 @@ pub mod api { } pub mod trigger_onboard { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for TriggerOnboard { const PALLET: &'static str = "Slots"; @@ -39189,7 +39189,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::slots::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_common::slots::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -39231,7 +39231,7 @@ pub mod api { } pub mod leased { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Leaser = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type PeriodBegin = ::core::primitive::u32; pub type PeriodCount = ::core::primitive::u32; @@ -39286,7 +39286,7 @@ pub mod api { pub mod leases { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< @@ -39343,9 +39343,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::auctions::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_common::auctions::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::auctions::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::auctions::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -39424,7 +39424,7 @@ pub mod api { } pub mod bid { use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Para = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type AuctionIndex = ::core::primitive::u32; pub type FirstSlot = ::core::primitive::u32; pub type LastSlot = ::core::primitive::u32; @@ -39545,7 +39545,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::auctions::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_common::auctions::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -39652,7 +39652,7 @@ pub mod api { } pub mod reserve_confiscated { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Leaser = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; pub type Amount = ::core::primitive::u128; } @@ -39678,7 +39678,7 @@ pub mod api { pub mod bid_accepted { use super::runtime_types; pub type Bidder = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Amount = ::core::primitive::u128; pub type FirstSlot = ::core::primitive::u32; pub type LastSlot = ::core::primitive::u32; @@ -39817,7 +39817,7 @@ pub mod api { use super::runtime_types; pub type Param0 = ( ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ); pub mod output { use super::runtime_types; @@ -39832,7 +39832,7 @@ pub mod api { use super::runtime_types; pub type Output = [::core::option::Option<( ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::core::primitive::u128, )>; 36usize]; } @@ -39917,9 +39917,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::crowdloan::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_common::crowdloan::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::crowdloan::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::crowdloan::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -39957,7 +39957,7 @@ pub mod api { } pub mod create { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Cap = ::core::primitive::u128; pub type FirstPeriod = ::core::primitive::u32; pub type LastPeriod = ::core::primitive::u32; @@ -39991,7 +39991,7 @@ pub mod api { } pub mod contribute { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Value = ::core::primitive::u128; pub type Signature = ::core::option::Option; @@ -40036,7 +40036,7 @@ pub mod api { pub mod withdraw { use super::runtime_types; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Withdraw { const PALLET: &'static str = "Crowdloan"; @@ -40064,7 +40064,7 @@ pub mod api { } pub mod refund { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Refund { const PALLET: &'static str = "Crowdloan"; @@ -40088,7 +40088,7 @@ pub mod api { } pub mod dissolve { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Dissolve { const PALLET: &'static str = "Crowdloan"; @@ -40123,7 +40123,7 @@ pub mod api { } pub mod edit { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Cap = ::core::primitive::u128; pub type FirstPeriod = ::core::primitive::u32; pub type LastPeriod = ::core::primitive::u32; @@ -40155,7 +40155,7 @@ pub mod api { } pub mod add_memo { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Memo = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>; } @@ -40182,7 +40182,7 @@ pub mod api { } pub mod poke { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Poke { const PALLET: &'static str = "Crowdloan"; @@ -40209,7 +40209,7 @@ pub mod api { } pub mod contribute_all { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Index = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Signature = ::core::option::Option; } @@ -40447,7 +40447,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::crowdloan::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_common::crowdloan::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -40463,7 +40463,7 @@ pub mod api { } pub mod created { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Created { const PALLET: &'static str = "Crowdloan"; @@ -40485,7 +40485,7 @@ pub mod api { pub mod contributed { use super::runtime_types; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type FundIndex = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Amount = ::core::primitive::u128; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Contributed { @@ -40508,7 +40508,7 @@ pub mod api { pub mod withdrew { use super::runtime_types; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type FundIndex = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Amount = ::core::primitive::u128; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Withdrew { @@ -40529,7 +40529,7 @@ pub mod api { } pub mod partially_refunded { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for PartiallyRefunded { const PALLET: &'static str = "Crowdloan"; @@ -40548,7 +40548,7 @@ pub mod api { } pub mod all_refunded { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for AllRefunded { const PALLET: &'static str = "Crowdloan"; @@ -40567,7 +40567,7 @@ pub mod api { } pub mod dissolved { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Dissolved { const PALLET: &'static str = "Crowdloan"; @@ -40587,7 +40587,7 @@ pub mod api { } pub mod handle_bid_result { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Result = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } @@ -40608,7 +40608,7 @@ pub mod api { } pub mod edited { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for Edited { const PALLET: &'static str = "Crowdloan"; @@ -40630,7 +40630,7 @@ pub mod api { pub mod memo_updated { use super::runtime_types; pub type Who = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Memo = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for MemoUpdated { @@ -40650,7 +40650,7 @@ pub mod api { } pub mod added_to_new_raise { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type ParaId = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for AddedToNewRaise { const PALLET: &'static str = "Crowdloan"; @@ -40740,10 +40740,10 @@ pub mod api { pub mod funds { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types::polkadot_runtime_common::crowdloan::FundInfo< + pub type Output = runtime_types::pezkuwi_runtime_common::crowdloan::FundInfo< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, @@ -40757,7 +40757,7 @@ pub mod api { pub mod output { use super::runtime_types; pub type Output = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >; } } @@ -40840,9 +40840,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::coretime::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_parachains::coretime::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::coretime::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_parachains::coretime::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -40959,7 +40959,7 @@ pub mod api { pub type Begin = ::core::primitive::u32; pub type Assignment = ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( runtime_types::pallet_broker::coretime_interface::CoreAssignment, - runtime_types::polkadot_runtime_parachains::assigner_coretime::PartsOf57600, + runtime_types::pezkuwi_runtime_parachains::assigner_coretime::PartsOf57600, )>; pub type EndHint = ::core::option::Option<::core::primitive::u32>; } @@ -41068,7 +41068,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::coretime::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_parachains::coretime::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -41103,7 +41103,7 @@ pub mod api { } pub mod core_assigned { use super::runtime_types; - pub type Core = runtime_types::polkadot_primitives::v9::CoreIndex; + pub type Core = runtime_types::pezkuwi_primitives::v9::CoreIndex; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for CoreAssigned { const PALLET: &'static str = "Coretime"; @@ -45069,7 +45069,7 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::identity_migrator::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::identity_migrator::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -45168,7 +45168,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::identity_migrator::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_common::identity_migrator::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -45220,9 +45220,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_common::paras_sudo_wrapper::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::paras_sudo_wrapper::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -45251,9 +45251,9 @@ pub mod api { } pub mod sudo_schedule_para_initialize { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Genesis = - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; + runtime_types::pezkuwi_runtime_parachains::paras::ParaGenesisArgs; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SudoScheduleParaInitialize { const PALLET: &'static str = "ParasSudoWrapper"; @@ -45276,7 +45276,7 @@ pub mod api { } pub mod sudo_schedule_para_cleanup { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SudoScheduleParaCleanup { const PALLET: &'static str = "ParasSudoWrapper"; @@ -45299,7 +45299,7 @@ pub mod api { } pub mod sudo_schedule_parathread_upgrade { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SudoScheduleParathreadUpgrade { const PALLET: &'static str = "ParasSudoWrapper"; @@ -45322,7 +45322,7 @@ pub mod api { } pub mod sudo_schedule_parachain_downgrade { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SudoScheduleParachainDowngrade { const PALLET: &'static str = "ParasSudoWrapper"; @@ -45350,7 +45350,7 @@ pub mod api { } pub mod sudo_queue_downward_xcm { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Xcm = runtime_types::xcm::VersionedXcm; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SudoQueueDownwardXcm { @@ -45380,9 +45380,9 @@ pub mod api { } pub mod sudo_establish_hrmp_channel { use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Sender = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; + runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub type MaxCapacity = ::core::primitive::u32; pub type MaxMessageSize = ::core::primitive::u32; } @@ -45532,9 +45532,9 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Error; + pub type Error = runtime_types::pezkuwi_runtime_common::assigned_slots::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Call; + pub type Call = runtime_types::pezkuwi_runtime_common::assigned_slots::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -45558,7 +45558,7 @@ pub mod api { } pub mod assign_perm_parachain_slot { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AssignPermParachainSlot { const PALLET: &'static str = "AssignedSlots"; @@ -45584,8 +45584,8 @@ pub mod api { } pub mod assign_temp_parachain_slot { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type LeasePeriodStart = runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart ; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; + pub type LeasePeriodStart = runtime_types :: pezkuwi_runtime_common :: assigned_slots :: SlotLeasePeriodStart ; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for AssignTempParachainSlot { const PALLET: &'static str = "AssignedSlots"; @@ -45608,7 +45608,7 @@ pub mod api { } pub mod unassign_parachain_slot { use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Id = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for UnassignParachainSlot { const PALLET: &'static str = "AssignedSlots"; @@ -45763,7 +45763,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event; + pub type Event = runtime_types::pezkuwi_runtime_common::assigned_slots::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -45777,7 +45777,7 @@ pub mod api { pub struct PermanentSlotAssigned(pub permanent_slot_assigned::Field0); pub mod permanent_slot_assigned { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for PermanentSlotAssigned { const PALLET: &'static str = "AssignedSlots"; @@ -45794,7 +45794,7 @@ pub mod api { pub struct TemporarySlotAssigned(pub temporary_slot_assigned::Field0); pub mod temporary_slot_assigned { use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Field0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::events::StaticEvent for TemporarySlotAssigned { const PALLET: &'static str = "AssignedSlots"; @@ -45978,7 +45978,7 @@ pub mod api { pub mod permanent_slots { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; pub type Output = (::core::primitive::u32, ::core::primitive::u32); @@ -45995,10 +45995,10 @@ pub mod api { pub mod temporary_slots { use super::root_mod; use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = runtime_types::pezkuwi_parachain_primitives::primitives::Id; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_runtime_common :: assigned_slots :: ParachainTemporarySlot < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > ; + pub type Output = runtime_types :: pezkuwi_runtime_common :: assigned_slots :: ParachainTemporarySlot < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 > ; } } pub mod temporary_slot_count { @@ -46096,7 +46096,7 @@ pub mod api { use super::root_mod; use super::runtime_types; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::rococo_runtime::validator_manager::pallet::Call; + pub type Call = runtime_types::pezkuwichain_runtime::validator_manager::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -46203,7 +46203,7 @@ pub mod api { } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::rococo_runtime::validator_manager::pallet::Event; + pub type Event = runtime_types::pezkuwichain_runtime::validator_manager::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -46881,7 +46881,7 @@ pub mod api { #[doc = " keys which are then hashed and concatenated, resulting in arbitrarily long keys."] #[doc = ""] #[doc = " Use the *state migration RPC* to retrieve the length of the longest key in your"] - #[doc = " storage: "] + #[doc = " storage: "] #[doc = ""] #[doc = " The migration will halt with a `Halted` event if this value is too small."] #[doc = " Since there is no real penalty from over-estimating, it is advised to use a large"] @@ -46893,7 +46893,7 @@ pub mod api { #[doc = " - [`frame_support::storage::StorageDoubleMap`]: 96 byte"] #[doc = ""] #[doc = " For more info see"] - #[doc = " "] + #[doc = " "] pub fn max_key_len( &self, ) -> ::pezkuwi_subxt::ext::pezkuwi_subxt_core::constants::address::StaticAddress< @@ -47050,7 +47050,7 @@ pub mod api { } pub mod sudo { use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for Sudo { const PALLET: &'static str = "Sudo"; @@ -47079,7 +47079,7 @@ pub mod api { } pub mod sudo_unchecked_weight { use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SudoUncheckedWeight { @@ -47138,7 +47138,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::pezkuwichain_runtime::RuntimeCall; } impl ::pezkuwi_subxt::ext::pezkuwi_subxt_core::blocks::StaticExtrinsic for SudoAs { const PALLET: &'static str = "Sudo"; @@ -48271,7 +48271,7 @@ pub mod api { #[doc = "- O(1)"] create { asset_kind: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, >, rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, @@ -48282,7 +48282,7 @@ pub mod api { #[doc = "- O(1)"] update { asset_kind: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, >, rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, @@ -48293,7 +48293,7 @@ pub mod api { #[doc = "- O(1)"] remove { asset_kind: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, >, }, } @@ -48336,18 +48336,18 @@ pub mod api { #[codec(index = 0)] AssetRateCreated { asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, #[codec(index = 1)] AssetRateRemoved { asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, }, #[codec(index = 2)] AssetRateUpdated { asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, old: runtime_types::sp_arithmetic::fixed_point::FixedU128, new: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, @@ -48795,21 +48795,21 @@ pub mod api { #[codec(index = 24)] #[doc = "Some balance was placed on hold."] Held { - reason: runtime_types::rococo_runtime::RuntimeHoldReason, + reason: runtime_types::pezkuwichain_runtime::RuntimeHoldReason, who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 25)] #[doc = "Held balance was burned from an account."] BurnedHeld { - reason: runtime_types::rococo_runtime::RuntimeHoldReason, + reason: runtime_types::pezkuwichain_runtime::RuntimeHoldReason, who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 26)] #[doc = "A transfer of `amount` on hold from `source` to `dest` was initiated."] TransferOnHold { - reason: runtime_types::rococo_runtime::RuntimeHoldReason, + reason: runtime_types::pezkuwichain_runtime::RuntimeHoldReason, source: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, dest: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, amount: ::core::primitive::u128, @@ -48817,7 +48817,7 @@ pub mod api { #[codec(index = 27)] #[doc = "The `transferred` balance is placed on hold at the `dest` account."] TransferAndHold { - reason: runtime_types::rococo_runtime::RuntimeHoldReason, + reason: runtime_types::pezkuwichain_runtime::RuntimeHoldReason, source: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, dest: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, transferred: ::core::primitive::u128, @@ -48825,7 +48825,7 @@ pub mod api { #[codec(index = 28)] #[doc = "Some balance was released from hold."] Released { - reason: runtime_types::rococo_runtime::RuntimeHoldReason, + reason: runtime_types::pezkuwichain_runtime::RuntimeHoldReason, who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, @@ -51491,7 +51491,7 @@ pub mod api { )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Remove a page which has no more messages remaining to be processed or is stale."] reap_page { message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Execute an overweight message."] # [doc = ""] # [doc = "Temporary processing errors will be propagated whereas permanent errors are treated"] # [doc = "as success condition."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `message_origin`: The origin from which the message to be executed arrived."] # [doc = "- `page`: The page in the queue in which the message to be executed is sitting."] # [doc = "- `index`: The index into the queue of the message to be executed."] # [doc = "- `weight_limit`: The maximum amount of weight allowed to be consumed in the execution"] # [doc = " of the message."] # [doc = ""] # [doc = "Benchmark complexity considerations: O(index + weight_limit)."] execute_overweight { message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } + # [codec (index = 0)] # [doc = "Remove a page which has no more messages remaining to be processed or is stale."] reap_page { message_origin : runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Execute an overweight message."] # [doc = ""] # [doc = "Temporary processing errors will be propagated whereas permanent errors are treated"] # [doc = "as success condition."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `message_origin`: The origin from which the message to be executed arrived."] # [doc = "- `page`: The page in the queue in which the message to be executed is sitting."] # [doc = "- `index`: The index into the queue of the message to be executed."] # [doc = "- `weight_limit`: The maximum amount of weight allowed to be consumed in the execution"] # [doc = " of the message."] # [doc = ""] # [doc = "Benchmark complexity considerations: O(index + weight_limit)."] execute_overweight { message_origin : runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin , page : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -51552,7 +51552,7 @@ pub mod api { )] #[doc = "The `Event` enum of this pallet"] pub enum Event { - # [codec (index = 0)] # [doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] ProcessingFailed { id : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , error : runtime_types :: frame_support :: traits :: messages :: ProcessMessageError , } , # [codec (index = 1)] # [doc = "Message is processed."] Processed { id : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , weight_used : runtime_types :: sp_weights :: weight_v2 :: Weight , success : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Message placed in overweight queue."] OverweightEnqueued { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , message_index : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "This page was reaped."] PageReaped { origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , index : :: core :: primitive :: u32 , } , } + # [codec (index = 0)] # [doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] ProcessingFailed { id : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , origin : runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin , error : runtime_types :: frame_support :: traits :: messages :: ProcessMessageError , } , # [codec (index = 1)] # [doc = "Message is processed."] Processed { id : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , origin : runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin , weight_used : runtime_types :: sp_weights :: weight_v2 :: Weight , success : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Message placed in overweight queue."] OverweightEnqueued { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , message_index : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "This page was reaped."] PageReaped { origin : runtime_types :: pezkuwi_runtime_parachains :: inclusion :: AggregateMessageOrigin , index : :: core :: primitive :: u32 , } , } } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -51824,7 +51824,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, >, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 1)] @@ -51876,7 +51876,7 @@ pub mod api { runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, max_weight: runtime_types::sp_weights::weight_v2::Weight, }, @@ -52448,7 +52448,7 @@ pub mod api { #[doc = "The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be"] #[doc = "deleted by setting them to `None`."] set_parameter { - key_value: runtime_types::rococo_runtime::RuntimeParameters, + key_value: runtime_types::pezkuwichain_runtime::RuntimeParameters, }, } #[derive( @@ -52469,12 +52469,12 @@ pub mod api { #[doc = ""] #[doc = "Is also emitted when the value was not changed."] Updated { - key: runtime_types::rococo_runtime::RuntimeParametersKey, + key: runtime_types::pezkuwichain_runtime::RuntimeParametersKey, old_value: ::core::option::Option< - runtime_types::rococo_runtime::RuntimeParametersValue, + runtime_types::pezkuwichain_runtime::RuntimeParametersValue, >, new_value: ::core::option::Option< - runtime_types::rococo_runtime::RuntimeParametersValue, + runtime_types::pezkuwichain_runtime::RuntimeParametersValue, >, }, } @@ -52697,9 +52697,9 @@ pub mod api { (), >, force_proxy_type: - ::core::option::Option, + ::core::option::Option, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 1)] @@ -52717,7 +52717,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 2)] @@ -52733,7 +52733,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 3)] @@ -52764,7 +52764,7 @@ pub mod api { #[doc = ""] #[doc = "Fails if there are insufficient funds to pay for deposit."] create_pure { - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, delay: ::core::primitive::u32, index: ::core::primitive::u16, }, @@ -52790,7 +52790,7 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, (), >, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, index: ::core::primitive::u16, #[codec(compact)] height: ::core::primitive::u32, @@ -52878,9 +52878,9 @@ pub mod api { (), >, force_proxy_type: - ::core::option::Option, + ::core::option::Option, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 10)] @@ -52957,7 +52957,7 @@ pub mod api { PureCreated { pure: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, disambiguation_index: ::core::primitive::u16, at: ::core::primitive::u32, extrinsic_index: ::core::primitive::u32, @@ -52967,7 +52967,7 @@ pub mod api { PureKilled { pure: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, spawner: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, disambiguation_index: ::core::primitive::u16, }, #[codec(index = 3)] @@ -52982,7 +52982,7 @@ pub mod api { ProxyAdded { delegator: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, delegatee: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 5)] @@ -52990,7 +52990,7 @@ pub mod api { ProxyRemoved { delegator: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, delegatee: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::pezkuwichain_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 6)] @@ -53323,7 +53323,7 @@ pub mod api { (), >, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 1)] @@ -53619,7 +53619,7 @@ pub mod api { DepositPoked { who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, kind: runtime_types::pallet_recovery::DepositKind< - runtime_types::rococo_runtime::Runtime, + runtime_types::pezkuwichain_runtime::Runtime, >, old_deposit: ::core::primitive::u128, new_deposit: ::core::primitive::u128, @@ -53695,10 +53695,10 @@ pub mod api { #[doc = "Emits `Submitted`."] submit { proposal_origin: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::OriginCaller, + runtime_types::pezkuwichain_runtime::OriginCaller, >, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, enactment_moment: @@ -53855,7 +53855,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, }, @@ -53885,7 +53885,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, tally: runtime_types::pallet_conviction_voting::types::Tally< @@ -53978,7 +53978,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, }, @@ -54008,7 +54008,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, tally: runtime_types::pallet_ranked_collective::Tally, @@ -54326,7 +54326,7 @@ pub mod api { )>, priority: ::core::primitive::u8, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 1)] @@ -54349,7 +54349,7 @@ pub mod api { )>, priority: ::core::primitive::u8, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 3)] @@ -54367,7 +54367,7 @@ pub mod api { )>, priority: ::core::primitive::u8, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 5)] @@ -54381,7 +54381,7 @@ pub mod api { )>, priority: ::core::primitive::u8, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 6)] @@ -54624,7 +54624,7 @@ pub mod api { #[doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] #[doc = " fixed."] set_keys { - keys: runtime_types::rococo_runtime::SessionKeys, + keys: runtime_types::pezkuwichain_runtime::SessionKeys, proof: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] @@ -55619,7 +55619,7 @@ pub mod api { #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] sudo { call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 1)] @@ -55630,7 +55630,7 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Signed_."] sudo_unchecked_weight { call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, weight: runtime_types::sp_weights::weight_v2::Weight, }, @@ -55654,7 +55654,7 @@ pub mod api { (), >, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 4)] @@ -55960,7 +55960,7 @@ pub mod api { #[doc = "Emits [`Event::AssetSpendApproved`] if successful."] spend { asset_kind: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, >, #[codec(compact)] amount: ::core::primitive::u128, @@ -56134,7 +56134,7 @@ pub mod api { AssetSpendApproved { index: ::core::primitive::u32, asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + runtime_types::pezkuwi_runtime_common::impls::VersionedLocatableAsset, amount: ::core::primitive::u128, beneficiary: runtime_types::xcm::VersionedLocation, valid_from: ::core::primitive::u32, @@ -56243,7 +56243,7 @@ pub mod api { #[doc = "event is deposited."] batch { calls: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 1)] @@ -56263,7 +56263,7 @@ pub mod api { as_derivative { index: ::core::primitive::u16, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 2)] @@ -56282,7 +56282,7 @@ pub mod api { #[doc = "- O(C) where C is the number of calls to be batched."] batch_all { calls: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 3)] @@ -56294,10 +56294,10 @@ pub mod api { #[doc = "- O(1)."] dispatch_as { as_origin: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::OriginCaller, + runtime_types::pezkuwichain_runtime::OriginCaller, >, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 4)] @@ -56316,7 +56316,7 @@ pub mod api { #[doc = "- O(C) where C is the number of calls to be batched."] force_batch { calls: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 5)] @@ -56328,7 +56328,7 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Root_."] with_weight { call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, weight: runtime_types::sp_weights::weight_v2::Weight, }, @@ -56358,10 +56358,10 @@ pub mod api { #[doc = " or both."] if_else { main: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, fallback: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, #[codec(index = 7)] @@ -56372,10 +56372,10 @@ pub mod api { #[doc = "The dispatch origin for this call must be _Root_."] dispatch_as_fallible { as_origin: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::OriginCaller, + runtime_types::pezkuwichain_runtime::OriginCaller, >, call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, } @@ -56717,7 +56717,7 @@ pub mod api { #[codec(index = 3)] dispatch_whitelisted_call_with_preimage { call: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::pezkuwichain_runtime::RuntimeCall, >, }, } @@ -57383,7 +57383,7 @@ pub mod api { pub __ignore: ::core::marker::PhantomData<_1>, } } - pub mod polkadot_core_primitives { + pub mod pezkuwi_core_primitives { use super::runtime_types; #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -57427,7 +57427,7 @@ pub mod api { pub data: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>, } } - pub mod polkadot_parachain_primitives { + pub mod pezkuwi_parachain_primitives { use super::runtime_types; pub mod primitives { use super::runtime_types; @@ -57457,8 +57457,8 @@ pub mod api { crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] pub struct HrmpChannelId { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub sender: runtime_types::pezkuwi_parachain_primitives::primitives::Id, + pub recipient: runtime_types::pezkuwi_parachain_primitives::primitives::Id, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -57500,7 +57500,7 @@ pub mod api { pub struct ValidationCodeHash(pub ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256); } } - pub mod polkadot_primitives { + pub mod pezkuwi_primitives { use super::runtime_types; pub mod v9 { use super::runtime_types; @@ -57547,7 +57547,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct BackingState < _0 , _1 > { pub constraints : runtime_types :: polkadot_primitives :: v9 :: async_backing :: Constraints < _1 > , pub pending_availability : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v9 :: async_backing :: CandidatePendingAvailability < _0 , _1 > > , } + pub struct BackingState < _0 , _1 > { pub constraints : runtime_types :: pezkuwi_primitives :: v9 :: async_backing :: Constraints < _1 > , pub pending_availability : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: pezkuwi_primitives :: v9 :: async_backing :: CandidatePendingAvailability < _0 , _1 > > , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -57560,11 +57560,11 @@ pub mod api { crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] pub struct CandidatePendingAvailability<_0, _1> { - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, + pub candidate_hash: runtime_types::pezkuwi_core_primitives::CandidateHash, pub descriptor: - runtime_types::polkadot_primitives::v9::CandidateDescriptorV2<_0>, + runtime_types::pezkuwi_primitives::v9::CandidateDescriptorV2<_0>, pub commitments: - runtime_types::polkadot_primitives::v9::CandidateCommitments<_1>, + runtime_types::pezkuwi_primitives::v9::CandidateCommitments<_1>, pub relay_parent_number: _1, pub max_pov_size: ::core::primitive::u32, } @@ -57579,7 +57579,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct Constraints < _0 > { pub min_relay_parent_number : _0 , pub max_pov_size : :: core :: primitive :: u32 , pub max_code_size : :: core :: primitive :: u32 , pub max_head_data_size : :: core :: primitive :: u32 , pub ump_remaining : :: core :: primitive :: u32 , pub ump_remaining_bytes : :: core :: primitive :: u32 , pub max_ump_num_per_candidate : :: core :: primitive :: u32 , pub dmp_remaining_messages : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < _0 > , pub hrmp_inbound : runtime_types :: polkadot_primitives :: v9 :: async_backing :: InboundHrmpLimitations < _0 > , pub hrmp_channels_out : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: polkadot_primitives :: v9 :: async_backing :: OutboundHrmpChannelLimitations ,) > , pub max_hrmp_num_per_candidate : :: core :: primitive :: u32 , pub required_parent : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , pub upgrade_restriction : :: core :: option :: Option < runtime_types :: polkadot_primitives :: v9 :: UpgradeRestriction > , pub future_validation_code : :: core :: option :: Option < (_0 , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > , } + pub struct Constraints < _0 > { pub min_relay_parent_number : _0 , pub max_pov_size : :: core :: primitive :: u32 , pub max_code_size : :: core :: primitive :: u32 , pub max_head_data_size : :: core :: primitive :: u32 , pub ump_remaining : :: core :: primitive :: u32 , pub ump_remaining_bytes : :: core :: primitive :: u32 , pub max_ump_num_per_candidate : :: core :: primitive :: u32 , pub dmp_remaining_messages : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < _0 > , pub hrmp_inbound : runtime_types :: pezkuwi_primitives :: v9 :: async_backing :: InboundHrmpLimitations < _0 > , pub hrmp_channels_out : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , runtime_types :: pezkuwi_primitives :: v9 :: async_backing :: OutboundHrmpChannelLimitations ,) > , pub max_hrmp_num_per_candidate : :: core :: primitive :: u32 , pub required_parent : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HeadData , pub validation_code_hash : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , pub upgrade_restriction : :: core :: option :: Option < runtime_types :: pezkuwi_primitives :: v9 :: UpgradeRestriction > , pub future_validation_code : :: core :: option :: Option < (_0 , runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash ,) > , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -57649,12 +57649,12 @@ pub mod api { PrecheckingMaxMemory(::core::primitive::u64), #[codec(index = 5)] PvfPrepTimeout( - runtime_types::polkadot_primitives::v9::PvfPrepKind, + runtime_types::pezkuwi_primitives::v9::PvfPrepKind, ::core::primitive::u64, ), #[codec(index = 6)] PvfExecTimeout( - runtime_types::polkadot_primitives::v9::PvfExecKind, + runtime_types::pezkuwi_primitives::v9::PvfExecKind, ::core::primitive::u64, ), #[codec(index = 7)] @@ -57673,7 +57673,7 @@ pub mod api { )] pub struct ExecutorParams( pub ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::executor_params::ExecutorParam, + runtime_types::pezkuwi_primitives::v9::executor_params::ExecutorParam, >, ); } @@ -57692,9 +57692,9 @@ pub mod api { )] pub struct UncheckedSigned<_0, _1> { pub payload: _0, - pub validator_index: runtime_types::polkadot_primitives::v9::ValidatorIndex, + pub validator_index: runtime_types::pezkuwi_primitives::v9::ValidatorIndex, pub signature: - runtime_types::polkadot_primitives::v9::validator_app::Signature, + runtime_types::pezkuwi_primitives::v9::validator_app::Signature, #[codec(skip)] pub __ignore: ::core::marker::PhantomData<_1>, } @@ -57714,11 +57714,11 @@ pub mod api { )] pub struct DisputeProof { pub time_slot: - runtime_types::polkadot_primitives::v9::slashing::DisputesTimeSlot, - pub kind: runtime_types::polkadot_primitives::v9::DisputeOffenceKind, - pub validator_index: runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::slashing::DisputesTimeSlot, + pub kind: runtime_types::pezkuwi_primitives::v9::DisputeOffenceKind, + pub validator_index: runtime_types::pezkuwi_primitives::v9::ValidatorIndex, pub validator_id: - runtime_types::polkadot_primitives::v9::validator_app::Public, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -57733,7 +57733,7 @@ pub mod api { )] pub struct DisputesTimeSlot { pub session_index: ::core::primitive::u32, - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, + pub candidate_hash: runtime_types::pezkuwi_core_primitives::CandidateHash, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -57748,11 +57748,11 @@ pub mod api { )] pub struct LegacyPendingSlashes { pub keys: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::KeyedVec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, - runtime_types::polkadot_primitives::v9::validator_app::Public, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, >, pub kind: - runtime_types::polkadot_primitives::v9::slashing::SlashingOffenceKind, + runtime_types::pezkuwi_primitives::v9::slashing::SlashingOffenceKind, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -57781,10 +57781,10 @@ pub mod api { )] pub struct PendingSlashes { pub keys: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::KeyedVec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, - runtime_types::polkadot_primitives::v9::validator_app::Public, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, >, - pub kind: runtime_types::polkadot_primitives::v9::DisputeOffenceKind, + pub kind: runtime_types::pezkuwi_primitives::v9::DisputeOffenceKind, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -57875,9 +57875,9 @@ pub mod api { )] pub struct BackedCandidate<_0> { pub candidate: - runtime_types::polkadot_primitives::v9::CommittedCandidateReceiptV2<_0>, + runtime_types::pezkuwi_primitives::v9::CommittedCandidateReceiptV2<_0>, pub validity_votes: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidityAttestation, + runtime_types::pezkuwi_primitives::v9::ValidityAttestation, >, pub validator_indices: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::bits::DecodedBits< ::core::primitive::u8, @@ -57902,15 +57902,15 @@ pub mod api { >, pub horizontal_messages: runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::polkadot_core_primitives::OutboundHrmpMessage< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_core_primitives::OutboundHrmpMessage< + runtime_types::pezkuwi_parachain_primitives::primitives::Id, >, >, pub new_validation_code: ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode, >, pub head_data: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, pub processed_downward_messages: ::core::primitive::u32, pub hrmp_watermark: _0, } @@ -57925,7 +57925,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct CandidateDescriptorV2 < _0 > { pub para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , pub relay_parent : _0 , pub version : runtime_types :: polkadot_primitives :: v9 :: InternalVersion , pub core_index : :: core :: primitive :: u16 , pub session_index : :: core :: primitive :: u32 , pub reserved1 : [:: core :: primitive :: u8 ; 25usize] , pub persisted_validation_data_hash : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub pov_hash : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub erasure_root : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub reserved2 : [:: core :: primitive :: u8 ; 64usize] , pub para_head : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } + pub struct CandidateDescriptorV2 < _0 > { pub para_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , pub relay_parent : _0 , pub version : runtime_types :: pezkuwi_primitives :: v9 :: InternalVersion , pub core_index : :: core :: primitive :: u16 , pub session_index : :: core :: primitive :: u32 , pub reserved1 : [:: core :: primitive :: u8 ; 25usize] , pub persisted_validation_data_hash : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub pov_hash : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub erasure_root : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub reserved2 : [:: core :: primitive :: u8 ; 64usize] , pub para_head : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: H256 , pub validation_code_hash : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -57940,23 +57940,23 @@ pub mod api { pub enum CandidateEvent<_0> { #[codec(index = 0)] CandidateBacked( - runtime_types::polkadot_primitives::v9::CandidateReceiptV2<_0>, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v9::CoreIndex, - runtime_types::polkadot_primitives::v9::GroupIndex, + runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2<_0>, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::GroupIndex, ), #[codec(index = 1)] CandidateIncluded( - runtime_types::polkadot_primitives::v9::CandidateReceiptV2<_0>, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v9::CoreIndex, - runtime_types::polkadot_primitives::v9::GroupIndex, + runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2<_0>, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::GroupIndex, ), #[codec(index = 2)] CandidateTimedOut( - runtime_types::polkadot_primitives::v9::CandidateReceiptV2<_0>, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2<_0>, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_primitives::v9::CoreIndex, ), } #[derive( @@ -57972,7 +57972,7 @@ pub mod api { )] pub struct CandidateReceiptV2<_0> { pub descriptor: - runtime_types::polkadot_primitives::v9::CandidateDescriptorV2<_0>, + runtime_types::pezkuwi_primitives::v9::CandidateDescriptorV2<_0>, pub commitments_hash: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, } #[derive( @@ -57988,8 +57988,8 @@ pub mod api { )] pub struct CommittedCandidateReceiptV2<_0> { pub descriptor: - runtime_types::polkadot_primitives::v9::CandidateDescriptorV2<_0>, - pub commitments: runtime_types::polkadot_primitives::v9::CandidateCommitments< + runtime_types::pezkuwi_primitives::v9::CandidateDescriptorV2<_0>, + pub commitments: runtime_types::pezkuwi_primitives::v9::CandidateCommitments< ::core::primitive::u32, >, } @@ -58018,9 +58018,9 @@ pub mod api { )] pub enum CoreState<_0, _1> { #[codec(index = 0)] - Occupied(runtime_types::polkadot_primitives::v9::OccupiedCore<_0, _1>), + Occupied(runtime_types::pezkuwi_primitives::v9::OccupiedCore<_0, _1>), #[codec(index = 1)] - Scheduled(runtime_types::polkadot_primitives::v9::ScheduledCore), + Scheduled(runtime_types::pezkuwi_primitives::v9::ScheduledCore), #[codec(index = 2)] Free, } @@ -58079,9 +58079,9 @@ pub mod api { )] pub enum DisputeStatement { #[codec(index = 0)] - Valid(runtime_types::polkadot_primitives::v9::ValidDisputeStatementKind), + Valid(runtime_types::pezkuwi_primitives::v9::ValidDisputeStatementKind), #[codec(index = 1)] - Invalid(runtime_types::polkadot_primitives::v9::InvalidDisputeStatementKind), + Invalid(runtime_types::pezkuwi_primitives::v9::InvalidDisputeStatementKind), } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -58095,12 +58095,12 @@ pub mod api { crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] pub struct DisputeStatementSet { - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, + pub candidate_hash: runtime_types::pezkuwi_core_primitives::CandidateHash, pub session: ::core::primitive::u32, pub statements: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( - runtime_types::polkadot_primitives::v9::DisputeStatement, - runtime_types::polkadot_primitives::v9::ValidatorIndex, - runtime_types::polkadot_primitives::v9::validator_app::Signature, + runtime_types::pezkuwi_primitives::v9::DisputeStatement, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::validator_app::Signature, )>, } #[derive( @@ -58159,18 +58159,18 @@ pub mod api { )] pub struct InherentData<_0> { pub bitfields: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::signed::UncheckedSigned< - runtime_types::polkadot_primitives::v9::AvailabilityBitfield, - runtime_types::polkadot_primitives::v9::AvailabilityBitfield, + runtime_types::pezkuwi_primitives::v9::signed::UncheckedSigned< + runtime_types::pezkuwi_primitives::v9::AvailabilityBitfield, + runtime_types::pezkuwi_primitives::v9::AvailabilityBitfield, >, >, pub backed_candidates: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::BackedCandidate< + runtime_types::pezkuwi_primitives::v9::BackedCandidate< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, >, pub disputes: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::DisputeStatementSet, + runtime_types::pezkuwi_primitives::v9::DisputeStatementSet, >, pub parent_header: _0, } @@ -58214,21 +58214,21 @@ pub mod api { )] pub struct OccupiedCore<_0, _1> { pub next_up_on_available: ::core::option::Option< - runtime_types::polkadot_primitives::v9::ScheduledCore, + runtime_types::pezkuwi_primitives::v9::ScheduledCore, >, pub occupied_since: _1, pub time_out_at: _1, pub next_up_on_time_out: ::core::option::Option< - runtime_types::polkadot_primitives::v9::ScheduledCore, + runtime_types::pezkuwi_primitives::v9::ScheduledCore, >, pub availability: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::bits::DecodedBits< ::core::primitive::u8, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::bits::Lsb0, >, - pub group_responsible: runtime_types::polkadot_primitives::v9::GroupIndex, - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, + pub group_responsible: runtime_types::pezkuwi_primitives::v9::GroupIndex, + pub candidate_hash: runtime_types::pezkuwi_core_primitives::CandidateHash, pub candidate_descriptor: - runtime_types::polkadot_primitives::v9::CandidateDescriptorV2<_0>, + runtime_types::pezkuwi_primitives::v9::CandidateDescriptorV2<_0>, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -58262,7 +58262,7 @@ pub mod api { )] pub struct PersistedValidationData<_0, _1> { pub parent_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, pub relay_parent_number: _1, pub relay_parent_storage_root: _0, pub max_pov_size: ::core::primitive::u32, @@ -58278,7 +58278,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct PvfCheckStatement { pub accept : :: core :: primitive :: bool , pub subject : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , pub session_index : :: core :: primitive :: u32 , pub validator_index : runtime_types :: polkadot_primitives :: v9 :: ValidatorIndex , } + pub struct PvfCheckStatement { pub accept : :: core :: primitive :: bool , pub subject : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , pub session_index : :: core :: primitive :: u32 , pub validator_index : runtime_types :: pezkuwi_primitives :: v9 :: ValidatorIndex , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -58325,9 +58325,9 @@ pub mod api { crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] pub struct ScheduledCore { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + pub para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, pub collator: ::core::option::Option< - runtime_types::polkadot_primitives::v9::collator_app::Public, + runtime_types::pezkuwi_primitives::v9::collator_app::Public, >, } #[derive( @@ -58371,14 +58371,14 @@ pub mod api { pub session: ::core::primitive::u32, pub backing_validators_per_candidate: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( - runtime_types::polkadot_primitives::v9::CandidateReceiptV2<_0>, + runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2<_0>, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( - runtime_types::polkadot_primitives::v9::ValidatorIndex, - runtime_types::polkadot_primitives::v9::ValidityAttestation, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidityAttestation, )>, )>, pub disputes: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::DisputeStatementSet, + runtime_types::pezkuwi_primitives::v9::DisputeStatementSet, >, } #[derive( @@ -58394,24 +58394,24 @@ pub mod api { )] pub struct SessionInfo { pub active_validator_indices: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, >, pub random_seed: [::core::primitive::u8; 32usize], pub dispute_period: ::core::primitive::u32, - pub validators: runtime_types::polkadot_primitives::v9::IndexedVec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, - runtime_types::polkadot_primitives::v9::validator_app::Public, + pub validators: runtime_types::pezkuwi_primitives::v9::IndexedVec< + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, >, pub discovery_keys: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< runtime_types::sp_authority_discovery::app::Public, >, pub assignment_keys: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::assignment_app::Public, + runtime_types::pezkuwi_primitives::v9::assignment_app::Public, >, - pub validator_groups: runtime_types::polkadot_primitives::v9::IndexedVec< - runtime_types::polkadot_primitives::v9::GroupIndex, + pub validator_groups: runtime_types::pezkuwi_primitives::v9::IndexedVec< + runtime_types::pezkuwi_primitives::v9::GroupIndex, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::ValidatorIndex, + runtime_types::pezkuwi_primitives::v9::ValidatorIndex, >, >, pub n_cores: ::core::primitive::u32, @@ -58476,7 +58476,7 @@ pub mod api { #[codec(index = 4)] ApprovalCheckingMultipleCandidates( ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_core_primitives::CandidateHash, + runtime_types::pezkuwi_core_primitives::CandidateHash, >, ), } @@ -58505,13 +58505,13 @@ pub mod api { )] pub enum ValidityAttestation { #[codec(index = 1)] - Implicit(runtime_types::polkadot_primitives::v9::validator_app::Signature), + Implicit(runtime_types::pezkuwi_primitives::v9::validator_app::Signature), #[codec(index = 2)] - Explicit(runtime_types::polkadot_primitives::v9::validator_app::Signature), + Explicit(runtime_types::pezkuwi_primitives::v9::validator_app::Signature), } } } - pub mod polkadot_runtime_common { + pub mod pezkuwi_runtime_common { use super::runtime_types; pub mod assigned_slots { use super::runtime_types; @@ -58530,7 +58530,7 @@ pub mod api { )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Assign a permanent parachain slot and immediately create a lease for it."] assign_perm_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 1)] # [doc = "Assign a temporary parachain slot. The function tries to create a lease for it"] # [doc = "immediately if `SlotLeasePeriodStart::Current` is specified, and if the number"] # [doc = "of currently active temporary slots is below `MaxTemporarySlotPerLeasePeriod`."] assign_temp_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } , # [codec (index = 2)] # [doc = "Unassign a permanent or temporary parachain slot"] unassign_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Sets the storage value [`MaxPermanentSlots`]."] set_max_permanent_slots { slots : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Sets the storage value [`MaxTemporarySlots`]."] set_max_temporary_slots { slots : :: core :: primitive :: u32 , } , } + # [codec (index = 0)] # [doc = "Assign a permanent parachain slot and immediately create a lease for it."] assign_perm_parachain_slot { id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 1)] # [doc = "Assign a temporary parachain slot. The function tries to create a lease for it"] # [doc = "immediately if `SlotLeasePeriodStart::Current` is specified, and if the number"] # [doc = "of currently active temporary slots is below `MaxTemporarySlotPerLeasePeriod`."] assign_temp_parachain_slot { id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , lease_period_start : runtime_types :: pezkuwi_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } , # [codec (index = 2)] # [doc = "Unassign a permanent or temporary parachain slot"] unassign_parachain_slot { id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Sets the storage value [`MaxPermanentSlots`]."] set_max_permanent_slots { slots : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Sets the storage value [`MaxTemporarySlots`]."] set_max_temporary_slots { slots : :: core :: primitive :: u32 , } , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -58588,12 +58588,12 @@ pub mod api { #[codec(index = 0)] #[doc = "A parachain was assigned a permanent parachain slot"] PermanentSlotAssigned( - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ), #[codec(index = 1)] #[doc = "A parachain was assigned a temporary parachain slot"] TemporarySlotAssigned( - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ), #[codec(index = 2)] #[doc = "The maximum number of permanent slots has been changed"] @@ -58687,7 +58687,7 @@ pub mod api { #[doc = "bid win. This amount is held throughout the range."] bid { #[codec(compact)] - para: runtime_types::polkadot_parachain_primitives::primitives::Id, + para: runtime_types::pezkuwi_parachain_primitives::primitives::Id, #[codec(compact)] auction_index: ::core::primitive::u32, #[codec(compact)] @@ -58782,7 +58782,7 @@ pub mod api { #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in"] #[doc = "reserve but no parachain slot has been leased."] ReserveConfiscated { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, leaser: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, amount: ::core::primitive::u128, }, @@ -58790,7 +58790,7 @@ pub mod api { #[doc = "A new bid has been accepted as the current winner."] BidAccepted { bidder: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, amount: ::core::primitive::u128, first_slot: ::core::primitive::u32, last_slot: ::core::primitive::u32, @@ -58850,7 +58850,7 @@ pub mod api { claim { dest: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, + runtime_types::pezkuwi_runtime_common::claims::EcdsaSignature, }, #[codec(index = 1)] #[doc = "Mint a new claim to collect DOTs."] @@ -58869,7 +58869,7 @@ pub mod api { #[doc = "Total Complexity: O(1)"] #[doc = ""] mint_claim { - who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, + who: runtime_types::pezkuwi_runtime_common::claims::EthereumAddress, value: ::core::primitive::u128, vesting_schedule: ::core::option::Option<( ::core::primitive::u128, @@ -58877,7 +58877,7 @@ pub mod api { ::core::primitive::u32, )>, statement: ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, + runtime_types::pezkuwi_runtime_common::claims::StatementKind, >, }, #[codec(index = 2)] @@ -58911,7 +58911,7 @@ pub mod api { claim_attest { dest: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, + runtime_types::pezkuwi_runtime_common::claims::EcdsaSignature, statement: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, @@ -58941,8 +58941,8 @@ pub mod api { }, #[codec(index = 4)] move_claim { - old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, + old: runtime_types::pezkuwi_runtime_common::claims::EthereumAddress, + new: runtime_types::pezkuwi_runtime_common::claims::EthereumAddress, maybe_preclaim: ::core::option::Option< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, >, @@ -58999,7 +58999,7 @@ pub mod api { Claimed { who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, ethereum_address: - runtime_types::polkadot_runtime_common::claims::EthereumAddress, + runtime_types::pezkuwi_runtime_common::claims::EthereumAddress, amount: ::core::primitive::u128, }, } @@ -59071,7 +59071,7 @@ pub mod api { #[doc = "by the parachain manager."] create { #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, #[codec(compact)] cap: ::core::primitive::u128, #[codec(compact)] @@ -59088,7 +59088,7 @@ pub mod api { #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] contribute { #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, #[codec(compact)] value: ::core::primitive::u128, signature: @@ -59115,7 +59115,7 @@ pub mod api { withdraw { who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 3)] #[doc = "Automatically refund contributors of an ended crowdloan."] @@ -59125,13 +59125,13 @@ pub mod api { #[doc = "Origin must be signed, but can come from anyone."] refund { #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 4)] #[doc = "Remove a fund after the retirement period has ended and all funds have been returned."] dissolve { #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 5)] #[doc = "Edit the configuration for an in-progress crowdloan."] @@ -59139,7 +59139,7 @@ pub mod api { #[doc = "Can only be called by Root origin."] edit { #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, #[codec(compact)] cap: ::core::primitive::u128, #[codec(compact)] @@ -59156,7 +59156,7 @@ pub mod api { #[doc = ""] #[doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] add_memo { - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, memo: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, #[codec(index = 7)] @@ -59164,7 +59164,7 @@ pub mod api { #[doc = ""] #[doc = "Origin must be Signed, and the fund has non-zero raise."] poke { - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 8)] #[doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of"] @@ -59172,7 +59172,7 @@ pub mod api { #[doc = "ended and the funds are unused."] contribute_all { #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, + index: runtime_types::pezkuwi_parachain_primitives::primitives::Id, signature: ::core::option::Option, }, @@ -59277,14 +59277,14 @@ pub mod api { #[codec(index = 0)] #[doc = "Create a new crowdloaning campaign."] Created { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 1)] #[doc = "Contributed to a crowd sale."] Contributed { who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, fund_index: - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, amount: ::core::primitive::u128, }, #[codec(index = 2)] @@ -59292,29 +59292,29 @@ pub mod api { Withdrew { who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, fund_index: - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, amount: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] #[doc = "over child keys that still need to be killed."] PartiallyRefunded { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 4)] #[doc = "All loans in a fund have been refunded."] AllRefunded { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 5)] #[doc = "Fund is dissolved."] Dissolved { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 6)] #[doc = "The result of trying to submit a new bid to the Slots pallet."] HandleBidResult { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, result: ::core::result::Result< (), runtime_types::sp_runtime::DispatchError, @@ -59323,19 +59323,19 @@ pub mod api { #[codec(index = 7)] #[doc = "The configuration to a crowdloan has been edited."] Edited { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 8)] #[doc = "A memo has been updated."] MemoUpdated { who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, memo: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<::core::primitive::u8>, }, #[codec(index = 9)] #[doc = "A parachain has been moved to `NewRaise`"] AddedToNewRaise { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, } } @@ -59358,7 +59358,7 @@ pub mod api { pub end: _2, pub cap: _1, pub last_contribution: - runtime_types::polkadot_runtime_common::crowdloan::LastContribution<_2>, + runtime_types::pezkuwi_runtime_common::crowdloan::LastContribution<_2>, pub first_period: _3, pub last_period: _3, pub fund_index: ::core::primitive::u32, @@ -59490,7 +59490,7 @@ pub mod api { )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Register head data and validation code for a reserved Para Id."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin."] # [doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] # [doc = "- `genesis_head`: The genesis head data of the parachain/thread."] # [doc = "- `validation_code`: The initial validation code of the parachain/thread."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The account with the originating signature must reserve a deposit."] # [doc = ""] # [doc = "The deposit is required to cover the costs associated with storing the genesis head"] # [doc = "data and the validation code."] # [doc = "This accounts for the potential to store validation code of a size up to the"] # [doc = "`max_code_size`, as defined in the configuration pallet"] # [doc = ""] # [doc = "Anything already reserved previously for this para ID is accounted for."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Registered` event is emitted in case of success."] register { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "Force the registration of a Para Id on the relay chain."] # [doc = ""] # [doc = "This function must be called by a Root origin."] # [doc = ""] # [doc = "The deposit taken can be specified for this registration. Any `ParaId`"] # [doc = "can be registered, including sub-1000 IDs which are System Parachains."] force_register { who : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , deposit : :: core :: primitive :: u128 , id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 2)] # [doc = "Deregister a Para Id, freeing all data and returning any deposit."] # [doc = ""] # [doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be an"] # [doc = "on-demand parachain."] deregister { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Swap a lease holding parachain with another parachain, either on-demand or lease"] # [doc = "holding."] # [doc = ""] # [doc = "The origin must be Root, the `para` owner, or the `para` itself."] # [doc = ""] # [doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] # [doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] # [doc = ""] # [doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] # [doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] # [doc = "scheduling info (i.e. whether they're an on-demand parachain or lease holding"] # [doc = "parachain), auction information and the auction deposit are switched."] swap { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , other : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 4)] # [doc = "Remove a manager lock from a para. This will allow the manager of a"] # [doc = "previously locked para to deregister or swap a para without using governance."] # [doc = ""] # [doc = "Can only be called by the Root origin or the parachain."] remove_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Reserve a Para Id on the relay chain."] # [doc = ""] # [doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] # [doc = "The origin account is able to register head data and validation code using `register` to"] # [doc = "create an on-demand parachain. Using the Slots pallet, an on-demand parachain can then"] # [doc = "be upgraded to a lease holding parachain."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new"] # [doc = " para ID."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for"] # [doc = "use."] reserve , # [codec (index = 6)] # [doc = "Add a manager lock from a para. This will prevent the manager of a"] # [doc = "para to deregister or swap a para."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] add_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 7)] # [doc = "Schedule a parachain upgrade."] # [doc = ""] # [doc = "This will kick off a check of `new_code` by all validators. After the majority of the"] # [doc = "validators have reported on the validity of the code, the code will either be enacted"] # [doc = "or the upgrade will be rejected. If the code will be enacted, the current code of the"] # [doc = "parachain will be overwritten directly. This means that any PoV will be checked by this"] # [doc = "new code. The parachain itself will not be informed explicitly that the validation code"] # [doc = "has changed."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] schedule_code_upgrade { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 8)] # [doc = "Set the parachain's current head."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] set_current_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , } + # [codec (index = 0)] # [doc = "Register head data and validation code for a reserved Para Id."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin."] # [doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] # [doc = "- `genesis_head`: The genesis head data of the parachain/thread."] # [doc = "- `validation_code`: The initial validation code of the parachain/thread."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The account with the originating signature must reserve a deposit."] # [doc = ""] # [doc = "The deposit is required to cover the costs associated with storing the genesis head"] # [doc = "data and the validation code."] # [doc = "This accounts for the potential to store validation code of a size up to the"] # [doc = "`max_code_size`, as defined in the configuration pallet"] # [doc = ""] # [doc = "Anything already reserved previously for this para ID is accounted for."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Registered` event is emitted in case of success."] register { id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "Force the registration of a Para Id on the relay chain."] # [doc = ""] # [doc = "This function must be called by a Root origin."] # [doc = ""] # [doc = "The deposit taken can be specified for this registration. Any `ParaId`"] # [doc = "can be registered, including sub-1000 IDs which are System Parachains."] force_register { who : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , deposit : :: core :: primitive :: u128 , id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 2)] # [doc = "Deregister a Para Id, freeing all data and returning any deposit."] # [doc = ""] # [doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be an"] # [doc = "on-demand parachain."] deregister { id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Swap a lease holding parachain with another parachain, either on-demand or lease"] # [doc = "holding."] # [doc = ""] # [doc = "The origin must be Root, the `para` owner, or the `para` itself."] # [doc = ""] # [doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] # [doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] # [doc = ""] # [doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] # [doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] # [doc = "scheduling info (i.e. whether they're an on-demand parachain or lease holding"] # [doc = "parachain), auction information and the auction deposit are switched."] swap { id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , other : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 4)] # [doc = "Remove a manager lock from a para. This will allow the manager of a"] # [doc = "previously locked para to deregister or swap a para without using governance."] # [doc = ""] # [doc = "Can only be called by the Root origin or the parachain."] remove_lock { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Reserve a Para Id on the relay chain."] # [doc = ""] # [doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] # [doc = "The origin account is able to register head data and validation code using `register` to"] # [doc = "create an on-demand parachain. Using the Slots pallet, an on-demand parachain can then"] # [doc = "be upgraded to a lease holding parachain."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new"] # [doc = " para ID."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for"] # [doc = "use."] reserve , # [codec (index = 6)] # [doc = "Add a manager lock from a para. This will prevent the manager of a"] # [doc = "para to deregister or swap a para."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] add_lock { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 7)] # [doc = "Schedule a parachain upgrade."] # [doc = ""] # [doc = "This will kick off a check of `new_code` by all validators. After the majority of the"] # [doc = "validators have reported on the validity of the code, the code will either be enacted"] # [doc = "or the upgrade will be rejected. If the code will be enacted, the current code of the"] # [doc = "parachain will be overwritten directly. This means that any PoV will be checked by this"] # [doc = "new code. The parachain itself will not be informed explicitly that the validation code"] # [doc = "has changed."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] schedule_code_upgrade { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_code : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 8)] # [doc = "Set the parachain's current head."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] set_current_head { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_head : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HeadData , } , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -59564,22 +59564,22 @@ pub mod api { pub enum Event { #[codec(index = 0)] Registered { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, manager: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, }, #[codec(index = 1)] Deregistered { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 2)] Reserved { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, who: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, }, #[codec(index = 3)] Swapped { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - other_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, + other_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, } } @@ -59624,24 +59624,24 @@ pub mod api { #[doc = "assigns Coretime to the chain and increases the number of cores. Thus, there is no"] #[doc = "running coretime chain required."] sudo_schedule_para_initialize { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, + id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, genesis: - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, + runtime_types::pezkuwi_runtime_parachains::paras::ParaGenesisArgs, }, #[codec(index = 1)] #[doc = "Schedule a para to be cleaned up at the start of the next session."] sudo_schedule_para_cleanup { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, + id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 2)] #[doc = "Upgrade a parathread (on-demand parachain) to a lease holding parachain"] sudo_schedule_parathread_upgrade { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, + id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 3)] #[doc = "Downgrade a lease holding parachain to an on-demand parachain"] sudo_schedule_parachain_downgrade { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, + id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 4)] #[doc = "Send a downward XCM to the given para."] @@ -59649,7 +59649,7 @@ pub mod api { #[doc = "The given parachain should exist and the payload should not exceed the preconfigured"] #[doc = "size `config.max_downward_message_size`."] sudo_queue_downward_xcm { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, + id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, xcm: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< runtime_types::xcm::VersionedXcm, >, @@ -59660,8 +59660,8 @@ pub mod api { #[doc = "This is equivalent to sending an `Hrmp::hrmp_init_open_channel` extrinsic followed by"] #[doc = "`Hrmp::hrmp_accept_open_channel`."] sudo_establish_hrmp_channel { - sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, + sender: runtime_types::pezkuwi_parachain_primitives::primitives::Id, + recipient: runtime_types::pezkuwi_parachain_primitives::primitives::Id, max_capacity: ::core::primitive::u32, max_message_size: ::core::primitive::u32, }, @@ -59736,7 +59736,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] force_lease { - para: runtime_types::polkadot_parachain_primitives::primitives::Id, + para: runtime_types::pezkuwi_parachain_primitives::primitives::Id, leaser: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, amount: ::core::primitive::u128, period_begin: ::core::primitive::u32, @@ -59747,7 +59747,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] clear_all_leases { - para: runtime_types::polkadot_parachain_primitives::primitives::Id, + para: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 2)] #[doc = "Try to onboard a parachain that has a lease for the current lease period."] @@ -59758,7 +59758,7 @@ pub mod api { #[doc = ""] #[doc = "Origin must be signed, but can be called by anyone."] trigger_onboard { - para: runtime_types::polkadot_parachain_primitives::primitives::Id, + para: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, } #[derive( @@ -59804,7 +59804,7 @@ pub mod api { #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] #[doc = "Second balance is the total amount reserved."] Leased { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, leaser: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, period_begin: ::core::primitive::u32, period_count: ::core::primitive::u32, @@ -59815,7 +59815,7 @@ pub mod api { } } } - pub mod polkadot_runtime_parachains { + pub mod pezkuwi_runtime_parachains { use super::runtime_types; pub mod assigner_coretime { use super::runtime_types; @@ -59855,9 +59855,9 @@ pub mod api { )] pub struct AssignmentState { pub ratio: - runtime_types::polkadot_runtime_parachains::assigner_coretime::PartsOf57600, + runtime_types::pezkuwi_runtime_parachains::assigner_coretime::PartsOf57600, pub remaining: - runtime_types::polkadot_runtime_parachains::assigner_coretime::PartsOf57600, + runtime_types::pezkuwi_runtime_parachains::assigner_coretime::PartsOf57600, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -59870,7 +59870,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct CoreDescriptor < _0 > { pub queue : :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: QueueDescriptor < _0 > > , pub current_work : :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: WorkState < _0 > > , } + pub struct CoreDescriptor < _0 > { pub queue : :: core :: option :: Option < runtime_types :: pezkuwi_runtime_parachains :: assigner_coretime :: QueueDescriptor < _0 > > , pub current_work : :: core :: option :: Option < runtime_types :: pezkuwi_runtime_parachains :: assigner_coretime :: WorkState < _0 > > , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -59912,7 +59912,7 @@ pub mod api { pub struct Schedule<_0> { pub assignments: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec<( runtime_types::pallet_broker::coretime_interface::CoreAssignment, - runtime_types::polkadot_runtime_parachains::assigner_coretime::PartsOf57600, + runtime_types::pezkuwi_runtime_parachains::assigner_coretime::PartsOf57600, )>, pub end_hint: ::core::option::Option<_0>, pub next_schedule: ::core::option::Option<_0>, @@ -59928,7 +59928,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct WorkState < _0 > { pub assignments : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: AssignmentState ,) > , pub end_hint : :: core :: option :: Option < _0 > , pub pos : :: core :: primitive :: u16 , pub step : runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 , } + pub struct WorkState < _0 > { pub assignments : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: pezkuwi_runtime_parachains :: assigner_coretime :: AssignmentState ,) > , pub end_hint : :: core :: option :: Option < _0 > , pub pos : :: core :: primitive :: u16 , pub step : runtime_types :: pezkuwi_runtime_parachains :: assigner_coretime :: PartsOf57600 , } } pub mod configuration { use super::runtime_types; @@ -59947,7 +59947,7 @@ pub mod api { )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Set the validation upgrade cooldown."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Set the validation upgrade delay."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Set the acceptance period for an included candidate."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Set the max validation code size for incoming upgrades."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Set the max POV block size for incoming upgrades."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Set the max head data size for paras."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the number of coretime execution cores."] # [doc = ""] # [doc = "NOTE: that this configuration is managed by the coretime chain. Only manually change"] # [doc = "this, if you really know what you are doing!"] set_coretime_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Set the parachain validator-group rotation frequency"] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "Set the availability period for paras."] set_paras_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "Set the maximum number of validators to assign to any core."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "Set the maximum number of validators to use in parachain consensus."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Set the dispute period, in number of sessions to keep for disputes."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Set the dispute post conclusion acceptance period."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "Set the no show slots, in number of number of consensus slots."] # [doc = "Must be at least 1."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "Set the total number of delay tranches."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "Set the zeroth delay tranche width."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Set the number of validators needed to approve a block."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "Sets the maximum items that can present in a upward dispatch queue at once."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "Sets the maximum total size of items that can present in a upward dispatch queue at"] # [doc = "once."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "Set the critical downward message size."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "Sets the maximum size of an upward message that can be sent by a candidate."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "Sets the maximum number of messages that a candidate can contain."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "Sets the number of sessions after which an HRMP open channel request expires."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] # [doc = "channel."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 42)] # [doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] # [doc = "upgrade taking place."] # [doc = ""] # [doc = "See the field documentation for information and constraints for the new value."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "Setting this to true will disable consistency checks for the configuration setters."] # [doc = "Use with caution."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "Set the asynchronous backing parameters."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: v9 :: async_backing :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "Set PVF executor parameters."] set_executor_params { new : runtime_types :: polkadot_primitives :: v9 :: executor_params :: ExecutorParams , } , # [codec (index = 47)] # [doc = "Set the on demand (parathreads) base fee."] set_on_demand_base_fee { new : :: core :: primitive :: u128 , } , # [codec (index = 48)] # [doc = "Set the on demand (parathreads) fee variability."] set_on_demand_fee_variability { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 49)] # [doc = "Set the on demand (parathreads) queue max size."] set_on_demand_queue_max_size { new : :: core :: primitive :: u32 , } , # [codec (index = 50)] # [doc = "Set the on demand (parathreads) fee variability."] set_on_demand_target_queue_utilization { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 52)] # [doc = "Set the minimum backing votes threshold."] set_minimum_backing_votes { new : :: core :: primitive :: u32 , } , # [codec (index = 53)] # [doc = "Set/Unset a node feature."] set_node_feature { index : :: core :: primitive :: u8 , value : :: core :: primitive :: bool , } , # [codec (index = 54)] # [doc = "Set approval-voting-params."] set_approval_voting_params { new : runtime_types :: polkadot_primitives :: v9 :: ApprovalVotingParams , } , # [codec (index = 55)] # [doc = "Set scheduler-params."] set_scheduler_params { new : runtime_types :: polkadot_primitives :: v9 :: SchedulerParams < :: core :: primitive :: u32 > , } , } + # [codec (index = 0)] # [doc = "Set the validation upgrade cooldown."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Set the validation upgrade delay."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Set the acceptance period for an included candidate."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Set the max validation code size for incoming upgrades."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Set the max POV block size for incoming upgrades."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Set the max head data size for paras."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the number of coretime execution cores."] # [doc = ""] # [doc = "NOTE: that this configuration is managed by the coretime chain. Only manually change"] # [doc = "this, if you really know what you are doing!"] set_coretime_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Set the parachain validator-group rotation frequency"] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "Set the availability period for paras."] set_paras_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "Set the maximum number of validators to assign to any core."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "Set the maximum number of validators to use in parachain consensus."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Set the dispute period, in number of sessions to keep for disputes."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Set the dispute post conclusion acceptance period."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "Set the no show slots, in number of number of consensus slots."] # [doc = "Must be at least 1."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "Set the total number of delay tranches."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "Set the zeroth delay tranche width."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Set the number of validators needed to approve a block."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "Sets the maximum items that can present in a upward dispatch queue at once."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "Sets the maximum total size of items that can present in a upward dispatch queue at"] # [doc = "once."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "Set the critical downward message size."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "Sets the maximum size of an upward message that can be sent by a candidate."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "Sets the maximum number of messages that a candidate can contain."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "Sets the number of sessions after which an HRMP open channel request expires."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] # [doc = "channel."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 42)] # [doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] # [doc = "upgrade taking place."] # [doc = ""] # [doc = "See the field documentation for information and constraints for the new value."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "Setting this to true will disable consistency checks for the configuration setters."] # [doc = "Use with caution."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "Set the asynchronous backing parameters."] set_async_backing_params { new : runtime_types :: pezkuwi_primitives :: v9 :: async_backing :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "Set PVF executor parameters."] set_executor_params { new : runtime_types :: pezkuwi_primitives :: v9 :: executor_params :: ExecutorParams , } , # [codec (index = 47)] # [doc = "Set the on demand (parathreads) base fee."] set_on_demand_base_fee { new : :: core :: primitive :: u128 , } , # [codec (index = 48)] # [doc = "Set the on demand (parathreads) fee variability."] set_on_demand_fee_variability { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 49)] # [doc = "Set the on demand (parathreads) queue max size."] set_on_demand_queue_max_size { new : :: core :: primitive :: u32 , } , # [codec (index = 50)] # [doc = "Set the on demand (parathreads) fee variability."] set_on_demand_target_queue_utilization { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 52)] # [doc = "Set the minimum backing votes threshold."] set_minimum_backing_votes { new : :: core :: primitive :: u32 , } , # [codec (index = 53)] # [doc = "Set/Unset a node feature."] set_node_feature { index : :: core :: primitive :: u8 , value : :: core :: primitive :: bool , } , # [codec (index = 54)] # [doc = "Set approval-voting-params."] set_approval_voting_params { new : runtime_types :: pezkuwi_primitives :: v9 :: ApprovalVotingParams , } , # [codec (index = 55)] # [doc = "Set scheduler-params."] set_scheduler_params { new : runtime_types :: pezkuwi_primitives :: v9 :: SchedulerParams < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -59988,7 +59988,7 @@ pub mod api { pub validation_upgrade_cooldown: _0, pub validation_upgrade_delay: _0, pub async_backing_params: - runtime_types::polkadot_primitives::v9::async_backing::AsyncBackingParams, + runtime_types::pezkuwi_primitives::v9::async_backing::AsyncBackingParams, pub max_pov_size: ::core::primitive::u32, pub max_downward_message_size: ::core::primitive::u32, pub hrmp_max_parachain_outbound_channels: ::core::primitive::u32, @@ -59999,7 +59999,7 @@ pub mod api { pub hrmp_max_parachain_inbound_channels: ::core::primitive::u32, pub hrmp_channel_max_message_size: ::core::primitive::u32, pub executor_params: - runtime_types::polkadot_primitives::v9::executor_params::ExecutorParams, + runtime_types::pezkuwi_primitives::v9::executor_params::ExecutorParams, pub code_retention_period: _0, pub max_validators: ::core::option::Option<_0>, pub dispute_period: ::core::primitive::u32, @@ -60017,9 +60017,9 @@ pub mod api { ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::bits::Lsb0, >, pub approval_voting_params: - runtime_types::polkadot_primitives::v9::ApprovalVotingParams, + runtime_types::pezkuwi_primitives::v9::ApprovalVotingParams, pub scheduler_params: - runtime_types::polkadot_primitives::v9::SchedulerParams<_0>, + runtime_types::pezkuwi_primitives::v9::SchedulerParams<_0>, } } pub mod coretime { @@ -60039,7 +60039,7 @@ pub mod api { )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 1)] # [doc = "Request the configuration to be updated with the specified number of cores. Warning:"] # [doc = "Since this only schedules a configuration update, it takes two sessions to come into"] # [doc = "effect."] # [doc = ""] # [doc = "- `origin`: Root or the Coretime Chain"] # [doc = "- `count`: total number of cores"] request_core_count { count : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "Request to claim the instantaneous coretime sales revenue starting from the block it was"] # [doc = "last claimed until and up to the block specified. The claimed amount value is sent back"] # [doc = "to the Coretime chain in a `notify_revenue` message. At the same time, the amount is"] # [doc = "teleported to the Coretime chain."] request_revenue_at { when : :: core :: primitive :: u32 , } , # [codec (index = 3)] credit_account { who : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is"] # [doc = "to be used."] # [doc = ""] # [doc = "Parameters:"] # [doc = "-`origin`: The `ExternalBrokerOrigin`, assumed to be the coretime chain."] # [doc = "-`core`: The core that should be scheduled."] # [doc = "-`begin`: The starting blockheight of the instruction."] # [doc = "-`assignment`: How the blockspace should be utilised."] # [doc = "-`end_hint`: An optional hint as to when this particular set of instructions will end."] assign_core { core : :: core :: primitive :: u16 , begin : :: core :: primitive :: u32 , assignment : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 ,) > , end_hint : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + # [codec (index = 1)] # [doc = "Request the configuration to be updated with the specified number of cores. Warning:"] # [doc = "Since this only schedules a configuration update, it takes two sessions to come into"] # [doc = "effect."] # [doc = ""] # [doc = "- `origin`: Root or the Coretime Chain"] # [doc = "- `count`: total number of cores"] request_core_count { count : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "Request to claim the instantaneous coretime sales revenue starting from the block it was"] # [doc = "last claimed until and up to the block specified. The claimed amount value is sent back"] # [doc = "to the Coretime chain in a `notify_revenue` message. At the same time, the amount is"] # [doc = "teleported to the Coretime chain."] request_revenue_at { when : :: core :: primitive :: u32 , } , # [codec (index = 3)] credit_account { who : :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is"] # [doc = "to be used."] # [doc = ""] # [doc = "Parameters:"] # [doc = "-`origin`: The `ExternalBrokerOrigin`, assumed to be the coretime chain."] # [doc = "-`core`: The core that should be scheduled."] # [doc = "-`begin`: The starting blockheight of the instruction."] # [doc = "-`assignment`: How the blockspace should be utilised."] # [doc = "-`end_hint`: An optional hint as to when this particular set of instructions will end."] assign_core { core : :: core :: primitive :: u16 , begin : :: core :: primitive :: u32 , assignment : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: pezkuwi_runtime_parachains :: assigner_coretime :: PartsOf57600 ,) > , end_hint : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -60083,7 +60083,7 @@ pub mod api { #[codec(index = 1)] #[doc = "A core has received a new assignment from the broker chain."] CoreAssigned { - core: runtime_types::polkadot_primitives::v9::CoreIndex, + core: runtime_types::pezkuwi_primitives::v9::CoreIndex, }, } } @@ -60165,15 +60165,15 @@ pub mod api { #[codec(index = 0)] #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] DisputeInitiated( - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, + runtime_types::pezkuwi_core_primitives::CandidateHash, + runtime_types::pezkuwi_runtime_parachains::disputes::DisputeLocation, ), #[codec(index = 1)] #[doc = "A dispute has concluded for or against a candidate."] #[doc = "`\\[para id, candidate hash, dispute result\\]`"] DisputeConcluded( - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, + runtime_types::pezkuwi_core_primitives::CandidateHash, + runtime_types::pezkuwi_runtime_parachains::disputes::DisputeResult, ), #[codec(index = 2)] #[doc = "A dispute has concluded with supermajority against a candidate."] @@ -60203,7 +60203,7 @@ pub mod api { #[codec(index = 0)] report_dispute_lost_unsigned { dispute_proof: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::boxed::Box< - runtime_types::polkadot_primitives::v9::slashing::DisputeProof, + runtime_types::pezkuwi_primitives::v9::slashing::DisputeProof, >, key_owner_proof: runtime_types::sp_session::MembershipProof, }, @@ -60295,7 +60295,7 @@ pub mod api { )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] # [doc = "parameters."] # [doc = ""] # [doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] # [doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] # [doc = ""] # [doc = "These numbers are a subject to the relay-chain configuration limits."] # [doc = ""] # [doc = "The channel can be opened only after the recipient confirms it and only on a session"] # [doc = "change."] hrmp_init_open_channel { recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Accept a pending open channel request from the given sender."] # [doc = ""] # [doc = "The channel will be opened only on the next session boundary."] hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 2)] # [doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] # [doc = "recipient in the channel being closed."] # [doc = ""] # [doc = "The closure can only happen on a session change."] hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 3)] # [doc = "This extrinsic triggers the cleanup of all the HRMP storage items that a para may have."] # [doc = "Normally this happens once per session, but this allows you to trigger the cleanup"] # [doc = "immediately for a specific parachain."] # [doc = ""] # [doc = "Number of inbound and outbound channels for `para` must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_clean_hrmp { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , num_inbound : :: core :: primitive :: u32 , num_outbound : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Force process HRMP open channel requests."] # [doc = ""] # [doc = "If there are pending HRMP open channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of opening channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_process_hrmp_open { channels : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Force process HRMP close channel requests."] # [doc = ""] # [doc = "If there are pending HRMP close channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of closing channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_process_hrmp_close { channels : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] # [doc = "or the recipient for that request. The origin must be either of those."] # [doc = ""] # [doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] # [doc = "already accepted."] # [doc = ""] # [doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] # [doc = "witness data."] hrmp_cancel_open_request { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , open_requests : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Open a channel from a `sender` to a `recipient` `ParaId`. Although opened by governance,"] # [doc = "the `max_capacity` and `max_message_size` are still subject to the Relay Chain's"] # [doc = "configured limits."] # [doc = ""] # [doc = "Expected use is when one (and only one) of the `ParaId`s involved in the channel is"] # [doc = "governed by the system, e.g. a system parachain."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_open_hrmp_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , max_capacity : :: core :: primitive :: u32 , max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Establish an HRMP channel between two system chains. If the channel does not already"] # [doc = "exist, the transaction fees will be refunded to the caller. The system does not take"] # [doc = "deposits for channels between system chains, and automatically sets the message number"] # [doc = "and size limits to the maximum allowed by the network's configuration."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A system chain, `ParaId`."] # [doc = "- `recipient`: A system chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function, but _both_ inputs MUST be system chains. If"] # [doc = "the channel does not exist yet, there is no fee."] establish_system_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 9)] # [doc = "Update the deposits held for an HRMP channel to the latest `Configuration`. Channels"] # [doc = "with system chains do not require a deposit."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A chain, `ParaId`."] # [doc = "- `recipient`: A chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function."] poke_channel_deposits { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 10)] # [doc = "Establish a bidirectional HRMP channel between a parachain and a system chain."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `target_system_chain`: A system chain, `ParaId`."] # [doc = ""] # [doc = "The origin needs to be the parachain origin."] establish_channel_with_system { target_system_chain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } + # [codec (index = 0)] # [doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] # [doc = "parameters."] # [doc = ""] # [doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] # [doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] # [doc = ""] # [doc = "These numbers are a subject to the relay-chain configuration limits."] # [doc = ""] # [doc = "The channel can be opened only after the recipient confirms it and only on a session"] # [doc = "change."] hrmp_init_open_channel { recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Accept a pending open channel request from the given sender."] # [doc = ""] # [doc = "The channel will be opened only on the next session boundary."] hrmp_accept_open_channel { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 2)] # [doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] # [doc = "recipient in the channel being closed."] # [doc = ""] # [doc = "The closure can only happen on a session change."] hrmp_close_channel { channel_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 3)] # [doc = "This extrinsic triggers the cleanup of all the HRMP storage items that a para may have."] # [doc = "Normally this happens once per session, but this allows you to trigger the cleanup"] # [doc = "immediately for a specific parachain."] # [doc = ""] # [doc = "Number of inbound and outbound channels for `para` must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_clean_hrmp { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , num_inbound : :: core :: primitive :: u32 , num_outbound : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Force process HRMP open channel requests."] # [doc = ""] # [doc = "If there are pending HRMP open channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of opening channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_process_hrmp_open { channels : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Force process HRMP close channel requests."] # [doc = ""] # [doc = "If there are pending HRMP close channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of closing channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_process_hrmp_close { channels : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] # [doc = "or the recipient for that request. The origin must be either of those."] # [doc = ""] # [doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] # [doc = "already accepted."] # [doc = ""] # [doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] # [doc = "witness data."] hrmp_cancel_open_request { channel_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HrmpChannelId , open_requests : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Open a channel from a `sender` to a `recipient` `ParaId`. Although opened by governance,"] # [doc = "the `max_capacity` and `max_message_size` are still subject to the Relay Chain's"] # [doc = "configured limits."] # [doc = ""] # [doc = "Expected use is when one (and only one) of the `ParaId`s involved in the channel is"] # [doc = "governed by the system, e.g. a system parachain."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_open_hrmp_channel { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , max_capacity : :: core :: primitive :: u32 , max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Establish an HRMP channel between two system chains. If the channel does not already"] # [doc = "exist, the transaction fees will be refunded to the caller. The system does not take"] # [doc = "deposits for channels between system chains, and automatically sets the message number"] # [doc = "and size limits to the maximum allowed by the network's configuration."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A system chain, `ParaId`."] # [doc = "- `recipient`: A system chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function, but _both_ inputs MUST be system chains. If"] # [doc = "the channel does not exist yet, there is no fee."] establish_system_channel { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 9)] # [doc = "Update the deposits held for an HRMP channel to the latest `Configuration`. Channels"] # [doc = "with system chains do not require a deposit."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A chain, `ParaId`."] # [doc = "- `recipient`: A chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function."] poke_channel_deposits { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 10)] # [doc = "Establish a bidirectional HRMP channel between a parachain and a system chain."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `target_system_chain`: A system chain, `ParaId`."] # [doc = ""] # [doc = "The origin needs to be the parachain origin."] establish_channel_with_system { target_system_chain : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -60383,7 +60383,7 @@ pub mod api { )] #[doc = "The `Event` enum of this pallet"] pub enum Event { - # [codec (index = 0)] # [doc = "Open HRMP channel requested."] OpenChannelRequested { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "An HRMP channel request sent by the receiver was canceled by either party."] OpenChannelCanceled { by_parachain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 2)] # [doc = "Open HRMP channel accepted."] OpenChannelAccepted { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "HRMP channel closed."] ChannelClosed { by_parachain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 4)] # [doc = "An HRMP channel was opened via Root origin."] HrmpChannelForceOpened { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "An HRMP channel was opened with a system chain."] HrmpSystemChannelOpened { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "An HRMP channel's deposits were updated."] OpenChannelDepositsUpdated { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } + # [codec (index = 0)] # [doc = "Open HRMP channel requested."] OpenChannelRequested { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "An HRMP channel request sent by the receiver was canceled by either party."] OpenChannelCanceled { by_parachain : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 2)] # [doc = "Open HRMP channel accepted."] OpenChannelAccepted { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "HRMP channel closed."] ChannelClosed { by_parachain : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 4)] # [doc = "An HRMP channel was opened via Root origin."] HrmpChannelForceOpened { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "An HRMP channel was opened with a system chain."] HrmpSystemChannelOpened { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "An HRMP channel's deposits were updated."] OpenChannelDepositsUpdated { sender : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , recipient : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , } } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -60527,36 +60527,36 @@ pub mod api { #[codec(index = 0)] #[doc = "A candidate was backed. `[candidate, head_data]`"] CandidateBacked( - runtime_types::polkadot_primitives::v9::CandidateReceiptV2< + runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v9::CoreIndex, - runtime_types::polkadot_primitives::v9::GroupIndex, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::GroupIndex, ), #[codec(index = 1)] #[doc = "A candidate was included. `[candidate, head_data]`"] CandidateIncluded( - runtime_types::polkadot_primitives::v9::CandidateReceiptV2< + runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v9::CoreIndex, - runtime_types::polkadot_primitives::v9::GroupIndex, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::GroupIndex, ), #[codec(index = 2)] #[doc = "A candidate timed out. `[candidate, head_data]`"] CandidateTimedOut( - runtime_types::polkadot_primitives::v9::CandidateReceiptV2< + runtime_types::pezkuwi_primitives::v9::CandidateReceiptV2< ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::H256, >, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v9::CoreIndex, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_primitives::v9::CoreIndex, ), #[codec(index = 3)] #[doc = "Some upward messages have been received and will be processed."] UpwardMessagesReceived { - from: runtime_types::polkadot_parachain_primitives::primitives::Id, + from: runtime_types::pezkuwi_parachain_primitives::primitives::Id, count: ::core::primitive::u32, }, } @@ -60574,7 +60574,7 @@ pub mod api { )] pub enum AggregateMessageOrigin { #[codec(index = 0)] - Ump(runtime_types::polkadot_runtime_parachains::inclusion::UmpQueueId), + Ump(runtime_types::pezkuwi_runtime_parachains::inclusion::UmpQueueId), } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -60588,12 +60588,12 @@ pub mod api { crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] pub struct CandidatePendingAvailability<_0, _1> { - pub core: runtime_types::polkadot_primitives::v9::CoreIndex, - pub hash: runtime_types::polkadot_core_primitives::CandidateHash, + pub core: runtime_types::pezkuwi_primitives::v9::CoreIndex, + pub hash: runtime_types::pezkuwi_core_primitives::CandidateHash, pub descriptor: - runtime_types::polkadot_primitives::v9::CandidateDescriptorV2<_0>, + runtime_types::pezkuwi_primitives::v9::CandidateDescriptorV2<_0>, pub commitments: - runtime_types::polkadot_primitives::v9::CandidateCommitments<_1>, + runtime_types::pezkuwi_primitives::v9::CandidateCommitments<_1>, pub availability_votes: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::bits::DecodedBits< ::core::primitive::u8, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::bits::Lsb0, @@ -60604,7 +60604,7 @@ pub mod api { >, pub relay_parent_number: _1, pub backed_in_number: _1, - pub backing_group: runtime_types::polkadot_primitives::v9::GroupIndex, + pub backing_group: runtime_types::pezkuwi_primitives::v9::GroupIndex, } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -60619,7 +60619,7 @@ pub mod api { )] pub enum UmpQueueId { #[codec(index = 0)] - Para(runtime_types::polkadot_parachain_primitives::primitives::Id), + Para(runtime_types::pezkuwi_parachain_primitives::primitives::Id), } } pub mod initializer { @@ -60659,10 +60659,10 @@ pub mod api { )] pub struct BufferedSessionChange { pub validators: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::validator_app::Public, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, >, pub queued: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::validator_app::Public, + runtime_types::pezkuwi_primitives::v9::validator_app::Public, >, pub session_index: ::core::primitive::u32, } @@ -60702,7 +60702,7 @@ pub mod api { #[doc = "- `OnDemandOrderPlaced`"] place_order_allow_death { max_amount: ::core::primitive::u128, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 1)] #[doc = "Same as the [`place_order_allow_death`](Self::place_order_allow_death) call , but with a"] @@ -60722,7 +60722,7 @@ pub mod api { #[doc = "- `OnDemandOrderPlaced`"] place_order_keep_alive { max_amount: ::core::primitive::u128, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, #[codec(index = 2)] #[doc = "Create a single on demand core order with credits."] @@ -60744,7 +60744,7 @@ pub mod api { #[doc = "- `OnDemandOrderPlaced`"] place_order_with_credits { max_amount: ::core::primitive::u128, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, }, } #[derive( @@ -60787,7 +60787,7 @@ pub mod api { #[codec(index = 0)] #[doc = "An order was placed at some spot price amount by orderer ordered_by"] OnDemandOrderPlaced { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, spot_price: ::core::primitive::u128, ordered_by: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::AccountId32, }, @@ -60816,7 +60816,7 @@ pub mod api { crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] pub struct CoreAffinityCount { - pub core_index: runtime_types::polkadot_primitives::v9::CoreIndex, + pub core_index: runtime_types::pezkuwi_primitives::v9::CoreIndex, pub count: ::core::primitive::u32, } #[derive( @@ -60830,7 +60830,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct EnqueuedOrder { pub para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , pub idx : runtime_types :: polkadot_runtime_parachains :: on_demand :: types :: QueueIndex , } + pub struct EnqueuedOrder { pub para_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , pub idx : runtime_types :: pezkuwi_runtime_parachains :: on_demand :: types :: QueueIndex , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -60854,7 +60854,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct QueueStatusType { pub traffic : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub next_index : runtime_types :: polkadot_runtime_parachains :: on_demand :: types :: QueueIndex , pub smallest_index : runtime_types :: polkadot_runtime_parachains :: on_demand :: types :: QueueIndex , pub freed_indices : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: on_demand :: types :: ReverseQueueIndex > , } + pub struct QueueStatusType { pub traffic : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub next_index : runtime_types :: pezkuwi_runtime_parachains :: on_demand :: types :: QueueIndex , pub smallest_index : runtime_types :: pezkuwi_runtime_parachains :: on_demand :: types :: QueueIndex , pub freed_indices : :: subxt :: ext :: pezkuwi_subxt_core :: alloc :: vec :: Vec < runtime_types :: pezkuwi_runtime_parachains :: on_demand :: types :: ReverseQueueIndex > , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -60886,7 +60886,7 @@ pub mod api { )] pub enum Origin { #[codec(index = 0)] - Parachain(runtime_types::polkadot_parachain_primitives::primitives::Id), + Parachain(runtime_types::pezkuwi_parachain_primitives::primitives::Id), } } } @@ -60907,7 +60907,7 @@ pub mod api { )] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Set the storage for the parachain validation code immediately."] force_set_current_code { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "Set the storage for the current parachain head data immediately."] force_set_current_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 2)] # [doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] force_schedule_code_upgrade { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , relay_parent_number : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Note a new block head for para within the context of the current block."] force_note_new_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 4)] # [doc = "Put a parachain directly into the next session's action queue."] # [doc = "We can't queue it any sooner than this without going into the"] # [doc = "initializer..."] force_queue_action { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Adds the validation code to the storage."] # [doc = ""] # [doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] # [doc = "is running for that code, it will be instantly accepted."] # [doc = ""] # [doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] # [doc = "into storage with reference count 0. This is to account the fact that there are no users"] # [doc = "for this code yet. The caller will have to make sure that this code eventually gets"] # [doc = "used by some parachain or removed from the storage to avoid storage leaks. For the"] # [doc = "latter prefer to use the `poke_unused_validation_code` dispatchable to raw storage"] # [doc = "manipulation."] # [doc = ""] # [doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] # [doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] add_trusted_validation_code { validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 6)] # [doc = "Remove the validation code from the storage iff the reference count is 0."] # [doc = ""] # [doc = "This is better than removing the storage directly, because it will not remove the code"] # [doc = "that was suddenly got used by some parachain while this dispatchable was pending"] # [doc = "dispatching."] poke_unused_validation_code { validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] # [doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] # [doc = "enacts the results if that was the last vote before achieving the supermajority."] include_pvf_check_statement { stmt : runtime_types :: polkadot_primitives :: v9 :: PvfCheckStatement , signature : runtime_types :: polkadot_primitives :: v9 :: validator_app :: Signature , } , # [codec (index = 8)] # [doc = "Set the storage for the current parachain head data immediately."] force_set_most_recent_context { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , context : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "Remove an upgrade cooldown for a parachain."] # [doc = ""] # [doc = "The cost for removing the cooldown earlier depends on the time left for the cooldown"] # [doc = "multiplied by [`Config::CooldownRemovalMultiplier`]. The paid tokens are burned."] remove_upgrade_cooldown { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 10)] # [doc = "Sets the storage for the authorized current code hash of the parachain."] # [doc = "If not applied, it will be removed at the `System::block_number() + valid_period` block."] # [doc = ""] # [doc = "This can be useful, when triggering `Paras::force_set_current_code(para, code)`"] # [doc = "from a different chain than the one where the `Paras` pallet is deployed."] # [doc = ""] # [doc = "The main purpose is to avoid transferring the entire `code` Wasm blob between chains."] # [doc = "Instead, we authorize `code_hash` with `root`, which can later be applied by"] # [doc = "`Paras::apply_authorized_force_set_current_code(para, code)` by anyone."] # [doc = ""] # [doc = "Authorizations are stored in an **overwriting manner**."] authorize_force_set_current_code_hash { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , valid_period : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Applies the already authorized current code for the parachain,"] # [doc = "triggering the same functionality as `force_set_current_code`."] apply_authorized_force_set_current_code { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , } + # [codec (index = 0)] # [doc = "Set the storage for the parachain validation code immediately."] force_set_current_code { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_code : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "Set the storage for the current parachain head data immediately."] force_set_current_head { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_head : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 2)] # [doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] force_schedule_code_upgrade { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_code : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCode , relay_parent_number : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Note a new block head for para within the context of the current block."] force_note_new_head { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_head : runtime_types :: pezkuwi_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 4)] # [doc = "Put a parachain directly into the next session's action queue."] # [doc = "We can't queue it any sooner than this without going into the"] # [doc = "initializer..."] force_queue_action { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Adds the validation code to the storage."] # [doc = ""] # [doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] # [doc = "is running for that code, it will be instantly accepted."] # [doc = ""] # [doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] # [doc = "into storage with reference count 0. This is to account the fact that there are no users"] # [doc = "for this code yet. The caller will have to make sure that this code eventually gets"] # [doc = "used by some parachain or removed from the storage to avoid storage leaks. For the"] # [doc = "latter prefer to use the `poke_unused_validation_code` dispatchable to raw storage"] # [doc = "manipulation."] # [doc = ""] # [doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] # [doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] add_trusted_validation_code { validation_code : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 6)] # [doc = "Remove the validation code from the storage iff the reference count is 0."] # [doc = ""] # [doc = "This is better than removing the storage directly, because it will not remove the code"] # [doc = "that was suddenly got used by some parachain while this dispatchable was pending"] # [doc = "dispatching."] poke_unused_validation_code { validation_code_hash : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] # [doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] # [doc = "enacts the results if that was the last vote before achieving the supermajority."] include_pvf_check_statement { stmt : runtime_types :: pezkuwi_primitives :: v9 :: PvfCheckStatement , signature : runtime_types :: pezkuwi_primitives :: v9 :: validator_app :: Signature , } , # [codec (index = 8)] # [doc = "Set the storage for the current parachain head data immediately."] force_set_most_recent_context { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , context : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "Remove an upgrade cooldown for a parachain."] # [doc = ""] # [doc = "The cost for removing the cooldown earlier depends on the time left for the cooldown"] # [doc = "multiplied by [`Config::CooldownRemovalMultiplier`]. The paid tokens are burned."] remove_upgrade_cooldown { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 10)] # [doc = "Sets the storage for the authorized current code hash of the parachain."] # [doc = "If not applied, it will be removed at the `System::block_number() + valid_period` block."] # [doc = ""] # [doc = "This can be useful, when triggering `Paras::force_set_current_code(para, code)`"] # [doc = "from a different chain than the one where the `Paras` pallet is deployed."] # [doc = ""] # [doc = "The main purpose is to avoid transferring the entire `code` Wasm blob between chains."] # [doc = "Instead, we authorize `code_hash` with `root`, which can later be applied by"] # [doc = "`Paras::apply_authorized_force_set_current_code(para, code)` by anyone."] # [doc = ""] # [doc = "Authorizations are stored in an **overwriting manner**."] authorize_force_set_current_code_hash { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_code_hash : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , valid_period : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Applies the already authorized current code for the parachain,"] # [doc = "triggering the same functionality as `force_set_current_code`."] apply_authorized_force_set_current_code { para : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , new_code : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCode , } , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -60983,7 +60983,7 @@ pub mod api { )] #[doc = "The `Event` enum of this pallet"] pub enum Event { - # [codec (index = 0)] # [doc = "Current code has been updated for a Para. `para_id`"] CurrentCodeUpdated (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 1)] # [doc = "Current head has been updated for a Para. `para_id`"] CurrentHeadUpdated (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 2)] # [doc = "A code upgrade has been scheduled for a Para. `para_id`"] CodeUpgradeScheduled (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 3)] # [doc = "A new head has been noted for a Para. `para_id`"] NewHeadNoted (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 4)] # [doc = "A para has been queued to execute pending actions. `para_id`"] ActionQueued (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , :: core :: primitive :: u32 ,) , # [codec (index = 5)] # [doc = "The given para either initiated or subscribed to a PVF check for the given validation"] # [doc = "code. `code_hash` `para_id`"] PvfCheckStarted (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 6)] # [doc = "The given validation code was accepted by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckAccepted (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 7)] # [doc = "The given validation code was rejected by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckRejected (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 8)] # [doc = "The upgrade cooldown was removed."] UpgradeCooldownRemoved { para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 9)] # [doc = "A new code hash has been authorized for a Para."] CodeAuthorized { para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , expire_at : :: core :: primitive :: u32 , } , } + # [codec (index = 0)] # [doc = "Current code has been updated for a Para. `para_id`"] CurrentCodeUpdated (runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id ,) , # [codec (index = 1)] # [doc = "Current head has been updated for a Para. `para_id`"] CurrentHeadUpdated (runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id ,) , # [codec (index = 2)] # [doc = "A code upgrade has been scheduled for a Para. `para_id`"] CodeUpgradeScheduled (runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id ,) , # [codec (index = 3)] # [doc = "A new head has been noted for a Para. `para_id`"] NewHeadNoted (runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id ,) , # [codec (index = 4)] # [doc = "A para has been queued to execute pending actions. `para_id`"] ActionQueued (runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , :: core :: primitive :: u32 ,) , # [codec (index = 5)] # [doc = "The given para either initiated or subscribed to a PVF check for the given validation"] # [doc = "code. `code_hash` `para_id`"] PvfCheckStarted (runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id ,) , # [codec (index = 6)] # [doc = "The given validation code was accepted by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckAccepted (runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id ,) , # [codec (index = 7)] # [doc = "The given validation code was rejected by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckRejected (runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id ,) , # [codec (index = 8)] # [doc = "The upgrade cooldown was removed."] UpgradeCooldownRemoved { para_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , } , # [codec (index = 9)] # [doc = "A new code hash has been authorized for a Para."] CodeAuthorized { para_id : runtime_types :: pezkuwi_parachain_primitives :: primitives :: Id , code_hash : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , expire_at : :: core :: primitive :: u32 , } , } } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -60996,7 +60996,7 @@ pub mod api { #[encode_as_type( crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode" )] - pub struct AuthorizedCodeHashAndExpiry < _0 > { pub code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , pub expire_at : _0 , } + pub struct AuthorizedCodeHashAndExpiry < _0 > { pub code_hash : runtime_types :: pezkuwi_parachain_primitives :: primitives :: ValidationCodeHash , pub expire_at : _0 , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -61010,9 +61010,9 @@ pub mod api { )] pub struct ParaGenesisArgs { pub genesis_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, + runtime_types::pezkuwi_parachain_primitives::primitives::HeadData, pub validation_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, + runtime_types::pezkuwi_parachain_primitives::primitives::ValidationCode, pub para_kind: ::core::primitive::bool, } #[derive( @@ -61055,7 +61055,7 @@ pub mod api { )] pub struct ParaPastCodeMeta<_0> { pub upgrade_times: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_runtime_parachains::paras::ReplacementTimes<_0>, + runtime_types::pezkuwi_runtime_parachains::paras::ReplacementTimes<_0>, >, pub last_pruned: ::core::option::Option<_0>, } @@ -61082,7 +61082,7 @@ pub mod api { pub age: ::core::primitive::u32, pub created_at: _0, pub causes: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_runtime_parachains::paras::PvfCheckCause<_0>, + runtime_types::pezkuwi_runtime_parachains::paras::PvfCheckCause<_0>, >, } #[derive( @@ -61098,13 +61098,13 @@ pub mod api { )] pub enum PvfCheckCause<_0> { #[codec(index = 0)] - Onboarding(runtime_types::polkadot_parachain_primitives::primitives::Id), + Onboarding(runtime_types::pezkuwi_parachain_primitives::primitives::Id), #[codec(index = 1)] Upgrade { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, + id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, included_at: _0, upgrade_strategy: - runtime_types::polkadot_runtime_parachains::paras::UpgradeStrategy, + runtime_types::pezkuwi_runtime_parachains::paras::UpgradeStrategy, }, } #[derive( @@ -61160,7 +61160,7 @@ pub mod api { #[codec(index = 0)] #[doc = "Enter the paras inherent. This will process bitfields and backed candidates."] enter { - data: runtime_types::polkadot_primitives::v9::InherentData< + data: runtime_types::pezkuwi_primitives::v9::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, >, @@ -61215,11 +61215,11 @@ pub mod api { pub enum Assignment { #[codec(index = 0)] Pool { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - core_index: runtime_types::polkadot_primitives::v9::CoreIndex, + para_id: runtime_types::pezkuwi_parachain_primitives::primitives::Id, + core_index: runtime_types::pezkuwi_primitives::v9::CoreIndex, }, #[codec(index = 1)] - Bulk(runtime_types::polkadot_parachain_primitives::primitives::Id), + Bulk(runtime_types::pezkuwi_parachain_primitives::primitives::Id), } } } @@ -61254,7 +61254,7 @@ pub mod api { )] pub struct AllowedRelayParentsTracker<_0, _1> { pub buffer: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_runtime_parachains::shared::RelayParentInfo<_0>, + runtime_types::pezkuwi_runtime_parachains::shared::RelayParentInfo<_0>, >, pub latest_number: _1, } @@ -61273,18 +61273,18 @@ pub mod api { pub relay_parent: _0, pub state_root: _0, pub claim_queue: ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::KeyedVec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + runtime_types::pezkuwi_parachain_primitives::primitives::Id, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::utils::KeyedVec< ::core::primitive::u8, ::pezkuwi_subxt::ext::pezkuwi_subxt_core::alloc::vec::Vec< - runtime_types::polkadot_primitives::v9::CoreIndex, + runtime_types::pezkuwi_primitives::v9::CoreIndex, >, >, >, } } } - pub mod rococo_runtime { + pub mod pezkuwichain_runtime { use super::runtime_types; pub mod dynamic_params { use super::runtime_types; @@ -61316,14 +61316,14 @@ pub mod api { pub enum Parameters { #[codec(index = 0)] Target( - runtime_types::rococo_runtime::dynamic_params::nis::Target, + runtime_types::pezkuwichain_runtime::dynamic_params::nis::Target, ::core::option::Option< runtime_types::sp_arithmetic::per_things::Perquintill, >, ), #[codec(index = 1)] MinBid( - runtime_types::rococo_runtime::dynamic_params::nis::MinBid, + runtime_types::pezkuwichain_runtime::dynamic_params::nis::MinBid, ::core::option::Option<::core::primitive::u128>, ), } @@ -61340,9 +61340,9 @@ pub mod api { )] pub enum ParametersKey { #[codec(index = 0)] - Target(runtime_types::rococo_runtime::dynamic_params::nis::Target), + Target(runtime_types::pezkuwichain_runtime::dynamic_params::nis::Target), #[codec(index = 1)] - MinBid(runtime_types::rococo_runtime::dynamic_params::nis::MinBid), + MinBid(runtime_types::pezkuwichain_runtime::dynamic_params::nis::MinBid), } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -61414,12 +61414,12 @@ pub mod api { pub enum Parameters { #[codec(index = 0)] BaseDeposit( - runtime_types::rococo_runtime::dynamic_params::preimage::BaseDeposit, + runtime_types::pezkuwichain_runtime::dynamic_params::preimage::BaseDeposit, ::core::option::Option<::core::primitive::u128>, ), #[codec(index = 1)] ByteDeposit( - runtime_types::rococo_runtime::dynamic_params::preimage::ByteDeposit, + runtime_types::pezkuwichain_runtime::dynamic_params::preimage::ByteDeposit, ::core::option::Option<::core::primitive::u128>, ), } @@ -61437,11 +61437,11 @@ pub mod api { pub enum ParametersKey { #[codec(index = 0)] BaseDeposit( - runtime_types::rococo_runtime::dynamic_params::preimage::BaseDeposit, + runtime_types::pezkuwichain_runtime::dynamic_params::preimage::BaseDeposit, ), #[codec(index = 1)] ByteDeposit( - runtime_types::rococo_runtime::dynamic_params::preimage::ByteDeposit, + runtime_types::pezkuwichain_runtime::dynamic_params::preimage::ByteDeposit, ), } #[derive( @@ -61613,7 +61613,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode")] pub enum OriginCaller { - # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 > ,) , # [codec (index = 43)] Origins (runtime_types :: rococo_runtime :: governance :: origins :: pallet_custom_origins :: Origin ,) , # [codec (index = 50)] ParachainsOrigin (runtime_types :: polkadot_runtime_parachains :: origin :: pallet :: Origin ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Origin ,) , } + # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: ext :: pezkuwi_subxt_core :: utils :: AccountId32 > ,) , # [codec (index = 43)] Origins (runtime_types :: pezkuwichain_runtime :: governance :: origins :: pallet_custom_origins :: Origin ,) , # [codec (index = 50)] ParachainsOrigin (runtime_types :: pezkuwi_runtime_parachains :: origin :: pallet :: Origin ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Origin ,) , } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode :: EncodeAsType, @@ -61684,7 +61684,7 @@ pub mod api { #[codec(index = 44)] Whitelist(runtime_types::pallet_whitelist::pallet::Call), #[codec(index = 19)] - Claims(runtime_types::polkadot_runtime_common::claims::pallet::Call), + Claims(runtime_types::pezkuwi_runtime_common::claims::pallet::Call), #[codec(index = 24)] Utility(runtime_types::pallet_utility::pallet::Call), #[codec(index = 25)] @@ -61715,44 +61715,44 @@ pub mod api { NisCounterpartBalances(runtime_types::pallet_balances::pallet::Call), #[codec(index = 51)] Configuration( - runtime_types::polkadot_runtime_parachains::configuration::pallet::Call, + runtime_types::pezkuwi_runtime_parachains::configuration::pallet::Call, ), #[codec(index = 52)] - ParasShared(runtime_types::polkadot_runtime_parachains::shared::pallet::Call), + ParasShared(runtime_types::pezkuwi_runtime_parachains::shared::pallet::Call), #[codec(index = 53)] - ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Call), + ParaInclusion(runtime_types::pezkuwi_runtime_parachains::inclusion::pallet::Call), #[codec(index = 54)] ParaInherent( - runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Call, + runtime_types::pezkuwi_runtime_parachains::paras_inherent::pallet::Call, ), #[codec(index = 56)] - Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Call), + Paras(runtime_types::pezkuwi_runtime_parachains::paras::pallet::Call), #[codec(index = 57)] - Initializer(runtime_types::polkadot_runtime_parachains::initializer::pallet::Call), + Initializer(runtime_types::pezkuwi_runtime_parachains::initializer::pallet::Call), #[codec(index = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call), + Hrmp(runtime_types::pezkuwi_runtime_parachains::hrmp::pallet::Call), #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Call), + ParasDisputes(runtime_types::pezkuwi_runtime_parachains::disputes::pallet::Call), #[codec(index = 63)] ParasSlashing( - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call, + runtime_types::pezkuwi_runtime_parachains::disputes::slashing::pallet::Call, ), #[codec(index = 64)] MessageQueue(runtime_types::pallet_message_queue::pallet::Call), #[codec(index = 66)] OnDemandAssignmentProvider( - runtime_types::polkadot_runtime_parachains::on_demand::pallet::Call, + runtime_types::pezkuwi_runtime_parachains::on_demand::pallet::Call, ), #[codec(index = 70)] - Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Call), + Registrar(runtime_types::pezkuwi_runtime_common::paras_registrar::pallet::Call), #[codec(index = 71)] - Slots(runtime_types::polkadot_runtime_common::slots::pallet::Call), + Slots(runtime_types::pezkuwi_runtime_common::slots::pallet::Call), #[codec(index = 72)] - Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Call), + Auctions(runtime_types::pezkuwi_runtime_common::auctions::pallet::Call), #[codec(index = 73)] - Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Call), + Crowdloan(runtime_types::pezkuwi_runtime_common::crowdloan::pallet::Call), #[codec(index = 74)] - Coretime(runtime_types::polkadot_runtime_parachains::coretime::pallet::Call), + Coretime(runtime_types::pezkuwi_runtime_parachains::coretime::pallet::Call), #[codec(index = 98)] MultiBlockMigrations(runtime_types::pallet_migrations::pallet::Call), #[codec(index = 99)] @@ -61761,16 +61761,16 @@ pub mod api { Beefy(runtime_types::pallet_beefy::pallet::Call), #[codec(index = 248)] IdentityMigrator( - runtime_types::polkadot_runtime_common::identity_migrator::pallet::Call, + runtime_types::pezkuwi_runtime_common::identity_migrator::pallet::Call, ), #[codec(index = 250)] ParasSudoWrapper( - runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Call, + runtime_types::pezkuwi_runtime_common::paras_sudo_wrapper::pallet::Call, ), #[codec(index = 251)] - AssignedSlots(runtime_types::polkadot_runtime_common::assigned_slots::pallet::Call), + AssignedSlots(runtime_types::pezkuwi_runtime_common::assigned_slots::pallet::Call), #[codec(index = 252)] - ValidatorManager(runtime_types::rococo_runtime::validator_manager::pallet::Call), + ValidatorManager(runtime_types::pezkuwichain_runtime::validator_manager::pallet::Call), #[codec(index = 254)] StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Call), #[codec(index = 249)] @@ -61811,7 +61811,7 @@ pub mod api { #[codec(index = 44)] Whitelist(runtime_types::pallet_whitelist::pallet::Error), #[codec(index = 19)] - Claims(runtime_types::polkadot_runtime_common::claims::pallet::Error), + Claims(runtime_types::pezkuwi_runtime_common::claims::pallet::Error), #[codec(index = 24)] Utility(runtime_types::pallet_utility::pallet::Error), #[codec(index = 25)] @@ -61842,44 +61842,44 @@ pub mod api { NisCounterpartBalances(runtime_types::pallet_balances::pallet::Error), #[codec(index = 51)] Configuration( - runtime_types::polkadot_runtime_parachains::configuration::pallet::Error, + runtime_types::pezkuwi_runtime_parachains::configuration::pallet::Error, ), #[codec(index = 53)] - ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error), + ParaInclusion(runtime_types::pezkuwi_runtime_parachains::inclusion::pallet::Error), #[codec(index = 54)] ParaInherent( - runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error, + runtime_types::pezkuwi_runtime_parachains::paras_inherent::pallet::Error, ), #[codec(index = 56)] - Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Error), + Paras(runtime_types::pezkuwi_runtime_parachains::paras::pallet::Error), #[codec(index = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error), + Hrmp(runtime_types::pezkuwi_runtime_parachains::hrmp::pallet::Error), #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Error), + ParasDisputes(runtime_types::pezkuwi_runtime_parachains::disputes::pallet::Error), #[codec(index = 63)] ParasSlashing( - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error, + runtime_types::pezkuwi_runtime_parachains::disputes::slashing::pallet::Error, ), #[codec(index = 64)] MessageQueue(runtime_types::pallet_message_queue::pallet::Error), #[codec(index = 66)] OnDemandAssignmentProvider( - runtime_types::polkadot_runtime_parachains::on_demand::pallet::Error, + runtime_types::pezkuwi_runtime_parachains::on_demand::pallet::Error, ), #[codec(index = 68)] CoretimeAssignmentProvider( - runtime_types::polkadot_runtime_parachains::assigner_coretime::pallet::Error, + runtime_types::pezkuwi_runtime_parachains::assigner_coretime::pallet::Error, ), #[codec(index = 70)] - Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error), + Registrar(runtime_types::pezkuwi_runtime_common::paras_registrar::pallet::Error), #[codec(index = 71)] - Slots(runtime_types::polkadot_runtime_common::slots::pallet::Error), + Slots(runtime_types::pezkuwi_runtime_common::slots::pallet::Error), #[codec(index = 72)] - Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Error), + Auctions(runtime_types::pezkuwi_runtime_common::auctions::pallet::Error), #[codec(index = 73)] - Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Error), + Crowdloan(runtime_types::pezkuwi_runtime_common::crowdloan::pallet::Error), #[codec(index = 74)] - Coretime(runtime_types::polkadot_runtime_parachains::coretime::pallet::Error), + Coretime(runtime_types::pezkuwi_runtime_parachains::coretime::pallet::Error), #[codec(index = 98)] MultiBlockMigrations(runtime_types::pallet_migrations::pallet::Error), #[codec(index = 99)] @@ -61888,11 +61888,11 @@ pub mod api { Beefy(runtime_types::pallet_beefy::pallet::Error), #[codec(index = 250)] ParasSudoWrapper( - runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Error, + runtime_types::pezkuwi_runtime_common::paras_sudo_wrapper::pallet::Error, ), #[codec(index = 251)] AssignedSlots( - runtime_types::polkadot_runtime_common::assigned_slots::pallet::Error, + runtime_types::pezkuwi_runtime_common::assigned_slots::pallet::Error, ), #[codec(index = 254)] StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Error), @@ -61938,7 +61938,7 @@ pub mod api { #[codec(index = 44)] Whitelist(runtime_types::pallet_whitelist::pallet::Event), #[codec(index = 19)] - Claims(runtime_types::polkadot_runtime_common::claims::pallet::Event), + Claims(runtime_types::pezkuwi_runtime_common::claims::pallet::Event), #[codec(index = 24)] Utility(runtime_types::pallet_utility::pallet::Event), #[codec(index = 25)] @@ -61968,43 +61968,43 @@ pub mod api { #[codec(index = 45)] NisCounterpartBalances(runtime_types::pallet_balances::pallet::Event), #[codec(index = 53)] - ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event), + ParaInclusion(runtime_types::pezkuwi_runtime_parachains::inclusion::pallet::Event), #[codec(index = 56)] - Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Event), + Paras(runtime_types::pezkuwi_runtime_parachains::paras::pallet::Event), #[codec(index = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event), + Hrmp(runtime_types::pezkuwi_runtime_parachains::hrmp::pallet::Event), #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Event), + ParasDisputes(runtime_types::pezkuwi_runtime_parachains::disputes::pallet::Event), #[codec(index = 64)] MessageQueue(runtime_types::pallet_message_queue::pallet::Event), #[codec(index = 66)] OnDemandAssignmentProvider( - runtime_types::polkadot_runtime_parachains::on_demand::pallet::Event, + runtime_types::pezkuwi_runtime_parachains::on_demand::pallet::Event, ), #[codec(index = 70)] - Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event), + Registrar(runtime_types::pezkuwi_runtime_common::paras_registrar::pallet::Event), #[codec(index = 71)] - Slots(runtime_types::polkadot_runtime_common::slots::pallet::Event), + Slots(runtime_types::pezkuwi_runtime_common::slots::pallet::Event), #[codec(index = 72)] - Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Event), + Auctions(runtime_types::pezkuwi_runtime_common::auctions::pallet::Event), #[codec(index = 73)] - Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Event), + Crowdloan(runtime_types::pezkuwi_runtime_common::crowdloan::pallet::Event), #[codec(index = 74)] - Coretime(runtime_types::polkadot_runtime_parachains::coretime::pallet::Event), + Coretime(runtime_types::pezkuwi_runtime_parachains::coretime::pallet::Event), #[codec(index = 98)] MultiBlockMigrations(runtime_types::pallet_migrations::pallet::Event), #[codec(index = 99)] XcmPallet(runtime_types::pallet_xcm::pallet::Event), #[codec(index = 248)] IdentityMigrator( - runtime_types::polkadot_runtime_common::identity_migrator::pallet::Event, + runtime_types::pezkuwi_runtime_common::identity_migrator::pallet::Event, ), #[codec(index = 251)] AssignedSlots( - runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event, + runtime_types::pezkuwi_runtime_common::assigned_slots::pallet::Event, ), #[codec(index = 252)] - ValidatorManager(runtime_types::rococo_runtime::validator_manager::pallet::Event), + ValidatorManager(runtime_types::pezkuwichain_runtime::validator_manager::pallet::Event), #[codec(index = 254)] StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Event), #[codec(index = 249)] @@ -62040,9 +62040,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode")] pub enum RuntimeParameters { #[codec(index = 0)] - Nis(runtime_types::rococo_runtime::dynamic_params::nis::Parameters), + Nis(runtime_types::pezkuwichain_runtime::dynamic_params::nis::Parameters), #[codec(index = 1)] - Preimage(runtime_types::rococo_runtime::dynamic_params::preimage::Parameters), + Preimage(runtime_types::pezkuwichain_runtime::dynamic_params::preimage::Parameters), } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -62053,9 +62053,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode")] pub enum RuntimeParametersKey { #[codec(index = 0)] - Nis(runtime_types::rococo_runtime::dynamic_params::nis::ParametersKey), + Nis(runtime_types::pezkuwichain_runtime::dynamic_params::nis::ParametersKey), #[codec(index = 1)] - Preimage(runtime_types::rococo_runtime::dynamic_params::preimage::ParametersKey), + Preimage(runtime_types::pezkuwichain_runtime::dynamic_params::preimage::ParametersKey), } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -62066,9 +62066,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_encode")] pub enum RuntimeParametersValue { #[codec(index = 0)] - Nis(runtime_types::rococo_runtime::dynamic_params::nis::ParametersValue), + Nis(runtime_types::pezkuwichain_runtime::dynamic_params::nis::ParametersValue), #[codec(index = 1)] - Preimage(runtime_types::rococo_runtime::dynamic_params::preimage::ParametersValue), + Preimage(runtime_types::pezkuwichain_runtime::dynamic_params::preimage::ParametersValue), } #[derive( :: subxt :: ext :: pezkuwi_subxt_core :: ext :: scale_decode :: DecodeAsType, @@ -62080,8 +62080,8 @@ pub mod api { pub struct SessionKeys { pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, pub babe: runtime_types::sp_consensus_babe::app::Public, - pub para_validator: runtime_types::polkadot_primitives::v9::validator_app::Public, - pub para_assignment: runtime_types::polkadot_primitives::v9::assignment_app::Public, + pub para_validator: runtime_types::pezkuwi_primitives::v9::validator_app::Public, + pub para_assignment: runtime_types::pezkuwi_primitives::v9::assignment_app::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, pub beefy: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, } @@ -64090,13 +64090,13 @@ pub mod api { block_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] - Polkadot, + Pezkuwi, #[codec(index = 3)] Kusama, #[codec(index = 4)] - Westend, + Zagros, #[codec(index = 5)] - Rococo, + Pezkuwichain, #[codec(index = 6)] Wococo, #[codec(index = 7)] @@ -64109,7 +64109,7 @@ pub mod api { #[codec(index = 9)] BitcoinCash, #[codec(index = 10)] - PolkadotBulletin, + PezkuwiBulletin, } } pub mod junctions { @@ -64729,7 +64729,7 @@ pub mod api { block_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] - Polkadot, + Pezkuwi, #[codec(index = 3)] Kusama, #[codec(index = 7)] @@ -64742,7 +64742,7 @@ pub mod api { #[codec(index = 9)] BitcoinCash, #[codec(index = 10)] - PolkadotBulletin, + PezkuwiBulletin, } } pub mod junctions { @@ -65402,13 +65402,13 @@ pub mod api { block_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] - Polkadot, + Pezkuwi, #[codec(index = 3)] Kusama, #[codec(index = 4)] - Westend, + Zagros, #[codec(index = 5)] - Rococo, + Pezkuwichain, #[codec(index = 6)] Wococo, #[codec(index = 7)] @@ -65421,7 +65421,7 @@ pub mod api { #[codec(index = 9)] BitcoinCash, #[codec(index = 10)] - PolkadotBulletin, + PezkuwiBulletin, } } pub mod junctions { diff --git a/testing/integration-tests/src/full_client/metadata_validation.rs b/testing/integration-tests/src/full_client/metadata_validation.rs index 73d82b1b2c..7f175ad20f 100644 --- a/testing/integration-tests/src/full_client/metadata_validation.rs +++ b/testing/integration-tests/src/full_client/metadata_validation.rs @@ -17,9 +17,9 @@ use scale_info::{ build::{Fields, Variants}, meta_type, }; -use pezkuwi_subxt::{Metadata, OfflineClient, OnlineClient, SubstrateConfig}; +use pezkuwi_subxt::{Metadata, OfflineClient, OnlineClient, BizinikiwConfig}; -async fn fetch_v15_metadata(client: &OnlineClient) -> RuntimeMetadataV15 { +async fn fetch_v15_metadata(client: &OnlineClient) -> RuntimeMetadataV15 { let payload = node_runtime::apis().metadata().metadata_at_version(15); let runtime_metadata_bytes = client .runtime_api() @@ -40,7 +40,7 @@ async fn fetch_v15_metadata(client: &OnlineClient) -> RuntimeMe v15_metadata } -async fn metadata_to_api(metadata: Metadata, ctx: &TestContext) -> OfflineClient { +async fn metadata_to_api(metadata: Metadata, ctx: &TestContext) -> OfflineClient { OfflineClient::new( ctx.client().genesis_hash(), ctx.client().runtime_version(), diff --git a/testing/integration-tests/src/full_client/pallet_view_functions.rs b/testing/integration-tests/src/full_client/pallet_view_functions.rs index 12edf8c1c3..5a3a56334c 100644 --- a/testing/integration-tests/src/full_client/pallet_view_functions.rs +++ b/testing/integration-tests/src/full_client/pallet_view_functions.rs @@ -2,7 +2,7 @@ // This file is dual-licensed as Apache-2.0 or GPL-3.0. // see LICENSE for license details. -// TODO: Re-enable these once V16 is stable in Substrate nightlies, +// TODO: Re-enable these once V16 is stable in Bizinikiwi nightlies, // and test-runtime is updated to pull in V16 metadata by default. /* use crate::{subxt_test, test_context}; diff --git a/testing/integration-tests/src/full_client/transactions.rs b/testing/integration-tests/src/full_client/transactions.rs index 2e55e7907e..9f580fc953 100644 --- a/testing/integration-tests/src/full_client/transactions.rs +++ b/testing/integration-tests/src/full_client/transactions.rs @@ -7,7 +7,7 @@ use crate::{subxt_test, test_context}; use frame_decode::extrinsics::ExtrinsicType; use pezkuwi_subxt_signer::sr25519::dev; -// TODO: When VerifySignature exists on the substrate kitchensink runtime, +// TODO: When VerifySignature exists on the bizinikiwi kitchensink runtime, // let's try actuallty submitting v4 and v5 signed extrinsics to verify that // they are actually accepted by the node. diff --git a/testing/integration-tests/src/light_client/mod.rs b/testing/integration-tests/src/light_client/mod.rs index a75f184ecc..047f0229c6 100644 --- a/testing/integration-tests/src/light_client/mod.rs +++ b/testing/integration-tests/src/light_client/mod.rs @@ -14,7 +14,7 @@ //! using `OnceCell`. However, during the initialization, tokio::spawn is used //! to multiplex between subxt requests and node responses. The #[tokio::test] //! macro internally creates a new Runtime for each individual test. This means -//! that only the first test, which spawns the substrate binary and synchronizes +//! that only the first test, which spawns the bizinikiwi binary and synchronizes //! the light client, would have access to the background task. The cleanup process //! would destroy the spawned background task, preventing subsequent tests from //! accessing it. @@ -33,13 +33,13 @@ use std::sync::Arc; use pezkuwi_subxt::backend::chain_head::ChainHeadBackend; use pezkuwi_subxt::backend::rpc::RpcClient; use pezkuwi_subxt::dynamic::Value; -use pezkuwi_subxt::{client::OnlineClient, config::PolkadotConfig, lightclient::LightClient}; +use pezkuwi_subxt::{client::OnlineClient, config::PezkuwiConfig, lightclient::LightClient}; use pezkuwi_subxt_metadata::Metadata; -type Client = OnlineClient; +type Client = OnlineClient; -/// The Polkadot chainspec. -const POLKADOT_SPEC: &str = include_str!("../../../../artifacts/demo_chain_specs/polkadot.json"); +/// The Pezkuwi chainspec. +const POLKADOT_SPEC: &str = include_str!("../../../../artifacts/demo_chain_specs/pezkuwi.json"); // Check that we can subscribe to non-finalized blocks. async fn non_finalized_headers_subscription(api: &Client) -> Result<(), pezkuwi_subxt::Error> { @@ -165,11 +165,11 @@ async fn dynamic_events(api: &Client) -> Result<(), pezkuwi_subxt::Error> { } async fn run_test(backend: BackendType) -> Result<(), pezkuwi_subxt::Error> { - // Note: This code fetches the chainspec from the Polkadot public RPC node. + // Note: This code fetches the chainspec from the Pezkuwi public RPC node. // This is not recommended for production use, as it may be slow and unreliable. // However, this can come in handy for testing purposes. // - // let chainspec = pezkuwi_subxt::utils::fetch_chainspec_from_rpc_node("wss://rpc.polkadot.io:443") + // let chainspec = pezkuwi_subxt::utils::fetch_chainspec_from_rpc_node("wss://rpc.pezkuwi.io:443") // .await // .unwrap(); // let chain_config = chainspec.get(); @@ -182,7 +182,7 @@ async fn run_test(backend: BackendType) -> Result<(), pezkuwi_subxt::Error> { BackendType::Unstable => { let backend = ChainHeadBackend::builder().build_with_background_driver(RpcClient::new(rpc)); - let api: OnlineClient = + let api: OnlineClient = OnlineClient::from_backend(Arc::new(backend)).await?; api } diff --git a/testing/integration-tests/src/utils/context.rs b/testing/integration-tests/src/utils/context.rs index c4ccbe10ef..457014c090 100644 --- a/testing/integration-tests/src/utils/context.rs +++ b/testing/integration-tests/src/utils/context.rs @@ -4,14 +4,14 @@ pub(crate) use crate::{node_runtime, utils::TestNodeProcess}; -use pezkuwi_subxt::SubstrateConfig; +use pezkuwi_subxt::BizinikiwConfig; use pezkuwi_subxt::client::OnlineClient; use super::node_proc::RpcClientKind; -/// `substrate-node` should be installed on the $PATH. We fall back -/// to also checking for an older `substrate` binary. -const SUBSTRATE_NODE_PATHS: &str = "substrate-node,substrate"; +/// `bizinikiwi-node` should be installed on the $PATH. We fall back +/// to also checking for an older `bizinikiwi` binary. +const SUBSTRATE_NODE_PATHS: &str = "bizinikiwi-node,bizinikiwi"; pub async fn test_context_with(authority: String, rpc_client_kind: RpcClientKind) -> TestContext { let paths = @@ -21,14 +21,14 @@ pub async fn test_context_with(authority: String, rpc_client_kind: RpcClientKind let mut proc = TestContext::build(&paths); proc.with_authority(authority); proc.with_rpc_client_kind(rpc_client_kind); - proc.spawn::().await.unwrap() + proc.spawn::().await.unwrap() } -pub type TestConfig = SubstrateConfig; +pub type TestConfig = BizinikiwConfig; -pub type TestContext = TestNodeProcess; +pub type TestContext = TestNodeProcess; -pub type TestClient = OnlineClient; +pub type TestClient = OnlineClient; pub async fn test_context() -> TestContext { test_context_with("alice".to_string(), RpcClientKind::Legacy).await diff --git a/testing/integration-tests/src/utils/node_proc.rs b/testing/integration-tests/src/utils/node_proc.rs index fb31d59a94..ba7e5c1396 100644 --- a/testing/integration-tests/src/utils/node_proc.rs +++ b/testing/integration-tests/src/utils/node_proc.rs @@ -6,7 +6,7 @@ use std::cell::RefCell; use std::ffi::{OsStr, OsString}; use std::sync::Arc; use std::time::Duration; -use substrate_runner::SubstrateNode; +use bizinikiwi_runner::BizinikiwiNode; use pezkuwi_subxt::backend::rpc::reconnecting_rpc_client::{ExponentialBackoff, RpcClientBuilder}; use pezkuwi_subxt::{ Config, OnlineClient, @@ -35,10 +35,10 @@ fn get_url(port: Option) -> String { } } -/// Spawn a local substrate node for testing subxt. +/// Spawn a local bizinikiwi node for testing subxt. pub struct TestNodeProcess { // Keep a handle to the node; once it's dropped the node is killed. - proc: Option, + proc: Option, // Lazily construct these when asked for. chainhead_backend: RefCell>>, @@ -165,14 +165,14 @@ impl TestNodeProcessBuilder { self } - /// Spawn the substrate node at the given path, and wait for rpc to be initialized. + /// Spawn the bizinikiwi node at the given path, and wait for rpc to be initialized. pub async fn spawn(self) -> Result, String> where R: Config, { // Only spawn a process if a URL to target wasn't provided as an env var. let proc = if !is_url_provided() { - let mut node_builder = SubstrateNode::builder(); + let mut node_builder = BizinikiwiNode::builder(); node_builder.binary_paths(&self.node_paths); if let Some(authority) = &self.authority { @@ -267,14 +267,14 @@ async fn build_chainhead_backend( #[cfg(lightclient)] async fn build_light_client( - maybe_proc: &Option, + maybe_proc: &Option, ) -> Result, String> { use pezkuwi_subxt::lightclient::{ChainConfig, LightClient}; let proc = if let Some(proc) = maybe_proc { proc } else { - return Err("Cannot build light client: no substrate node is running (you can't start a light client when pointing to an external node)".into()); + return Err("Cannot build light client: no bizinikiwi node is running (you can't start a light client when pointing to an external node)".into()); }; // RPC endpoint. Only localhost works. diff --git a/testing/integration-tests/src/utils/wait_for_blocks.rs b/testing/integration-tests/src/utils/wait_for_blocks.rs index 286cfb3f44..897ab437e4 100644 --- a/testing/integration-tests/src/utils/wait_for_blocks.rs +++ b/testing/integration-tests/src/utils/wait_for_blocks.rs @@ -3,7 +3,7 @@ // see LICENSE for license details. use pezkuwi_subxt::{ - Config, OnlineClient, SubstrateConfig, backend::StreamOf, blocks::Block, client::OnlineClientT, + Config, OnlineClient, BizinikiwConfig, backend::StreamOf, blocks::Block, client::OnlineClientT, error::BackendError, }; @@ -33,7 +33,7 @@ pub async fn wait_for_number_of_blocks( /// and one relies on something to included in finalized block in ner future. pub async fn consume_initial_blocks( blocks: &mut StreamOf< - Result>, BackendError>, + Result>, BackendError>, >, ) { use tokio::time::{Duration, Instant, interval_at}; diff --git a/testing/no-std-tests/src/main.rs b/testing/no-std-tests/src/main.rs index 616ce389f2..3cacca7d1c 100644 --- a/testing/no-std-tests/src/main.rs +++ b/testing/no-std-tests/src/main.rs @@ -37,7 +37,7 @@ fn compile_test() { let bytes: alloc::vec::Vec = alloc::vec![0, 1, 2, 3, 4]; pezkuwi_subxt_metadata::Metadata::decode(&mut &bytes[..]).expect_err("invalid byte sequence"); - const METADATA: &[u8] = include_bytes!("../../../artifacts/polkadot_metadata_small.scale"); + const METADATA: &[u8] = include_bytes!("../../../artifacts/pezkuwi_metadata_small.scale"); pezkuwi_subxt_metadata::Metadata::decode(&mut &METADATA[..]).expect("should be valid metadata"); // Subxt signer compiles (though nothing much works on this particular nostd target...): @@ -68,7 +68,7 @@ fn compile_test() { } #[pezkuwi_subxt_macro::subxt( - runtime_metadata_path = "../../artifacts/polkadot_metadata_full.scale", + runtime_metadata_path = "../../artifacts/pezkuwi_metadata_full.scale", crate = "::pezkuwi_subxt_core" )] -pub mod polkadot {} +pub mod pezkuwi {} diff --git a/testing/substrate-runner/Cargo.toml b/testing/substrate-runner/Cargo.toml index 6642ad5b20..b75bfe6c2b 100644 --- a/testing/substrate-runner/Cargo.toml +++ b/testing/substrate-runner/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "substrate-runner" +name = "bizinikiwi-runner" version.workspace = true edition = "2021" publish = false diff --git a/testing/substrate-runner/README.md b/testing/substrate-runner/README.md index 7cfd1100c6..37ad3e7aaa 100644 --- a/testing/substrate-runner/README.md +++ b/testing/substrate-runner/README.md @@ -1,3 +1,3 @@ -# substrate-runner +# bizinikiwi-runner -A small crate whose sole purpose is starting up a substrate node on some free port and handing back a handle to it with the port that it started on. \ No newline at end of file +A small crate whose sole purpose is starting up a bizinikiwi node on some free port and handing back a handle to it with the port that it started on. \ No newline at end of file diff --git a/testing/substrate-runner/src/error.rs b/testing/substrate-runner/src/error.rs index c9e332005e..2aa127fa28 100644 --- a/testing/substrate-runner/src/error.rs +++ b/testing/substrate-runner/src/error.rs @@ -16,15 +16,15 @@ impl std::fmt::Display for Error { Error::Io(err) => write!(f, "IO error: {err}"), Error::CouldNotExtractPort(log) => write!( f, - "could not extract port from running substrate node's stdout: {log}" + "could not extract port from running bizinikiwi node's stdout: {log}" ), Error::CouldNotExtractP2pAddress(log) => write!( f, - "could not extract p2p address from running substrate node's stdout: {log}" + "could not extract p2p address from running bizinikiwi node's stdout: {log}" ), Error::CouldNotExtractP2pPort(log) => write!( f, - "could not extract p2p port from running substrate node's stdout: {log}" + "could not extract p2p port from running bizinikiwi node's stdout: {log}" ), } } diff --git a/testing/substrate-runner/src/lib.rs b/testing/substrate-runner/src/lib.rs index cb305fc14a..924ed7c8cf 100644 --- a/testing/substrate-runner/src/lib.rs +++ b/testing/substrate-runner/src/lib.rs @@ -14,40 +14,40 @@ pub use error::Error; type CowStr = Cow<'static, str>; -pub struct SubstrateNodeBuilder { +pub struct BizinikiwiNodeBuilder { binary_paths: Vec, custom_flags: HashMap>, } -impl Default for SubstrateNodeBuilder { +impl Default for BizinikiwiNodeBuilder { fn default() -> Self { - SubstrateNodeBuilder::new() + BizinikiwiNodeBuilder::new() } } -impl SubstrateNodeBuilder { - /// Configure a new Substrate node. +impl BizinikiwiNodeBuilder { + /// Configure a new Bizinikiwi node. pub fn new() -> Self { - SubstrateNodeBuilder { + BizinikiwiNodeBuilder { binary_paths: vec![], custom_flags: Default::default(), } } - /// Provide "substrate-node" and "substrate" as binary paths - pub fn substrate(&mut self) -> &mut Self { - self.binary_paths = vec!["substrate-node".into(), "substrate".into()]; + /// Provide "bizinikiwi-node" and "bizinikiwi" as binary paths + pub fn bizinikiwi(&mut self) -> &mut Self { + self.binary_paths = vec!["bizinikiwi-node".into(), "bizinikiwi".into()]; self } - /// Provide "polkadot" as binary path. - pub fn polkadot(&mut self) -> &mut Self { - self.binary_paths = vec!["polkadot".into()]; + /// Provide "pezkuwi" as binary path. + pub fn pezkuwi(&mut self) -> &mut Self { + self.binary_paths = vec!["pezkuwi".into()]; self } - /// Set the path to the `substrate` binary; defaults to "substrate-node" - /// or "substrate". + /// Set the path to the `bizinikiwi` binary; defaults to "bizinikiwi-node" + /// or "bizinikiwi". pub fn binary_paths(&mut self, paths: Paths) -> &mut Self where Paths: IntoIterator, @@ -70,7 +70,7 @@ impl SubstrateNodeBuilder { } /// Spawn the node, handing back an object which, when dropped, will stop it. - pub fn spawn(mut self) -> Result { + pub fn spawn(mut self) -> Result { // Try to spawn the binary at each path, returning the // first "ok" or last error that we encountered. let mut res = Err(io::Error::other("No binary path provided")); @@ -85,7 +85,7 @@ impl SubstrateNodeBuilder { self.custom_flags .insert("base-path".into(), Some(path.clone().into())); - res = SubstrateNodeBuilder::try_spawn(binary_path, &self.custom_flags); + res = BizinikiwiNodeBuilder::try_spawn(binary_path, &self.custom_flags); if res.is_ok() { bin_path.clone_from(binary_path); break; @@ -99,13 +99,13 @@ impl SubstrateNodeBuilder { // Wait for RPC port to be logged (it's logged to stderr). let stderr = proc.stderr.take().unwrap(); - let running_node = try_find_substrate_port_from_output(stderr); + let running_node = try_find_bizinikiwi_port_from_output(stderr); let ws_port = running_node.ws_port()?; let p2p_address = running_node.p2p_address()?; let p2p_port = running_node.p2p_port()?; - Ok(SubstrateNode { + Ok(BizinikiwiNode { binary_path: bin_path, custom_flags: self.custom_flags, proc, @@ -144,7 +144,7 @@ impl SubstrateNodeBuilder { } } -pub struct SubstrateNode { +pub struct BizinikiwiNode { binary_path: OsString, custom_flags: HashMap>, proc: process::Child, @@ -154,10 +154,10 @@ pub struct SubstrateNode { base_path: String, } -impl SubstrateNode { - /// Configure and spawn a new [`SubstrateNode`]. - pub fn builder() -> SubstrateNodeBuilder { - SubstrateNodeBuilder::new() +impl BizinikiwiNode { + /// Configure and spawn a new [`BizinikiwiNode`]. + pub fn builder() -> BizinikiwiNodeBuilder { + BizinikiwiNodeBuilder::new() } /// Return the ID of the running process. @@ -235,16 +235,16 @@ impl SubstrateNode { } } -impl Drop for SubstrateNode { +impl Drop for BizinikiwiNode { fn drop(&mut self) { let _ = self.kill(); self.cleanup() } } -// Consume a stderr reader from a spawned substrate command and +// Consume a stderr reader from a spawned bizinikiwi command and // locate the port number that is logged out to it. -fn try_find_substrate_port_from_output(r: impl Read + Send + 'static) -> SubstrateNodeInfo { +fn try_find_bizinikiwi_port_from_output(r: impl Read + Send + 'static) -> BizinikiwiNodeInfo { let mut port = None; let mut p2p_address = None; let mut p2p_port = None; @@ -321,7 +321,7 @@ fn try_find_substrate_port_from_output(r: impl Read + Send + 'static) -> Substra } } - SubstrateNodeInfo { + BizinikiwiNodeInfo { ws_port: port, p2p_address, p2p_port, @@ -331,14 +331,14 @@ fn try_find_substrate_port_from_output(r: impl Read + Send + 'static) -> Substra /// Data extracted from the running node's stdout. #[derive(Debug)] -pub struct SubstrateNodeInfo { +pub struct BizinikiwiNodeInfo { ws_port: Option, p2p_address: Option, p2p_port: Option, log: String, } -impl SubstrateNodeInfo { +impl BizinikiwiNodeInfo { pub fn ws_port(&self) -> Result { self.ws_port .ok_or_else(|| Error::CouldNotExtractPort(self.log.clone())) diff --git a/testing/test-runtime/Cargo.toml b/testing/test-runtime/Cargo.toml index 934695cf1d..12d864b637 100644 --- a/testing/test-runtime/Cargo.toml +++ b/testing/test-runtime/Cargo.toml @@ -16,7 +16,7 @@ jsonrpsee = { workspace = true, features = [ "client-ws-transport-tls", ] } serde = { workspace = true } -substrate-runner = { workspace = true } +bizinikiwi-runner = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"] } tokio-util = { workspace = true, features = ["compat"] } which = { workspace = true } diff --git a/testing/test-runtime/README.md b/testing/test-runtime/README.md index 07cc531360..f54a55fd83 100644 --- a/testing/test-runtime/README.md +++ b/testing/test-runtime/README.md @@ -3,8 +3,8 @@ The logic for this crate exists mainly in the `build.rs` file. At compile time, this crate will: -- Spin up a local `substrate` binary (set the `SUBSTRATE_NODE_PATH` env var to point to a custom binary, otherwise it'll look for `substrate` on your PATH). +- Spin up a local `bizinikiwi` binary (set the `SUBSTRATE_NODE_PATH` env var to point to a custom binary, otherwise it'll look for `bizinikiwi` on your PATH). - Obtain metadata from this node. - Export the metadata and a `node_runtime` module which has been annotated using the `subxt` proc macro and is based off the above metadata. -The reason for doing this is that our integration tests (which also spin up a Substrate node) can then use the generated `subxt` types from the exact node being tested against, so that we don't have to worry about metadata getting out of sync with the binary under test. +The reason for doing this is that our integration tests (which also spin up a Bizinikiwi node) can then use the generated `subxt` types from the exact node being tested against, so that we don't have to worry about metadata getting out of sync with the binary under test. diff --git a/testing/test-runtime/build.rs b/testing/test-runtime/build.rs index 5532139218..3186496ada 100644 --- a/testing/test-runtime/build.rs +++ b/testing/test-runtime/build.rs @@ -4,7 +4,7 @@ use codec::{Decode, Encode}; use std::{env, fs, path::Path}; -use substrate_runner::{Error as SubstrateNodeError, SubstrateNode}; +use bizinikiwi_runner::{Error as BizinikiwiNodeError, BizinikiwiNode}; // This variable accepts a single binary name or comma separated list. static SUBSTRATE_BIN_ENV_VAR: &str = "SUBSTRATE_NODE_PATH"; @@ -17,24 +17,24 @@ async fn main() { } async fn run() { - // Select substrate binary to run based on env var. - let substrate_bins: String = - env::var(SUBSTRATE_BIN_ENV_VAR).unwrap_or_else(|_| "substrate-node,substrate".to_owned()); - let substrate_bins_vec: Vec<&str> = substrate_bins.split(',').map(|s| s.trim()).collect(); + // Select bizinikiwi binary to run based on env var. + let bizinikiwi_bins: String = + env::var(SUBSTRATE_BIN_ENV_VAR).unwrap_or_else(|_| "bizinikiwi-node,bizinikiwi".to_owned()); + let bizinikiwi_bins_vec: Vec<&str> = bizinikiwi_bins.split(',').map(|s| s.trim()).collect(); - let mut node_builder = SubstrateNode::builder(); - node_builder.binary_paths(substrate_bins_vec.iter()); + let mut node_builder = BizinikiwiNode::builder(); + node_builder.binary_paths(bizinikiwi_bins_vec.iter()); let node = match node_builder.spawn() { Ok(node) => node, - Err(SubstrateNodeError::Io(e)) if e.kind() == std::io::ErrorKind::NotFound => { + Err(BizinikiwiNodeError::Io(e)) if e.kind() == std::io::ErrorKind::NotFound => { panic!( - "A substrate binary should be installed on your path for testing purposes. \ - See https://github.com/paritytech/subxt/tree/master#integration-testing" + "A bizinikiwi binary should be installed on your path for testing purposes. \ + See https://github.com/pezkuwichain/subxt/tree/master#integration-testing" ) } Err(e) => { - panic!("Cannot spawn substrate command from any of {substrate_bins_vec:?}: {e}") + panic!("Cannot spawn bizinikiwi command from any of {bizinikiwi_bins_vec:?}: {e}") } }; @@ -52,7 +52,7 @@ async fn run() { // and so we need to spit it out here and include it verbatim instead. let runtime_api_contents = format!( r#" - /// Generated types for the locally running Substrate node using V15 metadata. + /// Generated types for the locally running Bizinikiwi node using V15 metadata. #[pezkuwi_subxt::subxt( runtime_metadata_path = "{stable_metadata_path}", derive_for_all_types = "Eq, PartialEq", @@ -63,16 +63,16 @@ async fn run() { let runtime_path = Path::new(&out_dir).join("runtime.rs"); fs::write(runtime_path, runtime_api_contents).expect("Couldn't write runtime rust output"); - for substrate_node_path in substrate_bins_vec { - let Ok(full_path) = which::which(substrate_node_path) else { + for bizinikiwi_node_path in bizinikiwi_bins_vec { + let Ok(full_path) = which::which(bizinikiwi_node_path) else { continue; }; - // Re-build if the substrate binary we're pointed to changes (mtime): + // Re-build if the bizinikiwi binary we're pointed to changes (mtime): println!("cargo:rerun-if-changed={}", full_path.to_string_lossy()); } - // Re-build if we point to a different substrate binary: + // Re-build if we point to a different bizinikiwi binary: println!("cargo:rerun-if-env-changed={SUBSTRATE_BIN_ENV_VAR}"); // Re-build if this file changes: println!("cargo:rerun-if-changed=build.rs"); diff --git a/testing/test-runtime/src/lib.rs b/testing/test-runtime/src/lib.rs index 26de88d537..30d265dbc0 100644 --- a/testing/test-runtime/src/lib.rs +++ b/testing/test-runtime/src/lib.rs @@ -4,7 +4,7 @@ #![allow(clippy::too_many_arguments)] -/// The SCALE encoded metadata obtained from a local run of a substrate node. +/// The SCALE encoded metadata obtained from a local run of a bizinikiwi node. pub static METADATA: &[u8] = include_bytes!(concat!( env!("OUT_DIR"), "/test_node_runtime_metadata_v15.scale" diff --git a/testing/ui-tests/src/correct/custom_values.rs b/testing/ui-tests/src/correct/custom_values.rs index 215f05b68c..9d7e70806d 100644 --- a/testing/ui-tests/src/correct/custom_values.rs +++ b/testing/ui-tests/src/correct/custom_values.rs @@ -1,5 +1,5 @@ use codec::{Decode}; -use pezkuwi_subxt::{config::substrate::H256, OfflineClient, PolkadotConfig}; +use pezkuwi_subxt::{config::bizinikiwi::H256, OfflineClient, PezkuwiConfig}; use pezkuwi_subxt_metadata::Metadata; #[pezkuwi_subxt::subxt(runtime_metadata_path = "../../../../artifacts/metadata_with_custom_values.scale", derive_for_all_types = "Eq, PartialEq")] @@ -29,7 +29,7 @@ fn main() { assert_eq!(vec![0,1,2,3], custom_bytes); } -fn construct_offline_client() -> OfflineClient { +fn construct_offline_client() -> OfflineClient { let genesis_hash = { let h = "91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"; let bytes = hex::decode(h).unwrap(); @@ -44,5 +44,5 @@ fn construct_offline_client() -> OfflineClient { let bytes = std::fs::read("../../../../artifacts/metadata_with_custom_values.scale").unwrap(); Metadata::decode(&mut &*bytes).unwrap() }; - OfflineClient::::new(genesis_hash, runtime_version, metadata) + OfflineClient::::new(genesis_hash, runtime_version, metadata) } diff --git a/testing/ui-tests/src/correct/generic_params.rs b/testing/ui-tests/src/correct/generic_params.rs index 6fb9f4b94a..e13dd58da3 100644 --- a/testing/ui-tests/src/correct/generic_params.rs +++ b/testing/ui-tests/src/correct/generic_params.rs @@ -20,7 +20,7 @@ pub struct Second(T, U); pub struct DoesntImplEncodeDecodeAsType(u16); #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // Discarding both params: @@ -30,7 +30,7 @@ pub struct DoesntImplEncodeDecodeAsType(u16); pub mod node_runtime {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // Discarding second param: @@ -40,7 +40,7 @@ pub mod node_runtime {} pub mod node_runtime2 {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // Discarding first param: @@ -50,7 +50,7 @@ pub mod node_runtime2 {} pub mod node_runtime3 {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // Swapping params: @@ -60,7 +60,7 @@ pub mod node_runtime3 {} pub mod node_runtime4 {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // Ignore input params and just use concrete types on output: @@ -70,7 +70,7 @@ pub mod node_runtime4 {} pub mod node_runtime5 {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // We can put a static type in, too: @@ -80,7 +80,7 @@ pub mod node_runtime5 {} pub mod node_runtime6 {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // Check that things can be wrapped in our Static type: @@ -90,7 +90,7 @@ pub mod node_runtime6 {} pub mod node_runtime7 {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::MultiAddress", // Recursive type param substitution should work too (swapping out nested A and B): @@ -100,7 +100,7 @@ pub mod node_runtime7 {} pub mod node_runtime8 {} fn main() { - // We assume Polkadot's config of MultiAddress here + // We assume Pezkuwi's config of MultiAddress here let _ = node_runtime::tx() .balances() .transfer_allow_death(CustomAddress(1337), 123); diff --git a/testing/ui-tests/src/correct/rust_items_preserved.rs b/testing/ui-tests/src/correct/rust_items_preserved.rs index 28823079d6..5d07f440ee 100644 --- a/testing/ui-tests/src/correct/rust_items_preserved.rs +++ b/testing/ui-tests/src/correct/rust_items_preserved.rs @@ -1,4 +1,4 @@ -#[pezkuwi_subxt::subxt(runtime_metadata_path = "../../../../artifacts/polkadot_metadata_tiny.scale")] +#[pezkuwi_subxt::subxt(runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_tiny.scale")] pub mod node_runtime { pub struct SomeStruct; pub enum SomeEnum { diff --git a/testing/ui-tests/src/correct/wasm_runtime_metadata.rs b/testing/ui-tests/src/correct/wasm_runtime_metadata.rs index 0405d1b9f8..6e27666fd7 100644 --- a/testing/ui-tests/src/correct/wasm_runtime_metadata.rs +++ b/testing/ui-tests/src/correct/wasm_runtime_metadata.rs @@ -1,7 +1,7 @@ -#[pezkuwi_subxt::subxt(runtime_path = "../../../../artifacts/westend_runtime.wasm")] +#[pezkuwi_subxt::subxt(runtime_path = "../../../../artifacts/zagros_runtime.wasm")] mod runtime {} -#[pezkuwi_subxt::subxt(runtime_path = "../../../../artifacts/westend_runtime.compact.compressed.wasm")] +#[pezkuwi_subxt::subxt(runtime_path = "../../../../artifacts/zagros_runtime.compact.compressed.wasm")] mod runtime_compressed {} fn main() { diff --git a/testing/ui-tests/src/incorrect/substitute_at_wrong_path.rs b/testing/ui-tests/src/incorrect/substitute_at_wrong_path.rs index 9f9b22e72c..4e9f32a61d 100644 --- a/testing/ui-tests/src/incorrect/substitute_at_wrong_path.rs +++ b/testing/ui-tests/src/incorrect/substitute_at_wrong_path.rs @@ -1,5 +1,5 @@ #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "sp_runtime::multiaddress::Event", with = "crate::MyEvent" diff --git a/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs b/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs index 0e21c48cc9..4ceded37dd 100644 --- a/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs +++ b/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs @@ -1,5 +1,5 @@ #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_small.scale", + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_small.scale", substitute_type( path = "frame_support::dispatch::DispatchInfo", with = "my_mod::DispatchInfo" diff --git a/testing/ui-tests/src/incorrect/url_and_path_provided.rs b/testing/ui-tests/src/incorrect/url_and_path_provided.rs index ac3c5097fb..26cfb645e4 100644 --- a/testing/ui-tests/src/incorrect/url_and_path_provided.rs +++ b/testing/ui-tests/src/incorrect/url_and_path_provided.rs @@ -1,13 +1,13 @@ #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_tiny.scale", - runtime_metadata_insecure_url = "wss://rpc.polkadot.io:443" + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_tiny.scale", + runtime_metadata_insecure_url = "wss://rpc.pezkuwi.io:443" )] pub mod node_runtime {} #[pezkuwi_subxt::subxt( - runtime_metadata_path = "../../../../artifacts/polkadot_metadata_tiny.scale", - runtime_metadata_insecure_url = "wss://rpc.polkadot.io:443", - runtime_path = "../../../../artifacts/westend_runtime.wasm" + runtime_metadata_path = "../../../../artifacts/pezkuwi_metadata_tiny.scale", + runtime_metadata_insecure_url = "wss://rpc.pezkuwi.io:443", + runtime_path = "../../../../artifacts/zagros_runtime.wasm" )] pub mod node_runtime2 {} diff --git a/testing/ui-tests/src/runtime_apis.rs b/testing/ui-tests/src/runtime_apis.rs index 1f86c56f14..ca460927ae 100644 --- a/testing/ui-tests/src/runtime_apis.rs +++ b/testing/ui-tests/src/runtime_apis.rs @@ -10,7 +10,7 @@ use frame_metadata::{ use crate::utils::generate_metadata_from_runtime_apis; /// Generate metadata which contains a `Map` storage entry with no hashers/values. -/// This is a bit of an odd case, but it was raised in https://github.com/paritytech/subxt/issues/552, +/// This is a bit of an odd case, but it was raised in https://github.com/pezkuwichain/subxt/issues/552, /// and this test will fail before the fix and should pass once the fix is applied. pub fn metadata_runtime_api_underscore_method_name() -> RuntimeMetadataPrefixed { generate_metadata_from_runtime_apis(vec![RuntimeApiMetadata { diff --git a/testing/ui-tests/src/storage.rs b/testing/ui-tests/src/storage.rs index 2f9b79d3c1..f39a103554 100644 --- a/testing/ui-tests/src/storage.rs +++ b/testing/ui-tests/src/storage.rs @@ -11,7 +11,7 @@ use scale_info::meta_type; use crate::utils::generate_metadata_from_storage_entries; /// Generate metadata which contains a `Map` storage entry with no hashers/values. -/// This is a bit of an odd case, but it was raised in https://github.com/paritytech/subxt/issues/552, +/// This is a bit of an odd case, but it was raised in https://github.com/pezkuwichain/subxt/issues/552, /// and this test will fail before the fix and should pass once the fix is applied. pub fn metadata_storage_map_no_keys() -> RuntimeMetadataPrefixed { generate_metadata_from_storage_entries(vec![StorageEntryMetadata { diff --git a/testing/ui-tests/src/utils/metadata_test_runner.rs b/testing/ui-tests/src/utils/metadata_test_runner.rs index 95b725dfed..e959e72303 100644 --- a/testing/ui-tests/src/utils/metadata_test_runner.rs +++ b/testing/ui-tests/src/utils/metadata_test_runner.rs @@ -7,7 +7,7 @@ use frame_metadata::RuntimeMetadataPrefixed; use std::io::Read; static TEST_DIR_PREFIX: &str = "subxt_generated_ui_tests_"; -static METADATA_FILE: &str = "../../artifacts/polkadot_metadata_full.scale"; +static METADATA_FILE: &str = "../../artifacts/pezkuwi_metadata_full.scale"; #[derive(Default)] pub struct MetadataTestRunner { @@ -144,7 +144,7 @@ impl MetadataTestRunnerCaseBuilder { use std::io::Read; #[pezkuwi_subxt::subxt(runtime_metadata_path = "{tmp_macro_metadata_path}")] - pub mod polkadot {{}} + pub mod pezkuwi {{}} fn main() {{ // load validation metadata: @@ -159,7 +159,7 @@ impl MetadataTestRunnerCaseBuilder { .expect("Cannot decode metadata bytes"); // validate it: - let is_valid = polkadot::is_codegen_valid_for(&metadata); + let is_valid = pezkuwi::is_codegen_valid_for(&metadata); assert_eq!(is_valid, {should_be_valid_str}, "expected validity to line up"); }} "# diff --git a/testing/wasm-lightclient-tests/tests/wasm.rs b/testing/wasm-lightclient-tests/tests/wasm.rs index 23425fbaf4..553d81144c 100644 --- a/testing/wasm-lightclient-tests/tests/wasm.rs +++ b/testing/wasm-lightclient-tests/tests/wasm.rs @@ -1,7 +1,7 @@ #![cfg(target_arch = "wasm32")] use futures_util::StreamExt; -use pezkuwi_subxt::{client::OnlineClient, config::PolkadotConfig, lightclient::LightClient}; +use pezkuwi_subxt::{client::OnlineClient, config::PezkuwiConfig, lightclient::LightClient}; use wasm_bindgen_test::*; wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); @@ -46,16 +46,16 @@ async fn light_client_works() { /// We connect to an RPC node because the light client can struggle to sync in /// time to a new local node for some reason. Because this can be brittle (eg RPC nodes can /// go down or have network issues), we try a few RPC nodes until we find one that works. -async fn connect_to_rpc_node() -> OnlineClient { +async fn connect_to_rpc_node() -> OnlineClient { let rpc_node_urls = [ - "wss://rpc.polkadot.io", + "wss://rpc.pezkuwi.io", "wss://1rpc.io/dot", - "wss://polkadot-public-rpc.blockops.network/ws", + "wss://pezkuwi-public-rpc.blockops.network/ws", ]; async fn do_connect( url: &str, - ) -> Result, Box> + ) -> Result, Box> { let chainspec = pezkuwi_subxt::utils::fetch_chainspec_from_rpc_node(url).await?; let (_lc, rpc) = LightClient::relay_chain(chainspec.get())?; diff --git a/testing/wasm-rpc-tests/tests/wasm.rs b/testing/wasm-rpc-tests/tests/wasm.rs index c6d0d00a4d..ea2d396627 100644 --- a/testing/wasm-rpc-tests/tests/wasm.rs +++ b/testing/wasm-rpc-tests/tests/wasm.rs @@ -1,6 +1,6 @@ #![cfg(target_arch = "wasm32")] -use pezkuwi_subxt::config::SubstrateConfig; +use pezkuwi_subxt::config::BizinikiwConfig; use pezkuwi_subxt::backend::rpc::reconnecting_rpc_client::RpcClient as ReconnectingRpcClient; use wasm_bindgen_test::*; @@ -12,10 +12,10 @@ wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); // wasm-pack test --firefox --headless` // ``` // -// You'll need to have a substrate node running: +// You'll need to have a bizinikiwi node running: // // ```bash -// ./substrate-node --dev --node-key 0000000000000000000000000000000000000000000000000000000000000001 --listen-addr /ip4/0.0.0.0/tcp/30333/ws +// ./bizinikiwi-node --dev --node-key 0000000000000000000000000000000000000000000000000000000000000001 --listen-addr /ip4/0.0.0.0/tcp/30333/ws // ``` // // Use the following to enable logs: @@ -28,7 +28,7 @@ wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser); async fn wasm_ws_transport_works() { console_error_panic_hook::set_once(); tracing_wasm::set_as_global_default(); - let client = pezkuwi_subxt::client::OnlineClient::::from_url("ws://127.0.0.1:9944") + let client = pezkuwi_subxt::client::OnlineClient::::from_url("ws://127.0.0.1:9944") .await .unwrap(); let hasher = client.hasher(); @@ -41,7 +41,7 @@ async fn wasm_ws_transport_works() { async fn wasm_ws_chainhead_works() { let rpc = pezkuwi_subxt::backend::rpc::RpcClient::from_url("ws://127.0.0.1:9944").await.unwrap(); let backend = pezkuwi_subxt::backend::chain_head::ChainHeadBackendBuilder::new().build_with_background_driver(rpc); - let client = pezkuwi_subxt::client::OnlineClient::::from_backend(std::sync::Arc::new(backend)).await.unwrap(); + let client = pezkuwi_subxt::client::OnlineClient::::from_backend(std::sync::Arc::new(backend)).await.unwrap(); let hasher = client.hasher(); let mut stream = client.backend().stream_best_block_headers(hasher).await.unwrap(); @@ -51,7 +51,7 @@ async fn wasm_ws_chainhead_works() { #[wasm_bindgen_test] async fn reconnecting_rpc_client_ws_transport_works() { let rpc = ReconnectingRpcClient::builder().build("ws://127.0.0.1:9944".to_string()).await.unwrap(); - let client = pezkuwi_subxt::client::OnlineClient::::from_rpc_client(rpc.clone()).await.unwrap(); + let client = pezkuwi_subxt::client::OnlineClient::::from_rpc_client(rpc.clone()).await.unwrap(); let hasher = client.hasher(); let mut stream = client.backend().stream_best_block_headers(hasher).await.unwrap();