Compare commits

..
14 Commits
Author SHA1 Message Date
github-actions[bot] 2ef84c5dcd [CI Skip] release/stable 11.1.1
skip-checks: true
2024-05-21 18:41:45 +00:00
Tarik Gul 36c24826ec 11.1.1 (#5888) 2024-05-21 14:34:18 -04:00
github-actions[bot] 184f702efd [CI Skip] bump/beta 11.0.4-5-x
skip-checks: true
2024-05-20 16:38:58 +00:00
Tarik Gulandbee344 b392c19922 fix: CheckMetadataHash signedExtension support (#5882)
* CheckMetadataHash support

* lint

* updtated CheckGenesis

* linting

* added getters for metadataHash

* fixed metadataHash type

* fixed toHuman override

* updated SignerPayload

* updated mode to take AnyNumber

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
2024-05-20 13:31:23 -03:00
github-actions[bot] 38de00d8d8 [CI Skip] bump/beta 11.0.4-4-x
skip-checks: true
2024-05-17 20:29:41 +00:00
Tarik Gul f9c58203a0 Fix api.derive.accounts.{info && identity} (#5885)
* Fix api.derive.accounts.identity and all residual derives

* reorder types
2024-05-17 23:22:07 +03:00
github-actions[bot] baaa27ba9e [CI Skip] bump/beta 11.0.4-3-x
skip-checks: true
2024-05-15 01:53:00 +00:00
Alberto Nicolas Penayo 365fde895a fix: updated extrinsics' assetId toHuman (#5879) 2024-05-14 21:45:55 -04:00
github-actions[bot] b17a6d3920 [CI Skip] bump/beta 11.0.4-2-x
skip-checks: true
2024-05-14 01:05:48 +00:00
Tarik Gul 0d8df6380e Bump yarn to 4.2.2 (#5878) 2024-05-14 03:58:04 +03:00
github-actions[bot] 52cd797488 [CI Skip] bump/beta 11.0.4-1-x
skip-checks: true
2024-05-14 00:47:46 +00:00
Tarik Gul a71d401f1d Bump @polkadot/dev to 0.79.1 w/ topo sort (#5877) 2024-05-14 03:40:21 +03:00
github-actions[bot] 61b68393e7 [CI Skip] bump/beta 11.0.4-0-x
skip-checks: true
2024-05-10 18:53:21 +00:00
Tarik Gul 7d6933ed39 Dedupe nextElected accountIds (#5876)
* Dedupe nextElected accountIds

* remove consoles
2024-05-10 21:45:26 +03:00
48 changed files with 688 additions and 528 deletions
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.1.1.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
+12
View File
@@ -1,5 +1,17 @@
# CHANGELOG
## 11.1.1 May 21, 2024
Changes
- Dedupe nextElected accountIds in `api.derive.staking.nextElected`
- Bump @polkadot/dev to 0.79.1 w/ topo sort
- Bump yarn to 4.2.2
- fix: updated extrinsics' assetId `toHuman` (Thanks to https://github.com/bee344)
- fix `api.derive.accounts.{info && identity}`
- feat: Add support for `CheckMetadataHash` signedExtension (Thanks to https://github.com/bee344)
## 11.0.3 May 8, 2024
Changes
+2 -2
View File
@@ -1,6 +1,6 @@
3512 Jaco Bump deps (#5785)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
43 Tarik Gul 11.0.3 (#5873)
49 Tarik Gul 11.1.1 (#5888)
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)
@@ -21,6 +21,7 @@
4 Nantian fix bigint type (#3869)
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
4 Thibaut Sardan no subscription for http (#3127)
3 Alberto Nicolas Penayo fix: updated extrinsics' assetId toHuman (#5879)
3 André Silva add support for ValidationCodeHash (#3640)
3 Antoine Estienne Adapted to display moonbeam author (#3108)
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
@@ -33,7 +34,6 @@
3 Miguel Hervas Adding RT4 Types (#3007)
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
3 YJ feat: Vote interface as U8a (#1061)
2 Alberto Nicolas Penayo updated remaining assetId for ChargeAssetTxPayment (#5763)
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
2 Branan Riley Add proxy type for Centrifuge (#3940)
2 Caio Add `Range` and `RangeInclusive` types (#3791)
+5 -5
View File
@@ -6,7 +6,7 @@
},
"homepage": "https://github.com/polkadot-js/api#readme",
"license": "Apache-2.0",
"packageManager": "yarn@4.1.1",
"packageManager": "yarn@4.2.2",
"private": true,
"repository": {
"type": "git",
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"versions": {
"git": "11.0.3",
"npm": "11.0.3"
"git": "11.1.1",
"npm": "11.1.1"
},
"workspaces": [
"packages/*"
@@ -40,7 +40,7 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.78.9",
"@polkadot/dev": "^0.79.1",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.11.6"
},
+6 -6
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@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/api-base": "11.1.1",
"@polkadot/rpc-augment": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/types-augment": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@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.3' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '11.1.1' };
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/rpc-core": "11.1.1",
"@polkadot/types": "11.1.1",
"@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.3' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '11.1.1' };
+3 -1
View File
@@ -3,7 +3,7 @@
import type { Observable } from 'rxjs';
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
import type { AnyFunction, AnyNumber, AnyTuple, AnyU8a, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
import type { ApiTypes, EmptyBase, PromiseOrObs } from './base.js';
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
@@ -17,6 +17,8 @@ export interface SignerOptions {
signer?: Signer;
tip?: AnyNumber;
assetId?: AnyNumber | object;
mode?: AnyNumber;
metadataHash?: AnyU8a;
}
export type SubmittableDryRunResult<ApiType extends ApiTypes> =
+8 -8
View File
@@ -18,22 +18,22 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@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/api": "11.1.1",
"@polkadot/api-augment": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/types-create": "11.1.1",
"@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.3",
"@polkadot/api-augment": "11.1.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-support": "11.0.3"
"@polkadot/types-support": "11.1.1"
}
}
+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.3' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '11.1.1' };
+12 -12
View File
@@ -18,25 +18,25 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@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/api": "11.1.1",
"@polkadot/api-augment": "11.1.1",
"@polkadot/api-base": "11.1.1",
"@polkadot/rpc-core": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@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"
"@polkadot/api": "11.1.1",
"@polkadot/api-augment": "11.1.1",
"@polkadot/rpc-augment": "11.1.1",
"@polkadot/rpc-provider": "11.1.1",
"@polkadot/types-support": "11.1.1"
}
}
+23 -3
View File
@@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { Bytes, Data } from '@polkadot/types';
import type { AccountId } from '@polkadot/types/interfaces';
import type { Bytes, Data, Struct } from '@polkadot/types';
import type { AccountId, H160 } from '@polkadot/types/interfaces';
import type { PalletIdentityLegacyIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
import type { Option } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
@@ -17,9 +17,26 @@ import { firstMemo, memo } from '../util/index.js';
type IdentityInfoAdditional = PalletIdentityLegacyIdentityInfo['additional'][0];
interface PeopleIdentityInfo extends Struct {
display: Data;
legal: Data;
web: Data;
matrix: Data;
email: Data;
pgpFingerprint: Option<H160>;
image: Data;
twitter: Data;
github: Data;
discord: Data;
}
const UNDEF_HEX = { toHex: () => undefined };
function dataAsString (data: Data): string | undefined {
if (!data) {
return data;
}
return data.isRaw
? u8aToString(data.asRaw.toU8a(true))
: data.isNone
@@ -58,13 +75,16 @@ function extractIdentity (identityOfOpt?: Option<ITuple<[PalletIdentityRegistrat
const topDisplay = dataAsString(info.display);
return {
discord: dataAsString((info as unknown as PeopleIdentityInfo).discord),
display: (superOf && dataAsString(superOf[1])) || topDisplay,
displayParent: superOf && topDisplay,
email: dataAsString(info.email),
github: dataAsString((info as unknown as PeopleIdentityInfo).github),
image: dataAsString(info.image),
judgements,
legal: dataAsString(info.legal),
other: extractOther(info.additional),
matrix: dataAsString((info as unknown as PeopleIdentityInfo).matrix),
other: info.additional ? extractOther(info.additional) : {},
parent: superOf?.[0],
pgp: info.pgpFingerprint.unwrapOr(UNDEF_HEX).toHex(),
riot: dataAsString(info.riot),
@@ -8,11 +8,14 @@ export type AccountIdAndIndex = [AccountId | undefined, AccountIndex | undefined
export type AccountIndexes = Record<string, AccountIndex>;
export interface DeriveAccountRegistration {
discord?: string | undefined;
display?: string | undefined;
displayParent?: string | undefined;
email?: string | undefined;
github?: string | undefined;
image?: string | undefined;
legal?: string | undefined;
matrix?: string | undefined;
other?: Record<string, string> | undefined;
parent?: AccountId | undefined;
pgp?: string | undefined;
+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.3' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '11.1.1' };
@@ -17,14 +17,16 @@ export function nextElected (instanceId: string, api: DeriveApi): () => Observab
// 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)),
map((keys) => keys.map(({ args: [, accountId] }) => accountId))
// Dedupe any duplicates
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
)
: 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))
// Dedupe any duplicates
map((keys) => [...new Set(keys.map(({ args: [, accountId] }) => accountId.toString()))].map((a) => api.registry.createType('AccountId', a)))
)
: api.query.staking['currentElected']<AccountId[]>()
);
+14 -14
View File
@@ -18,21 +18,21 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/api-augment": "11.0.3",
"@polkadot/api-base": "11.0.3",
"@polkadot/api-derive": "11.0.3",
"@polkadot/api-augment": "11.1.1",
"@polkadot/api-base": "11.1.1",
"@polkadot/api-derive": "11.1.1",
"@polkadot/keyring": "^12.6.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/rpc-augment": "11.1.1",
"@polkadot/rpc-core": "11.1.1",
"@polkadot/rpc-provider": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/types-augment": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/types-create": "11.1.1",
"@polkadot/types-known": "11.1.1",
"@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.3",
"@polkadot/types-support": "11.0.3"
"@polkadot/api-augment": "11.1.1",
"@polkadot/types-support": "11.1.1"
}
}
+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.3' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '11.1.1' };
+4 -4
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-core": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/rpc-core": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@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.3' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '11.1.1' };
+5 -5
View File
@@ -18,18 +18,18 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/rpc-augment": "11.0.3",
"@polkadot/rpc-provider": "11.0.3",
"@polkadot/types": "11.0.3",
"@polkadot/rpc-augment": "11.1.1",
"@polkadot/rpc-provider": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/util": "^12.6.2",
"rxjs": "^7.8.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/rpc-augment": "11.0.3"
"@polkadot/rpc-augment": "11.1.1"
}
}
+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.3' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '11.1.1' };
+3 -3
View File
@@ -18,12 +18,12 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types": "11.0.3",
"@polkadot/types-support": "11.0.3",
"@polkadot/types": "11.1.1",
"@polkadot/types-support": "11.1.1",
"@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.3' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '11.1.1' };
+10 -10
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"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.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/api": "11.1.1",
"@polkadot/api-augment": "11.1.1",
"@polkadot/rpc-augment": "11.1.1",
"@polkadot/rpc-provider": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/types-augment": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/types-create": "11.1.1",
"@polkadot/types-support": "11.1.1",
"@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.3' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '11.1.1' };
+3 -3
View File
@@ -18,11 +18,11 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@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/types-augment', path: 'auto', type: 'auto', version: '11.0.3' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '11.1.1' };
+4 -4
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.2",
@@ -26,9 +26,9 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "11.0.3",
"@polkadot/types-augment": "11.0.3",
"@polkadot/types-support": "11.0.3",
"@polkadot/types": "11.1.1",
"@polkadot/types-augment": "11.1.1",
"@polkadot/types-support": "11.1.1",
"@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.3' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '11.1.1' };
+3 -3
View File
@@ -18,14 +18,14 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-codec": "11.1.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/types": "11.0.3"
"@polkadot/types": "11.1.1"
}
}
+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.3' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '11.1.1' };
+5 -5
View File
@@ -18,17 +18,17 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.6.2",
"@polkadot/types": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-create": "11.0.3",
"@polkadot/types": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/types-create": "11.1.1",
"@polkadot/util": "^12.6.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@polkadot/api": "11.0.3"
"@polkadot/api": "11.1.1"
}
}
+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.3' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '11.1.1' };
+1 -1
View File
@@ -18,7 +18,7 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^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-support', path: 'auto', type: 'auto', version: '11.0.3' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '11.1.1' };
+5 -5
View File
@@ -18,13 +18,13 @@
"./packageDetect.cjs"
],
"type": "module",
"version": "11.0.3",
"version": "11.1.1",
"main": "index.js",
"dependencies": {
"@polkadot/keyring": "^12.6.2",
"@polkadot/types-augment": "11.0.3",
"@polkadot/types-codec": "11.0.3",
"@polkadot/types-create": "11.0.3",
"@polkadot/types-augment": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/types-create": "11.1.1",
"@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.3"
"@polkadot/types-support": "11.1.1"
}
}
+11 -3
View File
@@ -5,7 +5,7 @@ import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect, IOption } fr
import type { HexString } from '@polkadot/util/types';
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics/index.js';
import type { FunctionMetadataLatest } from '../interfaces/metadata/index.js';
import type { Address, Call, CodecHash } from '../interfaces/runtime/index.js';
import type { Address, Call, CodecHash, Hash } from '../interfaces/runtime/index.js';
import type { MultiLocation } from '../interfaces/types.js';
import type { CallBase, ExtrinsicPayloadValue, ICompact, IExtrinsic, IKeyringPair, INumber, Registry, SignatureOptions } from '../types/index.js';
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
@@ -195,10 +195,17 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
/**
* @description Forward compat
*/
public get assetId (): IOption<INumber> | IOption<MultiLocation> {
public get assetId (): IOption<INumber | MultiLocation> {
return this.inner.signature.assetId;
}
/**
* @description Forward compat
*/
public get metadataHash (): IOption<Hash> {
return this.inner.signature.metadataHash;
}
/**
* @description Returns the raw transaction version (not flagged with signing information)
*/
@@ -324,8 +331,9 @@ export class GenericExtrinsic<A extends AnyTuple = AnyTuple> extends ExtrinsicBa
},
this.isSigned
? {
assetId: this.assetId.toHuman(isExpanded, disableAscii),
assetId: this.assetId ? this.assetId.toHuman(isExpanded, disableAscii) : null,
era: this.era.toHuman(isExpanded, disableAscii),
metadataHash: this.metadataHash ? this.metadataHash.toHex() : null,
nonce: this.nonce.toHuman(isExpanded, disableAscii),
signature: this.signature.toHex(),
signer: this.signer.toHuman(isExpanded, disableAscii),
@@ -6,7 +6,7 @@ import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
import type { BlockHash } from '../interfaces/chain/index.js';
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics/index.js';
import type { MultiLocation } from '../interfaces/types.js';
import type { Hash, MultiLocation } from '../interfaces/types.js';
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../types/index.js';
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
@@ -113,10 +113,17 @@ export class GenericExtrinsicPayload extends AbstractBase<ExtrinsicPayloadVx> {
/**
* @description The (optional) asset id as a [[u32]] or [[MultiLocation]] for this payload
*/
public get assetId (): IOption<INumber | IOption<MultiLocation>> {
public get assetId (): IOption<INumber | MultiLocation> {
return this.inner.assetId;
}
/**
* @description The (optional) [[Hash]] of the genesis metadata for this payload
*/
public get metadataHash (): IOption<Hash> {
return this.inner.metadataHash;
}
/**
* @description Compares the value of the input to see if there is a match
*/
@@ -17,11 +17,15 @@ registry.setMetadata(metadata);
describe('SignerPayload', (): void => {
const TEST = {
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
blockNumber: '0x00231d30',
era: '0x0703',
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
metadataHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
mode: 1,
nonce: '0x00001234',
signedExtensions: ['CheckNonce', 'CheckWeight'],
specVersion: '0x00000006',
@@ -34,11 +38,15 @@ describe('SignerPayload', (): void => {
expect(
new SignerPayload(registry, {
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
blockNumber: '0x231d30',
era: registry.createType('ExtrinsicEra', { current: 2301232, period: 200 }),
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
metadataHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
method: registry.createType('Call', '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c'),
mode: 1,
nonce: 0x1234,
signedExtensions: ['CheckNonce'],
tip: 0x5678,
@@ -46,11 +54,15 @@ describe('SignerPayload', (): void => {
}).toPayload()
).toEqual({
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
// eslint-disable-next-line sort-keys
assetId: { parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } },
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
blockNumber: '0x00231d30',
era: '0x0703',
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
metadataHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
mode: 1,
nonce: '0x00001234',
signedExtensions: ['CheckNonce'],
specVersion: '0x00000000',
@@ -71,25 +83,14 @@ describe('SignerPayload', (): void => {
).toEqual(true);
expect(
// @ts-expect-error We don't have getters for this field
test.toPayload().assetId
).toEqual({
// eslint-disable-next-line sort-keys
parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
});
).toEqual({ parents: 0, interior: { x2: [{ palletInstance: 50 }, { generalIndex: 123 }] } });
expect(
// @ts-expect-error We don't have getters for this field
new SignerPayload(registry, { assetId: 0 }).toPayload().assetId
).toEqual({
// eslint-disable-next-line sort-keys
parents: 0, interior: { here: null }
});
expect(
// @ts-expect-error We don't have getters for this field
new SignerPayload(registry, TEST).toPayload().assetId
).toBeUndefined();
).toEqual({ parents: 0, interior: { here: null } });
});
it('re-constructs from JSON', (): void => {
@@ -126,11 +127,55 @@ describe('SignerPayload', (): void => {
expect(payload.blockHash.toHex()).toEqual(TEST.blockHash);
expect(payload.nonce.eq(TEST.nonce)).toBe(true);
expect(payload.tip.eq(TEST.tip)).toBe(true);
// @ts-expect-error assetId is of unknown type, so we don't know about "isSome"
expect(payload.inner?.get('assetId')?.isSome && payload.inner?.get('assetId')
expect(payload.assetId.isSome && payload.assetId
?.eq(registry.createType('MultiLocation', {
// eslint-disable-next-line sort-keys
parents: 0, interior: { X2: [{ palletInstance: 50 }, { generalIndex: 123 }] }
}))).toBe(true);
});
const TEST_WITHOUT_CHECK = {
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
blockNumber: '0x00231d30',
era: '0x0703',
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
nonce: '0x00001234',
signedExtensions: [],
specVersion: '0x00000006',
tip: '0x00000000000000000000000000005678',
transactionVersion: '0x00000007',
version: 4
};
const PAYLOAD_WITHOUT_CHECK = {
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
assetId: null,
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
blockNumber: '0x00231d30',
era: '0x0703',
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
metadataHash: null,
method: '0x060000d7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
mode: 0,
nonce: '0x00001234',
signedExtensions: [],
specVersion: '0x00000006',
tip: '0x00000000000000000000000000005678',
transactionVersion: '0x00000007',
version: 4
};
it('can build SignerPayload without additional SignedExtensions', (): void => {
expect(
new SignerPayload(
registry,
{
...TEST_WITHOUT_CHECK,
runtimeVersion: { specVersion: 0x06, transactionVersion: 0x07 }
}
).toPayload()
).toEqual(PAYLOAD_WITHOUT_CHECK);
});
});
+18 -1
View File
@@ -12,11 +12,14 @@ import { objectProperty, objectSpread, u8aToHex } from '@polkadot/util';
export interface SignerPayloadType extends Codec {
address: Address;
assetId: IOption<INumber | MultiLocation>;
blockHash: Hash;
blockNumber: INumber;
era: ExtrinsicEra;
genesisHash: Hash;
metadataHash: IOption<Hash>;
method: Call;
mode: INumber;
nonce: ICompact<INumber>;
runtimeVersion: IRuntimeVersion;
signedExtensions: Vec<Text>;
@@ -26,11 +29,14 @@ export interface SignerPayloadType extends Codec {
const knownTypes: Record<string, string> = {
address: 'Address',
assetId: 'Option<TAssetConversion>',
blockHash: 'Hash',
blockNumber: 'BlockNumber',
era: 'ExtrinsicEra',
genesisHash: 'Hash',
metadataHash: 'Option<[u8;32]>',
method: 'Call',
mode: 'u8',
nonce: 'Compact<Index>',
runtimeVersion: 'RuntimeVersion',
signedExtensions: 'Vec<Text>',
@@ -104,7 +110,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
return this.getT('tip');
}
get assetId (): IOption<INumber> | IOption<MultiLocation> {
get assetId (): IOption<INumber | MultiLocation> {
return this.getT('assetId');
}
@@ -112,6 +118,14 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
return this.getT('version');
}
get mode (): INumber {
return this.getT('mode');
}
get metadataHash (): IOption<Hash> {
return this.getT('metadataHash');
}
/**
* @description Creates an representation of the structure as an ISignerPayload JSON
*/
@@ -139,11 +153,14 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
// the known defaults as managed explicitly and has different
// formatting in cases, e.g. we mostly expose a hex format here
address: this.address.toString(),
assetId: this.assetId ? this.assetId.toJSON() : null,
blockHash: this.blockHash.toHex(),
blockNumber: this.blockNumber.toHex(),
era: this.era.toHex(),
genesisHash: this.genesisHash.toHex(),
metadataHash: this.metadataHash.isSome ? this.metadataHash.toHex() : null,
method: this.method.toHex(),
mode: this.mode.toNumber(),
nonce: this.nonce.toHex(),
signedExtensions: this.signedExtensions.map((e) => e.toString()),
specVersion: this.runtimeVersion.specVersion.toHex(),
@@ -5,6 +5,15 @@ import type { ExtDef, ExtInfo } from './types.js';
import { emptyCheck } from './emptyCheck.js';
const CheckMetadataHash: ExtInfo = {
extrinsic: {
mode: 'u8'
},
payload: {
metadataHash: 'Option<[u8;32]>'
}
};
const CheckMortality: ExtInfo = {
extrinsic: {
era: 'ExtrinsicEra'
@@ -31,6 +40,7 @@ export const substrate: ExtDef = {
genesisHash: 'Hash'
}
},
CheckMetadataHash,
CheckMortality,
CheckNonZeroSender: emptyCheck,
CheckNonce: {
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { SignOptions } from '@polkadot/keyring/types';
import type { MultiLocation } from '@polkadot/types/interfaces';
import type { Hash, MultiLocation } from '@polkadot/types/interfaces';
import type { Bytes } from '@polkadot/types-codec';
import type { Inspect, Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/types';
@@ -105,10 +105,17 @@ export class GenericExtrinsicPayloadV4 extends Struct {
/**
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
*/
public get assetId (): IOption<INumber | IOption<MultiLocation>> {
public get assetId (): IOption<INumber | MultiLocation> {
return this.getT('assetId');
}
/**
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
*/
public get metadataHash (): IOption<Hash> {
return this.getT('metadataHash');
}
/**
* @description Sign the payload with the keypair
*/
@@ -4,7 +4,7 @@
import type { MultiLocation } from '@polkadot/types/interfaces';
import type { HexString } from '@polkadot/util/types';
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics/index.js';
import type { Address, Call } from '../../interfaces/runtime/index.js';
import type { Address, Call, Hash } from '../../interfaces/runtime/index.js';
import type { ExtrinsicPayloadValue, ICompact, IExtrinsicSignature, IKeyringPair, INumber, IOption, Registry, SignatureOptions } from '../../types/index.js';
import type { ExtrinsicSignatureOptions } from '../types.js';
@@ -122,10 +122,17 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
/**
* @description The [[u32]] or [[MultiLocation]] assetId
*/
public get assetId (): IOption<INumber> | IOption<MultiLocation> {
public get assetId (): IOption<INumber | MultiLocation> {
return this.getT('assetId');
}
/**
* @description The [[Hash]] for the metadata
*/
public get metadataHash (): IOption<Hash> {
return this.getT('metadataHash');
}
protected _injectSignature (signer: Address, signature: ExtrinsicSignature, payload: GenericExtrinsicPayloadV4): IExtrinsicSignature {
// use the fields exposed to guide the getters
for (let i = 0, count = this.#signKeys.length; i < count; i++) {
+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.3' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '11.1.1' };
+19
View File
@@ -35,6 +35,11 @@ export interface SignerPayloadJSON {
*/
address: string;
/**
* @description The id of the asset used to pay fees, in hex
*/
assetId?: number | object;
/**
* @description The checkpoint hash of the block, in hex
*/
@@ -55,11 +60,21 @@ export interface SignerPayloadJSON {
*/
genesisHash: HexString;
/**
* @description The metadataHash for the CheckMetadataHash SignedExtension, as hex
*/
metadataHash?: HexString;
/**
* @description The encoded method (with arguments) in hex
*/
method: string;
/**
* @description The mode for the CheckMetadataHash SignedExtension, in hex
*/
mode?: number;
/**
* @description The nonce for this transaction, in hex
*/
@@ -164,6 +179,8 @@ export interface SignatureOptions {
signer?: Signer;
tip?: AnyNumber;
assetId?: AnyNumber | object;
mode?: AnyNumber;
metadataHash?: Uint8Array | string;
}
interface ExtrinsicSignatureBase {
@@ -185,6 +202,8 @@ export interface ExtrinsicPayloadValue {
tip: AnyNumber;
transactionVersion: AnyNumber;
assetId?: AnyNumber | object;
mode?: AnyNumber;
metadataHash?: AnyU8a;
}
export interface IExtrinsicSignature extends ExtrinsicSignatureBase, Codec {
+94 -94
View File
@@ -444,26 +444,26 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@npm:11.0.3, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@npm:11.1.1, @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.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/api-base": "npm:11.1.1"
"@polkadot/rpc-augment": "npm:11.1.1"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-augment": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/api-base@npm:11.0.3, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@npm:11.1.1, @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.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/rpc-core": "npm:11.1.1"
"@polkadot/types": "npm:11.1.1"
"@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.3"
"@polkadot/api-augment": "npm:11.0.3"
"@polkadot/api": "npm:11.1.1"
"@polkadot/api-augment": "npm:11.1.1"
"@polkadot/keyring": "npm:^12.6.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/types": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/types-create": "npm:11.1.1"
"@polkadot/types-support": "npm:11.1.1"
"@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.3, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@npm:11.1.1, @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.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/api": "npm:11.1.1"
"@polkadot/api-augment": "npm:11.1.1"
"@polkadot/api-base": "npm:11.1.1"
"@polkadot/rpc-augment": "npm:11.1.1"
"@polkadot/rpc-core": "npm:11.1.1"
"@polkadot/rpc-provider": "npm:11.1.1"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/types-support": "npm:11.1.1"
"@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.3, @polkadot/api@workspace:packages/api":
"@polkadot/api@npm:11.1.1, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@polkadot/api-augment": "npm:11.0.3"
"@polkadot/api-base": "npm:11.0.3"
"@polkadot/api-derive": "npm:11.0.3"
"@polkadot/api-augment": "npm:11.1.1"
"@polkadot/api-base": "npm:11.1.1"
"@polkadot/api-derive": "npm:11.1.1"
"@polkadot/keyring": "npm:^12.6.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/rpc-augment": "npm:11.1.1"
"@polkadot/rpc-core": "npm:11.1.1"
"@polkadot/rpc-provider": "npm:11.1.1"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-augment": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/types-create": "npm:11.1.1"
"@polkadot/types-known": "npm:11.1.1"
"@polkadot/types-support": "npm:11.1.1"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
eventemitter3: "npm:^5.0.1"
@@ -533,34 +533,34 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev-test@npm:^0.78.9":
version: 0.78.9
resolution: "@polkadot/dev-test@npm:0.78.9"
"@polkadot/dev-test@npm:^0.79.1":
version: 0.79.1
resolution: "@polkadot/dev-test@npm:0.79.1"
dependencies:
jsdom: "npm:^24.0.0"
tslib: "npm:^2.6.2"
checksum: 10/84d70e797a2d8c5cce12db044308548151cf4289e94ec9569f3852d7cf7ea545abaa595018e4cb14f57bab6c1b050792ed2b788c8d985ae8c594ae9b964a20ac
checksum: 10/36bd5fcdf2e444cdd8054567d3d9ab6b53657df0b42e7e0e79097458172b3e60dcf13daa524874d718334d590f008813141a2752099d302c314f762ad30b4890
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.78.9":
version: 0.78.9
resolution: "@polkadot/dev-ts@npm:0.78.9"
"@polkadot/dev-ts@npm:^0.79.1":
version: 0.79.1
resolution: "@polkadot/dev-ts@npm:0.79.1"
dependencies:
json5: "npm:^2.2.3"
tslib: "npm:^2.6.2"
typescript: "npm:^5.3.3"
checksum: 10/04294e766f492e4eb0447e6516487be4643da8b70054ad925f360b8110c2549e0e55821e8ebaa9141cf7795fe1ea814fb6151a6c0d1967377704ab90974a9825
checksum: 10/027a6570d19a54328e6ebca0ffe2cf532c6faebd75702abb3531a8b53168d1f35e0259b15e41760f601a912516ff46bd522f82127a0d475fb6c88e293e5449a5
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.78.9":
version: 0.78.9
resolution: "@polkadot/dev@npm:0.78.9"
"@polkadot/dev@npm:^0.79.1":
version: 0.79.1
resolution: "@polkadot/dev@npm:0.79.1"
dependencies:
"@eslint/js": "npm:^8.56.0"
"@polkadot/dev-test": "npm:^0.78.9"
"@polkadot/dev-ts": "npm:^0.78.9"
"@polkadot/dev-test": "npm:^0.79.1"
"@polkadot/dev-ts": "npm:^0.79.1"
"@rollup/plugin-alias": "npm:^5.1.0"
"@rollup/plugin-commonjs": "npm:^25.0.7"
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.2"
@@ -625,7 +625,7 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: 10/0658fda631302a895e1fdf0a4cf60baba0fd52e78ebed4df5e3c2555ad6dd78e9982e9514ca54e8f5a0d85a6d7049c9684136012c8751ae30ec095d3fad72d00
checksum: 10/2a7bbd5da088a091c64d5e6b1e9215d0a82058702bc93bca43b2be941af0eb1de515356df9609cb179e0729dfe287dfea935e243afb71cf10cc055877c6edd6e
languageName: node
linkType: hard
@@ -654,39 +654,39 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-augment@npm:11.0.3, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@npm:11.1.1, @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.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/rpc-core": "npm:11.1.1"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/rpc-core@npm:11.0.3, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@npm:11.1.1, @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.3"
"@polkadot/rpc-provider": "npm:11.0.3"
"@polkadot/types": "npm:11.0.3"
"@polkadot/rpc-augment": "npm:11.1.1"
"@polkadot/rpc-provider": "npm:11.1.1"
"@polkadot/types": "npm:11.1.1"
"@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.3, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@npm:11.1.1, @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.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-support": "npm:11.1.1"
"@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.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/api": "npm:11.1.1"
"@polkadot/api-augment": "npm:11.1.1"
"@polkadot/rpc-augment": "npm:11.1.1"
"@polkadot/rpc-provider": "npm:11.1.1"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-augment": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/types-create": "npm:11.1.1"
"@polkadot/types-support": "npm:11.1.1"
"@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.3, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@npm:11.1.1, @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.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/types-codec@npm:11.0.3, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@npm:11.1.1, @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.3"
"@polkadot/types-augment": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-augment": "npm:11.1.1"
"@polkadot/types-support": "npm:11.1.1"
"@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.3, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@npm:11.1.1, @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.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/types-known@npm:11.0.3, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@npm:11.1.1, @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.3"
"@polkadot/api": "npm:11.1.1"
"@polkadot/networks": "npm:^12.6.2"
"@polkadot/types": "npm:11.0.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-create": "npm:11.0.3"
"@polkadot/types": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/types-create": "npm:11.1.1"
"@polkadot/util": "npm:^12.6.2"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
"@polkadot/types-support@npm:11.0.3, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@npm:11.1.1, @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.3, @polkadot/types@workspace:packages/types":
"@polkadot/types@npm:11.1.1, @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.3"
"@polkadot/types-codec": "npm:11.0.3"
"@polkadot/types-create": "npm:11.0.3"
"@polkadot/types-support": "npm:11.0.3"
"@polkadot/types-augment": "npm:11.1.1"
"@polkadot/types-codec": "npm:11.1.1"
"@polkadot/types-create": "npm:11.1.1"
"@polkadot/types-support": "npm:11.1.1"
"@polkadot/util": "npm:^12.6.2"
"@polkadot/util-crypto": "npm:^12.6.2"
rxjs: "npm:^7.8.1"
@@ -7942,7 +7942,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@polkadot/dev": "npm:^0.78.9"
"@polkadot/dev": "npm:^0.79.1"
"@polkadot/typegen": "workspace:packages/typegen"
"@types/node": "npm:^20.11.6"
languageName: unknown