@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
48 lines (47 loc) • 1.46 kB
TypeScript
/**
*
*
* @class PocketParams
*/
export declare class PocketParams {
/**
*
* Creates a PocketParams object using a JSON string
* @param {String} json - JSON string.
* @returns {PocketParams} - PocketParams object.
* @memberof PocketParams
*/
static fromJSON(json: string): PocketParams;
readonly sessionNodeCount: BigInt;
readonly proofWaitingPeriod: BigInt;
readonly supportedBlockchains: string[] | null;
readonly claimExpiration: BigInt;
/**
* PocketParams.
* @constructor
* @param {BigInt} sessionNodeCount - Session node count.
* @param {BigInt} proofWaitingPeriod - Proof waiting period.
* @param {string[]} supportedBlockchains - Supported blockchain hash array.
* @param {BigInt} claimExpiration - Claim expiration.
*/
constructor(sessionNodeCount: BigInt, proofWaitingPeriod: BigInt, supportedBlockchains: string[] | null, claimExpiration: BigInt);
/**
*
* Creates a JSON object with the PocketParams properties
* @returns {JSON} - JSON Object.
* @memberof PocketParams
*/
toJSON(): {
claim_expiration: number;
proof_waiting_period: number;
session_node_count: number;
supported_blockchains: string[] | null;
};
/**
*
* Check if the PocketParams object is valid
* @returns {boolean} - True or false.
* @memberof PocketParams
*/
isValid(): boolean;
}