Versions in this module Expand all Collapse all v1 v1.8.19 Nov 28, 2018 Changes in this version + type Swap struct + func New(stateStore state.Store) (swap *Swap) + func (s *Swap) Add(amount int64, peer *protocols.Peer) (err error) + func (swap *Swap) Close() + func (swap *Swap) GetPeerBalance(peer enode.ID) (int64, error)