Compare commits

..
20 Commits
Author SHA1 Message Date
github-actions[bot] 8efc552b9b [CI Skip] release/stable 14.2.3
skip-checks: true
2024-11-05 15:47:52 +00:00
Tarik Gul 2b3d40a29b 14.2.3 (#6019) 2024-11-05 17:40:17 +02:00
github-actions[bot] d91d29cff5 [CI Skip] bump/beta 14.2.3-1-x
skip-checks: true
2024-11-05 15:27:42 +00:00
Tarik Gul 17fa8fa120 Increase RPC-CORE default capacity (#6016) 2024-11-05 17:20:00 +02:00
github-actions[bot] cecd43305e [CI Skip] bump/beta 14.2.3-0-x
skip-checks: true
2024-11-05 15:00:08 +00:00
Tarik Gul 9501da9e25 Set CI to use Node.js Iron (v20) (#6018)
* Set CI to use Node.js Iron (v20)

* additional
2024-11-05 16:52:27 +02:00
github-actions[bot] 9becdced12 [CI Skip] release/stable 14.2.2
skip-checks: true
2024-10-31 14:02:24 +00:00
Tarik Gul 262372666c 14.2.2 (#6014) 2024-10-31 09:54:48 -04:00
github-actions[bot] 83907f79fe [CI Skip] bump/beta 14.2.2-1-x
skip-checks: true
2024-10-31 13:07:04 +00:00
filvecchiato abce780033 fix: update LRUcache to not keep thread (#6013) 2024-10-31 08:59:27 -04:00
github-actions[bot] a6b23ca635 [CI Skip] bump/beta 14.2.2-0-x
skip-checks: true
2024-10-29 12:07:23 +00:00
Tarik Gul 508439ce59 Adjust nextElected to use erasStakersOverview (#6011) 2024-10-29 13:59:31 +02:00
github-actions[bot] 64e30dd0a7 [CI Skip] release/stable 14.2.1
skip-checks: true
2024-10-28 19:41:58 +00:00
Tarik Gul 33fd56a61d 14.2.1 (#6009) 2024-10-28 21:34:22 +02:00
github-actions[bot] 4ec2c32854 [CI Skip] bump/beta 14.1.2-2-x
skip-checks: true
2024-10-28 16:35:07 +00:00
Tarik Gul 3ca93ee283 Upgrade common to 13.2.2 (#6008) 2024-10-28 18:27:26 +02:00
github-actions[bot] 7cf36bbf68 [CI Skip] bump/beta 14.1.2-1-x
skip-checks: true
2024-10-24 01:44:02 +00:00
Tarik Gul da100e80f2 Add isClaimed field to api.derive.staking._stakerRewards (#6007)
* Add isClaimed field to `api.derive.staking._stakerRewards`

* Fix isClaimed: false
2024-10-24 04:36:22 +03:00
github-actions[bot] 9d9a99e71e [CI Skip] bump/beta 14.1.2-0-x
skip-checks: true
2024-10-22 14:38:28 +00:00
Tarik Gul 6ce045c9a1 Bump yarn to 4.5.1 (#6005) 2024-10-22 17:30:57 +03:00
44 changed files with 767 additions and 738 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
# This will default to using v20 so that CI will pass.
# ref: https://github.com/polkadot-js/api/issues/6017
node-version: 'lts/iron'
- uses: denoland/setup-deno@v1
with:
deno-version: v1.42.x
+3 -1
View File
@@ -24,7 +24,9 @@ jobs:
token: ${{ secrets.GH_PAT_BOT }}
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
# This will default to using v20 so that CI will pass.
# ref: https://github.com/polkadot-js/api/issues/6017
node-version: 'lts/iron'
- name: ${{ matrix.step }}
run: |
yarn install --immutable
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -12,4 +12,4 @@ logFilters:
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
+25
View File
@@ -1,5 +1,30 @@
# CHANGELOG
## 14.2.3 Nov 5, 2024
Changes:
- Increase RPC-CORE default cache capacity ([#6016](https://github.com/polkadot-js/api/pull/6016))
- Set CI to use Node.js Iron (v20) ([#6018](https://github.com/polkadot-js/api/pull/6018))
## 14.2.2 Oct 31, 2024
Changes:
- fix: update LRUcache to not keep thread ([#6013](https://github.com/polkadot-js/api/pull/6013))
- Adjust `api.derive.staking.nextElected` to use erasStakersOverview ([#6011](https://github.com/polkadot-js/api/pull/6011))
## 14.2.1 Oct 28, 2024
Changes:
- Add isClaimed field to api.derive.staking._stakerRewards ([#6007](https://github.com/polkadot-js/api/pull/6007))
- Upgrade polkadot/common to 13.1.2 ([#6008](https://github.com/polkadot-js/api/pull/6008))
- Bump yarn to 4.5.1 ([#6005](https://github.com/polkadot-js/api/pull/6005))
## 14.1.1 Oct 21, 2024
Changes:
+2 -1
View File
@@ -1,5 +1,5 @@
3512 Jaco Bump deps (#5785)
115 Tarik Gul 14.1.1 (#6003)
124 Tarik Gul 14.2.3 (#6019)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
@@ -76,6 +76,7 @@
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
1 Ermal Kaleci fix cache key (rpc-provider) (#5745)
1 filvecchiato Add lru ttl cache implementation (#5997)
1 filvecchiato fix: update LRUcache to not keep thread (#6013)
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
1 Francis O'Brien fix: Re-subscribe to chain updates on reconnection if not a clone (#5794)
+4 -4
View File
@@ -6,7 +6,7 @@
},
"homepage": "https://github.com/polkadot-js/api#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.5.0",
"packageManager": "yarn@4.5.1",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"versions": {
"git": "14.1.1",
"npm": "14.1.1"
"git": "14.2.3",
"npm": "14.2.3"
},
"workspaces": [
"packages/*"
+7 -7
View File
@@ -18,15 +18,15 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/api-base": "14.1.1",
"@polkadot/rpc-augment": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-augment": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/api-base": "14.2.3",
"@polkadot/rpc-augment": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/types-augment": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/util": "^13.2.2",
"tslib": "^2.8.0"
}
}
+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: '14.1.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '14.2.3' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/rpc-core": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/util": "^13.2.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.0"
}
+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: '14.1.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '14.2.3' };
+11 -11
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/api": "14.1.1",
"@polkadot/api-augment": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/types-create": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/util-crypto": "^13.2.1",
"@polkadot/api": "14.2.3",
"@polkadot/api-augment": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/types-create": "14.2.3",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "14.1.1",
"@polkadot/keyring": "^13.2.1",
"@polkadot/types-support": "14.1.1"
"@polkadot/api-augment": "14.2.3",
"@polkadot/keyring": "^13.2.2",
"@polkadot/types-support": "14.2.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '14.2.3' };
+14 -14
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/api": "14.1.1",
"@polkadot/api-augment": "14.1.1",
"@polkadot/api-base": "14.1.1",
"@polkadot/rpc-core": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/util-crypto": "^13.2.1",
"@polkadot/api": "14.2.3",
"@polkadot/api-augment": "14.2.3",
"@polkadot/api-base": "14.2.3",
"@polkadot/rpc-core": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api": "14.1.1",
"@polkadot/api-augment": "14.1.1",
"@polkadot/rpc-augment": "14.1.1",
"@polkadot/rpc-provider": "14.1.1",
"@polkadot/types-support": "14.1.1"
"@polkadot/api": "14.2.3",
"@polkadot/api-augment": "14.2.3",
"@polkadot/rpc-augment": "14.2.3",
"@polkadot/rpc-provider": "14.2.3",
"@polkadot/types-support": "14.2.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '14.2.3' };
@@ -29,7 +29,7 @@ function extractCompatRewards (claimedRewardsEras: Vec<u32>, ledger?: PalletStak
return claimedRewardsEras.toArray().concat(l);
}
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[]): DeriveStakerReward[] {
function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPrefs, erasRewards]: ErasResult, exposures: DeriveStakerExposure[], claimedRewardsEras: Vec<u32>): DeriveStakerReward[] {
return exposures.map(({ era, isEmpty, isValidator, nominating, validators: eraValidators }): DeriveStakerReward => {
const { eraPoints, validators: allValPoints } = erasPoints.find((p) => p.era.eq(era)) || { eraPoints: BN_ZERO, validators: {} as DeriveEraValPoints };
const { eraReward } = erasRewards.find((r) => r.era.eq(era)) || { eraReward: api.registry.createType('Balance') };
@@ -84,6 +84,7 @@ function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPref
return {
era,
eraReward,
isClaimed: claimedRewardsEras.some((c) => c.eq(era)),
isEmpty,
isValidator,
nominating,
@@ -152,6 +153,7 @@ function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][
.filter(({ validators }) => Object.keys(validators).length !== 0)
.map((reward) =>
objectSpread({}, reward, {
isClaimed: filter.some((f) => reward.era.eq(f)),
nominators: reward.nominating.filter((n) => reward.validators[n.validatorId])
})
);
@@ -182,7 +184,7 @@ export function _stakerRewards (instanceId: string, api: DeriveApi): (accountIds
const allRewards = queries.map(({ claimedRewardsEras, stakingLedger, stashId }, index): DeriveStakerReward[] =>
(!stashId || (!stakingLedger && !claimedRewardsEras))
? []
: parseRewards(api, stashId, erasResult, exposures[index])
: parseRewards(api, stashId, erasResult, exposures[index], claimedRewardsEras)
);
if (withActive) {
+1
View File
@@ -93,6 +93,7 @@ export interface DeriveStakerRewardValidator {
export interface DeriveStakerReward {
era: EraIndex;
eraReward: Balance;
isClaimed: boolean;
isEmpty: boolean;
isValidator: boolean;
nominating: DeriveEraExposureNominating[];
@@ -12,11 +12,11 @@ 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.query.staking.erasStakersOverview
? 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.erasStakersPaged.keys(currentEra)),
switchMap(({ currentEra }) => api.query.staking.erasStakersOverview.keys(currentEra)),
// Dedupe any duplicates
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
)
+17 -17
View File
@@ -18,29 +18,29 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "14.1.1",
"@polkadot/api-base": "14.1.1",
"@polkadot/api-derive": "14.1.1",
"@polkadot/keyring": "^13.2.1",
"@polkadot/rpc-augment": "14.1.1",
"@polkadot/rpc-core": "14.1.1",
"@polkadot/rpc-provider": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-augment": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/types-create": "14.1.1",
"@polkadot/types-known": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/util-crypto": "^13.2.1",
"@polkadot/api-augment": "14.2.3",
"@polkadot/api-base": "14.2.3",
"@polkadot/api-derive": "14.2.3",
"@polkadot/keyring": "^13.2.2",
"@polkadot/rpc-augment": "14.2.3",
"@polkadot/rpc-core": "14.2.3",
"@polkadot/rpc-provider": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/types-augment": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/types-create": "14.2.3",
"@polkadot/types-known": "14.2.3",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"eventemitter3": "^5.0.1",
"rxjs": "^7.8.1",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "14.1.1",
"@polkadot/types-support": "14.1.1"
"@polkadot/api-augment": "14.2.3",
"@polkadot/types-support": "14.2.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '14.2.3' };
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/rpc-core": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/util": "^13.2.2",
"tslib": "^2.8.0"
}
}
+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: '14.1.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '14.2.3' };
+7 -7
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "14.1.1",
"@polkadot/rpc-provider": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/rpc-augment": "14.2.3",
"@polkadot/rpc-provider": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/util": "^13.2.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/keyring": "^13.2.1",
"@polkadot/rpc-augment": "14.1.1"
"@polkadot/keyring": "^13.2.2",
"@polkadot/rpc-augment": "14.2.3"
}
}
+1 -3
View File
@@ -123,7 +123,7 @@ export class RpcCore {
// these are the base keys (i.e. part of jsonrpc)
this.sections.push(...sectionNames);
this.#storageCache = new LRUCache(DEFAULT_CAPACITY);
this.#storageCache = new LRUCache(DEFAULT_CAPACITY * 10 * 10);
// decorate all interfaces, defined and user on this instance
this.addUserInterfaces(userRpc);
}
@@ -146,8 +146,6 @@ export class RpcCore {
* @description Manually disconnect from the attached provider
*/
public async disconnect (): Promise<void> {
await this.#storageCache.clearInterval();
return this.provider.disconnect();
}
+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: '14.1.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '14.2.3' };
+9 -9
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.2.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-support": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/util-crypto": "^13.2.1",
"@polkadot/x-fetch": "^13.2.1",
"@polkadot/x-global": "^13.2.1",
"@polkadot/x-ws": "^13.2.1",
"@polkadot/keyring": "^13.2.2",
"@polkadot/types": "14.2.3",
"@polkadot/types-support": "14.2.3",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"@polkadot/x-fetch": "^13.2.2",
"@polkadot/x-global": "^13.2.2",
"@polkadot/x-ws": "^13.2.2",
"eventemitter3": "^5.0.1",
"mock-socket": "^9.3.1",
"nock": "^13.5.5",
+14 -5
View File
@@ -9,11 +9,7 @@ describe('LRUCache', (): void => {
let lru: LRUCache | undefined;
beforeEach((): void => {
lru = new LRUCache(4);
});
afterEach(async () => {
await lru?.clearInterval();
lru = undefined;
lru = new LRUCache(4, 500);
});
it('allows getting of items below capacity', (): void => {
@@ -62,4 +58,17 @@ describe('LRUCache', (): void => {
expect(lru?.entries()).toEqual([['6', '666'], ['4', '4433'], ['3', '333'], ['5', '555']]);
expect(lru?.length === lru?.lengthData && lru?.length === lru?.lengthRefs).toBe(true);
});
it('evicts items with TTL', (): void => {
const keys = ['1', '2', '3', '4', '5'];
keys.forEach((k) => lru?.set(k, `${k}${k}${k}`));
expect(lru?.entries()).toEqual([['5', '555'], ['4', '444'], ['3', '333'], ['2', '222']]);
setTimeout((): void => {
lru?.get('3');
expect(lru?.entries()).toEqual([['3', '333']]);
}, 800);
});
});
+31 -51
View File
@@ -5,29 +5,31 @@
// cache space (depending on the historic queries this would vary, metadata
// for Kusama/Polkadot/Substrate falls between 600-750K, 2x for estimate)
export const DEFAULT_CAPACITY = 64;
export const DEFAULT_CAPACITY = 1024;
class LRUNode {
readonly key: string;
#lastAccess: number;
#expires: number;
#ttl: number;
readonly createdAt: number;
public next: LRUNode;
public prev: LRUNode;
constructor (key: string) {
constructor (key: string, ttl: number) {
this.key = key;
this.#lastAccess = Date.now();
this.createdAt = this.#lastAccess;
this.#ttl = ttl;
this.#expires = Date.now() + ttl;
this.createdAt = Date.now();
this.next = this.prev = this;
}
public refresh (): void {
this.#lastAccess = Date.now();
this.#expires = Date.now() + this.#ttl;
}
public get lastAccess (): number {
return this.#lastAccess;
public get expiry (): number {
return this.#expires;
}
}
@@ -43,29 +45,17 @@ export class LRUCache {
#tail: LRUNode;
readonly #ttl: number;
readonly #ttlInterval: number;
#ttlTimerId: ReturnType<typeof setInterval> | null = null;
constructor (capacity = DEFAULT_CAPACITY, ttl = 30000, ttlInterval = 15000) {
constructor (capacity = DEFAULT_CAPACITY, ttl = 30000) {
this.capacity = capacity;
this.#ttl = ttl;
this.#ttlInterval = ttlInterval;
this.#head = this.#tail = new LRUNode('<empty>');
// make sure the interval is not longer than the ttl
if (this.#ttlInterval > this.#ttl) {
this.#ttlInterval = this.#ttl;
}
this.#head = this.#tail = new LRUNode('<empty>', ttl);
}
get ttl (): number {
return this.#ttl;
}
get ttlInterval (): number {
return this.#ttlInterval;
}
get length (): number {
return this.#length;
}
@@ -115,9 +105,14 @@ export class LRUCache {
if (data) {
this.#toHead(key);
// Evict TTL once data is refreshed
this.#evictTTL();
return data as T;
}
this.#evictTTL();
return null;
}
@@ -125,7 +120,7 @@ export class LRUCache {
if (this.#data.has(key)) {
this.#toHead(key);
} else {
const node = new LRUNode(key);
const node = new LRUNode(key, this.#ttl);
this.#refs.set(node.key, node);
@@ -148,32 +143,25 @@ export class LRUCache {
}
}
if (this.#ttl > 0 && !this.#ttlTimerId) {
this.#ttlTimerId = setInterval(() => {
this.#ttlClean();
}, this.#ttlInterval);
}
// Evict TTL once data is refreshed or added
this.#evictTTL();
this.#data.set(key, value);
}
#ttlClean () {
#evictTTL () {
// Find last node to keep
const expires = Date.now() - this.#ttl;
// traverse map to find the expired nodes
while (this.#tail.expiry && this.#tail.expiry < Date.now() && this.#length > 0) {
this.#refs.delete(this.#tail.key);
this.#data.delete(this.#tail.key);
this.#length -= 1;
this.#tail = this.#tail.prev;
this.#tail.next = this.#head;
}
// traverse map to find the lastAccessed
while (this.#tail.lastAccess && this.#tail.lastAccess < expires && this.#length > 0) {
if (this.#ttlTimerId && this.#length === 0) {
clearInterval(this.#ttlTimerId);
this.#ttlTimerId = null;
this.#head = this.#tail = new LRUNode('<empty>');
} else {
this.#refs.delete(this.#tail.key);
this.#data.delete(this.#tail.key);
this.#length -= 1;
this.#tail = this.#tail.prev;
this.#tail.next = this.#head;
}
if (this.#length === 0) {
this.#head = this.#tail = new LRUNode('<empty>', this.#ttl);
}
}
@@ -190,12 +178,4 @@ export class LRUCache {
this.#head = ref;
}
}
// eslint-disable-next-line @typescript-eslint/require-await
public async clearInterval (): Promise<void> {
if (this.#ttlTimerId) {
clearInterval(this.#ttlTimerId);
this.#ttlTimerId = null;
}
}
}
+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: '14.1.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '14.2.3' };
+13 -13
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
@@ -28,18 +28,18 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
},
"dependencies": {
"@polkadot/api": "14.1.1",
"@polkadot/api-augment": "14.1.1",
"@polkadot/rpc-augment": "14.1.1",
"@polkadot/rpc-provider": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-augment": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/types-create": "14.1.1",
"@polkadot/types-support": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/util-crypto": "^13.2.1",
"@polkadot/x-ws": "^13.2.1",
"@polkadot/api": "14.2.3",
"@polkadot/api-augment": "14.2.3",
"@polkadot/rpc-augment": "14.2.3",
"@polkadot/rpc-provider": "14.2.3",
"@polkadot/types": "14.2.3",
"@polkadot/types-augment": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/types-create": "14.2.3",
"@polkadot/types-support": "14.2.3",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"@polkadot/x-ws": "^13.2.2",
"handlebars": "^4.7.8",
"tslib": "^2.8.0",
"yargs": "^17.7.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '14.2.3' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/types": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/types": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/util": "^13.2.2",
"tslib": "^2.8.0"
}
}
+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: '14.1.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '14.2.3' };
+7 -7
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.2.1",
"@polkadot/x-bigint": "^13.2.1",
"@polkadot/util": "^13.2.2",
"@polkadot/x-bigint": "^13.2.2",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/types": "14.1.1",
"@polkadot/types-augment": "14.1.1",
"@polkadot/types-support": "14.1.1",
"@polkadot/util-crypto": "^13.2.1"
"@polkadot/types": "14.2.3",
"@polkadot/types-augment": "14.2.3",
"@polkadot/types-support": "14.2.3",
"@polkadot/util-crypto": "^13.2.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '14.2.3' };
+4 -4
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/types-codec": "14.2.3",
"@polkadot/util": "^13.2.2",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/types": "14.1.1"
"@polkadot/types": "14.2.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '14.2.3' };
+7 -7
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^13.2.1",
"@polkadot/types": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/types-create": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/networks": "^13.2.2",
"@polkadot/types": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/types-create": "14.2.3",
"@polkadot/util": "^13.2.2",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/api": "14.1.1"
"@polkadot/api": "14.2.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '14.2.3' };
+2 -2
View File
@@ -18,10 +18,10 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^13.2.1",
"@polkadot/util": "^13.2.2",
"tslib": "^2.8.0"
}
}
+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: '14.1.1' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '14.2.3' };
+9 -9
View File
@@ -18,20 +18,20 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "14.1.1",
"version": "14.2.3",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^13.2.1",
"@polkadot/types-augment": "14.1.1",
"@polkadot/types-codec": "14.1.1",
"@polkadot/types-create": "14.1.1",
"@polkadot/util": "^13.2.1",
"@polkadot/util-crypto": "^13.2.1",
"@polkadot/keyring": "^13.2.2",
"@polkadot/types-augment": "14.2.3",
"@polkadot/types-codec": "14.2.3",
"@polkadot/types-create": "14.2.3",
"@polkadot/util": "^13.2.2",
"@polkadot/util-crypto": "^13.2.2",
"rxjs": "^7.8.1",
"tslib": "^2.8.0"
},
"devDependencies": {
"@polkadot/keyring": "^13.2.1",
"@polkadot/types-support": "14.1.1"
"@polkadot/keyring": "^13.2.2",
"@polkadot/types-support": "14.2.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: '14.1.1' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '14.2.3' };
+177 -177
View File
@@ -447,27 +447,27 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@npm:14.1.1, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@npm:14.2.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:14.1.1"
"@polkadot/rpc-augment": "npm:14.1.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-augment": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/api-base": "npm:14.2.3"
"@polkadot/rpc-augment": "npm:14.2.3"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-augment": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/api-base@npm:14.1.1, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@npm:14.2.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:14.1.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/rpc-core": "npm:14.2.3"
"@polkadot/types": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.0"
languageName: unknown
@@ -477,59 +477,59 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@polkadot/api": "npm:14.1.1"
"@polkadot/api-augment": "npm:14.1.1"
"@polkadot/keyring": "npm:^13.2.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/types-create": "npm:14.1.1"
"@polkadot/types-support": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util-crypto": "npm:^13.2.1"
"@polkadot/api": "npm:14.2.3"
"@polkadot/api-augment": "npm:14.2.3"
"@polkadot/keyring": "npm:^13.2.2"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/types-create": "npm:14.2.3"
"@polkadot/types-support": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
"@polkadot/util-crypto": "npm:^13.2.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/api-derive@npm:14.1.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@npm:14.2.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:14.1.1"
"@polkadot/api-augment": "npm:14.1.1"
"@polkadot/api-base": "npm:14.1.1"
"@polkadot/rpc-augment": "npm:14.1.1"
"@polkadot/rpc-core": "npm:14.1.1"
"@polkadot/rpc-provider": "npm:14.1.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/types-support": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util-crypto": "npm:^13.2.1"
"@polkadot/api": "npm:14.2.3"
"@polkadot/api-augment": "npm:14.2.3"
"@polkadot/api-base": "npm:14.2.3"
"@polkadot/rpc-augment": "npm:14.2.3"
"@polkadot/rpc-core": "npm:14.2.3"
"@polkadot/rpc-provider": "npm:14.2.3"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/types-support": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
"@polkadot/util-crypto": "npm:^13.2.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/api@npm:14.1.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@npm:14.2.3, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@polkadot/api-augment": "npm:14.1.1"
"@polkadot/api-base": "npm:14.1.1"
"@polkadot/api-derive": "npm:14.1.1"
"@polkadot/keyring": "npm:^13.2.1"
"@polkadot/rpc-augment": "npm:14.1.1"
"@polkadot/rpc-core": "npm:14.1.1"
"@polkadot/rpc-provider": "npm:14.1.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-augment": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/types-create": "npm:14.1.1"
"@polkadot/types-known": "npm:14.1.1"
"@polkadot/types-support": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util-crypto": "npm:^13.2.1"
"@polkadot/api-augment": "npm:14.2.3"
"@polkadot/api-base": "npm:14.2.3"
"@polkadot/api-derive": "npm:14.2.3"
"@polkadot/keyring": "npm:^13.2.2"
"@polkadot/rpc-augment": "npm:14.2.3"
"@polkadot/rpc-core": "npm:14.2.3"
"@polkadot/rpc-provider": "npm:14.2.3"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-augment": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/types-create": "npm:14.2.3"
"@polkadot/types-known": "npm:14.2.3"
"@polkadot/types-support": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
"@polkadot/util-crypto": "npm:^13.2.2"
eventemitter3: "npm:^5.0.1"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.0"
@@ -632,69 +632,69 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/keyring@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/keyring@npm:13.2.1"
"@polkadot/keyring@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/keyring@npm:13.2.2"
dependencies:
"@polkadot/util": "npm:13.2.1"
"@polkadot/util-crypto": "npm:13.2.1"
"@polkadot/util": "npm:13.2.2"
"@polkadot/util-crypto": "npm:13.2.2"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.2.1
"@polkadot/util-crypto": 13.2.1
checksum: 10/69e9f974206da4fb50461eb48c65d6c32be991021c3663f5d1fd0079fdda9c1b52f584dc20e220e1a34f124df490d5bc0d607ccb6c7a277b6406e120c965bb81
"@polkadot/util": 13.2.2
"@polkadot/util-crypto": 13.2.2
checksum: 10/552972c5e4c26f8a95dbb18552cbcfb04c87e085022153a705025987bb77655dc6c32709ea4b8300ebe74945a32b7f8a88ab50460d1962b847335daeae19bda1
languageName: node
linkType: hard
"@polkadot/networks@npm:13.2.1, @polkadot/networks@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/networks@npm:13.2.1"
"@polkadot/networks@npm:13.2.2, @polkadot/networks@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/networks@npm:13.2.2"
dependencies:
"@polkadot/util": "npm:13.2.1"
"@polkadot/util": "npm:13.2.2"
"@substrate/ss58-registry": "npm:^1.51.0"
tslib: "npm:^2.8.0"
checksum: 10/abf22c37017fdb6091dd79bc9c5246e17dfaea18dc429cd894de8351d7a278d841d8144387d7422aae0b282f6c21cfa76ccec4eaab741193a81006a5e29156ed
checksum: 10/a1282e7104ed0c3ca0c8b42db115fa95ae99e03ea878e1837db92b04fada55c0ed7a55a63c2d36d248ec467e471e72c49026f75233eddd7dbd7037e3a1c81bb2
languageName: node
linkType: hard
"@polkadot/rpc-augment@npm:14.1.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@npm:14.2.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:14.1.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/rpc-core": "npm:14.2.3"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/rpc-core@npm:14.1.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@npm:14.2.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:^13.2.1"
"@polkadot/rpc-augment": "npm:14.1.1"
"@polkadot/rpc-provider": "npm:14.1.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/keyring": "npm:^13.2.2"
"@polkadot/rpc-augment": "npm:14.2.3"
"@polkadot/rpc-provider": "npm:14.2.3"
"@polkadot/types": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@npm:14.1.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@npm:14.2.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:^13.2.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-support": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util-crypto": "npm:^13.2.1"
"@polkadot/x-fetch": "npm:^13.2.1"
"@polkadot/x-global": "npm:^13.2.1"
"@polkadot/x-ws": "npm:^13.2.1"
"@polkadot/keyring": "npm:^13.2.2"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-support": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
"@polkadot/util-crypto": "npm:^13.2.2"
"@polkadot/x-fetch": "npm:^13.2.2"
"@polkadot/x-global": "npm:^13.2.2"
"@polkadot/x-ws": "npm:^13.2.2"
"@substrate/connect": "npm:0.8.11"
eventemitter3: "npm:^5.0.1"
mock-socket: "npm:^9.3.1"
@@ -710,18 +710,18 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/typegen@workspace:packages/typegen"
dependencies:
"@polkadot/api": "npm:14.1.1"
"@polkadot/api-augment": "npm:14.1.1"
"@polkadot/rpc-augment": "npm:14.1.1"
"@polkadot/rpc-provider": "npm:14.1.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-augment": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/types-create": "npm:14.1.1"
"@polkadot/types-support": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util-crypto": "npm:^13.2.1"
"@polkadot/x-ws": "npm:^13.2.1"
"@polkadot/api": "npm:14.2.3"
"@polkadot/api-augment": "npm:14.2.3"
"@polkadot/rpc-augment": "npm:14.2.3"
"@polkadot/rpc-provider": "npm:14.2.3"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-augment": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/types-create": "npm:14.2.3"
"@polkadot/types-support": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
"@polkadot/util-crypto": "npm:^13.2.2"
"@polkadot/x-ws": "npm:^13.2.2"
"@types/yargs": "npm:^17.0.33"
handlebars: "npm:^4.7.8"
tslib: "npm:^2.8.0"
@@ -735,113 +735,113 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@npm:14.1.1, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@npm:14.2.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:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/types-codec@npm:14.1.1, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@npm:14.2.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:14.1.1"
"@polkadot/types-augment": "npm:14.1.1"
"@polkadot/types-support": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util-crypto": "npm:^13.2.1"
"@polkadot/x-bigint": "npm:^13.2.1"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-augment": "npm:14.2.3"
"@polkadot/types-support": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
"@polkadot/util-crypto": "npm:^13.2.2"
"@polkadot/x-bigint": "npm:^13.2.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/types-create@npm:14.1.1, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@npm:14.2.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:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/types-known@npm:14.1.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@npm:14.2.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:14.1.1"
"@polkadot/networks": "npm:^13.2.1"
"@polkadot/types": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/types-create": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/api": "npm:14.2.3"
"@polkadot/networks": "npm:^13.2.2"
"@polkadot/types": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/types-create": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/types-support@npm:14.1.1, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@npm:14.2.3, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util": "npm:^13.2.2"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/types@npm:14.1.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@npm:14.2.3, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@polkadot/keyring": "npm:^13.2.1"
"@polkadot/types-augment": "npm:14.1.1"
"@polkadot/types-codec": "npm:14.1.1"
"@polkadot/types-create": "npm:14.1.1"
"@polkadot/types-support": "npm:14.1.1"
"@polkadot/util": "npm:^13.2.1"
"@polkadot/util-crypto": "npm:^13.2.1"
"@polkadot/keyring": "npm:^13.2.2"
"@polkadot/types-augment": "npm:14.2.3"
"@polkadot/types-codec": "npm:14.2.3"
"@polkadot/types-create": "npm:14.2.3"
"@polkadot/types-support": "npm:14.2.3"
"@polkadot/util": "npm:^13.2.2"
"@polkadot/util-crypto": "npm:^13.2.2"
rxjs: "npm:^7.8.1"
tslib: "npm:^2.8.0"
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:13.2.1, @polkadot/util-crypto@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/util-crypto@npm:13.2.1"
"@polkadot/util-crypto@npm:13.2.2, @polkadot/util-crypto@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/util-crypto@npm:13.2.2"
dependencies:
"@noble/curves": "npm:^1.3.0"
"@noble/hashes": "npm:^1.3.3"
"@polkadot/networks": "npm:13.2.1"
"@polkadot/util": "npm:13.2.1"
"@polkadot/networks": "npm:13.2.2"
"@polkadot/util": "npm:13.2.2"
"@polkadot/wasm-crypto": "npm:^7.4.1"
"@polkadot/wasm-util": "npm:^7.4.1"
"@polkadot/x-bigint": "npm:13.2.1"
"@polkadot/x-randomvalues": "npm:13.2.1"
"@polkadot/x-bigint": "npm:13.2.2"
"@polkadot/x-randomvalues": "npm:13.2.2"
"@scure/base": "npm:^1.1.7"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.2.1
checksum: 10/116907351482fda7777634c66da75eb0cb32badc58938ab56f4339cc811318f6b0066555eaa158828af7e7e22c1e187a2d504c95ed961424b5c4cd8eccca75cd
"@polkadot/util": 13.2.2
checksum: 10/7f00b4a89be841cfa67c2a25717c21ead158ed52b3f166b5140dae6b2b20e011823b2c06b7df7df95216d964265db151d8785e3db8823ab62ffcc8986d769cd7
languageName: node
linkType: hard
"@polkadot/util@npm:13.2.1, @polkadot/util@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/util@npm:13.2.1"
"@polkadot/util@npm:13.2.2, @polkadot/util@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/util@npm:13.2.2"
dependencies:
"@polkadot/x-bigint": "npm:13.2.1"
"@polkadot/x-global": "npm:13.2.1"
"@polkadot/x-textdecoder": "npm:13.2.1"
"@polkadot/x-textencoder": "npm:13.2.1"
"@polkadot/x-bigint": "npm:13.2.2"
"@polkadot/x-global": "npm:13.2.2"
"@polkadot/x-textdecoder": "npm:13.2.2"
"@polkadot/x-textencoder": "npm:13.2.2"
"@types/bn.js": "npm:^5.1.6"
bn.js: "npm:^5.2.1"
tslib: "npm:^2.8.0"
checksum: 10/96a0a316ca67831261a216184510b53c07cdc9387ff11245eece5924e1d47bdc3b02dcbeacd48b932c36ac3d567fd707659170a551428adc60012fbfac3e43c3
checksum: 10/acf145fdf49ad7e39a8df2c24eba510956281196902684fa42ce3b4f2152863478a5410b9f64b9a73ab689f37b64f8e01af15027a29812417b1333f143d14c21
languageName: node
linkType: hard
@@ -925,77 +925,77 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-bigint@npm:13.2.1, @polkadot/x-bigint@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/x-bigint@npm:13.2.1"
"@polkadot/x-bigint@npm:13.2.2, @polkadot/x-bigint@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/x-bigint@npm:13.2.2"
dependencies:
"@polkadot/x-global": "npm:13.2.1"
"@polkadot/x-global": "npm:13.2.2"
tslib: "npm:^2.8.0"
checksum: 10/1d55766a454399984da1123903e180bb6576206368f0f46ca6f7cfb7ca2b68481ccb719d4c65485bd5f527773fca32ce8f38a773a3ef1c374cfcbe800c2ab433
checksum: 10/00cdd6298a82971c700b1cb9d9dda26423a46fe86044fe74c5c14cb15d70ca912f044a1c935416fb363b58f84544e7f7a5a79eedefccdfbc56e5185637781c90
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/x-fetch@npm:13.2.1"
"@polkadot/x-fetch@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/x-fetch@npm:13.2.2"
dependencies:
"@polkadot/x-global": "npm:13.2.1"
"@polkadot/x-global": "npm:13.2.2"
node-fetch: "npm:^3.3.2"
tslib: "npm:^2.8.0"
checksum: 10/939d01100599f0b978160358c86a99de138d8ca0145050a01831b159ff8bffdfc3bd12564d87fd734751797b67627a22c9d6088c78927eea1ada66310d57c7bd
checksum: 10/19110cbe80ec105eb4f86f162f6f86a930e18bd189d422dbb724a5a0cf7ad83167ed86671835fd43948f5f92295b570ec7bb997f308359bf9ddb6cea335b4438
languageName: node
linkType: hard
"@polkadot/x-global@npm:13.2.1, @polkadot/x-global@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/x-global@npm:13.2.1"
"@polkadot/x-global@npm:13.2.2, @polkadot/x-global@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/x-global@npm:13.2.2"
dependencies:
tslib: "npm:^2.8.0"
checksum: 10/92fc6c63ab5711f9fd6413eadb942b177d5bc16a202a6e230865caf0f3ac07595c70cc4687d0f0aff478cf7a487bd5b99f68f75128c7dbcc0b843c015fb87517
checksum: 10/9b2747c6b581943c82d6228e886fd491ea41068e07d1da3654c9acc27ace5e1b8682c6e9f8ceaffe68aa88fb386758ebe70f595fde8a5a2544361999e39e74f1
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:13.2.1":
version: 13.2.1
resolution: "@polkadot/x-randomvalues@npm:13.2.1"
"@polkadot/x-randomvalues@npm:13.2.2":
version: 13.2.2
resolution: "@polkadot/x-randomvalues@npm:13.2.2"
dependencies:
"@polkadot/x-global": "npm:13.2.1"
"@polkadot/x-global": "npm:13.2.2"
tslib: "npm:^2.8.0"
peerDependencies:
"@polkadot/util": 13.2.1
"@polkadot/util": 13.2.2
"@polkadot/wasm-util": "*"
checksum: 10/9547de30f06f8a664af6eac4a40db39338c88ad4295adbb7056316242cb388da65f2758894e3e81886d816d78a47b41b4825c15a2c5172a48e6f8e3e80f7e68e
checksum: 10/d30e37bc659f4fe045b421e80fc37849e92351ff64244c90651f35ef1fb8722ad1d8d421fc459d039a5f53b9072635f4f531a5a0fd029269025a86178b44b327
languageName: node
linkType: hard
"@polkadot/x-textdecoder@npm:13.2.1":
version: 13.2.1
resolution: "@polkadot/x-textdecoder@npm:13.2.1"
"@polkadot/x-textdecoder@npm:13.2.2":
version: 13.2.2
resolution: "@polkadot/x-textdecoder@npm:13.2.2"
dependencies:
"@polkadot/x-global": "npm:13.2.1"
"@polkadot/x-global": "npm:13.2.2"
tslib: "npm:^2.8.0"
checksum: 10/4c4dc6c682eaf2cc46b69d061f2226f7f6885900d3d43d3e99f93716903470c5299d581ab14c5d03eb20b8496afb6e8eaadab22dbd6249bfcce64cab396d689d
checksum: 10/8fcf79d362141f011123230f7f82f9145cd7c0c7f2ac8caa89f0b8a59e457aad6ffb6e05dee98bd7e254dbd87cce6660dea50e7a41b09830f81e1e350f49a276
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:13.2.1":
version: 13.2.1
resolution: "@polkadot/x-textencoder@npm:13.2.1"
"@polkadot/x-textencoder@npm:13.2.2":
version: 13.2.2
resolution: "@polkadot/x-textencoder@npm:13.2.2"
dependencies:
"@polkadot/x-global": "npm:13.2.1"
"@polkadot/x-global": "npm:13.2.2"
tslib: "npm:^2.8.0"
checksum: 10/0b00b9c45e9e7ff327750f91458b81ca6cdeecba0ed5c28cd056a9f1438c8a793560253ea53c458a08aaf7820196f5ae76935295d2ff87d4311c5f8e501c0e3b
checksum: 10/e382f7b1601b11b91fa17242af0357ecd7db4bd7f6db2cea88eef9a5bb3f64271089569b34e28685d62f8e89e870876f2872ec2f34a8aee44515f47e79cd4f0f
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^13.2.1":
version: 13.2.1
resolution: "@polkadot/x-ws@npm:13.2.1"
"@polkadot/x-ws@npm:^13.2.2":
version: 13.2.2
resolution: "@polkadot/x-ws@npm:13.2.2"
dependencies:
"@polkadot/x-global": "npm:13.2.1"
"@polkadot/x-global": "npm:13.2.2"
tslib: "npm:^2.8.0"
ws: "npm:^8.18.0"
checksum: 10/a955f610698ac029bc90dbc4a160fca362e4356880bbae4f75ca72c6588841929851e89d3112d2c54736d1730db5a83d37372fde004c3e4905d4f5fbd13a9bc2
checksum: 10/f98fcf8350c691c78e2a06487dd57071e13d64014c8192fae2b4fd75435edd946bc4847142933f58046c93709160c912d7d8fa990b8f02b4db929f610b34c77b
languageName: node
linkType: hard