@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
52 lines (51 loc) • 1.51 kB
TypeScript
import { NodeParams } from "../node-params";
/**
*
*
* @class QueryNodeParamsResponse
*/
export declare class QueryNodeParamsResponse {
/**
*
* Creates a QueryNodeParamsResponse object using a JSON string
* @param {String} json - JSON string.
* @returns {QueryNodeParamsResponse} - QueryNodeParamsResponse object.
* @memberof QueryNodeParamsResponse
*/
static fromJSON(json: string): QueryNodeParamsResponse;
readonly nodeParams: NodeParams;
/**
* QueryNodeParamsResponse
* @constructor
* @param {NodeParams} nodeParams - Node params.
*/
constructor(nodeParams: NodeParams);
/**
*
* Creates a JSON object with the QueryNodeParamsResponse properties
* @returns {JSON} - JSON Object.
* @memberof QueryNodeParamsResponse
*/
toJSON(): {
dao_allocation: number;
max_validators: number;
proposer_allocation: number;
session_block_frequency: number;
downtime_jail_duration: number;
max_evidence_age: number;
min_signed_per_window: number;
signed_blocks_window: number;
slash_fraction_double_sign: number;
slash_fraction_downtime: number;
stake_denom: string;
stake_minimum: number;
unstaking_time: number;
};
/**
*
* Check if the QueryNodeParamsResponse object is valid
* @returns {boolean} - True or false.
* @memberof QueryNodeParamsResponse
*/
isValid(): boolean;
}