Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@moosty/lisk-connection-provider

Package Overview
Dependencies
Maintainers
2
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moosty/lisk-connection-provider - npm Package Compare versions

Comparing version 0.0.91 to 0.0.92

9

dist/controllers/ConnectionController.d.ts

@@ -1,3 +0,3 @@

import { SubscribeMethods } from "../types";
export declare class ConnectionController {
import { Envelope, GetMethods, Param, ReadyDataType, RPCControllerInterface, StatusDataType, SubscribeMethods } from "../types";
export declare class ConnectionController implements RPCControllerInterface {
connection: any;

@@ -11,2 +11,7 @@ blockchain: any;

getStateBlockchain: () => "connected" | "disconnected" | "connecting" | "init";
get: (method: GetMethods, params?: Param, v1?: boolean) => Promise<Envelope | StatusDataType | ReadyDataType>;
getMore: (method: GetMethods, params?: {
offset?: number;
limit?: number;
}, v1?: boolean) => Promise<Envelope | StatusDataType | ReadyDataType>;
getStateV1: () => "connected" | "disconnected" | "connecting" | "init";

@@ -13,0 +18,0 @@ isConnected: () => any;

@@ -19,2 +19,4 @@ "use strict";

};
this.get = async (method, params = {}, v1 = false) => { };
this.getMore = async (method, params = {}, v1 = false) => { };
this.getStateV1 = () => {

@@ -21,0 +23,0 @@ return this.v1 ? this.v1.connected ? "connected" : this.v1.disconnected ? "disconnected" : "connecting" : "init";

import { ConnectionController } from "./ConnectionController";
import { Envelope, GetMethods, Param, RPCControllerInterface, SubscribeMethods } from "../types";
import { Envelope, GetMethods, Param, ReadyDataType, RPCControllerInterface, StatusDataType, SubscribeMethods } from "../types";
export declare class ServiceRPCController extends ConnectionController implements RPCControllerInterface {
constructor(host: string);
subscribe: (method: SubscribeMethods) => void;
get: (method: GetMethods, params?: Param, v1?: boolean) => Promise<object>;
get: (method: GetMethods, params?: Param, v1?: boolean) => Promise<Envelope | StatusDataType | ReadyDataType>;
getMore: (method: GetMethods, params?: {
offset?: number;
limit?: number;
}, v1?: boolean) => Promise<Envelope>;
}, v1?: boolean) => Promise<Envelope | StatusDataType | ReadyDataType>;
}

@@ -49,4 +49,4 @@ export declare type GetMethods = "get.accounts" | "get.votes_sent" | "get.votes_received" | "get.forgers" | "get.blocks" | "get.transactions" | "get.transactions.statistics" | "get.transactions.schemas" | "get.fees" | "get.peers" | "get.network.status" | "get.network.statistics" | "get.market.prices" | "gateway.spec" | "get.ready" | "get.spec" | "get.status";

export interface RPCControllerInterface {
get(method: GetMethods, params?: Param): Promise<Envelope>;
getMore(method: GetMethods, params: Param): Promise<Envelope>;
get(method: GetMethods, params?: Param, v1?: boolean): Promise<Envelope | StatusDataType | ReadyDataType>;
getMore(method: GetMethods, params: Param, v1?: boolean): Promise<Envelope | StatusDataType | ReadyDataType>;
getState(): string;

@@ -73,2 +73,21 @@ getStateBlockchain(): string;

}
export interface StatusDataType {
build: string;
description: string;
name: string;
version: string;
networkId: string;
networkNodeVersion: string;
}
export interface ReadyDataType {
services?: {
lisk_accounts?: boolean;
lisk_blocks?: boolean;
lisk_transactions?: boolean;
indexReadyStatus?: boolean;
transactionStatsStatus?: boolean;
feesStatus?: boolean;
delegatesStatus?: boolean;
};
}
export interface MarketPriceDataType {

@@ -75,0 +94,0 @@ code: string;

{
"name": "@moosty/lisk-connection-provider",
"version": "0.0.91",
"version": "0.0.92",
"description": "Lisk connection provider component to connect react to Lisk endpoints",

@@ -37,3 +37,3 @@ "author": "Moosty <info@moosty.com>",

},
"gitHead": "2127206be6f219850426ea59f99d1a9aafa71faa"
"gitHead": "b82a5a93ef0bab9aa45a69772640847e42d50308"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc