-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconnection.go
37 lines (29 loc) · 1005 Bytes
/
connection.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"
// Connection is a temporarily implementation ConnectionEnd.
type Connection struct {
state spec.ConnectionState
counterPartyConnectionIdentifer spec.Identifier
counterPartyPrefix spec.CommitmentPrefix
clientIdentifier spec.Identifier
counterPartyClientIdentifer spec.Identifier
version []string
}
func (c *Connection) getState() spec.ConnectionState {
return c.state
}
func (c *Connection) getCounterPartyPrefix() spec.CommitmentPrefix {
return c.counterPartyPrefix
}
func (c *Connection) getCounterPartyConnectionIdentifer() spec.Identifier {
return c.counterPartyConnectionIdentifer
}
func (c *Connection) getCounterPartyClientIdentifer() spec.Identifier {
return c.counterPartyClientIdentifer
}
func (c *Connection) getClientIdentifer() spec.Identifier {
return c.clientIdentifier
}
func (c *Connection) getVersion() []string {
return c.version
}