forked from archway-network/valuter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
30 lines (24 loc) · 919 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package winners
import (
"github.com/celestiaorg/valuter/participants"
"github.com/celestiaorg/valuter/validators"
)
type Winner struct {
Address string // Account Address
Rewards uint64 // Total Reward of a winner
ParticipantData participants.ParticipantRecord // If the information of this winner account if verified
ValidatorInfo validators.ValidatorInfo // If the winner is a validator, the data will be set here
}
type hashMapType map[string]int // This map is used for quick search { string: Winner.Address, int: index to the item in the WinnersList.list slice}
type WinnersList struct {
list []Winner // To keep the order of items we use the int index
hashMap hashMapType
}
type VerificationDataType struct { //map[email]...
Email string
KYCId string
}
type WinnerChallenge struct {
Challenge string
Rewards uint64
}