Compare commits

...
8 Commits
Author SHA1 Message Date
github-actions[bot] 32a04fd24f [CI Skip] release/stable 11.0.3
skip-checks: true
2024-05-08 13:31:16 +00:00
Tarik Gul 009461f564 11.0.3 (#5873) 2024-05-08 16:23:44 +03:00
github-actions[bot] 00cb2ef875 [CI Skip] bump/beta 11.0.3-2-x
skip-checks: true
2024-05-08 12:49:12 +00:00
Tarik Gul fed0d5bf0d Update substrate to latest (#5872) 2024-05-08 15:41:42 +03:00
github-actions[bot] 53e9305f41 [CI Skip] bump/beta 11.0.3-1-x
skip-checks: true
2024-05-08 03:23:20 +00:00
Tarik Gul 2ca9da3304 Fix claimedRewards in staking.derives (#5870)
* Fix claimedRewards in staking.derives

* Cleanup

* few nits
2024-05-08 06:15:40 +03:00
github-actions[bot] 7a4d32710c [CI Skip] bump/beta 11.0.3-0-x
skip-checks: true
2024-05-06 16:26:34 +00:00
Tarik Gul 15c8859b06 ApiDerive.staking backwards compatibility. (#5868)
* Start of backwards compatibility for api.derive.staking

* Update nextElected to be compatible

* lint

* Comments

* remove clipped from query

* Ensure backwards compat for ownExposure

* Fix query
2024-05-06 19:18:58 +03:00
50 changed files with 3405 additions and 2792 deletions
+9
View File
@@ -1,5 +1,14 @@
# CHANGELOG
## 11.0.3 May 8, 2024
Changes
- Make `api.derive.staking.*` backwards compatible
- Fix `claimedRewards` regression in `api.derive.staking.queryMulti`
- Update Substrate to latest
## 11.0.2 Apr 24, 2024
Changes
+1 -1
View File
@@ -1,6 +1,6 @@
3512 Jaco Bump deps (#5785)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
39 Tarik Gul 11.0.2 (#5866)
43 Tarik Gul 11.0.3 (#5873)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
+3 -3
View File
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"versions": {
"git": "11.0.2",
"npm": "11.0.2"
"git": "11.0.3",
"npm": "11.0.3"
},
"workspaces": [
"packages/*"
+6 -6
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "11.0.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/api-base": "11.0.3",
"@polkadot/rpc-augment": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/types-augment": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '11.0.3' };
@@ -265,6 +265,28 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
assetConversionMigration: {
/**
* Provided asset pair is not supported for pool.
**/
InvalidAssetPair: AugmentedError<ApiType>;
/**
* Indicates a partial transfer of balance to the new account during a migration.
**/
PartialTransfer: AugmentedError<ApiType>;
/**
* The pool doesn't exist.
**/
PoolNotFound: AugmentedError<ApiType>;
/**
* Pool's balance cannot be zero.
**/
ZeroBalance: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
assetRate: {
/**
* The given asset ID already has an assigned conversion rate and cannot be re-created.
@@ -547,6 +569,10 @@ declare module '@polkadot/api-base/types/errors' {
* The configuration could not be applied because it is invalid.
**/
InvalidConfig: AugmentedError<ApiType>;
/**
* The revenue must be claimed for 1 or more timeslices.
**/
NoClaimTimeslices: AugmentedError<ApiType>;
/**
* The history item does not exist.
**/
@@ -2813,6 +2839,10 @@ declare module '@polkadot/api-base/types/errors' {
* Not a controller account.
**/
NotController: AugmentedError<ApiType>;
/**
* Not enough funds available to withdraw.
**/
NotEnoughFunds: AugmentedError<ApiType>;
/**
* Items are not sorted and unique.
**/
@@ -2825,6 +2855,10 @@ declare module '@polkadot/api-base/types/errors' {
* Can not rebond without unlocking chunks.
**/
NoUnlockChunk: AugmentedError<ApiType>;
/**
* Provided reward destination is not allowed.
**/
RewardDestinationRestricted: AugmentedError<ApiType>;
/**
* There are too many nominators in the system. Governance needs to adjust the staking
* settings to keep things safe for the runtime.
+15 -1
View File
@@ -131,6 +131,20 @@ declare module '@polkadot/api-base/types/events' {
* and `SwapTokenForExactToken` will generate this event.
**/
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], { who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>> }>;
/**
* Pool has been touched in order to fulfill operational requirements.
**/
Touched: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, who: AccountId32], { poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, who: AccountId32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
assetConversionMigration: {
/**
* Indicates that a pool has been migrated to the new account ID.
**/
MigratedToNewAccount: AugmentedEvent<ApiType, [poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, priorAccount: AccountId32, newAccount: AccountId32], { poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, priorAccount: AccountId32, newAccount: AccountId32 }>;
/**
* Generic event
**/
@@ -533,7 +547,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* Ownership of a Region has been transferred.
**/
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32], { regionId: PalletBrokerRegionId, duration: u32, oldOwner: AccountId32, owner: AccountId32 }>;
Transferred: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, oldOwner: Option<AccountId32>, owner: Option<AccountId32>], { regionId: PalletBrokerRegionId, duration: u32, oldOwner: Option<AccountId32>, owner: Option<AccountId32> }>;
/**
* Generic event
**/
+25 -2
View File
@@ -425,7 +425,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current (unassigned) Regions.
* The current (unassigned or provisionally assigend) Regions.
**/
regions: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array) => Observable<Option<PalletBrokerRegionRecord>>, [PalletBrokerRegionId]> & QueryableStorageEntry<ApiType, [PalletBrokerRegionId]>;
/**
@@ -1399,11 +1399,21 @@ declare module '@polkadot/api-base/types/storage' {
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
palletExampleMbms: {
/**
* Define a storage item to illustrate multi-block migrations.
**/
myMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
parameters: {
/**
* Stored parameters.
**/
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Contract: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Contracts: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
/**
* Generic query
**/
@@ -1861,6 +1871,10 @@ declare module '@polkadot/api-base/types/storage' {
* Counter for the related counted storage map
**/
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Counter for the related counted storage map
**/
counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The current era index.
*
@@ -2094,6 +2108,15 @@ declare module '@polkadot/api-base/types/storage' {
* and slash value of the era.
**/
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
/**
* Stakers whose funds are managed by other pallets.
*
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
* via low level apis. We keep track of them to do minimal integrity checks.
**/
virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query
**/
+40 -10
View File
@@ -274,6 +274,33 @@ declare module '@polkadot/api-base/types/submittable' {
* for a quote.
**/
swapTokensForExactTokens: AugmentedSubmittable<(path: Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId> | (FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array)[], amountOut: u128 | AnyNumber | Uint8Array, amountInMax: u128 | AnyNumber | Uint8Array, sendTo: AccountId32 | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<FrameSupportTokensFungibleUnionOfNativeOrWithId>, u128, u128, AccountId32, bool]>;
/**
* Touch an existing pool to fulfill prerequisites before providing liquidity, such as
* ensuring that the pool's accounts are in place. It is typically useful when a pool
* creator removes the pool's accounts and does not provide a liquidity. This action may
* involve holding assets from the caller as a deposit for creating the pool's accounts.
*
* The origin must be Signed.
*
* - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2).
* - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2).
*
* Emits `Touched` event when successful.
**/
touch: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
assetConversionMigration: {
/**
* Migrates an existing pool to a new account ID derivation method for a given asset pair.
* If the migration is successful, transaction fees are refunded to the caller.
*
* Must be signed.
**/
migrateToNewAccount: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
/**
* Generic tx
**/
@@ -1109,13 +1136,12 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.
*
* - `origin`: Must be a Signed origin of the account which owns the Region `region_id`.
* - `origin`: Must be a Signed origin.
* - `region_id`: The Region which was assigned to the Pool.
* - `max_timeslices`: The maximum number of timeslices which should be processed. This may
* effect the weight of the call but should be ideally made equivalent to the length of
* the Region `region_id`. If it is less than this, then further dispatches will be
* required with the `region_id` which makes up any remainders of the region to be
* collected.
* - `max_timeslices`: The maximum number of timeslices which should be processed. This
* must be greater than 0. This may affect the weight of the call but should be ideally
* made equivalent to the length of the Region `region_id`. If less, further dispatches
* will be required with the same `region_id` to claim revenue for the remainder.
**/
claimRevenue: AugmentedSubmittable<(regionId: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array, maxTimeslices: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId, u32]>;
/**
@@ -1240,9 +1266,13 @@ declare module '@polkadot/api-base/types/submittable' {
*
* - `origin`: Must be Root or pass `AdminOrigin`.
* - `initial_price`: The price of Bulk Coretime in the first sale.
* - `core_count`: The number of cores which can be allocated.
* - `extra_cores`: Number of extra cores that should be requested on top of the cores
* required for `Reservations` and `Leases`.
*
* This will call [`Self::request_core_count`] internally to set the correct core count on
* the relay chain.
**/
startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array, coreCount: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array, extraCores: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
swapLeases: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
/**
* Transfer a Bulk Coretime Region to a new owner.
@@ -3965,7 +3995,7 @@ declare module '@polkadot/api-base/types/submittable' {
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
/**
* Update configurations for the nomination pools. The origin for this call must be
* Root.
* [`Config::AdminOrigin`].
*
* # Arguments
*
@@ -4075,7 +4105,7 @@ declare module '@polkadot/api-base/types/submittable' {
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
* deleted by setting them to `None`.
**/
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | { Contract: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | { Contracts: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
/**
* Generic tx
**/
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/rpc-core": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/util": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '11.0.3' };
+8 -8
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/api": "11.0.3",
"@polkadot/api-augment": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-create": "11.0.3",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api-augment": "11.0.2",
"@polkadot/api-augment": "11.0.3",
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "11.0.2"
"@polkadot/types-support": "11.0.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '11.0.3' };
+12 -12
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/api-base": "11.0.2",
"@polkadot/rpc-core": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/api": "11.0.3",
"@polkadot/api-augment": "11.0.3",
"@polkadot/api-base": "11.0.3",
"@polkadot/rpc-core": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types-support": "11.0.2"
"@polkadot/api": "11.0.3",
"@polkadot/api-augment": "11.0.3",
"@polkadot/rpc-augment": "11.0.3",
"@polkadot/rpc-provider": "11.0.3",
"@polkadot/types-support": "11.0.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '11.0.3' };
+19 -5
View File
@@ -4,7 +4,7 @@
import type { Observable } from 'rxjs';
import type { Option, u32 } from '@polkadot/types';
import type { EraIndex } from '@polkadot/types/interfaces';
import type { SpStakingExposurePage } from '@polkadot/types/lookup';
import type { SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { AnyNumber } from '@polkadot/types-codec/types';
import type { DeriveApi, DeriveOwnExposure } from '../types.js';
@@ -15,13 +15,27 @@ import { erasHistoricApplyAccount } from './util.js';
export function _ownExposures (instanceId: string, api: DeriveApi): (accountId: Uint8Array | string, eras: EraIndex[], withActive: boolean, page: u32 | AnyNumber) => Observable<DeriveOwnExposure[]> {
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean, page: u32 | AnyNumber): Observable<DeriveOwnExposure[]> => {
const emptyStakingExposure = api.registry.createType<SpStakingExposure>('Exposure');
// The reason we don't explicitly make the actual types is for compatibility. If the chain doesn't have the noted type it will fail
// on construction. Therefore we just make an empty option.
const emptyOptionPage = api.registry.createType<Option<SpStakingExposurePage>>('Option<Null>');
const emptyOptionMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<Null>');
return eras.length
? combineLatest([
// Backwards and forward compat for historical integrity when using `erasHistoricApplyAccount`
combineLatest(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId))),
combineLatest(eras.map((e) => api.query.staking.erasStakers(e, accountId))),
combineLatest(eras.map((e) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(e, accountId, page))),
combineLatest(eras.map((e) => api.query.staking.erasStakersOverview(e, accountId)))
api.query.staking.erasStakersClipped
? combineLatest(eras.map((e) => api.query.staking.erasStakersClipped(e, accountId)))
: of(eras.map((_) => emptyStakingExposure)),
api.query.staking.erasStakers
? combineLatest(eras.map((e) => api.query.staking.erasStakers(e, accountId)))
: of(eras.map((_) => emptyStakingExposure)),
api.query.staking.erasStakersPaged
? combineLatest(eras.map((e) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(e, accountId, page)))
: of(eras.map((_) => emptyOptionPage)),
api.query.staking.erasStakersOverview
? combineLatest(eras.map((e) => api.query.staking.erasStakersOverview(e, accountId)))
: of(eras.map((_) => emptyOptionMeta))
]).pipe(
map(([clp, exp, paged, expMeta]): DeriveOwnExposure[] =>
eras.map((era, index) => ({ clipped: clp[index], era, exposure: exp[index], exposureMeta: expMeta[index], exposurePaged: paged[index] }))
+76 -32
View File
@@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { Option, u32, Vec } from '@polkadot/types';
import type { Option, StorageKey, u32, Vec } from '@polkadot/types';
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
import type { PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs, SpStakingExposure, SpStakingExposurePage, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
import type { AnyNumber } from '@polkadot/types-codec/types';
import type { DeriveApi, DeriveStakingQuery, StakingQueryFlags } from '../types.js';
@@ -24,11 +24,64 @@ function filterClaimedRewards (api: DeriveApi, cl: number[]): Vec<u32> {
return api.registry.createType('Vec<u32>', cl.filter((c) => c !== -1));
}
function parseDetails (api: DeriveApi, stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: Option<SpStakingExposurePage>, stakingLedgerOpt: Option<PalletStakingStakingLedger>, exposureMeta: Option<SpStakingPagedExposureMetadata>, claimedRewards: number[]): DeriveStakingQuery {
function filterRewards (stashIds: AccountId[], eras: number[], claimedRewards: [StorageKey<[u32, AccountId]>, Vec<u32>][], stakersOverview: [StorageKey<[u32, AccountId]>, Option<SpStakingPagedExposureMetadata>][]): number[][] {
const claimedData: Record<string, Map<number, u32[]>> = {};
const overviewData: Record<string, Map<number, u32>> = {};
const ids = stashIds.map((i) => i.toString());
claimedRewards.forEach(([keys, rewards]) => {
const id = keys.args[1].toString();
const era = keys.args[0].toNumber();
if (ids.includes(id)) {
if (claimedData[id]) {
claimedData[id].set(era, rewards.toArray());
} else {
claimedData[id] = new Map();
claimedData[id].set(era, rewards.toArray());
}
}
});
stakersOverview.forEach(([keys, overview]) => {
const id = keys.args[1].toString();
const era = keys.args[0].toNumber();
if (ids.includes(id) && overview.isSome) {
if (overviewData[id]) {
overviewData[id].set(era, overview.unwrap().pageCount);
} else {
overviewData[id] = new Map();
overviewData[id].set(era, overview.unwrap().pageCount);
}
}
});
return stashIds.map((id) => {
const rewardsPerEra = claimedData[id.toString()];
const overviewPerEra = overviewData[id.toString()];
return eras.map((era) => {
if (rewardsPerEra && rewardsPerEra.has(era) && overviewPerEra && overviewPerEra.has(era)) {
const rewards = rewardsPerEra.get(era) as unknown as u32[];
const pageCount = overviewPerEra.get(era) as unknown as u32;
return rewards.length === pageCount.toNumber()
? era
: -1;
}
return -1;
});
});
}
function parseDetails (api: DeriveApi, stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestinationOpts: Option<PalletStakingRewardDestination> | PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: Option<SpStakingExposurePage>, stakingLedgerOpt: Option<PalletStakingStakingLedger>, exposureMeta: Option<SpStakingPagedExposureMetadata>, claimedRewards: number[], exposureEraStakers: SpStakingExposure): DeriveStakingQuery {
return {
accountId: stashId,
claimedRewardsEras: filterClaimedRewards(api, claimedRewards),
controllerId: controllerIdOpt?.unwrapOr(null) || null,
exposureEraStakers,
exposureMeta,
exposurePaged: exposure,
nominators: nominatorsOpt.isSome
@@ -64,12 +117,15 @@ function getLedgers (api: DeriveApi, optIds: (Option<AccountId> | null)[], { wit
);
}
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withClaimedRewardsEras, withController, withDestination, withExposure, withExposureMeta, withLedger, withNominations, withPrefs }: StakingQueryFlags, page: u32 | AnyNumber): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], Option<SpStakingExposurePage>[], Option<SpStakingPagedExposureMetadata>[], number[][]]> {
function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraIndex, { withClaimedRewardsEras, withController, withDestination, withExposure, withExposureErasStakersLegacy, withExposureMeta, withLedger, withNominations, withPrefs }: StakingQueryFlags, page: u32 | AnyNumber): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], Option<PalletStakingRewardDestination>[], PalletStakingValidatorPrefs[], Option<SpStakingExposurePage>[], Option<SpStakingPagedExposureMetadata>[], number[][], SpStakingExposure[]]> {
const emptyNoms = api.registry.createType<Option<PalletStakingNominations>>('Option<Nominations>');
const emptyRewa = api.registry.createType<Option<PalletStakingRewardDestination>>('RewardDestination');
const emptyExpo = api.registry.createType<Option<SpStakingExposurePage>>('Option<SpStakingExposurePage>');
const emptyExpoEraStakers = api.registry.createType<SpStakingExposure>('Exposure');
const emptyPrefs = api.registry.createType<PalletStakingValidatorPrefs>('ValidatorPrefs');
const emptyExpoMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<SpStakingPagedExposureMetadata>');
// The reason we don't explicitly make the actual types is for compatibility. If the chain doesn't have the noted type it will fail
// on construction. Therefore we just make an empty option.
const emptyExpo = api.registry.createType<Option<SpStakingExposurePage>>('Option<Null>');
const emptyExpoMeta = api.registry.createType<Option<SpStakingPagedExposureMetadata>>('Option<Null>');
const emptyClaimedRewards = [-1];
const depth = Number(api.consts.staking.historyDepth.toNumber());
@@ -94,45 +150,33 @@ function getStashInfo (api: DeriveApi, stashIds: AccountId[], activeEra: EraInde
withPrefs
? combineLatest(stashIds.map((s) => api.query.staking.validators(s)))
: of(stashIds.map(() => emptyPrefs)),
withExposure
withExposure && api.query.staking.erasStakersPaged
? combineLatest(stashIds.map((s) => api.query.staking.erasStakersPaged<Option<SpStakingExposurePage>>(activeEra, s, page)))
: of(stashIds.map(() => emptyExpo)),
withExposureMeta
withExposureMeta && api.query.staking.erasStakersOverview
? combineLatest(stashIds.map((s) => api.query.staking.erasStakersOverview(activeEra, s)))
: of(stashIds.map(() => emptyExpoMeta)),
withClaimedRewardsEras
? combineLatest(stashIds.map((s) =>
combineLatest([
combineLatest(eras.map((e) => api.query.staking.claimedRewards(e, s))),
combineLatest(eras.map((e) => api.query.staking.erasStakersOverview(e, s)))
]))
).pipe(
map((r) => {
return r.map(([stashClaimedEras, overview]) => {
// stashClaimedEras length will match the length of eras
return stashClaimedEras.map((claimedReward, idx) => {
const o = overview[idx].isSome && overview[idx].unwrap();
if (claimedReward.length === (o && o.pageCount.toNumber())) {
return eras[idx];
}
return -1;
});
});
})
withClaimedRewardsEras && api.query.staking.claimedRewards
? combineLatest([
api.query.staking.claimedRewards.entries<Vec<u32>>(),
api.query.staking.erasStakersOverview.entries<Option<SpStakingPagedExposureMetadata>>()
]).pipe(
map(([rewardsStorageVec, overviewStorageVec]) => filterRewards(stashIds, eras, rewardsStorageVec, overviewStorageVec))
)
: of(stashIds.map(() => emptyClaimedRewards))
: of(stashIds.map(() => emptyClaimedRewards)),
withExposureErasStakersLegacy && api.query.staking.erasStakers
? combineLatest(stashIds.map((s) => api.query.staking.erasStakers(activeEra, s)))
: of(stashIds.map(() => emptyExpoEraStakers))
]);
}
function getBatch (api: DeriveApi, activeEra: EraIndex, stashIds: AccountId[], flags: StakingQueryFlags, page: u32 | AnyNumber): Observable<DeriveStakingQuery[]> {
return getStashInfo(api, stashIds, activeEra, flags, page).pipe(
switchMap(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure, exposureMeta, claimedRewardsEras]): Observable<DeriveStakingQuery[]> =>
switchMap(([controllerIdOpt, nominatorsOpt, rewardDestination, validatorPrefs, exposure, exposureMeta, claimedRewardsEras, exposureEraStakers]): Observable<DeriveStakingQuery[]> =>
getLedgers(api, controllerIdOpt, flags).pipe(
map((stakingLedgerOpts) =>
stashIds.map((stashId, index) =>
parseDetails(api, stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index], exposureMeta[index], claimedRewardsEras[index])
parseDetails(api, stashId, controllerIdOpt[index], nominatorsOpt[index], rewardDestination[index], validatorPrefs[index], exposure[index], stakingLedgerOpts[index], exposureMeta[index], claimedRewardsEras[index], exposureEraStakers[index])
)
)
)
@@ -170,7 +170,7 @@ export function _stakerRewardsEras (instanceId: string, api: DeriveApi): (eras:
export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive?: boolean) => Observable<DeriveStakerReward[][]> {
return memo(instanceId, (accountIds: (Uint8Array | string)[], eras: EraIndex[], withActive = false): Observable<DeriveStakerReward[][]> =>
combineLatest([
api.derive.staking.queryMulti(accountIds, { withLedger: true }),
api.derive.staking.queryMulti(accountIds, { withClaimedRewardsEras: true, withLedger: true }),
api.derive.staking._stakerExposures(accountIds, eras, withActive),
api.derive.staking._stakerRewardsEras(eras, withActive)
]).pipe(
+3
View File
@@ -118,6 +118,8 @@ export interface DeriveStakingValidators {
export interface DeriveStakingStash {
controllerId: AccountId | null;
// Legacy Support for erasStakers
exposureEraStakers: SpStakingExposure;
exposurePaged: Option<SpStakingExposurePage>;
exposureMeta: Option<SpStakingPagedExposureMetadata>;
nominators: AccountId[];
@@ -162,6 +164,7 @@ export interface StakingQueryFlags {
withController?: boolean;
withDestination?: boolean;
withExposure?: boolean;
withExposureErasStakersLegacy?: boolean,
withLedger?: boolean;
withNominations?: boolean;
withPrefs?: boolean;
@@ -11,6 +11,7 @@ import { memo } from '../util/index.js';
export function nextElected (instanceId: string, api: DeriveApi): () => Observable<AccountId[]> {
return memo(instanceId, (): Observable<AccountId[]> =>
// Compatibility for future generation changes in staking.
api.query.staking.erasStakersPaged
? api.derive.session.indexes().pipe(
// only populate for next era in the last session, so track both here - entries are not
@@ -18,7 +19,14 @@ export function nextElected (instanceId: string, api: DeriveApi): () => Observab
switchMap(({ currentEra }) => api.query.staking.erasStakersPaged.keys(currentEra)),
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
)
: api.query.staking['currentElected']<AccountId[]>()
: api.query.staking.erasStakers
? api.derive.session.indexes().pipe(
// only populate for next era in the last session, so track both here - entries are not
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
switchMap(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)),
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
)
: api.query.staking['currentElected']<AccountId[]>()
);
}
+14 -14
View File
@@ -18,21 +18,21 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "11.0.2",
"@polkadot/api-base": "11.0.2",
"@polkadot/api-derive": "11.0.2",
"@polkadot/api-augment": "11.0.3",
"@polkadot/api-base": "11.0.3",
"@polkadot/api-derive": "11.0.3",
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-core": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/types-known": "11.0.2",
"@polkadot/rpc-augment": "11.0.3",
"@polkadot/rpc-core": "11.0.3",
"@polkadot/rpc-provider": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/types-augment": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-create": "11.0.3",
"@polkadot/types-known": "11.0.3",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"eventemitter3": "^5.0.1",
@@ -40,7 +40,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api-augment": "11.0.2",
"@polkadot/types-support": "11.0.2"
"@polkadot/api-augment": "11.0.3",
"@polkadot/types-support": "11.0.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '11.0.3' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/rpc-core": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '11.0.3' };
+5 -5
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/rpc-augment": "11.0.3",
"@polkadot/rpc-provider": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/util": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "11.0.2"
"@polkadot/rpc-augment": "11.0.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '11.0.3' };
+3 -3
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-support": "11.0.2",
"@polkadot/types": "11.0.3",
"@polkadot/types-support": "11.0.3",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-fetch": "^12.6.2",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '11.0.3' };
+10 -10
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,15 +28,15 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "11.0.2",
"@polkadot/api-augment": "11.0.2",
"@polkadot/rpc-augment": "11.0.2",
"@polkadot/rpc-provider": "11.0.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/types-support": "11.0.2",
"@polkadot/api": "11.0.3",
"@polkadot/api-augment": "11.0.3",
"@polkadot/rpc-augment": "11.0.3",
"@polkadot/rpc-provider": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/types-augment": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-create": "11.0.3",
"@polkadot/types-support": "11.0.3",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/x-ws": "^12.6.2",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '11.0.3' };
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '11.0.3' };
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
@@ -26,9 +26,9 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "11.0.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-support": "11.0.2",
"@polkadot/types": "11.0.3",
"@polkadot/types-augment": "11.0.3",
"@polkadot/types-support": "11.0.3",
"@polkadot/util-crypto": "^12.6.2"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '11.0.3' };
+3 -3
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-codec": "11.0.3",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "11.0.2"
"@polkadot/types": "11.0.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '11.0.3' };
+5 -5
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.6.2",
"@polkadot/types": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-create": "11.0.3",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api": "11.0.2"
"@polkadot/api": "11.0.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '11.0.3' };
+1 -1
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -21,15 +21,15 @@ export default {
"beefy_getFinalizedHead",
"beefy_subscribeJustifications",
"beefy_unsubscribeJustifications",
"chainHead_unstable_body",
"chainHead_unstable_call",
"chainHead_unstable_continue",
"chainHead_unstable_follow",
"chainHead_unstable_header",
"chainHead_unstable_stopOperation",
"chainHead_unstable_storage",
"chainHead_unstable_unfollow",
"chainHead_unstable_unpin",
"chainHead_v1_body",
"chainHead_v1_call",
"chainHead_v1_continue",
"chainHead_v1_follow",
"chainHead_v1_header",
"chainHead_v1_stopOperation",
"chainHead_v1_storage",
"chainHead_v1_unfollow",
"chainHead_v1_unpin",
"chainSpec_v1_chainName",
"chainSpec_v1_genesisHash",
"chainSpec_v1_properties",
@@ -125,10 +125,10 @@ export default {
"system_syncState",
"system_unstable_networkState",
"system_version",
"transactionWatch_unstable_submitAndWatch",
"transactionWatch_unstable_unwatch",
"transaction_unstable_broadcast",
"transaction_unstable_stop",
"transactionWatch_v1_submitAndWatch",
"transactionWatch_v1_unwatch",
"transaction_v1_broadcast",
"transaction_v1_stop",
"unsubscribe_newHead"
]
};
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '11.0.3' };
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.2",
"version": "11.0.3",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-augment": "11.0.2",
"@polkadot/types-codec": "11.0.2",
"@polkadot/types-create": "11.0.2",
"@polkadot/types-augment": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-create": "11.0.3",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
@@ -32,6 +32,6 @@
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "11.0.2"
"@polkadot/types-support": "11.0.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '11.0.3' };
+79 -79
View File
@@ -444,26 +444,26 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@npm:11.0.2, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@npm:11.0.3, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies:
"@polkadot/api-base": "npm:11.0.2"
"@polkadot/rpc-augment": "npm:11.0.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-augment": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/api-base": "npm:11.0.3"
"@polkadot/rpc-augment": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-augment": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/api-base@npm:11.0.2, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@npm:11.0.3, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies:
"@polkadot/rpc-core": "npm:11.0.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/rpc-core": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2"
@@ -474,13 +474,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@polkadot/api": "npm:11.0.2"
"@polkadot/api-augment": "npm:11.0.2"
"@polkadot/api": "npm:11.0.3"
"@polkadot/api-augment": "npm:11.0.3"
"@polkadot/keyring": "npm:^12.6.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types-create": "npm:11.0.2"
"@polkadot/types-support": "npm:11.0.2"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-create": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
rxjs: "npm:^7.8.1"
@@ -488,19 +488,19 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api-derive@npm:11.0.2, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@npm:11.0.3, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@polkadot/api": "npm:11.0.2"
"@polkadot/api-augment": "npm:11.0.2"
"@polkadot/api-base": "npm:11.0.2"
"@polkadot/rpc-augment": "npm:11.0.2"
"@polkadot/rpc-core": "npm:11.0.2"
"@polkadot/rpc-provider": "npm:11.0.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types-support": "npm:11.0.2"
"@polkadot/api": "npm:11.0.3"
"@polkadot/api-augment": "npm:11.0.3"
"@polkadot/api-base": "npm:11.0.3"
"@polkadot/rpc-augment": "npm:11.0.3"
"@polkadot/rpc-core": "npm:11.0.3"
"@polkadot/rpc-provider": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
rxjs: "npm:^7.8.1"
@@ -508,23 +508,23 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api@npm:11.0.2, @polkadot/api@workspace:packages/api":
"@polkadot/api@npm:11.0.3, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@polkadot/api-augment": "npm:11.0.2"
"@polkadot/api-base": "npm:11.0.2"
"@polkadot/api-derive": "npm:11.0.2"
"@polkadot/api-augment": "npm:11.0.3"
"@polkadot/api-base": "npm:11.0.3"
"@polkadot/api-derive": "npm:11.0.3"
"@polkadot/keyring": "npm:^12.6.2"
"@polkadot/rpc-augment": "npm:11.0.2"
"@polkadot/rpc-core": "npm:11.0.2"
"@polkadot/rpc-provider": "npm:11.0.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-augment": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types-create": "npm:11.0.2"
"@polkadot/types-known": "npm:11.0.2"
"@polkadot/types-support": "npm:11.0.2"
"@polkadot/rpc-augment": "npm:11.0.3"
"@polkadot/rpc-core": "npm:11.0.3"
"@polkadot/rpc-provider": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-augment": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-create": "npm:11.0.3"
"@polkadot/types-known": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
eventemitter3: "npm:^5.0.1"
@@ -654,39 +654,39 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-augment@npm:11.0.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@npm:11.0.3, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies:
"@polkadot/rpc-core": "npm:11.0.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/rpc-core": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/rpc-core@npm:11.0.2, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@npm:11.0.3, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@polkadot/keyring": "npm:^12.6.2"
"@polkadot/rpc-augment": "npm:11.0.2"
"@polkadot/rpc-provider": "npm:11.0.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/rpc-augment": "npm:11.0.3"
"@polkadot/rpc-provider": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@npm:11.0.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@npm:11.0.3, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@polkadot/keyring": "npm:^12.6.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-support": "npm:11.0.2"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
"@polkadot/x-fetch": "npm:^12.6.2"
@@ -707,15 +707,15 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/typegen@workspace:packages/typegen"
dependencies:
"@polkadot/api": "npm:11.0.2"
"@polkadot/api-augment": "npm:11.0.2"
"@polkadot/rpc-augment": "npm:11.0.2"
"@polkadot/rpc-provider": "npm:11.0.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-augment": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types-create": "npm:11.0.2"
"@polkadot/types-support": "npm:11.0.2"
"@polkadot/api": "npm:11.0.3"
"@polkadot/api-augment": "npm:11.0.3"
"@polkadot/rpc-augment": "npm:11.0.3"
"@polkadot/rpc-provider": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-augment": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-create": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
"@polkadot/x-ws": "npm:^12.6.2"
@@ -732,24 +732,24 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@npm:11.0.2, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@npm:11.0.3, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies:
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/types-codec@npm:11.0.2, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@npm:11.0.3, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies:
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-augment": "npm:11.0.2"
"@polkadot/types-support": "npm:11.0.2"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-augment": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
"@polkadot/x-bigint": "npm:^12.6.2"
@@ -757,32 +757,32 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-create@npm:11.0.2, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@npm:11.0.3, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies:
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/types-known@npm:11.0.2, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@npm:11.0.3, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@polkadot/api": "npm:11.0.2"
"@polkadot/api": "npm:11.0.3"
"@polkadot/networks": "npm:^12.6.2"
"@polkadot/types": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types-create": "npm:11.0.2"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-create": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/types-support@npm:11.0.2, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@npm:11.0.3, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
@@ -791,15 +791,15 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types@npm:11.0.2, @polkadot/types@workspace:packages/types":
"@polkadot/types@npm:11.0.3, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@polkadot/keyring": "npm:^12.6.2"
"@polkadot/types-augment": "npm:11.0.2"
"@polkadot/types-codec": "npm:11.0.2"
"@polkadot/types-create": "npm:11.0.2"
"@polkadot/types-support": "npm:11.0.2"
"@polkadot/types-augment": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-create": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
rxjs: "npm:^7.8.1"