@secondts/bark 0.6.3 → 0.7.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.
- package/bundler/bark_ffi_wasm.d.ts +26 -4
- package/bundler/bark_ffi_wasm_bg.js +61 -41
- package/bundler/bark_ffi_wasm_bg.wasm +0 -0
- package/bundler/bark_ffi_wasm_bg.wasm.d.ts +12 -10
- package/package.json +2 -2
- package/web/bark_ffi_wasm.d.ts +38 -14
- package/web/bark_ffi_wasm.js +61 -41
- package/web/bark_ffi_wasm_bg.wasm +0 -0
- package/web/bark_ffi_wasm_bg.wasm.d.ts +12 -10
|
@@ -94,6 +94,15 @@ export interface ExitProgressStatus {
|
|
|
94
94
|
error: string | undefined;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Terminal/in-flight state of an outgoing lightning send.
|
|
99
|
+
*
|
|
100
|
+
* Mirrors `bark`\'s `LightningSendState`. `pay_lightning_*` and
|
|
101
|
+
* `check_lightning_payment` now return this so callers can drive the
|
|
102
|
+
* crash-safe send flow themselves (initiate with `wait = false`, then poll).
|
|
103
|
+
*/
|
|
104
|
+
export type LightningSendStatus = { type: "unknown" } | { type: "inProgress"; send: LightningSend } | { type: "paid"; payment_hash: string; preimage: string };
|
|
105
|
+
|
|
97
106
|
export interface AddressWithIndex {
|
|
98
107
|
address: string;
|
|
99
108
|
index: number;
|
|
@@ -199,9 +208,18 @@ export interface LightningReceive {
|
|
|
199
208
|
|
|
200
209
|
export interface LightningSend {
|
|
201
210
|
invoice: string;
|
|
211
|
+
/**
|
|
212
|
+
* Amount being paid, in sats (`payment_amount`).
|
|
213
|
+
*/
|
|
202
214
|
amountSats: number;
|
|
215
|
+
/**
|
|
216
|
+
* Routing/ark fee for the send, in sats.
|
|
217
|
+
*/
|
|
218
|
+
feeSats: number;
|
|
219
|
+
/**
|
|
220
|
+
* Number of input VTXOs locked into the in-flight HTLC.
|
|
221
|
+
*/
|
|
203
222
|
htlcVtxoCount: number;
|
|
204
|
-
preimage: string | undefined;
|
|
205
223
|
}
|
|
206
224
|
|
|
207
225
|
export interface Movement {
|
|
@@ -242,11 +260,13 @@ export interface OnchainWalletDefaultArgs {
|
|
|
242
260
|
export interface PayLightningInvoiceArgs {
|
|
243
261
|
invoice: string;
|
|
244
262
|
amountSats?: number;
|
|
263
|
+
wait: boolean;
|
|
245
264
|
}
|
|
246
265
|
|
|
247
266
|
export interface PayLightningOfferArgs {
|
|
248
267
|
offer: string;
|
|
249
268
|
amountSats?: number;
|
|
269
|
+
wait: boolean;
|
|
250
270
|
}
|
|
251
271
|
|
|
252
272
|
export interface PendingBoard {
|
|
@@ -395,7 +415,7 @@ export class Wallet {
|
|
|
395
415
|
cancelAllPendingRounds(): Promise<void>;
|
|
396
416
|
cancelLightningReceive(paymentHash: string): Promise<void>;
|
|
397
417
|
cancelPendingRound(roundId: number): Promise<void>;
|
|
398
|
-
checkLightningPayment(args: CheckLightningPaymentArgs): Promise<
|
|
418
|
+
checkLightningPayment(args: CheckLightningPaymentArgs): Promise<LightningSendStatus>;
|
|
399
419
|
claimableLightningReceiveBalanceSats(): Promise<number>;
|
|
400
420
|
config(): Promise<Config>;
|
|
401
421
|
static create(args: WalletCreateArgs): Promise<Wallet>;
|
|
@@ -421,7 +441,9 @@ export class Wallet {
|
|
|
421
441
|
history(): Promise<Movement[]>;
|
|
422
442
|
historyByPaymentMethod(paymentMethodType: string, paymentMethodValue: string): Promise<Movement[]>;
|
|
423
443
|
importVtxo(vtxoBase64: string): Promise<void>;
|
|
444
|
+
isInvoicePaid(paymentHash: string): Promise<boolean>;
|
|
424
445
|
lightningReceiveStatus(paymentHash: string): Promise<LightningReceive | undefined>;
|
|
446
|
+
lightningSendState(paymentHash: string): Promise<LightningSendStatus>;
|
|
425
447
|
listClaimableExits(): Promise<ExitVtxo[]>;
|
|
426
448
|
mailboxAuthorization(): string;
|
|
427
449
|
mailboxIdentifier(): string;
|
|
@@ -440,8 +462,8 @@ export class Wallet {
|
|
|
440
462
|
offboardVtxos(vtxoIds: string[], bitcoinAddress: string): Promise<string>;
|
|
441
463
|
static open(args: WalletOpenArgs): Promise<Wallet>;
|
|
442
464
|
static openWithOnchain(onchainWallet: OnchainWallet, args: WalletOpenArgs): Promise<Wallet>;
|
|
443
|
-
payLightningInvoice(args: PayLightningInvoiceArgs): Promise<
|
|
444
|
-
payLightningOffer(args: PayLightningOfferArgs): Promise<
|
|
465
|
+
payLightningInvoice(args: PayLightningInvoiceArgs): Promise<LightningSendStatus>;
|
|
466
|
+
payLightningOffer(args: PayLightningOfferArgs): Promise<LightningSendStatus>;
|
|
445
467
|
peekAddress(index: number): Promise<string>;
|
|
446
468
|
pendingBoardVtxos(): Promise<Vtxo[]>;
|
|
447
469
|
pendingBoards(): Promise<PendingBoard[]>;
|
|
@@ -331,7 +331,7 @@ export class Wallet {
|
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
333
333
|
* @param {CheckLightningPaymentArgs} args
|
|
334
|
-
* @returns {Promise<
|
|
334
|
+
* @returns {Promise<LightningSendStatus>}
|
|
335
335
|
*/
|
|
336
336
|
checkLightningPayment(args) {
|
|
337
337
|
const ret = wasm.wallet_checkLightningPayment(this.__wbg_ptr, addHeapObject(args));
|
|
@@ -563,6 +563,16 @@ export class Wallet {
|
|
|
563
563
|
const ret = wasm.wallet_importVtxo(this.__wbg_ptr, ptr0, len0);
|
|
564
564
|
return takeObject(ret);
|
|
565
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* @param {string} paymentHash
|
|
568
|
+
* @returns {Promise<boolean>}
|
|
569
|
+
*/
|
|
570
|
+
isInvoicePaid(paymentHash) {
|
|
571
|
+
const ptr0 = passStringToWasm0(paymentHash, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
572
|
+
const len0 = WASM_VECTOR_LEN;
|
|
573
|
+
const ret = wasm.wallet_isInvoicePaid(this.__wbg_ptr, ptr0, len0);
|
|
574
|
+
return takeObject(ret);
|
|
575
|
+
}
|
|
566
576
|
/**
|
|
567
577
|
* @param {string} paymentHash
|
|
568
578
|
* @returns {Promise<LightningReceive | undefined>}
|
|
@@ -573,6 +583,16 @@ export class Wallet {
|
|
|
573
583
|
const ret = wasm.wallet_lightningReceiveStatus(this.__wbg_ptr, ptr0, len0);
|
|
574
584
|
return takeObject(ret);
|
|
575
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* @param {string} paymentHash
|
|
588
|
+
* @returns {Promise<LightningSendStatus>}
|
|
589
|
+
*/
|
|
590
|
+
lightningSendState(paymentHash) {
|
|
591
|
+
const ptr0 = passStringToWasm0(paymentHash, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
592
|
+
const len0 = WASM_VECTOR_LEN;
|
|
593
|
+
const ret = wasm.wallet_lightningSendState(this.__wbg_ptr, ptr0, len0);
|
|
594
|
+
return takeObject(ret);
|
|
595
|
+
}
|
|
576
596
|
/**
|
|
577
597
|
* @returns {Promise<ExitVtxo[]>}
|
|
578
598
|
*/
|
|
@@ -758,7 +778,7 @@ export class Wallet {
|
|
|
758
778
|
}
|
|
759
779
|
/**
|
|
760
780
|
* @param {PayLightningInvoiceArgs} args
|
|
761
|
-
* @returns {Promise<
|
|
781
|
+
* @returns {Promise<LightningSendStatus>}
|
|
762
782
|
*/
|
|
763
783
|
payLightningInvoice(args) {
|
|
764
784
|
const ret = wasm.wallet_payLightningInvoice(this.__wbg_ptr, addHeapObject(args));
|
|
@@ -766,7 +786,7 @@ export class Wallet {
|
|
|
766
786
|
}
|
|
767
787
|
/**
|
|
768
788
|
* @param {PayLightningOfferArgs} args
|
|
769
|
-
* @returns {Promise<
|
|
789
|
+
* @returns {Promise<LightningSendStatus>}
|
|
770
790
|
*/
|
|
771
791
|
payLightningOffer(args) {
|
|
772
792
|
const ret = wasm.wallet_payLightningOffer(this.__wbg_ptr, addHeapObject(args));
|
|
@@ -1607,7 +1627,7 @@ export function __wbg_new_b682b81e8eaaf027(arg0, arg1) {
|
|
|
1607
1627
|
const a = state0.a;
|
|
1608
1628
|
state0.a = 0;
|
|
1609
1629
|
try {
|
|
1610
|
-
return
|
|
1630
|
+
return __wasm_bindgen_func_elem_732(a, state0.b, arg0, arg1);
|
|
1611
1631
|
} finally {
|
|
1612
1632
|
state0.a = a;
|
|
1613
1633
|
}
|
|
@@ -1641,7 +1661,7 @@ export function __wbg_new_typed_bf31d18f92484486(arg0, arg1) {
|
|
|
1641
1661
|
const a = state0.a;
|
|
1642
1662
|
state0.a = 0;
|
|
1643
1663
|
try {
|
|
1644
|
-
return
|
|
1664
|
+
return __wasm_bindgen_func_elem_732(a, state0.b, arg0, arg1);
|
|
1645
1665
|
} finally {
|
|
1646
1666
|
state0.a = a;
|
|
1647
1667
|
}
|
|
@@ -1932,48 +1952,48 @@ export function __wbg_wallet_new(arg0) {
|
|
|
1932
1952
|
return addHeapObject(ret);
|
|
1933
1953
|
}
|
|
1934
1954
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1935
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1936
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1955
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1956
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_13580);
|
|
1937
1957
|
return addHeapObject(ret);
|
|
1938
1958
|
}
|
|
1939
1959
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1940
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1941
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1960
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1448, ret: Externref, inner_ret: Some(Externref) }, mutable: true }) -> Externref`.
|
|
1961
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_15391);
|
|
1942
1962
|
return addHeapObject(ret);
|
|
1943
1963
|
}
|
|
1944
1964
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
1945
1965
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 92, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1946
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1966
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_729);
|
|
1947
1967
|
return addHeapObject(ret);
|
|
1948
1968
|
}
|
|
1949
1969
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
1950
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1951
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1970
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1293, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1971
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_13298);
|
|
1952
1972
|
return addHeapObject(ret);
|
|
1953
1973
|
}
|
|
1954
1974
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
1955
1975
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1449, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1956
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1976
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_15392);
|
|
1957
1977
|
return addHeapObject(ret);
|
|
1958
1978
|
}
|
|
1959
1979
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
1960
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1961
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1980
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 1447, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1981
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_15394);
|
|
1962
1982
|
return addHeapObject(ret);
|
|
1963
1983
|
}
|
|
1964
1984
|
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
1965
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1966
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1985
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1192, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1986
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12877);
|
|
1967
1987
|
return addHeapObject(ret);
|
|
1968
1988
|
}
|
|
1969
1989
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
1970
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1971
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1990
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1372, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1991
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_13735);
|
|
1972
1992
|
return addHeapObject(ret);
|
|
1973
1993
|
}
|
|
1974
1994
|
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
1975
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1976
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1995
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2691, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1996
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_19219);
|
|
1977
1997
|
return addHeapObject(ret);
|
|
1978
1998
|
}
|
|
1979
1999
|
export function __wbindgen_cast_000000000000000a(arg0) {
|
|
@@ -2064,39 +2084,39 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
2064
2084
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
2065
2085
|
takeObject(arg0);
|
|
2066
2086
|
}
|
|
2067
|
-
function
|
|
2068
|
-
wasm.
|
|
2087
|
+
function __wasm_bindgen_func_elem_12877(arg0, arg1) {
|
|
2088
|
+
wasm.__wasm_bindgen_func_elem_12877(arg0, arg1);
|
|
2069
2089
|
}
|
|
2070
2090
|
|
|
2071
|
-
function
|
|
2072
|
-
wasm.
|
|
2091
|
+
function __wasm_bindgen_func_elem_13735(arg0, arg1) {
|
|
2092
|
+
wasm.__wasm_bindgen_func_elem_13735(arg0, arg1);
|
|
2073
2093
|
}
|
|
2074
2094
|
|
|
2075
|
-
function
|
|
2076
|
-
wasm.
|
|
2095
|
+
function __wasm_bindgen_func_elem_19219(arg0, arg1) {
|
|
2096
|
+
wasm.__wasm_bindgen_func_elem_19219(arg0, arg1);
|
|
2077
2097
|
}
|
|
2078
2098
|
|
|
2079
|
-
function
|
|
2080
|
-
wasm.
|
|
2099
|
+
function __wasm_bindgen_func_elem_13580(arg0, arg1, arg2) {
|
|
2100
|
+
wasm.__wasm_bindgen_func_elem_13580(arg0, arg1, addHeapObject(arg2));
|
|
2081
2101
|
}
|
|
2082
2102
|
|
|
2083
|
-
function
|
|
2084
|
-
wasm.
|
|
2103
|
+
function __wasm_bindgen_func_elem_13298(arg0, arg1, arg2) {
|
|
2104
|
+
wasm.__wasm_bindgen_func_elem_13298(arg0, arg1, addHeapObject(arg2));
|
|
2085
2105
|
}
|
|
2086
2106
|
|
|
2087
|
-
function
|
|
2088
|
-
wasm.
|
|
2107
|
+
function __wasm_bindgen_func_elem_15394(arg0, arg1, arg2) {
|
|
2108
|
+
wasm.__wasm_bindgen_func_elem_15394(arg0, arg1, addHeapObject(arg2));
|
|
2089
2109
|
}
|
|
2090
2110
|
|
|
2091
|
-
function
|
|
2092
|
-
const ret = wasm.
|
|
2111
|
+
function __wasm_bindgen_func_elem_15391(arg0, arg1, arg2) {
|
|
2112
|
+
const ret = wasm.__wasm_bindgen_func_elem_15391(arg0, arg1, addHeapObject(arg2));
|
|
2093
2113
|
return takeObject(ret);
|
|
2094
2114
|
}
|
|
2095
2115
|
|
|
2096
|
-
function
|
|
2116
|
+
function __wasm_bindgen_func_elem_729(arg0, arg1, arg2) {
|
|
2097
2117
|
try {
|
|
2098
2118
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2099
|
-
wasm.
|
|
2119
|
+
wasm.__wasm_bindgen_func_elem_729(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2100
2120
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2101
2121
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2102
2122
|
if (r1) {
|
|
@@ -2107,10 +2127,10 @@ function __wasm_bindgen_func_elem_723(arg0, arg1, arg2) {
|
|
|
2107
2127
|
}
|
|
2108
2128
|
}
|
|
2109
2129
|
|
|
2110
|
-
function
|
|
2130
|
+
function __wasm_bindgen_func_elem_15392(arg0, arg1, arg2) {
|
|
2111
2131
|
try {
|
|
2112
2132
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2113
|
-
wasm.
|
|
2133
|
+
wasm.__wasm_bindgen_func_elem_15392(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2114
2134
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2115
2135
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2116
2136
|
if (r1) {
|
|
@@ -2121,8 +2141,8 @@ function __wasm_bindgen_func_elem_15398(arg0, arg1, arg2) {
|
|
|
2121
2141
|
}
|
|
2122
2142
|
}
|
|
2123
2143
|
|
|
2124
|
-
function
|
|
2125
|
-
wasm.
|
|
2144
|
+
function __wasm_bindgen_func_elem_732(arg0, arg1, arg2, arg3) {
|
|
2145
|
+
wasm.__wasm_bindgen_func_elem_732(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2126
2146
|
}
|
|
2127
2147
|
|
|
2128
2148
|
|
|
Binary file
|
|
@@ -39,6 +39,8 @@ export const wallet_offboardVtxos: (a: number, b: number, c: number, d: number,
|
|
|
39
39
|
export const wallet_payLightningInvoice: (a: number, b: number) => number;
|
|
40
40
|
export const wallet_payLightningOffer: (a: number, b: number) => number;
|
|
41
41
|
export const wallet_checkLightningPayment: (a: number, b: number) => number;
|
|
42
|
+
export const wallet_lightningSendState: (a: number, b: number, c: number) => number;
|
|
43
|
+
export const wallet_isInvoicePaid: (a: number, b: number, c: number) => number;
|
|
42
44
|
export const wallet_pendingLightningSends: (a: number) => number;
|
|
43
45
|
export const wallet_bolt11Invoice: (a: number, b: number) => number;
|
|
44
46
|
export const wallet_tryClaimAllLightningReceives: (a: number, b: number) => number;
|
|
@@ -122,16 +124,16 @@ export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
|
122
124
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
123
125
|
export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
124
126
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
127
|
-
export const
|
|
128
|
-
export const
|
|
129
|
-
export const
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
127
|
+
export const __wasm_bindgen_func_elem_729: (a: number, b: number, c: number, d: number) => void;
|
|
128
|
+
export const __wasm_bindgen_func_elem_15392: (a: number, b: number, c: number, d: number) => void;
|
|
129
|
+
export const __wasm_bindgen_func_elem_732: (a: number, b: number, c: number, d: number) => void;
|
|
130
|
+
export const __wasm_bindgen_func_elem_15391: (a: number, b: number, c: number) => number;
|
|
131
|
+
export const __wasm_bindgen_func_elem_13580: (a: number, b: number, c: number) => void;
|
|
132
|
+
export const __wasm_bindgen_func_elem_13298: (a: number, b: number, c: number) => void;
|
|
133
|
+
export const __wasm_bindgen_func_elem_15394: (a: number, b: number, c: number) => void;
|
|
134
|
+
export const __wasm_bindgen_func_elem_12877: (a: number, b: number) => void;
|
|
135
|
+
export const __wasm_bindgen_func_elem_13735: (a: number, b: number) => void;
|
|
136
|
+
export const __wasm_bindgen_func_elem_19219: (a: number, b: number) => void;
|
|
135
137
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
136
138
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
137
139
|
export const __wbindgen_export3: (a: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondts/bark",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Bark FFI bindings for the browser via WebAssembly (IndexedDB persister)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"registry": "https://registry.npmjs.org/",
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"releaseTag": "v0.
|
|
61
|
+
"releaseTag": "v0.7.0+bark.0.2.2"
|
|
62
62
|
}
|
package/web/bark_ffi_wasm.d.ts
CHANGED
|
@@ -94,6 +94,15 @@ export interface ExitProgressStatus {
|
|
|
94
94
|
error: string | undefined;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Terminal/in-flight state of an outgoing lightning send.
|
|
99
|
+
*
|
|
100
|
+
* Mirrors `bark`\'s `LightningSendState`. `pay_lightning_*` and
|
|
101
|
+
* `check_lightning_payment` now return this so callers can drive the
|
|
102
|
+
* crash-safe send flow themselves (initiate with `wait = false`, then poll).
|
|
103
|
+
*/
|
|
104
|
+
export type LightningSendStatus = { type: "unknown" } | { type: "inProgress"; send: LightningSend } | { type: "paid"; payment_hash: string; preimage: string };
|
|
105
|
+
|
|
97
106
|
export interface AddressWithIndex {
|
|
98
107
|
address: string;
|
|
99
108
|
index: number;
|
|
@@ -199,9 +208,18 @@ export interface LightningReceive {
|
|
|
199
208
|
|
|
200
209
|
export interface LightningSend {
|
|
201
210
|
invoice: string;
|
|
211
|
+
/**
|
|
212
|
+
* Amount being paid, in sats (`payment_amount`).
|
|
213
|
+
*/
|
|
202
214
|
amountSats: number;
|
|
215
|
+
/**
|
|
216
|
+
* Routing/ark fee for the send, in sats.
|
|
217
|
+
*/
|
|
218
|
+
feeSats: number;
|
|
219
|
+
/**
|
|
220
|
+
* Number of input VTXOs locked into the in-flight HTLC.
|
|
221
|
+
*/
|
|
203
222
|
htlcVtxoCount: number;
|
|
204
|
-
preimage: string | undefined;
|
|
205
223
|
}
|
|
206
224
|
|
|
207
225
|
export interface Movement {
|
|
@@ -242,11 +260,13 @@ export interface OnchainWalletDefaultArgs {
|
|
|
242
260
|
export interface PayLightningInvoiceArgs {
|
|
243
261
|
invoice: string;
|
|
244
262
|
amountSats?: number;
|
|
263
|
+
wait: boolean;
|
|
245
264
|
}
|
|
246
265
|
|
|
247
266
|
export interface PayLightningOfferArgs {
|
|
248
267
|
offer: string;
|
|
249
268
|
amountSats?: number;
|
|
269
|
+
wait: boolean;
|
|
250
270
|
}
|
|
251
271
|
|
|
252
272
|
export interface PendingBoard {
|
|
@@ -395,7 +415,7 @@ export class Wallet {
|
|
|
395
415
|
cancelAllPendingRounds(): Promise<void>;
|
|
396
416
|
cancelLightningReceive(paymentHash: string): Promise<void>;
|
|
397
417
|
cancelPendingRound(roundId: number): Promise<void>;
|
|
398
|
-
checkLightningPayment(args: CheckLightningPaymentArgs): Promise<
|
|
418
|
+
checkLightningPayment(args: CheckLightningPaymentArgs): Promise<LightningSendStatus>;
|
|
399
419
|
claimableLightningReceiveBalanceSats(): Promise<number>;
|
|
400
420
|
config(): Promise<Config>;
|
|
401
421
|
static create(args: WalletCreateArgs): Promise<Wallet>;
|
|
@@ -421,7 +441,9 @@ export class Wallet {
|
|
|
421
441
|
history(): Promise<Movement[]>;
|
|
422
442
|
historyByPaymentMethod(paymentMethodType: string, paymentMethodValue: string): Promise<Movement[]>;
|
|
423
443
|
importVtxo(vtxoBase64: string): Promise<void>;
|
|
444
|
+
isInvoicePaid(paymentHash: string): Promise<boolean>;
|
|
424
445
|
lightningReceiveStatus(paymentHash: string): Promise<LightningReceive | undefined>;
|
|
446
|
+
lightningSendState(paymentHash: string): Promise<LightningSendStatus>;
|
|
425
447
|
listClaimableExits(): Promise<ExitVtxo[]>;
|
|
426
448
|
mailboxAuthorization(): string;
|
|
427
449
|
mailboxIdentifier(): string;
|
|
@@ -440,8 +462,8 @@ export class Wallet {
|
|
|
440
462
|
offboardVtxos(vtxoIds: string[], bitcoinAddress: string): Promise<string>;
|
|
441
463
|
static open(args: WalletOpenArgs): Promise<Wallet>;
|
|
442
464
|
static openWithOnchain(onchainWallet: OnchainWallet, args: WalletOpenArgs): Promise<Wallet>;
|
|
443
|
-
payLightningInvoice(args: PayLightningInvoiceArgs): Promise<
|
|
444
|
-
payLightningOffer(args: PayLightningOfferArgs): Promise<
|
|
465
|
+
payLightningInvoice(args: PayLightningInvoiceArgs): Promise<LightningSendStatus>;
|
|
466
|
+
payLightningOffer(args: PayLightningOfferArgs): Promise<LightningSendStatus>;
|
|
445
467
|
peekAddress(index: number): Promise<string>;
|
|
446
468
|
pendingBoardVtxos(): Promise<Vtxo[]>;
|
|
447
469
|
pendingBoards(): Promise<PendingBoard[]>;
|
|
@@ -522,6 +544,8 @@ export interface InitOutput {
|
|
|
522
544
|
readonly wallet_payLightningInvoice: (a: number, b: number) => number;
|
|
523
545
|
readonly wallet_payLightningOffer: (a: number, b: number) => number;
|
|
524
546
|
readonly wallet_checkLightningPayment: (a: number, b: number) => number;
|
|
547
|
+
readonly wallet_lightningSendState: (a: number, b: number, c: number) => number;
|
|
548
|
+
readonly wallet_isInvoicePaid: (a: number, b: number, c: number) => number;
|
|
525
549
|
readonly wallet_pendingLightningSends: (a: number) => number;
|
|
526
550
|
readonly wallet_bolt11Invoice: (a: number, b: number) => number;
|
|
527
551
|
readonly wallet_tryClaimAllLightningReceives: (a: number, b: number) => number;
|
|
@@ -605,16 +629,16 @@ export interface InitOutput {
|
|
|
605
629
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
606
630
|
readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
607
631
|
readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
608
|
-
readonly
|
|
609
|
-
readonly
|
|
610
|
-
readonly
|
|
611
|
-
readonly
|
|
612
|
-
readonly
|
|
613
|
-
readonly
|
|
614
|
-
readonly
|
|
615
|
-
readonly
|
|
616
|
-
readonly
|
|
617
|
-
readonly
|
|
632
|
+
readonly __wasm_bindgen_func_elem_729: (a: number, b: number, c: number, d: number) => void;
|
|
633
|
+
readonly __wasm_bindgen_func_elem_15392: (a: number, b: number, c: number, d: number) => void;
|
|
634
|
+
readonly __wasm_bindgen_func_elem_732: (a: number, b: number, c: number, d: number) => void;
|
|
635
|
+
readonly __wasm_bindgen_func_elem_15391: (a: number, b: number, c: number) => number;
|
|
636
|
+
readonly __wasm_bindgen_func_elem_13580: (a: number, b: number, c: number) => void;
|
|
637
|
+
readonly __wasm_bindgen_func_elem_13298: (a: number, b: number, c: number) => void;
|
|
638
|
+
readonly __wasm_bindgen_func_elem_15394: (a: number, b: number, c: number) => void;
|
|
639
|
+
readonly __wasm_bindgen_func_elem_12877: (a: number, b: number) => void;
|
|
640
|
+
readonly __wasm_bindgen_func_elem_13735: (a: number, b: number) => void;
|
|
641
|
+
readonly __wasm_bindgen_func_elem_19219: (a: number, b: number) => void;
|
|
618
642
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
619
643
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
620
644
|
readonly __wbindgen_export3: (a: number) => void;
|
package/web/bark_ffi_wasm.js
CHANGED
|
@@ -333,7 +333,7 @@ export class Wallet {
|
|
|
333
333
|
}
|
|
334
334
|
/**
|
|
335
335
|
* @param {CheckLightningPaymentArgs} args
|
|
336
|
-
* @returns {Promise<
|
|
336
|
+
* @returns {Promise<LightningSendStatus>}
|
|
337
337
|
*/
|
|
338
338
|
checkLightningPayment(args) {
|
|
339
339
|
const ret = wasm.wallet_checkLightningPayment(this.__wbg_ptr, addHeapObject(args));
|
|
@@ -565,6 +565,16 @@ export class Wallet {
|
|
|
565
565
|
const ret = wasm.wallet_importVtxo(this.__wbg_ptr, ptr0, len0);
|
|
566
566
|
return takeObject(ret);
|
|
567
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* @param {string} paymentHash
|
|
570
|
+
* @returns {Promise<boolean>}
|
|
571
|
+
*/
|
|
572
|
+
isInvoicePaid(paymentHash) {
|
|
573
|
+
const ptr0 = passStringToWasm0(paymentHash, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
574
|
+
const len0 = WASM_VECTOR_LEN;
|
|
575
|
+
const ret = wasm.wallet_isInvoicePaid(this.__wbg_ptr, ptr0, len0);
|
|
576
|
+
return takeObject(ret);
|
|
577
|
+
}
|
|
568
578
|
/**
|
|
569
579
|
* @param {string} paymentHash
|
|
570
580
|
* @returns {Promise<LightningReceive | undefined>}
|
|
@@ -575,6 +585,16 @@ export class Wallet {
|
|
|
575
585
|
const ret = wasm.wallet_lightningReceiveStatus(this.__wbg_ptr, ptr0, len0);
|
|
576
586
|
return takeObject(ret);
|
|
577
587
|
}
|
|
588
|
+
/**
|
|
589
|
+
* @param {string} paymentHash
|
|
590
|
+
* @returns {Promise<LightningSendStatus>}
|
|
591
|
+
*/
|
|
592
|
+
lightningSendState(paymentHash) {
|
|
593
|
+
const ptr0 = passStringToWasm0(paymentHash, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
594
|
+
const len0 = WASM_VECTOR_LEN;
|
|
595
|
+
const ret = wasm.wallet_lightningSendState(this.__wbg_ptr, ptr0, len0);
|
|
596
|
+
return takeObject(ret);
|
|
597
|
+
}
|
|
578
598
|
/**
|
|
579
599
|
* @returns {Promise<ExitVtxo[]>}
|
|
580
600
|
*/
|
|
@@ -760,7 +780,7 @@ export class Wallet {
|
|
|
760
780
|
}
|
|
761
781
|
/**
|
|
762
782
|
* @param {PayLightningInvoiceArgs} args
|
|
763
|
-
* @returns {Promise<
|
|
783
|
+
* @returns {Promise<LightningSendStatus>}
|
|
764
784
|
*/
|
|
765
785
|
payLightningInvoice(args) {
|
|
766
786
|
const ret = wasm.wallet_payLightningInvoice(this.__wbg_ptr, addHeapObject(args));
|
|
@@ -768,7 +788,7 @@ export class Wallet {
|
|
|
768
788
|
}
|
|
769
789
|
/**
|
|
770
790
|
* @param {PayLightningOfferArgs} args
|
|
771
|
-
* @returns {Promise<
|
|
791
|
+
* @returns {Promise<LightningSendStatus>}
|
|
772
792
|
*/
|
|
773
793
|
payLightningOffer(args) {
|
|
774
794
|
const ret = wasm.wallet_payLightningOffer(this.__wbg_ptr, addHeapObject(args));
|
|
@@ -1612,7 +1632,7 @@ function __wbg_get_imports() {
|
|
|
1612
1632
|
const a = state0.a;
|
|
1613
1633
|
state0.a = 0;
|
|
1614
1634
|
try {
|
|
1615
|
-
return
|
|
1635
|
+
return __wasm_bindgen_func_elem_732(a, state0.b, arg0, arg1);
|
|
1616
1636
|
} finally {
|
|
1617
1637
|
state0.a = a;
|
|
1618
1638
|
}
|
|
@@ -1646,7 +1666,7 @@ function __wbg_get_imports() {
|
|
|
1646
1666
|
const a = state0.a;
|
|
1647
1667
|
state0.a = 0;
|
|
1648
1668
|
try {
|
|
1649
|
-
return
|
|
1669
|
+
return __wasm_bindgen_func_elem_732(a, state0.b, arg0, arg1);
|
|
1650
1670
|
} finally {
|
|
1651
1671
|
state0.a = a;
|
|
1652
1672
|
}
|
|
@@ -1937,48 +1957,48 @@ function __wbg_get_imports() {
|
|
|
1937
1957
|
return addHeapObject(ret);
|
|
1938
1958
|
},
|
|
1939
1959
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1940
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1941
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1960
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1333, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1961
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_13580);
|
|
1942
1962
|
return addHeapObject(ret);
|
|
1943
1963
|
},
|
|
1944
1964
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1945
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1946
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1965
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1448, ret: Externref, inner_ret: Some(Externref) }, mutable: true }) -> Externref`.
|
|
1966
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_15391);
|
|
1947
1967
|
return addHeapObject(ret);
|
|
1948
1968
|
},
|
|
1949
1969
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1950
1970
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 92, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1951
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1971
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_729);
|
|
1952
1972
|
return addHeapObject(ret);
|
|
1953
1973
|
},
|
|
1954
1974
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1955
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1956
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1975
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1293, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1976
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_13298);
|
|
1957
1977
|
return addHeapObject(ret);
|
|
1958
1978
|
},
|
|
1959
1979
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1960
1980
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1449, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1961
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1981
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_15392);
|
|
1962
1982
|
return addHeapObject(ret);
|
|
1963
1983
|
},
|
|
1964
1984
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1965
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1966
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1985
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 1447, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1986
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_15394);
|
|
1967
1987
|
return addHeapObject(ret);
|
|
1968
1988
|
},
|
|
1969
1989
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1970
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1971
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1990
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1192, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1991
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12877);
|
|
1972
1992
|
return addHeapObject(ret);
|
|
1973
1993
|
},
|
|
1974
1994
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1975
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1976
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1995
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1372, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1996
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_13735);
|
|
1977
1997
|
return addHeapObject(ret);
|
|
1978
1998
|
},
|
|
1979
1999
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
1980
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1981
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2000
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2691, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2001
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_19219);
|
|
1982
2002
|
return addHeapObject(ret);
|
|
1983
2003
|
},
|
|
1984
2004
|
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
@@ -2076,39 +2096,39 @@ function __wbg_get_imports() {
|
|
|
2076
2096
|
};
|
|
2077
2097
|
}
|
|
2078
2098
|
|
|
2079
|
-
function
|
|
2080
|
-
wasm.
|
|
2099
|
+
function __wasm_bindgen_func_elem_12877(arg0, arg1) {
|
|
2100
|
+
wasm.__wasm_bindgen_func_elem_12877(arg0, arg1);
|
|
2081
2101
|
}
|
|
2082
2102
|
|
|
2083
|
-
function
|
|
2084
|
-
wasm.
|
|
2103
|
+
function __wasm_bindgen_func_elem_13735(arg0, arg1) {
|
|
2104
|
+
wasm.__wasm_bindgen_func_elem_13735(arg0, arg1);
|
|
2085
2105
|
}
|
|
2086
2106
|
|
|
2087
|
-
function
|
|
2088
|
-
wasm.
|
|
2107
|
+
function __wasm_bindgen_func_elem_19219(arg0, arg1) {
|
|
2108
|
+
wasm.__wasm_bindgen_func_elem_19219(arg0, arg1);
|
|
2089
2109
|
}
|
|
2090
2110
|
|
|
2091
|
-
function
|
|
2092
|
-
wasm.
|
|
2111
|
+
function __wasm_bindgen_func_elem_13580(arg0, arg1, arg2) {
|
|
2112
|
+
wasm.__wasm_bindgen_func_elem_13580(arg0, arg1, addHeapObject(arg2));
|
|
2093
2113
|
}
|
|
2094
2114
|
|
|
2095
|
-
function
|
|
2096
|
-
wasm.
|
|
2115
|
+
function __wasm_bindgen_func_elem_13298(arg0, arg1, arg2) {
|
|
2116
|
+
wasm.__wasm_bindgen_func_elem_13298(arg0, arg1, addHeapObject(arg2));
|
|
2097
2117
|
}
|
|
2098
2118
|
|
|
2099
|
-
function
|
|
2100
|
-
wasm.
|
|
2119
|
+
function __wasm_bindgen_func_elem_15394(arg0, arg1, arg2) {
|
|
2120
|
+
wasm.__wasm_bindgen_func_elem_15394(arg0, arg1, addHeapObject(arg2));
|
|
2101
2121
|
}
|
|
2102
2122
|
|
|
2103
|
-
function
|
|
2104
|
-
const ret = wasm.
|
|
2123
|
+
function __wasm_bindgen_func_elem_15391(arg0, arg1, arg2) {
|
|
2124
|
+
const ret = wasm.__wasm_bindgen_func_elem_15391(arg0, arg1, addHeapObject(arg2));
|
|
2105
2125
|
return takeObject(ret);
|
|
2106
2126
|
}
|
|
2107
2127
|
|
|
2108
|
-
function
|
|
2128
|
+
function __wasm_bindgen_func_elem_729(arg0, arg1, arg2) {
|
|
2109
2129
|
try {
|
|
2110
2130
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2111
|
-
wasm.
|
|
2131
|
+
wasm.__wasm_bindgen_func_elem_729(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2112
2132
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2113
2133
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2114
2134
|
if (r1) {
|
|
@@ -2119,10 +2139,10 @@ function __wasm_bindgen_func_elem_723(arg0, arg1, arg2) {
|
|
|
2119
2139
|
}
|
|
2120
2140
|
}
|
|
2121
2141
|
|
|
2122
|
-
function
|
|
2142
|
+
function __wasm_bindgen_func_elem_15392(arg0, arg1, arg2) {
|
|
2123
2143
|
try {
|
|
2124
2144
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2125
|
-
wasm.
|
|
2145
|
+
wasm.__wasm_bindgen_func_elem_15392(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2126
2146
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2127
2147
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2128
2148
|
if (r1) {
|
|
@@ -2133,8 +2153,8 @@ function __wasm_bindgen_func_elem_15398(arg0, arg1, arg2) {
|
|
|
2133
2153
|
}
|
|
2134
2154
|
}
|
|
2135
2155
|
|
|
2136
|
-
function
|
|
2137
|
-
wasm.
|
|
2156
|
+
function __wasm_bindgen_func_elem_732(arg0, arg1, arg2, arg3) {
|
|
2157
|
+
wasm.__wasm_bindgen_func_elem_732(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2138
2158
|
}
|
|
2139
2159
|
|
|
2140
2160
|
|
|
Binary file
|
|
@@ -39,6 +39,8 @@ export const wallet_offboardVtxos: (a: number, b: number, c: number, d: number,
|
|
|
39
39
|
export const wallet_payLightningInvoice: (a: number, b: number) => number;
|
|
40
40
|
export const wallet_payLightningOffer: (a: number, b: number) => number;
|
|
41
41
|
export const wallet_checkLightningPayment: (a: number, b: number) => number;
|
|
42
|
+
export const wallet_lightningSendState: (a: number, b: number, c: number) => number;
|
|
43
|
+
export const wallet_isInvoicePaid: (a: number, b: number, c: number) => number;
|
|
42
44
|
export const wallet_pendingLightningSends: (a: number) => number;
|
|
43
45
|
export const wallet_bolt11Invoice: (a: number, b: number) => number;
|
|
44
46
|
export const wallet_tryClaimAllLightningReceives: (a: number, b: number) => number;
|
|
@@ -122,16 +124,16 @@ export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
|
122
124
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
123
125
|
export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
124
126
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
125
|
-
export const
|
|
126
|
-
export const
|
|
127
|
-
export const
|
|
128
|
-
export const
|
|
129
|
-
export const
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
127
|
+
export const __wasm_bindgen_func_elem_729: (a: number, b: number, c: number, d: number) => void;
|
|
128
|
+
export const __wasm_bindgen_func_elem_15392: (a: number, b: number, c: number, d: number) => void;
|
|
129
|
+
export const __wasm_bindgen_func_elem_732: (a: number, b: number, c: number, d: number) => void;
|
|
130
|
+
export const __wasm_bindgen_func_elem_15391: (a: number, b: number, c: number) => number;
|
|
131
|
+
export const __wasm_bindgen_func_elem_13580: (a: number, b: number, c: number) => void;
|
|
132
|
+
export const __wasm_bindgen_func_elem_13298: (a: number, b: number, c: number) => void;
|
|
133
|
+
export const __wasm_bindgen_func_elem_15394: (a: number, b: number, c: number) => void;
|
|
134
|
+
export const __wasm_bindgen_func_elem_12877: (a: number, b: number) => void;
|
|
135
|
+
export const __wasm_bindgen_func_elem_13735: (a: number, b: number) => void;
|
|
136
|
+
export const __wasm_bindgen_func_elem_19219: (a: number, b: number) => void;
|
|
135
137
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
136
138
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
137
139
|
export const __wbindgen_export3: (a: number) => void;
|