package
0.4.3
Repository: https://github.com/athanorlabs/atomic-swap.git
Documentation: pkg.go.dev

# Packages

Package offers provides management of the offers being made by a swapd instance.

# Functions

NewInstance returns a new *xmrmaker.Instance.

# Constants

EventContractReadyType is triggered when the taker sets the contract to "ready" or timeout1 is reached.
EventETHLockedType is triggered when the taker notifies us that the ETH is locked in the smart contract.
EventETHRefundedType is triggered when the taker refunds the contract-locked ETH back to themselves.
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.
EventNoneType is set as the "nextExpectedEvent" once the swap has exited.

# Structs

Config contains the configuration values for a new XMRMaker instance.
EventContractReady is the second expected event.
EventETHLocked is the first expected event.
EventETHRefunded is an optional event.
EventExit is an optional event.
Instance implements the functionality that will be needed by a user who owns XMR and wishes to swap for ETH.

# Interfaces

Event represents a swap state event.
Host contains required network functionality.

# Type aliases

EventType represents an event that occurs which moves the swap "state machine" to its next state.