beignet 0.7.2 → 0.7.3
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/dist/cli/beignet-node.js +6 -3
- package/dist/cli/beignet-node.js.map +1 -1
- package/dist/cli/cli.js +5 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/daemon.js +2 -2
- package/dist/cli/daemon.js.map +1 -1
- package/dist/cli/openapi.js +2 -1
- package/dist/cli/openapi.js.map +1 -1
- package/dist/lightning/channel/channel-manager.js +40 -8
- package/dist/lightning/channel/channel-manager.js.map +1 -1
- package/dist/lightning/channel/channel.js +94 -22
- package/dist/lightning/channel/channel.js.map +1 -1
- package/dist/lightning/channel/dual-funding.js +1 -1
- package/dist/lightning/channel/dual-funding.js.map +1 -1
- package/dist/lightning/gossip/pathfinding.js +4 -2
- package/dist/lightning/gossip/pathfinding.js.map +1 -1
- package/dist/lightning/node/lightning-node.js +24 -12
- package/dist/lightning/node/lightning-node.js.map +1 -1
- package/dist/types/cli/beignet-node.d.ts +2 -1
- package/dist/types/lightning/channel/channel-manager.d.ts +6 -2
- package/dist/types/lightning/channel/channel.d.ts +1 -0
- package/dist/types/lightning/channel/dual-funding.d.ts +1 -0
- package/dist/types/lightning/node/lightning-node.d.ts +4 -2
- package/package.json +1 -1
|
@@ -214,7 +214,7 @@ export declare class BeignetNode extends EventEmitter {
|
|
|
214
214
|
channelsAdded: number;
|
|
215
215
|
updatesApplied: number;
|
|
216
216
|
} | null>;
|
|
217
|
-
openChannel(pubkey: string, amountSats: number, pushSats?: number, satsPerVbyte?: number, max?: boolean): ChannelInfo;
|
|
217
|
+
openChannel(pubkey: string, amountSats: number, pushSats?: number, satsPerVbyte?: number, max?: boolean, trusted?: boolean): ChannelInfo;
|
|
218
218
|
openChannelAndWait(pubkey: string, amountSats: number, opts?: {
|
|
219
219
|
pushSats?: number;
|
|
220
220
|
timeoutMs?: number;
|
|
@@ -223,6 +223,7 @@ export declare class BeignetNode extends EventEmitter {
|
|
|
223
223
|
pushSats?: number;
|
|
224
224
|
satsPerVbyte?: number;
|
|
225
225
|
max?: boolean;
|
|
226
|
+
trusted?: boolean;
|
|
226
227
|
}): Promise<ChannelInfo>;
|
|
227
228
|
ensureMinimumChannels(count: number, satsPerChannel: number, _opts?: {
|
|
228
229
|
timeoutMs?: number;
|
|
@@ -70,7 +70,9 @@ export declare class ChannelManager extends EventEmitter {
|
|
|
70
70
|
isTrustedPeer(pubkeyHex: string): boolean;
|
|
71
71
|
listTrustedPeers(): string[];
|
|
72
72
|
openZeroConfChannel(peerPubkey: string, fundingSatoshis: bigint, pushMsat?: bigint): Channel | null;
|
|
73
|
-
openChannel(peerPubkey: string, fundingSatoshis: bigint, pushMsat?: bigint, beforeNegotiate?: (temporaryChannelId: Buffer) => void
|
|
73
|
+
openChannel(peerPubkey: string, fundingSatoshis: bigint, pushMsat?: bigint, beforeNegotiate?: (temporaryChannelId: Buffer) => void, opts?: {
|
|
74
|
+
trusted?: boolean;
|
|
75
|
+
}): Channel;
|
|
74
76
|
abortPendingOpen(channel: Channel, reason: string): void;
|
|
75
77
|
createFunding(channel: Channel, fundingTxid: Buffer, fundingOutputIndex: number, signature: Buffer): Buffer | null;
|
|
76
78
|
private signFundingPartial;
|
|
@@ -168,7 +170,9 @@ export declare class ChannelManager extends EventEmitter {
|
|
|
168
170
|
initiateSplice(channelId: Buffer, relativeSatoshis: bigint, fundingFeeratePerkw: number, locktime?: number): ChannelResult;
|
|
169
171
|
sendSpliceLocked(channelId: Buffer): ChannelResult;
|
|
170
172
|
abortSplice(channelId: Buffer, reason?: string): ChannelResult;
|
|
171
|
-
createDualFundedChannel(peerPubkey: string, params: IDualFundingParams
|
|
173
|
+
createDualFundedChannel(peerPubkey: string, params: IDualFundingParams, opts?: {
|
|
174
|
+
trusted?: boolean;
|
|
175
|
+
}): Channel;
|
|
172
176
|
private handleOpenChannel2;
|
|
173
177
|
private handleAcceptChannel2Msg;
|
|
174
178
|
private autoFundDualFundedOpen;
|
|
@@ -279,6 +279,7 @@ export declare class Channel {
|
|
|
279
279
|
sendTxSignatures(txid: Buffer, outputIndex: number, witnesses: Buffer[][]): ChannelAction[];
|
|
280
280
|
handleTxSignatures(msg: ITxSignaturesMessage): ChannelAction[];
|
|
281
281
|
private _assembleV2FundingTx;
|
|
282
|
+
private _isZeroConfChannelType;
|
|
282
283
|
initiateTxRbf(newFeeratePerkw: number, newLocktime?: number): ChannelAction[];
|
|
283
284
|
handleTxInitRbf(msg: ITxInitRbfMessage): ChannelAction[];
|
|
284
285
|
abortDualFunding(reason?: string): ChannelAction[];
|
|
@@ -215,14 +215,15 @@ export declare class LightningNode extends EventEmitter {
|
|
|
215
215
|
addTrustedPeer(pubkeyHex: string): void;
|
|
216
216
|
removeTrustedPeer(pubkeyHex: string): void;
|
|
217
217
|
listTrustedPeers(): string[];
|
|
218
|
-
openZeroConfChannel(peerPubkey: string, fundingSatoshis: bigint, pushMsat?: bigint): Channel
|
|
218
|
+
openZeroConfChannel(peerPubkey: string, fundingSatoshis: bigint, pushMsat?: bigint): Channel;
|
|
219
219
|
destroy(): void;
|
|
220
220
|
gracefulShutdown(timeoutMs?: number): Promise<void>;
|
|
221
221
|
private startCleanupTimer;
|
|
222
222
|
private stopCleanupTimer;
|
|
223
223
|
pruneCompletedPayments(): number;
|
|
224
224
|
private peerNegotiatedDualFund;
|
|
225
|
-
|
|
225
|
+
private peerNegotiatedZeroConf;
|
|
226
|
+
openChannel(peerPubkey: string, fundingSatoshis: bigint, pushMsat?: bigint, satsPerVbyte?: number, fundMax?: boolean, trusted?: boolean): Channel;
|
|
226
227
|
private readonly requestedFundingFeeRates;
|
|
227
228
|
private readonly fundingMaxRequests;
|
|
228
229
|
private static readonly MAX_REQUESTED_FUNDING_FEE_RATES;
|
|
@@ -235,6 +236,7 @@ export declare class LightningNode extends EventEmitter {
|
|
|
235
236
|
maxLeaseRates?: import('../gossip/types').ILeaseRates;
|
|
236
237
|
channelType?: Buffer;
|
|
237
238
|
fundMax?: boolean;
|
|
239
|
+
trusted?: boolean;
|
|
238
240
|
}): Channel;
|
|
239
241
|
createFunding(channel: Channel, fundingTxid: Buffer, outputIndex: number, signature: Buffer): Buffer | null;
|
|
240
242
|
handleFundingConfirmed(channelId: Buffer): void;
|