10.2.2 (#5573)
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.2.2-4-x",
|
||||
"@polkadot/rpc-augment": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-augment": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/api-base": "10.2.2",
|
||||
"@polkadot/rpc-augment": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-augment": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/rpc-core": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
|
||||
@@ -18,20 +18,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/types-create": "10.2.2-4-x",
|
||||
"@polkadot/api": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/types-create": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.2.2-4-x",
|
||||
"@polkadot/api-augment": "10.2.2",
|
||||
"@polkadot/keyring": "^11.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ export function v4ToLatest (_registry: Registry, v4: ContractMetadataV4): Contra
|
||||
return v4;
|
||||
}
|
||||
|
||||
export const v3ToLatest = createConverter(v4ToLatest, v3ToV4);
|
||||
export const v2ToLatest = createConverter(v3ToLatest, v2ToV3);
|
||||
export const v1ToLatest = createConverter(v2ToLatest, v1ToV2);
|
||||
export const v0ToLatest = createConverter(v1ToLatest, v0ToV1);
|
||||
export const v3ToLatest = /*#__PURE__*/ createConverter(v4ToLatest, v3ToV4);
|
||||
export const v2ToLatest = /*#__PURE__*/ createConverter(v3ToLatest, v2ToV3);
|
||||
export const v1ToLatest = /*#__PURE__*/ createConverter(v2ToLatest, v1ToV2);
|
||||
export const v0ToLatest = /*#__PURE__*/ createConverter(v1ToLatest, v0ToV1);
|
||||
|
||||
export const convertVersions: [Versions, Converter][] = [
|
||||
['V4', v4ToLatest],
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.2.2-4-x",
|
||||
"@polkadot/api-augment": "10.2.2-4-x",
|
||||
"@polkadot/api-base": "10.2.2-4-x",
|
||||
"@polkadot/rpc-core": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/api": "10.2.2",
|
||||
"@polkadot/api-augment": "10.2.2",
|
||||
"@polkadot/api-base": "10.2.2",
|
||||
"@polkadot/rpc-core": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.2.2-4-x",
|
||||
"@polkadot/api-augment": "10.2.2-4-x",
|
||||
"@polkadot/rpc-augment": "10.2.2-4-x",
|
||||
"@polkadot/rpc-provider": "10.2.2-4-x",
|
||||
"@polkadot/types-support": "10.2.2-4-x"
|
||||
"@polkadot/api": "10.2.2",
|
||||
"@polkadot/api-augment": "10.2.2",
|
||||
"@polkadot/rpc-augment": "10.2.2",
|
||||
"@polkadot/rpc-provider": "10.2.2",
|
||||
"@polkadot/types-support": "10.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
+14
-14
@@ -18,21 +18,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.2.2-4-x",
|
||||
"@polkadot/api-base": "10.2.2-4-x",
|
||||
"@polkadot/api-derive": "10.2.2-4-x",
|
||||
"@polkadot/api-augment": "10.2.2",
|
||||
"@polkadot/api-base": "10.2.2",
|
||||
"@polkadot/api-derive": "10.2.2",
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/rpc-augment": "10.2.2-4-x",
|
||||
"@polkadot/rpc-core": "10.2.2-4-x",
|
||||
"@polkadot/rpc-provider": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-augment": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/types-create": "10.2.2-4-x",
|
||||
"@polkadot/types-known": "10.2.2-4-x",
|
||||
"@polkadot/rpc-augment": "10.2.2",
|
||||
"@polkadot/rpc-core": "10.2.2",
|
||||
"@polkadot/rpc-provider": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-augment": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/types-create": "10.2.2",
|
||||
"@polkadot/types-known": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"eventemitter3": "^5.0.0",
|
||||
@@ -40,7 +40,7 @@
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.2.2-4-x",
|
||||
"@polkadot/types-support": "10.2.2-4-x"
|
||||
"@polkadot/api-augment": "10.2.2",
|
||||
"@polkadot/types-support": "10.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
import { logger } from '@polkadot/util';
|
||||
|
||||
export const l = logger('api/util');
|
||||
export const l = /*#__PURE__*/ logger('api/util');
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/rpc-core": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.2.2-4-x",
|
||||
"@polkadot/rpc-provider": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/rpc-augment": "10.2.2",
|
||||
"@polkadot/rpc-provider": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/rpc-augment": "10.2.2-4-x"
|
||||
"@polkadot/rpc-augment": "10.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-support": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-support": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/x-fetch": "^11.1.3",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,15 +28,15 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.2.2-4-x",
|
||||
"@polkadot/api-augment": "10.2.2-4-x",
|
||||
"@polkadot/rpc-augment": "10.2.2-4-x",
|
||||
"@polkadot/rpc-provider": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-augment": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/types-create": "10.2.2-4-x",
|
||||
"@polkadot/types-support": "10.2.2-4-x",
|
||||
"@polkadot/api": "10.2.2",
|
||||
"@polkadot/api-augment": "10.2.2",
|
||||
"@polkadot/rpc-augment": "10.2.2",
|
||||
"@polkadot/rpc-provider": "10.2.2",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-augment": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/types-create": "10.2.2",
|
||||
"@polkadot/types-support": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/x-ws": "^11.1.3",
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^11.1.3",
|
||||
@@ -26,9 +26,9 @@
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-augment": "10.2.2-4-x",
|
||||
"@polkadot/types-support": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-augment": "10.2.2",
|
||||
"@polkadot/types-support": "10.2.2",
|
||||
"@polkadot/util-crypto": "^11.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.2.2-4-x"
|
||||
"@polkadot/types": "10.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^11.1.3",
|
||||
"@polkadot/types": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/types-create": "10.2.2-4-x",
|
||||
"@polkadot/types": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/types-create": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.2.2-4-x"
|
||||
"@polkadot/api": "10.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^11.1.3",
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.2.2-4-x",
|
||||
"version": "10.2.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/types-augment": "10.2.2-4-x",
|
||||
"@polkadot/types-codec": "10.2.2-4-x",
|
||||
"@polkadot/types-create": "10.2.2-4-x",
|
||||
"@polkadot/types-augment": "10.2.2",
|
||||
"@polkadot/types-codec": "10.2.2",
|
||||
"@polkadot/types-create": "10.2.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
@@ -32,6 +32,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/types-support": "10.2.2-4-x"
|
||||
"@polkadot/types-support": "10.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@ import type { AccountId, RawAuraPreDigest, RawBabePreDigestCompat } from '../int
|
||||
import { Bytes, U8aFixed, u32 } from '@polkadot/types-codec';
|
||||
import { BN, bnToU8a, isNumber, stringToU8a, u8aToHex, u8aToString } from '@polkadot/util';
|
||||
|
||||
export const CID_AURA = stringToU8a('aura');
|
||||
export const CID_BABE = stringToU8a('BABE');
|
||||
export const CID_GRPA = stringToU8a('FRNK');
|
||||
export const CID_POW = stringToU8a('pow_');
|
||||
export const CID_NMBS = stringToU8a('nmbs');
|
||||
export const CID_AURA = /*#__PURE__*/ stringToU8a('aura');
|
||||
export const CID_BABE = /*#__PURE__*/ stringToU8a('BABE');
|
||||
export const CID_GRPA = /*#__PURE__*/ stringToU8a('FRNK');
|
||||
export const CID_POW = /*#__PURE__*/ stringToU8a('pow_');
|
||||
export const CID_NMBS = /*#__PURE__*/ stringToU8a('nmbs');
|
||||
|
||||
function getAuraAuthor (registry: Registry, bytes: Bytes, sessionValidators: AccountId[]): AccountId {
|
||||
return sessionValidators[
|
||||
|
||||
@@ -15,5 +15,6 @@ function convert (fn: (n: Name) => string): (n: Named) => string {
|
||||
return ({ name }: Named) => fn(name);
|
||||
}
|
||||
|
||||
export const objectNameToCamel = convert(stringCamelCase);
|
||||
export const objectNameToString = convert((n) => n.toString());
|
||||
export const objectNameToCamel = /*#__PURE__*/ convert(stringCamelCase);
|
||||
|
||||
export const objectNameToString = /*#__PURE__*/ convert((n) => n.toString());
|
||||
|
||||
Reference in New Issue
Block a user