lightning 5.8.4 → 5.8.5

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
- ## 5.8.4
3
+ ## 5.8.5
4
4
 
5
5
  - `getWalletInfo`, `payViaPaymentDetails`: Correct typescript fields
6
6
 
@@ -620,6 +620,38 @@ message Utxo {
620
620
  int64 confirmations = 6;
621
621
  }
622
622
 
623
+ enum OutputScriptType {
624
+ SCRIPT_TYPE_PUBKEY_HASH = 0;
625
+ SCRIPT_TYPE_SCRIPT_HASH = 1;
626
+ SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2;
627
+ SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3;
628
+ SCRIPT_TYPE_PUBKEY = 4;
629
+ SCRIPT_TYPE_MULTISIG = 5;
630
+ SCRIPT_TYPE_NULLDATA = 6;
631
+ SCRIPT_TYPE_NON_STANDARD = 7;
632
+ SCRIPT_TYPE_WITNESS_UNKNOWN = 8;
633
+ }
634
+
635
+ message OutputDetail {
636
+ // The type of the output
637
+ OutputScriptType output_type = 1;
638
+
639
+ // The address
640
+ string address = 2;
641
+
642
+ // The pkscript in hex
643
+ string pk_script = 3;
644
+
645
+ // The output index used in the raw transaction
646
+ int64 output_index = 4;
647
+
648
+ // The value of the output coin in satoshis
649
+ int64 amount = 5;
650
+
651
+ // Denotes if the output is controlled by the internal wallet
652
+ bool is_our_address = 6;
653
+ }
654
+
623
655
  message Transaction {
624
656
  // The transaction hash
625
657
  string tx_hash = 1;
@@ -642,8 +674,12 @@ message Transaction {
642
674
  // Fees paid for this transaction
643
675
  int64 total_fees = 7;
644
676
 
645
- // Addresses that received funds for this transaction
646
- repeated string dest_addresses = 8;
677
+ // Addresses that received funds for this transaction. Deprecated as it is
678
+ // now incorporated in the output_details field.
679
+ repeated string dest_addresses = 8 [deprecated = true];
680
+
681
+ // Outputs that received funds for this transaction
682
+ repeated OutputDetail output_details = 11;
647
683
 
648
684
  // The raw transaction hex.
649
685
  string raw_tx_hex = 9;
@@ -2502,6 +2538,10 @@ message WalletBalanceResponse {
2502
2538
  // The unconfirmed balance of a wallet(with 0 confirmations)
2503
2539
  int64 unconfirmed_balance = 3;
2504
2540
 
2541
+ // The total amount of wallet UTXOs held in outputs that are locked for
2542
+ // other usage.
2543
+ int64 locked_balance = 5;
2544
+
2505
2545
  // A mapping of each wallet account's name to its balance.
2506
2546
  map<string, WalletAccountBalance> account_balance = 4;
2507
2547
  }
@@ -12,7 +12,9 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/walletrpc";
12
12
  service WalletKit {
13
13
  /*
14
14
  ListUnspent returns a list of all utxos spendable by the wallet with a
15
- number of confirmations between the specified minimum and maximum.
15
+ number of confirmations between the specified minimum and maximum. By
16
+ default, all utxos are listed. To list only the unconfirmed utxos, set
17
+ the unconfirmed_only to true.
16
18
  */
17
19
  rpc ListUnspent (ListUnspentRequest) returns (ListUnspentResponse);
18
20
 
@@ -240,6 +242,14 @@ message ListUnspentRequest {
240
242
 
241
243
  // An optional filter to only include outputs belonging to an account.
242
244
  string account = 3;
245
+
246
+ /*
247
+ When min_confs and max_confs are zero, setting false implicitly
248
+ overrides max_confs to be MaxInt32, otherwise max_confs remains
249
+ zero. An error is returned if the value is true and both min_confs
250
+ and max_confs are non-zero. (default: false)
251
+ */
252
+ bool unconfirmed_only = 4;
243
253
  }
244
254
 
245
255
  message ListUnspentResponse {
package/package.json CHANGED
@@ -7,10 +7,10 @@
7
7
  "url": "https://github.com/alexbosworth/lightning/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@grpc/grpc-js": "1.5.9",
10
+ "@grpc/grpc-js": "1.5.10",
11
11
  "@grpc/proto-loader": "0.6.9",
12
12
  "@types/express": "4.17.13",
13
- "@types/node": "17.0.22",
13
+ "@types/node": "17.0.23",
14
14
  "@types/request": "2.48.8",
15
15
  "@types/ws": "8.5.3",
16
16
  "async": "3.2.3",
@@ -33,7 +33,7 @@
33
33
  "@alexbosworth/node-fetch": "2.6.2",
34
34
  "@alexbosworth/tap": "15.0.10",
35
35
  "tsd": "0.19.1",
36
- "typescript": "4.6.2",
36
+ "typescript": "4.6.3",
37
37
  "ws": "8.5.0"
38
38
  },
39
39
  "engines": {
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "5.8.4"
62
+ "version": "5.8.5"
63
63
  }