Anoma.Node.Transaction.Shard.Cell (Anoma v0.35.0)
Summary
Functions
Checks if a reservation request conflicts with existing watermarks.
Types
@type height() :: non_neg_integer()
The height associated with an operation.
@type t() :: %Anoma.Node.Transaction.Shard.Cell{ details: %{required(height()) => Anoma.Node.Transaction.Shard.Detail.t()}, watermarks: watermarks() }
I represent a cell within a shard
@type watermarks() :: %{write: height()}
The watermark type
Functions
@spec add_pending(t(), height(), GenServer.from()) :: t()
@spec advance_watermark(watermarks(), height()) :: watermarks()
Checks if a reservation request conflicts with existing watermarks.
@spec detail_at(t(), height()) :: Anoma.Node.Transaction.Shard.Detail.t()
@spec replace_detail(t(), height(), (Anoma.Node.Transaction.Shard.Detail.t() -> {:error, atom()} | {:ok, Anoma.Node.Transaction.Shard.Detail.t()})) :: {:ok, t()} | {:error, atom()}
@spec update_detail(t(), height(), (Anoma.Node.Transaction.Shard.Detail.t() -> Anoma.Node.Transaction.Shard.Detail.t())) :: t()