-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
121 lines (105 loc) · 2.66 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package types
import (
"github.com/cosmos/ibc-go/modules/core/exported"
)
type Proof struct {
Height exported.Height
Data []byte
}
type MsgCreateClient struct {
ClientType string
Height exported.Height
ClientStateBytes []byte
ConsensusStateBytes []byte
}
type MsgUpdateClient struct {
ClientID string
Header []byte
}
type MsgConnectionOpenInit struct {
ClientID string
CounterpartyClientID string
CounterpartyKeyPrefix []byte
DelayPeriod uint64
Version exported.Version
Signer string
}
type MsgConnectionOpenTry struct {
ClientID string
PreviousConnectionID string
ClientStateBytes []byte
CounterpartyClientID string
CounterpartyConnectionID string
CounterpartyKeyPrefix []byte
DelayPeriod uint64
Versions []exported.Version
ProofInit *Proof
ProofClient *Proof
ProofConsensus *Proof
ConsensusHeight exported.Height
Signer string
}
type MsgConnectionOpenAck struct {
ConnectionID string
CounterpartyConnectionID string
Version exported.Version
ClientStateBytes []byte
ProofTry *Proof
ProofClient *Proof
ProofConsensus *Proof
ConsensusHeight exported.Height
Signer string
}
type MsgConnectionOpenConfirm struct {
ConnectionID string
ProofAck *Proof
Signer string
}
type MsgChannelOpenInit struct {
PortID string
Order ChannelOrder
CounterpartyPortID string
ConnectionHops []string
Version string
Signer string
}
type MsgChannelOpenTry struct {
PortID string
PreviousChannelID string
Ordering ChannelOrder
CounterpartyChannelID string
CounterpartyPortID string
ConnectionHops []string
Version string
CounterpartyVersion string
ProofInit *Proof
Signer string
}
type MsgChannelOpenAck struct {
PortID string
ChannelID string
CounterpartyChannelID string
CounterpartyVersion string
ProofTry *Proof
Signer string
}
type MsgChannelOpenConfirm struct {
PortID string
ChannelID string
ProofAck *Proof
Signer string
}
type ChannelOrder int32
const (
NONE ChannelOrder = 0
UNORDERED ChannelOrder = 1
ORDERED ChannelOrder = 2
)
type ChannelState int32
const (
UNINITIALIZED ChannelState = 0
INIT ChannelState = 1
TRYOPEN ChannelState = 2
OPEN ChannelState = 3
CLOSED ChannelState = 4
)