Compare commits

...
8 Commits
Author SHA1 Message Date
github-actions[bot] 69c129595e [CI Skip] release/stable 9.2.2
skip-checks: true
2022-08-16 08:27:59 +00:00
Jaco 3f79415e02 9.2.2 (#5166) 2022-08-16 11:18:06 +03:00
github-actions[bot] 8747cd4682 [CI Skip] bump/beta 9.2.2-2-x
skip-checks: true
2022-08-16 07:46:53 +00:00
Jaco dd9e96c3e7 Disable version shortcuts (less performant, more robust) (#5165) 2022-08-16 10:38:51 +03:00
github-actions[bot] 1c93388de7 [CI Skip] bump/beta 9.2.2-1-x
skip-checks: true
2022-08-16 07:38:42 +00:00
Jaco 7a87034f0e Upgrades with API list (#5164)
* Add runtime APIs to known list

* First pass

* Add generated

* Rerun

* tsconfig adjustments

* Pass APIs through

* Missing package.json entry
2022-08-16 10:28:55 +03:00
github-actions[bot] 9e4db51dd7 [CI Skip] bump/beta 9.2.2-0-x
skip-checks: true
2022-08-15 07:56:55 +00:00
Jaco 5382cb60b0 Use call.transactionPaymentApi.queryInfo (#5160)
* Use call.transactionPaymentApi.queryInfo

* Asserts for availability
2022-08-15 10:48:24 +03:00
54 changed files with 472 additions and 281 deletions
+8
View File
@@ -1,5 +1,13 @@
# CHANGELOG
## 9.2.2 Aug 16, 2022
Changes:
- Replace `rpc.payment.queryInfo` usage with `call.transactionPaymentApi.queryInfo`
- Ensure that `api.call.*` is decorated on historic blocks
## 9.2.1 Aug 13, 2022
- **Important** If using `import { WellKnownChain } from '@polkadot/rpc-provider'` it is recommended that you rather use `ScProvider.WellKnownChain` (the import may be dropped in a future major version)
+1 -1
View File
@@ -1,4 +1,4 @@
3188 Jaco 9.2.1 (#5158)
3192 Jaco 9.2.2 (#5166)
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)
+5 -5
View File
@@ -11,10 +11,10 @@
},
"sideEffects": false,
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"versions": {
"git": "9.2.1",
"npm": "9.2.1"
"git": "9.2.2",
"npm": "9.2.2"
},
"workspaces": [
"packages/*"
@@ -38,9 +38,9 @@
"@babel/core": "^7.18.10",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.18.9",
"@polkadot/dev": "^0.67.94",
"@polkadot/dev": "^0.67.97",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^28.1.6",
"@types/jest": "^28.1.7",
"copyfiles": "^2.4.1"
},
"resolutions": {
+7 -7
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api-base": "9.2.1",
"@polkadot/rpc-augment": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/types-augment": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/api-base": "9.2.2",
"@polkadot/rpc-augment": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/types-augment": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/util": "^10.1.4"
},
"devDependencies": {
"@polkadot/types-support": "9.2.1"
"@polkadot/types-support": "9.2.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: '9.2.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.2.2' };
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/rpc-core": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/rpc-core": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/util": "^10.1.4",
"rxjs": "^7.5.6"
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.2.2' };
+4 -2
View File
@@ -10,7 +10,7 @@ import type { Registry, Signer } from '@polkadot/types/types';
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
export interface ApiInterfaceRx {
call: QueryableCalls<'rxjs'>,
call: QueryableCalls<'rxjs'>;
consts: QueryableConsts<'rxjs'>;
extrinsicType: number;
genesisHash?: Hash;
@@ -19,9 +19,11 @@ export interface ApiInterfaceRx {
runtimeMetadata: Metadata;
runtimeVersion: RuntimeVersion;
query: QueryableStorage<'rxjs'>;
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
queryMulti: QueryableStorageMulti<'rxjs'>;
rpc: DecoratedRpc<'rxjs', RpcInterface>;
tx: SubmittableExtrinsics<'rxjs'>;
signer?: Signer;
callAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableCalls<'rxjs'>>;
queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
}
+6 -6
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/types-create": "9.2.1",
"@polkadot/api": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/types-create": "9.2.2",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/api-augment": "9.2.1",
"@polkadot/api-augment": "9.2.2",
"@polkadot/keyring": "^10.1.4"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.2.2' };
+12 -12
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api": "9.2.1",
"@polkadot/api-augment": "9.2.1",
"@polkadot/api-base": "9.2.1",
"@polkadot/rpc-core": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/api": "9.2.2",
"@polkadot/api-augment": "9.2.2",
"@polkadot/api-base": "9.2.2",
"@polkadot/rpc-core": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/api": "9.2.1",
"@polkadot/api-augment": "9.2.1",
"@polkadot/rpc-augment": "9.2.1",
"@polkadot/rpc-provider": "9.2.1",
"@polkadot/types-support": "9.2.1"
"@polkadot/api": "9.2.2",
"@polkadot/api-augment": "9.2.2",
"@polkadot/rpc-augment": "9.2.2",
"@polkadot/rpc-provider": "9.2.2",
"@polkadot/types-support": "9.2.2"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.2.2' };
+14 -14
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api-augment": "9.2.1",
"@polkadot/api-base": "9.2.1",
"@polkadot/api-derive": "9.2.1",
"@polkadot/api-augment": "9.2.2",
"@polkadot/api-base": "9.2.2",
"@polkadot/api-derive": "9.2.2",
"@polkadot/keyring": "^10.1.4",
"@polkadot/rpc-augment": "9.2.1",
"@polkadot/rpc-core": "9.2.1",
"@polkadot/rpc-provider": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/types-augment": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/types-create": "9.2.1",
"@polkadot/types-known": "9.2.1",
"@polkadot/rpc-augment": "9.2.2",
"@polkadot/rpc-core": "9.2.2",
"@polkadot/rpc-provider": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/types-augment": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/types-create": "9.2.2",
"@polkadot/types-known": "9.2.2",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/api-augment": "9.2.1",
"@polkadot/types-support": "9.2.1"
"@polkadot/api-augment": "9.2.2",
"@polkadot/types-support": "9.2.2"
}
}
+2
View File
@@ -160,6 +160,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
this.#instanceId = `${++instanceCounter}`;
this.#registry = options.source?.registry || options.registry || new TypeRegistry();
this._rx.callAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.call));
this._rx.queryAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.query));
this._rx.registry = this.#registry;
+8 -2
View File
@@ -21,6 +21,7 @@ import { cryptoWaitReady } from '@polkadot/util-crypto';
import { Decorate } from './Decorate';
const KEEPALIVE_INTERVAL = 10000;
const WITH_VERSION_SHORTCUT = false;
const l = logger('api/init');
@@ -206,8 +207,13 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
// get the runtime version, either on-chain or via an known upgrade history
const [firstVersion, lastVersion] = getUpgradeVersion(this._genesisHash, header.number);
const version = this.registry.createType('RuntimeVersionPartial',
(firstVersion && (lastVersion || firstVersion.specVersion.eq(this._runtimeVersion.specVersion)))
? { specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion }
WITH_VERSION_SHORTCUT && (
firstVersion && (
lastVersion ||
firstVersion.specVersion.eq(this._runtimeVersion.specVersion)
)
)
? { apis: firstVersion.apis, specName: this._runtimeVersion.specName, specVersion: firstVersion.specVersion }
: await firstValueFrom(this._rpcCore.state.getRuntimeVersion.raw(header.parentHash))
);
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.2.2' };
+19 -6
View File
@@ -102,6 +102,10 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
// dry run an extrinsic
public dryRun (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittableDryRunResult<ApiType> {
if (!api.rpc.system || !api.rpc.system.dryRun) {
throw new Error('The system.dryRun RPC call is not available in your environment');
}
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return decorateMethod(
@@ -120,11 +124,21 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
// calculate the payment info for this transaction (if signed and submitted)
public paymentInfo (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittablePaymentResult<ApiType> {
if (!api.call.transactionPaymentApi || !api.call.transactionPaymentApi.queryInfo) {
throw new Error('The transactionPaymentApi.queryInfo runtime call is not available in your environment');
}
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return decorateMethod(
(): Observable<RuntimeDispatchInfo> =>
api.rpc.payment.queryInfo(this.toHex(), blockHash || optionsOrHash as string)
api.callAt(blockHash || optionsOrHash as string).pipe(
switchMap((callAt): Observable<RuntimeDispatchInfo> => {
const u8a = this.toU8a();
return callAt.transactionPaymentApi.queryInfo(u8a, u8a.length);
})
)
);
}
@@ -140,12 +154,11 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
// setup our options (same way as in signAndSend)
const eraOptions = makeEraOptions(api, this.registry, allOptions, signingInfo);
const signOptions = makeSignOptions(api, eraOptions, {});
const u8a = this.isSigned
? api.tx(this).signFake(address, signOptions).toU8a()
: this.signFake(address, signOptions).toU8a();
return api.rpc.payment.queryInfo(
this.isSigned
? api.tx(this).signFake(address, signOptions).toHex()
: this.signFake(address, signOptions).toHex()
);
return api.call.transactionPaymentApi.queryInfo(u8a, u8a.length);
})
)
)();
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/rpc-core": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/rpc-core": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/util": "^10.1.4"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.2.2' };
+5 -5
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/rpc-augment": "9.2.1",
"@polkadot/rpc-provider": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/rpc-augment": "9.2.2",
"@polkadot/rpc-provider": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/util": "^10.1.4",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.4",
"@polkadot/rpc-augment": "9.2.1"
"@polkadot/rpc-augment": "9.2.2"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.2.2' };
+3 -3
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/keyring": "^10.1.4",
"@polkadot/types": "9.2.1",
"@polkadot/types-support": "9.2.1",
"@polkadot/types": "9.2.2",
"@polkadot/types-support": "9.2.2",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/x-fetch": "^10.1.4",
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.2.2' };
+10 -10
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -33,15 +33,15 @@
"@babel/core": "^7.18.10",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.18.9",
"@polkadot/api": "9.2.1",
"@polkadot/api-augment": "9.2.1",
"@polkadot/rpc-augment": "9.2.1",
"@polkadot/rpc-provider": "9.2.1",
"@polkadot/types": "9.2.1",
"@polkadot/types-augment": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/types-create": "9.2.1",
"@polkadot/types-support": "9.2.1",
"@polkadot/api": "9.2.2",
"@polkadot/api-augment": "9.2.2",
"@polkadot/rpc-augment": "9.2.2",
"@polkadot/rpc-provider": "9.2.2",
"@polkadot/types": "9.2.2",
"@polkadot/types-augment": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/types-create": "9.2.2",
"@polkadot/types-support": "9.2.2",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"@polkadot/x-ws": "^10.1.4",
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.2.2' };
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/types": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/types": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/util": "^10.1.4"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.2.2' };
+4 -4
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
@@ -28,9 +28,9 @@
"@polkadot/x-bigint": "^10.1.4"
},
"devDependencies": {
"@polkadot/types": "9.2.1",
"@polkadot/types-augment": "9.2.1",
"@polkadot/types-support": "9.2.1",
"@polkadot/types": "9.2.2",
"@polkadot/types-augment": "9.2.2",
"@polkadot/types-support": "9.2.2",
"@polkadot/util-crypto": "^10.1.4"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.2.2' };
+3 -3
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/types-codec": "9.2.1",
"@polkadot/types-codec": "9.2.2",
"@polkadot/util": "^10.1.4"
},
"devDependencies": {
"@polkadot/types": "9.2.1"
"@polkadot/types": "9.2.2"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.2.2' };
+7 -4
View File
@@ -20,14 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/networks": "^10.1.4",
"@polkadot/types": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/types-create": "9.2.1",
"@polkadot/types": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/types-create": "9.2.2",
"@polkadot/util": "^10.1.4"
},
"devDependencies": {
"@polkadot/api": "9.2.2"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.2.2' };
@@ -0,0 +1,59 @@
// Copyright 2017-2022 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
import type { ChainUpgradesGenerated } from '../types';
import fs from 'fs';
import { ApiPromise, WsProvider } from '@polkadot/api';
import * as allMan from '../manual';
import * as allGen from '.';
const keys = <const> ['kusama', 'polkadot', 'westend'];
const urls = {
kusama: 'wss://kusama-rpc.polkadot.io',
polkadot: 'wss://rpc.polkadot.io',
westend: 'wss://westend-rpc.polkadot.io'
};
describe.each(keys)('generate %s', (chain): void => {
const avail = allGen[chain];
const final: ChainUpgradesGenerated = [];
let api: ApiPromise;
beforeAll(async (): Promise<void> => {
api = await ApiPromise.create({ provider: new WsProvider(urls[chain]) });
});
afterAll(async (): Promise<void> => {
fs.writeFileSync(`packages/types-known/src/upgrades/e2e/${chain}.ts`, `// Copyright 2017-${new Date().getFullYear()} @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated from on-chain data & manual definitions, do not edit
/* eslint-disable quotes, comma-spacing */
import type { ChainUpgradesGenerated } from '../types';
const upgrades: ChainUpgradesGenerated = ${JSON.stringify(final)};
export default upgrades;
`);
await api.disconnect();
});
it.each(allMan[chain])('%s', async (blockNumber, specVersion): Promise<void> => {
const found = avail.find(([n, s]) => n === blockNumber && s === specVersion);
if (found) {
final.push(found);
} else {
const blockHash = await api.rpc.chain.getBlockHash(blockNumber + 1);
const runtime = await api.rpc.state.getRuntimeVersion(blockHash);
const apis = runtime.apis.map(([api, version]): [HexString, number] => [api.toHex(), version.toNumber()]);
final.push([blockNumber, specVersion, apis]);
}
});
});
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { default as kusama } from './kusama';
export { default as polkadot } from './polkadot';
export { default as westend } from './westend';
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -3,6 +3,8 @@
import { u8aEq } from '@polkadot/util';
import * as allGen from './e2e';
import * as allMan from './manual';
import all from '.';
interface TestDef {
@@ -38,6 +40,27 @@ const TESTS: TestDef[] = [
}
];
describe('generated', (): void => {
it('should have all the chains', (): void => {
expect(Object.keys(allMan).sort()).toEqual(Object.keys(allGen).sort());
});
describe.each(Object.keys(allMan))('%s', (chain): void => {
it('should have all generated', (): void => {
const missing = allMan[chain as keyof typeof allMan].filter(([na, sa]) =>
!allGen[chain as keyof typeof allGen].some(([nb, sb]) =>
nb === na &&
sb === sa
)
);
if (missing.length !== 0) {
throw new Error(`${chain}:: missing generated apis found, run yarn test:one packages/types-known/src/upgrades/e2e`);
}
});
});
});
describe('upgrades', (): void => {
TESTS.forEach(({ genesisHash, network, versions }): void => {
describe(network, (): void => {
+7 -10
View File
@@ -2,16 +2,12 @@
// SPDX-License-Identifier: Apache-2.0
import type { ChainUpgrades } from '@polkadot/types/types';
import type { ChainUpgradesRaw } from './types';
import type { ChainUpgradesGenerated } from './types';
import { selectableNetworks } from '@polkadot/networks';
import { BN, hexToU8a, stringify } from '@polkadot/util';
import kusama from './kusama';
import polkadot from './polkadot';
import westend from './westend';
const allKnown = { kusama, polkadot, westend };
import * as allKnown from './e2e';
// testnets are not available in the networks map
const NET_EXTRA: Record<string, { genesisHash: string[] }> = {
@@ -21,7 +17,7 @@ const NET_EXTRA: Record<string, { genesisHash: string[] }> = {
};
/** @internal */
function checkOrder (network: string, versions: ChainUpgradesRaw): [number, number][] {
function checkOrder (network: string, versions: ChainUpgradesGenerated): ChainUpgradesGenerated {
const ooo = versions.filter((curr, index): boolean => {
const prev = versions[index - 1];
@@ -38,7 +34,7 @@ function checkOrder (network: string, versions: ChainUpgradesRaw): [number, numb
}
/** @internal */
function mapRaw ([network, versions]: [string, ChainUpgradesRaw]): ChainUpgrades {
function mapRaw ([network, versions]: [string, ChainUpgradesGenerated]): ChainUpgrades {
const chain = selectableNetworks.find((n) => n.network === network) || NET_EXTRA[network];
if (!chain) {
@@ -48,7 +44,8 @@ function mapRaw ([network, versions]: [string, ChainUpgradesRaw]): ChainUpgrades
return {
genesisHash: hexToU8a(chain.genesisHash[0]),
network,
versions: checkOrder(network, versions).map(([blockNumber, specVersion]) => ({
versions: checkOrder(network, versions).map(([blockNumber, specVersion, apis]) => ({
apis,
blockNumber: new BN(blockNumber),
specVersion: new BN(specVersion)
}))
@@ -56,6 +53,6 @@ function mapRaw ([network, versions]: [string, ChainUpgradesRaw]): ChainUpgrades
}
// Type overrides for specific spec types & versions as given in runtimeVersion
const upgrades = Object.entries(allKnown).map(mapRaw);
const upgrades = Object.entries<ChainUpgradesGenerated>(allKnown).map(mapRaw);
export default upgrades;
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { default as kusama } from './kusama';
export { default as polkadot } from './polkadot';
export { default as westend } from './westend';
@@ -1,9 +1,9 @@
// Copyright 2017-2022 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ChainUpgradesRaw } from './types';
import type { ChainUpgradesManual } from '../types';
const upgrades: ChainUpgradesRaw = [
const upgrades: ChainUpgradesManual = [
[0, 1020], [26669, 1021], [38245, 1022], [54248, 1023], [59659, 1024],
[67651, 1025], [82191, 1027], [83238, 1028], [101503, 1029], [203466, 1030],
[295787, 1031], [461692, 1032], [504329, 1033], [569327, 1038], [587687, 1039],
@@ -1,9 +1,9 @@
// Copyright 2017-2022 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ChainUpgradesRaw } from './types';
import type { ChainUpgradesManual } from '../types';
const upgrades: ChainUpgradesRaw = [
const upgrades: ChainUpgradesManual = [
[0, 0], [29231, 1], [188836, 5], [199405, 6], [214264, 7],
[244358, 8], [303079, 9], [314201, 10], [342400, 11], [443963, 12],
[528470, 13], [687751, 14], [746085, 15], [787923, 16], [799302, 17],
@@ -1,9 +1,9 @@
// Copyright 2017-2022 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ChainUpgradesRaw } from './types';
import type { ChainUpgradesManual } from '../types';
const upgrades: ChainUpgradesRaw = [
const upgrades: ChainUpgradesManual = [
[214356, 4], [392764, 7], [409740, 8], [809976, 20], [877581, 24],
[879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
[1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
@@ -1,4 +1,10 @@
// Copyright 2017-2022 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
export type ChainUpgradesRaw = [number, number][];
export type ChainUpgradesGenerated = [number, number, [HexString, number][]][];
export type ChainUpgradesManual = [number, number][];
+3
View File
@@ -5,6 +5,9 @@
"outDir": "./build",
"rootDir": "./src"
},
"exclude": [
"**/*.spec.ts"
],
"references": [
{ "path": "../types/tsconfig.build.json" },
{ "path": "../types-codec/tsconfig.build.json" },
+20
View File
@@ -0,0 +1,20 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src",
"emitDeclarationOnly": false,
"resolveJsonModule": true,
"noEmit": true
},
"include": [
"**/*.spec.ts"
],
"references": [
{ "path": "../api/tsconfig.build.json" },
{ "path": "../types/tsconfig.build.json" },
{ "path": "../types-codec/tsconfig.build.json" },
{ "path": "../types-create/tsconfig.build.json" }
]
}
+1 -1
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.2.2' };
+5 -5
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.2.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/keyring": "^10.1.4",
"@polkadot/types-augment": "9.2.1",
"@polkadot/types-codec": "9.2.1",
"@polkadot/types-create": "9.2.1",
"@polkadot/types-augment": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/types-create": "9.2.2",
"@polkadot/util": "^10.1.4",
"@polkadot/util-crypto": "^10.1.4",
"rxjs": "^7.5.6"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.4",
"@polkadot/types-support": "9.2.1"
"@polkadot/types-support": "9.2.2"
}
}
+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: '9.2.1' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.2.2' };
+2
View File
@@ -5,6 +5,7 @@ import type { Observable } from 'rxjs';
import type { BitVec, Bool, bool, Bytes, F32, f32, F64, f64, I8, i8, I16, i16, I32, i32, I64, i64, I128, i128, I256, i256, Json, Null, OptionBool, Raw, Text, Type, U8, u8, U16, u16, U32, u32, U64, u64, U128, u128, U256, u256, USize, usize } from '@polkadot/types-codec';
import type { RegistryTypes } from '@polkadot/types-codec/types';
import type { BN } from '@polkadot/util';
import type { HexString } from '@polkadot/util/types';
import type { GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericSignerPayload } from '../extrinsic';
import type { ExtDef } from '../extrinsic/signedExtensions/types';
import type { GenericCall } from '../generic';
@@ -38,6 +39,7 @@ export interface InterfaceTypes {
export type CodecHasher = (data: Uint8Array) => Uint8Array;
export interface ChainUpgradeVersion {
apis: [HexString, number][];
blockNumber: BN;
specVersion: BN;
}
+1
View File
@@ -29,6 +29,7 @@
{ "path": "./packages/types-create/tsconfig.build.json" },
{ "path": "./packages/types-create/tsconfig.spec.json" },
{ "path": "./packages/types-known/tsconfig.build.json" },
{ "path": "./packages/types-known/tsconfig.spec.json" },
{ "path": "./packages/types-support/tsconfig.build.json" }
]
}
+151 -150
View File
@@ -1968,28 +1968,28 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@9.2.1, @polkadot/api-augment@workspace:packages/api-augment":
"@polkadot/api-augment@9.2.2, @polkadot/api-augment@workspace:packages/api-augment":
version: 0.0.0-use.local
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/api-base": 9.2.1
"@polkadot/rpc-augment": 9.2.1
"@polkadot/types": 9.2.1
"@polkadot/types-augment": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types-support": 9.2.1
"@polkadot/api-base": 9.2.2
"@polkadot/rpc-augment": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/types-augment": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/types-support": 9.2.2
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/api-base@9.2.1, @polkadot/api-base@workspace:packages/api-base":
"@polkadot/api-base@9.2.2, @polkadot/api-base@workspace:packages/api-base":
version: 0.0.0-use.local
resolution: "@polkadot/api-base@workspace:packages/api-base"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/rpc-core": 9.2.1
"@polkadot/types": 9.2.1
"@polkadot/rpc-core": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/util": ^10.1.4
rxjs: ^7.5.6
languageName: unknown
@@ -2000,56 +2000,56 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/api": 9.2.1
"@polkadot/api-augment": 9.2.1
"@polkadot/api": 9.2.2
"@polkadot/api-augment": 9.2.2
"@polkadot/keyring": ^10.1.4
"@polkadot/types": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types-create": 9.2.1
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/types-create": 9.2.2
"@polkadot/util": ^10.1.4
"@polkadot/util-crypto": ^10.1.4
rxjs: ^7.5.6
languageName: unknown
linkType: soft
"@polkadot/api-derive@9.2.1, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@9.2.2, @polkadot/api-derive@workspace:packages/api-derive":
version: 0.0.0-use.local
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/api": 9.2.1
"@polkadot/api-augment": 9.2.1
"@polkadot/api-base": 9.2.1
"@polkadot/rpc-augment": 9.2.1
"@polkadot/rpc-core": 9.2.1
"@polkadot/rpc-provider": 9.2.1
"@polkadot/types": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types-support": 9.2.1
"@polkadot/api": 9.2.2
"@polkadot/api-augment": 9.2.2
"@polkadot/api-base": 9.2.2
"@polkadot/rpc-augment": 9.2.2
"@polkadot/rpc-core": 9.2.2
"@polkadot/rpc-provider": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/types-support": 9.2.2
"@polkadot/util": ^10.1.4
"@polkadot/util-crypto": ^10.1.4
rxjs: ^7.5.6
languageName: unknown
linkType: soft
"@polkadot/api@9.2.1, @polkadot/api@workspace:packages/api":
"@polkadot/api@9.2.2, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/api-augment": 9.2.1
"@polkadot/api-base": 9.2.1
"@polkadot/api-derive": 9.2.1
"@polkadot/api-augment": 9.2.2
"@polkadot/api-base": 9.2.2
"@polkadot/api-derive": 9.2.2
"@polkadot/keyring": ^10.1.4
"@polkadot/rpc-augment": 9.2.1
"@polkadot/rpc-core": 9.2.1
"@polkadot/rpc-provider": 9.2.1
"@polkadot/types": 9.2.1
"@polkadot/types-augment": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types-create": 9.2.1
"@polkadot/types-known": 9.2.1
"@polkadot/types-support": 9.2.1
"@polkadot/rpc-augment": 9.2.2
"@polkadot/rpc-core": 9.2.2
"@polkadot/rpc-provider": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/types-augment": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/types-create": 9.2.2
"@polkadot/types-known": 9.2.2
"@polkadot/types-support": 9.2.2
"@polkadot/util": ^10.1.4
"@polkadot/util-crypto": ^10.1.4
eventemitter3: ^4.0.7
@@ -2057,9 +2057,9 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.67.94":
version: 0.67.94
resolution: "@polkadot/dev@npm:0.67.94"
"@polkadot/dev@npm:^0.67.97":
version: 0.67.97
resolution: "@polkadot/dev@npm:0.67.97"
dependencies:
"@babel/cli": ^7.18.10
"@babel/core": ^7.18.10
@@ -2084,8 +2084,8 @@ __metadata:
"@rollup/plugin-json": ^4.1.0
"@rollup/plugin-node-resolve": ^13.3.0
"@rushstack/eslint-patch": ^1.1.4
"@typescript-eslint/eslint-plugin": 5.33.0
"@typescript-eslint/parser": 5.33.0
"@typescript-eslint/eslint-plugin": 5.33.1
"@typescript-eslint/parser": 5.33.1
"@vue/component-compiler-utils": ^3.3.0
babel-jest: ^28.1.3
babel-plugin-module-extension-resolver: ^1.0.0-rc.2
@@ -2093,7 +2093,7 @@ __metadata:
babel-plugin-styled-components: ^2.0.7
browserslist: ^4.21.3
coveralls: ^3.1.1
eslint: ^8.21.0
eslint: ^8.22.0
eslint-config-standard: ^17.0.0
eslint-import-resolver-node: ^0.3.6
eslint-plugin-header: ^3.1.1
@@ -2121,7 +2121,7 @@ __metadata:
mkdirp: ^1.0.4
prettier: ^2.7.1
rimraf: ^3.0.2
rollup: ^2.77.3
rollup: ^2.78.0
rollup-plugin-cleanup: ^3.2.1
typescript: ^4.7.4
yargs: ^17.5.1
@@ -2148,7 +2148,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: 4717b6be51688cbed1c39cc25a4a8d27d94c8beef3b104cf6b7cb06ab70ac6c13cc36efda7a1679f6e2c38f3813130ba4151eb82b04a98d65b12dbe2a8337b54
checksum: 36d915193e572ec5488db48a8dbe478e111338b4fc751ab9b61476660a3a37aea82e54d7a254d69a19dd33a6b8915331367c25c815f1eb32b34434645559e10f
languageName: node
linkType: hard
@@ -2177,40 +2177,40 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/rpc-augment@9.2.1, @polkadot/rpc-augment@workspace:packages/rpc-augment":
"@polkadot/rpc-augment@9.2.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/rpc-core": 9.2.1
"@polkadot/types": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/rpc-core": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/rpc-core@9.2.1, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@9.2.2, @polkadot/rpc-core@workspace:packages/rpc-core":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/keyring": ^10.1.4
"@polkadot/rpc-augment": 9.2.1
"@polkadot/rpc-provider": 9.2.1
"@polkadot/types": 9.2.1
"@polkadot/rpc-augment": 9.2.2
"@polkadot/rpc-provider": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/util": ^10.1.4
rxjs: ^7.5.6
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@9.2.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@9.2.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
version: 0.0.0-use.local
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/keyring": ^10.1.4
"@polkadot/types": 9.2.1
"@polkadot/types-support": 9.2.1
"@polkadot/types": 9.2.2
"@polkadot/types-support": 9.2.2
"@polkadot/util": ^10.1.4
"@polkadot/util-crypto": ^10.1.4
"@polkadot/x-fetch": ^10.1.4
@@ -2230,15 +2230,15 @@ __metadata:
"@babel/core": ^7.18.10
"@babel/register": ^7.18.9
"@babel/runtime": ^7.18.9
"@polkadot/api": 9.2.1
"@polkadot/api-augment": 9.2.1
"@polkadot/rpc-augment": 9.2.1
"@polkadot/rpc-provider": 9.2.1
"@polkadot/types": 9.2.1
"@polkadot/types-augment": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types-create": 9.2.1
"@polkadot/types-support": 9.2.1
"@polkadot/api": 9.2.2
"@polkadot/api-augment": 9.2.2
"@polkadot/rpc-augment": 9.2.2
"@polkadot/rpc-provider": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/types-augment": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/types-create": 9.2.2
"@polkadot/types-support": 9.2.2
"@polkadot/util": ^10.1.4
"@polkadot/util-crypto": ^10.1.4
"@polkadot/x-ws": ^10.1.4
@@ -2256,56 +2256,57 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@9.2.1, @polkadot/types-augment@workspace:packages/types-augment":
"@polkadot/types-augment@9.2.2, @polkadot/types-augment@workspace:packages/types-augment":
version: 0.0.0-use.local
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/types": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/types-codec@9.2.1, @polkadot/types-codec@workspace:packages/types-codec":
"@polkadot/types-codec@9.2.2, @polkadot/types-codec@workspace:packages/types-codec":
version: 0.0.0-use.local
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/types": 9.2.1
"@polkadot/types-augment": 9.2.1
"@polkadot/types-support": 9.2.1
"@polkadot/types": 9.2.2
"@polkadot/types-augment": 9.2.2
"@polkadot/types-support": 9.2.2
"@polkadot/util": ^10.1.4
"@polkadot/util-crypto": ^10.1.4
"@polkadot/x-bigint": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/types-create@9.2.1, @polkadot/types-create@workspace:packages/types-create":
"@polkadot/types-create@9.2.2, @polkadot/types-create@workspace:packages/types-create":
version: 0.0.0-use.local
resolution: "@polkadot/types-create@workspace:packages/types-create"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/types": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/types-known@9.2.1, @polkadot/types-known@workspace:packages/types-known":
"@polkadot/types-known@9.2.2, @polkadot/types-known@workspace:packages/types-known":
version: 0.0.0-use.local
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/api": 9.2.2
"@polkadot/networks": ^10.1.4
"@polkadot/types": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types-create": 9.2.1
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/types-create": 9.2.2
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/types-support@9.2.1, @polkadot/types-support@workspace:packages/types-support":
"@polkadot/types-support@9.2.2, @polkadot/types-support@workspace:packages/types-support":
version: 0.0.0-use.local
resolution: "@polkadot/types-support@workspace:packages/types-support"
dependencies:
@@ -2314,16 +2315,16 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types@9.2.1, @polkadot/types@workspace:packages/types":
"@polkadot/types@9.2.2, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/keyring": ^10.1.4
"@polkadot/types-augment": 9.2.1
"@polkadot/types-codec": 9.2.1
"@polkadot/types-create": 9.2.1
"@polkadot/types-support": 9.2.1
"@polkadot/types-augment": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/types-create": 9.2.2
"@polkadot/types-support": 9.2.2
"@polkadot/util": ^10.1.4
"@polkadot/util-crypto": ^10.1.4
rxjs: ^7.5.6
@@ -2793,13 +2794,13 @@ __metadata:
languageName: node
linkType: hard
"@types/jest@npm:^28.1.6":
version: 28.1.6
resolution: "@types/jest@npm:28.1.6"
"@types/jest@npm:^28.1.7":
version: 28.1.7
resolution: "@types/jest@npm:28.1.7"
dependencies:
jest-matcher-utils: ^28.0.0
expect: ^28.0.0
pretty-format: ^28.0.0
checksum: f2ba5fbefc8f44d1c16ee19d8d2811bca75754a2846e222287f2788d96062801c568215e6b81eb532a48e8cb2a7282729da1d4f6fb496831da8269c5abaad4c5
checksum: 17c9bf9667cd4f062eba5aa9eaea248927bf6479da1cc009e0b7d26d501f460f068dd23eddb67d2602264e915a30b63ae7c9cbb516723ffd18589f6f9d267d43
languageName: node
linkType: hard
@@ -2925,13 +2926,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.33.0"
"@typescript-eslint/eslint-plugin@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/eslint-plugin@npm:5.33.1"
dependencies:
"@typescript-eslint/scope-manager": 5.33.0
"@typescript-eslint/type-utils": 5.33.0
"@typescript-eslint/utils": 5.33.0
"@typescript-eslint/scope-manager": 5.33.1
"@typescript-eslint/type-utils": 5.33.1
"@typescript-eslint/utils": 5.33.1
debug: ^4.3.4
functional-red-black-tree: ^1.0.1
ignore: ^5.2.0
@@ -2944,42 +2945,42 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: d408f3f474b34fefde8ee65d98deb126949fd7d8e211a7f95c5cc2b507dedbf8eb239f3895e0c37aa6338989531e37c5f35c2e0de36a126c52f0846e89605487
checksum: d9b6b038f70e4959ad211c84f50a38de2d00b54f0636ad76eea414fb070fa616933690da80de6668e62c8fbbeb227086322001b7d7ad1924421a232547c97936
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/parser@npm:5.33.0"
"@typescript-eslint/parser@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/parser@npm:5.33.1"
dependencies:
"@typescript-eslint/scope-manager": 5.33.0
"@typescript-eslint/types": 5.33.0
"@typescript-eslint/typescript-estree": 5.33.0
"@typescript-eslint/scope-manager": 5.33.1
"@typescript-eslint/types": 5.33.1
"@typescript-eslint/typescript-estree": 5.33.1
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 2617aba987a70ee6b16ecc6afa6d245422df33a9d056018ff2e316159e667a0ab9d9c15fcea95e0ba65832661e71cc2753a221e77f0b0fab278e52c4497b8278
checksum: fb3a4e000ce6d9583656fc3b3fb80f127a0ec1b7c3872ea469164516d993a588859ded4ec1338e6bbf2151168380d8aa29ec31027af23b50f5107949f8e7b438
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/scope-manager@npm:5.33.0"
"@typescript-eslint/scope-manager@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/scope-manager@npm:5.33.1"
dependencies:
"@typescript-eslint/types": 5.33.0
"@typescript-eslint/visitor-keys": 5.33.0
checksum: b2cbea9abd528d01a5acb2d68a2a5be51ec6827760d3869bdd70920cf6c3a4f9f96d87c77177f8313009d9db71253e4a75f8393f38651e2abaf91ef28e60fb9d
"@typescript-eslint/types": 5.33.1
"@typescript-eslint/visitor-keys": 5.33.1
checksum: b9918d8320ea59081d19070ce952b56984e72fb2c113215e5e6a0f97deac9aae5aa67ec7a07cddb010c0f75cdf8df096ab45e9241e4b7b611acfa6d4cdfb6516
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/type-utils@npm:5.33.0"
"@typescript-eslint/type-utils@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/type-utils@npm:5.33.1"
dependencies:
"@typescript-eslint/utils": 5.33.0
"@typescript-eslint/utils": 5.33.1
debug: ^4.3.4
tsutils: ^3.21.0
peerDependencies:
@@ -2987,7 +2988,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: a1d1ffb42fe96bfc2339cc2875e218aa82fa9391be04c1a266bb11da1eca6835555687e81cde75477c60e6702049cd4dde7d2638e7e9b9d8cf4b7b2242353a6e
checksum: ddf88835bc87b3ad946aaeb29b770a49a8e1c3c5e294ee9cb93b1936f432a1016efb97803f197eea1be61545cbc79b5526cc05e9339ca9beada22fc83801ddea
languageName: node
linkType: hard
@@ -2998,19 +2999,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/types@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/types@npm:5.33.0"
checksum: 8bbddda84cb3adf5c659b0d42547a2d6ab87f4eea574aca5dd63a3bd85169f32796ecbddad3b27f18a609070f6b1d18a54018d488bad746ae0f6ea5c02206109
"@typescript-eslint/types@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/types@npm:5.33.1"
checksum: 122891bd4ab4b930b1d33f3ce43a010825c1e61b9879520a0f3dc34cf92df71e2a873410845ab8d746333511c455c115eaafdec149298a161cef713829dfdb77
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/typescript-estree@npm:5.33.0"
"@typescript-eslint/typescript-estree@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/typescript-estree@npm:5.33.1"
dependencies:
"@typescript-eslint/types": 5.33.0
"@typescript-eslint/visitor-keys": 5.33.0
"@typescript-eslint/types": 5.33.1
"@typescript-eslint/visitor-keys": 5.33.1
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
@@ -3019,7 +3020,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 26f9005cdfb14654125a33d90d872b926820e560dff8970c4629fd5f6f47ad2a31e4c63161564d21bb42a8fc3ced0033994854ee37336ae07d90ccf6300d702b
checksum: 1418e409b141c2f012bc2dd5c40d95dfd8aa572dd3e9523ed23e4371e4459d10ecd074fda75dc770ce980686b25ffc44725eebf165c494818ed4131d1ac0239f
languageName: node
linkType: hard
@@ -3041,19 +3042,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/utils@npm:5.33.0"
"@typescript-eslint/utils@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/utils@npm:5.33.1"
dependencies:
"@types/json-schema": ^7.0.9
"@typescript-eslint/scope-manager": 5.33.0
"@typescript-eslint/types": 5.33.0
"@typescript-eslint/typescript-estree": 5.33.0
"@typescript-eslint/scope-manager": 5.33.1
"@typescript-eslint/types": 5.33.1
"@typescript-eslint/typescript-estree": 5.33.1
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 6ce5ee5eabeb6d73538b24e6487f811ecb0ef3467bd366cbd15bf30d904bdedb73fc6f48cf2e2e742dda462b42999ea505e8b59255545825ec9db86f3d423ea7
checksum: c550504d62fc72f29bf3d7a651bd3a81f49fb1fccaf47583721c2ab1abd2ef78a1e4bc392cb4be4a61a45a4f24fc14a59d67b98aac8a16a207a7cace86538cab
languageName: node
linkType: hard
@@ -3067,13 +3068,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:5.33.0":
version: 5.33.0
resolution: "@typescript-eslint/visitor-keys@npm:5.33.0"
"@typescript-eslint/visitor-keys@npm:5.33.1":
version: 5.33.1
resolution: "@typescript-eslint/visitor-keys@npm:5.33.1"
dependencies:
"@typescript-eslint/types": 5.33.0
"@typescript-eslint/types": 5.33.1
eslint-visitor-keys: ^3.3.0
checksum: d7e3653de6bac6841e6fcc54226b93ad6bdca4aa76ebe7d83459c016c3eebcc50d4f65ee713174bc267d765295b642d1927a778c5de707b8389e3fcc052aa4a1
checksum: 0d32a433450f61e97b5fa6b1e167f06ed395c200b16b4dbd4490a1c4941de420689b622f8a2486f5398806fb24f57b9fab901b4cbc8fdb8853f568264b3a182a
languageName: node
linkType: hard
@@ -5099,9 +5100,9 @@ __metadata:
languageName: node
linkType: hard
"eslint@npm:^8.21.0":
version: 8.21.0
resolution: "eslint@npm:8.21.0"
"eslint@npm:^8.22.0":
version: 8.22.0
resolution: "eslint@npm:8.22.0"
dependencies:
"@eslint/eslintrc": ^1.3.0
"@humanwhocodes/config-array": ^0.10.4
@@ -5144,7 +5145,7 @@ __metadata:
v8-compile-cache: ^2.0.3
bin:
eslint: bin/eslint.js
checksum: 1d39ddb08772ea230cb7d74f7f81f85b9d46965d3600725c7eb39a27bcdaf28cb2a780dacf6cfa1cfbf2da606b57a5e7e3ab373ab474cbcf0ba042076821f501
checksum: 2d84a7a2207138cdb250759b047fdb05a57fede7f87b7a039d9370edba7f26e23a873a208becfd4b2c9e4b5499029f3fc3b9318da3290e693d25c39084119c80
languageName: node
linkType: hard
@@ -5260,7 +5261,7 @@ __metadata:
languageName: node
linkType: hard
"expect@npm:^28.1.3":
"expect@npm:^28.0.0, expect@npm:^28.1.3":
version: 28.1.3
resolution: "expect@npm:28.1.3"
dependencies:
@@ -7014,7 +7015,7 @@ fsevents@~2.1.2:
languageName: node
linkType: hard
"jest-matcher-utils@npm:^28.0.0, jest-matcher-utils@npm:^28.1.3":
"jest-matcher-utils@npm:^28.1.3":
version: 28.1.3
resolution: "jest-matcher-utils@npm:28.1.3"
dependencies:
@@ -9271,9 +9272,9 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"rollup@npm:^2.77.3":
version: 2.77.3
resolution: "rollup@npm:2.77.3"
"rollup@npm:^2.78.0":
version: 2.78.0
resolution: "rollup@npm:2.78.0"
dependencies:
fsevents: ~2.3.2
dependenciesMeta:
@@ -9281,7 +9282,7 @@ resolve@^2.0.0-next.3:
optional: true
bin:
rollup: dist/bin/rollup
checksum: b179c68249584565ddb5664a241e8e48c293b2207718d885b08ee25797d98857a383f06b544bb89819407da5a71557f4713309a278f61c4778bb32b1d3321a1c
checksum: 01b5a7ae082d2a14201c973ee973099f0899cc87b65063d5ca5a77c05eeefb3b51e14b1346cf1a0fc879ac2cbb87239d4f960917bfc30b7c52f5dce50a7f56e7
languageName: node
linkType: hard
@@ -9292,9 +9293,9 @@ resolve@^2.0.0-next.3:
"@babel/core": ^7.18.10
"@babel/register": ^7.18.9
"@babel/runtime": ^7.18.9
"@polkadot/dev": ^0.67.94
"@polkadot/dev": ^0.67.97
"@polkadot/typegen": "workspace:packages/typegen"
"@types/jest": ^28.1.6
"@types/jest": ^28.1.7
copyfiles: ^2.4.1
languageName: unknown
linkType: soft