UNPKG

@hiero-ledger/sdk

Version:
77 lines (76 loc) 2.01 kB
/** * Response when the client sends the node CryptoGetInfoQuery. */ export default class FileInfo { /** * @internal * @param {HieroProto.proto.FileGetInfoResponse.IFileInfo} info * @returns {FileInfo} */ static _fromProtobuf(info: HieroProto.proto.FileGetInfoResponse.IFileInfo): FileInfo; /** * @param {Uint8Array} bytes * @returns {FileInfo} */ static fromBytes(bytes: Uint8Array): FileInfo; /** * @private * @param {object} props * @param {FileId} props.fileId * @param {Long} props.size * @param {Timestamp} props.expirationTime * @param {boolean} props.isDeleted * @param {KeyList} props.keys * @param {string} props.fileMemo * @param {LedgerId|null} props.ledgerId */ private constructor(); /** * The ID of the file for which information is requested. * * @readonly */ readonly fileId: FileId; /** * Number of bytes in contents. * * @readonly */ readonly size: Long; /** * The current time at which this account is set to expire. * * @readonly */ readonly expirationTime: Timestamp; /** * True if deleted but not yet expired. * * @readonly */ readonly isDeleted: boolean; /** * One of these keys must sign in order to delete the file. * All of these keys must sign in order to update the file. * * @readonly */ readonly keys: KeyList; fileMemo: string; ledgerId: LedgerId | null; /** * @internal * @returns {HieroProto.proto.FileGetInfoResponse.IFileInfo} */ _toProtobuf(): HieroProto.proto.FileGetInfoResponse.IFileInfo; /** * @returns {Uint8Array} */ toBytes(): Uint8Array; } import FileId from "./FileId.js"; import Long from "long"; import Timestamp from "../Timestamp.js"; import KeyList from "../KeyList.js"; import LedgerId from "../LedgerId.js"; import * as HieroProto from "@hashgraph/proto";