UNPKG

@hashgraph/sdk

Version:
67 lines (66 loc) 1.86 kB
/** * @namespace proto * @typedef {import("@hiero-ledger/proto").proto.IContractLoginfo} HieroProto.proto.IContractLoginfo * @typedef {import("@hiero-ledger/proto").proto.IContractID} HieroProto.proto.IContractID */ /** * The log information for an event returned by a smart contract function call. One function call * may return several such events. */ export default class ContractLogInfo { /** * @internal * @param {HieroProto.proto.IContractLoginfo} info * @returns {ContractLogInfo} */ static _fromProtobuf(info: HieroProto.proto.IContractLoginfo): ContractLogInfo; /** * @param {object} props * @param {ContractId} props.contractId * @param {Uint8Array} props.bloom * @param {Uint8Array[]} props.topics * @param {Uint8Array} props.data */ constructor(props: { contractId: ContractId; bloom: Uint8Array; topics: Uint8Array[]; data: Uint8Array; }); /** * Address of a contract that emitted the event. * * @readonly */ readonly contractId: ContractId; /** * Bloom filter for a particular log. * * @readonly */ readonly bloom: Uint8Array<ArrayBufferLike>; /** * Topics of a particular event. * * @readonly */ readonly topics: Uint8Array<ArrayBufferLike>[]; /** * Event data. * * @readonly */ readonly data: Uint8Array<ArrayBufferLike>; /** * @internal * @returns {HieroProto.proto.IContractLoginfo} */ _toProtobuf(): HieroProto.proto.IContractLoginfo; } export namespace HieroProto { namespace proto { type IContractLoginfo = import("@hiero-ledger/proto").proto.IContractLoginfo; type IContractID = import("@hiero-ledger/proto").proto.IContractID; } } import ContractId from "./ContractId.js";