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

block_event()

I serialize an empty block event.

block_event_with_order_and_round()

@spec block_event_with_order_and_round() ::
  Anoma.Node.Transaction.Mempool.Events.BlockEvent.t()

I serialize an empty block event.

consensus_event()

I serialize a consensus event with an empty list of transaction ids.

consensus_event_with_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.

tx_event()

I test the json encoding of an empty tx event

tx_event_with_values()

@spec tx_event_with_values() :: Anoma.Node.Transaction.Mempool.Events.TxEvent.t()

I test the json encoding of a tx event with a tx