Trait diem_types::transaction::TransactionInfoTrait[][src]

pub trait TransactionInfoTrait: Clone + CryptoHash + Debug + Display + Eq + Serialize + DeserializeOwned {
    fn new(
        transaction_hash: HashValue,
        state_root_hash: HashValue,
        event_root_hash: HashValue,
        gas_used: u64,
        status: KeptVMStatus
    ) -> Self;
fn transaction_hash(&self) -> HashValue;
fn state_root_hash(&self) -> HashValue;
fn event_root_hash(&self) -> HashValue;
fn gas_used(&self) -> u64;
fn status(&self) -> &KeptVMStatus; }

Required methods

Constructs a new TransactionInfo object using transaction hash, state root hash and event root hash.

Returns the hash of this transaction.

Returns root hash of Sparse Merkle Tree describing the world state at the end of this transaction.

Returns the root hash of Merkle Accumulator storing all events emitted during this transaction.

Returns the amount of gas used by this transaction.

Resturns the Status from the VM for this transaction.

Implementors