UNPKG

@pokt-network/pocket-js

Version:

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

64 lines (63 loc) 1.77 kB
import { Event } from "../.."; /** * * * @class ResponseDeliverTx */ export declare class ResponseDeliverTx { /** * * Creates a ResponseDeliverTx object using a JSON string * @param {String} json - JSON string. * @returns {ResponseDeliverTx} - ResponseDeliverTx object. * @memberof ResponseDeliverTx */ static fromJSON(json: string): ResponseDeliverTx; readonly code: number; readonly codespace: string; readonly data: string[]; readonly events: Event[]; readonly recipient: string; readonly signer: string; readonly messageType: string; readonly info: string; readonly log: string; /** * Creates a ResponseDeliverTx. * @constructor * @param {number} code - * @param {string[]} data - * @param {string} log - * @param {string} info - * @param {string} recipient - * @param {string} signer - * @param {string} messageType - * @param {Event[]} events - * @param {string} codespace - */ constructor(code: number, data: string[], log: string, info: string, recipient: string, signer: string, messageType: string, events: Event[], codespace: string); /** * * Creates a JSON object with the ResponseDeliverTx properties * @returns {JSON} - JSON Object. * @memberof ResponseDeliverTx */ toJSON(): { code: number; codespace: string; data: string[]; log: string; info: string; recipient: string; signer: string; messageType: string; events: object[]; }; /** * * Verify if all properties are valid * @returns {boolean} - True or false. * @memberof ResponseDeliverTx */ isValid(): boolean; }