Expand description
This module contains the ChannelActions trait defining HOPR channels operations.
An implementation of this trait is added to ChainActions which realizes the redemption operations via ActionQueue. There are 4 basic high-level on-chain functions in the ChannelActions trait:
All the functions do the necessary validations using the DB and then post the corresponding action into the ActionQueue. The functions return immediately, but provide futures that can be awaited in case the callers wishes to await the on-chain confirmation of the corresponding operation. See the details in ActionQueue on how the confirmation is realized by awaiting the respective SignificantChainEvent by the Indexer.
Traitsยง
- Channel
Actions - Gathers all channel related on-chain actions.