@buildonspark/spark-sdk 0.2.4 → 0.2.6
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 +22 -0
- package/dist/{chunk-3SEOTO43.js → chunk-3SPMJMUX.js} +3 -2
- package/dist/chunk-AVI5E5VT.js +66 -0
- package/dist/{chunk-WAQKYSDI.js → chunk-CQY5ML2A.js} +3 -2
- package/dist/{chunk-W4ZRBSWM.js → chunk-GUZ3WCB4.js} +466 -167
- package/dist/{client-KhNkrXz4.d.cts → client-CusuvuCe.d.cts} +199 -104
- package/dist/{client-BF4cn8F4.d.ts → client-Dn4Ld8pD.d.ts} +199 -104
- package/dist/debug.cjs +662 -336
- package/dist/debug.d.cts +9 -7
- package/dist/debug.d.ts +9 -7
- package/dist/debug.js +3 -3
- package/dist/graphql/objects/index.d.cts +6 -51
- package/dist/graphql/objects/index.d.ts +6 -51
- package/dist/graphql/objects/index.js +1 -1
- package/dist/index.cjs +713 -327
- package/dist/index.d.cts +19 -188
- package/dist/index.d.ts +19 -188
- package/dist/index.js +15 -8
- package/dist/index.node.cjs +638 -352
- package/dist/index.node.d.cts +7 -7
- package/dist/index.node.d.ts +7 -7
- package/dist/index.node.js +59 -100
- package/dist/native/index.cjs +655 -325
- package/dist/native/index.d.cts +253 -164
- package/dist/native/index.d.ts +253 -164
- package/dist/native/index.js +505 -172
- package/dist/proto/lrc20.d.cts +1 -1
- package/dist/proto/lrc20.d.ts +1 -1
- package/dist/proto/spark.d.cts +1 -1
- package/dist/proto/spark.d.ts +1 -1
- package/dist/proto/spark_token.d.cts +1 -1
- package/dist/proto/spark_token.d.ts +1 -1
- package/dist/{spark-B_7nZx6T.d.cts → spark-Cj4brrP5.d.cts} +1 -1
- package/dist/{spark-B_7nZx6T.d.ts → spark-Cj4brrP5.d.ts} +1 -1
- package/dist/{spark-wallet-C1Tr_VKI.d.ts → spark-wallet-B6YthxDI.d.ts} +61 -26
- package/dist/{spark-wallet-DG3x2obf.d.cts → spark-wallet-BbOf2P2l.d.cts} +61 -26
- package/dist/spark-wallet.node-BBk1sGS2.d.cts +12 -0
- package/dist/spark-wallet.node-Bffethig.d.ts +12 -0
- package/dist/tests/test-utils.cjs +86 -54
- package/dist/tests/test-utils.d.cts +24 -24
- package/dist/tests/test-utils.d.ts +24 -24
- package/dist/tests/test-utils.js +4 -4
- package/dist/token-transactions-0_5XMWjs.d.ts +184 -0
- package/dist/token-transactions-CD-Adb5y.d.cts +184 -0
- package/dist/types/index.cjs +3 -2
- package/dist/types/index.d.cts +3 -4
- package/dist/types/index.d.ts +3 -4
- package/dist/types/index.js +2 -2
- package/dist/{xchain-address-HBr6isnc.d.cts → xchain-address-BnKZ0-dY.d.cts} +6 -5
- package/dist/{xchain-address-BHu6CpZC.d.ts → xchain-address-Di3lu4Wy.d.ts} +6 -5
- package/package.json +7 -2
- package/src/graphql/client.ts +49 -8
- package/src/graphql/objects/SparkWalletUser.ts +1 -1
- package/src/graphql/queries/Transfers.ts +15 -0
- package/src/index.node.ts +5 -1
- package/src/index.ts +4 -1
- package/src/services/config.ts +13 -2
- package/src/services/token-transactions.ts +22 -8
- package/src/services/wallet-config.ts +22 -13
- package/src/spark-wallet/spark-wallet.browser.ts +72 -0
- package/src/spark-wallet/spark-wallet.node.ts +60 -118
- package/src/spark-wallet/spark-wallet.ts +400 -156
- package/src/tests/integration/ssp/coop-exit-validation.test.ts +233 -0
- package/src/tests/integration/ssp/coop-exit.test.ts +112 -93
- package/src/tests/integration/ssp/static-deposit-validation.test.ts +145 -0
- package/src/tests/integration/ssp/static_deposit.test.ts +453 -64
- package/src/tests/integration/ssp/transfers.test.ts +102 -0
- package/src/tests/integration/static_deposit.test.ts +92 -0
- package/src/tests/integration/transfer.test.ts +1 -1
- package/src/tests/utils/regtest-test-faucet.ts +8 -0
- package/src/tests/utils/spark-testing-wallet.ts +42 -0
- package/src/tests/utils/test-faucet.ts +6 -2
- package/src/types/sdk-types.ts +15 -0
- package/src/utils/bitcoin.ts +13 -0
- package/src/utils/token-identifier.ts +47 -4
- package/src/utils/token-transactions.ts +13 -9
- package/dist/chunk-TVUMSHWA.js +0 -7
- package/dist/sdk-types-CB9HrW5O.d.cts +0 -44
- package/dist/sdk-types-CkRNraXT.d.ts +0 -44
- package/dist/spark-wallet.node-CGxoeCpH.d.ts +0 -13
- package/dist/spark-wallet.node-CN9LoB_O.d.cts +0 -13
- package/src/graphql/queries/Transfer.ts +0 -10
package/dist/debug.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as Bech32mTokenIdentifier, n as Bech32mTokenIdentifierData, D as DecodedSparkAddressData, L as LRC_WALLET_NETWORK, k as LRC_WALLET_NETWORK_TYPE, N as Network, h as NetworkToProto, g as NetworkType, c as SparkAddressData, S as SparkAddressFormat, q as decodeBech32mTokenIdentifier, d as decodeSparkAddress, o as encodeBech32mTokenIdentifier, e as encodeSparkAddress, j as getNetwork, l as getNetworkFromAddress, m as getNetworkFromString, f as isValidPublicKey, i as isValidSparkAddress, p as protoToNetwork,
|
|
2
|
-
import {
|
|
3
|
-
import { V as VerifiableSecretShare, h as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, b as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, d as splitSecretWithProofs, v as validateShare } from './client-
|
|
4
|
-
import './spark-
|
|
1
|
+
import { B as Bech32mTokenIdentifier, n as Bech32mTokenIdentifierData, D as DecodedSparkAddressData, L as LRC_WALLET_NETWORK, k as LRC_WALLET_NETWORK_TYPE, N as Network, h as NetworkToProto, g as NetworkType, c as SparkAddressData, S as SparkAddressFormat, q as decodeBech32mTokenIdentifier, d as decodeSparkAddress, o as encodeBech32mTokenIdentifier, e as encodeSparkAddress, j as getNetwork, l as getNetworkFromAddress, r as getNetworkFromBech32mTokenIdentifier, m as getNetworkFromString, f as isValidPublicKey, i as isValidSparkAddress, p as protoToNetwork, z as SparkWallet, b as ConfigOptions } from './spark-wallet-BbOf2P2l.cjs';
|
|
2
|
+
import { ab as BroadcastConfig, ac as BroadcastResult, Q as DEFAULT_FEE_SATS, M as DIRECT_TIMELOCK_OFFSET, a9 as FeeBumpTxChain, a8 as FeeBumpTxPackage, a7 as FeeRate, O as INITIAL_DIRECT_SEQUENCE, N as INITIAL_SEQUENCE, a5 as LeafInfo, P as TEST_UNILATERAL_DIRECT_SEQUENCE, T as TEST_UNILATERAL_SEQUENCE, aa as TxChain, a6 as Utxo, q as addPrivateKeys, o as addPublicKeys, b as applyAdaptorToSignature, p as applyAdditiveTweakToPublicKey, J as checkIfSelectedOutputsAreAvailable, a1 as checkIfValidSequence, z as collectResponses, c as computeTaprootKeyNoScript, ag as constructFeeBumpTx, af as constructUnilateralExitFeeBumpPackages, ae as constructUnilateralExitTxs, _ as createConnectorRefundTransactions, X as createLeafNodeTx, V as createNodeTx, W as createNodeTxs, Y as createRefundTx, Z as createRefundTxs, S as createRootTx, F as createSigningCommitment, B as createSigningNonce, U as createSplitTx, H as decodeBytesToSigningCommitment, E as decodeBytesToSigningNonce, a2 as doesLeafNeedRefresh, G as encodeSigningCommitmentToBytes, D as encodeSigningNonceToBytes, K as filterTokenBalanceForTokenIdentifier, a as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, $ as getCurrentTimelock, a4 as getEphemeralAnchorOutput, w as getLatestDepositTxId, a3 as getNextTransactionSequence, f as getP2TRAddressFromPkScript, e as getP2TRAddressFromPublicKey, d as getP2TRScriptFromPublicKey, h as getP2WPKHAddressFromPublicKey, A as getRandomSigningNonce, k as getSigHashFromTx, C as getSigningCommitmentFromNonce, ah as getSparkAddressFromTaproot, a0 as getTransactionSequence, L as getTransferPackageSigningPayload, n as getTxEstimatedVbytesSizeByNumberOfInputsOutputs, j as getTxFromRawTxBytes, i as getTxFromRawTxHex, l as getTxId, m as getTxIdNoReverse, ad as isEphemeralAnchorOutput, x as isTxBroadcast, u as lastKeyWithTarget, R as maybeApplyFee, y as proofOfPossessionMessageHashForDepositAddress, r as subtractPrivateKeys, s as subtractPublicKeys, I as sumAvailableTokens, t as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './xchain-address-BnKZ0-dY.cjs';
|
|
3
|
+
import { V as VerifiableSecretShare, h as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, b as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, d as splitSecretWithProofs, v as validateShare } from './client-CusuvuCe.cjs';
|
|
4
|
+
import './spark-Cj4brrP5.cjs';
|
|
5
5
|
import '@bufbuild/protobuf/wire';
|
|
6
6
|
import 'nice-grpc-common';
|
|
7
7
|
import '@buildonspark/lrc20-sdk';
|
|
@@ -10,8 +10,8 @@ import 'bitcoinjs-lib';
|
|
|
10
10
|
import 'nice-grpc';
|
|
11
11
|
import 'nice-grpc-web';
|
|
12
12
|
import './proto/spark_token.cjs';
|
|
13
|
+
import '@opentelemetry/sdk-trace-base';
|
|
13
14
|
import 'eventemitter3';
|
|
14
|
-
import './sdk-types-CB9HrW5O.cjs';
|
|
15
15
|
import '@scure/btc-signer/psbt';
|
|
16
16
|
import '@lightsparkdev/core';
|
|
17
17
|
import '@scure/bip32';
|
|
@@ -76,7 +76,7 @@ declare const utils_encodeSigningNonceToBytes: typeof encodeSigningNonceToBytes;
|
|
|
76
76
|
declare const utils_encodeSparkAddress: typeof encodeSparkAddress;
|
|
77
77
|
declare const utils_evaluatePolynomial: typeof evaluatePolynomial;
|
|
78
78
|
declare const utils_fieldDiv: typeof fieldDiv;
|
|
79
|
-
declare const
|
|
79
|
+
declare const utils_filterTokenBalanceForTokenIdentifier: typeof filterTokenBalanceForTokenIdentifier;
|
|
80
80
|
declare const utils_generateAdaptorFromSignature: typeof generateAdaptorFromSignature;
|
|
81
81
|
declare const utils_generatePolynomialForSecretSharing: typeof generatePolynomialForSecretSharing;
|
|
82
82
|
declare const utils_generateSignatureFromExistingAdaptor: typeof generateSignatureFromExistingAdaptor;
|
|
@@ -85,6 +85,7 @@ declare const utils_getEphemeralAnchorOutput: typeof getEphemeralAnchorOutput;
|
|
|
85
85
|
declare const utils_getLatestDepositTxId: typeof getLatestDepositTxId;
|
|
86
86
|
declare const utils_getNetwork: typeof getNetwork;
|
|
87
87
|
declare const utils_getNetworkFromAddress: typeof getNetworkFromAddress;
|
|
88
|
+
declare const utils_getNetworkFromBech32mTokenIdentifier: typeof getNetworkFromBech32mTokenIdentifier;
|
|
88
89
|
declare const utils_getNetworkFromString: typeof getNetworkFromString;
|
|
89
90
|
declare const utils_getNextTransactionSequence: typeof getNextTransactionSequence;
|
|
90
91
|
declare const utils_getP2TRAddressFromPkScript: typeof getP2TRAddressFromPkScript;
|
|
@@ -98,6 +99,7 @@ declare const utils_getSigningCommitmentFromNonce: typeof getSigningCommitmentFr
|
|
|
98
99
|
declare const utils_getSparkAddressFromTaproot: typeof getSparkAddressFromTaproot;
|
|
99
100
|
declare const utils_getTransactionSequence: typeof getTransactionSequence;
|
|
100
101
|
declare const utils_getTransferPackageSigningPayload: typeof getTransferPackageSigningPayload;
|
|
102
|
+
declare const utils_getTxEstimatedVbytesSizeByNumberOfInputsOutputs: typeof getTxEstimatedVbytesSizeByNumberOfInputsOutputs;
|
|
101
103
|
declare const utils_getTxFromRawTxBytes: typeof getTxFromRawTxBytes;
|
|
102
104
|
declare const utils_getTxFromRawTxHex: typeof getTxFromRawTxHex;
|
|
103
105
|
declare const utils_getTxId: typeof getTxId;
|
|
@@ -121,7 +123,7 @@ declare const utils_sumOfPrivateKeys: typeof sumOfPrivateKeys;
|
|
|
121
123
|
declare const utils_validateOutboundAdaptorSignature: typeof validateOutboundAdaptorSignature;
|
|
122
124
|
declare const utils_validateShare: typeof validateShare;
|
|
123
125
|
declare namespace utils {
|
|
124
|
-
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_DIRECT_TIMELOCK_OFFSET as DIRECT_TIMELOCK_OFFSET, utils_DecodedSparkAddressData as DecodedSparkAddressData, utils_FeeBumpTxChain as FeeBumpTxChain, utils_FeeBumpTxPackage as FeeBumpTxPackage, utils_FeeRate as FeeRate, utils_INITIAL_DIRECT_SEQUENCE as INITIAL_DIRECT_SEQUENCE, utils_INITIAL_SEQUENCE as INITIAL_SEQUENCE, 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_TEST_UNILATERAL_DIRECT_SEQUENCE as TEST_UNILATERAL_DIRECT_SEQUENCE, utils_TEST_UNILATERAL_SEQUENCE as TEST_UNILATERAL_SEQUENCE, 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_createConnectorRefundTransactions as createConnectorRefundTransactions, utils_createLeafNodeTx as createLeafNodeTx, utils_createNodeTx as createNodeTx, utils_createNodeTxs as createNodeTxs, utils_createRefundTx as createRefundTx, utils_createRefundTxs as createRefundTxs, utils_createRootTx as createRootTx, utils_createSigningCommitment as createSigningCommitment, utils_createSigningNonce as createSigningNonce, utils_createSplitTx as createSplitTx, utils_decodeBech32mTokenIdentifier as decodeBech32mTokenIdentifier, utils_decodeBytesToSigningCommitment as decodeBytesToSigningCommitment, utils_decodeBytesToSigningNonce as decodeBytesToSigningNonce, utils_decodeSparkAddress as decodeSparkAddress, utils_doesLeafNeedRefresh as doesLeafNeedRefresh, utils_encodeBech32mTokenIdentifier as encodeBech32mTokenIdentifier, utils_encodeSigningCommitmentToBytes as encodeSigningCommitmentToBytes, utils_encodeSigningNonceToBytes as encodeSigningNonceToBytes, utils_encodeSparkAddress as encodeSparkAddress, utils_evaluatePolynomial as evaluatePolynomial, utils_fieldDiv as fieldDiv,
|
|
126
|
+
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_DIRECT_TIMELOCK_OFFSET as DIRECT_TIMELOCK_OFFSET, utils_DecodedSparkAddressData as DecodedSparkAddressData, utils_FeeBumpTxChain as FeeBumpTxChain, utils_FeeBumpTxPackage as FeeBumpTxPackage, utils_FeeRate as FeeRate, utils_INITIAL_DIRECT_SEQUENCE as INITIAL_DIRECT_SEQUENCE, utils_INITIAL_SEQUENCE as INITIAL_SEQUENCE, 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_TEST_UNILATERAL_DIRECT_SEQUENCE as TEST_UNILATERAL_DIRECT_SEQUENCE, utils_TEST_UNILATERAL_SEQUENCE as TEST_UNILATERAL_SEQUENCE, 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_createConnectorRefundTransactions as createConnectorRefundTransactions, utils_createLeafNodeTx as createLeafNodeTx, utils_createNodeTx as createNodeTx, utils_createNodeTxs as createNodeTxs, utils_createRefundTx as createRefundTx, utils_createRefundTxs as createRefundTxs, utils_createRootTx as createRootTx, utils_createSigningCommitment as createSigningCommitment, utils_createSigningNonce as createSigningNonce, utils_createSplitTx as createSplitTx, utils_decodeBech32mTokenIdentifier as decodeBech32mTokenIdentifier, utils_decodeBytesToSigningCommitment as decodeBytesToSigningCommitment, utils_decodeBytesToSigningNonce as decodeBytesToSigningNonce, utils_decodeSparkAddress as decodeSparkAddress, utils_doesLeafNeedRefresh as doesLeafNeedRefresh, 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_filterTokenBalanceForTokenIdentifier as filterTokenBalanceForTokenIdentifier, 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_getNetworkFromBech32mTokenIdentifier as getNetworkFromBech32mTokenIdentifier, 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_getTxEstimatedVbytesSizeByNumberOfInputsOutputs as getTxEstimatedVbytesSizeByNumberOfInputsOutputs, 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 };
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
declare const s: {
|
package/dist/debug.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as Bech32mTokenIdentifier, n as Bech32mTokenIdentifierData, D as DecodedSparkAddressData, L as LRC_WALLET_NETWORK, k as LRC_WALLET_NETWORK_TYPE, N as Network, h as NetworkToProto, g as NetworkType, c as SparkAddressData, S as SparkAddressFormat, q as decodeBech32mTokenIdentifier, d as decodeSparkAddress, o as encodeBech32mTokenIdentifier, e as encodeSparkAddress, j as getNetwork, l as getNetworkFromAddress, m as getNetworkFromString, f as isValidPublicKey, i as isValidSparkAddress, p as protoToNetwork,
|
|
2
|
-
import {
|
|
3
|
-
import { V as VerifiableSecretShare, h as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, b as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, d as splitSecretWithProofs, v as validateShare } from './client-
|
|
4
|
-
import './spark-
|
|
1
|
+
import { B as Bech32mTokenIdentifier, n as Bech32mTokenIdentifierData, D as DecodedSparkAddressData, L as LRC_WALLET_NETWORK, k as LRC_WALLET_NETWORK_TYPE, N as Network, h as NetworkToProto, g as NetworkType, c as SparkAddressData, S as SparkAddressFormat, q as decodeBech32mTokenIdentifier, d as decodeSparkAddress, o as encodeBech32mTokenIdentifier, e as encodeSparkAddress, j as getNetwork, l as getNetworkFromAddress, r as getNetworkFromBech32mTokenIdentifier, m as getNetworkFromString, f as isValidPublicKey, i as isValidSparkAddress, p as protoToNetwork, z as SparkWallet, b as ConfigOptions } from './spark-wallet-B6YthxDI.js';
|
|
2
|
+
import { ab as BroadcastConfig, ac as BroadcastResult, Q as DEFAULT_FEE_SATS, M as DIRECT_TIMELOCK_OFFSET, a9 as FeeBumpTxChain, a8 as FeeBumpTxPackage, a7 as FeeRate, O as INITIAL_DIRECT_SEQUENCE, N as INITIAL_SEQUENCE, a5 as LeafInfo, P as TEST_UNILATERAL_DIRECT_SEQUENCE, T as TEST_UNILATERAL_SEQUENCE, aa as TxChain, a6 as Utxo, q as addPrivateKeys, o as addPublicKeys, b as applyAdaptorToSignature, p as applyAdditiveTweakToPublicKey, J as checkIfSelectedOutputsAreAvailable, a1 as checkIfValidSequence, z as collectResponses, c as computeTaprootKeyNoScript, ag as constructFeeBumpTx, af as constructUnilateralExitFeeBumpPackages, ae as constructUnilateralExitTxs, _ as createConnectorRefundTransactions, X as createLeafNodeTx, V as createNodeTx, W as createNodeTxs, Y as createRefundTx, Z as createRefundTxs, S as createRootTx, F as createSigningCommitment, B as createSigningNonce, U as createSplitTx, H as decodeBytesToSigningCommitment, E as decodeBytesToSigningNonce, a2 as doesLeafNeedRefresh, G as encodeSigningCommitmentToBytes, D as encodeSigningNonceToBytes, K as filterTokenBalanceForTokenIdentifier, a as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, $ as getCurrentTimelock, a4 as getEphemeralAnchorOutput, w as getLatestDepositTxId, a3 as getNextTransactionSequence, f as getP2TRAddressFromPkScript, e as getP2TRAddressFromPublicKey, d as getP2TRScriptFromPublicKey, h as getP2WPKHAddressFromPublicKey, A as getRandomSigningNonce, k as getSigHashFromTx, C as getSigningCommitmentFromNonce, ah as getSparkAddressFromTaproot, a0 as getTransactionSequence, L as getTransferPackageSigningPayload, n as getTxEstimatedVbytesSizeByNumberOfInputsOutputs, j as getTxFromRawTxBytes, i as getTxFromRawTxHex, l as getTxId, m as getTxIdNoReverse, ad as isEphemeralAnchorOutput, x as isTxBroadcast, u as lastKeyWithTarget, R as maybeApplyFee, y as proofOfPossessionMessageHashForDepositAddress, r as subtractPrivateKeys, s as subtractPublicKeys, I as sumAvailableTokens, t as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './xchain-address-Di3lu4Wy.js';
|
|
3
|
+
import { V as VerifiableSecretShare, h as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, b as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, d as splitSecretWithProofs, v as validateShare } from './client-Dn4Ld8pD.js';
|
|
4
|
+
import './spark-Cj4brrP5.js';
|
|
5
5
|
import '@bufbuild/protobuf/wire';
|
|
6
6
|
import 'nice-grpc-common';
|
|
7
7
|
import '@buildonspark/lrc20-sdk';
|
|
@@ -10,8 +10,8 @@ import 'bitcoinjs-lib';
|
|
|
10
10
|
import 'nice-grpc';
|
|
11
11
|
import 'nice-grpc-web';
|
|
12
12
|
import './proto/spark_token.js';
|
|
13
|
+
import '@opentelemetry/sdk-trace-base';
|
|
13
14
|
import 'eventemitter3';
|
|
14
|
-
import './sdk-types-CkRNraXT.js';
|
|
15
15
|
import '@scure/btc-signer/psbt';
|
|
16
16
|
import '@lightsparkdev/core';
|
|
17
17
|
import '@scure/bip32';
|
|
@@ -76,7 +76,7 @@ declare const utils_encodeSigningNonceToBytes: typeof encodeSigningNonceToBytes;
|
|
|
76
76
|
declare const utils_encodeSparkAddress: typeof encodeSparkAddress;
|
|
77
77
|
declare const utils_evaluatePolynomial: typeof evaluatePolynomial;
|
|
78
78
|
declare const utils_fieldDiv: typeof fieldDiv;
|
|
79
|
-
declare const
|
|
79
|
+
declare const utils_filterTokenBalanceForTokenIdentifier: typeof filterTokenBalanceForTokenIdentifier;
|
|
80
80
|
declare const utils_generateAdaptorFromSignature: typeof generateAdaptorFromSignature;
|
|
81
81
|
declare const utils_generatePolynomialForSecretSharing: typeof generatePolynomialForSecretSharing;
|
|
82
82
|
declare const utils_generateSignatureFromExistingAdaptor: typeof generateSignatureFromExistingAdaptor;
|
|
@@ -85,6 +85,7 @@ declare const utils_getEphemeralAnchorOutput: typeof getEphemeralAnchorOutput;
|
|
|
85
85
|
declare const utils_getLatestDepositTxId: typeof getLatestDepositTxId;
|
|
86
86
|
declare const utils_getNetwork: typeof getNetwork;
|
|
87
87
|
declare const utils_getNetworkFromAddress: typeof getNetworkFromAddress;
|
|
88
|
+
declare const utils_getNetworkFromBech32mTokenIdentifier: typeof getNetworkFromBech32mTokenIdentifier;
|
|
88
89
|
declare const utils_getNetworkFromString: typeof getNetworkFromString;
|
|
89
90
|
declare const utils_getNextTransactionSequence: typeof getNextTransactionSequence;
|
|
90
91
|
declare const utils_getP2TRAddressFromPkScript: typeof getP2TRAddressFromPkScript;
|
|
@@ -98,6 +99,7 @@ declare const utils_getSigningCommitmentFromNonce: typeof getSigningCommitmentFr
|
|
|
98
99
|
declare const utils_getSparkAddressFromTaproot: typeof getSparkAddressFromTaproot;
|
|
99
100
|
declare const utils_getTransactionSequence: typeof getTransactionSequence;
|
|
100
101
|
declare const utils_getTransferPackageSigningPayload: typeof getTransferPackageSigningPayload;
|
|
102
|
+
declare const utils_getTxEstimatedVbytesSizeByNumberOfInputsOutputs: typeof getTxEstimatedVbytesSizeByNumberOfInputsOutputs;
|
|
101
103
|
declare const utils_getTxFromRawTxBytes: typeof getTxFromRawTxBytes;
|
|
102
104
|
declare const utils_getTxFromRawTxHex: typeof getTxFromRawTxHex;
|
|
103
105
|
declare const utils_getTxId: typeof getTxId;
|
|
@@ -121,7 +123,7 @@ declare const utils_sumOfPrivateKeys: typeof sumOfPrivateKeys;
|
|
|
121
123
|
declare const utils_validateOutboundAdaptorSignature: typeof validateOutboundAdaptorSignature;
|
|
122
124
|
declare const utils_validateShare: typeof validateShare;
|
|
123
125
|
declare namespace utils {
|
|
124
|
-
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_DIRECT_TIMELOCK_OFFSET as DIRECT_TIMELOCK_OFFSET, utils_DecodedSparkAddressData as DecodedSparkAddressData, utils_FeeBumpTxChain as FeeBumpTxChain, utils_FeeBumpTxPackage as FeeBumpTxPackage, utils_FeeRate as FeeRate, utils_INITIAL_DIRECT_SEQUENCE as INITIAL_DIRECT_SEQUENCE, utils_INITIAL_SEQUENCE as INITIAL_SEQUENCE, 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_TEST_UNILATERAL_DIRECT_SEQUENCE as TEST_UNILATERAL_DIRECT_SEQUENCE, utils_TEST_UNILATERAL_SEQUENCE as TEST_UNILATERAL_SEQUENCE, 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_createConnectorRefundTransactions as createConnectorRefundTransactions, utils_createLeafNodeTx as createLeafNodeTx, utils_createNodeTx as createNodeTx, utils_createNodeTxs as createNodeTxs, utils_createRefundTx as createRefundTx, utils_createRefundTxs as createRefundTxs, utils_createRootTx as createRootTx, utils_createSigningCommitment as createSigningCommitment, utils_createSigningNonce as createSigningNonce, utils_createSplitTx as createSplitTx, utils_decodeBech32mTokenIdentifier as decodeBech32mTokenIdentifier, utils_decodeBytesToSigningCommitment as decodeBytesToSigningCommitment, utils_decodeBytesToSigningNonce as decodeBytesToSigningNonce, utils_decodeSparkAddress as decodeSparkAddress, utils_doesLeafNeedRefresh as doesLeafNeedRefresh, utils_encodeBech32mTokenIdentifier as encodeBech32mTokenIdentifier, utils_encodeSigningCommitmentToBytes as encodeSigningCommitmentToBytes, utils_encodeSigningNonceToBytes as encodeSigningNonceToBytes, utils_encodeSparkAddress as encodeSparkAddress, utils_evaluatePolynomial as evaluatePolynomial, utils_fieldDiv as fieldDiv,
|
|
126
|
+
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_DIRECT_TIMELOCK_OFFSET as DIRECT_TIMELOCK_OFFSET, utils_DecodedSparkAddressData as DecodedSparkAddressData, utils_FeeBumpTxChain as FeeBumpTxChain, utils_FeeBumpTxPackage as FeeBumpTxPackage, utils_FeeRate as FeeRate, utils_INITIAL_DIRECT_SEQUENCE as INITIAL_DIRECT_SEQUENCE, utils_INITIAL_SEQUENCE as INITIAL_SEQUENCE, 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_TEST_UNILATERAL_DIRECT_SEQUENCE as TEST_UNILATERAL_DIRECT_SEQUENCE, utils_TEST_UNILATERAL_SEQUENCE as TEST_UNILATERAL_SEQUENCE, 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_createConnectorRefundTransactions as createConnectorRefundTransactions, utils_createLeafNodeTx as createLeafNodeTx, utils_createNodeTx as createNodeTx, utils_createNodeTxs as createNodeTxs, utils_createRefundTx as createRefundTx, utils_createRefundTxs as createRefundTxs, utils_createRootTx as createRootTx, utils_createSigningCommitment as createSigningCommitment, utils_createSigningNonce as createSigningNonce, utils_createSplitTx as createSplitTx, utils_decodeBech32mTokenIdentifier as decodeBech32mTokenIdentifier, utils_decodeBytesToSigningCommitment as decodeBytesToSigningCommitment, utils_decodeBytesToSigningNonce as decodeBytesToSigningNonce, utils_decodeSparkAddress as decodeSparkAddress, utils_doesLeafNeedRefresh as doesLeafNeedRefresh, 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_filterTokenBalanceForTokenIdentifier as filterTokenBalanceForTokenIdentifier, 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_getNetworkFromBech32mTokenIdentifier as getNetworkFromBech32mTokenIdentifier, 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_getTxEstimatedVbytesSizeByNumberOfInputsOutputs as getTxEstimatedVbytesSizeByNumberOfInputsOutputs, 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 };
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
declare const s: {
|
package/dist/debug.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SparkWallet,
|
|
3
3
|
WalletConfig,
|
|
4
4
|
utils_exports
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GUZ3WCB4.js";
|
|
6
6
|
import "./chunk-G4MSZ6DE.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-3SPMJMUX.js";
|
|
8
|
+
import "./chunk-CQY5ML2A.js";
|
|
9
9
|
import "./chunk-AAZWSPUK.js";
|
|
10
10
|
import "./chunk-MVRQ5US7.js";
|
|
11
11
|
|
|
@@ -1,59 +1,14 @@
|
|
|
1
|
-
import { B as BitcoinNetwork,
|
|
2
|
-
export { C as ClaimStaticDepositOutput,
|
|
1
|
+
import { B as BitcoinNetwork, P as PageInfo, J as SspClient } from '../../client-CusuvuCe.cjs';
|
|
2
|
+
export { O as ClaimStaticDeposit, C as ClaimStaticDepositOutput, Q as ClaimStaticDepositStatus, R as CompleteCoopExitInput, X as CompleteLeavesSwapInput, Y as CoopExitFeeEstimate, Z as CoopExitFeeEstimatesInput, _ as CoopExitFeeEstimatesOutput, F as CoopExitFeeQuote, a0 as CoopExitFeeQuoteInput, G as CoopExitRequest, a2 as CurrencyAmount, a3 as CurrencyUnit, E as ExitSpeed, a4 as GetChallengeOutput, a5 as Invoice, a6 as Leaf, L as LeavesSwapFeeEstimateOutput, a8 as LeavesSwapRequest, x as LightningReceiveRequest, aa as LightningReceiveRequestStatus, z as LightningSendFeeEstimateInput, ab as LightningSendFeeEstimateOutput, y as LightningSendRequest, ad as LightningSendRequestStatus, ae as RequestCoopExitInput, af as RequestLeavesSwapInput, ag as RequestLightningReceiveInput, ah as RequestLightningSendInput, ai as SparkCoopExitRequestStatus, aj as SparkLeavesSwapRequestStatus, ak as SparkTransferToLeavesConnection, al as StaticDepositQuoteInput, u as StaticDepositQuoteOutput, am as SwapLeaf, an as Transfer, ao as UserLeafInput, ap as VerifyChallengeOutput, N as getClaimStaticDepositQuery, $ as getCoopExitFeeQuoteQuery, a1 as getCoopExitRequestQuery, a7 as getLeavesSwapRequestQuery, a9 as getLightningReceiveRequestQuery, ac as getLightningSendRequestQuery } from '../../client-CusuvuCe.cjs';
|
|
3
3
|
import { Query } from '@lightsparkdev/core';
|
|
4
|
+
import '../../spark-Cj4brrP5.cjs';
|
|
4
5
|
import '@buildonspark/lrc20-sdk';
|
|
5
6
|
import '@scure/btc-signer';
|
|
6
7
|
import 'bitcoinjs-lib';
|
|
7
8
|
import '@scure/bip32';
|
|
8
9
|
import '../../types-BADxR3bm.cjs';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* This is an enum value that represents values that could be added in the future.
|
|
13
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
14
|
-
*/
|
|
15
|
-
FUTURE_VALUE = "FUTURE_VALUE",
|
|
16
|
-
CREATED = "CREATED",
|
|
17
|
-
TRANSFER_CREATED = "TRANSFER_CREATED",
|
|
18
|
-
TRANSFER_CREATION_FAILED = "TRANSFER_CREATION_FAILED",
|
|
19
|
-
REFUND_SIGNING_COMMITMENTS_QUERYING_FAILED = "REFUND_SIGNING_COMMITMENTS_QUERYING_FAILED",
|
|
20
|
-
REFUND_SIGNING_FAILED = "REFUND_SIGNING_FAILED",
|
|
21
|
-
UTXO_SWAPPING_FAILED = "UTXO_SWAPPING_FAILED",
|
|
22
|
-
TRANSFER_COMPLETED = "TRANSFER_COMPLETED",
|
|
23
|
-
SPEND_TX_CREATED = "SPEND_TX_CREATED",
|
|
24
|
-
SPEND_TX_BROADCAST = "SPEND_TX_BROADCAST"
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface ClaimStaticDeposit {
|
|
28
|
-
/**
|
|
29
|
-
* The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
|
|
30
|
-
* string.
|
|
31
|
-
**/
|
|
32
|
-
id: string;
|
|
33
|
-
/** The date and time when the entity was first created. **/
|
|
34
|
-
createdAt: string;
|
|
35
|
-
/** The date and time when the entity was last updated. **/
|
|
36
|
-
updatedAt: string;
|
|
37
|
-
/** The network the lightning send request is on. **/
|
|
38
|
-
network: BitcoinNetwork;
|
|
39
|
-
/** The amount of credit to be added to the user's balance. **/
|
|
40
|
-
creditAmount: CurrencyAmount;
|
|
41
|
-
/** The maximum fee that the user is willing to pay. **/
|
|
42
|
-
maxFee: CurrencyAmount;
|
|
43
|
-
/** The status of the request. **/
|
|
44
|
-
status: ClaimStaticDepositStatus;
|
|
45
|
-
/** The transaction id of the deposit. **/
|
|
46
|
-
transactionId: string;
|
|
47
|
-
/** The output index of the deposit. **/
|
|
48
|
-
outputIndex: number;
|
|
49
|
-
/** The Bitcoin network of the deposit. **/
|
|
50
|
-
bitcoinNetwork: BitcoinNetwork;
|
|
51
|
-
/** The typename of the object **/
|
|
52
|
-
typename: string;
|
|
53
|
-
/** The id of the transfer. **/
|
|
54
|
-
transferSparkId?: string | undefined;
|
|
55
|
-
}
|
|
56
|
-
declare const getClaimStaticDepositQuery: (id: string) => Query<ClaimStaticDeposit>;
|
|
10
|
+
import '@bufbuild/protobuf/wire';
|
|
11
|
+
import 'nice-grpc-common';
|
|
57
12
|
|
|
58
13
|
declare enum ClaimStaticDepositRequestType {
|
|
59
14
|
/**
|
|
@@ -284,4 +239,4 @@ interface WalletUserIdentityPublicKeyOutput {
|
|
|
284
239
|
identityPublicKey: string;
|
|
285
240
|
}
|
|
286
241
|
|
|
287
|
-
export { BitcoinNetwork, type
|
|
242
|
+
export { BitcoinNetwork, type ClaimStaticDepositInput, ClaimStaticDepositRequestType, type CompleteCoopExitOutput, type CompleteLeavesSwapOutput, type CompleteSeedReleaseInput, type CompleteSeedReleaseOutput, type Connection, type CoopExitFeeQuoteOutput, type Entity, type GetChallengeInput, type LeavesSwapFeeEstimateInput, type NotifyReceiverTransferInput, PageInfo, type Provider, type RequestCoopExitOutput, type RequestLeavesSwapOutput, type RequestLightningReceiveOutput, type RequestLightningSendOutput, SparkUserRequestStatus, SparkUserRequestType, SparkWalletUser, type SparkWalletUserToUserRequestsConnection, type StartSeedReleaseInput, type UserRequest, type VerifyChallengeInput, type WalletUserIdentityPublicKeyInput, type WalletUserIdentityPublicKeyOutput, getUserRequestQuery };
|
|
@@ -1,59 +1,14 @@
|
|
|
1
|
-
import { B as BitcoinNetwork,
|
|
2
|
-
export { C as ClaimStaticDepositOutput,
|
|
1
|
+
import { B as BitcoinNetwork, P as PageInfo, J as SspClient } from '../../client-Dn4Ld8pD.js';
|
|
2
|
+
export { O as ClaimStaticDeposit, C as ClaimStaticDepositOutput, Q as ClaimStaticDepositStatus, R as CompleteCoopExitInput, X as CompleteLeavesSwapInput, Y as CoopExitFeeEstimate, Z as CoopExitFeeEstimatesInput, _ as CoopExitFeeEstimatesOutput, F as CoopExitFeeQuote, a0 as CoopExitFeeQuoteInput, G as CoopExitRequest, a2 as CurrencyAmount, a3 as CurrencyUnit, E as ExitSpeed, a4 as GetChallengeOutput, a5 as Invoice, a6 as Leaf, L as LeavesSwapFeeEstimateOutput, a8 as LeavesSwapRequest, x as LightningReceiveRequest, aa as LightningReceiveRequestStatus, z as LightningSendFeeEstimateInput, ab as LightningSendFeeEstimateOutput, y as LightningSendRequest, ad as LightningSendRequestStatus, ae as RequestCoopExitInput, af as RequestLeavesSwapInput, ag as RequestLightningReceiveInput, ah as RequestLightningSendInput, ai as SparkCoopExitRequestStatus, aj as SparkLeavesSwapRequestStatus, ak as SparkTransferToLeavesConnection, al as StaticDepositQuoteInput, u as StaticDepositQuoteOutput, am as SwapLeaf, an as Transfer, ao as UserLeafInput, ap as VerifyChallengeOutput, N as getClaimStaticDepositQuery, $ as getCoopExitFeeQuoteQuery, a1 as getCoopExitRequestQuery, a7 as getLeavesSwapRequestQuery, a9 as getLightningReceiveRequestQuery, ac as getLightningSendRequestQuery } from '../../client-Dn4Ld8pD.js';
|
|
3
3
|
import { Query } from '@lightsparkdev/core';
|
|
4
|
+
import '../../spark-Cj4brrP5.js';
|
|
4
5
|
import '@buildonspark/lrc20-sdk';
|
|
5
6
|
import '@scure/btc-signer';
|
|
6
7
|
import 'bitcoinjs-lib';
|
|
7
8
|
import '@scure/bip32';
|
|
8
9
|
import '../../types-BADxR3bm.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* This is an enum value that represents values that could be added in the future.
|
|
13
|
-
* Clients should support unknown values as more of them could be added without notice.
|
|
14
|
-
*/
|
|
15
|
-
FUTURE_VALUE = "FUTURE_VALUE",
|
|
16
|
-
CREATED = "CREATED",
|
|
17
|
-
TRANSFER_CREATED = "TRANSFER_CREATED",
|
|
18
|
-
TRANSFER_CREATION_FAILED = "TRANSFER_CREATION_FAILED",
|
|
19
|
-
REFUND_SIGNING_COMMITMENTS_QUERYING_FAILED = "REFUND_SIGNING_COMMITMENTS_QUERYING_FAILED",
|
|
20
|
-
REFUND_SIGNING_FAILED = "REFUND_SIGNING_FAILED",
|
|
21
|
-
UTXO_SWAPPING_FAILED = "UTXO_SWAPPING_FAILED",
|
|
22
|
-
TRANSFER_COMPLETED = "TRANSFER_COMPLETED",
|
|
23
|
-
SPEND_TX_CREATED = "SPEND_TX_CREATED",
|
|
24
|
-
SPEND_TX_BROADCAST = "SPEND_TX_BROADCAST"
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface ClaimStaticDeposit {
|
|
28
|
-
/**
|
|
29
|
-
* The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
|
|
30
|
-
* string.
|
|
31
|
-
**/
|
|
32
|
-
id: string;
|
|
33
|
-
/** The date and time when the entity was first created. **/
|
|
34
|
-
createdAt: string;
|
|
35
|
-
/** The date and time when the entity was last updated. **/
|
|
36
|
-
updatedAt: string;
|
|
37
|
-
/** The network the lightning send request is on. **/
|
|
38
|
-
network: BitcoinNetwork;
|
|
39
|
-
/** The amount of credit to be added to the user's balance. **/
|
|
40
|
-
creditAmount: CurrencyAmount;
|
|
41
|
-
/** The maximum fee that the user is willing to pay. **/
|
|
42
|
-
maxFee: CurrencyAmount;
|
|
43
|
-
/** The status of the request. **/
|
|
44
|
-
status: ClaimStaticDepositStatus;
|
|
45
|
-
/** The transaction id of the deposit. **/
|
|
46
|
-
transactionId: string;
|
|
47
|
-
/** The output index of the deposit. **/
|
|
48
|
-
outputIndex: number;
|
|
49
|
-
/** The Bitcoin network of the deposit. **/
|
|
50
|
-
bitcoinNetwork: BitcoinNetwork;
|
|
51
|
-
/** The typename of the object **/
|
|
52
|
-
typename: string;
|
|
53
|
-
/** The id of the transfer. **/
|
|
54
|
-
transferSparkId?: string | undefined;
|
|
55
|
-
}
|
|
56
|
-
declare const getClaimStaticDepositQuery: (id: string) => Query<ClaimStaticDeposit>;
|
|
10
|
+
import '@bufbuild/protobuf/wire';
|
|
11
|
+
import 'nice-grpc-common';
|
|
57
12
|
|
|
58
13
|
declare enum ClaimStaticDepositRequestType {
|
|
59
14
|
/**
|
|
@@ -284,4 +239,4 @@ interface WalletUserIdentityPublicKeyOutput {
|
|
|
284
239
|
identityPublicKey: string;
|
|
285
240
|
}
|
|
286
241
|
|
|
287
|
-
export { BitcoinNetwork, type
|
|
242
|
+
export { BitcoinNetwork, type ClaimStaticDepositInput, ClaimStaticDepositRequestType, type CompleteCoopExitOutput, type CompleteLeavesSwapOutput, type CompleteSeedReleaseInput, type CompleteSeedReleaseOutput, type Connection, type CoopExitFeeQuoteOutput, type Entity, type GetChallengeInput, type LeavesSwapFeeEstimateInput, type NotifyReceiverTransferInput, PageInfo, type Provider, type RequestCoopExitOutput, type RequestLeavesSwapOutput, type RequestLightningReceiveOutput, type RequestLightningSendOutput, SparkUserRequestStatus, SparkUserRequestType, SparkWalletUser, type SparkWalletUserToUserRequestsConnection, type StartSeedReleaseInput, type UserRequest, type VerifyChallengeInput, type WalletUserIdentityPublicKeyInput, type WalletUserIdentityPublicKeyOutput, getUserRequestQuery };
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getLightningReceiveRequestQuery,
|
|
19
19
|
getLightningSendRequestQuery,
|
|
20
20
|
getUserRequestQuery
|
|
21
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-CQY5ML2A.js";
|
|
22
22
|
import "../../chunk-MVRQ5US7.js";
|
|
23
23
|
export {
|
|
24
24
|
BitcoinNetwork_default as BitcoinNetwork,
|