Anoma.Node.Intents.IntentPool (Anoma v0.32.0)
I am the intent pool for the Anoma node. m1dnight still has to write these docs.
Summary
Functions
Returns a specification to start this module under a supervisor.
I return the list of current intents.
I add a new intent to the intent pool.
I remove an intent from the intent pool. If the intent does not exist nothing happens.
Types
@type t() :: %Anoma.Node.Intents.IntentPool{ cms_set: MapSet.t(binary()), intents: MapSet.t(Anoma.RM.Intent.t()), nlfs_set: MapSet.t(binary()), node_id: String.t() | nil }
I am the state of the intent pool.
Fields
:intents
- The intents in the pool.:node_id
- The ID of the Node.:nlfs_set
- The set of known nullifiers.:cms_set
- The set of known commitments.
Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
intents(node_id)
I return the list of current intents.
Link to this function
new_intent(node_id, intent)
I add a new intent to the intent pool.
Link to this function
reject_intents(intents, set)
Link to this function
remove_intent(node_id, intent)
I remove an intent from the intent pool. If the intent does not exist nothing happens.
Link to this function