UNPKG

@pokt-network/pocket-js

Version:

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

42 lines (41 loc) 1.11 kB
/** * * * @class QueryUpgradeResponse */ export declare class QueryUpgradeResponse { /** * * Creates a QueryUpgradeResponse object using a JSON string * @param {String} json - JSON string. * @returns {QueryUpgradeResponse} - QueryUpgradeResponse object. * @memberof QueryUpgradeResponse */ static fromJSON(json: string): QueryUpgradeResponse; readonly height: BigInt; readonly version: string; /** * Query all parameters Response. * @constructor * @param {BigInt} height - Application parameter list. * @param {string} version - Auth parameter list. */ constructor(height: BigInt, version: string); /** * * Creates a JSON object with the QueryUpgradeResponse properties * @returns {JSON} - JSON Object. * @memberof QueryUpgradeResponse */ toJSON(): { height: number; version: string; }; /** * * Check if the QueryUpgradeResponse object is valid * @returns {boolean} - True or false. * @memberof QueryUpgradeResponse */ isValid(): boolean; }