UNPKG

@pokt-network/pocket-js

Version:

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

77 lines (76 loc) 2.23 kB
import { RelayResponse } from "../output"; export declare class MinorityResponse { /** * * Creates a MinorityResponse object using a JSON string * @param {String} json - JSON string. * @returns {MinorityResponse} - MinorityResponse object. * @memberof MinorityResponse */ static fromJSON(json: string): MinorityResponse; readonly relay: RelayResponse; /** * Minority Response. * @constructor * @param {Relay} relay - Array of relays. */ constructor(relay: RelayResponse); /** * * Creates a JSON object with the MinorityResponse properties * @returns {JSON} - JSON Object. * @memberof MinorityResponse */ toJSON(): { response: { payload: string; signature: string; proof: { entropy: number; session_block_height: number; servicer_pub_key: string; blockchain: string; aat: { version: string; app_pub_key: string; client_pub_key: string; signature: string; }; signature: string; request_hash: string; }; }; request: { payload: { data: string; method: string; path: string; headers: Record<string, string> | null | undefined; }; meta: { block_height: number; }; proof: { entropy: number; session_block_height: number; servicer_pub_key: string; blockchain: string; aat: { version: string; app_pub_key: string; client_pub_key: string; signature: string; }; signature: string; request_hash: string; }; }; }; /** * * Check if the MinorityResponse object is valid * @returns {boolean} - True or false. * @memberof MinorityResponse */ isValid(): boolean; }