Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

client.gno

0.66 Kb · 26 lines
 1package types
 2
 3type Status uint8
 4
 5const (
 6	StatusUnknown Status = 0
 7	StatusActive  Status = 1
 8	StatusExpired Status = 2
 9	StatusFrozen  Status = 3
10)
11
12// ConsensusStateUpdate carries the height-stamped consensus and client state
13// bytes a light client returns after verifying a header update.
14type ConsensusStateUpdate struct {
15	Height              Height
16	ConsensusStateBytes []byte
17	ClientStateBytes    []byte
18}
19
20func NewConsensusStateUpdate(height Height, consensusStateBytes, clientStateBytes []byte) ConsensusStateUpdate {
21	return ConsensusStateUpdate{
22		Height:              height,
23		ConsensusStateBytes: consensusStateBytes,
24		ClientStateBytes:    clientStateBytes,
25	}
26}