-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchannel.go
37 lines (29 loc) · 951 Bytes
/
channel.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
package ibc
import "github.com/DE-labtory/ibc/spec"
// Channel is a data structure on one chain storing channel metadata. (temporarily)
type Channel struct {
state spec.ChannelState
ordering spec.ChannelOrder
counterPartyPortIdentifier spec.Identifier
counterPartyChannelIdentifier spec.Identifier
connectionHops []spec.Identifier
version string
}
func (c *Channel) getState() spec.ChannelState {
return c.state
}
func (c *Channel) getOrdering() spec.ChannelOrder {
return c.ordering
}
func (c *Channel) getCounterPartyPortIdentifier() spec.Identifier {
return c.counterPartyPortIdentifier
}
func (c *Channel) getCounterPartyChannelIdentifer() spec.Identifier {
return c.counterPartyChannelIdentifier
}
func (c *Channel) getConnectionHops() []spec.Identifier {
return c.connectionHops
}
func (c *Channel) getVersion() string {
return c.version
}