lightning 11.0.5 → 12.0.0

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 (103) hide show
  1. package/CHANGELOG.md +12 -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_channels.d.ts +2 -0
  17. package/lnd_methods/offchain/get_channels.js +1 -0
  18. package/lnd_methods/offchain/get_failed_payments.d.ts +0 -2
  19. package/lnd_methods/offchain/get_failed_payments.js +0 -1
  20. package/lnd_methods/offchain/get_payment.d.ts +0 -6
  21. package/lnd_methods/offchain/get_payment.js +0 -3
  22. package/lnd_methods/offchain/get_payments.d.ts +0 -2
  23. package/lnd_methods/offchain/get_payments.js +0 -1
  24. package/lnd_methods/offchain/get_pending_payments.d.ts +0 -2
  25. package/lnd_methods/offchain/get_pending_payments.js +0 -1
  26. package/lnd_methods/offchain/get_route_through_hops.d.ts +0 -2
  27. package/lnd_methods/offchain/get_route_through_hops.js +0 -1
  28. package/lnd_methods/offchain/list_payments.js +0 -1
  29. package/lnd_methods/offchain/pay.d.ts +0 -4
  30. package/lnd_methods/offchain/pay.js +0 -3
  31. package/lnd_methods/offchain/pay_via_payment_details.d.ts +0 -4
  32. package/lnd_methods/offchain/pay_via_payment_details.js +0 -2
  33. package/lnd_methods/offchain/pay_via_payment_request.d.ts +0 -4
  34. package/lnd_methods/offchain/pay_via_payment_request.js +0 -2
  35. package/lnd_methods/offchain/pay_via_routes.d.ts +0 -4
  36. package/lnd_methods/offchain/pay_via_routes.js +0 -3
  37. package/lnd_methods/offchain/probe_for_route.d.ts +0 -2
  38. package/lnd_methods/offchain/probe_for_route.js +0 -2
  39. package/lnd_methods/offchain/subscribe_to_past_payment.d.ts +0 -4
  40. package/lnd_methods/offchain/subscribe_to_past_payment.js +0 -2
  41. package/lnd_methods/offchain/subscribe_to_past_payments.d.ts +0 -2
  42. package/lnd_methods/offchain/subscribe_to_past_payments.js +0 -1
  43. package/lnd_methods/offchain/subscribe_to_pay.d.ts +0 -10
  44. package/lnd_methods/offchain/subscribe_to_pay.js +0 -5
  45. package/lnd_methods/offchain/subscribe_to_pay_via_details.js +0 -5
  46. package/lnd_methods/offchain/subscribe_to_pay_via_request.js +0 -5
  47. package/lnd_methods/offchain/subscribe_to_pay_via_routes.d.ts +0 -10
  48. package/lnd_methods/offchain/subscribe_to_pay_via_routes.js +0 -5
  49. package/lnd_methods/offchain/subscribe_to_payments.d.ts +0 -4
  50. package/lnd_methods/offchain/subscribe_to_payments.js +0 -2
  51. package/lnd_methods/offchain/subscribe_to_probe_for_route.d.ts +0 -8
  52. package/lnd_methods/offchain/subscribe_to_probe_for_route.js +0 -4
  53. package/lnd_requests/rpc_hop_from_hop.js +0 -7
  54. package/lnd_requests/rpc_route_from_route.js +0 -2
  55. package/lnd_responses/confirmed_from_payment.d.ts +0 -6
  56. package/lnd_responses/confirmed_from_payment.js +0 -3
  57. package/lnd_responses/confirmed_from_payment_status.js +0 -5
  58. package/lnd_responses/pending_from_payment.js +0 -2
  59. package/lnd_responses/routes_from_query_routes.js +0 -3
  60. package/lnd_responses/routing_failure_from_htlc.js +0 -2
  61. package/lnd_responses/rpc_attempt_htlc_as_attempt.js +0 -2
  62. package/lnd_responses/rpc_channel_as_channel.js +6 -0
  63. package/lnd_responses/rpc_hop_as_hop.js +0 -7
  64. package/lnd_responses/rpc_payment_as_payment.js +0 -2
  65. package/lnd_responses/rpc_route_as_route.js +0 -2
  66. package/package.json +4 -4
  67. package/test/lnd_messages/test_pay_via_route_request.js +0 -2
  68. package/test/lnd_methods/fixtures/query_routes_response.json +0 -1
  69. package/test/lnd_methods/info/test_get_route_to_destination.js +0 -3
  70. package/test/lnd_methods/macaroon/test_handle_rpc_request_update.js +0 -2
  71. package/test/lnd_methods/offchain/test_finished_payment.js +0 -4
  72. package/test/lnd_methods/offchain/test_get_channels.js +1 -0
  73. package/test/lnd_methods/offchain/test_get_payment.js +0 -5
  74. package/test/lnd_methods/offchain/test_get_payments.js +0 -2
  75. package/test/lnd_methods/offchain/test_get_route_through_hops.js +0 -4
  76. package/test/lnd_methods/offchain/test_is_destination_payable.js +0 -3
  77. package/test/lnd_methods/offchain/test_pay.js +0 -3
  78. package/test/lnd_methods/offchain/test_pay_via_payment_details.js +0 -4
  79. package/test/lnd_methods/offchain/test_pay_via_payment_request.js +0 -4
  80. package/test/lnd_methods/offchain/test_pay_via_routes.js +0 -9
  81. package/test/lnd_methods/offchain/test_subscribe_to_channels.js +1 -0
  82. package/test/lnd_methods/offchain/test_subscribe_to_past_payments.js +0 -3
  83. package/test/lnd_methods/offchain/test_subscribe_to_pay_via_routes.js +0 -7
  84. package/test/lnd_methods/offchain/test_subscribe_to_payments.js +0 -3
  85. package/test/lnd_methods/offchain/test_subscribe_to_probe_for_route.js +0 -1
  86. package/test/lnd_requests/test_rpc_hop_from_hop.js +1 -10
  87. package/test/lnd_requests/test_rpc_route_from_route.js +0 -4
  88. package/test/lnd_responses/test_confirmed_from_payment.js +0 -3
  89. package/test/lnd_responses/test_confirmed_from_payment_status.js +0 -4
  90. package/test/lnd_responses/test_pending_from_payment.js +0 -2
  91. package/test/lnd_responses/test_routes_from_query_routes.js +0 -2
  92. package/test/lnd_responses/test_routing_failure_from_htlc.js +0 -2
  93. package/test/lnd_responses/test_rpc_attempt_htlc_as_attempt.js +0 -2
  94. package/test/lnd_responses/test_rpc_channel_as_channel.js +6 -0
  95. package/test/lnd_responses/test_rpc_hop_as_hop.js +0 -7
  96. package/test/lnd_responses/test_rpc_payment_as_payment.js +0 -6
  97. package/test/lnd_responses/test_rpc_route_as_route.js +0 -2
  98. package/test-typescript/typescript/attempt_route.test-d.ts +0 -1
  99. package/test-typescript/typescript/confirmed_from_payment.test-d.ts +0 -1
  100. package/test-typescript/typescript/finished_payment.test-d.ts +0 -2
  101. package/test-typescript/typescript/pay.test-d.ts +0 -1
  102. package/test-typescript/typescript/pay_via_routes.test-d.ts +0 -1
  103. package/test-typescript/typescript/subscribe_to_pay_via_routes.test-d.ts +0 -1
@@ -9,7 +9,6 @@ const makeRoute = override => {
9
9
  hops: [{
10
10
  amt_to_forward_msat: '1000',
11
11
  chan_id: '1',
12
- chan_capacity: 1,
13
12
  expiry: 1,
14
13
  fee_msat: '1000',
15
14
  mpp_record: {payment_addr: Buffer.alloc(1), total_amt_msat: '1'},
@@ -69,7 +68,6 @@ const tests = [
69
68
  hops: [{
70
69
  amt_to_forward_msat: '1000',
71
70
  chan_id: '1',
72
- chan_capacity: 1,
73
71
  expiry: 1,
74
72
  fee_msat: '1000',
75
73
  pub_key: 'a',
@@ -12,7 +12,6 @@ const route = {
12
12
  hops: [
13
13
  {
14
14
  channel: 'channel',
15
- channel_capacity: 1,
16
15
  fee: 1,
17
16
  fee_mtokens: '1',
18
17
  forward: 1,
@@ -21,7 +21,6 @@ const payment: ConfirmedFromPaymentArgs = {
21
21
  {
22
22
  amt_to_forward: '1',
23
23
  amt_to_forward_msat: '1000',
24
- chan_capacity: '1',
25
24
  chan_id: '1',
26
25
  custom_records: {'1': Buffer.alloc(1)},
27
26
  expiry: 1,
@@ -13,7 +13,6 @@ const args = {
13
13
  hops: [
14
14
  {
15
15
  channel: '0x0x1',
16
- channel_capacity: 1,
17
16
  fee: 1,
18
17
  fee_mtokens: '1000',
19
18
  forward_mtokens: '1000',
@@ -30,7 +29,6 @@ const args = {
30
29
  hops: [
31
30
  {
32
31
  channel: '0x0x1',
33
- channel_capacity: 1,
34
32
  fee: 1,
35
33
  fee_mtokens: '1000',
36
34
  forward_mtokens: '1000',
@@ -14,7 +14,6 @@ const path = {
14
14
  hops: [
15
15
  {
16
16
  channel: '1x1x1',
17
- channel_capacity: 1,
18
17
  fee: 1,
19
18
  fee_mtokens: '1000',
20
19
  forward: 1,
@@ -10,7 +10,6 @@ const routes = [
10
10
  hops: [
11
11
  {
12
12
  channel: '1x1x1',
13
- channel_capacity: 1,
14
13
  fee: 1,
15
14
  fee_mtokens: '1000',
16
15
  forward: 1,
@@ -14,7 +14,6 @@ const routes: SubscribeToPayViaRoutesArgs['routes'] = [
14
14
  hops: [
15
15
  {
16
16
  channel: '0x0x1',
17
- channel_capacity: 1,
18
17
  fee: 1,
19
18
  forward: 1,
20
19
  fee_mtokens: '1',