-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpayments.go
52 lines (46 loc) · 1.62 KB
/
payments.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
package eclair
type PaymentRelayed struct {
Type string `json:"type"`
AmountIn int `json:"amountIn"`
AmountOut int `json:"amountOut"`
PaymentHash string `json:"paymentHash"`
FromChannelId string `json:"fromChannelId"`
ToChannelId string `json:"toChannelId"`
Timestamp Timestamp `json:"timestamp"`
}
type PaymentReceived struct {
Type string `json:"type"`
PaymentHash string `json:"paymentHash"`
Parts []PaymentPart `json:"parts"`
}
type PaymentFailed struct {
Type string `json:"type"`
ID string `json:"id"`
PaymentHash string `json:"paymentHash"`
Failures []Failure `json:"failures"`
Timestamp Timestamp `json:"timestamp"`
}
type PaymentSent struct {
Type string `json:"type"`
ID string `json:"id"`
PaymentHash string `json:"paymentHash"`
PaymentPreimage string `json:"paymentPreimage"`
RecipientAmount int `json:"recipientAmount"`
RecipientNodeId string `json:"recipientNodeId"`
Parts []PaymentPart `json:"parts"`
}
type PaymentPart struct {
ID string `json:"id"`
Amount int `json:"amount"`
FeesPaid int `json:"feesPaid"`
FromChannelId string `json:"fromChannelId"`
ToChannelId string `json:"toChannelId"`
Timestamp Timestamp `json:"timestamp"`
}
type PaymentSettlingOnchain struct {
Type string `json:"type"`
ID string `json:"id"`
Amount int `json:"amount"`
PaymentHash string `json:"paymentHash"`
Timestamp Timestamp `json:"timestamp"`
}