pub struct TransactionList { /* private fields */ }
Expand description

A list contains a series of transactions and appropriate indexers.

This structure exposes a virtual merkle-tree in the following form:

0: event_hashes 1: offset 3: user_indexer 4: contract_indexer 5: token_indexer

      ROOT
     /    \
    /      \
   V        V
  /  \     /  \
 0    1   3    V
              / \
             4   5

Implementations

Create a new list with the given global offset.

Return the principal id of the contract we’re storing transactions for.

Return the total number of transactions.

Return the total number of items in this list.

Returns tru if there are no events in this list.

Try to insert an event into the list.

Return the transactions associated with a user’s principal id at the given page.

Return the last page number associated with the given user.

Return the transactions associated with a token’s principal id at the given page.

Return the last page number associated with the given token contract.

Return the transactions for a specific token.

Return the witness that can be used to prove the response from get_transactions_for_user.

Return the witness that can be used to prove the response from get_transactions_for_token.

Return the witness that can be used to prove the response from get_transactions_for_token.

Return a transaction by its global id.

Return a witness which proves the response returned by get_transaction.

Trait Implementations

This method should return the root hash of this hash tree. Must be equivalent to as_hash_tree().reconstruct(). Read more

Constructs a hash tree corresponding to the data.

Deserialize this value from the given Serde deserializer. Read more

Executes the destructor for this type. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.