@@ -23,14 +23,14 @@
|
||||
"version": "9.14.3-10-x",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.21.0",
|
||||
"@polkadot/keyring": "^10.4.2",
|
||||
"@polkadot/types-augment": "9.14.3-10-x",
|
||||
"@polkadot/types-codec": "9.14.3-10-x",
|
||||
"@polkadot/types-create": "9.14.3-10-x",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"rxjs": "^7.8.0"
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.4.2",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export const AllHashers = <const> {
|
||||
export const AllHashers = {
|
||||
Blake2_128: null, // eslint-disable-line camelcase
|
||||
Blake2_256: null, // eslint-disable-line camelcase
|
||||
Blake2_128Concat: null, // eslint-disable-line camelcase
|
||||
@@ -13,4 +13,4 @@ export const AllHashers = <const> {
|
||||
Twox64Concat: null,
|
||||
// new in v11
|
||||
Identity: null
|
||||
};
|
||||
} as const;
|
||||
|
||||
@@ -19,7 +19,7 @@ const allData: Record<string, HexString> = {
|
||||
substrate
|
||||
};
|
||||
|
||||
for (const type of <const> ['kusama', 'polkadot', 'substrate']) {
|
||||
for (const type of ['kusama', 'polkadot', 'substrate'] as const) {
|
||||
describe(`${type}metadata`, (): void => {
|
||||
const metadata = new Metadata(new TypeRegistry(), allData[type]);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import { getUniqTypes, toCallsOnly } from './util';
|
||||
|
||||
// Use these to generate all the Meta* types below via template keys
|
||||
// NOTE: Keep from latest -> earliest, see the LATEST_VERSION 0 index
|
||||
const KNOWN_VERSIONS = <const> [14, 13, 12, 11, 10, 9];
|
||||
const KNOWN_VERSIONS = [14, 13, 12, 11, 10, 9] as const;
|
||||
const LATEST_VERSION = KNOWN_VERSIONS[0];
|
||||
|
||||
type MetaAll = typeof KNOWN_VERSIONS[number];
|
||||
|
||||
Reference in New Issue
Block a user