Convert RPC classes to primitive classes or /srml types (#1192)

* Convert RPC classes to primitive classes or /srml types

* Lint passes... lokking at tests next.

* Tests pass.

* Types with basic docs (lots of work here)

* Update StorageKey.spec.ts

* Add injector to metadata doc generation

* Fix import
This commit is contained in:
Jaco Greeff
2019-07-26 10:23:37 +02:00
committed by GitHub
parent 83515fc0a2
commit 478f54c703
144 changed files with 1824 additions and 2224 deletions
+4 -4
View File
@@ -2,14 +2,14 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { CodecTypes } from '@polkadot/types/classes';
// import { CodecTypes } from '@polkadot/types/classes';
type PubSub = [string, string, string];
export interface RpcParam {
isOptional: boolean;
name: string;
type: CodecTypes;
type: string; // CodecTypes;
}
export interface RpcMethodOpt {
@@ -20,7 +20,7 @@ export interface RpcMethodOpt {
isSubscription?: boolean;
params: RpcParam[];
pubsub?: PubSub;
type: CodecTypes;
type: string; // CodecTypes;
}
export interface RpcMethod {
@@ -34,7 +34,7 @@ export interface RpcMethod {
params: RpcParam[];
pubsub: PubSub;
section: string;
type: CodecTypes;
type: string; // CodecTypes;
}
export interface RpcSection {