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.14 to 0.0.15

4

dist/controllers/ServiceRPCController.d.ts
import { ConnectionController } from "./ConnectionController";
import { GetMethods, RPCControllerInterface, SubscribeMethods } from "../types";
import { Envelope, GetMethods, RPCControllerInterface, SubscribeMethods } from "../types";
export declare class ServiceRPCController extends ConnectionController implements RPCControllerInterface {

@@ -10,3 +10,3 @@ constructor(host: string);

limit?: number;
}, v1?: boolean) => Promise<object>;
}, v1?: boolean) => Promise<Envelope>;
}
import React, { FC } from "react";
import { ServiceRPCController } from "./controllers/ServiceRPCController";
import { RPCControllerInterface } from "./types";
export { GetMethods, SubscribeMethods, Param, Envelope, MarketPriceDataType, AccountDataType, NetworkStatusDataType, BlockDataType, ForgersDataType, FeeEstimateDataType, TransactionDataType, } from "./types";
export interface NetworkEndpoint {

@@ -25,4 +26,4 @@ host: string;

export declare const LiskClientContext: React.Context<ConnectionProviderProps>;
export { ServiceRPCController };
export { ServiceRPCController, };
export declare const useLiskService: () => ConnectionProviderProps;
export declare const LiskConnectionProvider: FC<ConnectionProviderProps>;

@@ -64,3 +64,3 @@ "use strict";

connection: getNewConnection(endpointObject),
connected: null
connected: null,
});

@@ -67,0 +67,0 @@ }

@@ -1,2 +0,2 @@

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 GetMethods = "get.accounts" | "get.votes_sent" | "get.votes_received" | "get.blocks" | "get.transactions" | "get.forgers" | "get.fees" | "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.ready" | "get.spec";
export declare type SubscribeMethods = "update.block" | "update.forgers" | "update.transactions" | "update.round" | "update.transactions.unconfirmed" | "update.fee_estimates";

@@ -8,5 +8,5 @@ export interface Param {

publicKey?: string;
publickey?: string;
secpubkey?: string;
username?: string;
status?: string;
search?: string;
isDelegate?: boolean;

@@ -20,3 +20,2 @@ blockId?: string;

to?: number;
search?: string;
ip?: string;

@@ -34,20 +33,4 @@ httpPort?: number;

export interface RPCControllerInterface {
get(method: GetMethods, params: Param): Promise<{
data?: any;
meta?: {
count: number;
total: number;
offset: number;
};
error?: object;
}>;
getMore(method: GetMethods, params: Param): Promise<{
data?: any;
meta?: {
count: number;
total: number;
offset: number;
};
error?: object;
}>;
get(method: GetMethods, params: Param): Promise<Envelope>;
getMore(method: GetMethods, params: Param): Promise<Envelope>;
getState(): string;

@@ -58,1 +41,150 @@ getStateBlockchain(): string;

}
export interface Envelope {
data?: Array<MarketPriceDataType> | Array<AccountDataType> | Array<BlockDataType> | Array<ForgersDataType> | FeeEstimateDataType | Array<TransactionDataType>;
meta?: {
total?: number;
count: number;
offset?: number;
};
error?: object;
}
export interface MarketPriceDataType {
code: string;
from: string;
rate: string;
sources: string[];
to: string;
updateTimestamp: number;
}
export interface AccountDataType {
summary: {
address: string;
legacyAddress?: string;
balance?: string;
username?: string;
publicKey?: string;
isMigrated?: boolean;
isDelegate?: boolean;
isMultisignature?: boolean;
};
knowledge?: {
owner?: string;
description?: string;
};
token: {
balance: string;
};
sequence: {
nonce: string;
};
keys?: {
numberOfSignatures?: number;
mandatoryKeys?: Array<string>;
optionalKeys?: Array<string>;
members?: {
address?: string;
publicKey?: string;
isMandatory?: boolean;
}[];
memberships?: {
address?: string;
publicKey?: string;
username?: string;
}[];
};
dpos?: {
delegate?: {
username?: string;
pomHeights?: {
start?: number;
end?: number;
}[];
consecutiveMissedBlocks?: number;
lastForgedHeight?: number;
isBanned?: boolean;
voteWeight?: string;
totalVotesReceived?: string;
};
sentVotes?: {
delegateAddress?: string;
amount?: string;
}[];
unlocking?: {
delegateAddress?: string;
amount?: string;
height?: {
start?: number;
end?: number;
};
}[];
legacy?: {
address?: string;
balance?: string;
};
};
}
export interface NetworkStatusDataType {
}
export interface BlockDataType {
"id": string;
"height": number;
"version": number;
"timestamp": number;
"generatorAddress": string;
"generatorPublicKey": string;
"generatorUsername": string;
"transactionRoot": string;
"signature": string;
"previousBlockId": string;
"numberOfTransactions": number;
"totalForged": string;
"totalBurnt": string;
"totalFee": string;
"reward": string;
"isFinal": boolean;
"maxHeightPreviouslyForged": number;
"maxHeightPrevoted": number;
"seedReveal": string;
}
export interface ForgersDataType {
"username": string;
"totalVotesReceived": string;
"address": string;
"minActiveHeight": number;
"isConsensusParticipant": boolean;
"nextForgingTime": number;
}
export interface FeeEstimateDataType {
"feeEstimatePerByte": {
"low": number;
"medium": number;
"high": number;
};
"baseFeeById": object;
"baseFeeByName": object;
"minFeePerByte": number;
}
export interface TransactionDataType {
"id": string;
"moduleAssetId": string;
"moduleAssetName": string;
"fee": string;
"nonce": string;
"block": {
"id": string;
"height": number;
"timestamp": number;
};
"sender": {
"address": string;
"publicKey": string;
"username": string;
};
"signatures": Array<string>;
"confirmations": number;
"asset": object;
"relays": number;
"isPending": boolean;
}
export interface DataType {
}
{
"name": "@moosty/lisk-connection-provider",
"version": "0.0.14",
"version": "0.0.15",
"description": "Lisk connection provider component to connect react to Lisk endpoints",

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

},
"gitHead": "c2fedb7d574c5a4e873ad661330c9f2984a13585"
"gitHead": "e8852a24383beca5756afcd1a6af67e116604bd7"
}

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