import _m0 from "protobufjs/minimal"; import { AccountID, ContractID, FileID, ScheduleID, TokenID, TopicID, TransactionID } from "./basic_types"; import { ExchangeRateSet } from "./exchange_rate"; import { ResponseCodeEnum } from "./response_code"; export declare const protobufPackage = "proto"; /** * The summary of a transaction's result so far. If the transaction has not reached consensus, this * result will be necessarily incomplete. */ export interface TransactionReceipt { /** * The consensus status of the transaction; is UNKNOWN if consensus has not been reached, or if * the associated transaction did not have a valid payer signature */ status: ResponseCodeEnum; /** In the receipt of a CryptoCreate, the id of the newly created account */ accountID: AccountID | undefined; /** In the receipt of a FileCreate, the id of the newly created file */ fileID: FileID | undefined; /** In the receipt of a ContractCreate, the id of the newly created contract */ contractID: ContractID | undefined; /** The exchange rates in effect when the transaction reached consensus */ exchangeRate: ExchangeRateSet | undefined; /** In the receipt of a ConsensusCreateTopic, the id of the newly created topic. */ topicID: TopicID | undefined; /** * In the receipt of a ConsensusSubmitMessage, the new sequence number of the topic that * received the message */ topicSequenceNumber: number; /** * In the receipt of a ConsensusSubmitMessage, the new running hash of the topic that received * the message. This 48-byte field is the output of a particular SHA-384 digest whose input * data are determined by the value of the topicRunningHashVersion below. The bytes of each * uint64 or uint32 are to be in Big-Endian format. * * IF the topicRunningHashVersion is '0' or '1', then the input data to the SHA-384 digest are, * in order: * --- * 1. The previous running hash of the topic (48 bytes) * 2. The topic's shard (8 bytes) * 3. The topic's realm (8 bytes) * 4. The topic's number (8 bytes) * 5. The number of seconds since the epoch before the ConsensusSubmitMessage reached * consensus (8 bytes) * 6. The number of nanoseconds since 5. before the ConsensusSubmitMessage reached * consensus (4 bytes) * 7. The topicSequenceNumber from above (8 bytes) * 8. The message bytes from the ConsensusSubmitMessage (variable). * * IF the topicRunningHashVersion is '2', then the input data to the SHA-384 digest are, in * order: * --- * 1. The previous running hash of the topic (48 bytes) * 2. The topicRunningHashVersion below (8 bytes) * 3. The topic's shard (8 bytes) * 4. The topic's realm (8 bytes) * 5. The topic's number (8 bytes) * 6. The number of seconds since the epoch before the ConsensusSubmitMessage reached * consensus (8 bytes) * 7. The number of nanoseconds since 6. before the ConsensusSubmitMessage reached * consensus (4 bytes) * 8. The topicSequenceNumber from above (8 bytes) * 9. The output of the SHA-384 digest of the message bytes from the * consensusSubmitMessage (48 bytes) * * Otherwise, IF the topicRunningHashVersion is '3', then the input data to the SHA-384 digest * are, in order: * --- * 1. The previous running hash of the topic (48 bytes) * 2. The topicRunningHashVersion below (8 bytes) * 3. The payer account's shard (8 bytes) * 4. The payer account's realm (8 bytes) * 5. The payer account's number (8 bytes) * 6. The topic's shard (8 bytes) * 7. The topic's realm (8 bytes) * 8. The topic's number (8 bytes) * 9. The number of seconds since the epoch before the ConsensusSubmitMessage reached * consensus (8 bytes) * 10. The number of nanoseconds since 9. before the ConsensusSubmitMessage reached * consensus (4 bytes) * 11. The topicSequenceNumber from above (8 bytes) * 12. The output of the SHA-384 digest of the message bytes from the * consensusSubmitMessage (48 bytes) */ topicRunningHash: Uint8Array; /** * In the receipt of a ConsensusSubmitMessage, the version of the SHA-384 digest used to update * the running hash. */ topicRunningHashVersion: number; /** In the receipt of a CreateToken, the id of the newly created token */ tokenID: TokenID | undefined; /** * In the receipt of TokenMint, TokenWipe, TokenBurn, For fungible tokens - the current total * supply of this token. For non fungible tokens - the total number of NFTs issued for a given * tokenID */ newTotalSupply: number; /** In the receipt of a ScheduleCreate, the id of the newly created Scheduled Entity */ scheduleID: ScheduleID | undefined; /** * In the receipt of a ScheduleCreate or ScheduleSign that resolves to SUCCESS, the * TransactionID that should be used to query for the receipt or record of the relevant * scheduled transaction */ scheduledTransactionID: TransactionID | undefined; /** * In the receipt of a TokenMint for tokens of type NON_FUNGIBLE_UNIQUE, the serial numbers of * the newly created NFTs */ serialNumbers: number[]; } export declare const TransactionReceipt: { encode(message: TransactionReceipt, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TransactionReceipt; fromJSON(object: any): TransactionReceipt; toJSON(message: TransactionReceipt): unknown; create(base?: DeepPartial): TransactionReceipt; fromPartial(object: DeepPartial): TransactionReceipt; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends { $case: string; } ? { [K in keyof Omit]?: DeepPartial; } & { $case: T["$case"]; } : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {}; //# sourceMappingURL=transaction_receipt.d.ts.map