@breeztech/breez-sdk-spark 0.1.8-dev1 → 0.1.9-dev2
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 +5 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +18 -8
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -2
- package/deno/breez_sdk_spark_wasm.d.ts +5 -1
- package/deno/breez_sdk_spark_wasm.js +18 -8
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -2
- package/nodejs/breez_sdk_spark_wasm.d.ts +5 -1
- package/nodejs/breez_sdk_spark_wasm.js +18 -8
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -2
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +8 -3
- package/web/breez_sdk_spark_wasm.js +18 -8
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -2
package/breez-sdk-spark.tgz
CHANGED
|
Binary file
|
|
@@ -178,6 +178,7 @@ export interface Config {
|
|
|
178
178
|
syncIntervalSecs: number;
|
|
179
179
|
maxDepositClaimFee?: Fee;
|
|
180
180
|
lnurlDomain?: string;
|
|
181
|
+
preferSparkOverLightning: boolean;
|
|
181
182
|
}
|
|
182
183
|
|
|
183
184
|
export type Network = "mainnet" | "regtest";
|
|
@@ -452,7 +453,9 @@ export interface ConnectRequest {
|
|
|
452
453
|
storageDir: string;
|
|
453
454
|
}
|
|
454
455
|
|
|
455
|
-
export type
|
|
456
|
+
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
|
+
|
|
458
|
+
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
456
459
|
|
|
457
460
|
export class BreezSdk {
|
|
458
461
|
private constructor();
|
|
@@ -504,5 +507,6 @@ export class SdkBuilder {
|
|
|
504
507
|
free(): void;
|
|
505
508
|
static new(config: Config, mnemonic: string, storage: Storage): SdkBuilder;
|
|
506
509
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
|
+
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
507
511
|
build(): Promise<BreezSdk>;
|
|
508
512
|
}
|
|
@@ -283,11 +283,11 @@ function __wbg_adapter_52(arg0, arg1) {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
286
|
-
wasm.
|
|
286
|
+
wasm.closure767_externref_shim(arg0, arg1, arg2);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
function
|
|
290
|
-
wasm.
|
|
289
|
+
function __wbg_adapter_178(arg0, arg1, arg2, arg3) {
|
|
290
|
+
wasm.closure416_externref_shim(arg0, arg1, arg2, arg3);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -668,6 +668,16 @@ export class SdkBuilder {
|
|
|
668
668
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
669
669
|
return SdkBuilder.__wrap(ret);
|
|
670
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* @param {KeySetType} key_set_type
|
|
673
|
+
* @param {boolean} use_address_index
|
|
674
|
+
* @returns {SdkBuilder}
|
|
675
|
+
*/
|
|
676
|
+
withKeySet(key_set_type, use_address_index) {
|
|
677
|
+
const ptr = this.__destroy_into_raw();
|
|
678
|
+
const ret = wasm.sdkbuilder_withKeySet(ptr, key_set_type, use_address_index);
|
|
679
|
+
return SdkBuilder.__wrap(ret);
|
|
680
|
+
}
|
|
671
681
|
/**
|
|
672
682
|
* @returns {Promise<BreezSdk>}
|
|
673
683
|
*/
|
|
@@ -1037,7 +1047,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1037
1047
|
const a = state0.a;
|
|
1038
1048
|
state0.a = 0;
|
|
1039
1049
|
try {
|
|
1040
|
-
return
|
|
1050
|
+
return __wbg_adapter_178(a, state0.b, arg0, arg1);
|
|
1041
1051
|
} finally {
|
|
1042
1052
|
state0.a = a;
|
|
1043
1053
|
}
|
|
@@ -1400,13 +1410,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1400
1410
|
return ret;
|
|
1401
1411
|
};
|
|
1402
1412
|
|
|
1403
|
-
export function
|
|
1404
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1413
|
+
export function __wbindgen_closure_wrapper7824(arg0, arg1, arg2) {
|
|
1414
|
+
const ret = makeMutClosure(arg0, arg1, 593, __wbg_adapter_52);
|
|
1405
1415
|
return ret;
|
|
1406
1416
|
};
|
|
1407
1417
|
|
|
1408
|
-
export function
|
|
1409
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1418
|
+
export function __wbindgen_closure_wrapper9478(arg0, arg1, arg2) {
|
|
1419
|
+
const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_55);
|
|
1410
1420
|
return ret;
|
|
1411
1421
|
};
|
|
1412
1422
|
|
|
Binary file
|
|
@@ -29,6 +29,7 @@ export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
|
29
29
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
30
|
export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
|
|
31
31
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
|
+
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
32
33
|
export const sdkbuilder_build: (a: number) => any;
|
|
33
34
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
34
35
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
@@ -57,6 +58,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
57
58
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
58
59
|
export const __externref_table_dealloc: (a: number) => void;
|
|
59
60
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
61
|
+
export const closure767_externref_shim: (a: number, b: number, c: any) => void;
|
|
62
|
+
export const closure416_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
62
63
|
export const __wbindgen_start: () => void;
|
|
@@ -178,6 +178,7 @@ export interface Config {
|
|
|
178
178
|
syncIntervalSecs: number;
|
|
179
179
|
maxDepositClaimFee?: Fee;
|
|
180
180
|
lnurlDomain?: string;
|
|
181
|
+
preferSparkOverLightning: boolean;
|
|
181
182
|
}
|
|
182
183
|
|
|
183
184
|
export type Network = "mainnet" | "regtest";
|
|
@@ -452,7 +453,9 @@ export interface ConnectRequest {
|
|
|
452
453
|
storageDir: string;
|
|
453
454
|
}
|
|
454
455
|
|
|
455
|
-
export type
|
|
456
|
+
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
|
+
|
|
458
|
+
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
456
459
|
|
|
457
460
|
export class BreezSdk {
|
|
458
461
|
private constructor();
|
|
@@ -504,5 +507,6 @@ export class SdkBuilder {
|
|
|
504
507
|
free(): void;
|
|
505
508
|
static new(config: Config, mnemonic: string, storage: Storage): SdkBuilder;
|
|
506
509
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
|
+
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
507
511
|
build(): Promise<BreezSdk>;
|
|
508
512
|
}
|
|
@@ -266,11 +266,11 @@ function __wbg_adapter_52(arg0, arg1) {
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
269
|
-
wasm.
|
|
269
|
+
wasm.closure767_externref_shim(arg0, arg1, arg2);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
function
|
|
273
|
-
wasm.
|
|
272
|
+
function __wbg_adapter_178(arg0, arg1, arg2, arg3) {
|
|
273
|
+
wasm.closure416_externref_shim(arg0, arg1, arg2, arg3);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -651,6 +651,16 @@ export class SdkBuilder {
|
|
|
651
651
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
652
652
|
return SdkBuilder.__wrap(ret);
|
|
653
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* @param {KeySetType} key_set_type
|
|
656
|
+
* @param {boolean} use_address_index
|
|
657
|
+
* @returns {SdkBuilder}
|
|
658
|
+
*/
|
|
659
|
+
withKeySet(key_set_type, use_address_index) {
|
|
660
|
+
const ptr = this.__destroy_into_raw();
|
|
661
|
+
const ret = wasm.sdkbuilder_withKeySet(ptr, key_set_type, use_address_index);
|
|
662
|
+
return SdkBuilder.__wrap(ret);
|
|
663
|
+
}
|
|
654
664
|
/**
|
|
655
665
|
* @returns {Promise<BreezSdk>}
|
|
656
666
|
*/
|
|
@@ -963,7 +973,7 @@ const imports = {
|
|
|
963
973
|
const a = state0.a;
|
|
964
974
|
state0.a = 0;
|
|
965
975
|
try {
|
|
966
|
-
return
|
|
976
|
+
return __wbg_adapter_178(a, state0.b, arg0, arg1);
|
|
967
977
|
} finally {
|
|
968
978
|
state0.a = a;
|
|
969
979
|
}
|
|
@@ -1259,12 +1269,12 @@ const imports = {
|
|
|
1259
1269
|
const ret = false;
|
|
1260
1270
|
return ret;
|
|
1261
1271
|
},
|
|
1262
|
-
|
|
1263
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1272
|
+
__wbindgen_closure_wrapper7824: function(arg0, arg1, arg2) {
|
|
1273
|
+
const ret = makeMutClosure(arg0, arg1, 593, __wbg_adapter_52);
|
|
1264
1274
|
return ret;
|
|
1265
1275
|
},
|
|
1266
|
-
|
|
1267
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1276
|
+
__wbindgen_closure_wrapper9478: function(arg0, arg1, arg2) {
|
|
1277
|
+
const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_55);
|
|
1268
1278
|
return ret;
|
|
1269
1279
|
},
|
|
1270
1280
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
Binary file
|
|
@@ -29,6 +29,7 @@ export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
|
29
29
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
30
|
export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
|
|
31
31
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
|
+
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
32
33
|
export const sdkbuilder_build: (a: number) => any;
|
|
33
34
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
34
35
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
@@ -57,6 +58,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
57
58
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
58
59
|
export const __externref_table_dealloc: (a: number) => void;
|
|
59
60
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
61
|
+
export const closure767_externref_shim: (a: number, b: number, c: any) => void;
|
|
62
|
+
export const closure416_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
62
63
|
export const __wbindgen_start: () => void;
|
|
@@ -178,6 +178,7 @@ export interface Config {
|
|
|
178
178
|
syncIntervalSecs: number;
|
|
179
179
|
maxDepositClaimFee?: Fee;
|
|
180
180
|
lnurlDomain?: string;
|
|
181
|
+
preferSparkOverLightning: boolean;
|
|
181
182
|
}
|
|
182
183
|
|
|
183
184
|
export type Network = "mainnet" | "regtest";
|
|
@@ -452,7 +453,9 @@ export interface ConnectRequest {
|
|
|
452
453
|
storageDir: string;
|
|
453
454
|
}
|
|
454
455
|
|
|
455
|
-
export type
|
|
456
|
+
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
|
+
|
|
458
|
+
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
456
459
|
|
|
457
460
|
export class BreezSdk {
|
|
458
461
|
private constructor();
|
|
@@ -504,5 +507,6 @@ export class SdkBuilder {
|
|
|
504
507
|
free(): void;
|
|
505
508
|
static new(config: Config, mnemonic: string, storage: Storage): SdkBuilder;
|
|
506
509
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
|
+
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
507
511
|
build(): Promise<BreezSdk>;
|
|
508
512
|
}
|
|
@@ -279,11 +279,11 @@ function __wbg_adapter_52(arg0, arg1) {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
282
|
-
wasm.
|
|
282
|
+
wasm.closure767_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
285
|
+
function __wbg_adapter_178(arg0, arg1, arg2, arg3) {
|
|
286
|
+
wasm.closure416_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -668,6 +668,16 @@ class SdkBuilder {
|
|
|
668
668
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
669
669
|
return SdkBuilder.__wrap(ret);
|
|
670
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* @param {KeySetType} key_set_type
|
|
673
|
+
* @param {boolean} use_address_index
|
|
674
|
+
* @returns {SdkBuilder}
|
|
675
|
+
*/
|
|
676
|
+
withKeySet(key_set_type, use_address_index) {
|
|
677
|
+
const ptr = this.__destroy_into_raw();
|
|
678
|
+
const ret = wasm.sdkbuilder_withKeySet(ptr, key_set_type, use_address_index);
|
|
679
|
+
return SdkBuilder.__wrap(ret);
|
|
680
|
+
}
|
|
671
681
|
/**
|
|
672
682
|
* @returns {Promise<BreezSdk>}
|
|
673
683
|
*/
|
|
@@ -1038,7 +1048,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
|
1038
1048
|
const a = state0.a;
|
|
1039
1049
|
state0.a = 0;
|
|
1040
1050
|
try {
|
|
1041
|
-
return
|
|
1051
|
+
return __wbg_adapter_178(a, state0.b, arg0, arg1);
|
|
1042
1052
|
} finally {
|
|
1043
1053
|
state0.a = a;
|
|
1044
1054
|
}
|
|
@@ -1401,13 +1411,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
1401
1411
|
return ret;
|
|
1402
1412
|
};
|
|
1403
1413
|
|
|
1404
|
-
module.exports.
|
|
1405
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1414
|
+
module.exports.__wbindgen_closure_wrapper7824 = function(arg0, arg1, arg2) {
|
|
1415
|
+
const ret = makeMutClosure(arg0, arg1, 593, __wbg_adapter_52);
|
|
1406
1416
|
return ret;
|
|
1407
1417
|
};
|
|
1408
1418
|
|
|
1409
|
-
module.exports.
|
|
1410
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1419
|
+
module.exports.__wbindgen_closure_wrapper9478 = function(arg0, arg1, arg2) {
|
|
1420
|
+
const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_55);
|
|
1411
1421
|
return ret;
|
|
1412
1422
|
};
|
|
1413
1423
|
|
|
Binary file
|
|
@@ -29,6 +29,7 @@ export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
|
29
29
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
30
|
export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
|
|
31
31
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
|
+
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
32
33
|
export const sdkbuilder_build: (a: number) => any;
|
|
33
34
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
34
35
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
@@ -57,6 +58,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
57
58
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
58
59
|
export const __externref_table_dealloc: (a: number) => void;
|
|
59
60
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
61
|
+
export const closure767_externref_shim: (a: number, b: number, c: any) => void;
|
|
62
|
+
export const closure416_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
62
63
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED
|
@@ -178,6 +178,7 @@ export interface Config {
|
|
|
178
178
|
syncIntervalSecs: number;
|
|
179
179
|
maxDepositClaimFee?: Fee;
|
|
180
180
|
lnurlDomain?: string;
|
|
181
|
+
preferSparkOverLightning: boolean;
|
|
181
182
|
}
|
|
182
183
|
|
|
183
184
|
export type Network = "mainnet" | "regtest";
|
|
@@ -452,7 +453,9 @@ export interface ConnectRequest {
|
|
|
452
453
|
storageDir: string;
|
|
453
454
|
}
|
|
454
455
|
|
|
455
|
-
export type
|
|
456
|
+
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
|
+
|
|
458
|
+
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
456
459
|
|
|
457
460
|
export class BreezSdk {
|
|
458
461
|
private constructor();
|
|
@@ -504,6 +507,7 @@ export class SdkBuilder {
|
|
|
504
507
|
free(): void;
|
|
505
508
|
static new(config: Config, mnemonic: string, storage: Storage): SdkBuilder;
|
|
506
509
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
|
+
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
507
511
|
build(): Promise<BreezSdk>;
|
|
508
512
|
}
|
|
509
513
|
|
|
@@ -539,6 +543,7 @@ export interface InitOutput {
|
|
|
539
543
|
readonly __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
540
544
|
readonly sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
|
|
541
545
|
readonly sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
546
|
+
readonly sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
542
547
|
readonly sdkbuilder_build: (a: number) => any;
|
|
543
548
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
544
549
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
@@ -567,8 +572,8 @@ export interface InitOutput {
|
|
|
567
572
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
568
573
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
569
574
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
570
|
-
readonly
|
|
571
|
-
readonly
|
|
575
|
+
readonly closure767_externref_shim: (a: number, b: number, c: any) => void;
|
|
576
|
+
readonly closure416_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
572
577
|
readonly __wbindgen_start: () => void;
|
|
573
578
|
}
|
|
574
579
|
|
|
@@ -275,11 +275,11 @@ function __wbg_adapter_52(arg0, arg1) {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
|
278
|
-
wasm.
|
|
278
|
+
wasm.closure767_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
function
|
|
282
|
-
wasm.
|
|
281
|
+
function __wbg_adapter_178(arg0, arg1, arg2, arg3) {
|
|
282
|
+
wasm.closure416_externref_shim(arg0, arg1, arg2, arg3);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -660,6 +660,16 @@ export class SdkBuilder {
|
|
|
660
660
|
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
661
661
|
return SdkBuilder.__wrap(ret);
|
|
662
662
|
}
|
|
663
|
+
/**
|
|
664
|
+
* @param {KeySetType} key_set_type
|
|
665
|
+
* @param {boolean} use_address_index
|
|
666
|
+
* @returns {SdkBuilder}
|
|
667
|
+
*/
|
|
668
|
+
withKeySet(key_set_type, use_address_index) {
|
|
669
|
+
const ptr = this.__destroy_into_raw();
|
|
670
|
+
const ret = wasm.sdkbuilder_withKeySet(ptr, key_set_type, use_address_index);
|
|
671
|
+
return SdkBuilder.__wrap(ret);
|
|
672
|
+
}
|
|
663
673
|
/**
|
|
664
674
|
* @returns {Promise<BreezSdk>}
|
|
665
675
|
*/
|
|
@@ -1004,7 +1014,7 @@ function __wbg_get_imports() {
|
|
|
1004
1014
|
const a = state0.a;
|
|
1005
1015
|
state0.a = 0;
|
|
1006
1016
|
try {
|
|
1007
|
-
return
|
|
1017
|
+
return __wbg_adapter_178(a, state0.b, arg0, arg1);
|
|
1008
1018
|
} finally {
|
|
1009
1019
|
state0.a = a;
|
|
1010
1020
|
}
|
|
@@ -1300,12 +1310,12 @@ function __wbg_get_imports() {
|
|
|
1300
1310
|
const ret = false;
|
|
1301
1311
|
return ret;
|
|
1302
1312
|
};
|
|
1303
|
-
imports.wbg.
|
|
1304
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1313
|
+
imports.wbg.__wbindgen_closure_wrapper7824 = function(arg0, arg1, arg2) {
|
|
1314
|
+
const ret = makeMutClosure(arg0, arg1, 593, __wbg_adapter_52);
|
|
1305
1315
|
return ret;
|
|
1306
1316
|
};
|
|
1307
|
-
imports.wbg.
|
|
1308
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1317
|
+
imports.wbg.__wbindgen_closure_wrapper9478 = function(arg0, arg1, arg2) {
|
|
1318
|
+
const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_55);
|
|
1309
1319
|
return ret;
|
|
1310
1320
|
};
|
|
1311
1321
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -29,6 +29,7 @@ export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
|
29
29
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
30
|
export const sdkbuilder_new: (a: any, b: number, c: number, d: any) => [number, number, number];
|
|
31
31
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
|
+
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
32
33
|
export const sdkbuilder_build: (a: number) => any;
|
|
33
34
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
34
35
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
@@ -57,6 +58,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
57
58
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
58
59
|
export const __externref_table_dealloc: (a: number) => void;
|
|
59
60
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
61
|
+
export const closure767_externref_shim: (a: number, b: number, c: any) => void;
|
|
62
|
+
export const closure416_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
62
63
|
export const __wbindgen_start: () => void;
|