decred.org/dcrdex@v1.0.5/tatanka/tanka/reputation.go (about)

     1  // This code is available on the terms of the project LICENSE.md file,
     2  // also available online at https://blueoakcouncil.org/license/1.0.0.
     3  
     4  package tanka
     5  
     6  import (
     7  	"time"
     8  
     9  	"decred.org/dcrdex/dex"
    10  )
    11  
    12  const (
    13  	MaxReputationEntries = 100
    14  	TierIncrement        = 20
    15  	MaxScore             = MaxReputationEntries
    16  	EpochLength          = time.Second * 15
    17  )
    18  
    19  type Reputation struct {
    20  	Score  int16
    21  	Points []int8
    22  }
    23  
    24  type Bond struct {
    25  	PeerID     PeerID    `json:"peerID"`
    26  	AssetID    uint32    `json:"assetID"`
    27  	CoinID     dex.Bytes `json:"coinID"`
    28  	Strength   uint64    `json:"strength"`
    29  	Expiration time.Time `json:"expiration"`
    30  }
    31  
    32  type HTLCAudit struct{}