@buildonspark/spark-sdk 0.1.47 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-BGGEVUJK.js → chunk-2ENZX6LT.js} +241 -7
- package/dist/{chunk-LHRD2WT6.js → chunk-4JD4HIAN.js} +23 -3
- package/dist/chunk-BYXBJQAS.js +0 -0
- package/dist/{chunk-EAP3U3CW.js → chunk-CDLETEDT.js} +25 -17
- package/dist/{chunk-OBFKIEMP.js → chunk-TM6CHQXC.js} +1 -1
- package/dist/{chunk-NNX4OK44.js → chunk-UDK3EBE5.js} +5544 -1678
- package/dist/chunk-XYTKKLCV.js +7 -0
- package/dist/{client-D7KgLN44.d.ts → client-DKbwpcnl.d.ts} +73 -61
- package/dist/{client-CvpTRpcw.d.cts → client-Drs5Lapg.d.cts} +73 -61
- package/dist/debug.cjs +32358 -0
- package/dist/debug.d.cts +126 -0
- package/dist/debug.d.ts +126 -0
- package/dist/debug.js +21 -0
- package/dist/graphql/objects/index.d.cts +2 -5
- package/dist/graphql/objects/index.d.ts +2 -5
- package/dist/graphql/objects/index.js +2 -4
- package/dist/index.cjs +791 -474
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +32 -36
- package/dist/index.node.cjs +791 -474
- package/dist/index.node.d.cts +12 -132
- package/dist/index.node.d.ts +12 -132
- package/dist/index.node.js +31 -31
- package/dist/native/index.cjs +885 -575
- package/dist/native/index.d.cts +419 -335
- package/dist/native/index.d.ts +419 -335
- package/dist/native/index.js +857 -550
- package/dist/proto/lrc20.d.cts +1 -1
- package/dist/proto/lrc20.d.ts +1 -1
- package/dist/proto/lrc20.js +1 -1
- package/dist/proto/spark.cjs +241 -7
- package/dist/proto/spark.d.cts +1 -1
- package/dist/proto/spark.d.ts +1 -1
- package/dist/proto/spark.js +5 -1
- package/dist/proto/spark_token.cjs +22 -2
- package/dist/proto/spark_token.d.cts +8 -1
- package/dist/proto/spark_token.d.ts +8 -1
- package/dist/proto/spark_token.js +2 -2
- package/dist/{sdk-types-BGCeea0G.d.ts → sdk-types-DCIVdKUT.d.ts} +1 -1
- package/dist/{sdk-types-XUeQMLFP.d.cts → sdk-types-DJ2ve9YY.d.cts} +1 -1
- package/dist/{spark-BbUrbvZz.d.ts → spark-BUOx3U7Q.d.cts} +103 -5
- package/dist/{spark-BbUrbvZz.d.cts → spark-BUOx3U7Q.d.ts} +103 -5
- package/dist/{spark-wallet-CJkQW8pK.d.ts → spark-wallet-CF8Oxjqs.d.ts} +143 -131
- package/dist/{spark-wallet-BAFPpPtY.d.cts → spark-wallet-DOLSa3oF.d.cts} +143 -131
- package/dist/tests/test-utils.cjs +7137 -5744
- package/dist/tests/test-utils.d.cts +5 -5
- package/dist/tests/test-utils.d.ts +5 -5
- package/dist/tests/test-utils.js +16 -8
- package/dist/types/index.cjs +239 -7
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +6 -8
- package/dist/xchain-address-C2xMs9nz.d.cts +126 -0
- package/dist/xchain-address-Ckto9oEz.d.ts +126 -0
- package/package.json +5 -1
- package/src/debug.ts +13 -0
- package/src/proto/mock.ts +76 -0
- package/src/proto/spark.ts +354 -6
- package/src/proto/spark_token.ts +34 -2
- package/src/services/coop-exit.ts +6 -3
- package/src/services/deposit.ts +9 -8
- package/src/services/lightning.ts +3 -1
- package/src/services/signing.ts +10 -6
- package/src/services/token-transactions.ts +95 -80
- package/src/services/transfer.ts +88 -60
- package/src/services/tree-creation.ts +17 -9
- package/src/signer/signer.react-native.ts +3 -5
- package/src/signer/signer.ts +153 -297
- package/src/signer/types.ts +18 -7
- package/src/spark-wallet/spark-wallet.ts +170 -136
- package/src/spark-wallet/types.ts +18 -4
- package/src/tests/integration/adaptor-signature.test.ts +8 -9
- package/src/tests/integration/coop-exit.test.ts +212 -201
- package/src/tests/integration/lightning.test.ts +126 -101
- package/src/tests/integration/swap.test.ts +115 -83
- package/src/tests/integration/transfer.test.ts +287 -210
- package/src/tests/integration/tree-creation.test.ts +0 -5
- package/src/tests/test-utils.ts +10 -4
- package/src/tests/token-identifier.test.ts +6 -6
- package/src/utils/token-identifier.ts +27 -21
- package/src/utils/token-transaction-validation.ts +34 -0
- package/src/utils/token-transactions.ts +9 -5
- package/dist/chunk-GWFQ7EBA.js +0 -3773
- package/dist/chunk-HMLOC6TE.js +0 -14
- package/ios/spark_frost.kt +0 -1900
package/dist/debug.d.cts
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { B as Bech32mTokenIdentifier, a as Bech32mTokenIdentifierData, D as DecodedSparkAddressData, L as LRC_WALLET_NETWORK, b as LRC_WALLET_NETWORK_TYPE, N as Network, c as NetworkToProto, d as NetworkType, S as SparkAddressData, e as SparkAddressFormat, f as decodeBech32mTokenIdentifier, g as decodeSparkAddress, h as encodeBech32mTokenIdentifier, i as encodeSparkAddress, j as getNetwork, k as getNetworkFromAddress, l as getNetworkFromString, m as isValidPublicKey, n as isValidSparkAddress, p as protoToNetwork, o as SparkWallet, C as ConfigOptions } from './spark-wallet-DOLSa3oF.cjs';
|
|
2
|
+
import { B as BroadcastConfig, a as BroadcastResult, D as DEFAULT_FEE_SATS, F as FeeBumpTxChain, b as FeeBumpTxPackage, c as FeeRate, L as LeafInfo, T as TxChain, U as Utxo, d as addPrivateKeys, e as addPublicKeys, f as applyAdaptorToSignature, g as applyAdditiveTweakToPublicKey, h as checkIfSelectedOutputsAreAvailable, i as checkIfValidSequence, j as collectResponses, k as computeTaprootKeyNoScript, l as constructFeeBumpTx, m as constructUnilateralExitFeeBumpPackages, n as constructUnilateralExitTxs, o as createRefundTx, p as createSigningCommitment, q as createSigningNonce, r as decodeBytesToSigningCommitment, s as decodeBytesToSigningNonce, t as encodeSigningCommitmentToBytes, u as encodeSigningNonceToBytes, v as filterTokenBalanceForTokenPublicKey, w as generateAdaptorFromSignature, x as generateSignatureFromExistingAdaptor, y as getCurrentTimelock, z as getEphemeralAnchorOutput, A as getLatestDepositTxId, C as getNextTransactionSequence, E as getP2TRAddressFromPkScript, G as getP2TRAddressFromPublicKey, H as getP2TRScriptFromPublicKey, I as getP2WPKHAddressFromPublicKey, J as getRandomSigningNonce, K as getSigHashFromTx, M as getSigningCommitmentFromNonce, N as getSparkAddressFromTaproot, O as getTransactionSequence, P as getTransferPackageSigningPayload, Q as getTxFromRawTxBytes, R as getTxFromRawTxHex, S as getTxId, V as getTxIdNoReverse, W as isEphemeralAnchorOutput, X as isTxBroadcast, Y as lastKeyWithTarget, Z as maybeApplyFee, _ as proofOfPossessionMessageHashForDepositAddress, $ as subtractPrivateKeys, a0 as subtractPublicKeys, a1 as sumAvailableTokens, a2 as sumOfPrivateKeys, a3 as validateOutboundAdaptorSignature } from './xchain-address-C2xMs9nz.cjs';
|
|
3
|
+
import { K as VerifiableSecretShare, M as bigIntToPrivateKey, N as computerLagrangeCoefficients, O as evaluatePolynomial, Q as fieldDiv, W as generatePolynomialForSecretSharing, X as getRandomBigInt, Y as modInverse, Z as recoverSecret, _ as splitSecret, $ as splitSecretWithProofs, a0 as validateShare } from './client-Drs5Lapg.cjs';
|
|
4
|
+
import './spark-BUOx3U7Q.cjs';
|
|
5
|
+
import '@bufbuild/protobuf/wire';
|
|
6
|
+
import 'nice-grpc-common';
|
|
7
|
+
import '@buildonspark/lrc20-sdk';
|
|
8
|
+
import '@scure/btc-signer';
|
|
9
|
+
import 'bitcoinjs-lib';
|
|
10
|
+
import 'nice-grpc';
|
|
11
|
+
import 'nice-grpc-web';
|
|
12
|
+
import './proto/spark_token.cjs';
|
|
13
|
+
import 'eventemitter3';
|
|
14
|
+
import './sdk-types-DJ2ve9YY.cjs';
|
|
15
|
+
import '@scure/btc-signer/psbt';
|
|
16
|
+
import '@lightsparkdev/core';
|
|
17
|
+
import '@scure/bip32';
|
|
18
|
+
import './types-BADxR3bm.cjs';
|
|
19
|
+
|
|
20
|
+
declare const utils_Bech32mTokenIdentifier: typeof Bech32mTokenIdentifier;
|
|
21
|
+
declare const utils_Bech32mTokenIdentifierData: typeof Bech32mTokenIdentifierData;
|
|
22
|
+
declare const utils_BroadcastConfig: typeof BroadcastConfig;
|
|
23
|
+
declare const utils_BroadcastResult: typeof BroadcastResult;
|
|
24
|
+
declare const utils_DEFAULT_FEE_SATS: typeof DEFAULT_FEE_SATS;
|
|
25
|
+
declare const utils_DecodedSparkAddressData: typeof DecodedSparkAddressData;
|
|
26
|
+
declare const utils_FeeBumpTxChain: typeof FeeBumpTxChain;
|
|
27
|
+
declare const utils_FeeBumpTxPackage: typeof FeeBumpTxPackage;
|
|
28
|
+
declare const utils_FeeRate: typeof FeeRate;
|
|
29
|
+
declare const utils_LRC_WALLET_NETWORK: typeof LRC_WALLET_NETWORK;
|
|
30
|
+
declare const utils_LRC_WALLET_NETWORK_TYPE: typeof LRC_WALLET_NETWORK_TYPE;
|
|
31
|
+
declare const utils_LeafInfo: typeof LeafInfo;
|
|
32
|
+
declare const utils_Network: typeof Network;
|
|
33
|
+
declare const utils_NetworkToProto: typeof NetworkToProto;
|
|
34
|
+
declare const utils_NetworkType: typeof NetworkType;
|
|
35
|
+
declare const utils_SparkAddressData: typeof SparkAddressData;
|
|
36
|
+
declare const utils_SparkAddressFormat: typeof SparkAddressFormat;
|
|
37
|
+
declare const utils_TxChain: typeof TxChain;
|
|
38
|
+
declare const utils_Utxo: typeof Utxo;
|
|
39
|
+
declare const utils_VerifiableSecretShare: typeof VerifiableSecretShare;
|
|
40
|
+
declare const utils_addPrivateKeys: typeof addPrivateKeys;
|
|
41
|
+
declare const utils_addPublicKeys: typeof addPublicKeys;
|
|
42
|
+
declare const utils_applyAdaptorToSignature: typeof applyAdaptorToSignature;
|
|
43
|
+
declare const utils_applyAdditiveTweakToPublicKey: typeof applyAdditiveTweakToPublicKey;
|
|
44
|
+
declare const utils_bigIntToPrivateKey: typeof bigIntToPrivateKey;
|
|
45
|
+
declare const utils_checkIfSelectedOutputsAreAvailable: typeof checkIfSelectedOutputsAreAvailable;
|
|
46
|
+
declare const utils_checkIfValidSequence: typeof checkIfValidSequence;
|
|
47
|
+
declare const utils_collectResponses: typeof collectResponses;
|
|
48
|
+
declare const utils_computeTaprootKeyNoScript: typeof computeTaprootKeyNoScript;
|
|
49
|
+
declare const utils_computerLagrangeCoefficients: typeof computerLagrangeCoefficients;
|
|
50
|
+
declare const utils_constructFeeBumpTx: typeof constructFeeBumpTx;
|
|
51
|
+
declare const utils_constructUnilateralExitFeeBumpPackages: typeof constructUnilateralExitFeeBumpPackages;
|
|
52
|
+
declare const utils_constructUnilateralExitTxs: typeof constructUnilateralExitTxs;
|
|
53
|
+
declare const utils_createRefundTx: typeof createRefundTx;
|
|
54
|
+
declare const utils_createSigningCommitment: typeof createSigningCommitment;
|
|
55
|
+
declare const utils_createSigningNonce: typeof createSigningNonce;
|
|
56
|
+
declare const utils_decodeBech32mTokenIdentifier: typeof decodeBech32mTokenIdentifier;
|
|
57
|
+
declare const utils_decodeBytesToSigningCommitment: typeof decodeBytesToSigningCommitment;
|
|
58
|
+
declare const utils_decodeBytesToSigningNonce: typeof decodeBytesToSigningNonce;
|
|
59
|
+
declare const utils_decodeSparkAddress: typeof decodeSparkAddress;
|
|
60
|
+
declare const utils_encodeBech32mTokenIdentifier: typeof encodeBech32mTokenIdentifier;
|
|
61
|
+
declare const utils_encodeSigningCommitmentToBytes: typeof encodeSigningCommitmentToBytes;
|
|
62
|
+
declare const utils_encodeSigningNonceToBytes: typeof encodeSigningNonceToBytes;
|
|
63
|
+
declare const utils_encodeSparkAddress: typeof encodeSparkAddress;
|
|
64
|
+
declare const utils_evaluatePolynomial: typeof evaluatePolynomial;
|
|
65
|
+
declare const utils_fieldDiv: typeof fieldDiv;
|
|
66
|
+
declare const utils_filterTokenBalanceForTokenPublicKey: typeof filterTokenBalanceForTokenPublicKey;
|
|
67
|
+
declare const utils_generateAdaptorFromSignature: typeof generateAdaptorFromSignature;
|
|
68
|
+
declare const utils_generatePolynomialForSecretSharing: typeof generatePolynomialForSecretSharing;
|
|
69
|
+
declare const utils_generateSignatureFromExistingAdaptor: typeof generateSignatureFromExistingAdaptor;
|
|
70
|
+
declare const utils_getCurrentTimelock: typeof getCurrentTimelock;
|
|
71
|
+
declare const utils_getEphemeralAnchorOutput: typeof getEphemeralAnchorOutput;
|
|
72
|
+
declare const utils_getLatestDepositTxId: typeof getLatestDepositTxId;
|
|
73
|
+
declare const utils_getNetwork: typeof getNetwork;
|
|
74
|
+
declare const utils_getNetworkFromAddress: typeof getNetworkFromAddress;
|
|
75
|
+
declare const utils_getNetworkFromString: typeof getNetworkFromString;
|
|
76
|
+
declare const utils_getNextTransactionSequence: typeof getNextTransactionSequence;
|
|
77
|
+
declare const utils_getP2TRAddressFromPkScript: typeof getP2TRAddressFromPkScript;
|
|
78
|
+
declare const utils_getP2TRAddressFromPublicKey: typeof getP2TRAddressFromPublicKey;
|
|
79
|
+
declare const utils_getP2TRScriptFromPublicKey: typeof getP2TRScriptFromPublicKey;
|
|
80
|
+
declare const utils_getP2WPKHAddressFromPublicKey: typeof getP2WPKHAddressFromPublicKey;
|
|
81
|
+
declare const utils_getRandomBigInt: typeof getRandomBigInt;
|
|
82
|
+
declare const utils_getRandomSigningNonce: typeof getRandomSigningNonce;
|
|
83
|
+
declare const utils_getSigHashFromTx: typeof getSigHashFromTx;
|
|
84
|
+
declare const utils_getSigningCommitmentFromNonce: typeof getSigningCommitmentFromNonce;
|
|
85
|
+
declare const utils_getSparkAddressFromTaproot: typeof getSparkAddressFromTaproot;
|
|
86
|
+
declare const utils_getTransactionSequence: typeof getTransactionSequence;
|
|
87
|
+
declare const utils_getTransferPackageSigningPayload: typeof getTransferPackageSigningPayload;
|
|
88
|
+
declare const utils_getTxFromRawTxBytes: typeof getTxFromRawTxBytes;
|
|
89
|
+
declare const utils_getTxFromRawTxHex: typeof getTxFromRawTxHex;
|
|
90
|
+
declare const utils_getTxId: typeof getTxId;
|
|
91
|
+
declare const utils_getTxIdNoReverse: typeof getTxIdNoReverse;
|
|
92
|
+
declare const utils_isEphemeralAnchorOutput: typeof isEphemeralAnchorOutput;
|
|
93
|
+
declare const utils_isTxBroadcast: typeof isTxBroadcast;
|
|
94
|
+
declare const utils_isValidPublicKey: typeof isValidPublicKey;
|
|
95
|
+
declare const utils_isValidSparkAddress: typeof isValidSparkAddress;
|
|
96
|
+
declare const utils_lastKeyWithTarget: typeof lastKeyWithTarget;
|
|
97
|
+
declare const utils_maybeApplyFee: typeof maybeApplyFee;
|
|
98
|
+
declare const utils_modInverse: typeof modInverse;
|
|
99
|
+
declare const utils_proofOfPossessionMessageHashForDepositAddress: typeof proofOfPossessionMessageHashForDepositAddress;
|
|
100
|
+
declare const utils_protoToNetwork: typeof protoToNetwork;
|
|
101
|
+
declare const utils_recoverSecret: typeof recoverSecret;
|
|
102
|
+
declare const utils_splitSecret: typeof splitSecret;
|
|
103
|
+
declare const utils_splitSecretWithProofs: typeof splitSecretWithProofs;
|
|
104
|
+
declare const utils_subtractPrivateKeys: typeof subtractPrivateKeys;
|
|
105
|
+
declare const utils_subtractPublicKeys: typeof subtractPublicKeys;
|
|
106
|
+
declare const utils_sumAvailableTokens: typeof sumAvailableTokens;
|
|
107
|
+
declare const utils_sumOfPrivateKeys: typeof sumOfPrivateKeys;
|
|
108
|
+
declare const utils_validateOutboundAdaptorSignature: typeof validateOutboundAdaptorSignature;
|
|
109
|
+
declare const utils_validateShare: typeof validateShare;
|
|
110
|
+
declare namespace utils {
|
|
111
|
+
export { utils_Bech32mTokenIdentifier as Bech32mTokenIdentifier, utils_Bech32mTokenIdentifierData as Bech32mTokenIdentifierData, utils_BroadcastConfig as BroadcastConfig, utils_BroadcastResult as BroadcastResult, utils_DEFAULT_FEE_SATS as DEFAULT_FEE_SATS, utils_DecodedSparkAddressData as DecodedSparkAddressData, utils_FeeBumpTxChain as FeeBumpTxChain, utils_FeeBumpTxPackage as FeeBumpTxPackage, utils_FeeRate as FeeRate, utils_LRC_WALLET_NETWORK as LRC_WALLET_NETWORK, utils_LRC_WALLET_NETWORK_TYPE as LRC_WALLET_NETWORK_TYPE, utils_LeafInfo as LeafInfo, utils_Network as Network, utils_NetworkToProto as NetworkToProto, utils_NetworkType as NetworkType, utils_SparkAddressData as SparkAddressData, utils_SparkAddressFormat as SparkAddressFormat, utils_TxChain as TxChain, utils_Utxo as Utxo, utils_VerifiableSecretShare as VerifiableSecretShare, utils_addPrivateKeys as addPrivateKeys, utils_addPublicKeys as addPublicKeys, utils_applyAdaptorToSignature as applyAdaptorToSignature, utils_applyAdditiveTweakToPublicKey as applyAdditiveTweakToPublicKey, utils_bigIntToPrivateKey as bigIntToPrivateKey, utils_checkIfSelectedOutputsAreAvailable as checkIfSelectedOutputsAreAvailable, utils_checkIfValidSequence as checkIfValidSequence, utils_collectResponses as collectResponses, utils_computeTaprootKeyNoScript as computeTaprootKeyNoScript, utils_computerLagrangeCoefficients as computerLagrangeCoefficients, utils_constructFeeBumpTx as constructFeeBumpTx, utils_constructUnilateralExitFeeBumpPackages as constructUnilateralExitFeeBumpPackages, utils_constructUnilateralExitTxs as constructUnilateralExitTxs, utils_createRefundTx as createRefundTx, utils_createSigningCommitment as createSigningCommitment, utils_createSigningNonce as createSigningNonce, utils_decodeBech32mTokenIdentifier as decodeBech32mTokenIdentifier, utils_decodeBytesToSigningCommitment as decodeBytesToSigningCommitment, utils_decodeBytesToSigningNonce as decodeBytesToSigningNonce, utils_decodeSparkAddress as decodeSparkAddress, utils_encodeBech32mTokenIdentifier as encodeBech32mTokenIdentifier, utils_encodeSigningCommitmentToBytes as encodeSigningCommitmentToBytes, utils_encodeSigningNonceToBytes as encodeSigningNonceToBytes, utils_encodeSparkAddress as encodeSparkAddress, utils_evaluatePolynomial as evaluatePolynomial, utils_fieldDiv as fieldDiv, utils_filterTokenBalanceForTokenPublicKey as filterTokenBalanceForTokenPublicKey, utils_generateAdaptorFromSignature as generateAdaptorFromSignature, utils_generatePolynomialForSecretSharing as generatePolynomialForSecretSharing, utils_generateSignatureFromExistingAdaptor as generateSignatureFromExistingAdaptor, utils_getCurrentTimelock as getCurrentTimelock, utils_getEphemeralAnchorOutput as getEphemeralAnchorOutput, utils_getLatestDepositTxId as getLatestDepositTxId, utils_getNetwork as getNetwork, utils_getNetworkFromAddress as getNetworkFromAddress, utils_getNetworkFromString as getNetworkFromString, utils_getNextTransactionSequence as getNextTransactionSequence, utils_getP2TRAddressFromPkScript as getP2TRAddressFromPkScript, utils_getP2TRAddressFromPublicKey as getP2TRAddressFromPublicKey, utils_getP2TRScriptFromPublicKey as getP2TRScriptFromPublicKey, utils_getP2WPKHAddressFromPublicKey as getP2WPKHAddressFromPublicKey, utils_getRandomBigInt as getRandomBigInt, utils_getRandomSigningNonce as getRandomSigningNonce, utils_getSigHashFromTx as getSigHashFromTx, utils_getSigningCommitmentFromNonce as getSigningCommitmentFromNonce, utils_getSparkAddressFromTaproot as getSparkAddressFromTaproot, utils_getTransactionSequence as getTransactionSequence, utils_getTransferPackageSigningPayload as getTransferPackageSigningPayload, utils_getTxFromRawTxBytes as getTxFromRawTxBytes, utils_getTxFromRawTxHex as getTxFromRawTxHex, utils_getTxId as getTxId, utils_getTxIdNoReverse as getTxIdNoReverse, utils_isEphemeralAnchorOutput as isEphemeralAnchorOutput, utils_isTxBroadcast as isTxBroadcast, utils_isValidPublicKey as isValidPublicKey, utils_isValidSparkAddress as isValidSparkAddress, utils_lastKeyWithTarget as lastKeyWithTarget, utils_maybeApplyFee as maybeApplyFee, utils_modInverse as modInverse, utils_proofOfPossessionMessageHashForDepositAddress as proofOfPossessionMessageHashForDepositAddress, utils_protoToNetwork as protoToNetwork, utils_recoverSecret as recoverSecret, utils_splitSecret as splitSecret, utils_splitSecretWithProofs as splitSecretWithProofs, utils_subtractPrivateKeys as subtractPrivateKeys, utils_subtractPublicKeys as subtractPublicKeys, utils_sumAvailableTokens as sumAvailableTokens, utils_sumOfPrivateKeys as sumOfPrivateKeys, utils_validateOutboundAdaptorSignature as validateOutboundAdaptorSignature, utils_validateShare as validateShare };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare const s: {
|
|
115
|
+
SparkWallet: typeof SparkWallet;
|
|
116
|
+
WalletConfig: {
|
|
117
|
+
LOCAL: Required<ConfigOptions>;
|
|
118
|
+
LOCAL_SCHNORR: Required<ConfigOptions>;
|
|
119
|
+
LOCAL_ECDSA: Required<ConfigOptions>;
|
|
120
|
+
REGTEST: Required<ConfigOptions>;
|
|
121
|
+
MAINNET: Required<ConfigOptions>;
|
|
122
|
+
};
|
|
123
|
+
utils: typeof utils;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export { s };
|
package/dist/debug.d.ts
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { B as Bech32mTokenIdentifier, a as Bech32mTokenIdentifierData, D as DecodedSparkAddressData, L as LRC_WALLET_NETWORK, b as LRC_WALLET_NETWORK_TYPE, N as Network, c as NetworkToProto, d as NetworkType, S as SparkAddressData, e as SparkAddressFormat, f as decodeBech32mTokenIdentifier, g as decodeSparkAddress, h as encodeBech32mTokenIdentifier, i as encodeSparkAddress, j as getNetwork, k as getNetworkFromAddress, l as getNetworkFromString, m as isValidPublicKey, n as isValidSparkAddress, p as protoToNetwork, o as SparkWallet, C as ConfigOptions } from './spark-wallet-CF8Oxjqs.js';
|
|
2
|
+
import { B as BroadcastConfig, a as BroadcastResult, D as DEFAULT_FEE_SATS, F as FeeBumpTxChain, b as FeeBumpTxPackage, c as FeeRate, L as LeafInfo, T as TxChain, U as Utxo, d as addPrivateKeys, e as addPublicKeys, f as applyAdaptorToSignature, g as applyAdditiveTweakToPublicKey, h as checkIfSelectedOutputsAreAvailable, i as checkIfValidSequence, j as collectResponses, k as computeTaprootKeyNoScript, l as constructFeeBumpTx, m as constructUnilateralExitFeeBumpPackages, n as constructUnilateralExitTxs, o as createRefundTx, p as createSigningCommitment, q as createSigningNonce, r as decodeBytesToSigningCommitment, s as decodeBytesToSigningNonce, t as encodeSigningCommitmentToBytes, u as encodeSigningNonceToBytes, v as filterTokenBalanceForTokenPublicKey, w as generateAdaptorFromSignature, x as generateSignatureFromExistingAdaptor, y as getCurrentTimelock, z as getEphemeralAnchorOutput, A as getLatestDepositTxId, C as getNextTransactionSequence, E as getP2TRAddressFromPkScript, G as getP2TRAddressFromPublicKey, H as getP2TRScriptFromPublicKey, I as getP2WPKHAddressFromPublicKey, J as getRandomSigningNonce, K as getSigHashFromTx, M as getSigningCommitmentFromNonce, N as getSparkAddressFromTaproot, O as getTransactionSequence, P as getTransferPackageSigningPayload, Q as getTxFromRawTxBytes, R as getTxFromRawTxHex, S as getTxId, V as getTxIdNoReverse, W as isEphemeralAnchorOutput, X as isTxBroadcast, Y as lastKeyWithTarget, Z as maybeApplyFee, _ as proofOfPossessionMessageHashForDepositAddress, $ as subtractPrivateKeys, a0 as subtractPublicKeys, a1 as sumAvailableTokens, a2 as sumOfPrivateKeys, a3 as validateOutboundAdaptorSignature } from './xchain-address-Ckto9oEz.js';
|
|
3
|
+
import { K as VerifiableSecretShare, M as bigIntToPrivateKey, N as computerLagrangeCoefficients, O as evaluatePolynomial, Q as fieldDiv, W as generatePolynomialForSecretSharing, X as getRandomBigInt, Y as modInverse, Z as recoverSecret, _ as splitSecret, $ as splitSecretWithProofs, a0 as validateShare } from './client-DKbwpcnl.js';
|
|
4
|
+
import './spark-BUOx3U7Q.js';
|
|
5
|
+
import '@bufbuild/protobuf/wire';
|
|
6
|
+
import 'nice-grpc-common';
|
|
7
|
+
import '@buildonspark/lrc20-sdk';
|
|
8
|
+
import '@scure/btc-signer';
|
|
9
|
+
import 'bitcoinjs-lib';
|
|
10
|
+
import 'nice-grpc';
|
|
11
|
+
import 'nice-grpc-web';
|
|
12
|
+
import './proto/spark_token.js';
|
|
13
|
+
import 'eventemitter3';
|
|
14
|
+
import './sdk-types-DCIVdKUT.js';
|
|
15
|
+
import '@scure/btc-signer/psbt';
|
|
16
|
+
import '@lightsparkdev/core';
|
|
17
|
+
import '@scure/bip32';
|
|
18
|
+
import './types-BADxR3bm.js';
|
|
19
|
+
|
|
20
|
+
declare const utils_Bech32mTokenIdentifier: typeof Bech32mTokenIdentifier;
|
|
21
|
+
declare const utils_Bech32mTokenIdentifierData: typeof Bech32mTokenIdentifierData;
|
|
22
|
+
declare const utils_BroadcastConfig: typeof BroadcastConfig;
|
|
23
|
+
declare const utils_BroadcastResult: typeof BroadcastResult;
|
|
24
|
+
declare const utils_DEFAULT_FEE_SATS: typeof DEFAULT_FEE_SATS;
|
|
25
|
+
declare const utils_DecodedSparkAddressData: typeof DecodedSparkAddressData;
|
|
26
|
+
declare const utils_FeeBumpTxChain: typeof FeeBumpTxChain;
|
|
27
|
+
declare const utils_FeeBumpTxPackage: typeof FeeBumpTxPackage;
|
|
28
|
+
declare const utils_FeeRate: typeof FeeRate;
|
|
29
|
+
declare const utils_LRC_WALLET_NETWORK: typeof LRC_WALLET_NETWORK;
|
|
30
|
+
declare const utils_LRC_WALLET_NETWORK_TYPE: typeof LRC_WALLET_NETWORK_TYPE;
|
|
31
|
+
declare const utils_LeafInfo: typeof LeafInfo;
|
|
32
|
+
declare const utils_Network: typeof Network;
|
|
33
|
+
declare const utils_NetworkToProto: typeof NetworkToProto;
|
|
34
|
+
declare const utils_NetworkType: typeof NetworkType;
|
|
35
|
+
declare const utils_SparkAddressData: typeof SparkAddressData;
|
|
36
|
+
declare const utils_SparkAddressFormat: typeof SparkAddressFormat;
|
|
37
|
+
declare const utils_TxChain: typeof TxChain;
|
|
38
|
+
declare const utils_Utxo: typeof Utxo;
|
|
39
|
+
declare const utils_VerifiableSecretShare: typeof VerifiableSecretShare;
|
|
40
|
+
declare const utils_addPrivateKeys: typeof addPrivateKeys;
|
|
41
|
+
declare const utils_addPublicKeys: typeof addPublicKeys;
|
|
42
|
+
declare const utils_applyAdaptorToSignature: typeof applyAdaptorToSignature;
|
|
43
|
+
declare const utils_applyAdditiveTweakToPublicKey: typeof applyAdditiveTweakToPublicKey;
|
|
44
|
+
declare const utils_bigIntToPrivateKey: typeof bigIntToPrivateKey;
|
|
45
|
+
declare const utils_checkIfSelectedOutputsAreAvailable: typeof checkIfSelectedOutputsAreAvailable;
|
|
46
|
+
declare const utils_checkIfValidSequence: typeof checkIfValidSequence;
|
|
47
|
+
declare const utils_collectResponses: typeof collectResponses;
|
|
48
|
+
declare const utils_computeTaprootKeyNoScript: typeof computeTaprootKeyNoScript;
|
|
49
|
+
declare const utils_computerLagrangeCoefficients: typeof computerLagrangeCoefficients;
|
|
50
|
+
declare const utils_constructFeeBumpTx: typeof constructFeeBumpTx;
|
|
51
|
+
declare const utils_constructUnilateralExitFeeBumpPackages: typeof constructUnilateralExitFeeBumpPackages;
|
|
52
|
+
declare const utils_constructUnilateralExitTxs: typeof constructUnilateralExitTxs;
|
|
53
|
+
declare const utils_createRefundTx: typeof createRefundTx;
|
|
54
|
+
declare const utils_createSigningCommitment: typeof createSigningCommitment;
|
|
55
|
+
declare const utils_createSigningNonce: typeof createSigningNonce;
|
|
56
|
+
declare const utils_decodeBech32mTokenIdentifier: typeof decodeBech32mTokenIdentifier;
|
|
57
|
+
declare const utils_decodeBytesToSigningCommitment: typeof decodeBytesToSigningCommitment;
|
|
58
|
+
declare const utils_decodeBytesToSigningNonce: typeof decodeBytesToSigningNonce;
|
|
59
|
+
declare const utils_decodeSparkAddress: typeof decodeSparkAddress;
|
|
60
|
+
declare const utils_encodeBech32mTokenIdentifier: typeof encodeBech32mTokenIdentifier;
|
|
61
|
+
declare const utils_encodeSigningCommitmentToBytes: typeof encodeSigningCommitmentToBytes;
|
|
62
|
+
declare const utils_encodeSigningNonceToBytes: typeof encodeSigningNonceToBytes;
|
|
63
|
+
declare const utils_encodeSparkAddress: typeof encodeSparkAddress;
|
|
64
|
+
declare const utils_evaluatePolynomial: typeof evaluatePolynomial;
|
|
65
|
+
declare const utils_fieldDiv: typeof fieldDiv;
|
|
66
|
+
declare const utils_filterTokenBalanceForTokenPublicKey: typeof filterTokenBalanceForTokenPublicKey;
|
|
67
|
+
declare const utils_generateAdaptorFromSignature: typeof generateAdaptorFromSignature;
|
|
68
|
+
declare const utils_generatePolynomialForSecretSharing: typeof generatePolynomialForSecretSharing;
|
|
69
|
+
declare const utils_generateSignatureFromExistingAdaptor: typeof generateSignatureFromExistingAdaptor;
|
|
70
|
+
declare const utils_getCurrentTimelock: typeof getCurrentTimelock;
|
|
71
|
+
declare const utils_getEphemeralAnchorOutput: typeof getEphemeralAnchorOutput;
|
|
72
|
+
declare const utils_getLatestDepositTxId: typeof getLatestDepositTxId;
|
|
73
|
+
declare const utils_getNetwork: typeof getNetwork;
|
|
74
|
+
declare const utils_getNetworkFromAddress: typeof getNetworkFromAddress;
|
|
75
|
+
declare const utils_getNetworkFromString: typeof getNetworkFromString;
|
|
76
|
+
declare const utils_getNextTransactionSequence: typeof getNextTransactionSequence;
|
|
77
|
+
declare const utils_getP2TRAddressFromPkScript: typeof getP2TRAddressFromPkScript;
|
|
78
|
+
declare const utils_getP2TRAddressFromPublicKey: typeof getP2TRAddressFromPublicKey;
|
|
79
|
+
declare const utils_getP2TRScriptFromPublicKey: typeof getP2TRScriptFromPublicKey;
|
|
80
|
+
declare const utils_getP2WPKHAddressFromPublicKey: typeof getP2WPKHAddressFromPublicKey;
|
|
81
|
+
declare const utils_getRandomBigInt: typeof getRandomBigInt;
|
|
82
|
+
declare const utils_getRandomSigningNonce: typeof getRandomSigningNonce;
|
|
83
|
+
declare const utils_getSigHashFromTx: typeof getSigHashFromTx;
|
|
84
|
+
declare const utils_getSigningCommitmentFromNonce: typeof getSigningCommitmentFromNonce;
|
|
85
|
+
declare const utils_getSparkAddressFromTaproot: typeof getSparkAddressFromTaproot;
|
|
86
|
+
declare const utils_getTransactionSequence: typeof getTransactionSequence;
|
|
87
|
+
declare const utils_getTransferPackageSigningPayload: typeof getTransferPackageSigningPayload;
|
|
88
|
+
declare const utils_getTxFromRawTxBytes: typeof getTxFromRawTxBytes;
|
|
89
|
+
declare const utils_getTxFromRawTxHex: typeof getTxFromRawTxHex;
|
|
90
|
+
declare const utils_getTxId: typeof getTxId;
|
|
91
|
+
declare const utils_getTxIdNoReverse: typeof getTxIdNoReverse;
|
|
92
|
+
declare const utils_isEphemeralAnchorOutput: typeof isEphemeralAnchorOutput;
|
|
93
|
+
declare const utils_isTxBroadcast: typeof isTxBroadcast;
|
|
94
|
+
declare const utils_isValidPublicKey: typeof isValidPublicKey;
|
|
95
|
+
declare const utils_isValidSparkAddress: typeof isValidSparkAddress;
|
|
96
|
+
declare const utils_lastKeyWithTarget: typeof lastKeyWithTarget;
|
|
97
|
+
declare const utils_maybeApplyFee: typeof maybeApplyFee;
|
|
98
|
+
declare const utils_modInverse: typeof modInverse;
|
|
99
|
+
declare const utils_proofOfPossessionMessageHashForDepositAddress: typeof proofOfPossessionMessageHashForDepositAddress;
|
|
100
|
+
declare const utils_protoToNetwork: typeof protoToNetwork;
|
|
101
|
+
declare const utils_recoverSecret: typeof recoverSecret;
|
|
102
|
+
declare const utils_splitSecret: typeof splitSecret;
|
|
103
|
+
declare const utils_splitSecretWithProofs: typeof splitSecretWithProofs;
|
|
104
|
+
declare const utils_subtractPrivateKeys: typeof subtractPrivateKeys;
|
|
105
|
+
declare const utils_subtractPublicKeys: typeof subtractPublicKeys;
|
|
106
|
+
declare const utils_sumAvailableTokens: typeof sumAvailableTokens;
|
|
107
|
+
declare const utils_sumOfPrivateKeys: typeof sumOfPrivateKeys;
|
|
108
|
+
declare const utils_validateOutboundAdaptorSignature: typeof validateOutboundAdaptorSignature;
|
|
109
|
+
declare const utils_validateShare: typeof validateShare;
|
|
110
|
+
declare namespace utils {
|
|
111
|
+
export { utils_Bech32mTokenIdentifier as Bech32mTokenIdentifier, utils_Bech32mTokenIdentifierData as Bech32mTokenIdentifierData, utils_BroadcastConfig as BroadcastConfig, utils_BroadcastResult as BroadcastResult, utils_DEFAULT_FEE_SATS as DEFAULT_FEE_SATS, utils_DecodedSparkAddressData as DecodedSparkAddressData, utils_FeeBumpTxChain as FeeBumpTxChain, utils_FeeBumpTxPackage as FeeBumpTxPackage, utils_FeeRate as FeeRate, utils_LRC_WALLET_NETWORK as LRC_WALLET_NETWORK, utils_LRC_WALLET_NETWORK_TYPE as LRC_WALLET_NETWORK_TYPE, utils_LeafInfo as LeafInfo, utils_Network as Network, utils_NetworkToProto as NetworkToProto, utils_NetworkType as NetworkType, utils_SparkAddressData as SparkAddressData, utils_SparkAddressFormat as SparkAddressFormat, utils_TxChain as TxChain, utils_Utxo as Utxo, utils_VerifiableSecretShare as VerifiableSecretShare, utils_addPrivateKeys as addPrivateKeys, utils_addPublicKeys as addPublicKeys, utils_applyAdaptorToSignature as applyAdaptorToSignature, utils_applyAdditiveTweakToPublicKey as applyAdditiveTweakToPublicKey, utils_bigIntToPrivateKey as bigIntToPrivateKey, utils_checkIfSelectedOutputsAreAvailable as checkIfSelectedOutputsAreAvailable, utils_checkIfValidSequence as checkIfValidSequence, utils_collectResponses as collectResponses, utils_computeTaprootKeyNoScript as computeTaprootKeyNoScript, utils_computerLagrangeCoefficients as computerLagrangeCoefficients, utils_constructFeeBumpTx as constructFeeBumpTx, utils_constructUnilateralExitFeeBumpPackages as constructUnilateralExitFeeBumpPackages, utils_constructUnilateralExitTxs as constructUnilateralExitTxs, utils_createRefundTx as createRefundTx, utils_createSigningCommitment as createSigningCommitment, utils_createSigningNonce as createSigningNonce, utils_decodeBech32mTokenIdentifier as decodeBech32mTokenIdentifier, utils_decodeBytesToSigningCommitment as decodeBytesToSigningCommitment, utils_decodeBytesToSigningNonce as decodeBytesToSigningNonce, utils_decodeSparkAddress as decodeSparkAddress, utils_encodeBech32mTokenIdentifier as encodeBech32mTokenIdentifier, utils_encodeSigningCommitmentToBytes as encodeSigningCommitmentToBytes, utils_encodeSigningNonceToBytes as encodeSigningNonceToBytes, utils_encodeSparkAddress as encodeSparkAddress, utils_evaluatePolynomial as evaluatePolynomial, utils_fieldDiv as fieldDiv, utils_filterTokenBalanceForTokenPublicKey as filterTokenBalanceForTokenPublicKey, utils_generateAdaptorFromSignature as generateAdaptorFromSignature, utils_generatePolynomialForSecretSharing as generatePolynomialForSecretSharing, utils_generateSignatureFromExistingAdaptor as generateSignatureFromExistingAdaptor, utils_getCurrentTimelock as getCurrentTimelock, utils_getEphemeralAnchorOutput as getEphemeralAnchorOutput, utils_getLatestDepositTxId as getLatestDepositTxId, utils_getNetwork as getNetwork, utils_getNetworkFromAddress as getNetworkFromAddress, utils_getNetworkFromString as getNetworkFromString, utils_getNextTransactionSequence as getNextTransactionSequence, utils_getP2TRAddressFromPkScript as getP2TRAddressFromPkScript, utils_getP2TRAddressFromPublicKey as getP2TRAddressFromPublicKey, utils_getP2TRScriptFromPublicKey as getP2TRScriptFromPublicKey, utils_getP2WPKHAddressFromPublicKey as getP2WPKHAddressFromPublicKey, utils_getRandomBigInt as getRandomBigInt, utils_getRandomSigningNonce as getRandomSigningNonce, utils_getSigHashFromTx as getSigHashFromTx, utils_getSigningCommitmentFromNonce as getSigningCommitmentFromNonce, utils_getSparkAddressFromTaproot as getSparkAddressFromTaproot, utils_getTransactionSequence as getTransactionSequence, utils_getTransferPackageSigningPayload as getTransferPackageSigningPayload, utils_getTxFromRawTxBytes as getTxFromRawTxBytes, utils_getTxFromRawTxHex as getTxFromRawTxHex, utils_getTxId as getTxId, utils_getTxIdNoReverse as getTxIdNoReverse, utils_isEphemeralAnchorOutput as isEphemeralAnchorOutput, utils_isTxBroadcast as isTxBroadcast, utils_isValidPublicKey as isValidPublicKey, utils_isValidSparkAddress as isValidSparkAddress, utils_lastKeyWithTarget as lastKeyWithTarget, utils_maybeApplyFee as maybeApplyFee, utils_modInverse as modInverse, utils_proofOfPossessionMessageHashForDepositAddress as proofOfPossessionMessageHashForDepositAddress, utils_protoToNetwork as protoToNetwork, utils_recoverSecret as recoverSecret, utils_splitSecret as splitSecret, utils_splitSecretWithProofs as splitSecretWithProofs, utils_subtractPrivateKeys as subtractPrivateKeys, utils_subtractPublicKeys as subtractPublicKeys, utils_sumAvailableTokens as sumAvailableTokens, utils_sumOfPrivateKeys as sumOfPrivateKeys, utils_validateOutboundAdaptorSignature as validateOutboundAdaptorSignature, utils_validateShare as validateShare };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare const s: {
|
|
115
|
+
SparkWallet: typeof SparkWallet;
|
|
116
|
+
WalletConfig: {
|
|
117
|
+
LOCAL: Required<ConfigOptions>;
|
|
118
|
+
LOCAL_SCHNORR: Required<ConfigOptions>;
|
|
119
|
+
LOCAL_ECDSA: Required<ConfigOptions>;
|
|
120
|
+
REGTEST: Required<ConfigOptions>;
|
|
121
|
+
MAINNET: Required<ConfigOptions>;
|
|
122
|
+
};
|
|
123
|
+
utils: typeof utils;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export { s };
|
package/dist/debug.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SparkWallet,
|
|
3
|
+
WalletConfig,
|
|
4
|
+
utils_exports
|
|
5
|
+
} from "./chunk-UDK3EBE5.js";
|
|
6
|
+
import "./chunk-4JD4HIAN.js";
|
|
7
|
+
import "./chunk-TM6CHQXC.js";
|
|
8
|
+
import "./chunk-CDLETEDT.js";
|
|
9
|
+
import "./chunk-2ENZX6LT.js";
|
|
10
|
+
import "./chunk-MVRQ5US7.js";
|
|
11
|
+
|
|
12
|
+
// src/debug.ts
|
|
13
|
+
var s = {
|
|
14
|
+
SparkWallet,
|
|
15
|
+
WalletConfig,
|
|
16
|
+
utils: utils_exports
|
|
17
|
+
};
|
|
18
|
+
globalThis.s = s;
|
|
19
|
+
export {
|
|
20
|
+
s
|
|
21
|
+
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { B as BitcoinNetwork, k as CurrencyAmount, P as PageInfo,
|
|
2
|
-
export { C as ClaimStaticDepositOutput, a as CompleteCoopExitInput, b as CompleteLeavesSwapInput, c as CoopExitFeeEstimate, d as CoopExitFeeEstimatesInput, e as CoopExitFeeEstimatesOutput, f as CoopExitFeeQuote, h as CoopExitFeeQuoteInput, i as CoopExitRequest, l as CurrencyUnit, E as ExitSpeed, G as GetChallengeOutput, I as Invoice, L as Leaf, m as LeavesSwapFeeEstimateOutput, o as LeavesSwapRequest, q as LightningReceiveRequest, r as LightningReceiveRequestStatus, s as LightningSendFeeEstimateInput, t as LightningSendFeeEstimateOutput, v as LightningSendRequest, w as LightningSendRequestStatus, R as RequestCoopExitInput, x as RequestLeavesSwapInput, y as RequestLightningReceiveInput, z as RequestLightningSendInput, S as SparkCoopExitRequestStatus, A as SparkLeavesSwapRequestStatus, D as SparkTransferToLeavesConnection, F as StaticDepositQuoteInput, H as StaticDepositQuoteOutput, J as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, u as getLightningSendRequestQuery } from '../../client-
|
|
1
|
+
import { B as BitcoinNetwork, k as CurrencyAmount, P as PageInfo, a8 as SspClient } from '../../client-Drs5Lapg.cjs';
|
|
2
|
+
export { C as ClaimStaticDepositOutput, a as CompleteCoopExitInput, b as CompleteLeavesSwapInput, c as CoopExitFeeEstimate, d as CoopExitFeeEstimatesInput, e as CoopExitFeeEstimatesOutput, f as CoopExitFeeQuote, h as CoopExitFeeQuoteInput, i as CoopExitRequest, l as CurrencyUnit, E as ExitSpeed, G as GetChallengeOutput, I as Invoice, L as Leaf, m as LeavesSwapFeeEstimateOutput, o as LeavesSwapRequest, q as LightningReceiveRequest, r as LightningReceiveRequestStatus, s as LightningSendFeeEstimateInput, t as LightningSendFeeEstimateOutput, v as LightningSendRequest, w as LightningSendRequestStatus, R as RequestCoopExitInput, x as RequestLeavesSwapInput, y as RequestLightningReceiveInput, z as RequestLightningSendInput, S as SparkCoopExitRequestStatus, A as SparkLeavesSwapRequestStatus, D as SparkTransferToLeavesConnection, F as StaticDepositQuoteInput, H as StaticDepositQuoteOutput, J as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, u as getLightningSendRequestQuery } from '../../client-Drs5Lapg.cjs';
|
|
3
3
|
import { Query } from '@lightsparkdev/core';
|
|
4
|
-
import '../../spark-BbUrbvZz.cjs';
|
|
5
|
-
import '@bufbuild/protobuf/wire';
|
|
6
|
-
import 'nice-grpc-common';
|
|
7
4
|
import '@buildonspark/lrc20-sdk';
|
|
8
5
|
import '@scure/btc-signer';
|
|
9
6
|
import 'bitcoinjs-lib';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { B as BitcoinNetwork, k as CurrencyAmount, P as PageInfo,
|
|
2
|
-
export { C as ClaimStaticDepositOutput, a as CompleteCoopExitInput, b as CompleteLeavesSwapInput, c as CoopExitFeeEstimate, d as CoopExitFeeEstimatesInput, e as CoopExitFeeEstimatesOutput, f as CoopExitFeeQuote, h as CoopExitFeeQuoteInput, i as CoopExitRequest, l as CurrencyUnit, E as ExitSpeed, G as GetChallengeOutput, I as Invoice, L as Leaf, m as LeavesSwapFeeEstimateOutput, o as LeavesSwapRequest, q as LightningReceiveRequest, r as LightningReceiveRequestStatus, s as LightningSendFeeEstimateInput, t as LightningSendFeeEstimateOutput, v as LightningSendRequest, w as LightningSendRequestStatus, R as RequestCoopExitInput, x as RequestLeavesSwapInput, y as RequestLightningReceiveInput, z as RequestLightningSendInput, S as SparkCoopExitRequestStatus, A as SparkLeavesSwapRequestStatus, D as SparkTransferToLeavesConnection, F as StaticDepositQuoteInput, H as StaticDepositQuoteOutput, J as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, u as getLightningSendRequestQuery } from '../../client-
|
|
1
|
+
import { B as BitcoinNetwork, k as CurrencyAmount, P as PageInfo, a8 as SspClient } from '../../client-DKbwpcnl.js';
|
|
2
|
+
export { C as ClaimStaticDepositOutput, a as CompleteCoopExitInput, b as CompleteLeavesSwapInput, c as CoopExitFeeEstimate, d as CoopExitFeeEstimatesInput, e as CoopExitFeeEstimatesOutput, f as CoopExitFeeQuote, h as CoopExitFeeQuoteInput, i as CoopExitRequest, l as CurrencyUnit, E as ExitSpeed, G as GetChallengeOutput, I as Invoice, L as Leaf, m as LeavesSwapFeeEstimateOutput, o as LeavesSwapRequest, q as LightningReceiveRequest, r as LightningReceiveRequestStatus, s as LightningSendFeeEstimateInput, t as LightningSendFeeEstimateOutput, v as LightningSendRequest, w as LightningSendRequestStatus, R as RequestCoopExitInput, x as RequestLeavesSwapInput, y as RequestLightningReceiveInput, z as RequestLightningSendInput, S as SparkCoopExitRequestStatus, A as SparkLeavesSwapRequestStatus, D as SparkTransferToLeavesConnection, F as StaticDepositQuoteInput, H as StaticDepositQuoteOutput, J as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, u as getLightningSendRequestQuery } from '../../client-DKbwpcnl.js';
|
|
3
3
|
import { Query } from '@lightsparkdev/core';
|
|
4
|
-
import '../../spark-BbUrbvZz.js';
|
|
5
|
-
import '@bufbuild/protobuf/wire';
|
|
6
|
-
import 'nice-grpc-common';
|
|
7
4
|
import '@buildonspark/lrc20-sdk';
|
|
8
5
|
import '@scure/btc-signer';
|
|
9
6
|
import 'bitcoinjs-lib';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BitcoinNetwork_default,
|
|
2
3
|
ClaimStaticDepositRequestType_default,
|
|
3
4
|
ClaimStaticDepositStatus_default,
|
|
4
5
|
CurrencyUnit_default,
|
|
@@ -17,10 +18,7 @@ import {
|
|
|
17
18
|
getLightningReceiveRequestQuery,
|
|
18
19
|
getLightningSendRequestQuery,
|
|
19
20
|
getUserRequestQuery
|
|
20
|
-
} from "../../chunk-
|
|
21
|
-
import {
|
|
22
|
-
BitcoinNetwork_default
|
|
23
|
-
} from "../../chunk-HMLOC6TE.js";
|
|
21
|
+
} from "../../chunk-CDLETEDT.js";
|
|
24
22
|
import "../../chunk-MVRQ5US7.js";
|
|
25
23
|
export {
|
|
26
24
|
BitcoinNetwork_default as BitcoinNetwork,
|