lightning 11.1.0 → 12.0.1

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/grpc/protos/lightning.proto +137 -2
  3. package/grpc/protos/router.proto +69 -3
  4. package/grpc/protos/signer.proto +60 -0
  5. package/grpc/protos/walletkit.proto +67 -1
  6. package/lnd_messages/pay_via_route_request.js +0 -2
  7. package/lnd_methods/info/get_configuration.js +1 -1
  8. package/lnd_methods/info/get_route_to_destination.d.ts +0 -4
  9. package/lnd_methods/info/get_route_to_destination.js +4 -6
  10. package/lnd_methods/macaroon/subscribe_to_rpc_requests.d.ts +0 -2
  11. package/lnd_methods/macaroon/subscribe_to_rpc_requests.js +0 -1
  12. package/lnd_methods/offchain/attempt_route.d.ts +0 -2
  13. package/lnd_methods/offchain/attempt_route.js +0 -1
  14. package/lnd_methods/offchain/finished_payment.d.ts +0 -10
  15. package/lnd_methods/offchain/finished_payment.js +0 -5
  16. package/lnd_methods/offchain/get_failed_payments.d.ts +0 -2
  17. package/lnd_methods/offchain/get_failed_payments.js +0 -1
  18. package/lnd_methods/offchain/get_payment.d.ts +0 -6
  19. package/lnd_methods/offchain/get_payment.js +0 -3
  20. package/lnd_methods/offchain/get_payments.d.ts +0 -2
  21. package/lnd_methods/offchain/get_payments.js +0 -1
  22. package/lnd_methods/offchain/get_pending_payments.d.ts +0 -2
  23. package/lnd_methods/offchain/get_pending_payments.js +0 -1
  24. package/lnd_methods/offchain/get_route_through_hops.d.ts +0 -2
  25. package/lnd_methods/offchain/get_route_through_hops.js +0 -1
  26. package/lnd_methods/offchain/list_payments.js +0 -1
  27. package/lnd_methods/offchain/pay.d.ts +0 -4
  28. package/lnd_methods/offchain/pay.js +0 -3
  29. package/lnd_methods/offchain/pay_via_payment_details.d.ts +0 -4
  30. package/lnd_methods/offchain/pay_via_payment_details.js +0 -2
  31. package/lnd_methods/offchain/pay_via_payment_request.d.ts +0 -4
  32. package/lnd_methods/offchain/pay_via_payment_request.js +0 -2
  33. package/lnd_methods/offchain/pay_via_routes.d.ts +0 -4
  34. package/lnd_methods/offchain/pay_via_routes.js +0 -3
  35. package/lnd_methods/offchain/probe_for_route.d.ts +0 -2
  36. package/lnd_methods/offchain/probe_for_route.js +0 -2
  37. package/lnd_methods/offchain/subscribe_to_channels.js +1 -1
  38. package/lnd_methods/offchain/subscribe_to_past_payment.d.ts +0 -4
  39. package/lnd_methods/offchain/subscribe_to_past_payment.js +0 -2
  40. package/lnd_methods/offchain/subscribe_to_past_payments.d.ts +0 -2
  41. package/lnd_methods/offchain/subscribe_to_past_payments.js +0 -1
  42. package/lnd_methods/offchain/subscribe_to_pay.d.ts +0 -10
  43. package/lnd_methods/offchain/subscribe_to_pay.js +0 -5
  44. package/lnd_methods/offchain/subscribe_to_pay_via_details.js +0 -5
  45. package/lnd_methods/offchain/subscribe_to_pay_via_request.js +0 -5
  46. package/lnd_methods/offchain/subscribe_to_pay_via_routes.d.ts +0 -10
  47. package/lnd_methods/offchain/subscribe_to_pay_via_routes.js +0 -5
  48. package/lnd_methods/offchain/subscribe_to_payments.d.ts +0 -4
  49. package/lnd_methods/offchain/subscribe_to_payments.js +0 -2
  50. package/lnd_methods/offchain/subscribe_to_probe_for_route.d.ts +0 -8
  51. package/lnd_methods/offchain/subscribe_to_probe_for_route.js +0 -4
  52. package/lnd_requests/rpc_hop_from_hop.js +0 -7
  53. package/lnd_requests/rpc_route_from_route.js +0 -2
  54. package/lnd_responses/confirmed_from_payment.d.ts +0 -6
  55. package/lnd_responses/confirmed_from_payment.js +0 -3
  56. package/lnd_responses/confirmed_from_payment_status.js +0 -5
  57. package/lnd_responses/pending_from_payment.js +0 -2
  58. package/lnd_responses/routes_from_query_routes.js +0 -3
  59. package/lnd_responses/routing_failure_from_htlc.js +0 -2
  60. package/lnd_responses/rpc_attempt_htlc_as_attempt.js +0 -2
  61. package/lnd_responses/rpc_hop_as_hop.js +0 -7
  62. package/lnd_responses/rpc_payment_as_payment.js +0 -2
  63. package/lnd_responses/rpc_route_as_route.js +0 -2
  64. package/package.json +4 -4
  65. package/test/lnd_messages/test_pay_via_route_request.js +0 -2
  66. package/test/lnd_methods/fixtures/query_routes_response.json +0 -1
  67. package/test/lnd_methods/info/test_get_route_to_destination.js +0 -3
  68. package/test/lnd_methods/macaroon/test_handle_rpc_request_update.js +0 -2
  69. package/test/lnd_methods/offchain/test_finished_payment.js +0 -4
  70. package/test/lnd_methods/offchain/test_get_payment.js +0 -5
  71. package/test/lnd_methods/offchain/test_get_payments.js +0 -2
  72. package/test/lnd_methods/offchain/test_get_route_through_hops.js +0 -4
  73. package/test/lnd_methods/offchain/test_is_destination_payable.js +0 -3
  74. package/test/lnd_methods/offchain/test_pay.js +0 -3
  75. package/test/lnd_methods/offchain/test_pay_via_payment_details.js +0 -4
  76. package/test/lnd_methods/offchain/test_pay_via_payment_request.js +0 -4
  77. package/test/lnd_methods/offchain/test_pay_via_routes.js +0 -9
  78. package/test/lnd_methods/offchain/test_subscribe_to_channels.js +0 -20
  79. package/test/lnd_methods/offchain/test_subscribe_to_past_payments.js +0 -3
  80. package/test/lnd_methods/offchain/test_subscribe_to_pay_via_routes.js +0 -7
  81. package/test/lnd_methods/offchain/test_subscribe_to_payments.js +0 -3
  82. package/test/lnd_methods/offchain/test_subscribe_to_probe_for_route.js +0 -1
  83. package/test/lnd_requests/test_rpc_hop_from_hop.js +1 -10
  84. package/test/lnd_requests/test_rpc_route_from_route.js +0 -4
  85. package/test/lnd_responses/test_confirmed_from_payment.js +0 -3
  86. package/test/lnd_responses/test_confirmed_from_payment_status.js +0 -4
  87. package/test/lnd_responses/test_pending_from_payment.js +0 -2
  88. package/test/lnd_responses/test_routes_from_query_routes.js +0 -2
  89. package/test/lnd_responses/test_routing_failure_from_htlc.js +0 -2
  90. package/test/lnd_responses/test_rpc_attempt_htlc_as_attempt.js +0 -2
  91. package/test/lnd_responses/test_rpc_hop_as_hop.js +0 -7
  92. package/test/lnd_responses/test_rpc_payment_as_payment.js +0 -6
  93. package/test/lnd_responses/test_rpc_route_as_route.js +0 -2
  94. package/test-typescript/typescript/attempt_route.test-d.ts +0 -1
  95. package/test-typescript/typescript/confirmed_from_payment.test-d.ts +0 -1
  96. package/test-typescript/typescript/finished_payment.test-d.ts +0 -2
  97. package/test-typescript/typescript/pay.test-d.ts +0 -1
  98. package/test-typescript/typescript/pay_via_routes.test-d.ts +0 -1
  99. package/test-typescript/typescript/subscribe_to_pay_via_routes.test-d.ts +0 -1
@@ -12,8 +12,6 @@ export type FinishedPaymentArgs = AuthenticatedLightningArgs<{
12
12
  hops: {
13
13
  /** First Route Standard Format Channel Id String */
14
14
  channel: string;
15
- /** First Route Channel Capacity Tokens Number */
16
- channel_capacity: number;
17
15
  /** First Route Fee Tokens Rounded Down Number */
18
16
  fee: number;
19
17
  /** First Route Fee Millitokens String */
@@ -37,8 +35,6 @@ export type FinishedPaymentArgs = AuthenticatedLightningArgs<{
37
35
  hops: {
38
36
  /** First Route Standard Format Channel Id String */
39
37
  channel: string;
40
- /** First Route Channel Capacity Tokens Number */
41
- channel_capacity: number;
42
38
  /** First Route Fee Tokens Rounded Down Number */
43
39
  fee: number;
44
40
  /** First Route Fee Millitokens String */
@@ -81,8 +77,6 @@ export type FinishedPaymentArgs = AuthenticatedLightningArgs<{
81
77
  hops: {
82
78
  /** Standard Format Channel Id String */
83
79
  channel: string;
84
- /** Channel Capacity Tokens Number */
85
- channel_capacity: number;
86
80
  /** Hop Forwarding Fee Rounded Down Tokens Number */
87
81
  fee: number;
88
82
  /** Hop Forwarding Fee Millitokens String */
@@ -118,8 +112,6 @@ export type FinishedPaymentResult = {
118
112
  hops: {
119
113
  /** Standard Format Channel Id String */
120
114
  channel: string;
121
- /** Channel Capacity Tokens Number */
122
- channel_capacity: number;
123
115
  /** Fee Millitokens String */
124
116
  fee_mtokens: string;
125
117
  /** Forward Millitokens String */
@@ -141,8 +133,6 @@ export type FinishedPaymentResult = {
141
133
  hops: {
142
134
  /** First Route Standard Format Channel Id String */
143
135
  channel: string;
144
- /** First Route Channel Capacity Tokens Number */
145
- channel_capacity: number;
146
136
  /** First Route Fee Tokens Rounded Down Number */
147
137
  fee: number;
148
138
  /** First Route Fee Millitokens String */
@@ -10,7 +10,6 @@ const {returnResult} = require('asyncjs-util');
10
10
  fee_mtokens: <Total Fee Millitokens Paid String>
11
11
  hops: [{
12
12
  channel: <First Route Standard Format Channel Id String>
13
- channel_capacity: <First Route Channel Capacity Tokens Number>
14
13
  fee: <First Route Fee Tokens Rounded Down Number>
15
14
  fee_mtokens: <First Route Fee Millitokens String>
16
15
  forward_mtokens: <First Route Forward Millitokens String>
@@ -23,7 +22,6 @@ const {returnResult} = require('asyncjs-util');
23
22
  fee_mtokens: <Total Fee Millitokens Paid String>
24
23
  hops: [{
25
24
  channel: <First Route Standard Format Channel Id String>
26
- channel_capacity: <First Route Channel Capacity Tokens Number>
27
25
  fee: <First Route Fee Tokens Rounded Down Number>
28
26
  fee_mtokens: <First Route Fee Millitokens String>
29
27
  forward_mtokens: <First Route Forward Millitokens String>
@@ -49,7 +47,6 @@ const {returnResult} = require('asyncjs-util');
49
47
  fee_mtokens: <Route Total Fee Millitokens String>
50
48
  hops: [{
51
49
  channel: <Standard Format Channel Id String>
52
- channel_capacity: <Channel Capacity Tokens Number>
53
50
  fee: <Hop Forwarding Fee Rounded Down Tokens Number>
54
51
  fee_mtokens: <Hop Forwarding Fee Millitokens String>
55
52
  forward: <Hop Forwarding Tokens Rounded Down Number>
@@ -73,7 +70,6 @@ const {returnResult} = require('asyncjs-util');
73
70
  fee_mtokens: <Total Fee Millitokens To Pay String>
74
71
  hops: [{
75
72
  channel: <Standard Format Channel Id String>
76
- channel_capacity: <Channel Capacity Tokens Number>
77
73
  fee_mtokens: <Fee Millitokens String>
78
74
  forward_mtokens: <Forward Millitokens String>
79
75
  public_key: <Public Key Hex String>
@@ -86,7 +82,6 @@ const {returnResult} = require('asyncjs-util');
86
82
  fee_mtokens: <Total Fee Millitokens Paid String>
87
83
  hops: [{
88
84
  channel: <First Route Standard Format Channel Id String>
89
- channel_capacity: <First Route Channel Capacity Tokens Number>
90
85
  fee: <First Route Fee Tokens Rounded Down Number>
91
86
  fee_mtokens: <First Route Fee Millitokens String>
92
87
  forward_mtokens: <First Route Forward Millitokens String>
@@ -76,8 +76,6 @@ export type GetFailedPaymentsResult = {
76
76
  hops: {
77
77
  /** Standard Format Channel Id String */
78
78
  channel: string;
79
- /** Channel Capacity Tokens Number */
80
- channel_capacity: number;
81
79
  /** Fee Number */
82
80
  fee: number;
83
81
  /** Fee Millitokens String */
@@ -65,7 +65,6 @@ const type = 'default';
65
65
  fee_mtokens: <Route Fee Millitokens String>
66
66
  hops: [{
67
67
  channel: <Standard Format Channel Id String>
68
- channel_capacity: <Channel Capacity Tokens Number>
69
68
  fee: <Fee Number>
70
69
  fee_mtokens: <Fee Millitokens String>
71
70
  forward: <Forward Tokens Number>
@@ -39,8 +39,6 @@ export type GetPaymentResult = {
39
39
  hops: {
40
40
  /** Standard Format Channel Id */
41
41
  channel: string;
42
- /** Channel Capacity Tokens */
43
- channel_capacity: number;
44
42
  /** Routing Fee Tokens */
45
43
  fee: number;
46
44
  /** Fee Millitokens */
@@ -66,8 +64,6 @@ export type GetPaymentResult = {
66
64
  hops: {
67
65
  /** Standard Format Channel Id */
68
66
  channel: string;
69
- /** Channel Capacity Tokens */
70
- channel_capacity: number;
71
67
  /** Routing Fee Tokens */
72
68
  fee: number;
73
69
  /** Fee Millitokens */
@@ -122,8 +118,6 @@ export type GetPaymentResult = {
122
118
  hops: {
123
119
  /** Standard Format Channel Id */
124
120
  channel: string;
125
- /** Channel Capacity Tokens */
126
- channel_capacity: number;
127
121
  /** Routing Fee Tokens */
128
122
  fee: number;
129
123
  /** Fee Millitokens */
@@ -36,7 +36,6 @@ const type = 'router';
36
36
  fee_mtokens: <Total Fee Millitokens Paid String>
37
37
  hops: [{
38
38
  channel: <Standard Format Channel Id String>
39
- channel_capacity: <Channel Capacity Tokens Number>
40
39
  fee: <Routing Fee Tokens Number>
41
40
  fee_mtokens: <Fee Millitokens String>
42
41
  forward: <Forwarded Tokens Number>
@@ -50,7 +49,6 @@ const type = 'router';
50
49
  fee_mtokens: <Total Fee Millitokens Paid String>
51
50
  hops: [{
52
51
  channel: <Standard Format Channel Id String>
53
- channel_capacity: <Channel Capacity Tokens Number>
54
52
  fee: <Fee Tokens Rounded Down Number>
55
53
  fee_mtokens: <Fee Millitokens String>
56
54
  forward: <Forwarded Tokens Number>
@@ -76,7 +74,6 @@ const type = 'router';
76
74
  fee_mtokens: <Total Fee Millitokens Paid String>
77
75
  hops: [{
78
76
  channel: <Standard Format Channel Id String>
79
- channel_capacity: <Channel Capacity Tokens Number>
80
77
  fee: <Fee Tokens Rounded Down Number>
81
78
  fee_mtokens: <Fee Millitokens String>
82
79
  forward: <Forwarded Tokens Number>
@@ -74,8 +74,6 @@ export type GetPaymentsResult = {
74
74
  hops: {
75
75
  /** Standard Format Channel Id */
76
76
  channel: string;
77
- /** Channel Capacity Tokens */
78
- channel_capacity: number;
79
77
  /** Fee */
80
78
  fee: number;
81
79
  /** Fee Millitokens */
@@ -65,7 +65,6 @@ const type = 'default';
65
65
  fee_mtokens: <Route Fee Millitokens String>
66
66
  hops: [{
67
67
  channel: <Standard Format Channel Id String>
68
- channel_capacity: <Channel Capacity Tokens Number>
69
68
  fee: <Fee Number>
70
69
  fee_mtokens: <Fee Millitokens String>
71
70
  forward: <Forward Tokens Number>
@@ -76,8 +76,6 @@ export type GetPendingPaymentsResult = {
76
76
  hops: {
77
77
  /** Standard Format Channel Id String */
78
78
  channel: string;
79
- /** Channel Capacity Tokens Number */
80
- channel_capacity: number;
81
79
  /** Fee Number */
82
80
  fee: number;
83
81
  /** Fee Millitokens String */
@@ -65,7 +65,6 @@ const type = 'default';
65
65
  fee_mtokens: <Route Fee Millitokens String>
66
66
  hops: [{
67
67
  channel: <Standard Format Channel Id String>
68
- channel_capacity: <Channel Capacity Tokens Number>
69
68
  fee: <Fee Number>
70
69
  fee_mtokens: <Fee Millitokens String>
71
70
  forward: <Forward Tokens Number>
@@ -45,8 +45,6 @@ export type GetRouteThroughHopsResult = {
45
45
  hops: {
46
46
  /** Standard Format Channel Id */
47
47
  channel: string;
48
- /** Channel Capacity Tokens */
49
- channel_capacity: number;
50
48
  /** Fee */
51
49
  fee: number;
52
50
  /** Fee Millitokens */
@@ -38,7 +38,6 @@ const unknownServiceMessage = 'unknown service routerrpc.Router';
38
38
  fee_mtokens: <Route Fee Millitokens String>
39
39
  hops: [{
40
40
  channel: <Standard Format Channel Id String>
41
- channel_capacity: <Channel Capacity Tokens Number>
42
41
  fee: <Fee Number>
43
42
  fee_mtokens: <Fee Millitokens String>
44
43
  forward: <Forward Tokens Number>
@@ -72,7 +72,6 @@ const type = 'default';
72
72
  fee_mtokens: <Route Fee Millitokens String>
73
73
  hops: [{
74
74
  channel: <Standard Format Channel Id String>
75
- channel_capacity: <Channel Capacity Tokens Number>
76
75
  fee: <Fee Number>
77
76
  fee_mtokens: <Fee Millitokens String>
78
77
  forward: <Forward Tokens Number>
@@ -39,8 +39,6 @@ export type PayArgs = AuthenticatedLightningArgs<{
39
39
  hops: {
40
40
  /** Standard Format Channel Id */
41
41
  channel: string;
42
- /** Channel Capacity Tokens */
43
- channel_capacity: number;
44
42
  /** Fee */
45
43
  fee: number;
46
44
  /** Fee Millitokens */
@@ -88,8 +86,6 @@ export type PayResult = {
88
86
  hops: {
89
87
  /** Standard Format Channel Id */
90
88
  channel: string;
91
- /** Hop Channel Capacity Tokens */
92
- channel_capacity: number;
93
89
  /** Hop Forward Fee Millitokens */
94
90
  fee_mtokens: string;
95
91
  /** Hop Forwarded Millitokens */
@@ -42,7 +42,6 @@ const payViaRoutes = require('./pay_via_routes');
42
42
  fee_mtokens: <Total Fee Millitokens To Pay String>
43
43
  hops: [{
44
44
  channel: <Standard Format Channel Id String>
45
- channel_capacity: <Channel Capacity Tokens Number>
46
45
  fee: <Fee Number>
47
46
  fee_mtokens: <Fee Millitokens String>
48
47
  forward: <Forward Tokens Number>
@@ -72,7 +71,6 @@ const payViaRoutes = require('./pay_via_routes');
72
71
  fee_mtokens: <Fee Paid Millitokens String>
73
72
  hops: [{
74
73
  channel: <Standard Format Channel Id String>
75
- channel_capacity: <Hop Channel Capacity Tokens Number>
76
74
  fee_mtokens: <Hop Forward Fee Millitokens String>
77
75
  forward_mtokens: <Hop Forwarded Millitokens String>
78
76
  timeout: <Hop CLTV Expiry Block Height Number>
@@ -85,7 +83,6 @@ const payViaRoutes = require('./pay_via_routes');
85
83
  fee_mtokens: <Total Fee Millitokens Paid String>
86
84
  hops: [{
87
85
  channel: <First Route Standard Format Channel Id String>
88
- channel_capacity: <First Route Channel Capacity Tokens Number>
89
86
  fee: <First Route Fee Tokens Rounded Down Number>
90
87
  fee_mtokens: <First Route Fee Millitokens String>
91
88
  forward_mtokens: <First Route Forward Millitokens String>
@@ -68,8 +68,6 @@ export type PayViaPaymentDetailsResult = {
68
68
  hops: {
69
69
  /** First Route Standard Format Channel Id */
70
70
  channel: string;
71
- /** First Route Channel Capacity Tokens */
72
- channel_capacity: number;
73
71
  /** First Route Fee Tokens Rounded Down */
74
72
  fee: number;
75
73
  /** First Route Fee Millitokens */
@@ -91,8 +89,6 @@ export type PayViaPaymentDetailsResult = {
91
89
  hops: {
92
90
  /** First Route Standard Format Channel Id */
93
91
  channel: string;
94
- /** First Route Channel Capacity Tokens */
95
- channel_capacity: number;
96
92
  /** First Route Fee Tokens Rounded Down */
97
93
  fee: number;
98
94
  /** First Route Fee Millitokens */
@@ -62,7 +62,6 @@ const type = 'router';
62
62
  fee_mtokens: <Total Fee Millitokens Paid String>
63
63
  hops: [{
64
64
  channel: <First Route Standard Format Channel Id String>
65
- channel_capacity: <First Route Channel Capacity Tokens Number>
66
65
  fee: <First Route Fee Tokens Rounded Down Number>
67
66
  fee_mtokens: <First Route Fee Millitokens String>
68
67
  forward_mtokens: <First Route Forward Millitokens String>
@@ -75,7 +74,6 @@ const type = 'router';
75
74
  fee_mtokens: <Total Fee Millitokens Paid String>
76
75
  hops: [{
77
76
  channel: <First Route Standard Format Channel Id String>
78
- channel_capacity: <First Route Channel Capacity Tokens Number>
79
77
  fee: <First Route Fee Tokens Rounded Down Number>
80
78
  fee_mtokens: <First Route Fee Millitokens String>
81
79
  forward_mtokens: <First Route Forward Millitokens String>
@@ -46,8 +46,6 @@ export type PayViaPaymentRequestResult = {
46
46
  hops: {
47
47
  /** First Route Standard Format Channel Id */
48
48
  channel: string;
49
- /** First Route Channel Capacity Tokens */
50
- channel_capacity: number;
51
49
  /** First Route Fee Tokens Rounded Down */
52
50
  fee: number;
53
51
  /** First Route Fee Millitokens */
@@ -71,8 +69,6 @@ export type PayViaPaymentRequestResult = {
71
69
  hops: {
72
70
  /** First Route Standard Format Channel Id */
73
71
  channel: string;
74
- /** First Route Channel Capacity Tokens */
75
- channel_capacity: number;
76
72
  /** First Route Fee Tokens Rounded Down */
77
73
  fee: number;
78
74
  /** First Route Fee Millitokens */
@@ -44,7 +44,6 @@ const type = 'router';
44
44
  fee_mtokens: <Total Fee Millitokens Paid String>
45
45
  hops: [{
46
46
  channel: <First Route Standard Format Channel Id String>
47
- channel_capacity: <First Route Channel Capacity Tokens Number>
48
47
  fee: <First Route Fee Tokens Rounded Down Number>
49
48
  fee_mtokens: <First Route Fee Millitokens String>
50
49
  forward_mtokens: <First Route Forward Millitokens String>
@@ -58,7 +57,6 @@ const type = 'router';
58
57
  fee_mtokens: <Total Fee Millitokens Paid String>
59
58
  hops: [{
60
59
  channel: <First Route Standard Format Channel Id String>
61
- channel_capacity: <First Route Channel Capacity Tokens Number>
62
60
  fee: <First Route Fee Tokens Rounded Down Number>
63
61
  fee_mtokens: <First Route Fee Millitokens String>
64
62
  forward_mtokens: <First Route Forward Millitokens String>
@@ -17,8 +17,6 @@ export type PayViaRoutesArgs = AuthenticatedLightningArgs<{
17
17
  hops: {
18
18
  /** Standard Format Channel Id */
19
19
  channel: string;
20
- /** Channel Capacity Tokens */
21
- channel_capacity: number;
22
20
  /** Fee */
23
21
  fee: number;
24
22
  /** Fee Millitokens */
@@ -68,8 +66,6 @@ export type PayViaRoutesResult = {
68
66
  hops: {
69
67
  /** Standard Format Channel Id */
70
68
  channel: string;
71
- /** Hop Channel Capacity Tokens */
72
- channel_capacity: number;
73
69
  /** Hop Forward Fee Millitokens */
74
70
  fee_mtokens: string;
75
71
  /** Hop Forwarded Millitokens */
@@ -24,7 +24,6 @@ const notFound = -1;
24
24
  fee_mtokens: <Total Fee Millitokens To Pay String>
25
25
  hops: [{
26
26
  channel: <Standard Format Channel Id String>
27
- channel_capacity: <Channel Capacity Tokens Number>
28
27
  fee: <Fee Number>
29
28
  fee_mtokens: <Fee Millitokens String>
30
29
  forward: <Forward Tokens Number>
@@ -60,7 +59,6 @@ const notFound = -1;
60
59
  fee_mtokens: <Fee Paid Millitokens String>
61
60
  hops: [{
62
61
  channel: <Standard Format Channel Id String>
63
- channel_capacity: <Hop Channel Capacity Tokens Number>
64
62
  fee_mtokens: <Hop Forward Fee Millitokens String>
65
63
  forward_mtokens: <Hop Forwarded Millitokens String>
66
64
  timeout: <Hop CLTV Expiry Block Height Number>
@@ -151,7 +149,6 @@ module.exports = (args, cbk) => {
151
149
  fee_mtokens: result.success.fee_mtokens,
152
150
  hops: result.success.hops.map(hop => ({
153
151
  channel: hop.channel,
154
- channel_capacity: hop.channel_capacity,
155
152
  fee: hop.fee,
156
153
  fee_mtokens: hop.fee_mtokens,
157
154
  forward: hop.forward,
@@ -80,8 +80,6 @@ export type ProbeForRouteResult = {
80
80
  hops: {
81
81
  /** Standard Format Channel Id String */
82
82
  channel: string;
83
- /** Channel Capacity Tokens Number */
84
- channel_capacity: number;
85
83
  /** Fee Number */
86
84
  fee: number;
87
85
  /** Fee Millitokens String */
@@ -48,7 +48,6 @@ const isHex = n => !(n.length % 2) && /^[0-9A-F]*$/i.test(n);
48
48
  [probe_timeout_ms]: <Probe Timeout Milliseconds Number>
49
49
  [routes]: [[{
50
50
  [base_fee_mtokens]: <Base Routing Fee In Millitokens String>
51
- [channel_capacity]: <Channel Capacity Tokens Number>
52
51
  [channel]: <Standard Format Channel Id String>
53
52
  [cltv_delta]: <CLTV Blocks Delta Number>
54
53
  [fee_rate]: <Fee Rate In Millitokens Per Million Number>
@@ -66,7 +65,6 @@ const isHex = n => !(n.length % 2) && /^[0-9A-F]*$/i.test(n);
66
65
  fee_mtokens: <Route Fee Millitokens String>
67
66
  hops: [{
68
67
  channel: <Standard Format Channel Id String>
69
- channel_capacity: <Channel Capacity Tokens Number>
70
68
  fee: <Fee Number>
71
69
  fee_mtokens: <Fee Millitokens String>
72
70
  forward: <Forward Tokens Number>
@@ -167,7 +167,7 @@ module.exports = ({lnd}) => {
167
167
  }
168
168
 
169
169
  if (!update.type || !update.type.toLowerCase) {
170
- return emitError(asError('ExpectedEventTypeInChannelSubscription'));
170
+ return;
171
171
  }
172
172
 
173
173
  const updateType = update.type.toLowerCase();
@@ -22,8 +22,6 @@ export type SubscribeToPastPaymentConfirmedEvent = {
22
22
  hops: {
23
23
  /** Standard Format Channel Id */
24
24
  channel: string;
25
- /** Channel Capacity Tokens */
26
- channel_capacity: number;
27
25
  /** Routing Fee Tokens */
28
26
  fee: number;
29
27
  /** Fee Millitokens */
@@ -87,8 +85,6 @@ export type SubscribeToPastPaymentPayingEvent = {
87
85
  hops: {
88
86
  /** Standard Format Channel Id String */
89
87
  channel: string;
90
- /** Channel Capacity Tokens Number */
91
- channel_capacity: number;
92
88
  /** Fee Tokens Rounded Down Number */
93
89
  fee: number;
94
90
  /** Fee Millitokens String */
@@ -54,7 +54,6 @@ const unknownServiceErr = 'unknown service verrpc.Versioner';
54
54
  fee_mtokens: <Total Fee Millitokens Paid String>
55
55
  hops: [{
56
56
  channel: <Standard Format Channel Id String>
57
- channel_capacity: <Channel Capacity Tokens Number>
58
57
  fee: <Fee Tokens Rounded Down Number>
59
58
  fee_mtokens: <Fee Millitokens String>
60
59
  forward: <Forward Tokens Number>
@@ -96,7 +95,6 @@ const unknownServiceErr = 'unknown service verrpc.Versioner';
96
95
  fee_mtokens: <Total Fee Millitokens Pending String>
97
96
  hops: [{
98
97
  channel: <Standard Format Channel Id String>
99
- channel_capacity: <Channel Capacity Tokens Number>
100
98
  fee: <Fee Tokens Rounded Down Number>
101
99
  fee_mtokens: <Fee Millitokens String>
102
100
  forward: <Forward Tokens Number>
@@ -31,8 +31,6 @@ export type SubscribeToPastPaymentsPaymentEvent = {
31
31
  {
32
32
  /** Standard Format Channel Id String */
33
33
  channel: string;
34
- /** Channel Capacity Tokens Number */
35
- channel_capacity: number;
36
34
  /** Fee Tokens Rounded Down Number */
37
35
  fee: number;
38
36
  /** Fee Millitokens String */
@@ -53,7 +53,6 @@ const unknownFailureMessage = '2 UNKNOWN: unknown failure detail type: <nil>';
53
53
  fee_mtokens: <Total Fee Millitokens Paid String>
54
54
  hops: [{
55
55
  channel: <Standard Format Channel Id String>
56
- channel_capacity: <Channel Capacity Tokens Number>
57
56
  fee: <Fee Tokens Rounded Down Number>
58
57
  fee_mtokens: <Fee Millitokens String>
59
58
  forward_mtokens: <Forward Millitokens String>
@@ -86,8 +86,6 @@ export type SubscribeToPayConfirmedEvent = {
86
86
  hops: {
87
87
  /** First Route Standard Format Channel Id String> */
88
88
  channel: string;
89
- /** First Route Channel Capacity Tokens Number> */
90
- channel_capacity: number;
91
89
  /** First Route Fee Tokens Rounded Down Number> */
92
90
  fee: number;
93
91
  /** First Route Fee Millitokens String> */
@@ -111,8 +109,6 @@ export type SubscribeToPayConfirmedEvent = {
111
109
  hops: {
112
110
  /** First Route Standard Format Channel Id String> */
113
111
  channel: string;
114
- /** First Route Channel Capacity Tokens Number> */
115
- channel_capacity: number;
116
112
  /** First Route Fee Tokens Rounded Down Number> */
117
113
  fee: number;
118
114
  /** First Route Fee Millitokens String> */
@@ -160,8 +156,6 @@ export type SubscribeToPayFailedEvent = {
160
156
  hops: {
161
157
  /** Standard Format Channel Id String> */
162
158
  channel: string;
163
- /** Channel Capacity Tokens Number> */
164
- channel_capacity: number;
165
159
  /** Hop Forwarding Fee Rounded Down Tokens Number> */
166
160
  fee: number;
167
161
  /** Hop Forwarding Fee Millitokens String> */
@@ -207,8 +201,6 @@ export type SubscribeToPayPayingEvent = {
207
201
  hops: {
208
202
  /** Standard Format Channel Id String> */
209
203
  channel: string;
210
- /** Channel Capacity Tokens Number> */
211
- channel_capacity: number;
212
204
  /** Fee Tokens Rounded Down Number> */
213
205
  fee: number;
214
206
  /** Fee Millitokens String> */
@@ -260,8 +252,6 @@ export type SubscribeToRoutingFailureEvent = {
260
252
  hops: {
261
253
  /** Standard Format Channel Id String> */
262
254
  channel: string;
263
- /** Channel Capacity Tokens Number> */
264
- channel_capacity: number;
265
255
  /** Fee Number> */
266
256
  fee: number;
267
257
  /** Fee Millitokens String> */
@@ -96,7 +96,6 @@ const unsupportedFeatures = [30, 31];
96
96
  fee_mtokens: <Total Fee Millitokens Paid String>
97
97
  hops: [{
98
98
  channel: <First Route Standard Format Channel Id String>
99
- channel_capacity: <First Route Channel Capacity Tokens Number>
100
99
  fee: <First Route Fee Tokens Rounded Down Number>
101
100
  fee_mtokens: <First Route Fee Millitokens String>
102
101
  forward_mtokens: <First Route Forward Millitokens String>
@@ -109,7 +108,6 @@ const unsupportedFeatures = [30, 31];
109
108
  fee_mtokens: <Total Fee Millitokens Paid String>
110
109
  hops: [{
111
110
  channel: <First Route Standard Format Channel Id String>
112
- channel_capacity: <First Route Channel Capacity Tokens Number>
113
111
  fee: <First Route Fee Tokens Rounded Down Number>
114
112
  fee_mtokens: <First Route Fee Millitokens String>
115
113
  forward_mtokens: <First Route Forward Millitokens String>
@@ -138,7 +136,6 @@ const unsupportedFeatures = [30, 31];
138
136
  fee_mtokens: <Route Total Fee Millitokens String>
139
137
  hops: [{
140
138
  channel: <Standard Format Channel Id String>
141
- channel_capacity: <Channel Capacity Tokens Number>
142
139
  fee: <Hop Forwarding Fee Rounded Down Tokens Number>
143
140
  fee_mtokens: <Hop Forwarding Fee Millitokens String>
144
141
  forward: <Hop Forwarding Tokens Rounded Down Number>
@@ -165,7 +162,6 @@ const unsupportedFeatures = [30, 31];
165
162
  fee_mtokens: <Total Fee Millitokens Pending String>
166
163
  hops: [{
167
164
  channel: <Standard Format Channel Id String>
168
- channel_capacity: <Channel Capacity Tokens Number>
169
165
  fee: <Fee Tokens Rounded Down Number>
170
166
  fee_mtokens: <Fee Millitokens String>
171
167
  forward: <Forward Tokens Number>
@@ -196,7 +192,6 @@ const unsupportedFeatures = [30, 31];
196
192
  fee_mtokens: <Total Route Fee Millitokens To Pay String>
197
193
  hops: [{
198
194
  channel: <Standard Format Channel Id String>
199
- channel_capacity: <Channel Capacity Tokens Number>
200
195
  fee: <Fee Number>
201
196
  fee_mtokens: <Fee Millitokens String>
202
197
  forward: <Forward Tokens Number>
@@ -66,7 +66,6 @@ const type = 'router';
66
66
  fee_mtokens: <Total Fee Millitokens Paid String>
67
67
  hops: [{
68
68
  channel: <First Route Standard Format Channel Id String>
69
- channel_capacity: <First Route Channel Capacity Tokens Number>
70
69
  fee: <First Route Fee Tokens Rounded Down Number>
71
70
  fee_mtokens: <First Route Fee Millitokens String>
72
71
  forward_mtokens: <First Route Forward Millitokens String>
@@ -79,7 +78,6 @@ const type = 'router';
79
78
  fee_mtokens: <Total Fee Millitokens Paid String>
80
79
  hops: [{
81
80
  channel: <First Route Standard Format Channel Id String>
82
- channel_capacity: <First Route Channel Capacity Tokens Number>
83
81
  fee: <First Route Fee Tokens Rounded Down Number>
84
82
  fee_mtokens: <First Route Fee Millitokens String>
85
83
  forward_mtokens: <First Route Forward Millitokens String>
@@ -108,7 +106,6 @@ const type = 'router';
108
106
  fee_mtokens: <Route Total Fee Millitokens String>
109
107
  hops: [{
110
108
  channel: <Standard Format Channel Id String>
111
- channel_capacity: <Channel Capacity Tokens Number>
112
109
  fee: <Hop Forwarding Fee Rounded Down Tokens Number>
113
110
  fee_mtokens: <Hop Forwarding Fee Millitokens String>
114
111
  forward: <Hop Forwarding Tokens Rounded Down Number>
@@ -135,7 +132,6 @@ const type = 'router';
135
132
  fee_mtokens: <Total Fee Millitokens Pending String>
136
133
  hops: [{
137
134
  channel: <Standard Format Channel Id String>
138
- channel_capacity: <Channel Capacity Tokens Number>
139
135
  fee: <Fee Tokens Rounded Down Number>
140
136
  fee_mtokens: <Fee Millitokens String>
141
137
  forward: <Forward Tokens Number>
@@ -165,7 +161,6 @@ const type = 'router';
165
161
  fee_mtokens: <Total Route Fee Millitokens To Pay String>
166
162
  hops: [{
167
163
  channel: <Standard Format Channel Id String>
168
- channel_capacity: <Channel Capacity Tokens Number>
169
164
  fee: <Fee Number>
170
165
  fee_mtokens: <Fee Millitokens String>
171
166
  forward: <Forward Tokens Number>
@@ -46,7 +46,6 @@ const type = 'router';
46
46
  fee_mtokens: <Total Fee Millitokens Paid String>
47
47
  hops: [{
48
48
  channel: <First Route Standard Format Channel Id String>
49
- channel_capacity: <First Route Channel Capacity Tokens Number>
50
49
  fee: <First Route Fee Tokens Rounded Down Number>
51
50
  fee_mtokens: <First Route Fee Millitokens String>
52
51
  forward_mtokens: <First Route Forward Millitokens String>
@@ -60,7 +59,6 @@ const type = 'router';
60
59
  fee_mtokens: <Total Fee Millitokens Paid String>
61
60
  hops: [{
62
61
  channel: <First Route Standard Format Channel Id String>
63
- channel_capacity: <First Route Channel Capacity Tokens Number>
64
62
  fee: <First Route Fee Tokens Rounded Down Number>
65
63
  fee_mtokens: <First Route Fee Millitokens String>
66
64
  forward_mtokens: <First Route Forward Millitokens String>
@@ -89,7 +87,6 @@ const type = 'router';
89
87
  fee_mtokens: <Route Total Fee Millitokens String>
90
88
  hops: [{
91
89
  channel: <Standard Format Channel Id String>
92
- channel_capacity: <Channel Capacity Tokens Number>
93
90
  fee: <Hop Forwarding Fee Rounded Down Tokens Number>
94
91
  fee_mtokens: <Hop Forwarding Fee Millitokens String>
95
92
  forward: <Hop Forwarding Tokens Rounded Down Number>
@@ -117,7 +114,6 @@ const type = 'router';
117
114
  fee_mtokens: <Total Fee Millitokens Pending String>
118
115
  hops: [{
119
116
  channel: <Standard Format Channel Id String>
120
- channel_capacity: <Channel Capacity Tokens Number>
121
117
  fee: <Fee Tokens Rounded Down Number>
122
118
  fee_mtokens: <Fee Millitokens String>
123
119
  forward: <Forward Tokens Number>
@@ -148,7 +144,6 @@ const type = 'router';
148
144
  fee_mtokens: <Total Route Fee Millitokens To Pay String>
149
145
  hops: [{
150
146
  channel: <Standard Format Channel Id String>
151
- channel_capacity: <Channel Capacity Tokens Number>
152
147
  fee: <Fee Number>
153
148
  fee_mtokens: <Fee Millitokens String>
154
149
  forward: <Forward Tokens Number>