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:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user