Anoma.Node.Examples.ESolver (Anoma v0.25.0)

I contain several examples on how to use the solver.

Summary

Functions

I insert a single transaction into the solver, which it cannot solve. I verify that the transaction is then in the unsolved list.

I create a single transaction and ask the solver to solve it. The transaction cannot be solved, so it should be in the unbalanced list when the solver returns.

I solve multiple intents that are valid when composed.

I solve multiple intents that are valid when composed.

Functions

Link to this function

solvable_transaction_via_intent_pool(enode \\ ENode.start_node())

I insert a single transaction into the solver, which it cannot solve. I verify that the transaction is then in the unsolved list.

Link to this function

solve_transaction()

@spec solve_transaction() :: boolean()

I create a single transaction and ask the solver to solve it. The transaction cannot be solved, so it should be in the unbalanced list when the solver returns.

Link to this function

solve_transactions()

@spec solve_transactions() :: boolean()

I solve multiple intents that are valid when composed.

Link to this function

solve_transactions_with_remainder()

@spec solve_transactions_with_remainder() :: boolean()

I solve multiple intents that are valid when composed.