@breeztech/breez-sdk-spark 0.26.0 → 0.27.0-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 +11 -2
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +36 -19
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -5
- package/deno/breez_sdk_spark_wasm.d.ts +11 -2
- package/deno/breez_sdk_spark_wasm.js +36 -19
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -5
- package/nodejs/breez_sdk_spark_wasm.d.ts +11 -2
- package/nodejs/breez_sdk_spark_wasm.js +37 -19
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -5
- package/nodejs/index.mjs +1 -0
- package/package.json +1 -1
- package/ssr/index.js +5 -0
- package/web/breez_sdk_spark_wasm.d.ts +17 -7
- package/web/breez_sdk_spark_wasm.js +36 -19
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +6 -5
package/breez-sdk-spark.tgz
CHANGED
|
Binary file
|
|
@@ -2113,7 +2113,7 @@ export type CrossChainRouteFilter = { type: "send"; addressDetails: CrossChainAd
|
|
|
2113
2113
|
|
|
2114
2114
|
export type DeliveryMethod = "spark" | "lightning" | "bitcoin";
|
|
2115
2115
|
|
|
2116
|
-
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2116
|
+
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "depositTooSmall"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2117
2117
|
|
|
2118
2118
|
export type ExitLeafSelection = { type: "auto" } | { type: "specific"; leafIds: string[] };
|
|
2119
2119
|
|
|
@@ -2173,7 +2173,7 @@ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvo
|
|
|
2173
2173
|
|
|
2174
2174
|
export type RefundState = { type: "broadcastPending"; lastError?: string } | { type: "broadcast" };
|
|
2175
2175
|
|
|
2176
|
-
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" };
|
|
2176
|
+
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" } | { type: "stableBalanceConversionFailed"; conversion: StableBalanceConversionKind; error: string; retryInSecs?: number };
|
|
2177
2177
|
|
|
2178
2178
|
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
2179
2179
|
|
|
@@ -2193,6 +2193,8 @@ export type SparkMasterIdentityPublicKey = { type: "set"; publicKey: string } |
|
|
|
2193
2193
|
|
|
2194
2194
|
export type StableBalanceActiveLabel = { type: "set"; label: string } | { type: "unset" };
|
|
2195
2195
|
|
|
2196
|
+
export type StableBalanceConversionKind = "perReceive" | "autoConvert" | "deactivation";
|
|
2197
|
+
|
|
2196
2198
|
export type StoragePaymentDetailsFilter = { type: "spark"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter } | { type: "token"; conversionFilter?: ConversionFilter; txHash?: string; txType?: TokenTransactionType } | { type: "lightning"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter };
|
|
2197
2199
|
|
|
2198
2200
|
export type SuccessAction = { type: "aes"; data: AesSuccessActionData } | { type: "message"; data: MessageSuccessActionData } | { type: "url"; data: UrlSuccessActionData };
|
|
@@ -2735,6 +2737,13 @@ export function newRestChainService(url: string, network: Network, api_type: Cha
|
|
|
2735
2737
|
*/
|
|
2736
2738
|
export function newSharedSdkContext(config: WasmSdkContextConfig): Promise<WasmSdkContext>;
|
|
2737
2739
|
|
|
2740
|
+
/**
|
|
2741
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
2742
|
+
* operators, service provider and certificates as a file. Set it on
|
|
2743
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
2744
|
+
*/
|
|
2745
|
+
export function parseSparkConfig(json: string): SparkConfig;
|
|
2746
|
+
|
|
2738
2747
|
/**
|
|
2739
2748
|
* `PostgreSQL`-backed storage built from `config`.
|
|
2740
2749
|
*/
|
|
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./breez_sdk_spark_wasm_bg.js";
|
|
|
5
5
|
__wbg_set_wasm(wasm);
|
|
6
6
|
wasm.__wbindgen_start();
|
|
7
7
|
export {
|
|
8
|
-
BitcoinChainServiceHandle, BreezSdk, DefaultCpfpSigner, DefaultSessionStore, ExternalBreezSignerHandle, ExternalSigners, ExternalSigningSignerHandle, ExternalSparkSignerHandle, IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, PasskeyClient, PasskeyLabels, SdkBuilder, SigningOnlyExternalSigners, TokenIssuer, WasmSdkContext, WasmStorageConfig, connect, connectWithSigner, connectWithSigningOnlySigner, createTurnkeySigner, createTurnkeySigningOnlySigner, defaultConfig, defaultExternalSigners, defaultMysqlStorageConfig, defaultPostgresStorageConfig, defaultServerConfig, defaultSessionStore, defaultStorage, getSparkStatus, initLogging, mysqlStorage, newRestChainService, newSharedSdkContext, postgresStorage, singleKeyCpfpSigner, start, task_worker_entry_point
|
|
8
|
+
BitcoinChainServiceHandle, BreezSdk, DefaultCpfpSigner, DefaultSessionStore, ExternalBreezSignerHandle, ExternalSigners, ExternalSigningSignerHandle, ExternalSparkSignerHandle, IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, PasskeyClient, PasskeyLabels, SdkBuilder, SigningOnlyExternalSigners, TokenIssuer, WasmSdkContext, WasmStorageConfig, connect, connectWithSigner, connectWithSigningOnlySigner, createTurnkeySigner, createTurnkeySigningOnlySigner, defaultConfig, defaultExternalSigners, defaultMysqlStorageConfig, defaultPostgresStorageConfig, defaultServerConfig, defaultSessionStore, defaultStorage, getSparkStatus, initLogging, mysqlStorage, newRestChainService, newSharedSdkContext, parseSparkConfig, postgresStorage, singleKeyCpfpSigner, start, task_worker_entry_point
|
|
9
9
|
} from "./breez_sdk_spark_wasm_bg.js";
|
|
@@ -1937,6 +1937,23 @@ export function newSharedSdkContext(config) {
|
|
|
1937
1937
|
return ret;
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
1940
|
+
/**
|
|
1941
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
1942
|
+
* operators, service provider and certificates as a file. Set it on
|
|
1943
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
1944
|
+
* @param {string} json
|
|
1945
|
+
* @returns {SparkConfig}
|
|
1946
|
+
*/
|
|
1947
|
+
export function parseSparkConfig(json) {
|
|
1948
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1949
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1950
|
+
const ret = wasm.parseSparkConfig(ptr0, len0);
|
|
1951
|
+
if (ret[2]) {
|
|
1952
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1953
|
+
}
|
|
1954
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1940
1957
|
/**
|
|
1941
1958
|
* `PostgreSQL`-backed storage built from `config`.
|
|
1942
1959
|
* @param {PostgresStorageConfig} config
|
|
@@ -3642,46 +3659,46 @@ export function __wbg_wasmsdkcontext_new(arg0) {
|
|
|
3642
3659
|
}
|
|
3643
3660
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
3644
3661
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3645
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3662
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375);
|
|
3646
3663
|
return ret;
|
|
3647
3664
|
}
|
|
3648
3665
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
3649
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3666
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3650
3667
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25);
|
|
3651
3668
|
return ret;
|
|
3652
3669
|
}
|
|
3653
3670
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
3654
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3671
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3655
3672
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2);
|
|
3656
3673
|
return ret;
|
|
3657
3674
|
}
|
|
3658
3675
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
3659
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3676
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3660
3677
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3);
|
|
3661
3678
|
return ret;
|
|
3662
3679
|
}
|
|
3663
3680
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
3664
3681
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3665
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3682
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4);
|
|
3666
3683
|
return ret;
|
|
3667
3684
|
}
|
|
3668
3685
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
3669
3686
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3670
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3687
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5);
|
|
3671
3688
|
return ret;
|
|
3672
3689
|
}
|
|
3673
3690
|
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
3674
3691
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3675
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3692
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6);
|
|
3676
3693
|
return ret;
|
|
3677
3694
|
}
|
|
3678
3695
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
3679
3696
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3680
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3697
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7);
|
|
3681
3698
|
return ret;
|
|
3682
3699
|
}
|
|
3683
3700
|
export function __wbindgen_cast_0000000000000009(arg0, arg1) {
|
|
3684
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3701
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3685
3702
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7);
|
|
3686
3703
|
return ret;
|
|
3687
3704
|
}
|
|
@@ -3782,36 +3799,36 @@ function wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, a
|
|
|
3782
3799
|
wasm.wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, arg1, arg2);
|
|
3783
3800
|
}
|
|
3784
3801
|
|
|
3785
|
-
function
|
|
3786
|
-
const ret = wasm.
|
|
3802
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2) {
|
|
3803
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2);
|
|
3787
3804
|
if (ret[1]) {
|
|
3788
3805
|
throw takeFromExternrefTable0(ret[0]);
|
|
3789
3806
|
}
|
|
3790
3807
|
}
|
|
3791
3808
|
|
|
3792
|
-
function
|
|
3793
|
-
const ret = wasm.
|
|
3809
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2) {
|
|
3810
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2);
|
|
3794
3811
|
if (ret[1]) {
|
|
3795
3812
|
throw takeFromExternrefTable0(ret[0]);
|
|
3796
3813
|
}
|
|
3797
3814
|
}
|
|
3798
3815
|
|
|
3799
|
-
function
|
|
3800
|
-
const ret = wasm.
|
|
3816
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2) {
|
|
3817
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2);
|
|
3801
3818
|
if (ret[1]) {
|
|
3802
3819
|
throw takeFromExternrefTable0(ret[0]);
|
|
3803
3820
|
}
|
|
3804
3821
|
}
|
|
3805
3822
|
|
|
3806
|
-
function
|
|
3807
|
-
const ret = wasm.
|
|
3823
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2) {
|
|
3824
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2);
|
|
3808
3825
|
if (ret[1]) {
|
|
3809
3826
|
throw takeFromExternrefTable0(ret[0]);
|
|
3810
3827
|
}
|
|
3811
3828
|
}
|
|
3812
3829
|
|
|
3813
|
-
function
|
|
3814
|
-
const ret = wasm.
|
|
3830
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2) {
|
|
3831
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2);
|
|
3815
3832
|
if (ret[1]) {
|
|
3816
3833
|
throw takeFromExternrefTable0(ret[0]);
|
|
3817
3834
|
}
|
|
Binary file
|
|
@@ -128,6 +128,7 @@ export const initLogging: (a: any, b: number, c: number) => any;
|
|
|
128
128
|
export const mysqlStorage: (a: any) => number;
|
|
129
129
|
export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
|
|
130
130
|
export const newSharedSdkContext: (a: any) => any;
|
|
131
|
+
export const parseSparkConfig: (a: number, b: number) => [number, number, number];
|
|
131
132
|
export const passkeyclient_checkAvailability: (a: number) => any;
|
|
132
133
|
export const passkeyclient_connectWithPasskey: (a: number, b: any) => any;
|
|
133
134
|
export const passkeyclient_labels: (a: number) => number;
|
|
@@ -189,11 +190,11 @@ export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => voi
|
|
|
189
190
|
export const __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
|
|
190
191
|
export const signingonlyexternalsigners_breezSigner: (a: number) => number;
|
|
191
192
|
export const signingonlyexternalsigners_sparkSigner: (a: number) => number;
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
export const
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
193
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375: (a: number, b: number, c: any) => [number, number];
|
|
194
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4: (a: number, b: number, c: any) => [number, number];
|
|
195
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5: (a: number, b: number, c: any) => [number, number];
|
|
196
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6: (a: number, b: number, c: any) => [number, number];
|
|
197
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7: (a: number, b: number, c: any) => [number, number];
|
|
197
198
|
export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
198
199
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25: (a: number, b: number, c: any) => void;
|
|
199
200
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2: (a: number, b: number, c: any) => void;
|
|
@@ -2113,7 +2113,7 @@ export type CrossChainRouteFilter = { type: "send"; addressDetails: CrossChainAd
|
|
|
2113
2113
|
|
|
2114
2114
|
export type DeliveryMethod = "spark" | "lightning" | "bitcoin";
|
|
2115
2115
|
|
|
2116
|
-
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2116
|
+
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "depositTooSmall"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2117
2117
|
|
|
2118
2118
|
export type ExitLeafSelection = { type: "auto" } | { type: "specific"; leafIds: string[] };
|
|
2119
2119
|
|
|
@@ -2173,7 +2173,7 @@ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvo
|
|
|
2173
2173
|
|
|
2174
2174
|
export type RefundState = { type: "broadcastPending"; lastError?: string } | { type: "broadcast" };
|
|
2175
2175
|
|
|
2176
|
-
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" };
|
|
2176
|
+
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" } | { type: "stableBalanceConversionFailed"; conversion: StableBalanceConversionKind; error: string; retryInSecs?: number };
|
|
2177
2177
|
|
|
2178
2178
|
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
2179
2179
|
|
|
@@ -2193,6 +2193,8 @@ export type SparkMasterIdentityPublicKey = { type: "set"; publicKey: string } |
|
|
|
2193
2193
|
|
|
2194
2194
|
export type StableBalanceActiveLabel = { type: "set"; label: string } | { type: "unset" };
|
|
2195
2195
|
|
|
2196
|
+
export type StableBalanceConversionKind = "perReceive" | "autoConvert" | "deactivation";
|
|
2197
|
+
|
|
2196
2198
|
export type StoragePaymentDetailsFilter = { type: "spark"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter } | { type: "token"; conversionFilter?: ConversionFilter; txHash?: string; txType?: TokenTransactionType } | { type: "lightning"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter };
|
|
2197
2199
|
|
|
2198
2200
|
export type SuccessAction = { type: "aes"; data: AesSuccessActionData } | { type: "message"; data: MessageSuccessActionData } | { type: "url"; data: UrlSuccessActionData };
|
|
@@ -2735,6 +2737,13 @@ export function newRestChainService(url: string, network: Network, api_type: Cha
|
|
|
2735
2737
|
*/
|
|
2736
2738
|
export function newSharedSdkContext(config: WasmSdkContextConfig): Promise<WasmSdkContext>;
|
|
2737
2739
|
|
|
2740
|
+
/**
|
|
2741
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
2742
|
+
* operators, service provider and certificates as a file. Set it on
|
|
2743
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
2744
|
+
*/
|
|
2745
|
+
export function parseSparkConfig(json: string): SparkConfig;
|
|
2746
|
+
|
|
2738
2747
|
/**
|
|
2739
2748
|
* `PostgreSQL`-backed storage built from `config`.
|
|
2740
2749
|
*/
|
|
@@ -1939,6 +1939,23 @@ export function newSharedSdkContext(config) {
|
|
|
1939
1939
|
return ret;
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
|
+
/**
|
|
1943
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
1944
|
+
* operators, service provider and certificates as a file. Set it on
|
|
1945
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
1946
|
+
* @param {string} json
|
|
1947
|
+
* @returns {SparkConfig}
|
|
1948
|
+
*/
|
|
1949
|
+
export function parseSparkConfig(json) {
|
|
1950
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1951
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1952
|
+
const ret = wasm.parseSparkConfig(ptr0, len0);
|
|
1953
|
+
if (ret[2]) {
|
|
1954
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1955
|
+
}
|
|
1956
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1942
1959
|
/**
|
|
1943
1960
|
* `PostgreSQL`-backed storage built from `config`.
|
|
1944
1961
|
* @param {PostgresStorageConfig} config
|
|
@@ -3647,46 +3664,46 @@ function __wbg_get_imports() {
|
|
|
3647
3664
|
},
|
|
3648
3665
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3649
3666
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3650
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3667
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375);
|
|
3651
3668
|
return ret;
|
|
3652
3669
|
},
|
|
3653
3670
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3654
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3671
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3655
3672
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25);
|
|
3656
3673
|
return ret;
|
|
3657
3674
|
},
|
|
3658
3675
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3659
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3676
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3660
3677
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2);
|
|
3661
3678
|
return ret;
|
|
3662
3679
|
},
|
|
3663
3680
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3664
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3681
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3665
3682
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3);
|
|
3666
3683
|
return ret;
|
|
3667
3684
|
},
|
|
3668
3685
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3669
3686
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3670
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3687
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4);
|
|
3671
3688
|
return ret;
|
|
3672
3689
|
},
|
|
3673
3690
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3674
3691
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3675
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3692
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5);
|
|
3676
3693
|
return ret;
|
|
3677
3694
|
},
|
|
3678
3695
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3679
3696
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3680
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3697
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6);
|
|
3681
3698
|
return ret;
|
|
3682
3699
|
},
|
|
3683
3700
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3684
3701
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3685
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3702
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7);
|
|
3686
3703
|
return ret;
|
|
3687
3704
|
},
|
|
3688
3705
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3689
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3706
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3690
3707
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7);
|
|
3691
3708
|
return ret;
|
|
3692
3709
|
},
|
|
@@ -3794,36 +3811,36 @@ function wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, a
|
|
|
3794
3811
|
wasm.wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, arg1, arg2);
|
|
3795
3812
|
}
|
|
3796
3813
|
|
|
3797
|
-
function
|
|
3798
|
-
const ret = wasm.
|
|
3814
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2) {
|
|
3815
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2);
|
|
3799
3816
|
if (ret[1]) {
|
|
3800
3817
|
throw takeFromExternrefTable0(ret[0]);
|
|
3801
3818
|
}
|
|
3802
3819
|
}
|
|
3803
3820
|
|
|
3804
|
-
function
|
|
3805
|
-
const ret = wasm.
|
|
3821
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2) {
|
|
3822
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2);
|
|
3806
3823
|
if (ret[1]) {
|
|
3807
3824
|
throw takeFromExternrefTable0(ret[0]);
|
|
3808
3825
|
}
|
|
3809
3826
|
}
|
|
3810
3827
|
|
|
3811
|
-
function
|
|
3812
|
-
const ret = wasm.
|
|
3828
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2) {
|
|
3829
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2);
|
|
3813
3830
|
if (ret[1]) {
|
|
3814
3831
|
throw takeFromExternrefTable0(ret[0]);
|
|
3815
3832
|
}
|
|
3816
3833
|
}
|
|
3817
3834
|
|
|
3818
|
-
function
|
|
3819
|
-
const ret = wasm.
|
|
3835
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2) {
|
|
3836
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2);
|
|
3820
3837
|
if (ret[1]) {
|
|
3821
3838
|
throw takeFromExternrefTable0(ret[0]);
|
|
3822
3839
|
}
|
|
3823
3840
|
}
|
|
3824
3841
|
|
|
3825
|
-
function
|
|
3826
|
-
const ret = wasm.
|
|
3842
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2) {
|
|
3843
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2);
|
|
3827
3844
|
if (ret[1]) {
|
|
3828
3845
|
throw takeFromExternrefTable0(ret[0]);
|
|
3829
3846
|
}
|
|
Binary file
|
|
@@ -128,6 +128,7 @@ export const initLogging: (a: any, b: number, c: number) => any;
|
|
|
128
128
|
export const mysqlStorage: (a: any) => number;
|
|
129
129
|
export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
|
|
130
130
|
export const newSharedSdkContext: (a: any) => any;
|
|
131
|
+
export const parseSparkConfig: (a: number, b: number) => [number, number, number];
|
|
131
132
|
export const passkeyclient_checkAvailability: (a: number) => any;
|
|
132
133
|
export const passkeyclient_connectWithPasskey: (a: number, b: any) => any;
|
|
133
134
|
export const passkeyclient_labels: (a: number) => number;
|
|
@@ -189,11 +190,11 @@ export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => voi
|
|
|
189
190
|
export const __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
|
|
190
191
|
export const signingonlyexternalsigners_breezSigner: (a: number) => number;
|
|
191
192
|
export const signingonlyexternalsigners_sparkSigner: (a: number) => number;
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
export const
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
193
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375: (a: number, b: number, c: any) => [number, number];
|
|
194
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4: (a: number, b: number, c: any) => [number, number];
|
|
195
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5: (a: number, b: number, c: any) => [number, number];
|
|
196
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6: (a: number, b: number, c: any) => [number, number];
|
|
197
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7: (a: number, b: number, c: any) => [number, number];
|
|
197
198
|
export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
198
199
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25: (a: number, b: number, c: any) => void;
|
|
199
200
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2: (a: number, b: number, c: any) => void;
|
|
@@ -2113,7 +2113,7 @@ export type CrossChainRouteFilter = { type: "send"; addressDetails: CrossChainAd
|
|
|
2113
2113
|
|
|
2114
2114
|
export type DeliveryMethod = "spark" | "lightning" | "bitcoin";
|
|
2115
2115
|
|
|
2116
|
-
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2116
|
+
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "depositTooSmall"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2117
2117
|
|
|
2118
2118
|
export type ExitLeafSelection = { type: "auto" } | { type: "specific"; leafIds: string[] };
|
|
2119
2119
|
|
|
@@ -2173,7 +2173,7 @@ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvo
|
|
|
2173
2173
|
|
|
2174
2174
|
export type RefundState = { type: "broadcastPending"; lastError?: string } | { type: "broadcast" };
|
|
2175
2175
|
|
|
2176
|
-
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" };
|
|
2176
|
+
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" } | { type: "stableBalanceConversionFailed"; conversion: StableBalanceConversionKind; error: string; retryInSecs?: number };
|
|
2177
2177
|
|
|
2178
2178
|
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
2179
2179
|
|
|
@@ -2193,6 +2193,8 @@ export type SparkMasterIdentityPublicKey = { type: "set"; publicKey: string } |
|
|
|
2193
2193
|
|
|
2194
2194
|
export type StableBalanceActiveLabel = { type: "set"; label: string } | { type: "unset" };
|
|
2195
2195
|
|
|
2196
|
+
export type StableBalanceConversionKind = "perReceive" | "autoConvert" | "deactivation";
|
|
2197
|
+
|
|
2196
2198
|
export type StoragePaymentDetailsFilter = { type: "spark"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter } | { type: "token"; conversionFilter?: ConversionFilter; txHash?: string; txType?: TokenTransactionType } | { type: "lightning"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter };
|
|
2197
2199
|
|
|
2198
2200
|
export type SuccessAction = { type: "aes"; data: AesSuccessActionData } | { type: "message"; data: MessageSuccessActionData } | { type: "url"; data: UrlSuccessActionData };
|
|
@@ -2735,6 +2737,13 @@ export function newRestChainService(url: string, network: Network, api_type: Cha
|
|
|
2735
2737
|
*/
|
|
2736
2738
|
export function newSharedSdkContext(config: WasmSdkContextConfig): Promise<WasmSdkContext>;
|
|
2737
2739
|
|
|
2740
|
+
/**
|
|
2741
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
2742
|
+
* operators, service provider and certificates as a file. Set it on
|
|
2743
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
2744
|
+
*/
|
|
2745
|
+
export function parseSparkConfig(json: string): SparkConfig;
|
|
2746
|
+
|
|
2738
2747
|
/**
|
|
2739
2748
|
* `PostgreSQL`-backed storage built from `config`.
|
|
2740
2749
|
*/
|
|
@@ -1974,6 +1974,24 @@ function newSharedSdkContext(config) {
|
|
|
1974
1974
|
}
|
|
1975
1975
|
exports.newSharedSdkContext = newSharedSdkContext;
|
|
1976
1976
|
|
|
1977
|
+
/**
|
|
1978
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
1979
|
+
* operators, service provider and certificates as a file. Set it on
|
|
1980
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
1981
|
+
* @param {string} json
|
|
1982
|
+
* @returns {SparkConfig}
|
|
1983
|
+
*/
|
|
1984
|
+
function parseSparkConfig(json) {
|
|
1985
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1986
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1987
|
+
const ret = wasm.parseSparkConfig(ptr0, len0);
|
|
1988
|
+
if (ret[2]) {
|
|
1989
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1990
|
+
}
|
|
1991
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1992
|
+
}
|
|
1993
|
+
exports.parseSparkConfig = parseSparkConfig;
|
|
1994
|
+
|
|
1977
1995
|
/**
|
|
1978
1996
|
* `PostgreSQL`-backed storage built from `config`.
|
|
1979
1997
|
* @param {PostgresStorageConfig} config
|
|
@@ -3686,46 +3704,46 @@ function __wbg_get_imports() {
|
|
|
3686
3704
|
},
|
|
3687
3705
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3688
3706
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3689
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3707
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375);
|
|
3690
3708
|
return ret;
|
|
3691
3709
|
},
|
|
3692
3710
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3693
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3711
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3694
3712
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25);
|
|
3695
3713
|
return ret;
|
|
3696
3714
|
},
|
|
3697
3715
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3698
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3716
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3699
3717
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2);
|
|
3700
3718
|
return ret;
|
|
3701
3719
|
},
|
|
3702
3720
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3703
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3721
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3704
3722
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3);
|
|
3705
3723
|
return ret;
|
|
3706
3724
|
},
|
|
3707
3725
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3708
3726
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3709
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3727
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4);
|
|
3710
3728
|
return ret;
|
|
3711
3729
|
},
|
|
3712
3730
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3713
3731
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3714
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3732
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5);
|
|
3715
3733
|
return ret;
|
|
3716
3734
|
},
|
|
3717
3735
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3718
3736
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3719
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3737
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6);
|
|
3720
3738
|
return ret;
|
|
3721
3739
|
},
|
|
3722
3740
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3723
3741
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3724
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3742
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7);
|
|
3725
3743
|
return ret;
|
|
3726
3744
|
},
|
|
3727
3745
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3728
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3746
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3729
3747
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7);
|
|
3730
3748
|
return ret;
|
|
3731
3749
|
},
|
|
@@ -3833,36 +3851,36 @@ function wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, a
|
|
|
3833
3851
|
wasm.wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, arg1, arg2);
|
|
3834
3852
|
}
|
|
3835
3853
|
|
|
3836
|
-
function
|
|
3837
|
-
const ret = wasm.
|
|
3854
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2) {
|
|
3855
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2);
|
|
3838
3856
|
if (ret[1]) {
|
|
3839
3857
|
throw takeFromExternrefTable0(ret[0]);
|
|
3840
3858
|
}
|
|
3841
3859
|
}
|
|
3842
3860
|
|
|
3843
|
-
function
|
|
3844
|
-
const ret = wasm.
|
|
3861
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2) {
|
|
3862
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2);
|
|
3845
3863
|
if (ret[1]) {
|
|
3846
3864
|
throw takeFromExternrefTable0(ret[0]);
|
|
3847
3865
|
}
|
|
3848
3866
|
}
|
|
3849
3867
|
|
|
3850
|
-
function
|
|
3851
|
-
const ret = wasm.
|
|
3868
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2) {
|
|
3869
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2);
|
|
3852
3870
|
if (ret[1]) {
|
|
3853
3871
|
throw takeFromExternrefTable0(ret[0]);
|
|
3854
3872
|
}
|
|
3855
3873
|
}
|
|
3856
3874
|
|
|
3857
|
-
function
|
|
3858
|
-
const ret = wasm.
|
|
3875
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2) {
|
|
3876
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2);
|
|
3859
3877
|
if (ret[1]) {
|
|
3860
3878
|
throw takeFromExternrefTable0(ret[0]);
|
|
3861
3879
|
}
|
|
3862
3880
|
}
|
|
3863
3881
|
|
|
3864
|
-
function
|
|
3865
|
-
const ret = wasm.
|
|
3882
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2) {
|
|
3883
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2);
|
|
3866
3884
|
if (ret[1]) {
|
|
3867
3885
|
throw takeFromExternrefTable0(ret[0]);
|
|
3868
3886
|
}
|
|
Binary file
|
|
@@ -128,6 +128,7 @@ export const initLogging: (a: any, b: number, c: number) => any;
|
|
|
128
128
|
export const mysqlStorage: (a: any) => number;
|
|
129
129
|
export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
|
|
130
130
|
export const newSharedSdkContext: (a: any) => any;
|
|
131
|
+
export const parseSparkConfig: (a: number, b: number) => [number, number, number];
|
|
131
132
|
export const passkeyclient_checkAvailability: (a: number) => any;
|
|
132
133
|
export const passkeyclient_connectWithPasskey: (a: number, b: any) => any;
|
|
133
134
|
export const passkeyclient_labels: (a: number) => number;
|
|
@@ -189,11 +190,11 @@ export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => voi
|
|
|
189
190
|
export const __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
|
|
190
191
|
export const signingonlyexternalsigners_breezSigner: (a: number) => number;
|
|
191
192
|
export const signingonlyexternalsigners_sparkSigner: (a: number) => number;
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
export const
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
193
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375: (a: number, b: number, c: any) => [number, number];
|
|
194
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4: (a: number, b: number, c: any) => [number, number];
|
|
195
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5: (a: number, b: number, c: any) => [number, number];
|
|
196
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6: (a: number, b: number, c: any) => [number, number];
|
|
197
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7: (a: number, b: number, c: any) => [number, number];
|
|
197
198
|
export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
198
199
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25: (a: number, b: number, c: any) => void;
|
|
199
200
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2: (a: number, b: number, c: any) => void;
|
package/nodejs/index.mjs
CHANGED
package/package.json
CHANGED
package/ssr/index.js
CHANGED
|
@@ -108,6 +108,11 @@ export function newSharedSdkContext(...args) {
|
|
|
108
108
|
return _module.newSharedSdkContext(...args);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
export function parseSparkConfig(...args) {
|
|
112
|
+
if (!_module) _notInitialized('parseSparkConfig');
|
|
113
|
+
return _module.parseSparkConfig(...args);
|
|
114
|
+
}
|
|
115
|
+
|
|
111
116
|
export function postgresStorage(...args) {
|
|
112
117
|
if (!_module) _notInitialized('postgresStorage');
|
|
113
118
|
return _module.postgresStorage(...args);
|
|
@@ -2113,7 +2113,7 @@ export type CrossChainRouteFilter = { type: "send"; addressDetails: CrossChainAd
|
|
|
2113
2113
|
|
|
2114
2114
|
export type DeliveryMethod = "spark" | "lightning" | "bitcoin";
|
|
2115
2115
|
|
|
2116
|
-
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2116
|
+
export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "depositTooSmall"; tx: string; vout: number } | { type: "generic"; message: string };
|
|
2117
2117
|
|
|
2118
2118
|
export type ExitLeafSelection = { type: "auto" } | { type: "specific"; leafIds: string[] };
|
|
2119
2119
|
|
|
@@ -2173,7 +2173,7 @@ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvo
|
|
|
2173
2173
|
|
|
2174
2174
|
export type RefundState = { type: "broadcastPending"; lastError?: string } | { type: "broadcast" };
|
|
2175
2175
|
|
|
2176
|
-
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" };
|
|
2176
|
+
export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment } | { type: "paymentMetadataUpdated"; payment: Payment } | { type: "autoOptimization"; optimizationEvent: AutoOptimizationEvent } | { type: "lightningAddressChanged"; lightningAddress?: LightningAddressInfo } | { type: "newDeposits"; newDeposits: DepositInfo[] } | { type: "unilateralExitStateChanged" } | { type: "stableBalanceConversionFailed"; conversion: StableBalanceConversionKind; error: string; retryInSecs?: number };
|
|
2177
2177
|
|
|
2178
2178
|
export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
|
|
2179
2179
|
|
|
@@ -2193,6 +2193,8 @@ export type SparkMasterIdentityPublicKey = { type: "set"; publicKey: string } |
|
|
|
2193
2193
|
|
|
2194
2194
|
export type StableBalanceActiveLabel = { type: "set"; label: string } | { type: "unset" };
|
|
2195
2195
|
|
|
2196
|
+
export type StableBalanceConversionKind = "perReceive" | "autoConvert" | "deactivation";
|
|
2197
|
+
|
|
2196
2198
|
export type StoragePaymentDetailsFilter = { type: "spark"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter } | { type: "token"; conversionFilter?: ConversionFilter; txHash?: string; txType?: TokenTransactionType } | { type: "lightning"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter };
|
|
2197
2199
|
|
|
2198
2200
|
export type SuccessAction = { type: "aes"; data: AesSuccessActionData } | { type: "message"; data: MessageSuccessActionData } | { type: "url"; data: UrlSuccessActionData };
|
|
@@ -2735,6 +2737,13 @@ export function newRestChainService(url: string, network: Network, api_type: Cha
|
|
|
2735
2737
|
*/
|
|
2736
2738
|
export function newSharedSdkContext(config: WasmSdkContextConfig): Promise<WasmSdkContext>;
|
|
2737
2739
|
|
|
2740
|
+
/**
|
|
2741
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
2742
|
+
* operators, service provider and certificates as a file. Set it on
|
|
2743
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
2744
|
+
*/
|
|
2745
|
+
export function parseSparkConfig(json: string): SparkConfig;
|
|
2746
|
+
|
|
2738
2747
|
/**
|
|
2739
2748
|
* `PostgreSQL`-backed storage built from `config`.
|
|
2740
2749
|
*/
|
|
@@ -2889,6 +2898,7 @@ export interface InitOutput {
|
|
|
2889
2898
|
readonly mysqlStorage: (a: any) => number;
|
|
2890
2899
|
readonly newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
|
|
2891
2900
|
readonly newSharedSdkContext: (a: any) => any;
|
|
2901
|
+
readonly parseSparkConfig: (a: number, b: number) => [number, number, number];
|
|
2892
2902
|
readonly passkeyclient_checkAvailability: (a: number) => any;
|
|
2893
2903
|
readonly passkeyclient_connectWithPasskey: (a: number, b: any) => any;
|
|
2894
2904
|
readonly passkeyclient_labels: (a: number) => number;
|
|
@@ -2950,11 +2960,11 @@ export interface InitOutput {
|
|
|
2950
2960
|
readonly __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
|
|
2951
2961
|
readonly signingonlyexternalsigners_breezSigner: (a: number) => number;
|
|
2952
2962
|
readonly signingonlyexternalsigners_sparkSigner: (a: number) => number;
|
|
2953
|
-
readonly
|
|
2954
|
-
readonly
|
|
2955
|
-
readonly
|
|
2956
|
-
readonly
|
|
2957
|
-
readonly
|
|
2963
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375: (a: number, b: number, c: any) => [number, number];
|
|
2964
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4: (a: number, b: number, c: any) => [number, number];
|
|
2965
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5: (a: number, b: number, c: any) => [number, number];
|
|
2966
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6: (a: number, b: number, c: any) => [number, number];
|
|
2967
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7: (a: number, b: number, c: any) => [number, number];
|
|
2958
2968
|
readonly wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
2959
2969
|
readonly wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25: (a: number, b: number, c: any) => void;
|
|
2960
2970
|
readonly wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2: (a: number, b: number, c: any) => void;
|
|
@@ -1939,6 +1939,23 @@ export function newSharedSdkContext(config) {
|
|
|
1939
1939
|
return ret;
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
|
+
/**
|
|
1943
|
+
* Reads a `SparkConfig` from JSON, for a deployment that publishes its
|
|
1944
|
+
* operators, service provider and certificates as a file. Set it on
|
|
1945
|
+
* `Config.sparkConfig` to connect a wallet to that deployment.
|
|
1946
|
+
* @param {string} json
|
|
1947
|
+
* @returns {SparkConfig}
|
|
1948
|
+
*/
|
|
1949
|
+
export function parseSparkConfig(json) {
|
|
1950
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1951
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1952
|
+
const ret = wasm.parseSparkConfig(ptr0, len0);
|
|
1953
|
+
if (ret[2]) {
|
|
1954
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1955
|
+
}
|
|
1956
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1942
1959
|
/**
|
|
1943
1960
|
* `PostgreSQL`-backed storage built from `config`.
|
|
1944
1961
|
* @param {PostgresStorageConfig} config
|
|
@@ -3647,46 +3664,46 @@ function __wbg_get_imports() {
|
|
|
3647
3664
|
},
|
|
3648
3665
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3649
3666
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3650
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3667
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375);
|
|
3651
3668
|
return ret;
|
|
3652
3669
|
},
|
|
3653
3670
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3654
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3671
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3655
3672
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25);
|
|
3656
3673
|
return ret;
|
|
3657
3674
|
},
|
|
3658
3675
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3659
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3676
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3660
3677
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2);
|
|
3661
3678
|
return ret;
|
|
3662
3679
|
},
|
|
3663
3680
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3664
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3681
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 384, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3665
3682
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3);
|
|
3666
3683
|
return ret;
|
|
3667
3684
|
},
|
|
3668
3685
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3669
3686
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3670
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3687
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4);
|
|
3671
3688
|
return ret;
|
|
3672
3689
|
},
|
|
3673
3690
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3674
3691
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3675
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3692
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5);
|
|
3676
3693
|
return ret;
|
|
3677
3694
|
},
|
|
3678
3695
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3679
3696
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3680
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3697
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6);
|
|
3681
3698
|
return ret;
|
|
3682
3699
|
},
|
|
3683
3700
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3684
3701
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 21, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3685
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3702
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7);
|
|
3686
3703
|
return ret;
|
|
3687
3704
|
},
|
|
3688
3705
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3689
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3706
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3690
3707
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7);
|
|
3691
3708
|
return ret;
|
|
3692
3709
|
},
|
|
@@ -3794,36 +3811,36 @@ function wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, a
|
|
|
3794
3811
|
wasm.wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_3(arg0, arg1, arg2);
|
|
3795
3812
|
}
|
|
3796
3813
|
|
|
3797
|
-
function
|
|
3798
|
-
const ret = wasm.
|
|
3814
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2) {
|
|
3815
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375(arg0, arg1, arg2);
|
|
3799
3816
|
if (ret[1]) {
|
|
3800
3817
|
throw takeFromExternrefTable0(ret[0]);
|
|
3801
3818
|
}
|
|
3802
3819
|
}
|
|
3803
3820
|
|
|
3804
|
-
function
|
|
3805
|
-
const ret = wasm.
|
|
3821
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2) {
|
|
3822
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4(arg0, arg1, arg2);
|
|
3806
3823
|
if (ret[1]) {
|
|
3807
3824
|
throw takeFromExternrefTable0(ret[0]);
|
|
3808
3825
|
}
|
|
3809
3826
|
}
|
|
3810
3827
|
|
|
3811
|
-
function
|
|
3812
|
-
const ret = wasm.
|
|
3828
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2) {
|
|
3829
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5(arg0, arg1, arg2);
|
|
3813
3830
|
if (ret[1]) {
|
|
3814
3831
|
throw takeFromExternrefTable0(ret[0]);
|
|
3815
3832
|
}
|
|
3816
3833
|
}
|
|
3817
3834
|
|
|
3818
|
-
function
|
|
3819
|
-
const ret = wasm.
|
|
3835
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2) {
|
|
3836
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6(arg0, arg1, arg2);
|
|
3820
3837
|
if (ret[1]) {
|
|
3821
3838
|
throw takeFromExternrefTable0(ret[0]);
|
|
3822
3839
|
}
|
|
3823
3840
|
}
|
|
3824
3841
|
|
|
3825
|
-
function
|
|
3826
|
-
const ret = wasm.
|
|
3842
|
+
function wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2) {
|
|
3843
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7(arg0, arg1, arg2);
|
|
3827
3844
|
if (ret[1]) {
|
|
3828
3845
|
throw takeFromExternrefTable0(ret[0]);
|
|
3829
3846
|
}
|
|
Binary file
|
|
@@ -128,6 +128,7 @@ export const initLogging: (a: any, b: number, c: number) => any;
|
|
|
128
128
|
export const mysqlStorage: (a: any) => number;
|
|
129
129
|
export const newRestChainService: (a: number, b: number, c: any, d: any, e: number) => any;
|
|
130
130
|
export const newSharedSdkContext: (a: any) => any;
|
|
131
|
+
export const parseSparkConfig: (a: number, b: number) => [number, number, number];
|
|
131
132
|
export const passkeyclient_checkAvailability: (a: number) => any;
|
|
132
133
|
export const passkeyclient_connectWithPasskey: (a: number, b: any) => any;
|
|
133
134
|
export const passkeyclient_labels: (a: number) => number;
|
|
@@ -189,11 +190,11 @@ export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => voi
|
|
|
189
190
|
export const __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
|
|
190
191
|
export const signingonlyexternalsigners_breezSigner: (a: number) => number;
|
|
191
192
|
export const signingonlyexternalsigners_sparkSigner: (a: number) => number;
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
export const
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
193
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375: (a: number, b: number, c: any) => [number, number];
|
|
194
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_4: (a: number, b: number, c: any) => [number, number];
|
|
195
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_5: (a: number, b: number, c: any) => [number, number];
|
|
196
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_6: (a: number, b: number, c: any) => [number, number];
|
|
197
|
+
export const wasm_bindgen__convert__closures_____invoke__h0a7e586e9273e375_7: (a: number, b: number, c: any) => [number, number];
|
|
197
198
|
export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
198
199
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25: (a: number, b: number, c: any) => void;
|
|
199
200
|
export const wasm_bindgen__convert__closures_____invoke__h3b28fbbc8b451a25_2: (a: number, b: number, c: any) => void;
|