Versions in this module Expand all Collapse all v0 v0.4.1 Dec 28, 2018 v0.4.0 Oct 11, 2018 Changes in this version + type InPayment interface + AutoCash func(cashInterval time.Duration, maxUncashed *big.Int) + Receive func(promise Promise) (*big.Int, error) + Stop func() + type OutPayment interface + AutoDeposit func(interval time.Duration, threshold, buffer *big.Int) + Issue func(amount *big.Int) (promise Promise, err error) + Stop func() + type Params struct + type Payment struct + Buys bool + In InPayment + Out OutPayment + Sells bool + type Profile struct + BuyAt *big.Int + DropAt uint + PayAt uint + SellAt *big.Int + type Promise interface + type Protocol interface + Drop func() + Pay func(int, Promise) + String func() string + type Strategy struct + AutoCashInterval time.Duration + AutoCashThreshold *big.Int + AutoDepositBuffer *big.Int + AutoDepositInterval time.Duration + AutoDepositThreshold *big.Int + type Swap struct + func New(local *Params, pm Payment, proto Protocol) (swap *Swap, err error) + func (swap *Swap) Add(n int) error + func (swap *Swap) Balance() int + func (swap *Swap) Receive(units int, promise Promise) error + func (swap *Swap) SetParams(local *Params) + func (swap *Swap) SetRemote(remote *Profile) + func (swap *Swap) Stop()