Use jsonrpc definitions from @polkadot/jsonrpc (#91)

* Drop api-jsonrpc in favour of @polkadot/jsonrpc

* Change converters

* Address issues after conversion
This commit is contained in:
Jaco Greeff
2018-05-18 10:08:08 +02:00
committed by GitHub
parent 50e597c943
commit 861155f9ef
46 changed files with 221 additions and 628 deletions
+2 -2
View File
@@ -4,11 +4,11 @@
// @flow
import type { ProviderInterface } from '@polkadot/api-provider/types';
import type { InterfaceTypes } from '@polkadot/api-jsonrpc/types';
import type { InterfaceTypes } from '@polkadot/jsonrpc/types';
import type { RxApiInterface } from './types';
const createApi = require('@polkadot/api');
const interfaces = require('@polkadot/api-jsonrpc');
const interfaces = require('@polkadot/jsonrpc');
const createWs = require('@polkadot/api-provider/ws');
const createExposed = require('./api');
+1 -1
View File
@@ -4,7 +4,7 @@
// @flow
import type { ApiInterface, ApiInterface$Section } from '@polkadot/api/types';
import type { InterfaceTypes } from '@polkadot/api-jsonrpc/types';
import type { InterfaceTypes } from '@polkadot/jsonrpc/types';
import type { RxApiInterface$Section } from './types';
const observable = require('./observable');
+1 -1
View File
@@ -3,7 +3,7 @@
// of the ISC license. See the LICENSE file for details.
// @flow
import type { InterfaceTypes } from '@polkadot/api-jsonrpc/types';
import type { InterfaceTypes } from '@polkadot/jsonrpc/types';
// flowlint-next-line unclear-type:off
export type RxApiInterface$Method = (...params: Array<mixed>) => rxjs$Observable<any> | rxjs$BehaviorSubject<any>;