-
Notifications
You must be signed in to change notification settings - Fork 211
/
types.go
33 lines (29 loc) · 894 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
31
32
33
package checkpoint
type Checkpoint struct {
Version string `json:"version"`
Data InnerData `json:"data"`
}
type InnerData struct {
CheckpointId string `json:"id"`
Atxs []ShortAtx `json:"atxs"`
Accounts []Account `json:"accounts"`
}
type ShortAtx struct {
ID []byte `json:"id"`
Epoch uint32 `json:"epoch"`
CommitmentAtx []byte `json:"commitmentAtx"`
VrfNonce uint64 `json:"vrfNonce"`
NumUnits uint32 `json:"numUnits"`
BaseTickHeight uint64 `json:"baseTickHeight"`
TickCount uint64 `json:"tickCount"`
PublicKey []byte `json:"publicKey"`
Sequence uint64 `json:"sequence"`
Coinbase []byte `json:"coinbase"`
}
type Account struct {
Address []byte `json:"address"`
Balance uint64 `json:"balance"`
Nonce uint64 `json:"nonce"`
Template []byte `json:"template"`
State []byte `json:"state"`
}