@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
33 lines (32 loc) • 938 B
TypeScript
import { RelayResponse } from "../output";
export declare class MajorityResponse {
/**
*
* Creates a MajorityResponse object using a JSON string
* @param {String} json - JSON string.
* @returns {MajorityResponse} - MajorityResponse object.
* @memberof MajorityResponse
*/
static fromJSON(json: string): MajorityResponse;
readonly relays: RelayResponse[];
/**
* Majority Response.
* @constructor
* @param {RelayResponse[]} relays - Array of relay response.
*/
constructor(relays: RelayResponse[]);
/**
*
* Creates a JSON object with the MajorityResponse properties
* @returns {JSON} - JSON Object.
* @memberof MajorityResponse
*/
toJSON(): RelayResponse[];
/**
*
* Check if the MajorityResponse object is valid
* @returns {boolean} - True or false.
* @memberof MajorityResponse
*/
isValid(): boolean;
}