Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
266427c8f4 | ||
|
|
e94af85e69 | ||
|
|
9be16a40ef | ||
|
|
2b92fd94af | ||
|
|
0b6f786108 | ||
|
|
b0a3c206ab | ||
|
|
98ae45c64b | ||
|
|
116501f89a |
@@ -1,5 +1,16 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 9.3.3 Sep 6, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Ensure JS reserved words are aliassed in types (Thanks to https://github.com/dqbd)
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix and adjust tests for `AccountId{32, 33}`
|
||||
|
||||
|
||||
## 9.3.2 Sep 4, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
3217 Jaco 9.3.2 (#5202)
|
||||
3220 Jaco 9.3.3 (#5207)
|
||||
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)
|
||||
@@ -55,6 +55,7 @@
|
||||
1 Daniel Maricic Fixed typo in README (#2402)
|
||||
1 Daniel Savu fix: Generate custom type definitions (#4224)
|
||||
1 David Don't log full error (#2952)
|
||||
1 David Duong Avoid reserved words during named enum fields augmentation (#5203)
|
||||
1 Denis Tsai realign AccountKey20Junction to polkadot xcm's Junction enum (#3770)
|
||||
1 djuanito.eth Update fees to current constants (#2320)
|
||||
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
||||
|
||||
+3
-3
@@ -11,10 +11,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"versions": {
|
||||
"git": "9.3.2",
|
||||
"npm": "9.3.2"
|
||||
"git": "9.3.3",
|
||||
"npm": "9.3.3"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api-base": "9.3.2",
|
||||
"@polkadot/rpc-augment": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-augment": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/api-base": "9.3.3",
|
||||
"@polkadot/rpc-augment": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-augment": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "9.3.2"
|
||||
"@polkadot/types-support": "9.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/rpc-core": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/rpc-core": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"rxjs": "^7.5.6"
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/types-create": "9.3.2",
|
||||
"@polkadot/api": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/types-create": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"@polkadot/util-crypto": "^10.1.7",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.3.2",
|
||||
"@polkadot/api-augment": "9.3.3",
|
||||
"@polkadot/keyring": "^10.1.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,25 +20,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api": "9.3.2",
|
||||
"@polkadot/api-augment": "9.3.2",
|
||||
"@polkadot/api-base": "9.3.2",
|
||||
"@polkadot/rpc-core": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/api": "9.3.3",
|
||||
"@polkadot/api-augment": "9.3.3",
|
||||
"@polkadot/api-base": "9.3.3",
|
||||
"@polkadot/rpc-core": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"@polkadot/util-crypto": "^10.1.7",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.3.2",
|
||||
"@polkadot/api-augment": "9.3.2",
|
||||
"@polkadot/rpc-augment": "9.3.2",
|
||||
"@polkadot/rpc-provider": "9.3.2",
|
||||
"@polkadot/types-support": "9.3.2"
|
||||
"@polkadot/api": "9.3.3",
|
||||
"@polkadot/api-augment": "9.3.3",
|
||||
"@polkadot/rpc-augment": "9.3.3",
|
||||
"@polkadot/rpc-provider": "9.3.3",
|
||||
"@polkadot/types-support": "9.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
+14
-14
@@ -20,29 +20,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api-augment": "9.3.2",
|
||||
"@polkadot/api-base": "9.3.2",
|
||||
"@polkadot/api-derive": "9.3.2",
|
||||
"@polkadot/api-augment": "9.3.3",
|
||||
"@polkadot/api-base": "9.3.3",
|
||||
"@polkadot/api-derive": "9.3.3",
|
||||
"@polkadot/keyring": "^10.1.7",
|
||||
"@polkadot/rpc-augment": "9.3.2",
|
||||
"@polkadot/rpc-core": "9.3.2",
|
||||
"@polkadot/rpc-provider": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-augment": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/types-create": "9.3.2",
|
||||
"@polkadot/types-known": "9.3.2",
|
||||
"@polkadot/rpc-augment": "9.3.3",
|
||||
"@polkadot/rpc-core": "9.3.3",
|
||||
"@polkadot/rpc-provider": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-augment": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/types-create": "9.3.3",
|
||||
"@polkadot/types-known": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"@polkadot/util-crypto": "^10.1.7",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.3.2",
|
||||
"@polkadot/types-support": "9.3.2"
|
||||
"@polkadot/api-augment": "9.3.3",
|
||||
"@polkadot/types-support": "9.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/rpc-core": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/rpc-core": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/rpc-augment": "9.3.2",
|
||||
"@polkadot/rpc-provider": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/rpc-augment": "9.3.3",
|
||||
"@polkadot/rpc-provider": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.7",
|
||||
"@polkadot/rpc-augment": "9.3.2"
|
||||
"@polkadot/rpc-augment": "9.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/keyring": "^10.1.7",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-support": "9.3.2",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-support": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"@polkadot/util-crypto": "^10.1.7",
|
||||
"@polkadot/x-fetch": "^10.1.7",
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -33,15 +33,15 @@
|
||||
"@babel/core": "^7.18.13",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/api": "9.3.2",
|
||||
"@polkadot/api-augment": "9.3.2",
|
||||
"@polkadot/rpc-augment": "9.3.2",
|
||||
"@polkadot/rpc-provider": "9.3.2",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-augment": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/types-create": "9.3.2",
|
||||
"@polkadot/types-support": "9.3.2",
|
||||
"@polkadot/api": "9.3.3",
|
||||
"@polkadot/api-augment": "9.3.3",
|
||||
"@polkadot/rpc-augment": "9.3.3",
|
||||
"@polkadot/rpc-provider": "9.3.3",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-augment": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/types-create": "9.3.3",
|
||||
"@polkadot/types-support": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"@polkadot/util-crypto": "^10.1.7",
|
||||
"@polkadot/x-ws": "^10.1.7",
|
||||
|
||||
@@ -17,7 +17,48 @@ import { compareName, createImports, formatType, initMeta, readTemplate, setImpo
|
||||
const generateForMetaTemplate = Handlebars.compile(readTemplate('events'));
|
||||
|
||||
// For babel itself we need some extra aliasing
|
||||
const ALIAS = ['symbol'];
|
||||
// Also avoid reserved words to prevent generating invalid TS
|
||||
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#reserved_words
|
||||
const ALIAS = [
|
||||
'symbol',
|
||||
'break',
|
||||
'case',
|
||||
'catch',
|
||||
'class',
|
||||
'const',
|
||||
'continue',
|
||||
'debugger',
|
||||
'default',
|
||||
'delete',
|
||||
'do',
|
||||
'else',
|
||||
'export',
|
||||
'extends',
|
||||
'false',
|
||||
'finally',
|
||||
'for',
|
||||
'function',
|
||||
'if',
|
||||
'import',
|
||||
'in',
|
||||
'instanceof',
|
||||
'new',
|
||||
'null',
|
||||
'return',
|
||||
'static',
|
||||
'super',
|
||||
'switch',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'typeof',
|
||||
'var',
|
||||
'void',
|
||||
'while',
|
||||
'with',
|
||||
'yield'
|
||||
];
|
||||
|
||||
/** @internal */
|
||||
function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, isStrict: boolean, customLookupDefinitions?: Definitions): void {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
@@ -28,9 +28,9 @@
|
||||
"@polkadot/x-bigint": "^10.1.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-augment": "9.3.2",
|
||||
"@polkadot/types-support": "9.3.2",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-augment": "9.3.3",
|
||||
"@polkadot/types-support": "9.3.3",
|
||||
"@polkadot/util-crypto": "^10.1.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.3.2"
|
||||
"@polkadot/types": "9.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/networks": "^10.1.7",
|
||||
"@polkadot/types": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/types-create": "9.3.2",
|
||||
"@polkadot/types": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/types-create": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.3.2"
|
||||
"@polkadot/api": "9.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
|
||||
@@ -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.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.3.2",
|
||||
"version": "9.3.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"@polkadot/keyring": "^10.1.7",
|
||||
"@polkadot/types-augment": "9.3.2",
|
||||
"@polkadot/types-codec": "9.3.2",
|
||||
"@polkadot/types-create": "9.3.2",
|
||||
"@polkadot/types-augment": "9.3.3",
|
||||
"@polkadot/types-codec": "9.3.3",
|
||||
"@polkadot/types-create": "9.3.3",
|
||||
"@polkadot/util": "^10.1.7",
|
||||
"@polkadot/util-crypto": "^10.1.7",
|
||||
"rxjs": "^7.5.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.7",
|
||||
"@polkadot/types-support": "9.3.2"
|
||||
"@polkadot/types-support": "9.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,11 +36,11 @@ describe('AccountId', (): void => {
|
||||
});
|
||||
|
||||
describe('decoding', (): void => {
|
||||
const testDecode = (type: string, input: Uint8Array | string, expected: string): void =>
|
||||
const testDecode = (type: string, input: Uint8Array | string, expected: string, createType = 'AccountId'): void =>
|
||||
it(`can decode from ${type}`, (): void => {
|
||||
expect(
|
||||
registry
|
||||
.createType('AccountId', input)
|
||||
.createType(createType, input)
|
||||
.toString()
|
||||
).toBe(expected);
|
||||
});
|
||||
@@ -51,6 +51,28 @@ describe('AccountId', (): void => {
|
||||
).toThrow(/Invalid AccountId provided, expected 32 bytes/);
|
||||
});
|
||||
|
||||
it('correctly encodes for AccountId32', (): void => {
|
||||
const s = '5CHCWUYMmDGeJjiuaQ1LnrsAWacDhiTAV6vCfytSxoqBdCCb';
|
||||
const h = '0x0987654309876543098765430987654309876543098765430987654309876543';
|
||||
const a = registry.createType('AccountId32', s);
|
||||
|
||||
expect(a).toHaveLength(32);
|
||||
expect(a.toHex()).toEqual(h);
|
||||
expect(a.toString()).toEqual(s);
|
||||
expect(registry.createType('AccountId32', h).toString()).toEqual(s);
|
||||
});
|
||||
|
||||
it('correctly encodes for AccountId33', (): void => {
|
||||
const s = 'KWnVo6ZQe9A3fHZy4QYWMR6QyZLT4hxUs37pX465bKhfsMobh';
|
||||
const h = '0x098765430987654309876543098765430987654309876543098765430987654309';
|
||||
const a = registry.createType('AccountId33', s);
|
||||
|
||||
expect(a).toHaveLength(33);
|
||||
expect(a.toHex()).toEqual(h);
|
||||
expect(a.toString()).toEqual(s);
|
||||
expect(registry.createType('AccountId33', h).toString()).toEqual(s);
|
||||
});
|
||||
|
||||
testDecode(
|
||||
'AccountId',
|
||||
registry.createType('AccountId', '0x0102030405060708010203040506070801020304050607080102030405060708'),
|
||||
@@ -59,7 +81,8 @@ describe('AccountId', (): void => {
|
||||
testDecode(
|
||||
'AccountId33',
|
||||
registry.createType('AccountId33', '0x098765430987654309876543098765430987654309876543098765430987654309'),
|
||||
'5CHCWUYMmDGeJjiuaQ1LnrsAWacDhiTAV6vCfytSxoqBdCCb'
|
||||
'KWnVo6ZQe9A3fHZy4QYWMR6QyZLT4hxUs37pX465bKhfsMobh',
|
||||
'AccountId33'
|
||||
);
|
||||
testDecode('hex', '0x0102030405060708010203040506070801020304050607080102030405060708', '5C62W7ELLAAfix9LYrcx5smtcffbhvThkM5x7xfMeYXCtGwF');
|
||||
testDecode('string', '5C62W7ELLAAfix9LYrcx5smtcffbhvThkM5x7xfMeYXCtGwF', '5C62W7ELLAAfix9LYrcx5smtcffbhvThkM5x7xfMeYXCtGwF');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2022 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AnyString, AnyU8a, Registry } from '@polkadot/types-codec/types';
|
||||
import type { AnyString, AnyU8a, Registry, U8aBitLength } from '@polkadot/types-codec/types';
|
||||
|
||||
import { U8aFixed } from '@polkadot/types-codec';
|
||||
import { hexToU8a, isHex, isString, isU8a, u8aToU8a } from '@polkadot/util';
|
||||
@@ -32,7 +32,7 @@ class BaseAccountId extends U8aFixed {
|
||||
throw new Error(`Invalid AccountId provided, expected ${allowedBits >> 3} bytes, found ${decoded.length}`);
|
||||
}
|
||||
|
||||
super(registry, decoded, 256);
|
||||
super(registry, decoded, allowedBits as U8aBitLength);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.3.2' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.3.3' };
|
||||
|
||||
@@ -1999,28 +1999,28 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/api-augment@9.3.2, @polkadot/api-augment@workspace:packages/api-augment":
|
||||
"@polkadot/api-augment@9.3.3, @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.3.2
|
||||
"@polkadot/rpc-augment": 9.3.2
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-augment": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types-support": 9.3.2
|
||||
"@polkadot/api-base": 9.3.3
|
||||
"@polkadot/rpc-augment": 9.3.3
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-augment": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/types-support": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-base@9.3.2, @polkadot/api-base@workspace:packages/api-base":
|
||||
"@polkadot/api-base@9.3.3, @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.3.2
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/rpc-core": 9.3.3
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
rxjs: ^7.5.6
|
||||
languageName: unknown
|
||||
@@ -2031,56 +2031,56 @@ __metadata:
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.18.9
|
||||
"@polkadot/api": 9.3.2
|
||||
"@polkadot/api-augment": 9.3.2
|
||||
"@polkadot/api": 9.3.3
|
||||
"@polkadot/api-augment": 9.3.3
|
||||
"@polkadot/keyring": ^10.1.7
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types-create": 9.3.2
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/types-create": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
"@polkadot/util-crypto": ^10.1.7
|
||||
rxjs: ^7.5.6
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@9.3.2, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@9.3.3, @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.3.2
|
||||
"@polkadot/api-augment": 9.3.2
|
||||
"@polkadot/api-base": 9.3.2
|
||||
"@polkadot/rpc-augment": 9.3.2
|
||||
"@polkadot/rpc-core": 9.3.2
|
||||
"@polkadot/rpc-provider": 9.3.2
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types-support": 9.3.2
|
||||
"@polkadot/api": 9.3.3
|
||||
"@polkadot/api-augment": 9.3.3
|
||||
"@polkadot/api-base": 9.3.3
|
||||
"@polkadot/rpc-augment": 9.3.3
|
||||
"@polkadot/rpc-core": 9.3.3
|
||||
"@polkadot/rpc-provider": 9.3.3
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/types-support": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
"@polkadot/util-crypto": ^10.1.7
|
||||
rxjs: ^7.5.6
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@9.3.2, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@9.3.3, @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.3.2
|
||||
"@polkadot/api-base": 9.3.2
|
||||
"@polkadot/api-derive": 9.3.2
|
||||
"@polkadot/api-augment": 9.3.3
|
||||
"@polkadot/api-base": 9.3.3
|
||||
"@polkadot/api-derive": 9.3.3
|
||||
"@polkadot/keyring": ^10.1.7
|
||||
"@polkadot/rpc-augment": 9.3.2
|
||||
"@polkadot/rpc-core": 9.3.2
|
||||
"@polkadot/rpc-provider": 9.3.2
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-augment": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types-create": 9.3.2
|
||||
"@polkadot/types-known": 9.3.2
|
||||
"@polkadot/types-support": 9.3.2
|
||||
"@polkadot/rpc-augment": 9.3.3
|
||||
"@polkadot/rpc-core": 9.3.3
|
||||
"@polkadot/rpc-provider": 9.3.3
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-augment": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/types-create": 9.3.3
|
||||
"@polkadot/types-known": 9.3.3
|
||||
"@polkadot/types-support": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
"@polkadot/util-crypto": ^10.1.7
|
||||
eventemitter3: ^4.0.7
|
||||
@@ -2216,40 +2216,40 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-augment@9.3.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||
"@polkadot/rpc-augment@9.3.3, @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.3.2
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/rpc-core": 9.3.3
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-core@9.3.2, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@9.3.3, @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.7
|
||||
"@polkadot/rpc-augment": 9.3.2
|
||||
"@polkadot/rpc-provider": 9.3.2
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/rpc-augment": 9.3.3
|
||||
"@polkadot/rpc-provider": 9.3.3
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
rxjs: ^7.5.6
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@9.3.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@9.3.3, @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.7
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-support": 9.3.2
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-support": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
"@polkadot/util-crypto": ^10.1.7
|
||||
"@polkadot/x-fetch": ^10.1.7
|
||||
@@ -2269,15 +2269,15 @@ __metadata:
|
||||
"@babel/core": ^7.18.13
|
||||
"@babel/register": ^7.18.9
|
||||
"@babel/runtime": ^7.18.9
|
||||
"@polkadot/api": 9.3.2
|
||||
"@polkadot/api-augment": 9.3.2
|
||||
"@polkadot/rpc-augment": 9.3.2
|
||||
"@polkadot/rpc-provider": 9.3.2
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-augment": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types-create": 9.3.2
|
||||
"@polkadot/types-support": 9.3.2
|
||||
"@polkadot/api": 9.3.3
|
||||
"@polkadot/api-augment": 9.3.3
|
||||
"@polkadot/rpc-augment": 9.3.3
|
||||
"@polkadot/rpc-provider": 9.3.3
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-augment": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/types-create": 9.3.3
|
||||
"@polkadot/types-support": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
"@polkadot/util-crypto": ^10.1.7
|
||||
"@polkadot/x-ws": ^10.1.7
|
||||
@@ -2295,57 +2295,57 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-augment@9.3.2, @polkadot/types-augment@workspace:packages/types-augment":
|
||||
"@polkadot/types-augment@9.3.3, @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.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-codec@9.3.2, @polkadot/types-codec@workspace:packages/types-codec":
|
||||
"@polkadot/types-codec@9.3.3, @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.3.2
|
||||
"@polkadot/types-augment": 9.3.2
|
||||
"@polkadot/types-support": 9.3.2
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-augment": 9.3.3
|
||||
"@polkadot/types-support": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
"@polkadot/util-crypto": ^10.1.7
|
||||
"@polkadot/x-bigint": ^10.1.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-create@9.3.2, @polkadot/types-create@workspace:packages/types-create":
|
||||
"@polkadot/types-create@9.3.3, @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.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@9.3.2, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@9.3.3, @polkadot/types-known@workspace:packages/types-known":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.18.9
|
||||
"@polkadot/api": 9.3.2
|
||||
"@polkadot/api": 9.3.3
|
||||
"@polkadot/networks": ^10.1.7
|
||||
"@polkadot/types": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types-create": 9.3.2
|
||||
"@polkadot/types": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/types-create": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-support@9.3.2, @polkadot/types-support@workspace:packages/types-support":
|
||||
"@polkadot/types-support@9.3.3, @polkadot/types-support@workspace:packages/types-support":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||
dependencies:
|
||||
@@ -2354,16 +2354,16 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@9.3.2, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@9.3.3, @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.7
|
||||
"@polkadot/types-augment": 9.3.2
|
||||
"@polkadot/types-codec": 9.3.2
|
||||
"@polkadot/types-create": 9.3.2
|
||||
"@polkadot/types-support": 9.3.2
|
||||
"@polkadot/types-augment": 9.3.3
|
||||
"@polkadot/types-codec": 9.3.3
|
||||
"@polkadot/types-create": 9.3.3
|
||||
"@polkadot/types-support": 9.3.3
|
||||
"@polkadot/util": ^10.1.7
|
||||
"@polkadot/util-crypto": ^10.1.7
|
||||
rxjs: ^7.5.6
|
||||
|
||||
Reference in New Issue
Block a user