Anoma.Node.Examples.Serializing.Events.Mempool (Anoma v0.34.0)
I define examples on how to serialize events to json.
I am merely a test suite, rather than examples.
Summary
Functions
I serialize an empty block event.
I serialize an empty block event.
I serialize a consensus event with an empty list of transaction ids.
I serialize a consensus event with an empty list of transaction ids.
I test the json encoding of an empty tx event
I test the json encoding of a tx event with a tx
Functions
@spec block_event() :: Anoma.Node.Transaction.Mempool.Events.BlockEvent.t()
I serialize an empty block event.
@spec block_event_with_order_and_round() :: Anoma.Node.Transaction.Mempool.Events.BlockEvent.t()
I serialize an empty block event.
@spec consensus_event() :: Anoma.Node.Transaction.Mempool.Events.ConsensusEvent.t()
I serialize a consensus event with an empty list of transaction ids.
@spec consensus_event_with_ids() :: Anoma.Node.Transaction.Mempool.Events.ConsensusEvent.t()
I serialize a consensus event with an empty list of transaction ids.
@spec tx_event() :: Anoma.Node.Transaction.Mempool.Events.TxEvent.t()
I test the json encoding of an empty tx event
@spec tx_event_with_values() :: Anoma.Node.Transaction.Mempool.Events.TxEvent.t()
I test the json encoding of a tx event with a tx