github.com/lino-network/lino@v0.6.11/x/reputation/repv2/types.go (about) 1 package repv2 2 3 type Uid string 4 type Pid string 5 6 // Time in this package is an int64, unix timestamp, in seconds. 7 type Time int64 8 9 type bigInt = Int 10 11 type LinoCoin = bigInt 12 type IF = bigInt // Impact factor 13 type Rep = bigInt 14 15 type RoundId int64 16 17 // used in topN. 18 type PostIFPair struct { 19 Pid Pid `json:"p"` 20 SumIF IF `json:"s_if"` 21 } 22 23 // merged donation, used in userUnsettled. 24 type Donation struct { 25 Pid Pid `json:"p"` 26 Amount LinoCoin `json:"a"` 27 Impact IF `json:"i"` 28 }