Anoma.Node.Examples.ETransaction (Anoma v0.35.1)
Summary
Functions
I verify that Backends.emit_value/3 returns the wrapped result
rather than the bare :ok from EventBroker.event/1.
I return an ETransaction struct that holds an example transaction.
I create a random transaction id.
I verify that Ordering.reserve/3 for a purely read-only
transaction preserves the reservation and shard addresses in
Ordering state.
I return an ETransaction struct that holds an example transaction.
I verify that shard watermarks advance for keys that are only read (not written) within a block.
Types
@type t() :: %Anoma.Node.Examples.ETransaction{ backend: Anoma.Node.Transaction.Backends.backend() | nil, id: (binary() | nil) | nil, noun: Noun.t() | nil, result: Anoma.Node.Transaction.Mempool.tx_result() | nil }
Functions
@spec bluf() :: Noun.t()
@spec emit_value_returns_result() :: :ok
I verify that Backends.emit_value/3 returns the wrapped result
rather than the bare :ok from EventBroker.event/1.
I return an ETransaction struct that holds an example transaction.
@spec random_transaction_id() :: String.t()
I create a random transaction id.
I verify that Ordering.reserve/3 for a purely read-only
transaction preserves the reservation and shard addresses in
Ordering state.
@spec recieve_round_event(String.t(), non_neg_integer()) :: :ok | :error_tx
@spec simple_transaction() :: t()
I return an ETransaction struct that holds an example transaction.
@spec start_storage(String.t()) :: GenServer.on_start()
@spec start_tx_module(String.t()) :: Anoma.Node.Examples.ENode.t() | any()
@spec trivial_transparent_transaction() :: Noun.t()
@spec trivial_transparent_transaction_no_eph() :: Noun.t()
I verify that shard watermarks advance for keys that are only read (not written) within a block.
Two transactions each read key ["a"] but write to different keys. After ordering, the shard for ["a"] should have its write watermark advanced so that reads at the block height proceed.