Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.

Commit 4ffd9a8

Browse files
bump(deps): update dependency @polkadot/api to v9 (#119)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@polkadot/api](https://togithub.com/polkadot-js/api/tree/master/packages/api#readme) ([source](https://togithub.com/polkadot-js/api)) | [`^8.8.2` -> `^9.5.1`](https://renovatebot.com/diffs/npm/@polkadot%2fapi/8.8.2/9.5.1) | [![age](https://badges.renovateapi.com/packages/npm/@polkadot%2fapi/9.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@polkadot%2fapi/9.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@polkadot%2fapi/9.5.1/compatibility-slim/8.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@polkadot%2fapi/9.5.1/confidence-slim/8.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>polkadot-js/api</summary> ### [`v9.5.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;951-Oct-8-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.4.3...v9.5.1) - **Important** While the API witll detect and decorate the weight type based on V1 or V2, the default `Weight` type (used in runtime calls and RPCs) has not been swapped from the old `u64` variant. This means that on new chains using `WeightV2`, the TS decorated type will still reflect the old version. Changes: - Adjust handling of `Weight` type for V2 structures - Add alis definitions for `Weight{V1, V2}` (used for type overrides) - Cater for weight v2 (along with v1 pass-through) extrinsics in `api-contract` - Update to latest Substrate, Polkadot & Kusama metadata ### [`v9.4.3`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;943-Oct-2-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.4.2...v9.4.3) Contributed: - Allow for new `ink_primitives` types (Thanks to https://github.com/statictype) - Fix contracts runtime `instantiate` call params (Thanks to https://github.com/statictype) Changes: - Align staking derive redeemableSum with Rust source (`currentEra` vs `activeEra` usage) - Add `@deprecated` flag to RPC interface generation (`contracts_*` & `state_get{Pairs/Keys}`) - Polkadot 9280/9281, Kusama 9291 upgrade blocks ### [`v9.4.2`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;942-Sep-24-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.4.1...v9.4.2) Contributed: - Allow for re-subscriptions on `ScProvider` (Thanks to https://github.com/wirednkod) Changes: - Align derives to cater for latest (& previous) Substrate interfaces - Update to latest Substrate, Polkadot & Kusama metadata ### [`v9.4.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;941-Sep-17-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.3.3...v9.4.1) Contributed: - Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod) Changes: - Cater for v1.5 Weight JSON representation (via RPC) - Polkadot 9270, Kusama 9280 & Westend 9290 upgrade blocks - Update to latest Substrate, Polkadot & Kusama metadata ### [`v9.3.3`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;933-Sep-6-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.3.2...v9.3.3) Contributed: - Ensure JS reserved words are aliassed in types (Thanks to https://github.com/dqbd) Changes: - Fix and adjust tests for `AccountId{32, 33}` ### [`v9.3.2`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;932-Sep-4-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.3.1...v9.3.2) Changes: - Cater for v1.5 Weight types (structure to inner value) - Westend 9280 & Kusama 9271 upgrade blocks - Update to latest Substrate, Polkadot & Kusama metadata ### [`v9.3.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;931-Sep-3-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.2.4...v9.3.1) Changes: - Support for ink! v4 metadata - Adjust pool runtime call `pendingRewards` return type - Support for `AccountId33` (raw/compressed 33-byte ecdsa) - Update to latest Substrate, Polkadot & Kusama metadata ### [`v9.2.4`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;924-Aug-27-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.2.3...v9.2.4) Changes: - Remove extra error logging in internal rpc-core Observable - Allow for embebbed `Enum` in `Struct` typegen (no `lookupName`) ### [`v9.2.3`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;923-Aug-21-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.2.2...v9.2.3) Contributed: - Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod) Changes: - Adjust `StakingLedger` with fallback for Kusama 1050 (2 different structures on-chain) - Remove `TryRuntime` state call definitions (only off-chain usage) - Update to latest Substrate, Polkadot & Kusama metadata ### [`v9.2.2`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;922-Aug-16-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.2.1...v9.2.2) Changes: - Replace `rpc.payment.queryInfo` usage with `call.transactionPaymentApi.queryInfo` - Ensure that `api.call.*` is decorated on historic blocks ### [`v9.2.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;921-Aug-13-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.1.1...v9.2.1) - **Important** If using `import { WellKnownChain } from '@&#8203;polkadot/rpc-provider'` it is recommended that you rather use `ScProvider.WellKnownChain` (the import may be dropped in a future major version) Changes: - Don't assume non-empty path specifiers on portable variant/composites - Explicit param length checks for all generic portable overrides - Re-export `ScProvider` in `@polkadot/api`, aligning with `{Http, Ws}Provider` - Expose `WellKnownChain` as static on `ScProvider.WellKnownChain` - Checks for non-available interface types & runtime/rpc definitions - Ensure `.entries/.keys` arguments is less than map-entry query - Add Polkadot 9260 upgrade block - Add Westend 9271 upgrade block - Update to latest Substrate metadata ### [`v9.1.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;911-Aug-6-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v9.0.1...v9.1.1) Contributed: - Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod) - Handle both string and object keys in `CodecMap` (Thanks to https://github.com/CertainLach) Changes: - Add `noInitWarn: boolean` flag to API options, disabling runtime & RPC warnings - Only log missing runtime calls on new (detected) specVersion - Add shallow/one-blockHash cache for `api.at(...)` instances - Add Westend 9270 upgrade block - Update to latest Substrate, Polkadot & Kusama metadata ### [`v9.0.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;901-Jul-30-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.14.1...v9.0.1) - **Breaking change** The decorated field getters on `Struct` were moved to the prototype class for performance reasons. While `struct.<field>` access still behaves in the same way, with the same results, this does mean that the prototype getters are not visible when doing an `Object.keys(struct)` or when doing an object spread. - **Breaking change** Deprecated interfaces have been removed including `tx.sign(...)` (use `signAsync`), `Result.{is, as}Error` (use `{is, as}Err`) as well as storage `.range(...)` operations. - **Breaking change** Deprecated interfaces on `api-contract` have been removed. Always ensure you pass an options object to construction and query methods. - **Breaking change** Contracts access via `api-contract` will now detect the usage of `storageDepositLimit` in params, if not available the contract interfaces will not be decorated. Changes: - Decorate `Struct/Enum/Set` field getters on class prototypes - Convert `api-contract` usage of `api.rpc.*` to `api.call.*` - Drop support for contract runtimes without `storageDepositLimit` (runtime `contractsApi` only has support for latest) - Export `api.rx.call.*` for internal usage (derive, contracts) - Remove old-style param passing as opposed to options in `api-contract` - Support for alliance/motion collective derives - Add Kusama 9260 upgrade block - Add Polkadot 9230 & 9250 upgrade blocks - Add Westend 9251, 9260 & 9261 upgrade blocks - Update to latest Substrate, Polkadot & Kusama metadata ### [`v8.14.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8141-Jul-23-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.13.1...v8.14.1) Contributed: - Update `@substrate/connect` with dual ESM/CJS support (Thanks to https://github.com/wirednkod) Changes: - `{BTree|Hash}Map.toHuman()` now display `Raw` keys as ascii (if detected) - Add `toPrimitive()` to all base `Codec` interfaces (string/boolean/number) - Adjust metadata conversion with `objectSpread` (where missing) - Support for `TransactionPaymentCallApi` runtime interface - Check `registry.getModuleInstances` against metadata paths (fallback) - Update to `@polkadot/util` 10.1.1 - Update to latest Kusama metadata (Substrate & Polkadot are current) ### [`v8.13.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8131-Jul-16-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.12.2...v8.13.1) Changes: - Add `derive.chain.subscribeFinalized{Heads, Blocks}` which returns all finalized, no skips - Support Moonbeam author extraction on `derive.chain.*` (w/ shared logic dedupe) - Cater for older `BlockBuilder 2/3/4` & `GrandpaApi 2` runtime interface definitions - Support for `NominationPoolsApi` runtime interface - Support for `DebugRuntimeApi` runtime interface, Frontier-specific - Support for `NimbusApi` runtime interface (& older `AuthorFilterAPI`) - Add additional historic `DispatchError` enum variant for asset chains - Add Kusama 9250 upgrade block - Update to latest Substrate, Polkadot & Kusama metadata ### [`v8.12.2`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8122-Jul-10-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.12.1...v8.12.2) Changes: - Update to `@polkadot/util` 10.0.2 ### [`v8.12.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8121-Jul-9-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.11.3...v8.12.1) Changes: - Adjust `Opaque{Metadata, Multiaddr, PeerId}` decoding to `Opaque<Bytes>` - Fix historic `XcmV0` definitions for `BuyExecution` - Adjust type generation to correctly cater for ambient definitions - Improve type argument generation for `Option<...>` types - Adjust usage of deprecated `@polkadot/util` methods - Runtime call typegen from `system.version` constant value - Expose query flags on `derive.staking.account` - Update to latest Substrate, Polkadot & Kusama metadata - Update to `@polkadot/util` 10.0.1 ### [`v8.11.3`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8113-Jul-5-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.11.2...v8.11.3) Changes: - Ensure historic `DispatchError` is always the non-current variant - Adjust type signatures for non-required use of `@types/node` ### [`v8.11.2`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8112-Jul-4-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.11.1...v8.11.2) Changes: - Bump to `@polkadot/util-crypto` 9.7.2 (w/ `@polkadot/wasm-crypto` 6.2.2) ### [`v8.11.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8111-Jul-2-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.10.1...v8.11.1) Contributed: - Adjust `api.{tx, query, ...}` with no external side-effects (Thanks to https://github.com/btwiuse) Changes: - Support for `state_call` definitions via API config (exposed on `api.call.*`) - Base type definitions for `state_call` from Substrate, Polkadot & Orml - Align runtime types with latest Substrate master - Type generation for runtime call definitions (internal & external) - Update to latest Substrate, Polkadot & Kusama metadata ### [`v8.10.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;8101-Jun-26-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.9.1...v8.10.1) Contributed: - Bump `@substrate/connect` to 0.7.7 (Thanks to https://github.com/wirednkod) - Support `feeHistory` & `maxPriorityFeePerGas` eth RPCs (Thanks to https://github.com/crystalin) Changes: - Align `BeefyPayload` with Substrate master - Use `static get [Symbol.species] ()` for `Array` & `Uint8Array` types - Add support for (optional, non-runtime recommended) `f32` & `f64` types - Add future-use `AbstrateBigInt` wrapper extension - Update Codec-internal performance tests - Add Westend 9250 upgrade block - Update to latest Substrate, Polkadot & Kusama metadata ### [`v8.9.1`](https://togithub.com/polkadot-js/api/blob/HEAD/CHANGELOG.md#&#8203;891-Jun-19-2022) [Compare Source](https://togithub.com/polkadot-js/api/compare/v8.8.2...v8.9.1) Contributed: - Update `@substrate/connect` to 0.7.6 (Thanks to https://github.com/tomaka) Changes: - Deupe all internal type property getters - Adjust `@polkadot/types-codec` asserts - Rename `Base` type to `AbstractBase` (reflecting usage) - Alias `blockHash` on `rpc.engine.createBlock` return - Instantiate `Compact/UInt/Int` with `number` when passed - Adjust name extraction in `PortableRegistry` (maintainability) - Adjust string type path extraction (maintainability) - Add Kusama 9230 upgrade block - Update to latest Substrate metadata </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/DeFiCh/metachain). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMTYuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIyMi4zIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 10e4488 commit 4ffd9a8

File tree

2 files changed

+228
-186
lines changed

2 files changed

+228
-186
lines changed

0 commit comments

Comments
 (0)