Re-emission settings, if provided.
Re-emission settings, if provided. Used to consider re-emission tokens stored in boxes being spent.
A method which is selecting boxes to spend in order to collect needed amounts of ergo tokens and assets.
A method which is selecting boxes to spend in order to collect needed amounts of ergo tokens and assets.
- unspent boxes to choose from.
- user-provided filter function for boxes. From inputBoxes, only ones to be chosen for which filterFn(box) returns true
- ergo balance to be met
- assets balances to be met
Left(error) if select() is failing to pick appropriate boxes, otherwise Right(res), where res contains boxes to spend as well as monetary values and assets for boxes containing change (wrapped in a special BoxSelectionResult class).
Helper method to get total amount of re-emission tokens stored in input boxes
.
An interface which is exposing a method to select unspent boxes according to target amounts in Ergo tokens and assets and possible user-defined filter. The interface could have many instantiations implementing different strategies.