# Functions
NewInstance returns a new instance of XMRTaker.
# Constants
EventETHClaimedType is triggered when the maker claims their ETH from the contract.
EventExitType is triggered by the protocol "exiting", which may happen via a swap cancellation via the RPC endpoint, or from the counterparty disconnecting from us on the p2p network.
EventKeysReceivedType is triggered when we receive the XMR maker's swap keys, allowing us to initiate the swap on-chain.
EventNoneType is set as the "nextExpectedEvent" once the swap has exited.
EventShouldRefundType is triggered when we should refund, either because we are nearing the timeout1 threshold and the maker hasn't locked XMR, or because we've reached the timeout2 threshold and the maker hasn't claimed the ETH.
EventXMRLockedType is triggered after we verify that the maker locked the XMR for the swap.
# Structs
Config contains the configuration values for a new XMRTaker instance.
EventETHClaimed is the third expected event.
EventExit is an optional event.
EventKeysReceived is the first expected event.
EventShouldRefund is an optional event.
EventXMRLocked is the second expected event.
Instance implements the functionality that will be used by a user who owns ETH and wishes to swap for XMR.
# Interfaces
Event represents a swap state event.
# Type aliases
EventType represents an event that occurs which moves the swap "state machine" to its next state.