-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.go
48 lines (39 loc) · 1.27 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package cometbft_v37
import (
abciTypes "github.com/KYVENetwork/cometbft/v37/abci/types"
cometCfg "github.com/KYVENetwork/cometbft/v37/config"
cometState "github.com/KYVENetwork/cometbft/v37/state"
cometTypes "github.com/KYVENetwork/cometbft/v37/types"
)
type Block = cometTypes.Block
type LightBlock = cometTypes.LightBlock
type Snapshot = abciTypes.Snapshot
type Config = cometCfg.Config
type GenesisDoc = cometTypes.GenesisDoc
type TendermintValue struct {
Block struct {
Block *Block `json:"block"`
} `json:"block"`
}
type TendermintDataItem struct {
Key string `json:"key"`
Value TendermintValue `json:"value"`
}
type TendermintBsyncDataItem struct {
Key string `json:"key"`
Value *Block `json:"value"`
}
type TendermintBundle = []TendermintDataItem
type TendermintBsyncBundle = []TendermintBsyncDataItem
type TendermintSsyncBundle = []TendermintSsyncDataItem
type TendermintSsyncDataItem struct {
Key string `json:"key"`
Value struct {
Snapshot *abciTypes.Snapshot `json:"snapshot"`
Block *Block `json:"block"`
SeenCommit *cometTypes.Commit `json:"seenCommit"`
State *cometState.State `json:"state"`
ChunkIndex uint32 `json:"chunkIndex"`
Chunk []byte `json:"chunk"`
} `json:"value"`
}