Documentation ¶
Index ¶
Constants ¶
View Source
const ( SoftMode int = 0 MockMode int = 1 HardMode int = 2 )
View Source
const WakuSwapID_v200 = protocol.ID("/vac/waku/swap/2.0.0-beta1")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwapOption ¶
type SwapOption func(*SwapParameters)
func DefaultOptions ¶
func DefaultOptions() []SwapOption
func WithMode ¶
func WithMode(mode int) SwapOption
func WithThreshold ¶
func WithThreshold(payment, disconnect int) SwapOption
type SwapParameters ¶
type SwapParameters struct {
// contains filtered or unexported fields
}
type WakuSwap ¶
func NewWakuSwap ¶
func NewWakuSwap(log *zap.Logger, opts ...SwapOption) *WakuSwap
Click to show internal directories.
Click to hide internal directories.