-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchannels.go
More file actions
30 lines (26 loc) · 913 Bytes
/
channels.go
File metadata and controls
30 lines (26 loc) · 913 Bytes
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
package eclair
type ChannelCreated struct {
Type string `json:"type"`
RemoteNodeId string `json:"remoteNodeId"`
IsInitiator bool `json:"isInitiator"`
TemporaryChannelId string `json:"temporaryChannelId"`
InitialFeeRatePerKw int `json:"initialFeeratePerKw"`
FundingTxFeeRatePerKw int `json:"fundingTxFeeratePerKw"`
}
type ChannelOpened struct {
Type string `json:"type"`
RemoteNodeId string `json:"remoteNodeId"`
ChannelId string `json:"channelId"`
}
type ChannelStateChanged struct {
Type string `json:"type"`
ChannelId string `json:"channelId"`
RemoteNodeId string `json:"remoteNodeId"`
PreviousState string `json:"previousState"`
CurrentState string `json:"currentState"`
}
type ChannelClosed struct {
Type string `json:"type"`
ChannelId string `json:"channelId"`
ClosingType string `json:"closingType"`
}