Compare commits

...
29 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
github-actions[bot] d6b2760de5 [CI Skip] release/stable 9.2.1
skip-checks: true
2022-08-13 07:47:29 +00:00
Jaco 2ee89b8c72 9.2.1 (#5158) 2022-08-13 10:39:36 +03:00
github-actions[bot] 802da709f0 [CI Skip] bump/beta 9.1.2-8-x
skip-checks: true
2022-08-13 07:19:23 +00:00
Jaco 836346909f Adjust definitions check test (ensure failures via raw) (#5157)
* Adjust definitions check test (ensure failures via raw)

* Adjust

* Chain error path
2022-08-13 10:10:51 +03:00
Jaco 8ec5c2abc3 Adjust ietartion argument check (#5156) 2022-08-13 10:03:25 +03:00
github-actions[bot] cc953efd58 [CI Skip] bump/beta 9.1.2-7-x
skip-checks: true
2022-08-13 06:51:13 +00:00
Jaco 857b9cbaea Bump metadata & Webstend 9271 (#5155) 2022-08-13 09:42:28 +03:00
github-actions[bot] 4551093fe7 [CI Skip] bump/beta 9.1.2-6-x
skip-checks: true
2022-08-12 12:27:35 +00:00
Jaco 69afe1a203 Add definitions type check (#5153)
* Add definitions type check

* RPC tests, types tests & adjustments

* Rebuild

* Run runtime & rpc checks
2022-08-12 15:20:05 +03:00
github-actions[bot] f5600afa31 [CI Skip] bump/beta 9.1.2-5-x
skip-checks: true
2022-08-12 09:34:50 +00:00
Jaco 3f0a471484 Bump deps (#5152)
* Bump deps

* BN import map
2022-08-12 12:27:01 +03:00
github-actions[bot] bc0e2cfc14 [CI Skip] bump/beta 9.1.2-4-x
skip-checks: true
2022-08-11 19:18:33 +00:00
Jaco 3e9d2d6b8f Bump dev & re-export ScProvider (#5150)
* Bump dev & re-export ScProvider

* CHANGELOG

* Expose WellKnownChain on ScProvider

* Adjust ScProvider method formatting

* Adjust CHANGELOG
2022-08-11 22:10:45 +03:00
github-actions[bot] 3b48825fe6 [CI Skip] bump/beta 9.1.2-3-x
skip-checks: true
2022-08-10 11:58:08 +00:00
Jaco 5e4e5cbaa7 Additional contracts tests (#5147) 2022-08-10 14:50:27 +03:00
github-actions[bot] 255b8047b7 [CI Skip] bump/beta 9.1.2-2-x
skip-checks: true
2022-08-10 08:31:49 +00:00
Jaco 87edaa5bed Add Polkadot 9260 upgrade block (#5145) 2022-08-10 11:23:35 +03:00
github-actions[bot] 8a58f018a7 [CI Skip] bump/beta 9.1.2-1-x
skip-checks: true
2022-08-09 09:32:27 +00:00
Jaco e39be09c97 Don't assume fully-specified variant/composite paths (#5143)
* Don't assume fully-specified variant/composite paths

* CHANGELOG
2022-08-09 12:24:27 +03:00
github-actions[bot] 007b4aa6c1 [CI Skip] bump/beta 9.1.2-0-x
skip-checks: true
2022-08-07 09:01:43 +00:00
Jaco cc2a4dbfdd Bump dev (#5141) 2022-08-07 11:54:16 +03:00
78 changed files with 4397 additions and 3348 deletions
-1
View File
@@ -17,7 +17,6 @@ jobs:
deno-version: vx.x.x
- name: ${{ matrix.step }}
if: always()
continue-on-error: true
run: |
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
+25
View File
@@ -1,5 +1,30 @@
# 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)
Changes:
- Don't assume non-empty path specifiers on portable variant/composites
- Explicit param length checks for all generic portable overrides
- Re-export `ScProvider` in `@polkadot/api`, aligning with `{Http, Ws}Provider`
- Expose `WellKnownChain` as static on `ScProvider.WellKnownChain`
- Checks for non-available interface types & runtime/rpc definitions
- Ensure `.entries/.keys` arguments is less than map-entry query
- Add Polkadot 9260 upgrade block
- Add Westend 9271 upgrade block
- Update to latest Substrate metadata
## 9.1.1 Aug 6, 2022
Contributed:
+1 -1
View File
@@ -1,4 +1,4 @@
3177 Jaco 9.1.1 (#5139)
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
View File
@@ -0,0 +1,5 @@
{
"imports": {
"https://esm.sh/v90/@types/bn.js@~5.2/index.d.ts": "https://esm.sh/v90/@types/bn.js@5.1.0/index.d.ts"
}
}
+6 -5
View File
@@ -11,10 +11,10 @@
},
"sideEffects": false,
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"versions": {
"git": "9.1.1",
"npm": "9.1.1"
"git": "9.2.2",
"npm": "9.2.2"
},
"workspaces": [
"packages/*"
@@ -23,6 +23,7 @@
"build": "yarn build:interfaces && polkadot-dev-build-ts",
"build:extra": "(cd packages/typegen && copyfiles scripts/* build)",
"build:interfaces": "polkadot-types-internal-interfaces",
"build:metadata": "yarn build:interfaces && yarn test:one packages/types/src/metadata/v14",
"build:release": "polkadot-ci-ghact-build",
"build:rollup": "polkadot-exec-rollup --config",
"chain:info": "polkadot-types-chain-info",
@@ -37,9 +38,9 @@
"@babel/core": "^7.18.10",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.18.9",
"@polkadot/dev": "^0.67.88",
"@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": {
+8 -8
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api-base": "9.1.1",
"@polkadot/rpc-augment": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/types-augment": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/util": "^10.1.3"
"@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.1.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.1.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.2.2' };
+6 -6
View File
@@ -1791,7 +1791,11 @@ declare module '@polkadot/api-base/types/errors' {
};
stateTrieMigration: {
/**
* bad witness data provided.
* Bad child root provided.
**/
BadChildRoot: AugmentedError<ApiType>;
/**
* Bad witness data provided.
**/
BadWitness: AugmentedError<ApiType>;
/**
@@ -1805,7 +1809,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
KeyTooLong: AugmentedError<ApiType>;
/**
* max signed limits not respected.
* Max signed limits not respected.
**/
MaxSignedLimits: AugmentedError<ApiType>;
/**
@@ -1816,10 +1820,6 @@ declare module '@polkadot/api-base/types/errors' {
* Signed migration is not allowed because the maximum limit is not set yet.
**/
SignedMigrationNotAllowed: AugmentedError<ApiType>;
/**
* upper bound of size is exceeded,
**/
SizeUpperBoundExceeded: AugmentedError<ApiType>;
/**
* Generic error
**/
+2 -2
View File
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -1195,7 +1195,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* Migration got halted due to an error or miss-configuration.
**/
Halted: AugmentedEvent<ApiType, []>;
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], { error: PalletStateTrieMigrationError }>;
/**
* Given number of `(top, child)` keys were migrated respectively, with the given
* `compute`.
+17 -2
View File
@@ -7,7 +7,7 @@ import '@polkadot/api-base/types/calls';
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, Vec, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
@@ -19,7 +19,7 @@ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
import type { NpApiError } from '@polkadot/types/interfaces/nompools';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Balance, Block, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
@@ -280,5 +280,20 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0xf3ff14d5ab527059/1 */
transactionPaymentCallApi: {
/**
* The call fee details
**/
queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
/**
* The call info
**/
queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
} // AugmentedCalls
} // declare module
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/rpc-core": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/util": "^10.1.3",
"@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.1.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'>>;
}
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/types-create": "9.1.1",
"@polkadot/util": "^10.1.3",
"@polkadot/util-crypto": "^10.1.3",
"@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.1.1",
"@polkadot/keyring": "^10.1.3"
"@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.1.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.2.2' };
@@ -0,0 +1,71 @@
[
{
"info": "Plain",
"lookupIndex": 0,
"type": "u8",
"docs": [],
"namespace": ""
},
{
"info": "Plain",
"lookupIndex": 1,
"type": "Text",
"docs": [],
"namespace": ""
},
{
"info": "VecFixed",
"lookupIndex": 2,
"type": "[u8;32]",
"docs": [],
"namespace": "",
"length": 32,
"sub": {
"info": "Plain",
"lookupIndex": 0,
"type": "u8",
"docs": [],
"namespace": ""
}
},
{
"info": "Struct",
"lookupIndex": 3,
"type": "{\"inner\":\"[u8;32]\"}",
"docs": [],
"namespace": "",
"sub": [
{
"docs": [],
"name": "inner",
"info": "VecFixed",
"lookupIndex": 2,
"type": "[u8;32]",
"namespace": "",
"length": 32,
"sub": {
"info": "Plain",
"lookupIndex": 0,
"type": "u8",
"docs": [],
"namespace": ""
},
"typeName": "FixedArray32"
}
]
},
{
"info": "Plain",
"lookupIndex": 4,
"type": "u128",
"docs": [],
"namespace": ""
},
{
"info": "Plain",
"lookupIndex": 5,
"type": "bool",
"docs": [],
"namespace": ""
}
]
@@ -3,5 +3,6 @@
import { createVersionedExport } from '../util';
import * as v0 from './v0';
import * as v3 from './v3';
export default createVersionedExport({ v0 });
export default createVersionedExport({ v0, v3 });
@@ -0,0 +1,550 @@
{
"source": {
"hash": "",
"language": "Ask! 0.4.0",
"compiler": "asc 0.19.23"
},
"contract": {
"name": "",
"version": "",
"authors": []
},
"V3": {
"spec": {
"constructors": [
{
"args": [
{
"type": {
"type": 1,
"displayName": [
"string"
]
},
"label": "name"
},
{
"type": {
"type": 1,
"displayName": [
"string"
]
},
"label": "symbol"
}
],
"docs": [],
"label": "default",
"payable": false,
"selector": "0xed4b9d1b"
}
],
"messages": [
{
"mutates": true,
"payable": true,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "to"
},
{
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"label": "amount"
}
],
"docs": [],
"label": "mint",
"selector": "0xcfdd9aa2"
},
{
"mutates": true,
"payable": true,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "from"
},
{
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"label": "amount"
}
],
"docs": [],
"label": "burn",
"selector": "0xb1efc17b"
},
{
"mutates": false,
"payable": false,
"args": [],
"returnType": {
"type": 1,
"displayName": [
"string"
]
},
"docs": [],
"label": "name",
"selector": "0x3adaf70d"
},
{
"mutates": false,
"payable": false,
"args": [],
"returnType": {
"type": 1,
"displayName": [
"string"
]
},
"docs": [],
"label": "symbol",
"selector": "0x9bd1933e"
},
{
"mutates": false,
"payable": false,
"args": [],
"returnType": {
"type": 0,
"displayName": [
"u8"
]
},
"docs": [],
"label": "decimal",
"selector": "0xcc3fec6d"
},
{
"mutates": false,
"payable": false,
"args": [],
"returnType": {
"type": 4,
"displayName": [
"u128"
]
},
"docs": [],
"label": "totalSupply",
"selector": "0xcae60595"
},
{
"mutates": false,
"payable": false,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "account"
}
],
"returnType": {
"type": 4,
"displayName": [
"u128"
]
},
"docs": [],
"label": "balanceOf",
"selector": "0xf48def67"
},
{
"mutates": true,
"payable": true,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "recipient"
},
{
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"label": "amount"
}
],
"returnType": {
"type": 5,
"displayName": [
"bool"
]
},
"docs": [],
"label": "transfer",
"selector": "0x84a15da1"
},
{
"mutates": false,
"payable": false,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "owner"
},
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "spender"
}
],
"returnType": {
"type": 4,
"displayName": [
"u128"
]
},
"docs": [],
"label": "allowance",
"selector": "0x6a00165e"
},
{
"mutates": true,
"payable": true,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "spender"
},
{
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"label": "amount"
}
],
"returnType": {
"type": 5,
"displayName": [
"bool"
]
},
"docs": [],
"label": "approve",
"selector": "0x681266a0"
},
{
"mutates": true,
"payable": true,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "sender"
},
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "recipient"
},
{
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"label": "amount"
}
],
"returnType": {
"type": 5,
"displayName": [
"bool"
]
},
"docs": [],
"label": "transferFrom",
"selector": "0x02a6e0d5"
},
{
"mutates": true,
"payable": true,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "spender"
},
{
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"label": "addedValue"
}
],
"returnType": {
"type": 5,
"displayName": [
"bool"
]
},
"docs": [],
"label": "increaseAllowance",
"selector": "0xcb005356"
},
{
"mutates": true,
"payable": true,
"args": [
{
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"label": "spender"
},
{
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"label": "subtractedValue"
}
],
"returnType": {
"type": 5,
"displayName": [
"bool"
]
},
"docs": [],
"label": "decreaseAllowance",
"selector": "0xe19fabb4"
}
],
"events": [
{
"id": 1,
"label": "Transfer",
"args": [
{
"label": "from",
"indexed": false,
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"docs": [
""
]
},
{
"label": "to",
"indexed": false,
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"docs": [
""
]
},
{
"label": "value",
"indexed": false,
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"docs": [
""
]
}
],
"docs": [
""
]
},
{
"id": 2,
"label": "Approval",
"args": [
{
"label": "owner",
"indexed": false,
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"docs": [
""
]
},
{
"label": "spender",
"indexed": false,
"type": {
"type": 3,
"displayName": [
"AccountId"
]
},
"docs": [
""
]
},
{
"label": "value",
"indexed": false,
"type": {
"type": 4,
"displayName": [
"u128"
]
},
"docs": [
""
]
}
],
"docs": [
""
]
}
],
"docs": [
""
]
},
"types": [
{
"id": 0,
"type": {
"def": {
"primitive": "u8"
}
}
},
{
"id": 1,
"type": {
"def": {
"primitive": "str"
}
}
},
{
"id": 2,
"type": {
"def": {
"array": {
"len": 32,
"type": 0
}
}
}
},
{
"id": 3,
"type": {
"def": {
"composite": {
"fields": [
{
"name": "inner",
"type": 2,
"typeName": "FixedArray32<u8>"
}
]
},
"path": []
}
}
},
{
"id": 4,
"type": {
"def": {
"primitive": "u128"
}
}
},
{
"id": 5,
"type": {
"def": {
"primitive": "bool"
}
}
}
]
}
}
@@ -0,0 +1,4 @@
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { default as ask } from './ask.json' assert { type: 'json' };
+14 -14
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api": "9.1.1",
"@polkadot/api-augment": "9.1.1",
"@polkadot/api-base": "9.1.1",
"@polkadot/rpc-core": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/util": "^10.1.3",
"@polkadot/util-crypto": "^10.1.3",
"@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.1.1",
"@polkadot/api-augment": "9.1.1",
"@polkadot/rpc-augment": "9.1.1",
"@polkadot/rpc-provider": "9.1.1",
"@polkadot/types-support": "9.1.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.1.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.2.2' };
+17 -17
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/api-augment": "9.1.1",
"@polkadot/api-base": "9.1.1",
"@polkadot/api-derive": "9.1.1",
"@polkadot/keyring": "^10.1.3",
"@polkadot/rpc-augment": "9.1.1",
"@polkadot/rpc-core": "9.1.1",
"@polkadot/rpc-provider": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/types-augment": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/types-create": "9.1.1",
"@polkadot/types-known": "9.1.1",
"@polkadot/util": "^10.1.3",
"@polkadot/util-crypto": "^10.1.3",
"@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.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.1.1",
"@polkadot/types-support": "9.1.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
@@ -4,7 +4,7 @@
import '@polkadot/rpc-augment';
export { Keyring } from '@polkadot/keyring';
export { WsProvider, HttpProvider } from '@polkadot/rpc-provider';
export { HttpProvider, ScProvider, WsProvider } from '@polkadot/rpc-provider';
export { packageInfo } from './packageInfo';
export { SubmittableResult } from './submittable';
+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.1.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);
})
)
)();
+5 -5
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/rpc-core": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/util": "^10.1.3"
"@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.1.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.2.2' };
+7 -7
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/rpc-augment": "9.1.1",
"@polkadot/rpc-provider": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/util": "^10.1.3",
"@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.3",
"@polkadot/rpc-augment": "9.1.1"
"@polkadot/keyring": "^10.1.4",
"@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.1.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.2.2' };
+9 -9
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/keyring": "^10.1.3",
"@polkadot/types": "9.1.1",
"@polkadot/types-support": "9.1.1",
"@polkadot/util": "^10.1.3",
"@polkadot/util-crypto": "^10.1.3",
"@polkadot/x-fetch": "^10.1.3",
"@polkadot/x-global": "^10.1.3",
"@polkadot/x-ws": "^10.1.3",
"@polkadot/keyring": "^10.1.4",
"@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",
"@polkadot/x-global": "^10.1.4",
"@polkadot/x-ws": "^10.1.4",
"@substrate/connect": "0.7.10",
"eventemitter3": "^4.0.7",
"mock-socket": "^9.1.5",
+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.1.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.2.2' };
@@ -7,7 +7,7 @@ import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, Pro
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
import EventEmitter from 'eventemitter3';
import { isError } from '@polkadot/util';
import { isError, objectSpread } from '@polkadot/util';
import { RpcCoder } from '../coder';
import { healthChecker } from './Health';
@@ -36,20 +36,19 @@ const wellKnownChains = new Set(Object.values(WellKnownChain));
const scClients = new WeakMap<ScProvider, ScClient>();
export { WellKnownChain };
export class ScProvider implements ProviderInterface {
readonly #coder: RpcCoder = new RpcCoder();
readonly #spec: string | WellKnownChain;
readonly #sharedSandbox?: ScProvider;
readonly #subscriptions: Map<
string,
[ResponseCallback, { unsubscribeMethod: string; id: string | number }]
> = new Map();
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
readonly #requests: Map<number, ResponseCallback> = new Map();
readonly #eventemitter: EventEmitter = new EventEmitter();
#chain: Promise<Chain> | null = null;
#isChainReady = false;
static WellKnownChain = WellKnownChain;
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
this.#spec = spec;
this.#sharedSandbox = sharedSandbox;
@@ -215,15 +214,14 @@ export class ScProvider implements ProviderInterface {
this.#eventemitter.emit(isReady ? 'connected' : 'disconnected');
});
return {
...chain,
return objectSpread({}, chain, {
remove: () => {
hc.stop();
chain.remove();
cleanup();
},
sendJsonRpc: hc.sendJsonRpc.bind(hc)
};
});
});
try {
@@ -252,10 +250,7 @@ export class ScProvider implements ProviderInterface {
this.#eventemitter.emit('disconnected');
}
public on (
type: ProviderInterfaceEmitted,
sub: ProviderInterfaceEmitCb
): () => void {
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
// It's possible. Although, quite unlikely, that by the time that polkadot
// subscribes to the `connected` event, the Provider is already connected.
// In that case, we must emit to let the consumer know that we are connected.
@@ -305,12 +300,7 @@ export class ScProvider implements ProviderInterface {
}
}
public async subscribe (
type: string,
method: string,
params: any[],
callback: ProviderInterfaceCallback
): Promise<number | string> {
public async subscribe (type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string> {
if (!subscriptionUnsubscriptionMethods.has(method)) {
throw new Error(`Unsupported subscribe method: ${method}`);
}
@@ -337,11 +327,7 @@ export class ScProvider implements ProviderInterface {
return id;
}
public unsubscribe (
type: string,
method: string,
id: number | string
): Promise<boolean> {
public unsubscribe (type: string, method: string, id: number | string): Promise<boolean> {
if (!this.isConnected) {
throw new Error('Provider is not connected');
}
+13 -13
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -33,18 +33,18 @@
"@babel/core": "^7.18.10",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.18.9",
"@polkadot/api": "9.1.1",
"@polkadot/api-augment": "9.1.1",
"@polkadot/rpc-augment": "9.1.1",
"@polkadot/rpc-provider": "9.1.1",
"@polkadot/types": "9.1.1",
"@polkadot/types-augment": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/types-create": "9.1.1",
"@polkadot/types-support": "9.1.1",
"@polkadot/util": "^10.1.3",
"@polkadot/util-crypto": "^10.1.3",
"@polkadot/x-ws": "^10.1.3",
"@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",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
"yargs": "^17.5.1"
+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.1.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.2.2' };
+4 -4
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/types": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/util": "^10.1.3"
"@polkadot/types": "9.2.2",
"@polkadot/types-codec": "9.2.2",
"@polkadot/util": "^10.1.4"
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.1.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.2.2' };
@@ -15,7 +15,7 @@ import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
import type { BeefyAuthoritySet, BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter } from '@polkadot/types/interfaces/benchmark';
import type { BenchmarkBatch, BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter, BenchmarkResult } from '@polkadot/types/interfaces/benchmark';
import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
@@ -155,10 +155,12 @@ declare module '@polkadot/types/types/registry' {
BeefyPayload: BeefyPayload;
BeefyPayloadId: BeefyPayloadId;
BeefySignedCommitment: BeefySignedCommitment;
BenchmarkBatch: BenchmarkBatch;
BenchmarkConfig: BenchmarkConfig;
BenchmarkList: BenchmarkList;
BenchmarkMetadata: BenchmarkMetadata;
BenchmarkParameter: BenchmarkParameter;
BenchmarkResult: BenchmarkResult;
Bid: Bid;
Bidder: Bidder;
BidKind: BidKind;
+7 -7
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/util": "^10.1.3",
"@polkadot/x-bigint": "^10.1.3"
"@polkadot/util": "^10.1.4",
"@polkadot/x-bigint": "^10.1.4"
},
"devDependencies": {
"@polkadot/types": "9.1.1",
"@polkadot/types-augment": "9.1.1",
"@polkadot/types-support": "9.1.1",
"@polkadot/util-crypto": "^10.1.3"
"@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.1.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.2.2' };
+4 -4
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/types-codec": "9.1.1",
"@polkadot/util": "^10.1.3"
"@polkadot/types-codec": "9.2.2",
"@polkadot/util": "^10.1.4"
},
"devDependencies": {
"@polkadot/types": "9.1.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.1.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.2.2' };
+9 -6
View File
@@ -20,14 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/networks": "^10.1.3",
"@polkadot/types": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/types-create": "9.1.1",
"@polkadot/util": "^10.1.3"
"@polkadot/networks": "^10.1.4",
"@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.1.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],
@@ -11,7 +11,7 @@ const upgrades: ChainUpgradesRaw = [
[3613564, 27], [3899547, 28], [4345767, 29], [4876134, 30], [5661442, 9050],
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
[8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180], [10156856, 9190],
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250]
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250], [11532856, 9260]
];
export default upgrades;
@@ -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],
@@ -15,7 +15,7 @@ const upgrades: ChainUpgradesRaw = [
[7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
[9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190], [10578091, 9200],
[10678509, 9210], [10811001, 9220], [11096116, 9230], [11409279, 9250], [11584820, 9251],
[11716837, 9260], [11876919, 9261], [11987927, 9270]
[11716837, 9260], [11876919, 9261], [11987927, 9270], [12077324, 9271]
];
export default upgrades;
@@ -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" }
]
}
+2 -2
View File
@@ -20,10 +20,10 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/util": "^10.1.3"
"@polkadot/util": "^10.1.4"
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.1.1' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.2.2' };
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.1.1",
"version": "9.2.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@polkadot/keyring": "^10.1.3",
"@polkadot/types-augment": "9.1.1",
"@polkadot/types-codec": "9.1.1",
"@polkadot/types-create": "9.1.1",
"@polkadot/util": "^10.1.3",
"@polkadot/util-crypto": "^10.1.3",
"@polkadot/keyring": "^10.1.4",
"@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.3",
"@polkadot/types-support": "9.1.1"
"@polkadot/keyring": "^10.1.4",
"@polkadot/types-support": "9.2.2"
}
}
@@ -12,6 +12,12 @@ export default {
rpc: {},
runtime,
types: {
BenchmarkBatch: {
pallet: 'Text',
instance: 'Text',
benchmark: 'Text',
results: 'Vec<BenchmarkResult>'
},
BenchmarkConfig: {
pallet: 'Bytes',
benchmark: 'Bytes',
@@ -30,6 +36,17 @@ export default {
},
BenchmarkParameter: {
_enum: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
},
BenchmarkResult: {
components: 'Vec<(BenchmarkParameter, u32)>',
extrinsicTime: 'u128',
storageRootTime: 'u128',
reads: 'u32',
repeatReads: 'u32',
writes: 'u32',
repeatWrites: 'u32',
proofSize: 'u32',
benchKeys: 'Vec<(Vec<u8>, u32, u32, bool)>'
}
}
} as Definitions;
@@ -1,9 +1,17 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { Bytes, Enum, Struct, Vec, bool, u32 } from '@polkadot/types-codec';
import type { Bytes, Enum, Struct, Text, Vec, bool, u128, u32 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
/** @name BenchmarkBatch */
export interface BenchmarkBatch extends Struct {
readonly pallet: Text;
readonly instance: Text;
readonly benchmark: Text;
readonly results: Vec<BenchmarkResult>;
}
/** @name BenchmarkConfig */
export interface BenchmarkConfig extends Struct {
readonly pallet: Bytes;
@@ -57,4 +65,17 @@ export interface BenchmarkParameter extends Enum {
readonly type: 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
}
/** @name BenchmarkResult */
export interface BenchmarkResult extends Struct {
readonly components: Vec<ITuple<[BenchmarkParameter, u32]>>;
readonly extrinsicTime: u128;
readonly storageRootTime: u128;
readonly reads: u32;
readonly repeatReads: u32;
readonly writes: u32;
readonly repeatWrites: u32;
readonly proofSize: u32;
readonly benchKeys: Vec<ITuple<[Bytes, u32, u32, bool]>>;
}
export type PHANTOM_BENCHMARK = 'benchmark';
@@ -0,0 +1,129 @@
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionsCall, DefinitionsRpc, DefinitionsTypes, RegistryTypes } from '../types';
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
import { getTypeDef, TypeRegistry } from '../create';
import { Metadata } from '../metadata';
import * as all from './definitions';
interface CheckDef {
rpc: DefinitionsRpc;
runtime: DefinitionsCall;
types: DefinitionsTypes;
}
const registry = new TypeRegistry();
const types = Object.values(all).reduce<Record<string, unknown>>((r, { types = {} }) => {
Object.entries(types).forEach(([k, v]) => {
r[k] = v;
});
return r;
}, {});
registry.register(types as RegistryTypes);
registry.setMetadata(new Metadata(registry, rpcMetadata));
function inspectType (type: string): void {
try {
// get the definition
const { sub } = getTypeDef(registry.createType(type).toRawType());
// inspect the subs
if (Array.isArray(sub)) {
for (let i = 0; i < sub.length; i++) {
inspectType(sub[i].type);
}
} else if (sub) {
inspectType(sub.type);
}
} catch (error) {
throw new Error(`${type}:: ${(error as Error).message}`);
}
}
describe('type definitions', (): void => {
const types = Object.entries(all).filter((v): v is [string, CheckDef] =>
!!v[1].types &&
Object.keys(v[1].types).length !== 0 &&
v[0] === 'benchmark'
);
describe.each(types)('%s', (_, { types }): void => {
const typesKeys = Object.keys(types).filter((type) =>
// meant to fail
type !== 'ExtrinsicUnknown' &&
type !== 'ExtrinsicPayloadUnknown' &&
// injected at runtime
type !== 'Origin' &&
// it will fail of MetadataV0
type !== 'MetadataAll'
);
it.each(typesKeys)('%s is known', (type): void => {
expect(() => inspectType(type)).not.toThrow();
});
});
});
describe('rpc definitions', (): void => {
const rpcs = Object.entries(all).filter((v): v is [string, CheckDef] =>
!!v[1].rpc &&
Object.keys(v[1].rpc).length !== 0
);
describe.each(rpcs)('%s', (section, { rpc }): void => {
const methodsEntries = Object.entries(rpc);
describe.each(methodsEntries)('%s', (method, { params, type }): void => {
// We cannot constuct V0, so just ignore
if (section !== 'state' || method !== 'getMetadata') {
it(`output ${type} is known`, (): void => {
expect(() => inspectType(type)).not.toThrow();
});
}
if (params.length) {
describe('params', (): void => {
it.each(params)('$name: $type is known', ({ type }): void => {
expect(() => inspectType(type)).not.toThrow();
});
});
}
});
});
});
describe('runtime definitions', (): void => {
const runtimes = Object.entries(all).filter((v): v is [string, CheckDef] =>
!!v[1].runtime &&
Object.keys(v[1].runtime).length !== 0
);
describe.each(runtimes)('%s', (_, { runtime }): void => {
const versionsEntries = Object.entries(runtime);
describe.each(versionsEntries)('%s', (_, versions): void => {
describe.each(versions)('version $version', ({ methods }): void => {
const methodsEntries = Object.entries(methods);
describe.each(methodsEntries)('%s', (_, { params, type }): void => {
it(`output ${type} is known`, (): void => {
expect(() => inspectType(type)).not.toThrow();
});
if (params.length) {
describe('params', (): void => {
it.each(params)('$name: $type is known', ({ type }): void => {
expect(() => inspectType(type)).not.toThrow();
});
});
}
});
});
});
});
});
+3 -3
View File
@@ -19,13 +19,13 @@ const netRpc: DefinitionsRpc = {
aliasSection: 'net',
description: 'Returns number of peers connected to node.',
params: [],
type: 'String'
type: 'Text'
},
version: {
aliasSection: 'net',
description: 'Returns protocol version.',
params: [],
type: 'String'
type: 'Text'
}
};
const web3Rpc: DefinitionsRpc = {
@@ -33,7 +33,7 @@ const web3Rpc: DefinitionsRpc = {
aliasSection: 'web3',
description: 'Returns current client version.',
params: [],
type: 'String'
type: 'Text'
},
sha3: {
aliasSection: 'web3',
+1 -1
View File
@@ -180,7 +180,7 @@ export const runtime: DefinitionsCall = {
current_all: {
description: 'Return all the current data for a block in a single runtime call.',
params: [],
type: '(Option<BlockV2>, Option<Vec<ReceiptV0>>, Option<Vec<TransactionStatus>>)'
type: '(Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>)'
},
current_block: {
description: 'Return the current block.',
@@ -707,35 +707,53 @@ export class PortableRegistry extends Struct implements ILookup {
}
#extractComposite (lookupIndex: number, { params, path }: SiType, { fields }: SiTypeDefComposite): TypeDef {
const pathFirst = path[0].toString();
const pathLast = path[path.length - 1].toString();
if (path.length) {
const pathFirst = path[0].toString();
const pathLast = path[path.length - 1].toString();
if (path.length === 1 && pathFirst === 'BTreeMap') {
return withTypeString(this.registry, {
info: TypeDefInfo.BTreeMap,
sub: params.map(({ type }) => this.#createSiDef(type.unwrap()))
});
} else if (path.length === 1 && pathFirst === 'BTreeSet') {
return withTypeString(this.registry, {
info: TypeDefInfo.BTreeSet,
sub: this.#createSiDef(params[0].type.unwrap())
});
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
return withTypeString(this.registry, {
info: pathFirst === 'Range'
? TypeDefInfo.Range
: TypeDefInfo.RangeInclusive,
sub: this.#createSiDef(params[0].type.unwrap()),
type: pathFirst
});
} else if (['WrapperKeepOpaque', 'WrapperOpaque'].includes(pathLast)) {
return withTypeString(this.registry, {
info: pathLast === 'WrapperKeepOpaque'
? TypeDefInfo.WrapperKeepOpaque
: TypeDefInfo.WrapperOpaque,
sub: this.#createSiDef(params[0].type.unwrap()),
type: pathLast
});
if (path.length === 1 && pathFirst === 'BTreeMap') {
if (params.length !== 2) {
throw new Error(`BTreeMap requires 2 parameters, found ${params.length}`);
}
return withTypeString(this.registry, {
info: TypeDefInfo.BTreeMap,
sub: params.map(({ type }) => this.#createSiDef(type.unwrap()))
});
} else if (path.length === 1 && pathFirst === 'BTreeSet') {
if (params.length !== 1) {
throw new Error(`BTreeSet requires 1 parameter, found ${params.length}`);
}
return withTypeString(this.registry, {
info: TypeDefInfo.BTreeSet,
sub: this.#createSiDef(params[0].type.unwrap())
});
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
if (params.length !== 1) {
throw new Error(`Range requires 1 parameter, found ${params.length}`);
}
return withTypeString(this.registry, {
info: pathFirst === 'Range'
? TypeDefInfo.Range
: TypeDefInfo.RangeInclusive,
sub: this.#createSiDef(params[0].type.unwrap()),
type: pathFirst
});
} else if (['WrapperKeepOpaque', 'WrapperOpaque'].includes(pathLast)) {
if (params.length !== 1) {
throw new Error(`WrapperOpaque requires 1 parameter, found ${params.length}`);
}
return withTypeString(this.registry, {
info: pathLast === 'WrapperKeepOpaque'
? TypeDefInfo.WrapperKeepOpaque
: TypeDefInfo.WrapperOpaque,
sub: this.#createSiDef(params[0].type.unwrap()),
type: pathLast
});
}
}
return PATHS_SET.some((p) => matchParts(p, path))
@@ -916,33 +934,43 @@ export class PortableRegistry extends Struct implements ILookup {
}
#extractVariant (lookupIndex: number, { params, path }: SiType, { variants }: SiTypeDefVariant): TypeDef {
const specialVariant = path[0].toString();
if (path.length) {
const specialVariant = path[0].toString();
if (specialVariant === 'Option') {
const sub = this.#createSiDef(params[0].type.unwrap());
if (specialVariant === 'Option') {
if (params.length !== 1) {
throw new Error(`Option requires 1 parameter, found ${params.length}`);
}
// NOTE This is opt-in (unhandled), not by default
// if (sub.type === 'bool') {
// return withTypeString(this.registry, {
// info: TypeDefInfo.Plain,
// type: 'OptionBool'
// });
// }
// NOTE This is opt-in (unhandled), not by default
// if (sub.type === 'bool') {
// return withTypeString(this.registry, {
// info: TypeDefInfo.Plain,
// type: 'OptionBool'
// });
// }
return withTypeString(this.registry, {
info: TypeDefInfo.Option,
sub
});
} else if (specialVariant === 'Result') {
return withTypeString(this.registry, {
info: TypeDefInfo.Result,
sub: params.map(({ type }, index) =>
objectSpread({
name: ['Ok', 'Error'][index]
}, this.#createSiDef(type.unwrap()))
)
});
} else if (variants.length === 0) {
return withTypeString(this.registry, {
info: TypeDefInfo.Option,
sub: this.#createSiDef(params[0].type.unwrap())
});
} else if (specialVariant === 'Result') {
if (params.length !== 2) {
throw new Error(`Result requires 2 parameters, found ${params.length}`);
}
return withTypeString(this.registry, {
info: TypeDefInfo.Result,
sub: params.map(({ type }, index) =>
objectSpread({
name: ['Ok', 'Error'][index]
}, this.#createSiDef(type.unwrap()))
)
});
}
}
if (variants.length === 0) {
return {
info: TypeDefInfo.Null,
type: 'Null'
@@ -219,8 +219,8 @@ function extendPrefixedMap (registry: Registry, itemFn: CreateItemFn, storageFn:
const { meta: { type }, method, section } = itemFn;
storageFn.iterKey = extendHeadMeta(registry, itemFn, storageFn, (...args: unknown[]): Raw => {
if (args.length && (type.isPlain || (args.length > type.asMap.hashers.length))) {
throw new Error(`Iteration ${stringCamelCase(section || 'unknown')}.${stringCamelCase(method || 'unknown')} needs arguments to be at least one less than the full arguments, found [${args.join(', ')}]`);
if (args.length && (type.isPlain || (args.length >= type.asMap.hashers.length))) {
throw new Error(`Iteration of ${stringCamelCase(section || 'unknown')}.${stringCamelCase(method || 'unknown')} needs arguments to be at least one less than the full arguments, found [${args.join(', ')}]`);
}
if (args.length) {
+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.1.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" }
]
}
+248 -247
View File
@@ -1968,29 +1968,29 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-augment@9.1.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.1.1
"@polkadot/rpc-augment": 9.1.1
"@polkadot/types": 9.1.1
"@polkadot/types-augment": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/types-support": 9.1.1
"@polkadot/util": ^10.1.3
"@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.1.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.1.1
"@polkadot/types": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/rpc-core": 9.2.2
"@polkadot/types": 9.2.2
"@polkadot/util": ^10.1.4
rxjs: ^7.5.6
languageName: unknown
linkType: soft
@@ -2000,66 +2000,66 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/api": 9.1.1
"@polkadot/api-augment": 9.1.1
"@polkadot/keyring": ^10.1.3
"@polkadot/types": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/types-create": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/util-crypto": ^10.1.3
"@polkadot/api": 9.2.2
"@polkadot/api-augment": 9.2.2
"@polkadot/keyring": ^10.1.4
"@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.1.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.1.1
"@polkadot/api-augment": 9.1.1
"@polkadot/api-base": 9.1.1
"@polkadot/rpc-augment": 9.1.1
"@polkadot/rpc-core": 9.1.1
"@polkadot/rpc-provider": 9.1.1
"@polkadot/types": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/types-support": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/util-crypto": ^10.1.3
"@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.1.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.1.1
"@polkadot/api-base": 9.1.1
"@polkadot/api-derive": 9.1.1
"@polkadot/keyring": ^10.1.3
"@polkadot/rpc-augment": 9.1.1
"@polkadot/rpc-core": 9.1.1
"@polkadot/rpc-provider": 9.1.1
"@polkadot/types": 9.1.1
"@polkadot/types-augment": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/types-create": 9.1.1
"@polkadot/types-known": 9.1.1
"@polkadot/types-support": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/util-crypto": ^10.1.3
"@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.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
rxjs: ^7.5.6
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.67.88":
version: 0.67.88
resolution: "@polkadot/dev@npm:0.67.88"
"@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.32.0
"@typescript-eslint/parser": 5.32.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.2
rollup: ^2.78.0
rollup-plugin-cleanup: ^3.2.1
typescript: ^4.7.4
yargs: ^17.5.1
@@ -2148,74 +2148,74 @@ __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: c7aa38e12009677df7a385fd5d86b4753e14b27b2a9fd8e44e25c376e6155fbfcde7d51f626f804ae605a995a7e9740eb31fda8c4de79a8347d4d2fda2326ce2
checksum: 36d915193e572ec5488db48a8dbe478e111338b4fc751ab9b61476660a3a37aea82e54d7a254d69a19dd33a6b8915331367c25c815f1eb32b34434645559e10f
languageName: node
linkType: hard
"@polkadot/keyring@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/keyring@npm:10.1.3"
"@polkadot/keyring@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/keyring@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/util": 10.1.3
"@polkadot/util-crypto": 10.1.3
"@polkadot/util": 10.1.4
"@polkadot/util-crypto": 10.1.4
peerDependencies:
"@polkadot/util": 10.1.3
"@polkadot/util-crypto": 10.1.3
checksum: 23c5ef127b256384cc1b289391ff7adc43edb30949d521b8b726c8b82477c3232fdef9b7d1982d15372e5faf134f1b8ee7f4fb09411785aa4c20f8776931f7eb
"@polkadot/util": 10.1.4
"@polkadot/util-crypto": 10.1.4
checksum: c812ca2b847f440af8131ce84075e9f3e18e82f21f5728de87abe6b096c8d97ea28243a160b30fb2d38817f4a1ccd8e3aff90e21e1e2602416561404c7fa8b4e
languageName: node
linkType: hard
"@polkadot/networks@npm:10.1.3, @polkadot/networks@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/networks@npm:10.1.3"
"@polkadot/networks@npm:10.1.4, @polkadot/networks@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/networks@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/util": 10.1.3
"@polkadot/util": 10.1.4
"@substrate/ss58-registry": ^1.25.0
checksum: c265c1be5672936af2b36d8d99233e19296d614285e9471076e976d001e74fa20b1713b57c1d4c3ae4d8d6bd81a54233ff5ace6a70f98f3f1b5f34e8e433b112
checksum: 150a8c5f1adaa7198e1d7e0f42592c078abe0e8a0a4ec1c15374746365923f99b4740b2892b3e8c3d18175830cdd264e37916a1398bb876ac91bd89b98c0ba4c
languageName: node
linkType: hard
"@polkadot/rpc-augment@9.1.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.1.1
"@polkadot/types": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/util": ^10.1.3
"@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.1.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.3
"@polkadot/rpc-augment": 9.1.1
"@polkadot/rpc-provider": 9.1.1
"@polkadot/types": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/keyring": ^10.1.4
"@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.1.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.3
"@polkadot/types": 9.1.1
"@polkadot/types-support": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/util-crypto": ^10.1.3
"@polkadot/x-fetch": ^10.1.3
"@polkadot/x-global": ^10.1.3
"@polkadot/x-ws": ^10.1.3
"@polkadot/keyring": ^10.1.4
"@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
"@polkadot/x-global": ^10.1.4
"@polkadot/x-ws": ^10.1.4
"@substrate/connect": 0.7.10
eventemitter3: ^4.0.7
mock-socket: ^9.1.5
@@ -2230,18 +2230,18 @@ __metadata:
"@babel/core": ^7.18.10
"@babel/register": ^7.18.9
"@babel/runtime": ^7.18.9
"@polkadot/api": 9.1.1
"@polkadot/api-augment": 9.1.1
"@polkadot/rpc-augment": 9.1.1
"@polkadot/rpc-provider": 9.1.1
"@polkadot/types": 9.1.1
"@polkadot/types-augment": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/types-create": 9.1.1
"@polkadot/types-support": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/util-crypto": ^10.1.3
"@polkadot/x-ws": ^10.1.3
"@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
"@types/websocket": ^1.0.5
"@types/yargs": ^17.0.11
handlebars: ^4.7.7
@@ -2256,113 +2256,114 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types-augment@9.1.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.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/types-codec@9.1.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.1.1
"@polkadot/types-augment": 9.1.1
"@polkadot/types-support": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/util-crypto": ^10.1.3
"@polkadot/x-bigint": ^10.1.3
"@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.1.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.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/types": 9.2.2
"@polkadot/types-codec": 9.2.2
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/types-known@9.1.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/networks": ^10.1.3
"@polkadot/types": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/types-create": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/api": 9.2.2
"@polkadot/networks": ^10.1.4
"@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.1.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:
"@babel/runtime": ^7.18.9
"@polkadot/util": ^10.1.3
"@polkadot/util": ^10.1.4
languageName: unknown
linkType: soft
"@polkadot/types@9.1.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.3
"@polkadot/types-augment": 9.1.1
"@polkadot/types-codec": 9.1.1
"@polkadot/types-create": 9.1.1
"@polkadot/types-support": 9.1.1
"@polkadot/util": ^10.1.3
"@polkadot/util-crypto": ^10.1.3
"@polkadot/keyring": ^10.1.4
"@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
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:10.1.3, @polkadot/util-crypto@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/util-crypto@npm:10.1.3"
"@polkadot/util-crypto@npm:10.1.4, @polkadot/util-crypto@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/util-crypto@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@noble/hashes": 1.1.2
"@noble/secp256k1": 1.6.3
"@polkadot/networks": 10.1.3
"@polkadot/util": 10.1.3
"@polkadot/networks": 10.1.4
"@polkadot/util": 10.1.4
"@polkadot/wasm-crypto": ^6.3.1
"@polkadot/x-bigint": 10.1.3
"@polkadot/x-randomvalues": 10.1.3
"@polkadot/x-bigint": 10.1.4
"@polkadot/x-randomvalues": 10.1.4
"@scure/base": 1.1.1
ed2curve: ^0.3.0
tweetnacl: ^1.0.3
peerDependencies:
"@polkadot/util": 10.1.3
checksum: 91b663f24db78aba6f236905af498009d54204273c387f59fa2a074b3f9e22f321482b1104c82156c269532097a8285033fede2c930544bd4b1936e53f2ae621
"@polkadot/util": 10.1.4
checksum: 5210beca93fa409a9523658398322168cef749422a757cbb7c5019896ce490896b6b076451c55cf8b682960aa2cc7aa1d4bfd6a9a775f11736f3d689550000ef
languageName: node
linkType: hard
"@polkadot/util@npm:10.1.3, @polkadot/util@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/util@npm:10.1.3"
"@polkadot/util@npm:10.1.4, @polkadot/util@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/util@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/x-bigint": 10.1.3
"@polkadot/x-global": 10.1.3
"@polkadot/x-textdecoder": 10.1.3
"@polkadot/x-textencoder": 10.1.3
"@polkadot/x-bigint": 10.1.4
"@polkadot/x-global": 10.1.4
"@polkadot/x-textdecoder": 10.1.4
"@polkadot/x-textencoder": 10.1.4
"@types/bn.js": ^5.1.0
bn.js: ^5.2.1
checksum: 458055c1ed89c83449571de2dd5a67067fe2d8cd6506f02d9ce32077bef106b0297446e15b22db3dc39406f50a4e13d8dc10cf97fb0dd5a4979ce8f68dfa5d7d
checksum: 21b356ceafe110e668569b1bdde97b7626bddf66081c1d5d075a752f960567af1dea6d95f9448cdb942adb8e5696418043242c81c892ac89de769772cd2ef59f
languageName: node
linkType: hard
@@ -2444,76 +2445,76 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-bigint@npm:10.1.3, @polkadot/x-bigint@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/x-bigint@npm:10.1.3"
"@polkadot/x-bigint@npm:10.1.4, @polkadot/x-bigint@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/x-bigint@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/x-global": 10.1.3
checksum: 5bc2923b6c5bbab76c47bcd4710d68860312eb943a0a6d759d82c1b53ff12f0738cbc1b09bc9ee0344dbafb1e77a6ca20a4bcd42601c4ca5ef0348d9e7124b63
"@polkadot/x-global": 10.1.4
checksum: b4e1a2aab00f3c88e626fcea2273b78377c2b22b7d75c69a0684bc9a12fd63ee8e8154fa51ff5b6884c843cead5185c75335511f7ef025c38b4ade5f9df26502
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/x-fetch@npm:10.1.3"
"@polkadot/x-fetch@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/x-fetch@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/x-global": 10.1.3
"@polkadot/x-global": 10.1.4
"@types/node-fetch": ^2.6.2
node-fetch: ^3.2.10
checksum: c9c1ea15aa19726592c974791c9980e57684db2ecc10fbf1cb69bebff89edde1433f5eaac10d0cc1b8e97b387b517fe6c2d52dce25947a5e2109cd4872ecf902
checksum: 752a80c6ac3ef2dbd3db5c1b515360cdca5dbe77540b6ac304ecaf50a0698618c2ea5c85d05f8fd61aaa2c1cf36d02801d99e5078124bd1b3350504b579e26fa
languageName: node
linkType: hard
"@polkadot/x-global@npm:10.1.3, @polkadot/x-global@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/x-global@npm:10.1.3"
"@polkadot/x-global@npm:10.1.4, @polkadot/x-global@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/x-global@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
checksum: 8b3aacdf9102bb9b5c3ceb29f1b7288c7fee11fd79f375f5c61efc4ed77eae200e478edf6fe88d7ecdf5961d8d7cda69beea28eea2c1e0f6e70eecff19aa8cd2
checksum: 34706e99e3217e3155aa0b3364bfed79579286f4443043fd96e43d16b0e09435d0a8ebcbe29756211fe4ae889251a6643f9411fec62e974139e964eb78792491
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:10.1.3":
version: 10.1.3
resolution: "@polkadot/x-randomvalues@npm:10.1.3"
"@polkadot/x-randomvalues@npm:10.1.4":
version: 10.1.4
resolution: "@polkadot/x-randomvalues@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/x-global": 10.1.3
checksum: 3bb5ef49b1920f85c9aa965d77c60175c16d9203d3321646aef870d225454205f9969361d7a6ded193995a70aa0bab244d14516d0dc5997c36eb3ae5dbf378f3
"@polkadot/x-global": 10.1.4
checksum: 254894229bb8ce5706814e76eef90085b2e443a05d0a23458fac0f4d7bb90d430cedb9b415a4799925746ca9aa6e8dc4340af495876e4b889d7f5ddc47ccafc8
languageName: node
linkType: hard
"@polkadot/x-textdecoder@npm:10.1.3":
version: 10.1.3
resolution: "@polkadot/x-textdecoder@npm:10.1.3"
"@polkadot/x-textdecoder@npm:10.1.4":
version: 10.1.4
resolution: "@polkadot/x-textdecoder@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/x-global": 10.1.3
checksum: 62c159f6d966c82207e013147b0a9502a091f06c8ab9956ae65f698b1325f834b4aeb2f07fdc2cc560a3d5290355e3a9131f68c5578b25d640c8bc221b7eba5a
"@polkadot/x-global": 10.1.4
checksum: 6450abc44e100b06e1b05338fa3569c9b357afc9e47b38e660d7ac6cde5977274e94c0ae657d49c1d1d6338c22b76b48ebb911c4f1ac5958eef6fb9c9b60668b
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:10.1.3":
version: 10.1.3
resolution: "@polkadot/x-textencoder@npm:10.1.3"
"@polkadot/x-textencoder@npm:10.1.4":
version: 10.1.4
resolution: "@polkadot/x-textencoder@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/x-global": 10.1.3
checksum: 4947f187a1f5dbbde9031de144d14d64954662fa814936f84b145ca3bc41ff0f6f7e76ed72f252e780d4862a99f0b6cc899dabcb6788a05417a812cc8752cc31
"@polkadot/x-global": 10.1.4
checksum: 260513ed7b4a90d8cb3f33b48df8c0e90b51729b2835508d7c5187bb8da3e31186c745b2a849bb19361160aa3e63315b582752f7a36ab7dcfcb92801e23a73e8
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^10.1.3":
version: 10.1.3
resolution: "@polkadot/x-ws@npm:10.1.3"
"@polkadot/x-ws@npm:^10.1.4":
version: 10.1.4
resolution: "@polkadot/x-ws@npm:10.1.4"
dependencies:
"@babel/runtime": ^7.18.9
"@polkadot/x-global": 10.1.3
"@polkadot/x-global": 10.1.4
"@types/websocket": ^1.0.5
websocket: ^1.0.34
checksum: 3c6324bbae670178ed7dcf5b8f6c66b6c57717ea88d289682cfcca1cbbb60b2688799bdc563314384bbafe7b5c16adb0b180fb3ce756f4ab68d821e8d690eb28
checksum: 298982d117f99f4fa1894f747ad7c9260e808d4a389da4ff19bf42796c36799995c07ea37470532ea0e41ecf892ce047da6fb5dbcbc93fc19995f249a5174ffe
languageName: node
linkType: hard
@@ -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.32.0":
version: 5.32.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.32.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.32.0
"@typescript-eslint/type-utils": 5.32.0
"@typescript-eslint/utils": 5.32.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: 9785c34d9742b51130237bfe244924ca6dfd529bdcc5932a5cf81558f0235099c963a11125df393037db51ce451f7ab9442aba3c3a8bb2e0607569a0e31480c8
checksum: d9b6b038f70e4959ad211c84f50a38de2d00b54f0636ad76eea414fb070fa616933690da80de6668e62c8fbbeb227086322001b7d7ad1924421a232547c97936
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:5.32.0":
version: 5.32.0
resolution: "@typescript-eslint/parser@npm:5.32.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.32.0
"@typescript-eslint/types": 5.32.0
"@typescript-eslint/typescript-estree": 5.32.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: 3fcfa183cad125c3198fd63701c6e13dad1cc984d309e8cd40ec9a2eb857902abfd7e9ee3f030b18eb1c18c795a61ea289ef147a7f9dfac38df905e7514316af
checksum: fb3a4e000ce6d9583656fc3b3fb80f127a0ec1b7c3872ea469164516d993a588859ded4ec1338e6bbf2151168380d8aa29ec31027af23b50f5107949f8e7b438
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:5.32.0":
version: 5.32.0
resolution: "@typescript-eslint/scope-manager@npm:5.32.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.32.0
"@typescript-eslint/visitor-keys": 5.32.0
checksum: 69bdeb029f39d1112299dc0cb0ddef30e51bdb782fdb79cc4e72fa448e00d71e39938d3bff3fa4ee43b3416c2e3b4564de2c37252914772b07eeedafb14412d6
"@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.32.0":
version: 5.32.0
resolution: "@typescript-eslint/type-utils@npm:5.32.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.32.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: 4063808ca054789bebc6adb376d15c13e38f8ea14fa2842c38ae616d77fb77681b67a04b77887cf9ceb6f801ab3fc5eddfb6325779ab821404c62f36c56310bb
checksum: ddf88835bc87b3ad946aaeb29b770a49a8e1c3c5e294ee9cb93b1936f432a1016efb97803f197eea1be61545cbc79b5526cc05e9339ca9beada22fc83801ddea
languageName: node
linkType: hard
@@ -2998,19 +2999,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/types@npm:5.32.0":
version: 5.32.0
resolution: "@typescript-eslint/types@npm:5.32.0"
checksum: 6758f54d8d7763893cd7c1753f525ef1777eee8b558bf3d54fd2a2ce691ca0cf813c68a26e4db83a1deae4e4a62b247f1195e15a1f3577f1293849f9e55a232c
"@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.32.0":
version: 5.32.0
resolution: "@typescript-eslint/typescript-estree@npm:5.32.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.32.0
"@typescript-eslint/visitor-keys": 5.32.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: 6aee08be5d36603d038fb8340f324f5cb38519150c9b37c012f0c1ff2a4d8cf22fbc6835de31d069949c2b3d8ed3e729076a724ef29db4289d9fe73b97c9d310
checksum: 1418e409b141c2f012bc2dd5c40d95dfd8aa572dd3e9523ed23e4371e4459d10ecd074fda75dc770ce980686b25ffc44725eebf165c494818ed4131d1ac0239f
languageName: node
linkType: hard
@@ -3041,19 +3042,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:5.32.0":
version: 5.32.0
resolution: "@typescript-eslint/utils@npm:5.32.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.32.0
"@typescript-eslint/types": 5.32.0
"@typescript-eslint/typescript-estree": 5.32.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: cfd88d93508c8fb0db17d2726691e1383db390357fa0637bd8111558fbe72da5130d995294001d71b1d929d620fbce3f20a70b277a77ca21a4241b3b470dc758
checksum: c550504d62fc72f29bf3d7a651bd3a81f49fb1fccaf47583721c2ab1abd2ef78a1e4bc392cb4be4a61a45a4f24fc14a59d67b98aac8a16a207a7cace86538cab
languageName: node
linkType: hard
@@ -3067,13 +3068,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:5.32.0":
version: 5.32.0
resolution: "@typescript-eslint/visitor-keys@npm:5.32.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.32.0
"@typescript-eslint/types": 5.33.1
eslint-visitor-keys: ^3.3.0
checksum: 1f9b756d648c2346a6e8538ffde729d3d9ce6621fded3d9f15c96aa0ebf8f511daf8232470423fb36359c2113538a4daaf3336181be78a0cfbfd297af91ce9ba
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.2":
version: 2.77.2
resolution: "rollup@npm:2.77.2"
"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: 5a84fb98a6f858906bceba091430442f6c1f362b07c5fa9123b708f87e39f52640e34a189cd9a1776ceae61300055c78ba648205fa03188451539ebeb19797df
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.88
"@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