Versions in this module Expand all Collapse all v0 v0.7.1 Sep 14, 2022 v0.7.0 Jul 8, 2022 Changes in this version + var ErrDisconnectAllowanceCheckFailed = errors.New("settlement allowance below enforced amount") + var ErrNoPseudoSettlePeer = errors.New("settlement peer not found") + var ErrSettlementTooSoon = errors.New("settlement too soon") + var ErrTimeOutOfSync = errors.New("settlement allowance timestamps differ beyond tolerance") + var SettlementReceivedPrefix = "pseudosettle_total_received_" + var SettlementSentPrefix = "pseudosettle_total_sent_" + type Service struct + func New(streamer p2p.Streamer, logger logging.Logger, store storage.StateStorer, ...) *Service + func (s *Service) Metrics() []prometheus.Collector + func (s *Service) Pay(ctx context.Context, peer swarm.Address, amount, checkAllowance *big.Int) (*big.Int, int64, error) + func (s *Service) Protocol() p2p.ProtocolSpec + func (s *Service) SetAccounting(accounting settlement.Accounting) + func (s *Service) SettlementsReceived() (map[string]*big.Int, error) + func (s *Service) SettlementsSent() (map[string]*big.Int, error) + func (s *Service) TotalReceived(peer swarm.Address) (totalReceived *big.Int, err error) + func (s *Service) TotalSent(peer swarm.Address) (totalSent *big.Int, err error)