@breeztech/breez-sdk-spark 0.19.2 → 0.20.0-dev1
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 +101 -1
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +149 -13
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +8 -0
- package/deno/breez_sdk_spark_wasm.d.ts +101 -1
- package/deno/breez_sdk_spark_wasm.js +149 -13
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +8 -0
- package/itest/.gitignore +2 -0
- package/itest/helpers/assert.test.js +70 -0
- package/itest/helpers/faucet.js +68 -0
- package/itest/helpers/lnurl-fixture.js +229 -0
- package/itest/helpers/scenario.js +444 -0
- package/itest/package-lock.json +519 -0
- package/itest/package.json +18 -0
- package/itest/scenarios.test.js +47 -0
- package/itest/smoke.test.js +184 -0
- package/nodejs/breez_sdk_spark_wasm.d.ts +101 -1
- package/nodejs/breez_sdk_spark_wasm.js +151 -13
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +8 -0
- package/nodejs/index.mjs +2 -0
- package/package.json +1 -1
- package/ssr/index.js +12 -0
- package/web/breez_sdk_spark_wasm.d.ts +109 -1
- package/web/breez_sdk_spark_wasm.js +149 -13
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +8 -0
|
@@ -511,8 +511,10 @@ export interface BitcoinAddressDetails {
|
|
|
511
511
|
|
|
512
512
|
export interface BitcoinChainService {
|
|
513
513
|
getAddressUtxos(address: string): Promise<Utxo[]>;
|
|
514
|
+
getAddressTxos(address: string): Promise<Utxo[]>;
|
|
514
515
|
getTransactionStatus(txid: string): Promise<TxStatus>;
|
|
515
516
|
getTransactionHex(txid: string): Promise<string>;
|
|
517
|
+
getOutspend(txid: string, vout: number): Promise<Outspend>;
|
|
516
518
|
broadcastTransaction(tx: string): Promise<void>;
|
|
517
519
|
recommendedFees(): Promise<RecommendedFees>;
|
|
518
520
|
}
|
|
@@ -718,6 +720,10 @@ export interface ConversionSide {
|
|
|
718
720
|
fee: string;
|
|
719
721
|
}
|
|
720
722
|
|
|
723
|
+
export interface CpfpSigner {
|
|
724
|
+
signPsbt(psbtBytes: Uint8Array): Promise<Uint8Array>;
|
|
725
|
+
}
|
|
726
|
+
|
|
721
727
|
export interface CreateIssuerTokenRequest {
|
|
722
728
|
name: string;
|
|
723
729
|
ticker: string;
|
|
@@ -955,6 +961,7 @@ export interface ExternalSparkSigner {
|
|
|
955
961
|
getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
|
|
956
962
|
signAuthenticationChallenge(challenge: Uint8Array): Promise<EcdsaSignatureBytes>;
|
|
957
963
|
signMessage(message: Uint8Array): Promise<EcdsaSignatureBytes>;
|
|
964
|
+
signLeafRefundSpend(leafId: ExternalTreeNodeId, sighash: Uint8Array): Promise<SchnorrSignatureBytes>;
|
|
958
965
|
signFrost(jobs: ExternalFrostJob[]): Promise<ExternalFrostShareResult[]>;
|
|
959
966
|
prepareTransfer(request: ExternalPrepareTransferRequest): Promise<ExternalPreparedTransfer>;
|
|
960
967
|
prepareClaim(request: ExternalPrepareClaimRequest): Promise<ExternalPreparedClaim>;
|
|
@@ -1282,6 +1289,11 @@ export interface PaymentRequestSource {
|
|
|
1282
1289
|
bip353Address?: string;
|
|
1283
1290
|
}
|
|
1284
1291
|
|
|
1292
|
+
export interface PerBranchFunding {
|
|
1293
|
+
leafId: string;
|
|
1294
|
+
fundingSat: number;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1285
1297
|
export interface PrepareLnurlPayRequest {
|
|
1286
1298
|
amount: bigint;
|
|
1287
1299
|
comment?: string;
|
|
@@ -1319,6 +1331,24 @@ export interface PrepareSendPaymentResponse {
|
|
|
1319
1331
|
feePolicy: FeePolicy;
|
|
1320
1332
|
}
|
|
1321
1333
|
|
|
1334
|
+
export interface PrepareUnilateralExitRequest {
|
|
1335
|
+
feeRateSatPerVbyte: number;
|
|
1336
|
+
fundingKind: CpfpFundingKind;
|
|
1337
|
+
destination: string;
|
|
1338
|
+
selection: ExitLeafSelection;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
export interface PrepareUnilateralExitResponse {
|
|
1342
|
+
leaves: UnilateralExitLeaf[];
|
|
1343
|
+
recoverableValueSat: number;
|
|
1344
|
+
totalFeeSat: number;
|
|
1345
|
+
fanoutFeeSat: number;
|
|
1346
|
+
singleUtxoFundingSat: number;
|
|
1347
|
+
perBranchFunding: PerBranchFunding[];
|
|
1348
|
+
feeRateSatPerVbyte: number;
|
|
1349
|
+
destination: string;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1322
1352
|
export interface ProvisionalPayment {
|
|
1323
1353
|
paymentId: string;
|
|
1324
1354
|
amount: bigint;
|
|
@@ -1394,6 +1424,12 @@ export interface RefundDepositResponse {
|
|
|
1394
1424
|
txHex: string;
|
|
1395
1425
|
}
|
|
1396
1426
|
|
|
1427
|
+
export interface RefundPendingConversionsResponse {
|
|
1428
|
+
refunded: number;
|
|
1429
|
+
skipped: number;
|
|
1430
|
+
failed: number;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1397
1433
|
export interface RegisterLightningAddressRequest {
|
|
1398
1434
|
username: string;
|
|
1399
1435
|
description?: string;
|
|
@@ -1701,6 +1737,34 @@ export interface UnfreezeIssuerTokenResponse {
|
|
|
1701
1737
|
impactedTokenAmount: bigint;
|
|
1702
1738
|
}
|
|
1703
1739
|
|
|
1740
|
+
export interface UnilateralExitLeaf {
|
|
1741
|
+
leafId: string;
|
|
1742
|
+
value: number;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
export interface UnilateralExitRequest {
|
|
1746
|
+
prepared: PrepareUnilateralExitResponse;
|
|
1747
|
+
fundingInputs: CpfpInput[];
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
export interface UnilateralExitResponse {
|
|
1751
|
+
recoverableValueSat: number;
|
|
1752
|
+
totalFeeSat: number;
|
|
1753
|
+
leaves: UnilateralExitLeaf[];
|
|
1754
|
+
transactions: UnilateralExitTransaction[];
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
export interface UnilateralExitTransaction {
|
|
1758
|
+
kind: UnilateralExitTxKind;
|
|
1759
|
+
nodeId?: string;
|
|
1760
|
+
txid: string;
|
|
1761
|
+
txHex: string;
|
|
1762
|
+
cpfpTxHex?: string;
|
|
1763
|
+
csvTimelockBlocks?: number;
|
|
1764
|
+
dependsOn: string[];
|
|
1765
|
+
status: ConfirmationStatus;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1704
1768
|
export interface UnregisterWebhookRequest {
|
|
1705
1769
|
webhookId: string;
|
|
1706
1770
|
}
|
|
@@ -1720,6 +1784,7 @@ export interface UpdateContactRequest {
|
|
|
1720
1784
|
export interface UpdateUserSettingsRequest {
|
|
1721
1785
|
sparkPrivateModeEnabled?: boolean;
|
|
1722
1786
|
stableBalanceActiveLabel?: StableBalanceActiveLabel;
|
|
1787
|
+
sparkMasterIdentityPublicKey?: SparkMasterIdentityPublicKey;
|
|
1723
1788
|
}
|
|
1724
1789
|
|
|
1725
1790
|
export interface UrlSuccessActionData {
|
|
@@ -1731,6 +1796,7 @@ export interface UrlSuccessActionData {
|
|
|
1731
1796
|
export interface UserSettings {
|
|
1732
1797
|
sparkPrivateModeEnabled: boolean;
|
|
1733
1798
|
stableBalanceActiveLabel?: string;
|
|
1799
|
+
sparkMasterIdentityPublicKey?: string;
|
|
1734
1800
|
}
|
|
1735
1801
|
|
|
1736
1802
|
export interface Utxo {
|
|
@@ -1764,6 +1830,8 @@ export type BuyBitcoinRequest = { type: "moonpay"; lockedAmountSat?: number; red
|
|
|
1764
1830
|
|
|
1765
1831
|
export type ChainApiType = "esplora" | "mempoolSpace";
|
|
1766
1832
|
|
|
1833
|
+
export type ConfirmationStatus = "confirmed" | "unconfirmed" | "unverified";
|
|
1834
|
+
|
|
1767
1835
|
export type ConversionChain = { type: "spark" } | { type: "lightning" } | { type: "external"; name: string; chainId?: string };
|
|
1768
1836
|
|
|
1769
1837
|
export type ConversionFilter = "ammRefundNeeded" | "orchestraPending" | "boltzPending";
|
|
@@ -1778,6 +1846,10 @@ export type ConversionStatus = "pending" | "completed" | "failed" | "refundNeede
|
|
|
1778
1846
|
|
|
1779
1847
|
export type ConversionType = { type: "fromBitcoin" } | { type: "toBitcoin"; fromTokenIdentifier: string };
|
|
1780
1848
|
|
|
1849
|
+
export type CpfpFundingKind = { type: "p2wpkh" } | { type: "p2tr" } | { type: "custom"; scriptPubkeyHex: string; signedInputWeight: number };
|
|
1850
|
+
|
|
1851
|
+
export type CpfpInput = { type: "p2wpkh"; txid: string; vout: number; value: number; pubkey: string } | { type: "p2tr"; txid: string; vout: number; value: number; pubkey: string } | { type: "custom"; txid: string; vout: number; value: number; scriptPubkeyHex: string; signedInputWeight: number };
|
|
1852
|
+
|
|
1781
1853
|
export type CrossChainAddressFamily = "evm" | "solana" | "tron";
|
|
1782
1854
|
|
|
1783
1855
|
export type CrossChainFeeMode = "feesExcluded" | "feesIncluded";
|
|
@@ -1790,6 +1862,8 @@ export type CrossChainRouteFilter = { type: "send"; addressDetails: CrossChainAd
|
|
|
1790
1862
|
|
|
1791
1863
|
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 };
|
|
1792
1864
|
|
|
1865
|
+
export type ExitLeafSelection = { type: "auto" } | { type: "specific"; leafIds: string[] };
|
|
1866
|
+
|
|
1793
1867
|
export type ExternalFrostDerivation = { type: "signingLeaf"; leafId: ExternalTreeNodeId } | { type: "staticDeposit"; index: number } | { type: "htlcPreimage" } | { type: "identity" };
|
|
1794
1868
|
|
|
1795
1869
|
export type ExternalSparkInvoiceKind = "sats" | "tokens";
|
|
@@ -1814,6 +1888,8 @@ export type OptimizationMode = "full" | "singleRound";
|
|
|
1814
1888
|
|
|
1815
1889
|
export type OptimizationOutcome = { type: "completed"; roundsExecuted: number } | { type: "inProgress" };
|
|
1816
1890
|
|
|
1891
|
+
export type Outspend = { type: "unspent" } | { type: "spent"; txid: string; vin: number; status: TxStatus };
|
|
1892
|
+
|
|
1817
1893
|
export type PaymentDetails = { type: "spark"; invoiceDetails?: SparkInvoicePaymentDetails; htlcDetails?: SparkHtlcDetails; conversionInfo?: ConversionInfo } | { type: "token"; metadata: TokenMetadata; txHash: string; txType: TokenTransactionType; invoiceDetails?: SparkInvoicePaymentDetails; conversionInfo?: ConversionInfo } | { type: "lightning"; description?: string; invoice: string; destinationPubkey: string; htlcDetails: SparkHtlcDetails; lnurlPayInfo?: LnurlPayInfo; lnurlWithdrawInfo?: LnurlWithdrawInfo; lnurlReceiveMetadata?: LnurlReceiveMetadata; conversionInfo?: ConversionInfo } | { type: "withdraw"; txId: string } | { type: "deposit"; txId: string; vout: number };
|
|
1818
1894
|
|
|
1819
1895
|
export type PaymentDetailsFilter = { type: "spark"; htlcStatus?: SparkHtlcStatus[]; conversionRefundNeeded?: boolean } | { type: "token"; conversionRefundNeeded?: boolean; txHash?: string; txType?: TokenTransactionType } | { type: "lightning"; htlcStatus?: SparkHtlcStatus[] };
|
|
@@ -1850,6 +1926,8 @@ export type SourceAsset = { type: "bitcoin" } | { type: "token"; tokenIdentifier
|
|
|
1850
1926
|
|
|
1851
1927
|
export type SparkHtlcStatus = "waitingForPreimage" | "preimageShared" | "returned";
|
|
1852
1928
|
|
|
1929
|
+
export type SparkMasterIdentityPublicKey = { type: "set"; publicKey: string } | { type: "unset" };
|
|
1930
|
+
|
|
1853
1931
|
export type StableBalanceActiveLabel = { type: "set"; label: string } | { type: "unset" };
|
|
1854
1932
|
|
|
1855
1933
|
export type StoragePaymentDetailsFilter = { type: "spark"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter } | { type: "token"; conversionFilter?: ConversionFilter; txHash?: string; txType?: TokenTransactionType } | { type: "lightning"; htlcStatus?: SparkHtlcStatus[]; conversionFilter?: ConversionFilter };
|
|
@@ -1864,6 +1942,8 @@ export type TransferSignature = { type: "transfer"; signed: ExternalPreparedTran
|
|
|
1864
1942
|
|
|
1865
1943
|
export type TransferTarget = { type: "spark"; address: string; sparkInvoice?: string } | { type: "lightning"; bolt11: string; lnurlPay?: LnurlPayContext; feePolicy: FeePolicy; completionTimeoutSecs?: number } | { type: "coopExit"; address: string; feeQuote: SendOnchainFeeQuote; confirmationSpeed: OnchainConfirmationSpeed };
|
|
1866
1944
|
|
|
1945
|
+
export type UnilateralExitTxKind = "fanOut" | "node" | "refund" | "sweep";
|
|
1946
|
+
|
|
1867
1947
|
export type UnsignedTransferPackage = { type: "swap"; prepareTransfer: ExternalPrepareTransferRequest; targetAmounts: number[]; amountSat: number; feeSat: number } | { type: "transfer"; prepareTransfer: ExternalPrepareTransferRequest; amountSat: number; feeSat: number; target: TransferTarget } | { type: "token"; prepareTokenTransaction: ExternalPrepareTokenTransactionRequest; tokenContext: number[]; tokenIdentifier: string; amount: string; fee: string; isSwap: boolean };
|
|
1868
1948
|
|
|
1869
1949
|
export type UpdateDepositPayload = { type: "claimError"; error: DepositClaimError } | { type: "refund"; refundTxid: string; refundTx: string };
|
|
@@ -1884,7 +1964,9 @@ export class BitcoinChainServiceHandle {
|
|
|
1884
1964
|
free(): void;
|
|
1885
1965
|
[Symbol.dispose](): void;
|
|
1886
1966
|
broadcastTransaction(tx: string): Promise<void>;
|
|
1967
|
+
getAddressTxos(address: string): Promise<any>;
|
|
1887
1968
|
getAddressUtxos(address: string): Promise<any>;
|
|
1969
|
+
getOutspend(txid: string, vout: number): Promise<any>;
|
|
1888
1970
|
getTransactionHex(txid: string): Promise<any>;
|
|
1889
1971
|
getTransactionStatus(txid: string): Promise<any>;
|
|
1890
1972
|
recommendedFees(): Promise<any>;
|
|
@@ -1929,23 +2011,35 @@ export class BreezSdk {
|
|
|
1929
2011
|
parse(input: string): Promise<InputType>;
|
|
1930
2012
|
prepareLnurlPay(request: PrepareLnurlPayRequest): Promise<PrepareLnurlPayResponse>;
|
|
1931
2013
|
prepareSendPayment(request: PrepareSendPaymentRequest): Promise<PrepareSendPaymentResponse>;
|
|
2014
|
+
prepareUnilateralExit(request: PrepareUnilateralExitRequest): Promise<PrepareUnilateralExitResponse>;
|
|
1932
2015
|
publishSignedLnurlPayPackage(request: PublishSignedLnurlPayPackageRequest): Promise<PublishSignedLnurlPayResponse>;
|
|
1933
2016
|
publishSignedTransferPackage(request: PublishSignedTransferPackageRequest): Promise<PublishSignedTransferPackageResponse>;
|
|
1934
2017
|
receivePayment(request: ReceivePaymentRequest): Promise<ReceivePaymentResponse>;
|
|
1935
2018
|
recommendedFees(): Promise<RecommendedFees>;
|
|
1936
2019
|
refundDeposit(request: RefundDepositRequest): Promise<RefundDepositResponse>;
|
|
1937
|
-
refundPendingConversions(): Promise<
|
|
2020
|
+
refundPendingConversions(): Promise<RefundPendingConversionsResponse>;
|
|
1938
2021
|
registerLightningAddress(request: RegisterLightningAddressRequest): Promise<LightningAddressInfo>;
|
|
1939
2022
|
registerWebhook(request: RegisterWebhookRequest): Promise<RegisterWebhookResponse>;
|
|
1940
2023
|
removeEventListener(id: string): Promise<boolean>;
|
|
1941
2024
|
sendPayment(request: SendPaymentRequest): Promise<SendPaymentResponse>;
|
|
1942
2025
|
signMessage(request: SignMessageRequest): Promise<SignMessageResponse>;
|
|
1943
2026
|
syncWallet(request: SyncWalletRequest): Promise<SyncWalletResponse>;
|
|
2027
|
+
unilateralExit(request: UnilateralExitRequest, signer: CpfpSigner): Promise<UnilateralExitResponse>;
|
|
1944
2028
|
unregisterWebhook(request: UnregisterWebhookRequest): Promise<void>;
|
|
1945
2029
|
updateContact(request: UpdateContactRequest): Promise<Contact>;
|
|
1946
2030
|
updateUserSettings(request: UpdateUserSettingsRequest): Promise<void>;
|
|
1947
2031
|
}
|
|
1948
2032
|
|
|
2033
|
+
/**
|
|
2034
|
+
* A CPFP signer matching the `CpfpSigner` TypeScript interface.
|
|
2035
|
+
*/
|
|
2036
|
+
export class DefaultCpfpSigner {
|
|
2037
|
+
private constructor();
|
|
2038
|
+
free(): void;
|
|
2039
|
+
[Symbol.dispose](): void;
|
|
2040
|
+
signPsbt(psbt_bytes: Uint8Array): Promise<Uint8Array>;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
1949
2043
|
/**
|
|
1950
2044
|
* A JS handle to a backend's own session store (from `defaultSessionStore`),
|
|
1951
2045
|
* exposing the same `getSession` / `setSession` interface. Wrap it in a JS
|
|
@@ -2041,6 +2135,7 @@ export class ExternalSparkSignerHandle {
|
|
|
2041
2135
|
prepareTransfer(request: ExternalPrepareTransferRequest): Promise<ExternalPreparedTransfer>;
|
|
2042
2136
|
signAuthenticationChallenge(challenge: Uint8Array): Promise<EcdsaSignatureBytes>;
|
|
2043
2137
|
signFrost(jobs: ExternalFrostJob[]): Promise<ExternalFrostShareResult[]>;
|
|
2138
|
+
signLeafRefundSpend(leaf_id: ExternalTreeNodeId, sighash: Uint8Array): Promise<SchnorrSignatureBytes>;
|
|
2044
2139
|
signMessage(message: Uint8Array): Promise<EcdsaSignatureBytes>;
|
|
2045
2140
|
signSparkInvoice(request: ExternalSignSparkInvoiceRequest): Promise<ExternalSignedSparkInvoice>;
|
|
2046
2141
|
signStaticDepositRefund(request: ExternalSignStaticDepositRefundRequest): Promise<ExternalFrostSignature>;
|
|
@@ -2365,6 +2460,11 @@ export function newSharedSdkContext(config: WasmSdkContextConfig): Promise<WasmS
|
|
|
2365
2460
|
*/
|
|
2366
2461
|
export function postgresStorage(config: PostgresStorageConfig): WasmStorageConfig;
|
|
2367
2462
|
|
|
2463
|
+
/**
|
|
2464
|
+
* Creates a default CPFP signer backed by a single private key.
|
|
2465
|
+
*/
|
|
2466
|
+
export function singleKeyCpfpSigner(secret_key_bytes: Uint8Array): DefaultCpfpSigner;
|
|
2467
|
+
|
|
2368
2468
|
/**
|
|
2369
2469
|
* Runs automatically when the wasm module is instantiated. Installs the
|
|
2370
2470
|
* panic hook so Rust panics surface as readable `console.error` output
|
|
@@ -35,6 +35,16 @@ export class BitcoinChainServiceHandle {
|
|
|
35
35
|
const ret = wasm.bitcoinchainservicehandle_broadcastTransaction(this.__wbg_ptr, ptr0, len0);
|
|
36
36
|
return ret;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @param {string} address
|
|
40
|
+
* @returns {Promise<any>}
|
|
41
|
+
*/
|
|
42
|
+
getAddressTxos(address) {
|
|
43
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
44
|
+
const len0 = WASM_VECTOR_LEN;
|
|
45
|
+
const ret = wasm.bitcoinchainservicehandle_getAddressTxos(this.__wbg_ptr, ptr0, len0);
|
|
46
|
+
return ret;
|
|
47
|
+
}
|
|
38
48
|
/**
|
|
39
49
|
* @param {string} address
|
|
40
50
|
* @returns {Promise<any>}
|
|
@@ -45,6 +55,17 @@ export class BitcoinChainServiceHandle {
|
|
|
45
55
|
const ret = wasm.bitcoinchainservicehandle_getAddressUtxos(this.__wbg_ptr, ptr0, len0);
|
|
46
56
|
return ret;
|
|
47
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {string} txid
|
|
60
|
+
* @param {number} vout
|
|
61
|
+
* @returns {Promise<any>}
|
|
62
|
+
*/
|
|
63
|
+
getOutspend(txid, vout) {
|
|
64
|
+
const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
65
|
+
const len0 = WASM_VECTOR_LEN;
|
|
66
|
+
const ret = wasm.bitcoinchainservicehandle_getOutspend(this.__wbg_ptr, ptr0, len0, vout);
|
|
67
|
+
return ret;
|
|
68
|
+
}
|
|
48
69
|
/**
|
|
49
70
|
* @param {string} txid
|
|
50
71
|
* @returns {Promise<any>}
|
|
@@ -368,6 +389,14 @@ export class BreezSdk {
|
|
|
368
389
|
const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
|
|
369
390
|
return ret;
|
|
370
391
|
}
|
|
392
|
+
/**
|
|
393
|
+
* @param {PrepareUnilateralExitRequest} request
|
|
394
|
+
* @returns {Promise<PrepareUnilateralExitResponse>}
|
|
395
|
+
*/
|
|
396
|
+
prepareUnilateralExit(request) {
|
|
397
|
+
const ret = wasm.breezsdk_prepareUnilateralExit(this.__wbg_ptr, request);
|
|
398
|
+
return ret;
|
|
399
|
+
}
|
|
371
400
|
/**
|
|
372
401
|
* @param {PublishSignedLnurlPayPackageRequest} request
|
|
373
402
|
* @returns {Promise<PublishSignedLnurlPayResponse>}
|
|
@@ -408,7 +437,7 @@ export class BreezSdk {
|
|
|
408
437
|
return ret;
|
|
409
438
|
}
|
|
410
439
|
/**
|
|
411
|
-
* @returns {Promise<
|
|
440
|
+
* @returns {Promise<RefundPendingConversionsResponse>}
|
|
412
441
|
*/
|
|
413
442
|
refundPendingConversions() {
|
|
414
443
|
const ret = wasm.breezsdk_refundPendingConversions(this.__wbg_ptr);
|
|
@@ -464,6 +493,15 @@ export class BreezSdk {
|
|
|
464
493
|
const ret = wasm.breezsdk_syncWallet(this.__wbg_ptr, request);
|
|
465
494
|
return ret;
|
|
466
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* @param {UnilateralExitRequest} request
|
|
498
|
+
* @param {CpfpSigner} signer
|
|
499
|
+
* @returns {Promise<UnilateralExitResponse>}
|
|
500
|
+
*/
|
|
501
|
+
unilateralExit(request, signer) {
|
|
502
|
+
const ret = wasm.breezsdk_unilateralExit(this.__wbg_ptr, request, signer);
|
|
503
|
+
return ret;
|
|
504
|
+
}
|
|
467
505
|
/**
|
|
468
506
|
* @param {UnregisterWebhookRequest} request
|
|
469
507
|
* @returns {Promise<void>}
|
|
@@ -491,6 +529,39 @@ export class BreezSdk {
|
|
|
491
529
|
}
|
|
492
530
|
if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
|
|
493
531
|
|
|
532
|
+
/**
|
|
533
|
+
* A CPFP signer matching the `CpfpSigner` TypeScript interface.
|
|
534
|
+
*/
|
|
535
|
+
export class DefaultCpfpSigner {
|
|
536
|
+
static __wrap(ptr) {
|
|
537
|
+
const obj = Object.create(DefaultCpfpSigner.prototype);
|
|
538
|
+
obj.__wbg_ptr = ptr;
|
|
539
|
+
DefaultCpfpSignerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
540
|
+
return obj;
|
|
541
|
+
}
|
|
542
|
+
__destroy_into_raw() {
|
|
543
|
+
const ptr = this.__wbg_ptr;
|
|
544
|
+
this.__wbg_ptr = 0;
|
|
545
|
+
DefaultCpfpSignerFinalization.unregister(this);
|
|
546
|
+
return ptr;
|
|
547
|
+
}
|
|
548
|
+
free() {
|
|
549
|
+
const ptr = this.__destroy_into_raw();
|
|
550
|
+
wasm.__wbg_defaultcpfpsigner_free(ptr, 0);
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* @param {Uint8Array} psbt_bytes
|
|
554
|
+
* @returns {Promise<Uint8Array>}
|
|
555
|
+
*/
|
|
556
|
+
signPsbt(psbt_bytes) {
|
|
557
|
+
const ptr0 = passArray8ToWasm0(psbt_bytes, wasm.__wbindgen_malloc);
|
|
558
|
+
const len0 = WASM_VECTOR_LEN;
|
|
559
|
+
const ret = wasm.defaultcpfpsigner_signPsbt(this.__wbg_ptr, ptr0, len0);
|
|
560
|
+
return ret;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (Symbol.dispose) DefaultCpfpSigner.prototype[Symbol.dispose] = DefaultCpfpSigner.prototype.free;
|
|
564
|
+
|
|
494
565
|
/**
|
|
495
566
|
* A JS handle to a backend's own session store (from `defaultSessionStore`),
|
|
496
567
|
* exposing the same `getSession` / `setSession` interface. Wrap it in a JS
|
|
@@ -880,6 +951,17 @@ export class ExternalSparkSignerHandle {
|
|
|
880
951
|
const ret = wasm.externalsparksignerhandle_signFrost(this.__wbg_ptr, ptr0, len0);
|
|
881
952
|
return ret;
|
|
882
953
|
}
|
|
954
|
+
/**
|
|
955
|
+
* @param {ExternalTreeNodeId} leaf_id
|
|
956
|
+
* @param {Uint8Array} sighash
|
|
957
|
+
* @returns {Promise<SchnorrSignatureBytes>}
|
|
958
|
+
*/
|
|
959
|
+
signLeafRefundSpend(leaf_id, sighash) {
|
|
960
|
+
const ptr0 = passArray8ToWasm0(sighash, wasm.__wbindgen_malloc);
|
|
961
|
+
const len0 = WASM_VECTOR_LEN;
|
|
962
|
+
const ret = wasm.externalsparksignerhandle_signLeafRefundSpend(this.__wbg_ptr, leaf_id, ptr0, len0);
|
|
963
|
+
return ret;
|
|
964
|
+
}
|
|
883
965
|
/**
|
|
884
966
|
* @param {Uint8Array} message
|
|
885
967
|
* @returns {Promise<EcdsaSignatureBytes>}
|
|
@@ -1794,6 +1876,21 @@ export function postgresStorage(config) {
|
|
|
1794
1876
|
return WasmStorageConfig.__wrap(ret);
|
|
1795
1877
|
}
|
|
1796
1878
|
|
|
1879
|
+
/**
|
|
1880
|
+
* Creates a default CPFP signer backed by a single private key.
|
|
1881
|
+
* @param {Uint8Array} secret_key_bytes
|
|
1882
|
+
* @returns {DefaultCpfpSigner}
|
|
1883
|
+
*/
|
|
1884
|
+
export function singleKeyCpfpSigner(secret_key_bytes) {
|
|
1885
|
+
const ptr0 = passArray8ToWasm0(secret_key_bytes, wasm.__wbindgen_malloc);
|
|
1886
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1887
|
+
const ret = wasm.singleKeyCpfpSigner(ptr0, len0);
|
|
1888
|
+
if (ret[2]) {
|
|
1889
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1890
|
+
}
|
|
1891
|
+
return DefaultCpfpSigner.__wrap(ret[0]);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1797
1894
|
/**
|
|
1798
1895
|
* Runs automatically when the wasm module is instantiated. Installs the
|
|
1799
1896
|
* panic hook so Rust panics surface as readable `console.error` output
|
|
@@ -2329,6 +2426,18 @@ function __wbg_get_imports() {
|
|
|
2329
2426
|
const ret = Array.from(arg0);
|
|
2330
2427
|
return ret;
|
|
2331
2428
|
},
|
|
2429
|
+
__wbg_getAddressTxos_3ca1c4b39dd84911: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2430
|
+
let deferred0_0;
|
|
2431
|
+
let deferred0_1;
|
|
2432
|
+
try {
|
|
2433
|
+
deferred0_0 = arg1;
|
|
2434
|
+
deferred0_1 = arg2;
|
|
2435
|
+
const ret = arg0.getAddressTxos(getStringFromWasm0(arg1, arg2));
|
|
2436
|
+
return ret;
|
|
2437
|
+
} finally {
|
|
2438
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2439
|
+
}
|
|
2440
|
+
}, arguments); },
|
|
2332
2441
|
__wbg_getAddressUtxos_9526b6d8078b867e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2333
2442
|
let deferred0_0;
|
|
2334
2443
|
let deferred0_1;
|
|
@@ -2394,6 +2503,18 @@ function __wbg_get_imports() {
|
|
|
2394
2503
|
const ret = arg0.getLeaves();
|
|
2395
2504
|
return ret;
|
|
2396
2505
|
}, arguments); },
|
|
2506
|
+
__wbg_getOutspend_4b3c117972515790: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2507
|
+
let deferred0_0;
|
|
2508
|
+
let deferred0_1;
|
|
2509
|
+
try {
|
|
2510
|
+
deferred0_0 = arg1;
|
|
2511
|
+
deferred0_1 = arg2;
|
|
2512
|
+
const ret = arg0.getOutspend(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
2513
|
+
return ret;
|
|
2514
|
+
} finally {
|
|
2515
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2516
|
+
}
|
|
2517
|
+
}, arguments); },
|
|
2397
2518
|
__wbg_getPaymentById_6d677ada5879df99: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2398
2519
|
let deferred0_0;
|
|
2399
2520
|
let deferred0_1;
|
|
@@ -3223,12 +3344,24 @@ function __wbg_get_imports() {
|
|
|
3223
3344
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3224
3345
|
}
|
|
3225
3346
|
}, arguments); },
|
|
3347
|
+
__wbg_signLeafRefundSpend_dc0eea305a0dde9c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3348
|
+
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
3349
|
+
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
3350
|
+
const ret = arg0.signLeafRefundSpend(arg1, v0);
|
|
3351
|
+
return ret;
|
|
3352
|
+
}, arguments); },
|
|
3226
3353
|
__wbg_signMessage_80ec0b0dfc7f00ee: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3227
3354
|
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
3228
3355
|
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
3229
3356
|
const ret = arg0.signMessage(v0);
|
|
3230
3357
|
return ret;
|
|
3231
3358
|
}, arguments); },
|
|
3359
|
+
__wbg_signPsbt_625c8cbdec488cc6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3360
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
3361
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
3362
|
+
const ret = arg0.signPsbt(v0);
|
|
3363
|
+
return ret;
|
|
3364
|
+
}, arguments); },
|
|
3232
3365
|
__wbg_signSparkInvoice_cca6c7f35b5e85d2: function() { return handleError(function (arg0, arg1) {
|
|
3233
3366
|
const ret = arg0.signSparkInvoice(arg1);
|
|
3234
3367
|
return ret;
|
|
@@ -3440,62 +3573,62 @@ function __wbg_get_imports() {
|
|
|
3440
3573
|
return ret;
|
|
3441
3574
|
},
|
|
3442
3575
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3443
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3576
|
+
// 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`.
|
|
3444
3577
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575);
|
|
3445
3578
|
return ret;
|
|
3446
3579
|
},
|
|
3447
3580
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3448
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3581
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3449
3582
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
|
|
3450
3583
|
return ret;
|
|
3451
3584
|
},
|
|
3452
3585
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3453
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3586
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3454
3587
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
|
|
3455
3588
|
return ret;
|
|
3456
3589
|
},
|
|
3457
3590
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3458
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
3591
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3459
3592
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
|
|
3460
3593
|
return ret;
|
|
3461
3594
|
},
|
|
3462
3595
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3463
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3596
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3464
3597
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
|
|
3465
3598
|
return ret;
|
|
3466
3599
|
},
|
|
3467
3600
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3468
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3601
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 389, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3469
3602
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
|
|
3470
3603
|
return ret;
|
|
3471
3604
|
},
|
|
3472
3605
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3473
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx:
|
|
3606
|
+
// 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`.
|
|
3474
3607
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_6);
|
|
3475
3608
|
return ret;
|
|
3476
3609
|
},
|
|
3477
3610
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3478
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx:
|
|
3611
|
+
// 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`.
|
|
3479
3612
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_7);
|
|
3480
3613
|
return ret;
|
|
3481
3614
|
},
|
|
3482
3615
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3483
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx:
|
|
3616
|
+
// 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`.
|
|
3484
3617
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_8);
|
|
3485
3618
|
return ret;
|
|
3486
3619
|
},
|
|
3487
3620
|
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
3488
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx:
|
|
3621
|
+
// 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`.
|
|
3489
3622
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21f6855640435575_9);
|
|
3490
3623
|
return ret;
|
|
3491
3624
|
},
|
|
3492
3625
|
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
3493
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3626
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 394, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3494
3627
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
|
|
3495
3628
|
return ret;
|
|
3496
3629
|
},
|
|
3497
3630
|
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
3498
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3631
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 425, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3499
3632
|
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
|
|
3500
3633
|
return ret;
|
|
3501
3634
|
},
|
|
@@ -3680,6 +3813,9 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
|
|
|
3680
3813
|
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3681
3814
|
? { register: () => {}, unregister: () => {} }
|
|
3682
3815
|
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
|
|
3816
|
+
const DefaultCpfpSignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3817
|
+
? { register: () => {}, unregister: () => {} }
|
|
3818
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_defaultcpfpsigner_free(ptr, 1));
|
|
3683
3819
|
const DefaultSessionStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3684
3820
|
? { register: () => {}, unregister: () => {} }
|
|
3685
3821
|
: new FinalizationRegistry(ptr => wasm.__wbg_defaultsessionstore_free(ptr, 1));
|
|
Binary file
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const __wbg_bitcoinchainservicehandle_free: (a: number, b: number) => void;
|
|
5
5
|
export const __wbg_breezsdk_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_defaultcpfpsigner_free: (a: number, b: number) => void;
|
|
6
7
|
export const __wbg_externalsigners_free: (a: number, b: number) => void;
|
|
7
8
|
export const __wbg_passkeyclient_free: (a: number, b: number) => void;
|
|
8
9
|
export const __wbg_passkeylabels_free: (a: number, b: number) => void;
|
|
@@ -11,7 +12,9 @@ export const __wbg_tokenissuer_free: (a: number, b: number) => void;
|
|
|
11
12
|
export const __wbg_wasmsdkcontext_free: (a: number, b: number) => void;
|
|
12
13
|
export const __wbg_wasmstorageconfig_free: (a: number, b: number) => void;
|
|
13
14
|
export const bitcoinchainservicehandle_broadcastTransaction: (a: number, b: number, c: number) => any;
|
|
15
|
+
export const bitcoinchainservicehandle_getAddressTxos: (a: number, b: number, c: number) => any;
|
|
14
16
|
export const bitcoinchainservicehandle_getAddressUtxos: (a: number, b: number, c: number) => any;
|
|
17
|
+
export const bitcoinchainservicehandle_getOutspend: (a: number, b: number, c: number, d: number) => any;
|
|
15
18
|
export const bitcoinchainservicehandle_getTransactionHex: (a: number, b: number, c: number) => any;
|
|
16
19
|
export const bitcoinchainservicehandle_getTransactionStatus: (a: number, b: number, c: number) => any;
|
|
17
20
|
export const bitcoinchainservicehandle_recommendedFees: (a: number) => any;
|
|
@@ -50,6 +53,7 @@ export const breezsdk_optimizeLeaves: (a: number, b: any) => any;
|
|
|
50
53
|
export const breezsdk_parse: (a: number, b: number, c: number) => any;
|
|
51
54
|
export const breezsdk_prepareLnurlPay: (a: number, b: any) => any;
|
|
52
55
|
export const breezsdk_prepareSendPayment: (a: number, b: any) => any;
|
|
56
|
+
export const breezsdk_prepareUnilateralExit: (a: number, b: any) => any;
|
|
53
57
|
export const breezsdk_publishSignedLnurlPayPackage: (a: number, b: any) => any;
|
|
54
58
|
export const breezsdk_publishSignedTransferPackage: (a: number, b: any) => any;
|
|
55
59
|
export const breezsdk_receivePayment: (a: number, b: any) => any;
|
|
@@ -62,6 +66,7 @@ export const breezsdk_removeEventListener: (a: number, b: number, c: number) =>
|
|
|
62
66
|
export const breezsdk_sendPayment: (a: number, b: any) => any;
|
|
63
67
|
export const breezsdk_signMessage: (a: number, b: any) => any;
|
|
64
68
|
export const breezsdk_syncWallet: (a: number, b: any) => any;
|
|
69
|
+
export const breezsdk_unilateralExit: (a: number, b: any, c: any) => any;
|
|
65
70
|
export const breezsdk_unregisterWebhook: (a: number, b: any) => any;
|
|
66
71
|
export const breezsdk_updateContact: (a: number, b: any) => any;
|
|
67
72
|
export const breezsdk_updateUserSettings: (a: number, b: any) => any;
|
|
@@ -77,6 +82,7 @@ export const defaultPostgresStorageConfig: (a: number, b: number) => any;
|
|
|
77
82
|
export const defaultServerConfig: (a: any) => any;
|
|
78
83
|
export const defaultSessionStore: (a: number, b: any, c: number, d: number) => any;
|
|
79
84
|
export const defaultStorage: (a: number, b: number) => number;
|
|
85
|
+
export const defaultcpfpsigner_signPsbt: (a: number, b: number, c: number) => any;
|
|
80
86
|
export const defaultsessionstore_getSession: (a: number, b: number, c: number) => any;
|
|
81
87
|
export const defaultsessionstore_setSession: (a: number, b: number, c: number, d: any) => any;
|
|
82
88
|
export const externalbreezsignerhandle_decryptEcies: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
@@ -103,6 +109,7 @@ export const externalsparksignerhandle_prepareTokenTransaction: (a: number, b: a
|
|
|
103
109
|
export const externalsparksignerhandle_prepareTransfer: (a: number, b: any) => any;
|
|
104
110
|
export const externalsparksignerhandle_signAuthenticationChallenge: (a: number, b: number, c: number) => any;
|
|
105
111
|
export const externalsparksignerhandle_signFrost: (a: number, b: number, c: number) => any;
|
|
112
|
+
export const externalsparksignerhandle_signLeafRefundSpend: (a: number, b: any, c: number, d: number) => any;
|
|
106
113
|
export const externalsparksignerhandle_signMessage: (a: number, b: number, c: number) => any;
|
|
107
114
|
export const externalsparksignerhandle_signSparkInvoice: (a: number, b: any) => any;
|
|
108
115
|
export const externalsparksignerhandle_signStaticDepositRefund: (a: number, b: any) => any;
|
|
@@ -139,6 +146,7 @@ export const sdkbuilder_withSessionStore: (a: number, b: any) => number;
|
|
|
139
146
|
export const sdkbuilder_withSharedContext: (a: number, b: number) => number;
|
|
140
147
|
export const sdkbuilder_withStorage: (a: number, b: any) => number;
|
|
141
148
|
export const sdkbuilder_withStorageBackend: (a: number, b: number) => number;
|
|
149
|
+
export const singleKeyCpfpSigner: (a: number, b: number) => [number, number, number];
|
|
142
150
|
export const start: () => void;
|
|
143
151
|
export const tokenissuer_burnIssuerToken: (a: number, b: any) => any;
|
|
144
152
|
export const tokenissuer_createIssuerToken: (a: number, b: any) => any;
|
package/itest/.gitignore
ADDED