@breeztech/breez-sdk-spark 0.1.9-dev2 → 0.2.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/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +53 -3
- package/bundler/breez_sdk_spark_wasm_bg.js +25 -13
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -3
- package/deno/breez_sdk_spark_wasm.d.ts +53 -3
- package/deno/breez_sdk_spark_wasm.js +25 -13
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -3
- package/nodejs/breez_sdk_spark_wasm.d.ts +53 -3
- package/nodejs/breez_sdk_spark_wasm.js +25 -13
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -3
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +58 -6
- package/web/breez_sdk_spark_wasm.js +25 -13
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +5 -3
package/breez-sdk-spark.tgz
CHANGED
|
Binary file
|
|
@@ -37,6 +37,52 @@ export interface Storage {
|
|
|
37
37
|
updateDeposit: (txid: string, vout: number, payload: UpdateDepositPayload) => Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export interface Symbol {
|
|
41
|
+
grapheme?: string;
|
|
42
|
+
template?: string;
|
|
43
|
+
rtl?: boolean;
|
|
44
|
+
position?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface LocalizedName {
|
|
48
|
+
locale: string;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface LocaleOverrides {
|
|
53
|
+
locale: string;
|
|
54
|
+
spacing?: number;
|
|
55
|
+
symbol: Symbol;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface CurrencyInfo {
|
|
59
|
+
name: string;
|
|
60
|
+
fractionSize: number;
|
|
61
|
+
spacing?: number;
|
|
62
|
+
symbol?: Symbol;
|
|
63
|
+
uniqSymbol?: Symbol;
|
|
64
|
+
localizedName: LocalizedName[];
|
|
65
|
+
localeOverrides: LocaleOverrides[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface FiatCurrency {
|
|
69
|
+
id: string;
|
|
70
|
+
info: CurrencyInfo;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Rate {
|
|
74
|
+
coin: string;
|
|
75
|
+
value: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ListFiatRatesResponse {
|
|
79
|
+
rates: Rate[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ListFiatCurrenciesResponse {
|
|
83
|
+
currencies: FiatCurrency[];
|
|
84
|
+
}
|
|
85
|
+
|
|
40
86
|
export interface LightningAddressInfo {
|
|
41
87
|
description: string;
|
|
42
88
|
lightningAddress: string;
|
|
@@ -90,7 +136,7 @@ export interface SendPaymentRequest {
|
|
|
90
136
|
options?: SendPaymentOptions;
|
|
91
137
|
}
|
|
92
138
|
|
|
93
|
-
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice";
|
|
139
|
+
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice"; preferSpark: boolean };
|
|
94
140
|
|
|
95
141
|
export type OnchainConfirmationSpeed = "fast" | "medium" | "slow";
|
|
96
142
|
|
|
@@ -449,10 +495,12 @@ export interface DepositInfo {
|
|
|
449
495
|
|
|
450
496
|
export interface ConnectRequest {
|
|
451
497
|
config: Config;
|
|
452
|
-
|
|
498
|
+
seed: Seed;
|
|
453
499
|
storageDir: string;
|
|
454
500
|
}
|
|
455
501
|
|
|
502
|
+
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
503
|
+
|
|
456
504
|
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
505
|
|
|
458
506
|
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
@@ -479,6 +527,8 @@ export class BreezSdk {
|
|
|
479
527
|
getLightningAddress(): Promise<LightningAddressInfo | undefined>;
|
|
480
528
|
registerLightningAddress(request: RegisterLightningAddressRequest): Promise<LightningAddressInfo>;
|
|
481
529
|
deleteLightningAddress(): Promise<void>;
|
|
530
|
+
listFiatCurrencies(): Promise<ListFiatCurrenciesResponse>;
|
|
531
|
+
listFiatRates(): Promise<ListFiatRatesResponse>;
|
|
482
532
|
}
|
|
483
533
|
export class IntoUnderlyingByteSource {
|
|
484
534
|
private constructor();
|
|
@@ -505,7 +555,7 @@ export class IntoUnderlyingSource {
|
|
|
505
555
|
export class SdkBuilder {
|
|
506
556
|
private constructor();
|
|
507
557
|
free(): void;
|
|
508
|
-
static new(config: Config,
|
|
558
|
+
static new(config: Config, seed: Seed, storage: Storage): SdkBuilder;
|
|
509
559
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
560
|
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
511
561
|
build(): Promise<BreezSdk>;
|
|
@@ -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.closure770_externref_shim(arg0, arg1, arg2);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
function
|
|
290
|
-
wasm.
|
|
289
|
+
function __wbg_adapter_180(arg0, arg1, arg2, arg3) {
|
|
290
|
+
wasm.closure421_externref_shim(arg0, arg1, arg2, arg3);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -488,6 +488,20 @@ export class BreezSdk {
|
|
|
488
488
|
const ret = wasm.breezsdk_deleteLightningAddress(this.__wbg_ptr);
|
|
489
489
|
return ret;
|
|
490
490
|
}
|
|
491
|
+
/**
|
|
492
|
+
* @returns {Promise<ListFiatCurrenciesResponse>}
|
|
493
|
+
*/
|
|
494
|
+
listFiatCurrencies() {
|
|
495
|
+
const ret = wasm.breezsdk_listFiatCurrencies(this.__wbg_ptr);
|
|
496
|
+
return ret;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* @returns {Promise<ListFiatRatesResponse>}
|
|
500
|
+
*/
|
|
501
|
+
listFiatRates() {
|
|
502
|
+
const ret = wasm.breezsdk_listFiatRates(this.__wbg_ptr);
|
|
503
|
+
return ret;
|
|
504
|
+
}
|
|
491
505
|
}
|
|
492
506
|
|
|
493
507
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -643,14 +657,12 @@ export class SdkBuilder {
|
|
|
643
657
|
}
|
|
644
658
|
/**
|
|
645
659
|
* @param {Config} config
|
|
646
|
-
* @param {
|
|
660
|
+
* @param {Seed} seed
|
|
647
661
|
* @param {Storage} storage
|
|
648
662
|
* @returns {SdkBuilder}
|
|
649
663
|
*/
|
|
650
|
-
static new(config,
|
|
651
|
-
const
|
|
652
|
-
const len0 = WASM_VECTOR_LEN;
|
|
653
|
-
const ret = wasm.sdkbuilder_new(config, ptr0, len0, storage);
|
|
664
|
+
static new(config, seed, storage) {
|
|
665
|
+
const ret = wasm.sdkbuilder_new(config, seed, storage);
|
|
654
666
|
if (ret[2]) {
|
|
655
667
|
throw takeFromExternrefTable0(ret[1]);
|
|
656
668
|
}
|
|
@@ -1047,7 +1059,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1047
1059
|
const a = state0.a;
|
|
1048
1060
|
state0.a = 0;
|
|
1049
1061
|
try {
|
|
1050
|
-
return
|
|
1062
|
+
return __wbg_adapter_180(a, state0.b, arg0, arg1);
|
|
1051
1063
|
} finally {
|
|
1052
1064
|
state0.a = a;
|
|
1053
1065
|
}
|
|
@@ -1410,13 +1422,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1410
1422
|
return ret;
|
|
1411
1423
|
};
|
|
1412
1424
|
|
|
1413
|
-
export function
|
|
1414
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1425
|
+
export function __wbindgen_closure_wrapper7957(arg0, arg1, arg2) {
|
|
1426
|
+
const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_52);
|
|
1415
1427
|
return ret;
|
|
1416
1428
|
};
|
|
1417
1429
|
|
|
1418
|
-
export function
|
|
1419
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1430
|
+
export function __wbindgen_closure_wrapper9591(arg0, arg1, arg2) {
|
|
1431
|
+
const ret = makeMutClosure(arg0, arg1, 771, __wbg_adapter_55);
|
|
1420
1432
|
return ret;
|
|
1421
1433
|
};
|
|
1422
1434
|
|
|
Binary file
|
|
@@ -26,8 +26,10 @@ export const breezsdk_checkLightningAddressAvailable: (a: number, b: any) => any
|
|
|
26
26
|
export const breezsdk_getLightningAddress: (a: number) => any;
|
|
27
27
|
export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
28
28
|
export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
29
|
+
export const breezsdk_listFiatCurrencies: (a: number) => any;
|
|
30
|
+
export const breezsdk_listFiatRates: (a: number) => any;
|
|
29
31
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
|
-
export const sdkbuilder_new: (a: any, b:
|
|
32
|
+
export const sdkbuilder_new: (a: any, b: any, c: any) => [number, number, number];
|
|
31
33
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
34
|
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
33
35
|
export const sdkbuilder_build: (a: number) => any;
|
|
@@ -58,6 +60,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
58
60
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
59
61
|
export const __externref_table_dealloc: (a: number) => void;
|
|
60
62
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
+
export const closure770_externref_shim: (a: number, b: number, c: any) => void;
|
|
64
|
+
export const closure421_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
63
65
|
export const __wbindgen_start: () => void;
|
|
@@ -37,6 +37,52 @@ export interface Storage {
|
|
|
37
37
|
updateDeposit: (txid: string, vout: number, payload: UpdateDepositPayload) => Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export interface Symbol {
|
|
41
|
+
grapheme?: string;
|
|
42
|
+
template?: string;
|
|
43
|
+
rtl?: boolean;
|
|
44
|
+
position?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface LocalizedName {
|
|
48
|
+
locale: string;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface LocaleOverrides {
|
|
53
|
+
locale: string;
|
|
54
|
+
spacing?: number;
|
|
55
|
+
symbol: Symbol;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface CurrencyInfo {
|
|
59
|
+
name: string;
|
|
60
|
+
fractionSize: number;
|
|
61
|
+
spacing?: number;
|
|
62
|
+
symbol?: Symbol;
|
|
63
|
+
uniqSymbol?: Symbol;
|
|
64
|
+
localizedName: LocalizedName[];
|
|
65
|
+
localeOverrides: LocaleOverrides[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface FiatCurrency {
|
|
69
|
+
id: string;
|
|
70
|
+
info: CurrencyInfo;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Rate {
|
|
74
|
+
coin: string;
|
|
75
|
+
value: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ListFiatRatesResponse {
|
|
79
|
+
rates: Rate[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ListFiatCurrenciesResponse {
|
|
83
|
+
currencies: FiatCurrency[];
|
|
84
|
+
}
|
|
85
|
+
|
|
40
86
|
export interface LightningAddressInfo {
|
|
41
87
|
description: string;
|
|
42
88
|
lightningAddress: string;
|
|
@@ -90,7 +136,7 @@ export interface SendPaymentRequest {
|
|
|
90
136
|
options?: SendPaymentOptions;
|
|
91
137
|
}
|
|
92
138
|
|
|
93
|
-
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice";
|
|
139
|
+
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice"; preferSpark: boolean };
|
|
94
140
|
|
|
95
141
|
export type OnchainConfirmationSpeed = "fast" | "medium" | "slow";
|
|
96
142
|
|
|
@@ -449,10 +495,12 @@ export interface DepositInfo {
|
|
|
449
495
|
|
|
450
496
|
export interface ConnectRequest {
|
|
451
497
|
config: Config;
|
|
452
|
-
|
|
498
|
+
seed: Seed;
|
|
453
499
|
storageDir: string;
|
|
454
500
|
}
|
|
455
501
|
|
|
502
|
+
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
503
|
+
|
|
456
504
|
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
505
|
|
|
458
506
|
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
@@ -479,6 +527,8 @@ export class BreezSdk {
|
|
|
479
527
|
getLightningAddress(): Promise<LightningAddressInfo | undefined>;
|
|
480
528
|
registerLightningAddress(request: RegisterLightningAddressRequest): Promise<LightningAddressInfo>;
|
|
481
529
|
deleteLightningAddress(): Promise<void>;
|
|
530
|
+
listFiatCurrencies(): Promise<ListFiatCurrenciesResponse>;
|
|
531
|
+
listFiatRates(): Promise<ListFiatRatesResponse>;
|
|
482
532
|
}
|
|
483
533
|
export class IntoUnderlyingByteSource {
|
|
484
534
|
private constructor();
|
|
@@ -505,7 +555,7 @@ export class IntoUnderlyingSource {
|
|
|
505
555
|
export class SdkBuilder {
|
|
506
556
|
private constructor();
|
|
507
557
|
free(): void;
|
|
508
|
-
static new(config: Config,
|
|
558
|
+
static new(config: Config, seed: Seed, storage: Storage): SdkBuilder;
|
|
509
559
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
560
|
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
511
561
|
build(): Promise<BreezSdk>;
|
|
@@ -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.closure770_externref_shim(arg0, arg1, arg2);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
function
|
|
273
|
-
wasm.
|
|
272
|
+
function __wbg_adapter_180(arg0, arg1, arg2, arg3) {
|
|
273
|
+
wasm.closure421_externref_shim(arg0, arg1, arg2, arg3);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -471,6 +471,20 @@ export class BreezSdk {
|
|
|
471
471
|
const ret = wasm.breezsdk_deleteLightningAddress(this.__wbg_ptr);
|
|
472
472
|
return ret;
|
|
473
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* @returns {Promise<ListFiatCurrenciesResponse>}
|
|
476
|
+
*/
|
|
477
|
+
listFiatCurrencies() {
|
|
478
|
+
const ret = wasm.breezsdk_listFiatCurrencies(this.__wbg_ptr);
|
|
479
|
+
return ret;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* @returns {Promise<ListFiatRatesResponse>}
|
|
483
|
+
*/
|
|
484
|
+
listFiatRates() {
|
|
485
|
+
const ret = wasm.breezsdk_listFiatRates(this.__wbg_ptr);
|
|
486
|
+
return ret;
|
|
487
|
+
}
|
|
474
488
|
}
|
|
475
489
|
|
|
476
490
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -626,14 +640,12 @@ export class SdkBuilder {
|
|
|
626
640
|
}
|
|
627
641
|
/**
|
|
628
642
|
* @param {Config} config
|
|
629
|
-
* @param {
|
|
643
|
+
* @param {Seed} seed
|
|
630
644
|
* @param {Storage} storage
|
|
631
645
|
* @returns {SdkBuilder}
|
|
632
646
|
*/
|
|
633
|
-
static new(config,
|
|
634
|
-
const
|
|
635
|
-
const len0 = WASM_VECTOR_LEN;
|
|
636
|
-
const ret = wasm.sdkbuilder_new(config, ptr0, len0, storage);
|
|
647
|
+
static new(config, seed, storage) {
|
|
648
|
+
const ret = wasm.sdkbuilder_new(config, seed, storage);
|
|
637
649
|
if (ret[2]) {
|
|
638
650
|
throw takeFromExternrefTable0(ret[1]);
|
|
639
651
|
}
|
|
@@ -973,7 +985,7 @@ const imports = {
|
|
|
973
985
|
const a = state0.a;
|
|
974
986
|
state0.a = 0;
|
|
975
987
|
try {
|
|
976
|
-
return
|
|
988
|
+
return __wbg_adapter_180(a, state0.b, arg0, arg1);
|
|
977
989
|
} finally {
|
|
978
990
|
state0.a = a;
|
|
979
991
|
}
|
|
@@ -1269,12 +1281,12 @@ const imports = {
|
|
|
1269
1281
|
const ret = false;
|
|
1270
1282
|
return ret;
|
|
1271
1283
|
},
|
|
1272
|
-
|
|
1273
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1284
|
+
__wbindgen_closure_wrapper7957: function(arg0, arg1, arg2) {
|
|
1285
|
+
const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_52);
|
|
1274
1286
|
return ret;
|
|
1275
1287
|
},
|
|
1276
|
-
|
|
1277
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1288
|
+
__wbindgen_closure_wrapper9591: function(arg0, arg1, arg2) {
|
|
1289
|
+
const ret = makeMutClosure(arg0, arg1, 771, __wbg_adapter_55);
|
|
1278
1290
|
return ret;
|
|
1279
1291
|
},
|
|
1280
1292
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
Binary file
|
|
@@ -26,8 +26,10 @@ export const breezsdk_checkLightningAddressAvailable: (a: number, b: any) => any
|
|
|
26
26
|
export const breezsdk_getLightningAddress: (a: number) => any;
|
|
27
27
|
export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
28
28
|
export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
29
|
+
export const breezsdk_listFiatCurrencies: (a: number) => any;
|
|
30
|
+
export const breezsdk_listFiatRates: (a: number) => any;
|
|
29
31
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
|
-
export const sdkbuilder_new: (a: any, b:
|
|
32
|
+
export const sdkbuilder_new: (a: any, b: any, c: any) => [number, number, number];
|
|
31
33
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
34
|
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
33
35
|
export const sdkbuilder_build: (a: number) => any;
|
|
@@ -58,6 +60,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
58
60
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
59
61
|
export const __externref_table_dealloc: (a: number) => void;
|
|
60
62
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
+
export const closure770_externref_shim: (a: number, b: number, c: any) => void;
|
|
64
|
+
export const closure421_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
63
65
|
export const __wbindgen_start: () => void;
|
|
@@ -37,6 +37,52 @@ export interface Storage {
|
|
|
37
37
|
updateDeposit: (txid: string, vout: number, payload: UpdateDepositPayload) => Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export interface Symbol {
|
|
41
|
+
grapheme?: string;
|
|
42
|
+
template?: string;
|
|
43
|
+
rtl?: boolean;
|
|
44
|
+
position?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface LocalizedName {
|
|
48
|
+
locale: string;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface LocaleOverrides {
|
|
53
|
+
locale: string;
|
|
54
|
+
spacing?: number;
|
|
55
|
+
symbol: Symbol;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface CurrencyInfo {
|
|
59
|
+
name: string;
|
|
60
|
+
fractionSize: number;
|
|
61
|
+
spacing?: number;
|
|
62
|
+
symbol?: Symbol;
|
|
63
|
+
uniqSymbol?: Symbol;
|
|
64
|
+
localizedName: LocalizedName[];
|
|
65
|
+
localeOverrides: LocaleOverrides[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface FiatCurrency {
|
|
69
|
+
id: string;
|
|
70
|
+
info: CurrencyInfo;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Rate {
|
|
74
|
+
coin: string;
|
|
75
|
+
value: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ListFiatRatesResponse {
|
|
79
|
+
rates: Rate[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ListFiatCurrenciesResponse {
|
|
83
|
+
currencies: FiatCurrency[];
|
|
84
|
+
}
|
|
85
|
+
|
|
40
86
|
export interface LightningAddressInfo {
|
|
41
87
|
description: string;
|
|
42
88
|
lightningAddress: string;
|
|
@@ -90,7 +136,7 @@ export interface SendPaymentRequest {
|
|
|
90
136
|
options?: SendPaymentOptions;
|
|
91
137
|
}
|
|
92
138
|
|
|
93
|
-
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice";
|
|
139
|
+
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice"; preferSpark: boolean };
|
|
94
140
|
|
|
95
141
|
export type OnchainConfirmationSpeed = "fast" | "medium" | "slow";
|
|
96
142
|
|
|
@@ -449,10 +495,12 @@ export interface DepositInfo {
|
|
|
449
495
|
|
|
450
496
|
export interface ConnectRequest {
|
|
451
497
|
config: Config;
|
|
452
|
-
|
|
498
|
+
seed: Seed;
|
|
453
499
|
storageDir: string;
|
|
454
500
|
}
|
|
455
501
|
|
|
502
|
+
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
503
|
+
|
|
456
504
|
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
505
|
|
|
458
506
|
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
@@ -479,6 +527,8 @@ export class BreezSdk {
|
|
|
479
527
|
getLightningAddress(): Promise<LightningAddressInfo | undefined>;
|
|
480
528
|
registerLightningAddress(request: RegisterLightningAddressRequest): Promise<LightningAddressInfo>;
|
|
481
529
|
deleteLightningAddress(): Promise<void>;
|
|
530
|
+
listFiatCurrencies(): Promise<ListFiatCurrenciesResponse>;
|
|
531
|
+
listFiatRates(): Promise<ListFiatRatesResponse>;
|
|
482
532
|
}
|
|
483
533
|
export class IntoUnderlyingByteSource {
|
|
484
534
|
private constructor();
|
|
@@ -505,7 +555,7 @@ export class IntoUnderlyingSource {
|
|
|
505
555
|
export class SdkBuilder {
|
|
506
556
|
private constructor();
|
|
507
557
|
free(): void;
|
|
508
|
-
static new(config: Config,
|
|
558
|
+
static new(config: Config, seed: Seed, storage: Storage): SdkBuilder;
|
|
509
559
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
560
|
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
511
561
|
build(): Promise<BreezSdk>;
|
|
@@ -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.closure770_externref_shim(arg0, arg1, arg2);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function
|
|
286
|
-
wasm.
|
|
285
|
+
function __wbg_adapter_180(arg0, arg1, arg2, arg3) {
|
|
286
|
+
wasm.closure421_externref_shim(arg0, arg1, arg2, arg3);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -484,6 +484,20 @@ class BreezSdk {
|
|
|
484
484
|
const ret = wasm.breezsdk_deleteLightningAddress(this.__wbg_ptr);
|
|
485
485
|
return ret;
|
|
486
486
|
}
|
|
487
|
+
/**
|
|
488
|
+
* @returns {Promise<ListFiatCurrenciesResponse>}
|
|
489
|
+
*/
|
|
490
|
+
listFiatCurrencies() {
|
|
491
|
+
const ret = wasm.breezsdk_listFiatCurrencies(this.__wbg_ptr);
|
|
492
|
+
return ret;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @returns {Promise<ListFiatRatesResponse>}
|
|
496
|
+
*/
|
|
497
|
+
listFiatRates() {
|
|
498
|
+
const ret = wasm.breezsdk_listFiatRates(this.__wbg_ptr);
|
|
499
|
+
return ret;
|
|
500
|
+
}
|
|
487
501
|
}
|
|
488
502
|
module.exports.BreezSdk = BreezSdk;
|
|
489
503
|
|
|
@@ -643,14 +657,12 @@ class SdkBuilder {
|
|
|
643
657
|
}
|
|
644
658
|
/**
|
|
645
659
|
* @param {Config} config
|
|
646
|
-
* @param {
|
|
660
|
+
* @param {Seed} seed
|
|
647
661
|
* @param {Storage} storage
|
|
648
662
|
* @returns {SdkBuilder}
|
|
649
663
|
*/
|
|
650
|
-
static new(config,
|
|
651
|
-
const
|
|
652
|
-
const len0 = WASM_VECTOR_LEN;
|
|
653
|
-
const ret = wasm.sdkbuilder_new(config, ptr0, len0, storage);
|
|
664
|
+
static new(config, seed, storage) {
|
|
665
|
+
const ret = wasm.sdkbuilder_new(config, seed, storage);
|
|
654
666
|
if (ret[2]) {
|
|
655
667
|
throw takeFromExternrefTable0(ret[1]);
|
|
656
668
|
}
|
|
@@ -1048,7 +1060,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
|
1048
1060
|
const a = state0.a;
|
|
1049
1061
|
state0.a = 0;
|
|
1050
1062
|
try {
|
|
1051
|
-
return
|
|
1063
|
+
return __wbg_adapter_180(a, state0.b, arg0, arg1);
|
|
1052
1064
|
} finally {
|
|
1053
1065
|
state0.a = a;
|
|
1054
1066
|
}
|
|
@@ -1411,13 +1423,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
1411
1423
|
return ret;
|
|
1412
1424
|
};
|
|
1413
1425
|
|
|
1414
|
-
module.exports.
|
|
1415
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1426
|
+
module.exports.__wbindgen_closure_wrapper7957 = function(arg0, arg1, arg2) {
|
|
1427
|
+
const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_52);
|
|
1416
1428
|
return ret;
|
|
1417
1429
|
};
|
|
1418
1430
|
|
|
1419
|
-
module.exports.
|
|
1420
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1431
|
+
module.exports.__wbindgen_closure_wrapper9591 = function(arg0, arg1, arg2) {
|
|
1432
|
+
const ret = makeMutClosure(arg0, arg1, 771, __wbg_adapter_55);
|
|
1421
1433
|
return ret;
|
|
1422
1434
|
};
|
|
1423
1435
|
|
|
Binary file
|
|
@@ -26,8 +26,10 @@ export const breezsdk_checkLightningAddressAvailable: (a: number, b: any) => any
|
|
|
26
26
|
export const breezsdk_getLightningAddress: (a: number) => any;
|
|
27
27
|
export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
28
28
|
export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
29
|
+
export const breezsdk_listFiatCurrencies: (a: number) => any;
|
|
30
|
+
export const breezsdk_listFiatRates: (a: number) => any;
|
|
29
31
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
|
-
export const sdkbuilder_new: (a: any, b:
|
|
32
|
+
export const sdkbuilder_new: (a: any, b: any, c: any) => [number, number, number];
|
|
31
33
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
34
|
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
33
35
|
export const sdkbuilder_build: (a: number) => any;
|
|
@@ -58,6 +60,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
58
60
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
59
61
|
export const __externref_table_dealloc: (a: number) => void;
|
|
60
62
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
+
export const closure770_externref_shim: (a: number, b: number, c: any) => void;
|
|
64
|
+
export const closure421_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
63
65
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED
|
@@ -37,6 +37,52 @@ export interface Storage {
|
|
|
37
37
|
updateDeposit: (txid: string, vout: number, payload: UpdateDepositPayload) => Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export interface Symbol {
|
|
41
|
+
grapheme?: string;
|
|
42
|
+
template?: string;
|
|
43
|
+
rtl?: boolean;
|
|
44
|
+
position?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface LocalizedName {
|
|
48
|
+
locale: string;
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface LocaleOverrides {
|
|
53
|
+
locale: string;
|
|
54
|
+
spacing?: number;
|
|
55
|
+
symbol: Symbol;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface CurrencyInfo {
|
|
59
|
+
name: string;
|
|
60
|
+
fractionSize: number;
|
|
61
|
+
spacing?: number;
|
|
62
|
+
symbol?: Symbol;
|
|
63
|
+
uniqSymbol?: Symbol;
|
|
64
|
+
localizedName: LocalizedName[];
|
|
65
|
+
localeOverrides: LocaleOverrides[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface FiatCurrency {
|
|
69
|
+
id: string;
|
|
70
|
+
info: CurrencyInfo;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Rate {
|
|
74
|
+
coin: string;
|
|
75
|
+
value: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ListFiatRatesResponse {
|
|
79
|
+
rates: Rate[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ListFiatCurrenciesResponse {
|
|
83
|
+
currencies: FiatCurrency[];
|
|
84
|
+
}
|
|
85
|
+
|
|
40
86
|
export interface LightningAddressInfo {
|
|
41
87
|
description: string;
|
|
42
88
|
lightningAddress: string;
|
|
@@ -90,7 +136,7 @@ export interface SendPaymentRequest {
|
|
|
90
136
|
options?: SendPaymentOptions;
|
|
91
137
|
}
|
|
92
138
|
|
|
93
|
-
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice";
|
|
139
|
+
export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice"; preferSpark: boolean };
|
|
94
140
|
|
|
95
141
|
export type OnchainConfirmationSpeed = "fast" | "medium" | "slow";
|
|
96
142
|
|
|
@@ -449,10 +495,12 @@ export interface DepositInfo {
|
|
|
449
495
|
|
|
450
496
|
export interface ConnectRequest {
|
|
451
497
|
config: Config;
|
|
452
|
-
|
|
498
|
+
seed: Seed;
|
|
453
499
|
storageDir: string;
|
|
454
500
|
}
|
|
455
501
|
|
|
502
|
+
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
503
|
+
|
|
456
504
|
export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
|
|
457
505
|
|
|
458
506
|
export type SdkEvent = { type: "synced" } | { type: "claimDepositsFailed"; unclaimedDeposits: DepositInfo[] } | { type: "claimDepositsSucceeded"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
|
|
@@ -479,6 +527,8 @@ export class BreezSdk {
|
|
|
479
527
|
getLightningAddress(): Promise<LightningAddressInfo | undefined>;
|
|
480
528
|
registerLightningAddress(request: RegisterLightningAddressRequest): Promise<LightningAddressInfo>;
|
|
481
529
|
deleteLightningAddress(): Promise<void>;
|
|
530
|
+
listFiatCurrencies(): Promise<ListFiatCurrenciesResponse>;
|
|
531
|
+
listFiatRates(): Promise<ListFiatRatesResponse>;
|
|
482
532
|
}
|
|
483
533
|
export class IntoUnderlyingByteSource {
|
|
484
534
|
private constructor();
|
|
@@ -505,7 +555,7 @@ export class IntoUnderlyingSource {
|
|
|
505
555
|
export class SdkBuilder {
|
|
506
556
|
private constructor();
|
|
507
557
|
free(): void;
|
|
508
|
-
static new(config: Config,
|
|
558
|
+
static new(config: Config, seed: Seed, storage: Storage): SdkBuilder;
|
|
509
559
|
withRestChainService(url: string, credentials?: Credentials | null): SdkBuilder;
|
|
510
560
|
withKeySet(key_set_type: KeySetType, use_address_index: boolean): SdkBuilder;
|
|
511
561
|
build(): Promise<BreezSdk>;
|
|
@@ -540,8 +590,10 @@ export interface InitOutput {
|
|
|
540
590
|
readonly breezsdk_getLightningAddress: (a: number) => any;
|
|
541
591
|
readonly breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
542
592
|
readonly breezsdk_deleteLightningAddress: (a: number) => any;
|
|
593
|
+
readonly breezsdk_listFiatCurrencies: (a: number) => any;
|
|
594
|
+
readonly breezsdk_listFiatRates: (a: number) => any;
|
|
543
595
|
readonly __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
544
|
-
readonly sdkbuilder_new: (a: any, b:
|
|
596
|
+
readonly sdkbuilder_new: (a: any, b: any, c: any) => [number, number, number];
|
|
545
597
|
readonly sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
546
598
|
readonly sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
547
599
|
readonly sdkbuilder_build: (a: number) => any;
|
|
@@ -572,8 +624,8 @@ export interface InitOutput {
|
|
|
572
624
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
573
625
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
574
626
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
575
|
-
readonly
|
|
576
|
-
readonly
|
|
627
|
+
readonly closure770_externref_shim: (a: number, b: number, c: any) => void;
|
|
628
|
+
readonly closure421_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
577
629
|
readonly __wbindgen_start: () => void;
|
|
578
630
|
}
|
|
579
631
|
|
|
@@ -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.closure770_externref_shim(arg0, arg1, arg2);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
function
|
|
282
|
-
wasm.
|
|
281
|
+
function __wbg_adapter_180(arg0, arg1, arg2, arg3) {
|
|
282
|
+
wasm.closure421_externref_shim(arg0, arg1, arg2, arg3);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -480,6 +480,20 @@ export class BreezSdk {
|
|
|
480
480
|
const ret = wasm.breezsdk_deleteLightningAddress(this.__wbg_ptr);
|
|
481
481
|
return ret;
|
|
482
482
|
}
|
|
483
|
+
/**
|
|
484
|
+
* @returns {Promise<ListFiatCurrenciesResponse>}
|
|
485
|
+
*/
|
|
486
|
+
listFiatCurrencies() {
|
|
487
|
+
const ret = wasm.breezsdk_listFiatCurrencies(this.__wbg_ptr);
|
|
488
|
+
return ret;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* @returns {Promise<ListFiatRatesResponse>}
|
|
492
|
+
*/
|
|
493
|
+
listFiatRates() {
|
|
494
|
+
const ret = wasm.breezsdk_listFiatRates(this.__wbg_ptr);
|
|
495
|
+
return ret;
|
|
496
|
+
}
|
|
483
497
|
}
|
|
484
498
|
|
|
485
499
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -635,14 +649,12 @@ export class SdkBuilder {
|
|
|
635
649
|
}
|
|
636
650
|
/**
|
|
637
651
|
* @param {Config} config
|
|
638
|
-
* @param {
|
|
652
|
+
* @param {Seed} seed
|
|
639
653
|
* @param {Storage} storage
|
|
640
654
|
* @returns {SdkBuilder}
|
|
641
655
|
*/
|
|
642
|
-
static new(config,
|
|
643
|
-
const
|
|
644
|
-
const len0 = WASM_VECTOR_LEN;
|
|
645
|
-
const ret = wasm.sdkbuilder_new(config, ptr0, len0, storage);
|
|
656
|
+
static new(config, seed, storage) {
|
|
657
|
+
const ret = wasm.sdkbuilder_new(config, seed, storage);
|
|
646
658
|
if (ret[2]) {
|
|
647
659
|
throw takeFromExternrefTable0(ret[1]);
|
|
648
660
|
}
|
|
@@ -1014,7 +1026,7 @@ function __wbg_get_imports() {
|
|
|
1014
1026
|
const a = state0.a;
|
|
1015
1027
|
state0.a = 0;
|
|
1016
1028
|
try {
|
|
1017
|
-
return
|
|
1029
|
+
return __wbg_adapter_180(a, state0.b, arg0, arg1);
|
|
1018
1030
|
} finally {
|
|
1019
1031
|
state0.a = a;
|
|
1020
1032
|
}
|
|
@@ -1310,12 +1322,12 @@ function __wbg_get_imports() {
|
|
|
1310
1322
|
const ret = false;
|
|
1311
1323
|
return ret;
|
|
1312
1324
|
};
|
|
1313
|
-
imports.wbg.
|
|
1314
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1325
|
+
imports.wbg.__wbindgen_closure_wrapper7957 = function(arg0, arg1, arg2) {
|
|
1326
|
+
const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_52);
|
|
1315
1327
|
return ret;
|
|
1316
1328
|
};
|
|
1317
|
-
imports.wbg.
|
|
1318
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1329
|
+
imports.wbg.__wbindgen_closure_wrapper9591 = function(arg0, arg1, arg2) {
|
|
1330
|
+
const ret = makeMutClosure(arg0, arg1, 771, __wbg_adapter_55);
|
|
1319
1331
|
return ret;
|
|
1320
1332
|
};
|
|
1321
1333
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -26,8 +26,10 @@ export const breezsdk_checkLightningAddressAvailable: (a: number, b: any) => any
|
|
|
26
26
|
export const breezsdk_getLightningAddress: (a: number) => any;
|
|
27
27
|
export const breezsdk_registerLightningAddress: (a: number, b: any) => any;
|
|
28
28
|
export const breezsdk_deleteLightningAddress: (a: number) => any;
|
|
29
|
+
export const breezsdk_listFiatCurrencies: (a: number) => any;
|
|
30
|
+
export const breezsdk_listFiatRates: (a: number) => any;
|
|
29
31
|
export const __wbg_sdkbuilder_free: (a: number, b: number) => void;
|
|
30
|
-
export const sdkbuilder_new: (a: any, b:
|
|
32
|
+
export const sdkbuilder_new: (a: any, b: any, c: any) => [number, number, number];
|
|
31
33
|
export const sdkbuilder_withRestChainService: (a: number, b: number, c: number, d: number) => number;
|
|
32
34
|
export const sdkbuilder_withKeySet: (a: number, b: any, c: number) => number;
|
|
33
35
|
export const sdkbuilder_build: (a: number) => any;
|
|
@@ -58,6 +60,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
58
60
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
59
61
|
export const __externref_table_dealloc: (a: number) => void;
|
|
60
62
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf7c49586be6831c4: (a: number, b: number) => void;
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
+
export const closure770_externref_shim: (a: number, b: number, c: any) => void;
|
|
64
|
+
export const closure421_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
63
65
|
export const __wbindgen_start: () => void;
|