@breeztech/breez-sdk-spark 0.13.2-dev5 → 0.13.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/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +631 -631
- package/bundler/breez_sdk_spark_wasm_bg.js +53 -53
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/deno/breez_sdk_spark_wasm.d.ts +631 -631
- package/deno/breez_sdk_spark_wasm.js +53 -53
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/nodejs/breez_sdk_spark_wasm.d.ts +631 -631
- package/nodejs/breez_sdk_spark_wasm.js +53 -53
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/nodejs/index.mjs +3 -3
- package/nodejs/postgres-tree-store/index.cjs +39 -30
- package/package.json +1 -1
- package/ssr/index.js +13 -13
- package/web/breez_sdk_spark_wasm.d.ts +634 -634
- package/web/breez_sdk_spark_wasm.js +53 -53
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
|
@@ -238,17 +238,6 @@ export function defaultPostgresStorageConfig(connection_string) {
|
|
|
238
238
|
return ret;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
/**
|
|
242
|
-
* Creates a default external signer from a mnemonic phrase.
|
|
243
|
-
*
|
|
244
|
-
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
245
|
-
* @returns {Promise<SparkStatus>}
|
|
246
|
-
*/
|
|
247
|
-
export function getSparkStatus() {
|
|
248
|
-
const ret = wasm.getSparkStatus();
|
|
249
|
-
return ret;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
241
|
/**
|
|
253
242
|
* @param {Network} network
|
|
254
243
|
* @returns {Config}
|
|
@@ -258,18 +247,6 @@ export function defaultConfig(network) {
|
|
|
258
247
|
return ret;
|
|
259
248
|
}
|
|
260
249
|
|
|
261
|
-
/**
|
|
262
|
-
* @param {Logger} logger
|
|
263
|
-
* @param {string | null} [filter]
|
|
264
|
-
* @returns {Promise<void>}
|
|
265
|
-
*/
|
|
266
|
-
export function initLogging(logger, filter) {
|
|
267
|
-
var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
268
|
-
var len0 = WASM_VECTOR_LEN;
|
|
269
|
-
const ret = wasm.initLogging(logger, ptr0, len0);
|
|
270
|
-
return ret;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
250
|
/**
|
|
274
251
|
* @param {ConnectRequest} request
|
|
275
252
|
* @returns {Promise<BreezSdk>}
|
|
@@ -279,19 +256,6 @@ export function connect(request) {
|
|
|
279
256
|
return ret;
|
|
280
257
|
}
|
|
281
258
|
|
|
282
|
-
/**
|
|
283
|
-
* @param {Config} config
|
|
284
|
-
* @param {ExternalSigner} signer
|
|
285
|
-
* @param {string} storage_dir
|
|
286
|
-
* @returns {Promise<BreezSdk>}
|
|
287
|
-
*/
|
|
288
|
-
export function connectWithSigner(config, signer, storage_dir) {
|
|
289
|
-
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
290
|
-
const len0 = WASM_VECTOR_LEN;
|
|
291
|
-
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
292
|
-
return ret;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
259
|
function takeFromExternrefTable0(idx) {
|
|
296
260
|
const value = wasm.__wbindgen_export_5.get(idx);
|
|
297
261
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -316,6 +280,42 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
|
|
|
316
280
|
return DefaultSigner.__wrap(ret[0]);
|
|
317
281
|
}
|
|
318
282
|
|
|
283
|
+
/**
|
|
284
|
+
* @param {Logger} logger
|
|
285
|
+
* @param {string | null} [filter]
|
|
286
|
+
* @returns {Promise<void>}
|
|
287
|
+
*/
|
|
288
|
+
export function initLogging(logger, filter) {
|
|
289
|
+
var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
290
|
+
var len0 = WASM_VECTOR_LEN;
|
|
291
|
+
const ret = wasm.initLogging(logger, ptr0, len0);
|
|
292
|
+
return ret;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Creates a default external signer from a mnemonic phrase.
|
|
297
|
+
*
|
|
298
|
+
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
299
|
+
* @returns {Promise<SparkStatus>}
|
|
300
|
+
*/
|
|
301
|
+
export function getSparkStatus() {
|
|
302
|
+
const ret = wasm.getSparkStatus();
|
|
303
|
+
return ret;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @param {Config} config
|
|
308
|
+
* @param {ExternalSigner} signer
|
|
309
|
+
* @param {string} storage_dir
|
|
310
|
+
* @returns {Promise<BreezSdk>}
|
|
311
|
+
*/
|
|
312
|
+
export function connectWithSigner(config, signer, storage_dir) {
|
|
313
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
|
+
const len0 = WASM_VECTOR_LEN;
|
|
315
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
316
|
+
return ret;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
319
|
function passArray8ToWasm0(arg, malloc) {
|
|
320
320
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
321
321
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -334,15 +334,15 @@ export function task_worker_entry_point(ptr) {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
function __wbg_adapter_64(arg0, arg1, arg2) {
|
|
337
|
-
wasm.
|
|
337
|
+
wasm.closure385_externref_shim(arg0, arg1, arg2);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
function __wbg_adapter_69(arg0, arg1) {
|
|
341
|
-
wasm.
|
|
341
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c(arg0, arg1);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
function
|
|
345
|
-
wasm.
|
|
344
|
+
function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
|
|
345
|
+
wasm.closure665_externref_shim(arg0, arg1, arg2, arg3);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1499,13 +1499,13 @@ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg
|
|
|
1499
1499
|
return ret;
|
|
1500
1500
|
}, arguments) };
|
|
1501
1501
|
|
|
1502
|
-
export function
|
|
1502
|
+
export function __wbg_cancelReservation_038a18dbc15a13b5() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1503
1503
|
let deferred0_0;
|
|
1504
1504
|
let deferred0_1;
|
|
1505
1505
|
try {
|
|
1506
1506
|
deferred0_0 = arg1;
|
|
1507
1507
|
deferred0_1 = arg2;
|
|
1508
|
-
const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
|
|
1508
|
+
const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2), arg3);
|
|
1509
1509
|
return ret;
|
|
1510
1510
|
} finally {
|
|
1511
1511
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
@@ -2231,7 +2231,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
2231
2231
|
const a = state0.a;
|
|
2232
2232
|
state0.a = 0;
|
|
2233
2233
|
try {
|
|
2234
|
-
return
|
|
2234
|
+
return __wbg_adapter_433(a, state0.b, arg0, arg1);
|
|
2235
2235
|
} finally {
|
|
2236
2236
|
state0.a = a;
|
|
2237
2237
|
}
|
|
@@ -2884,28 +2884,28 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
2884
2884
|
return ret;
|
|
2885
2885
|
};
|
|
2886
2886
|
|
|
2887
|
-
export function
|
|
2888
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2887
|
+
export function __wbindgen_closure_wrapper13493(arg0, arg1, arg2) {
|
|
2888
|
+
const ret = makeMutClosure(arg0, arg1, 869, __wbg_adapter_69);
|
|
2889
2889
|
return ret;
|
|
2890
2890
|
};
|
|
2891
2891
|
|
|
2892
|
-
export function
|
|
2893
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2892
|
+
export function __wbindgen_closure_wrapper15518(arg0, arg1, arg2) {
|
|
2893
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2894
2894
|
return ret;
|
|
2895
2895
|
};
|
|
2896
2896
|
|
|
2897
|
-
export function
|
|
2898
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2897
|
+
export function __wbindgen_closure_wrapper5986(arg0, arg1, arg2) {
|
|
2898
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2899
2899
|
return ret;
|
|
2900
2900
|
};
|
|
2901
2901
|
|
|
2902
|
-
export function
|
|
2903
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2902
|
+
export function __wbindgen_closure_wrapper5993(arg0, arg1, arg2) {
|
|
2903
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2904
2904
|
return ret;
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
|
-
export function
|
|
2908
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2907
|
+
export function __wbindgen_closure_wrapper7609(arg0, arg1, arg2) {
|
|
2908
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_69);
|
|
2909
2909
|
return ret;
|
|
2910
2910
|
};
|
|
2911
2911
|
|
|
Binary file
|
|
@@ -128,7 +128,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
128
128
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
129
129
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
130
130
|
export const __externref_table_dealloc: (a: number) => void;
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
131
|
+
export const closure385_externref_shim: (a: number, b: number, c: any) => void;
|
|
132
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c: (a: number, b: number) => void;
|
|
133
|
+
export const closure665_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
134
134
|
export const __wbindgen_start: () => void;
|