@moosty/lisk-connection-provider
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -47,3 +47,3 @@ "use strict"; | ||
offset: i, | ||
limit: 100, | ||
limit: params.limit && params.limit < 100 ? params.limit : 100, | ||
}, | ||
@@ -50,0 +50,0 @@ }); |
export declare type GetMethods = "get.blocks" | "get.transactions" | "get.forgers" | "get.fees" | "get.accounts" | "get.next_forger" | "get.search" | "get.network.statistics" | "get.network.status" | "get.peers" | "get.transactions.statistics.day" | "get.transactions.statistics.month" | "get.voters" | "get.votes" | "get.market.prices" | "gateway.spec" | "get.transactions.schemas" | "get.votes_received" | "get.votes_sent" | "get.ready" | "get.spec"; | ||
export declare type SubscribeMethods = "update.block" | "update.forgers" | "update.transactions" | "update.round" | "update.transactions.unconfirmed" | "update.fee_estimates"; | ||
export interface Param { | ||
offset?: number; | ||
limit?: number; | ||
address?: string; | ||
publicKey?: string; | ||
publickey?: string; | ||
secpubkey?: string; | ||
username?: string; | ||
isDelegate?: boolean; | ||
blockId?: string; | ||
transactionId?: string; | ||
sort?: string; | ||
height?: number; | ||
id?: number; | ||
from?: number; | ||
to?: number; | ||
search?: string; | ||
ip?: string; | ||
httpPort?: number; | ||
wsPort?: number; | ||
os?: string; | ||
version?: string; | ||
state?: number; | ||
broadhash?: string; | ||
type?: number; | ||
min?: number; | ||
max?: number; | ||
} | ||
export interface RPCControllerInterface { | ||
get(method: GetMethods, params: { | ||
offset?: number; | ||
limit?: number; | ||
address?: string; | ||
publicKey?: string; | ||
publickey?: string; | ||
secpubkey?: string; | ||
username?: string; | ||
isDelegate?: boolean; | ||
blockId?: string; | ||
transactionId?: string; | ||
sort?: string; | ||
height?: number; | ||
id?: number; | ||
from?: number; | ||
to?: number; | ||
search?: string; | ||
ip?: string; | ||
httpPort?: number; | ||
wsPort?: number; | ||
os?: string; | ||
version?: string; | ||
state?: number; | ||
broadhash?: string; | ||
type?: number; | ||
min?: number; | ||
max?: number; | ||
}): Promise<{ | ||
get(method: GetMethods, params: Param): Promise<{ | ||
data?: any; | ||
@@ -40,30 +41,3 @@ meta?: { | ||
}>; | ||
getMore(method: GetMethods, params: { | ||
offset?: number; | ||
limit?: number; | ||
address?: string; | ||
publicKey?: string; | ||
publickey?: string; | ||
secpubkey?: string; | ||
username?: string; | ||
isDelegate?: boolean; | ||
blockId?: string; | ||
transactionId?: string; | ||
sort?: string; | ||
height?: number; | ||
id?: number; | ||
from?: number; | ||
to?: number; | ||
search?: string; | ||
ip?: string; | ||
httpPort?: number; | ||
wsPort?: number; | ||
os?: string; | ||
version?: string; | ||
state?: number; | ||
broadhash?: string; | ||
type?: number; | ||
min?: number; | ||
max?: number; | ||
}): Promise<{ | ||
getMore(method: GetMethods, params: Param): Promise<{ | ||
data?: any; | ||
@@ -70,0 +44,0 @@ meta?: { |
{ | ||
"name": "@moosty/lisk-connection-provider", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Lisk connection provider component to connect react to Lisk endpoints", | ||
@@ -37,3 +37,3 @@ "author": "Moosty <info@moosty.com>", | ||
}, | ||
"gitHead": "9810354761b1771e4879064885b7ec526745f714" | ||
"gitHead": "c2fedb7d574c5a4e873ad661330c9f2984a13585" | ||
} |
Sorry, the diff of this file is not supported yet
36737
385