-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdelegators.go
More file actions
23 lines (21 loc) · 870 Bytes
/
delegators.go
File metadata and controls
23 lines (21 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package data
// Delegator is a structure that is needed to store information about a delegator
type Delegator struct {
Address string `json:"address"`
Contract string `json:"contract"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
ActiveStake string `json:"activeStake"`
ActiveStakeNum float64 `json:"activeStakeNum"`
ShouldDelete bool `json:"-"`
UnDelegateInfo *UnDelegate `json:"-"`
WithdrawFundIDs []string `json:"-"`
}
// UnDelegate is a structure that is needed to store information about user unDelegate position
type UnDelegate struct {
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
ID string `json:"id"`
Value string `json:"value"`
ValueNum float64 `json:"valueNum"`
}