package xmrtaker

import (
	"errors"
)

var (
	// various instance and swap errors
	errNoOngoingSwap           = errors.New("no ongoing swap with given offer ID")
	errUnexpectedMessageType   = errors.New("unexpected message type")
	errMissingKeys             = errors.New("did not receive XMRMaker's public spend or private view key")
	errMissingAddress          = errors.New("did not receive XMRMaker's address")
	errNoClaimLogsFound        = errors.New("no Claimed logs found")
	errCannotRefund            = errors.New("swap is not at a stage where it can refund")
	errNilMessage              = errors.New("message is nil")
	errIncorrectMessageType    = errors.New("received unexpected message")
	errNoLockedXMRAddress      = errors.New("got empty address for locked XMR")
	errClaimTxHasNoLogs        = errors.New("claim transaction has no logs")
	errNoPublicKeysSet         = errors.New("our public keys aren't set")
	errCounterpartyKeysNotSet  = errors.New("counterparty's keys aren't set")
	errSwapInstantiationNoLogs = errors.New("expected 1 log, got 0")
	errSwapCompleted           = errors.New("swap has already completed")

	// inititation errors
	errProtocolAlreadyInProgress = errors.New("protocol already in progress")
	errBalanceTooLow             = errors.New("eth balance lower than amount to be provided")
	errNoSwapContractSet         = errors.New("no swap contract found")
	errMustProvideWalletAddress  = errors.New("must provide wallet address if transfer back is set")
)
