Versions in this module Expand all Collapse all v0 v0.0.0 Nov 5, 2018 Changes in this version + type Contract interface + Audit func() error + AuditSecret func() ([32]byte, error) + Initiate func() error + Redeem func([32]byte) error + Refund func() error + type ContractBuilder interface + BuildSwapContracts func(swap Swap) (Contract, Contract, error) + type Logger interface + LogDebug func(foundation.SwapID, string) + LogError func(foundation.SwapID, error) + LogInfo func(foundation.SwapID, string) + type Storage interface + DeletePendingSwap func(foundation.SwapID) error + InsertSwap func(swap Swap) error + PendingSwap func(foundation.SwapID) (Swap, error) + PendingSwaps func() ([]Swap, error) + type Swap struct + Password string + Secret [32]byte + func NewSwap(swapBlob foundation.SwapBlob, secret [32]byte, password string) Swap + type Swapper interface + Run func(done <-chan struct{}, swaps <-chan Swap, statuses chan<- foundation.SwapStatus) + func New(builder ContractBuilder, storage Storage, logger Logger) Swapper