-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.go
43 lines (36 loc) · 956 Bytes
/
type.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
34
35
36
37
38
39
40
41
42
43
package arweave
type PeerList []string
type NetworkInfo struct {
Network string `json:"network"`
Version int64 `json:"version"`
Release int64 `json:"release"`
Height int64 `json:"height"`
Current string `json:"current"`
Blocks int64 `json:"blocks"`
Peers int64 `json:"peers"`
QueueLength int64 `json:"queue_length"`
NodeStateLatency int64 `json:"node_state_latency"`
}
type Chunks struct {
DataRoot []byte `json:"data_root"`
Chunks []Chunk `json:"chunks"`
Proofs []*Proof `json:"proofs"`
}
type Chunk struct {
DataHash []byte
MinByteRange int
MaxByteRange int
}
type Proof struct {
Offest int
Proof []byte
}
type OffsetInfo struct {
Offset BigInt `json:"offset"`
Size BigInt `json:"size"`
}
type ChunkData struct {
Chunk Base64String `json:"chunk"`
TxPath string `json:"tx_path"`
DataPath string `json:"data_path"`
}