UNPKG

aptos

Version:
50 lines (46 loc) 1.36 kB
/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Address } from './Address'; import type { Event } from './Event'; import type { HashValue } from './HashValue'; import type { TransactionPayload } from './TransactionPayload'; import type { TransactionSignature } from './TransactionSignature'; import type { U64 } from './U64'; import type { WriteSetChange } from './WriteSetChange'; /** * A transaction submitted by a user to change the state of the blockchain */ export type UserTransaction = { version: U64; hash: HashValue; state_change_hash: HashValue; event_root_hash: HashValue; state_checkpoint_hash?: HashValue; gas_used: U64; /** * Whether the transaction was successful */ success: boolean; /** * The VM status of the transaction, can tell useful information in a failure */ vm_status: string; accumulator_root_hash: HashValue; /** * Final state of resources changed by the transaction */ changes: Array<WriteSetChange>; sender: Address; sequence_number: U64; max_gas_amount: U64; gas_unit_price: U64; expiration_timestamp_secs: U64; payload: TransactionPayload; signature?: TransactionSignature; /** * Events generated by the transaction */ events: Array<Event>; timestamp: U64; };