Add .range([from, to?], ...args) on storage queries (#1979)

* Add .between(from, to) ot storage queries

* between -> range

* CHANGELOG

* checkTypes.manual

* Tested as working
This commit is contained in:
Jaco Greeff
2020-03-01 09:12:17 +01:00
committed by GitHub
parent 96700eef5d
commit f59cb12ec7
18 changed files with 124 additions and 90 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { MetadataLatest } from '@polkadot/types/interfaces/metadata';
import { InterfaceTypes } from '@polkadot/types/types';
import fs from 'fs';
import interfaces from '@polkadot/jsonrpc';
@@ -176,7 +177,7 @@ function addStorage (metadata: MetadataLatest): string {
let result = unwrapStorageType(func.type);
if (func.modifier.isOptional) {
result = `Option<${result}>`;
result = `Option<${result}>` as keyof InterfaceTypes;
}
return {