lightning 4.14.1 → 4.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 4.14.1
3
+ ## 4.14.2
4
4
 
5
5
  - `getPayment`, `subscribeToPastPayment`: Add `pending` for pending payment details
6
6
 
@@ -21,8 +21,6 @@ export type SubscribeToRpcRequestsResult = {
21
21
  };
22
22
 
23
23
  export type SubscribeToRpcRequestsCommonEvent = {
24
- /** Call Id Number */
25
- call: number;
26
24
  /** Message Id Number */
27
25
  id: number;
28
26
  /** Base64 Encoded Macaroon String */
@@ -122,11 +120,17 @@ export type SubscribeToRpcRequestsPayViaRouteRequestEvent =
122
120
  };
123
121
  }>;
124
122
 
123
+ export type SubscribeToRpcRequestsRequestOrResponseEvent =
124
+ SubscribeToRpcRequestsCommonEvent & {
125
+ /** Call Id Number */
126
+ call: number;
127
+ };
128
+
125
129
  export type SubscribeToRpcRequestsRequestEvent =
126
- SubscribeToRpcRequestsCommonEvent;
130
+ SubscribeToRpcRequestsRequestOrResponseEvent;
127
131
 
128
132
  export type SubscribeToRpcRequestsResponseEvent =
129
- SubscribeToRpcRequestsCommonEvent;
133
+ SubscribeToRpcRequestsRequestOrResponseEvent;
130
134
 
131
135
  /**
132
136
  * Subscribe to RPC requests and their responses
@@ -66,7 +66,56 @@ export type SubscribeToPastPaymentFailedEvent = {
66
66
  is_route_not_found: boolean;
67
67
  };
68
68
 
69
- export type SubscribeToPastPaymentPayingEvent = {[key: string]: never};
69
+ export type SubscribeToPastPaymentPayingEvent = {
70
+ /** Payment Created At ISO 8601 Date String */
71
+ created_at: string;
72
+ /** Payment Destination Hex String */
73
+ destination: string;
74
+ /** Payment Hash Hex String */
75
+ id: string;
76
+ /** Total Millitokens Pending String */
77
+ mtokens: string;
78
+ paths: {
79
+ /** Total Fee Tokens Pending Number */
80
+ fee: number;
81
+ /** Total Fee Millitokens Pending String */
82
+ fee_mtokens: string;
83
+ hops: {
84
+ /** Standard Format Channel Id String */
85
+ channel: string;
86
+ /** Channel Capacity Tokens Number */
87
+ channel_capacity: number;
88
+ /** Fee Tokens Rounded Down Number */
89
+ fee: number;
90
+ /** Fee Millitokens String */
91
+ fee_mtokens: string;
92
+ /** Forward Tokens Number */
93
+ forward: number;
94
+ /** Forward Millitokens String */
95
+ forward_mtokens: string;
96
+ /** Public Key Hex String */
97
+ public_key: string;
98
+ /** Timeout Block Height Number */
99
+ timeout: number;
100
+ }[];
101
+ /** Total Millitokens Pending String */
102
+ mtokens: string;
103
+ /** Total Fee Tokens Pending Rounded Up Number */
104
+ safe_fee: number;
105
+ /** Total Tokens Pending, Rounded Up Number */
106
+ safe_tokens: number;
107
+ /** Expiration Block Height Number */
108
+ timeout: number;
109
+ }[];
110
+ /** BOLT 11 Encoded Payment Request String */
111
+ request?: string;
112
+ /** Total Tokens Pending, Rounded Up Number */
113
+ safe_tokens: number;
114
+ /** Expiration Block Height Number */
115
+ timeout?: number;
116
+ /** Total Tokens Pending Rounded Down Number */
117
+ tokens: number;
118
+ };
70
119
 
71
120
  /**
72
121
  * Subscribe to the status of a past payment
package/package.json CHANGED
@@ -56,5 +56,5 @@
56
56
  "directory": "test/typescript"
57
57
  },
58
58
  "types": "index.d.ts",
59
- "version": "4.14.1"
59
+ "version": "4.14.2"
60
60
  }