This commit is contained in:
boufni95 2024-08-23 20:40:08 +02:00
parent 26299ae5db
commit 8621e9dfea
3 changed files with 8 additions and 4 deletions

View file

@ -28,7 +28,7 @@ export const AddInvoiceReq = (value: number, expiry = 60 * 60, privateHints = fa
settleDate: 0n, settleDate: 0n,
settleIndex: 0n, settleIndex: 0n,
state: 0, state: 0,
isBlinded: false,
amtPaid: 0n, amtPaid: 0n,
settled: false, settled: false,
}) })

View file

@ -28,6 +28,8 @@ export const OpenChannelReq = (destination: string, closeAddress: string, fundin
scidAlias: false, scidAlias: false,
nodePubkeyString: "", nodePubkeyString: "",
satPerByte: 0n, satPerByte: 0n,
fundMax: false,
memo: "",
outpoints: [],
fundingShim: undefined fundingShim: undefined
}) })

View file

@ -1,4 +1,4 @@
import { SendCoinsRequest } from "../../../proto/lnd/lightning"; import { CoinSelectionStrategy, SendCoinsRequest } from "../../../proto/lnd/lightning";
export const SendCoinsReq = (address: string, amount: number, satPerVByte: number, label = ""): SendCoinsRequest => ({ export const SendCoinsReq = (address: string, amount: number, satPerVByte: number, label = ""): SendCoinsRequest => ({
addr: address, addr: address,
@ -9,5 +9,7 @@ export const SendCoinsReq = (address: string, amount: number, satPerVByte: numbe
minConfs: 1, minConfs: 1,
sendAll: false, sendAll: false,
spendUnconfirmed: false, spendUnconfirmed: false,
satPerByte: BigInt(0) satPerByte: BigInt(0),
coinSelectionStrategy: CoinSelectionStrategy.STRATEGY_LARGEST,
outpoints: [],
}) })