Skip to content

Commit bab2965

Browse files
committed
deps: update lnd to v0.17.0-beta, and other deps
1 parent f04f38b commit bab2965

File tree

26 files changed

+989
-121
lines changed

26 files changed

+989
-121
lines changed

lib/types/proto/lnd/lightning.ts

Lines changed: 112 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export enum CommitmentType {
6060
* channel before its maturity date.
6161
*/
6262
SCRIPT_ENFORCED_LEASE = 'SCRIPT_ENFORCED_LEASE',
63+
/** SIMPLE_TAPROOT - TODO(roasbeef): need script enforce mirror type for the above as well? */
64+
SIMPLE_TAPROOT = 'SIMPLE_TAPROOT',
6365
UNRECOGNIZED = 'UNRECOGNIZED'
6466
}
6567

@@ -995,6 +997,12 @@ export interface Channel {
995997
peerAlias: string;
996998
/** This is the peer SCID alias. */
997999
peerScidAlias: string;
1000+
/**
1001+
* An optional note-to-self to go along with the channel containing some
1002+
* useful information. This is only ever stored locally and in no way impacts
1003+
* the channel's operation.
1004+
*/
1005+
memo: string;
9981006
}
9991007

10001008
export interface ListChannelsRequest {
@@ -1460,6 +1468,61 @@ export interface BatchOpenChannel {
14601468
* the remote peer supports explicit channel negotiation.
14611469
*/
14621470
commitmentType: CommitmentType;
1471+
/**
1472+
* The maximum amount of coins in millisatoshi that can be pending within
1473+
* the channel. It only applies to the remote party.
1474+
*/
1475+
remoteMaxValueInFlightMsat: string;
1476+
/**
1477+
* The maximum number of concurrent HTLCs we will allow the remote party to add
1478+
* to the commitment transaction.
1479+
*/
1480+
remoteMaxHtlcs: number;
1481+
/**
1482+
* Max local csv is the maximum csv delay we will allow for our own commitment
1483+
* transaction.
1484+
*/
1485+
maxLocalCsv: number;
1486+
/** If this is true, then a zero-conf channel open will be attempted. */
1487+
zeroConf: boolean;
1488+
/**
1489+
* If this is true, then an option-scid-alias channel-type open will be
1490+
* attempted.
1491+
*/
1492+
scidAlias: boolean;
1493+
/** The base fee charged regardless of the number of milli-satoshis sent. */
1494+
baseFee: string;
1495+
/**
1496+
* The fee rate in ppm (parts per million) that will be charged in
1497+
* proportion of the value of each forwarded HTLC.
1498+
*/
1499+
feeRate: string;
1500+
/**
1501+
* If use_base_fee is true the open channel announcement will update the
1502+
* channel base fee with the value specified in base_fee. In the case of
1503+
* a base_fee of 0 use_base_fee is needed downstream to distinguish whether
1504+
* to use the default base fee value specified in the config or 0.
1505+
*/
1506+
useBaseFee: boolean;
1507+
/**
1508+
* If use_fee_rate is true the open channel announcement will update the
1509+
* channel fee rate with the value specified in fee_rate. In the case of
1510+
* a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether
1511+
* to use the default fee rate value specified in the config or 0.
1512+
*/
1513+
useFeeRate: boolean;
1514+
/**
1515+
* The number of satoshis we require the remote peer to reserve. This value,
1516+
* if specified, must be above the dust limit and below 20% of the channel
1517+
* capacity.
1518+
*/
1519+
remoteChanReserveSat: string;
1520+
/**
1521+
* An optional note-to-self to go along with the channel containing some
1522+
* useful information. This is only ever stored locally and in no way impacts
1523+
* the channel's operation.
1524+
*/
1525+
memo: string;
14631526
}
14641527

14651528
export interface BatchOpenChannelResponse {
@@ -1608,6 +1671,14 @@ export interface OpenChannelRequest {
16081671
* be zero and is ignored.
16091672
*/
16101673
fundMax: boolean;
1674+
/**
1675+
* An optional note-to-self to go along with the channel containing some
1676+
* useful information. This is only ever stored locally and in no way impacts
1677+
* the channel's operation.
1678+
*/
1679+
memo: string;
1680+
/** A list of selected outpoints that are allocated for channel funding. */
1681+
outpoints: OutPoint[];
16111682
}
16121683

16131684
export interface OpenStatusUpdate {
@@ -1674,6 +1745,8 @@ export interface ChanPointShim {
16741745
* the value is less than 500,000, or as an absolute height otherwise.
16751746
*/
16761747
thawHeight: number;
1748+
/** Indicates that the funding output is using a MuSig2 multi-sig output. */
1749+
musig2: boolean;
16771750
}
16781751

16791752
export interface PsbtShim {
@@ -1850,6 +1923,12 @@ export interface PendingChannelsResponse_PendingChannel {
18501923
chanStatusFlags: string;
18511924
/** Whether this channel is advertised to the network or not. */
18521925
private: boolean;
1926+
/**
1927+
* An optional note-to-self to go along with the channel containing some
1928+
* useful information. This is only ever stored locally and in no way
1929+
* impacts the channel's operation.
1930+
*/
1931+
memo: string;
18531932
}
18541933

18551934
export interface PendingChannelsResponse_PendingOpenChannel {
@@ -1871,6 +1950,18 @@ export interface PendingChannelsResponse_PendingOpenChannel {
18711950
* transaction. This value can later be updated once the channel is open.
18721951
*/
18731952
feePerKw: string;
1953+
/**
1954+
* The number of blocks until the funding transaction is considered
1955+
* expired. If this value gets close to zero, there is a risk that the
1956+
* channel funding will be canceled by the channel responder. The
1957+
* channel should be fee bumped using CPFP (see walletrpc.BumpFee) to
1958+
* ensure that the channel confirms in time. Otherwise a force-close
1959+
* will be necessary if the channel confirms after the funding
1960+
* transaction expires. A negative value means the channel responder has
1961+
* very likely canceled the funding and the channel will never become
1962+
* fully operational.
1963+
*/
1964+
fundingExpiryBlocks: number;
18741965
}
18751966

18761967
export interface PendingChannelsResponse_WaitingCloseChannel {
@@ -1983,7 +2074,13 @@ export interface WalletAccountBalance {
19832074
unconfirmedBalance: string;
19842075
}
19852076

1986-
export interface WalletBalanceRequest {}
2077+
export interface WalletBalanceRequest {
2078+
/**
2079+
* The wallet account the balance is shown for.
2080+
* If this is not specified, the balance of the "default" account is shown.
2081+
*/
2082+
account: string;
2083+
}
19872084

19882085
export interface WalletBalanceResponse {
19892086
/** The balance of the wallet */
@@ -2691,21 +2788,21 @@ export interface Invoice {
26912788
amtPaid: string;
26922789
/**
26932790
* The amount that was accepted for this invoice, in satoshis. This will ONLY
2694-
* be set if this invoice has been settled. We provide this field as if the
2695-
* invoice was created with a zero value, then we need to record what amount
2696-
* was ultimately accepted. Additionally, it's possible that the sender paid
2697-
* MORE that was specified in the original invoice. So we'll record that here
2698-
* as well.
2791+
* be set if this invoice has been settled or accepted. We provide this field
2792+
* as if the invoice was created with a zero value, then we need to record what
2793+
* amount was ultimately accepted. Additionally, it's possible that the sender
2794+
* paid MORE that was specified in the original invoice. So we'll record that
2795+
* here as well.
26992796
* Note: Output only, don't specify for creating an invoice.
27002797
*/
27012798
amtPaidSat: string;
27022799
/**
27032800
* The amount that was accepted for this invoice, in millisatoshis. This will
2704-
* ONLY be set if this invoice has been settled. We provide this field as if
2705-
* the invoice was created with a zero value, then we need to record what
2706-
* amount was ultimately accepted. Additionally, it's possible that the sender
2707-
* paid MORE that was specified in the original invoice. So we'll record that
2708-
* here as well.
2801+
* ONLY be set if this invoice has been settled or accepted. We provide this
2802+
* field as if the invoice was created with a zero value, then we need to
2803+
* record what amount was ultimately accepted. Additionally, it's possible that
2804+
* the sender paid MORE that was specified in the original invoice. So we'll
2805+
* record that here as well.
27092806
* Note: Output only, don't specify for creating an invoice.
27102807
*/
27112808
amtPaidMsat: string;
@@ -3878,8 +3975,10 @@ export interface Lightning {
38783975
): Promise<SignMessageResponse>;
38793976
/**
38803977
* lncli: `verifymessage`
3881-
* VerifyMessage verifies a signature over a msg. The signature must be
3882-
* zbase32 encoded and signed by an active node in the resident node's
3978+
* VerifyMessage verifies a signature over a message and recovers the signer's
3979+
* public key. The signature is only deemed valid if the recovered public key
3980+
* corresponds to a node key in the public Lightning network. The signature
3981+
* must be zbase32 encoded and signed by an active node in the resident node's
38833982
* channel database. In addition to returning the validity of the signature,
38843983
* VerifyMessage also returns the recovered pubkey from the signature.
38853984
*/

lib/types/proto/lnd/signrpc/signer.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ export interface MuSig2SessionRequest {
364364
* combined key and nonces are created.
365365
*/
366366
version: MuSig2Version;
367+
/**
368+
* A set of pre generated secret local nonces to use in the musig2 session.
369+
* This field is optional. This can be useful for protocols that need to send
370+
* nonces ahead of time before the set of signer keys are known. This value
371+
* MUST be 97 bytes and be the concatenation of two CSPRNG generated 32 byte
372+
* values and local public key used for signing as specified in the key_loc
373+
* field.
374+
*/
375+
pregeneratedLocalNonce: Uint8Array | string;
367376
}
368377

369378
export interface MuSig2SessionResponse {

lib/types/proto/lnd/walletrpc/walletkit.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,11 @@ export interface ImportTapscriptResponse {
531531
}
532532

533533
export interface Transaction {
534-
/** The raw serialized transaction. */
534+
/**
535+
* The raw serialized transaction. Despite the field name, this does need to be
536+
* specified in raw bytes (or base64 encoded when using REST) and not in hex.
537+
* To not break existing software, the field can't simply be renamed.
538+
*/
535539
txHex: Uint8Array | string;
536540
/** An optional label to save with the transaction. Limited to 500 characters. */
537541
label: string;

lib/types/proto/tapd/assetwalletrpc/assetwallet.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ export interface VerifyAssetOwnershipResponse {
123123
validProof: boolean;
124124
}
125125

126+
export interface RemoveUTXOLeaseRequest {
127+
/** The outpoint of the UTXO to remove the lease for. */
128+
outpoint: OutPoint | undefined;
129+
}
130+
131+
export interface RemoveUTXOLeaseResponse {}
132+
126133
export interface AssetWallet {
127134
/**
128135
* FundVirtualPsbt selects inputs from the available asset commitments to fund
@@ -183,6 +190,13 @@ export interface AssetWallet {
183190
verifyAssetOwnership(
184191
request?: DeepPartial<VerifyAssetOwnershipRequest>
185192
): Promise<VerifyAssetOwnershipResponse>;
193+
/**
194+
* RemoveUTXOLease removes the lease/lock/reservation of the given managed
195+
* UTXO.
196+
*/
197+
removeUTXOLease(
198+
request?: DeepPartial<RemoveUTXOLeaseRequest>
199+
): Promise<RemoveUTXOLeaseResponse>;
186200
}
187201

188202
type Builtin =

lib/types/proto/tapd/mintrpc/mint.ts

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
import type { AssetType, AssetMeta } from '../taprootassets';
2+
import type { AssetType, AssetVersion, AssetMeta } from '../taprootassets';
33

44
export enum BatchState {
55
BATCH_STATE_UNKNOWN = 'BATCH_STATE_UNKNOWN',
@@ -36,6 +36,8 @@ export interface MintAsset {
3636
* This asset will be minted with the same group key as the anchor asset.
3737
*/
3838
groupAnchor: string;
39+
/** The version of asset to mint. */
40+
assetVersion: AssetVersion;
3941
}
4042

4143
export interface MintAssetRequest {
@@ -46,31 +48,46 @@ export interface MintAssetRequest {
4648
* future asset issuance.
4749
*/
4850
enableEmission: boolean;
51+
/**
52+
* If true, then the assets currently in the batch won't be returned in the
53+
* response. This is mainly to avoid a lot of data being transmitted and
54+
* possibly printed on the command line in the case of a very large batch.
55+
*/
56+
shortResponse: boolean;
4957
}
5058

5159
export interface MintAssetResponse {
60+
/** The pending batch the asset was added to. */
61+
pendingBatch: MintingBatch | undefined;
62+
}
63+
64+
export interface MintingBatch {
5265
/**
5366
* A public key serialized in compressed format that can be used to uniquely
5467
* identify a pending minting batch. Responses that share the same key will be
5568
* batched into the same minting transaction.
5669
*/
5770
batchKey: Uint8Array | string;
58-
}
59-
60-
export interface MintingBatch {
61-
/** The internal public key of the batch. */
62-
batchKey: Uint8Array | string;
6371
/** The assets that are part of the batch. */
6472
assets: MintAsset[];
6573
/** The state of the batch. */
6674
state: BatchState;
6775
}
6876

69-
export interface FinalizeBatchRequest {}
77+
export interface FinalizeBatchRequest {
78+
/**
79+
* If true, then the assets currently in the batch won't be returned in the
80+
* response. This is mainly to avoid a lot of data being transmitted and
81+
* possibly printed on the command line in the case of a very large batch.
82+
*/
83+
shortResponse: boolean;
84+
/** The optional fee rate to use for the minting transaction, in sat/kw. */
85+
feeRate: number;
86+
}
7087

7188
export interface FinalizeBatchResponse {
72-
/** The internal public key of the batch. */
73-
batchKey: Uint8Array | string;
89+
/** The finalized batch. */
90+
batch: MintingBatch | undefined;
7491
}
7592

7693
export interface CancelBatchRequest {}
@@ -101,7 +118,10 @@ export interface Mint {
101118
/**
102119
* tapcli: `assets mint`
103120
* MintAsset will attempt to mint the set of assets (async by default to
104-
* ensure proper batching) specified in the request.
121+
* ensure proper batching) specified in the request. The pending batch is
122+
* returned that shows the other pending assets that are part of the next
123+
* batch. This call will block until the operation succeeds (asset is staged
124+
* in the batch) or fails.
105125
*/
106126
mintAsset(
107127
request?: DeepPartial<MintAssetRequest>

0 commit comments

Comments
 (0)