UNPKG

@pokt-network/pocket-js

Version:

Pocket-js core package with the main functionalities to interact with the Pocket Network.

47 lines (46 loc) 1.44 kB
/** * * * @class QuerySupplyResponse */ export declare class QuerySupplyResponse { /** * * Creates a QuerySupplyResponse object using a JSON string * @param {String} json - JSON string. * @returns {QuerySupplyResponse} - QuerySupplyResponse object. * @memberof QuerySupplyResponse */ static fromJSON(json: string): QuerySupplyResponse; readonly nodeStaked: BigInt; readonly appStaked: BigInt; readonly dao: BigInt; readonly totalStaked: BigInt; readonly totalUnstaked: BigInt; readonly total: BigInt; /** * QuerySupplyResponse. * @constructor * @param {BigInt} nodeStaked - Amount staked by the node. * @param {BigInt} appStaked - Amount staked by the app. * @param {BigInt} dao - DAO amount. * @param {BigInt} totalStaked - Total amount staked. * @param {BigInt} totalUnstaked - Total amount unstaked. * @param {BigInt} total - Total amount. */ constructor(nodeStaked: BigInt, appStaked: BigInt, dao: BigInt, totalStaked: BigInt, totalUnstaked: BigInt, total: BigInt); /** * * Creates a JSON object with the QuerySupplyResponse properties * @returns {JSON} - JSON Object. * @memberof QuerySupplyResponse */ toJSON(): { app_staked: number; dao: number; node_staked: number; total: number; total_staked: number; total_unstaked: number; }; }