@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
|
@@ -221,17 +221,6 @@ export function defaultPostgresStorageConfig(connection_string) {
|
|
|
221
221
|
return ret;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/**
|
|
225
|
-
* Creates a default external signer from a mnemonic phrase.
|
|
226
|
-
*
|
|
227
|
-
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
228
|
-
* @returns {Promise<SparkStatus>}
|
|
229
|
-
*/
|
|
230
|
-
export function getSparkStatus() {
|
|
231
|
-
const ret = wasm.getSparkStatus();
|
|
232
|
-
return ret;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
224
|
/**
|
|
236
225
|
* @param {Network} network
|
|
237
226
|
* @returns {Config}
|
|
@@ -241,18 +230,6 @@ export function defaultConfig(network) {
|
|
|
241
230
|
return ret;
|
|
242
231
|
}
|
|
243
232
|
|
|
244
|
-
/**
|
|
245
|
-
* @param {Logger} logger
|
|
246
|
-
* @param {string | null} [filter]
|
|
247
|
-
* @returns {Promise<void>}
|
|
248
|
-
*/
|
|
249
|
-
export function initLogging(logger, filter) {
|
|
250
|
-
var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
251
|
-
var len0 = WASM_VECTOR_LEN;
|
|
252
|
-
const ret = wasm.initLogging(logger, ptr0, len0);
|
|
253
|
-
return ret;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
233
|
/**
|
|
257
234
|
* @param {ConnectRequest} request
|
|
258
235
|
* @returns {Promise<BreezSdk>}
|
|
@@ -262,19 +239,6 @@ export function connect(request) {
|
|
|
262
239
|
return ret;
|
|
263
240
|
}
|
|
264
241
|
|
|
265
|
-
/**
|
|
266
|
-
* @param {Config} config
|
|
267
|
-
* @param {ExternalSigner} signer
|
|
268
|
-
* @param {string} storage_dir
|
|
269
|
-
* @returns {Promise<BreezSdk>}
|
|
270
|
-
*/
|
|
271
|
-
export function connectWithSigner(config, signer, storage_dir) {
|
|
272
|
-
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
-
const len0 = WASM_VECTOR_LEN;
|
|
274
|
-
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
275
|
-
return ret;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
242
|
function takeFromExternrefTable0(idx) {
|
|
279
243
|
const value = wasm.__wbindgen_export_5.get(idx);
|
|
280
244
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -299,6 +263,42 @@ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_con
|
|
|
299
263
|
return DefaultSigner.__wrap(ret[0]);
|
|
300
264
|
}
|
|
301
265
|
|
|
266
|
+
/**
|
|
267
|
+
* @param {Logger} logger
|
|
268
|
+
* @param {string | null} [filter]
|
|
269
|
+
* @returns {Promise<void>}
|
|
270
|
+
*/
|
|
271
|
+
export function initLogging(logger, filter) {
|
|
272
|
+
var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
+
var len0 = WASM_VECTOR_LEN;
|
|
274
|
+
const ret = wasm.initLogging(logger, ptr0, len0);
|
|
275
|
+
return ret;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Creates a default external signer from a mnemonic phrase.
|
|
280
|
+
*
|
|
281
|
+
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
282
|
+
* @returns {Promise<SparkStatus>}
|
|
283
|
+
*/
|
|
284
|
+
export function getSparkStatus() {
|
|
285
|
+
const ret = wasm.getSparkStatus();
|
|
286
|
+
return ret;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @param {Config} config
|
|
291
|
+
* @param {ExternalSigner} signer
|
|
292
|
+
* @param {string} storage_dir
|
|
293
|
+
* @returns {Promise<BreezSdk>}
|
|
294
|
+
*/
|
|
295
|
+
export function connectWithSigner(config, signer, storage_dir) {
|
|
296
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
297
|
+
const len0 = WASM_VECTOR_LEN;
|
|
298
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
299
|
+
return ret;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
302
|
function passArray8ToWasm0(arg, malloc) {
|
|
303
303
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
304
304
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -317,15 +317,15 @@ export function task_worker_entry_point(ptr) {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
function __wbg_adapter_64(arg0, arg1, arg2) {
|
|
320
|
-
wasm.
|
|
320
|
+
wasm.closure385_externref_shim(arg0, arg1, arg2);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
function __wbg_adapter_69(arg0, arg1) {
|
|
324
|
-
wasm.
|
|
324
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c(arg0, arg1);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
function
|
|
328
|
-
wasm.
|
|
327
|
+
function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
|
|
328
|
+
wasm.closure665_externref_shim(arg0, arg1, arg2, arg3);
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1465,13 +1465,13 @@ const imports = {
|
|
|
1465
1465
|
const ret = arg0.call(arg1, arg2);
|
|
1466
1466
|
return ret;
|
|
1467
1467
|
}, arguments) },
|
|
1468
|
-
|
|
1468
|
+
__wbg_cancelReservation_038a18dbc15a13b5: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1469
1469
|
let deferred0_0;
|
|
1470
1470
|
let deferred0_1;
|
|
1471
1471
|
try {
|
|
1472
1472
|
deferred0_0 = arg1;
|
|
1473
1473
|
deferred0_1 = arg2;
|
|
1474
|
-
const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
|
|
1474
|
+
const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2), arg3);
|
|
1475
1475
|
return ret;
|
|
1476
1476
|
} finally {
|
|
1477
1477
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
@@ -2099,7 +2099,7 @@ const imports = {
|
|
|
2099
2099
|
const a = state0.a;
|
|
2100
2100
|
state0.a = 0;
|
|
2101
2101
|
try {
|
|
2102
|
-
return
|
|
2102
|
+
return __wbg_adapter_433(a, state0.b, arg0, arg1);
|
|
2103
2103
|
} finally {
|
|
2104
2104
|
state0.a = a;
|
|
2105
2105
|
}
|
|
@@ -2639,24 +2639,24 @@ const imports = {
|
|
|
2639
2639
|
const ret = false;
|
|
2640
2640
|
return ret;
|
|
2641
2641
|
},
|
|
2642
|
-
|
|
2643
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2642
|
+
__wbindgen_closure_wrapper13493: function(arg0, arg1, arg2) {
|
|
2643
|
+
const ret = makeMutClosure(arg0, arg1, 869, __wbg_adapter_69);
|
|
2644
2644
|
return ret;
|
|
2645
2645
|
},
|
|
2646
|
-
|
|
2647
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2646
|
+
__wbindgen_closure_wrapper15518: function(arg0, arg1, arg2) {
|
|
2647
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2648
2648
|
return ret;
|
|
2649
2649
|
},
|
|
2650
|
-
|
|
2651
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2650
|
+
__wbindgen_closure_wrapper5986: function(arg0, arg1, arg2) {
|
|
2651
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2652
2652
|
return ret;
|
|
2653
2653
|
},
|
|
2654
|
-
|
|
2655
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2654
|
+
__wbindgen_closure_wrapper5993: function(arg0, arg1, arg2) {
|
|
2655
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2656
2656
|
return ret;
|
|
2657
2657
|
},
|
|
2658
|
-
|
|
2659
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2658
|
+
__wbindgen_closure_wrapper7609: function(arg0, arg1, arg2) {
|
|
2659
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_69);
|
|
2660
2660
|
return ret;
|
|
2661
2661
|
},
|
|
2662
2662
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
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;
|