@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
55 lines (54 loc) • 1.78 kB
TypeScript
export interface IAllParams {
paramKey: string;
paramValue: string;
}
/**
*
*
* @class QueryAllParamsResponse
*/
export declare class QueryAllParamsResponse {
/**
*
* Creates a QueryAllParamsResponse object using a JSON string
* @param {String} json - JSON string.
* @returns {QueryAllParamsResponse} - QueryAllParamsResponse object.
* @memberof QueryAllParamsResponse
*/
static fromJSON(json: string): QueryAllParamsResponse;
readonly appParams: IAllParams[];
readonly authParams: IAllParams[];
readonly govParams: IAllParams[];
readonly nodeParams: IAllParams[];
readonly pocketParams: IAllParams[];
/**
* Query all parameters Response.
* @constructor
* @param {IAllParams[]} appParams - Application parameter list.
* @param {IAllParams[]} authParams - Auth parameter list.
* @param {IAllParams[]} govParams - Gov parameter list.
* @param {IAllParams[]} nodeParams - Node parameter list.
* @param {IAllParams[]} pocketParams - Pocket parameter list.
*/
constructor(appParams: IAllParams[], authParams: IAllParams[], govParams: IAllParams[], nodeParams: IAllParams[], pocketParams: IAllParams[]);
/**
*
* Creates a JSON object with the QueryAllParamsResponse properties
* @returns {JSON} - JSON Object.
* @memberof QueryAllParamsResponse
*/
toJSON(): {
app_params: IAllParams[];
auth_params: IAllParams[];
gov_params: IAllParams[];
node_params: IAllParams[];
pocket_params: IAllParams[];
};
/**
*
* Check if the QueryAllParamsResponse object is valid
* @returns {boolean} - True or false.
* @memberof QueryAllParamsResponse
*/
isValid(): boolean;
}