@buildonspark/spark-sdk 0.1.45 → 0.1.46
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 +8 -0
- package/dist/{RequestLightningSendInput-Du0z7Om7.d.cts → RequestLightningSendInput-2cSh_In4.d.cts} +1 -1
- package/dist/{RequestLightningSendInput-DEPd_fPO.d.ts → RequestLightningSendInput-CN6BNg_g.d.ts} +1 -1
- package/dist/address/index.d.cts +2 -2
- package/dist/address/index.d.ts +2 -2
- package/dist/{chunk-R5PXJZQS.js → chunk-4EMV7HHW.js} +1 -1
- package/dist/{chunk-PQN3C2MF.js → chunk-DXR2PXJU.js} +1 -1
- package/dist/{chunk-GZ5IPPJ2.js → chunk-HHNQ3ZHC.js} +1 -1
- package/dist/{chunk-6264CGDM.js → chunk-HSCLBJEL.js} +4 -4
- package/dist/{chunk-J2IE4Z7Y.js → chunk-JB64OQES.js} +47 -47
- package/dist/{chunk-YUPMXTCJ.js → chunk-N5VZVCGJ.js} +3 -3
- package/dist/{chunk-7V6N75CC.js → chunk-OFCJFZ4I.js} +1 -1
- package/dist/{chunk-5FUB65LX.js → chunk-UXDODSDT.js} +6 -6
- package/dist/graphql/objects/index.d.cts +4 -4
- package/dist/graphql/objects/index.d.ts +4 -4
- package/dist/{index-B2AwKW5J.d.cts → index-CKL5DodV.d.cts} +3 -3
- package/dist/{index-CJDi1HWc.d.ts → index-COm59SPw.d.ts} +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +22 -22
- package/dist/index.node.cjs +2 -2
- package/dist/index.node.d.cts +7 -7
- package/dist/index.node.d.ts +7 -7
- package/dist/index.node.js +22 -22
- package/dist/native/index.cjs +2 -2
- package/dist/native/index.js +2 -2
- package/dist/{network-CqgsdUF2.d.cts → network-Css46DAz.d.cts} +1 -1
- package/dist/{network-BTJl-Sul.d.ts → network-hynb7iTZ.d.ts} +1 -1
- 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/{sdk-types-Cc4l4kb1.d.ts → sdk-types-CKBsylfW.d.ts} +1 -1
- package/dist/{sdk-types-B0SwjolI.d.cts → sdk-types-Ct8xmN7l.d.cts} +1 -1
- package/dist/services/config.cjs +2 -2
- package/dist/services/config.d.cts +4 -4
- package/dist/services/config.d.ts +4 -4
- package/dist/services/config.js +5 -5
- package/dist/services/connection.cjs +1 -1
- package/dist/services/connection.d.cts +4 -4
- package/dist/services/connection.d.ts +4 -4
- package/dist/services/connection.js +2 -2
- package/dist/services/index.cjs +2 -2
- package/dist/services/index.d.cts +4 -4
- package/dist/services/index.d.ts +4 -4
- package/dist/services/index.js +14 -14
- package/dist/services/lrc-connection.cjs +1 -1
- package/dist/services/lrc-connection.d.cts +4 -4
- package/dist/services/lrc-connection.d.ts +4 -4
- package/dist/services/lrc-connection.js +2 -2
- package/dist/services/token-transactions.d.cts +4 -4
- package/dist/services/token-transactions.d.ts +4 -4
- package/dist/services/token-transactions.js +1 -1
- package/dist/services/wallet-config.cjs +1 -1
- package/dist/services/wallet-config.d.cts +4 -4
- package/dist/services/wallet-config.d.ts +4 -4
- package/dist/services/wallet-config.js +1 -1
- package/dist/signer/signer.cjs +1 -1
- package/dist/signer/signer.d.cts +2 -2
- package/dist/signer/signer.d.ts +2 -2
- package/dist/signer/signer.js +2 -2
- package/dist/{signer-DKS0AJkw.d.cts → signer-BP6F__oR.d.cts} +1 -1
- package/dist/{signer-BocS_J6B.d.ts → signer-BVZJXcq7.d.ts} +1 -1
- package/dist/{spark-dM7EYXYQ.d.cts → spark-DbzGfse6.d.cts} +1 -1
- package/dist/{spark-dM7EYXYQ.d.ts → spark-DbzGfse6.d.ts} +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.cts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.js +12 -12
- package/package.json +2 -2
- package/src/services/wallet-config.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/{RequestLightningSendInput-Du0z7Om7.d.cts → RequestLightningSendInput-2cSh_In4.d.cts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Query } from '@lightsparkdev/core';
|
|
2
2
|
import { B as BitcoinNetwork } from './BitcoinNetwork-TnABML0T.cjs';
|
|
3
|
-
import { S as SparkSigner } from './signer-
|
|
3
|
+
import { S as SparkSigner } from './signer-BP6F__oR.cjs';
|
|
4
4
|
|
|
5
5
|
/** This enum identifies the unit of currency associated with a CurrencyAmount. **/
|
|
6
6
|
declare enum CurrencyUnit {
|
package/dist/{RequestLightningSendInput-DEPd_fPO.d.ts → RequestLightningSendInput-CN6BNg_g.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Query } from '@lightsparkdev/core';
|
|
2
2
|
import { B as BitcoinNetwork } from './BitcoinNetwork-TnABML0T.js';
|
|
3
|
-
import { S as SparkSigner } from './signer-
|
|
3
|
+
import { S as SparkSigner } from './signer-BVZJXcq7.js';
|
|
4
4
|
|
|
5
5
|
/** This enum identifies the unit of currency associated with a CurrencyAmount. **/
|
|
6
6
|
declare enum CurrencyUnit {
|
package/dist/address/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PaymentIntentFields } from '../spark-
|
|
2
|
-
import { a as NetworkType } from '../network-
|
|
1
|
+
import { P as PaymentIntentFields } from '../spark-DbzGfse6.cjs';
|
|
2
|
+
import { a as NetworkType } from '../network-Css46DAz.cjs';
|
|
3
3
|
import '@bufbuild/protobuf/wire';
|
|
4
4
|
import 'nice-grpc-common';
|
|
5
5
|
import '@buildonspark/lrc20-sdk';
|
package/dist/address/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PaymentIntentFields } from '../spark-
|
|
2
|
-
import { a as NetworkType } from '../network-
|
|
1
|
+
import { P as PaymentIntentFields } from '../spark-DbzGfse6.js';
|
|
2
|
+
import { a as NetworkType } from '../network-hynb7iTZ.js';
|
|
3
3
|
import '@bufbuild/protobuf/wire';
|
|
4
4
|
import 'nice-grpc-common';
|
|
5
5
|
import '@buildonspark/lrc20-sdk';
|
|
@@ -129,7 +129,7 @@ var BASE_CONFIG = {
|
|
|
129
129
|
threshold: 2,
|
|
130
130
|
signingOperators: getLocalSigningOperators(),
|
|
131
131
|
tokenSignatures: "SCHNORR",
|
|
132
|
-
tokenTransactionVersion: "
|
|
132
|
+
tokenTransactionVersion: "V1",
|
|
133
133
|
tokenValidityDurationSeconds: 180,
|
|
134
134
|
electrsUrl: getElectrsUrl("LOCAL"),
|
|
135
135
|
expectedWithdrawBondSats: 1e4,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DefaultSparkSigner
|
|
3
|
-
} from "./chunk-YUPMXTCJ.js";
|
|
4
1
|
import {
|
|
5
2
|
Network,
|
|
6
3
|
NetworkToProto
|
|
@@ -9,7 +6,10 @@ import {
|
|
|
9
6
|
LOCAL_WALLET_CONFIG,
|
|
10
7
|
MAINNET_WALLET_CONFIG,
|
|
11
8
|
REGTEST_WALLET_CONFIG
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4EMV7HHW.js";
|
|
10
|
+
import {
|
|
11
|
+
DefaultSparkSigner
|
|
12
|
+
} from "./chunk-N5VZVCGJ.js";
|
|
13
13
|
import {
|
|
14
14
|
ConfigurationError
|
|
15
15
|
} from "./chunk-GSI4OLXZ.js";
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Lrc20ConnectionManager
|
|
3
|
-
} from "./chunk-GZ5IPPJ2.js";
|
|
4
|
-
import {
|
|
5
|
-
TokenTransactionService
|
|
6
|
-
} from "./chunk-C2S227QR.js";
|
|
7
1
|
import {
|
|
8
2
|
DEFAULT_FEE_SATS,
|
|
9
3
|
computeTaprootKeyNoScript,
|
|
@@ -20,39 +14,10 @@ import {
|
|
|
20
14
|
getTxFromRawTxHex,
|
|
21
15
|
getTxId,
|
|
22
16
|
proofOfPossessionMessageHashForDepositAddress
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
calculateAvailableTokenAmount
|
|
26
|
-
} from "./chunk-HWJWKEIU.js";
|
|
27
|
-
import {
|
|
28
|
-
mapTransferToWalletTransfer,
|
|
29
|
-
mapTreeNodeToWalletLeaf
|
|
30
|
-
} from "./chunk-OBFKIEMP.js";
|
|
31
|
-
import {
|
|
32
|
-
ClaimStaticDepositRequestType_default,
|
|
33
|
-
CoopExitFeeQuoteFromJson,
|
|
34
|
-
CurrencyAmountFromJson,
|
|
35
|
-
ExitSpeed_default,
|
|
36
|
-
FRAGMENT,
|
|
37
|
-
FRAGMENT2,
|
|
38
|
-
FRAGMENT3,
|
|
39
|
-
FRAGMENT4,
|
|
40
|
-
FRAGMENT5,
|
|
41
|
-
FRAGMENT6,
|
|
42
|
-
LeavesSwapRequestFromJson,
|
|
43
|
-
LightningReceiveRequestFromJson,
|
|
44
|
-
LightningSendRequestFromJson,
|
|
45
|
-
SparkCoopExitRequestStatus_default,
|
|
46
|
-
TransferFromJson
|
|
47
|
-
} from "./chunk-I54FARY2.js";
|
|
48
|
-
import {
|
|
49
|
-
decodeSparkAddress,
|
|
50
|
-
encodeSparkAddress,
|
|
51
|
-
isValidPublicKey
|
|
52
|
-
} from "./chunk-KMUMFYFX.js";
|
|
17
|
+
} from "./chunk-UXDODSDT.js";
|
|
53
18
|
import {
|
|
54
19
|
WalletConfigService
|
|
55
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HSCLBJEL.js";
|
|
56
21
|
import {
|
|
57
22
|
LRC_WALLET_NETWORK,
|
|
58
23
|
LRC_WALLET_NETWORK_TYPE,
|
|
@@ -60,9 +25,26 @@ import {
|
|
|
60
25
|
NetworkToProto,
|
|
61
26
|
getNetwork
|
|
62
27
|
} from "./chunk-Z5HIAYFT.js";
|
|
28
|
+
import {
|
|
29
|
+
ConnectionManager
|
|
30
|
+
} from "./chunk-DXR2PXJU.js";
|
|
31
|
+
import {
|
|
32
|
+
Lrc20ConnectionManager
|
|
33
|
+
} from "./chunk-HHNQ3ZHC.js";
|
|
34
|
+
import {
|
|
35
|
+
TokenTransactionService
|
|
36
|
+
} from "./chunk-C2S227QR.js";
|
|
37
|
+
import {
|
|
38
|
+
calculateAvailableTokenAmount
|
|
39
|
+
} from "./chunk-HWJWKEIU.js";
|
|
63
40
|
import {
|
|
64
41
|
ELECTRS_CREDENTIALS
|
|
65
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4EMV7HHW.js";
|
|
43
|
+
import {
|
|
44
|
+
decodeSparkAddress,
|
|
45
|
+
encodeSparkAddress,
|
|
46
|
+
isValidPublicKey
|
|
47
|
+
} from "./chunk-KMUMFYFX.js";
|
|
66
48
|
import {
|
|
67
49
|
addPublicKeys,
|
|
68
50
|
applyAdaptorToSignature,
|
|
@@ -70,18 +52,12 @@ import {
|
|
|
70
52
|
generateSignatureFromExistingAdaptor,
|
|
71
53
|
subtractPublicKeys
|
|
72
54
|
} from "./chunk-NSJF5F5O.js";
|
|
55
|
+
import {
|
|
56
|
+
isReactNative
|
|
57
|
+
} from "./chunk-OFCJFZ4I.js";
|
|
73
58
|
import {
|
|
74
59
|
getCrypto
|
|
75
60
|
} from "./chunk-QNNSEJ4P.js";
|
|
76
|
-
import {
|
|
77
|
-
BitcoinNetwork_default
|
|
78
|
-
} from "./chunk-HMLOC6TE.js";
|
|
79
|
-
import {
|
|
80
|
-
ConnectionManager
|
|
81
|
-
} from "./chunk-PQN3C2MF.js";
|
|
82
|
-
import {
|
|
83
|
-
isReactNative
|
|
84
|
-
} from "./chunk-7V6N75CC.js";
|
|
85
61
|
import {
|
|
86
62
|
AuthenticationError,
|
|
87
63
|
ConfigurationError,
|
|
@@ -89,6 +65,30 @@ import {
|
|
|
89
65
|
RPCError,
|
|
90
66
|
ValidationError
|
|
91
67
|
} from "./chunk-GSI4OLXZ.js";
|
|
68
|
+
import {
|
|
69
|
+
mapTransferToWalletTransfer,
|
|
70
|
+
mapTreeNodeToWalletLeaf
|
|
71
|
+
} from "./chunk-OBFKIEMP.js";
|
|
72
|
+
import {
|
|
73
|
+
ClaimStaticDepositRequestType_default,
|
|
74
|
+
CoopExitFeeQuoteFromJson,
|
|
75
|
+
CurrencyAmountFromJson,
|
|
76
|
+
ExitSpeed_default,
|
|
77
|
+
FRAGMENT,
|
|
78
|
+
FRAGMENT2,
|
|
79
|
+
FRAGMENT3,
|
|
80
|
+
FRAGMENT4,
|
|
81
|
+
FRAGMENT5,
|
|
82
|
+
FRAGMENT6,
|
|
83
|
+
LeavesSwapRequestFromJson,
|
|
84
|
+
LightningReceiveRequestFromJson,
|
|
85
|
+
LightningSendRequestFromJson,
|
|
86
|
+
SparkCoopExitRequestStatus_default,
|
|
87
|
+
TransferFromJson
|
|
88
|
+
} from "./chunk-I54FARY2.js";
|
|
89
|
+
import {
|
|
90
|
+
BitcoinNetwork_default
|
|
91
|
+
} from "./chunk-HMLOC6TE.js";
|
|
92
92
|
import {
|
|
93
93
|
SendLeafKeyTweaks,
|
|
94
94
|
networkToJSON
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
getSigningCommitmentFromNonce,
|
|
5
5
|
subtractPrivateKeys
|
|
6
6
|
} from "./chunk-NSJF5F5O.js";
|
|
7
|
+
import {
|
|
8
|
+
isReactNative
|
|
9
|
+
} from "./chunk-OFCJFZ4I.js";
|
|
7
10
|
import {
|
|
8
11
|
splitSecretWithProofs
|
|
9
12
|
} from "./chunk-QNNSEJ4P.js";
|
|
10
|
-
import {
|
|
11
|
-
isReactNative
|
|
12
|
-
} from "./chunk-7V6N75CC.js";
|
|
13
13
|
import {
|
|
14
14
|
ConfigurationError,
|
|
15
15
|
ValidationError
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { isNode } from "@lightsparkdev/core";
|
|
3
3
|
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
4
4
|
var isBun = globalThis.Bun !== void 0;
|
|
5
|
-
var packageVersion = true ? "0.1.
|
|
5
|
+
var packageVersion = true ? "0.1.46" : "unknown";
|
|
6
6
|
var baseEnvStr = "unknown";
|
|
7
7
|
if (isBun) {
|
|
8
8
|
const bunVersion = "version" in globalThis.Bun ? globalThis.Bun.version : "unknown-version";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
encodeSparkAddress
|
|
3
|
-
} from "./chunk-KMUMFYFX.js";
|
|
4
1
|
import {
|
|
5
2
|
getNetwork,
|
|
6
3
|
getNetworkFromAddress
|
|
@@ -8,13 +5,16 @@ import {
|
|
|
8
5
|
import {
|
|
9
6
|
ELECTRS_CREDENTIALS,
|
|
10
7
|
getElectrsUrl
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4EMV7HHW.js";
|
|
12
9
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
10
|
+
encodeSparkAddress
|
|
11
|
+
} from "./chunk-KMUMFYFX.js";
|
|
15
12
|
import {
|
|
16
13
|
ValidationError
|
|
17
14
|
} from "./chunk-GSI4OLXZ.js";
|
|
15
|
+
import {
|
|
16
|
+
BitcoinNetwork_default
|
|
17
|
+
} from "./chunk-HMLOC6TE.js";
|
|
18
18
|
import {
|
|
19
19
|
TreeNode
|
|
20
20
|
} from "./chunk-BGGEVUJK.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { B as BitcoinNetwork } from '../../BitcoinNetwork-TnABML0T.cjs';
|
|
2
2
|
import { Query } from '@lightsparkdev/core';
|
|
3
|
-
import { k as CurrencyAmount, P as PageInfo, K as SspClient } from '../../RequestLightningSendInput-
|
|
4
|
-
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 LightningSendFeeEstimateOutput, u as LightningSendRequest, v as LightningSendRequestStatus, R as RequestCoopExitInput, w as RequestLeavesSwapInput, x as RequestLightningReceiveInput, y as RequestLightningSendInput, S as SparkCoopExitRequestStatus, z as SparkLeavesSwapRequestStatus, A as SparkTransferToLeavesConnection, B as StaticDepositQuoteInput, D as StaticDepositQuoteOutput, F as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, t as getLightningSendRequestQuery } from '../../RequestLightningSendInput-
|
|
3
|
+
import { k as CurrencyAmount, P as PageInfo, K as SspClient } from '../../RequestLightningSendInput-2cSh_In4.cjs';
|
|
4
|
+
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 LightningSendFeeEstimateOutput, u as LightningSendRequest, v as LightningSendRequestStatus, R as RequestCoopExitInput, w as RequestLeavesSwapInput, x as RequestLightningReceiveInput, y as RequestLightningSendInput, S as SparkCoopExitRequestStatus, z as SparkLeavesSwapRequestStatus, A as SparkTransferToLeavesConnection, B as StaticDepositQuoteInput, D as StaticDepositQuoteOutput, F as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, t as getLightningSendRequestQuery } from '../../RequestLightningSendInput-2cSh_In4.cjs';
|
|
5
5
|
export { L as LightningSendFeeEstimateInput } from '../../LightningSendFeeEstimateInput-BgOhEAI-.cjs';
|
|
6
|
-
import '../../signer-
|
|
6
|
+
import '../../signer-BP6F__oR.cjs';
|
|
7
7
|
import '@scure/bip32';
|
|
8
|
-
import '../../spark-
|
|
8
|
+
import '../../spark-DbzGfse6.cjs';
|
|
9
9
|
import '@bufbuild/protobuf/wire';
|
|
10
10
|
import 'nice-grpc-common';
|
|
11
11
|
import '../../types-C-Rp0Oo7.cjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { B as BitcoinNetwork } from '../../BitcoinNetwork-TnABML0T.js';
|
|
2
2
|
import { Query } from '@lightsparkdev/core';
|
|
3
|
-
import { k as CurrencyAmount, P as PageInfo, K as SspClient } from '../../RequestLightningSendInput-
|
|
4
|
-
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 LightningSendFeeEstimateOutput, u as LightningSendRequest, v as LightningSendRequestStatus, R as RequestCoopExitInput, w as RequestLeavesSwapInput, x as RequestLightningReceiveInput, y as RequestLightningSendInput, S as SparkCoopExitRequestStatus, z as SparkLeavesSwapRequestStatus, A as SparkTransferToLeavesConnection, B as StaticDepositQuoteInput, D as StaticDepositQuoteOutput, F as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, t as getLightningSendRequestQuery } from '../../RequestLightningSendInput-
|
|
3
|
+
import { k as CurrencyAmount, P as PageInfo, K as SspClient } from '../../RequestLightningSendInput-CN6BNg_g.js';
|
|
4
|
+
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 LightningSendFeeEstimateOutput, u as LightningSendRequest, v as LightningSendRequestStatus, R as RequestCoopExitInput, w as RequestLeavesSwapInput, x as RequestLightningReceiveInput, y as RequestLightningSendInput, S as SparkCoopExitRequestStatus, z as SparkLeavesSwapRequestStatus, A as SparkTransferToLeavesConnection, B as StaticDepositQuoteInput, D as StaticDepositQuoteOutput, F as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, t as getLightningSendRequestQuery } from '../../RequestLightningSendInput-CN6BNg_g.js';
|
|
5
5
|
export { L as LightningSendFeeEstimateInput } from '../../LightningSendFeeEstimateInput-BgOhEAI-.js';
|
|
6
|
-
import '../../signer-
|
|
6
|
+
import '../../signer-BVZJXcq7.js';
|
|
7
7
|
import '@scure/bip32';
|
|
8
|
-
import '../../spark-
|
|
8
|
+
import '../../spark-DbzGfse6.js';
|
|
9
9
|
import '@bufbuild/protobuf/wire';
|
|
10
10
|
import 'nice-grpc-common';
|
|
11
11
|
import '../../types-C-Rp0Oo7.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as btc from '@scure/btc-signer';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput, TransactionInput } from '@scure/btc-signer/psbt';
|
|
4
|
-
import { N as Network } from './network-
|
|
5
|
-
import { S as SparkSigner, i as SigningNonce, h as SigningCommitment } from './signer-
|
|
6
|
-
import { j as OutputWithPreviousTransactionData,
|
|
4
|
+
import { N as Network } from './network-Css46DAz.cjs';
|
|
5
|
+
import { S as SparkSigner, i as SigningNonce, h as SigningCommitment } from './signer-BP6F__oR.cjs';
|
|
6
|
+
import { j as OutputWithPreviousTransactionData, k as TransferPackage, g as SparkServiceClient } from './spark-DbzGfse6.cjs';
|
|
7
7
|
import { ConfigOptions } from './services/wallet-config.cjs';
|
|
8
8
|
import { SparkAddressFormat } from './address/index.cjs';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as btc from '@scure/btc-signer';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput, TransactionInput } from '@scure/btc-signer/psbt';
|
|
4
|
-
import { N as Network } from './network-
|
|
5
|
-
import { S as SparkSigner, i as SigningNonce, h as SigningCommitment } from './signer-
|
|
6
|
-
import { j as OutputWithPreviousTransactionData,
|
|
4
|
+
import { N as Network } from './network-hynb7iTZ.js';
|
|
5
|
+
import { S as SparkSigner, i as SigningNonce, h as SigningCommitment } from './signer-BVZJXcq7.js';
|
|
6
|
+
import { j as OutputWithPreviousTransactionData, k as TransferPackage, g as SparkServiceClient } from './spark-DbzGfse6.js';
|
|
7
7
|
import { ConfigOptions } from './services/wallet-config.js';
|
|
8
8
|
import { SparkAddressFormat } from './address/index.js';
|
|
9
9
|
|
package/dist/index.cjs
CHANGED
|
@@ -17688,7 +17688,7 @@ init_buffer();
|
|
|
17688
17688
|
var import_core10 = require("@lightsparkdev/core");
|
|
17689
17689
|
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
17690
17690
|
var isBun = globalThis.Bun !== void 0;
|
|
17691
|
-
var packageVersion = true ? "0.1.
|
|
17691
|
+
var packageVersion = true ? "0.1.46" : "unknown";
|
|
17692
17692
|
var baseEnvStr = "unknown";
|
|
17693
17693
|
if (isBun) {
|
|
17694
17694
|
const bunVersion = "version" in globalThis.Bun ? globalThis.Bun.version : "unknown-version";
|
|
@@ -18944,7 +18944,7 @@ var BASE_CONFIG = {
|
|
|
18944
18944
|
threshold: 2,
|
|
18945
18945
|
signingOperators: getLocalSigningOperators(),
|
|
18946
18946
|
tokenSignatures: "SCHNORR",
|
|
18947
|
-
tokenTransactionVersion: "
|
|
18947
|
+
tokenTransactionVersion: "V1",
|
|
18948
18948
|
tokenValidityDurationSeconds: 180,
|
|
18949
18949
|
electrsUrl: getElectrsUrl("LOCAL"),
|
|
18950
18950
|
expectedWithdrawBondSats: 1e4,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as LeavesSwapFeeEstimateOutput, D as StaticDepositQuoteOutput, C as ClaimStaticDepositOutput, q as LightningReceiveRequest, u as LightningSendRequest, E as ExitSpeed, f as CoopExitFeeQuote, i as CoopExitRequest, T as Transfer$1 } from './RequestLightningSendInput-
|
|
1
|
+
import { m as LeavesSwapFeeEstimateOutput, D as StaticDepositQuoteOutput, C as ClaimStaticDepositOutput, q as LightningReceiveRequest, u as LightningSendRequest, E as ExitSpeed, f as CoopExitFeeQuote, i as CoopExitRequest, T as Transfer$1 } from './RequestLightningSendInput-2cSh_In4.cjs';
|
|
2
2
|
import { L as LightningSendFeeEstimateInput } from './LightningSendFeeEstimateInput-BgOhEAI-.cjs';
|
|
3
|
-
import { h as SigningCommitment, V as VerifiableSecretShare, S as SparkSigner } from './signer-
|
|
4
|
-
export { d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-
|
|
5
|
-
import { h as RequestedSigningCommitments, U as UserSignedTxSigningJob,
|
|
3
|
+
import { h as SigningCommitment, V as VerifiableSecretShare, S as SparkSigner } from './signer-BP6F__oR.cjs';
|
|
4
|
+
export { d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-BP6F__oR.cjs';
|
|
5
|
+
import { h as RequestedSigningCommitments, U as UserSignedTxSigningJob, b as TreeNode, e as Transfer, L as LeafRefundTxSigningResult, i as NodeSignatures, F as FinalizeNodeSignaturesResponse, Q as QueryTransfersResponse, j as OutputWithPreviousTransactionData } from './spark-DbzGfse6.cjs';
|
|
6
6
|
import { WalletConfigService } from './services/config.cjs';
|
|
7
7
|
import { ConnectionManager } from './services/connection.cjs';
|
|
8
8
|
import { Lrc20ConnectionManager } from './services/lrc-connection.cjs';
|
|
@@ -11,11 +11,11 @@ import { ConfigOptions } from './services/wallet-config.cjs';
|
|
|
11
11
|
import { LRCWallet } from '@buildonspark/lrc20-sdk';
|
|
12
12
|
import { EventEmitter } from 'eventemitter3';
|
|
13
13
|
import { SparkAddressFormat } from './address/index.cjs';
|
|
14
|
-
import { a as WalletTransfer, W as WalletLeaf } from './sdk-types-
|
|
15
|
-
import { S as SparkWalletProps, I as InitWalletResponse, b as TokenBalanceMap, T as TransferParams, C as CreateLightningInvoiceParams, P as PayLightningInvoiceParams } from './index-
|
|
16
|
-
export { a6 as BroadcastConfig, a7 as BroadcastResult, U as DEFAULT_FEE_SATS, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-
|
|
14
|
+
import { a as WalletTransfer, W as WalletLeaf } from './sdk-types-Ct8xmN7l.cjs';
|
|
15
|
+
import { S as SparkWalletProps, I as InitWalletResponse, b as TokenBalanceMap, T as TransferParams, C as CreateLightningInvoiceParams, P as PayLightningInvoiceParams } from './index-CKL5DodV.cjs';
|
|
16
|
+
export { a6 as BroadcastConfig, a7 as BroadcastResult, U as DEFAULT_FEE_SATS, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-CKL5DodV.cjs';
|
|
17
17
|
import { TokenTransactionWithStatus } from './proto/spark_token.cjs';
|
|
18
|
-
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-
|
|
18
|
+
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-Css46DAz.cjs';
|
|
19
19
|
import '@lightsparkdev/core';
|
|
20
20
|
import './BitcoinNetwork-TnABML0T.cjs';
|
|
21
21
|
import '@scure/bip32';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as LeavesSwapFeeEstimateOutput, D as StaticDepositQuoteOutput, C as ClaimStaticDepositOutput, q as LightningReceiveRequest, u as LightningSendRequest, E as ExitSpeed, f as CoopExitFeeQuote, i as CoopExitRequest, T as Transfer$1 } from './RequestLightningSendInput-
|
|
1
|
+
import { m as LeavesSwapFeeEstimateOutput, D as StaticDepositQuoteOutput, C as ClaimStaticDepositOutput, q as LightningReceiveRequest, u as LightningSendRequest, E as ExitSpeed, f as CoopExitFeeQuote, i as CoopExitRequest, T as Transfer$1 } from './RequestLightningSendInput-CN6BNg_g.js';
|
|
2
2
|
import { L as LightningSendFeeEstimateInput } from './LightningSendFeeEstimateInput-BgOhEAI-.js';
|
|
3
|
-
import { h as SigningCommitment, V as VerifiableSecretShare, S as SparkSigner } from './signer-
|
|
4
|
-
export { d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-
|
|
5
|
-
import { h as RequestedSigningCommitments, U as UserSignedTxSigningJob,
|
|
3
|
+
import { h as SigningCommitment, V as VerifiableSecretShare, S as SparkSigner } from './signer-BVZJXcq7.js';
|
|
4
|
+
export { d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-BVZJXcq7.js';
|
|
5
|
+
import { h as RequestedSigningCommitments, U as UserSignedTxSigningJob, b as TreeNode, e as Transfer, L as LeafRefundTxSigningResult, i as NodeSignatures, F as FinalizeNodeSignaturesResponse, Q as QueryTransfersResponse, j as OutputWithPreviousTransactionData } from './spark-DbzGfse6.js';
|
|
6
6
|
import { WalletConfigService } from './services/config.js';
|
|
7
7
|
import { ConnectionManager } from './services/connection.js';
|
|
8
8
|
import { Lrc20ConnectionManager } from './services/lrc-connection.js';
|
|
@@ -11,11 +11,11 @@ import { ConfigOptions } from './services/wallet-config.js';
|
|
|
11
11
|
import { LRCWallet } from '@buildonspark/lrc20-sdk';
|
|
12
12
|
import { EventEmitter } from 'eventemitter3';
|
|
13
13
|
import { SparkAddressFormat } from './address/index.js';
|
|
14
|
-
import { a as WalletTransfer, W as WalletLeaf } from './sdk-types-
|
|
15
|
-
import { S as SparkWalletProps, I as InitWalletResponse, b as TokenBalanceMap, T as TransferParams, C as CreateLightningInvoiceParams, P as PayLightningInvoiceParams } from './index-
|
|
16
|
-
export { a6 as BroadcastConfig, a7 as BroadcastResult, U as DEFAULT_FEE_SATS, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-
|
|
14
|
+
import { a as WalletTransfer, W as WalletLeaf } from './sdk-types-CKBsylfW.js';
|
|
15
|
+
import { S as SparkWalletProps, I as InitWalletResponse, b as TokenBalanceMap, T as TransferParams, C as CreateLightningInvoiceParams, P as PayLightningInvoiceParams } from './index-COm59SPw.js';
|
|
16
|
+
export { a6 as BroadcastConfig, a7 as BroadcastResult, U as DEFAULT_FEE_SATS, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-COm59SPw.js';
|
|
17
17
|
import { TokenTransactionWithStatus } from './proto/spark_token.js';
|
|
18
|
-
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-
|
|
18
|
+
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-hynb7iTZ.js';
|
|
19
19
|
import '@lightsparkdev/core';
|
|
20
20
|
import './BitcoinNetwork-TnABML0T.js';
|
|
21
21
|
import '@scure/bip32';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SparkWallet
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-GZ5IPPJ2.js";
|
|
5
|
-
import "./chunk-C2S227QR.js";
|
|
3
|
+
} from "./chunk-JB64OQES.js";
|
|
6
4
|
import {
|
|
7
5
|
DEFAULT_FEE_SATS,
|
|
8
6
|
checkIfValidSequence,
|
|
@@ -31,20 +29,8 @@ import {
|
|
|
31
29
|
isTxBroadcast,
|
|
32
30
|
maybeApplyFee,
|
|
33
31
|
proofOfPossessionMessageHashForDepositAddress
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import
|
|
36
|
-
calculateAvailableTokenAmount,
|
|
37
|
-
checkIfSelectedOutputsAreAvailable,
|
|
38
|
-
collectResponses,
|
|
39
|
-
filterTokenBalanceForTokenPublicKey
|
|
40
|
-
} from "./chunk-HWJWKEIU.js";
|
|
41
|
-
import "./chunk-OBFKIEMP.js";
|
|
42
|
-
import "./chunk-I54FARY2.js";
|
|
43
|
-
import "./chunk-L3EHBOUX.js";
|
|
44
|
-
import "./chunk-KMUMFYFX.js";
|
|
45
|
-
import "./chunk-NTFKFRQ2.js";
|
|
46
|
-
import "./chunk-6264CGDM.js";
|
|
47
|
-
import "./chunk-YUPMXTCJ.js";
|
|
32
|
+
} from "./chunk-UXDODSDT.js";
|
|
33
|
+
import "./chunk-HSCLBJEL.js";
|
|
48
34
|
import {
|
|
49
35
|
LRC_WALLET_NETWORK,
|
|
50
36
|
LRC_WALLET_NETWORK_TYPE,
|
|
@@ -54,7 +40,21 @@ import {
|
|
|
54
40
|
getNetworkFromAddress,
|
|
55
41
|
getNetworkFromString
|
|
56
42
|
} from "./chunk-Z5HIAYFT.js";
|
|
57
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-DXR2PXJU.js";
|
|
44
|
+
import "./chunk-HHNQ3ZHC.js";
|
|
45
|
+
import "./chunk-C2S227QR.js";
|
|
46
|
+
import {
|
|
47
|
+
calculateAvailableTokenAmount,
|
|
48
|
+
checkIfSelectedOutputsAreAvailable,
|
|
49
|
+
collectResponses,
|
|
50
|
+
filterTokenBalanceForTokenPublicKey
|
|
51
|
+
} from "./chunk-HWJWKEIU.js";
|
|
52
|
+
import "./chunk-4EMV7HHW.js";
|
|
53
|
+
import "./chunk-L3EHBOUX.js";
|
|
54
|
+
import "./chunk-KMUMFYFX.js";
|
|
55
|
+
import "./chunk-NTFKFRQ2.js";
|
|
56
|
+
import "./chunk-LHRD2WT6.js";
|
|
57
|
+
import "./chunk-N5VZVCGJ.js";
|
|
58
58
|
import {
|
|
59
59
|
addPrivateKeys,
|
|
60
60
|
addPublicKeys,
|
|
@@ -76,6 +76,7 @@ import {
|
|
|
76
76
|
sumOfPrivateKeys,
|
|
77
77
|
validateOutboundAdaptorSignature
|
|
78
78
|
} from "./chunk-NSJF5F5O.js";
|
|
79
|
+
import "./chunk-OFCJFZ4I.js";
|
|
79
80
|
import {
|
|
80
81
|
bigIntToPrivateKey,
|
|
81
82
|
computerLagrangeCoefficients,
|
|
@@ -89,11 +90,7 @@ import {
|
|
|
89
90
|
splitSecretWithProofs,
|
|
90
91
|
validateShare
|
|
91
92
|
} from "./chunk-QNNSEJ4P.js";
|
|
92
|
-
import "./chunk-HMLOC6TE.js";
|
|
93
93
|
import "./chunk-VTUGIIWI.js";
|
|
94
|
-
import "./chunk-PQN3C2MF.js";
|
|
95
|
-
import "./chunk-LHRD2WT6.js";
|
|
96
|
-
import "./chunk-7V6N75CC.js";
|
|
97
94
|
import {
|
|
98
95
|
AuthenticationError,
|
|
99
96
|
ConfigurationError,
|
|
@@ -104,6 +101,9 @@ import {
|
|
|
104
101
|
SparkSDKError,
|
|
105
102
|
ValidationError
|
|
106
103
|
} from "./chunk-GSI4OLXZ.js";
|
|
104
|
+
import "./chunk-OBFKIEMP.js";
|
|
105
|
+
import "./chunk-I54FARY2.js";
|
|
106
|
+
import "./chunk-HMLOC6TE.js";
|
|
107
107
|
import "./chunk-BGGEVUJK.js";
|
|
108
108
|
import "./chunk-MVRQ5US7.js";
|
|
109
109
|
export {
|
package/dist/index.node.cjs
CHANGED
|
@@ -17691,7 +17691,7 @@ init_buffer();
|
|
|
17691
17691
|
var import_core10 = require("@lightsparkdev/core");
|
|
17692
17692
|
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
17693
17693
|
var isBun = globalThis.Bun !== void 0;
|
|
17694
|
-
var packageVersion = true ? "0.1.
|
|
17694
|
+
var packageVersion = true ? "0.1.46" : "unknown";
|
|
17695
17695
|
var baseEnvStr = "unknown";
|
|
17696
17696
|
if (isBun) {
|
|
17697
17697
|
const bunVersion = "version" in globalThis.Bun ? globalThis.Bun.version : "unknown-version";
|
|
@@ -18947,7 +18947,7 @@ var BASE_CONFIG = {
|
|
|
18947
18947
|
threshold: 2,
|
|
18948
18948
|
signingOperators: getLocalSigningOperators(),
|
|
18949
18949
|
tokenSignatures: "SCHNORR",
|
|
18950
|
-
tokenTransactionVersion: "
|
|
18950
|
+
tokenTransactionVersion: "V1",
|
|
18951
18951
|
tokenValidityDurationSeconds: 180,
|
|
18952
18952
|
electrsUrl: getElectrsUrl("LOCAL"),
|
|
18953
18953
|
expectedWithdrawBondSats: 1e4,
|
package/dist/index.node.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SparkWallet as SparkWallet$1 } from './index.cjs';
|
|
2
2
|
export { AuthenticationError, ConfigurationError, InternalValidationError, NetworkError, NotImplementedError, RPCError, SparkSDKError, ValidationError } from './index.cjs';
|
|
3
|
-
import { I as InitWalletResponse } from './index-
|
|
4
|
-
export { a6 as BroadcastConfig, a7 as BroadcastResult, C as CreateLightningInvoiceParams, U as DEFAULT_FEE_SATS, D as DepositParams, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, P as PayLightningInvoiceParams, c as SparkWalletEvents, S as SparkWalletProps, b as TokenBalanceMap, a as TokenMetadata, T as TransferParams, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-
|
|
5
|
-
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-
|
|
6
|
-
export { V as VerifiableSecretShare, d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-
|
|
7
|
-
import './RequestLightningSendInput-
|
|
3
|
+
import { I as InitWalletResponse } from './index-CKL5DodV.cjs';
|
|
4
|
+
export { a6 as BroadcastConfig, a7 as BroadcastResult, C as CreateLightningInvoiceParams, U as DEFAULT_FEE_SATS, D as DepositParams, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, P as PayLightningInvoiceParams, c as SparkWalletEvents, S as SparkWalletProps, b as TokenBalanceMap, a as TokenMetadata, T as TransferParams, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-CKL5DodV.cjs';
|
|
5
|
+
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-Css46DAz.cjs';
|
|
6
|
+
export { V as VerifiableSecretShare, d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-BP6F__oR.cjs';
|
|
7
|
+
import './RequestLightningSendInput-2cSh_In4.cjs';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import './BitcoinNetwork-TnABML0T.cjs';
|
|
10
10
|
import './LightningSendFeeEstimateInput-BgOhEAI-.cjs';
|
|
11
|
-
import './spark-
|
|
11
|
+
import './spark-DbzGfse6.cjs';
|
|
12
12
|
import '@bufbuild/protobuf/wire';
|
|
13
13
|
import 'nice-grpc-common';
|
|
14
14
|
import './services/config.cjs';
|
|
@@ -23,7 +23,7 @@ import './proto/lrc20.cjs';
|
|
|
23
23
|
import '@scure/btc-signer';
|
|
24
24
|
import 'eventemitter3';
|
|
25
25
|
import './address/index.cjs';
|
|
26
|
-
import './sdk-types-
|
|
26
|
+
import './sdk-types-Ct8xmN7l.cjs';
|
|
27
27
|
import '@scure/btc-signer/psbt';
|
|
28
28
|
import 'bitcoinjs-lib';
|
|
29
29
|
import '@scure/bip32';
|
package/dist/index.node.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SparkWallet as SparkWallet$1 } from './index.js';
|
|
2
2
|
export { AuthenticationError, ConfigurationError, InternalValidationError, NetworkError, NotImplementedError, RPCError, SparkSDKError, ValidationError } from './index.js';
|
|
3
|
-
import { I as InitWalletResponse } from './index-
|
|
4
|
-
export { a6 as BroadcastConfig, a7 as BroadcastResult, C as CreateLightningInvoiceParams, U as DEFAULT_FEE_SATS, D as DepositParams, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, P as PayLightningInvoiceParams, c as SparkWalletEvents, S as SparkWalletProps, b as TokenBalanceMap, a as TokenMetadata, T as TransferParams, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-
|
|
5
|
-
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-
|
|
6
|
-
export { V as VerifiableSecretShare, d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-
|
|
7
|
-
import './RequestLightningSendInput-
|
|
3
|
+
import { I as InitWalletResponse } from './index-COm59SPw.js';
|
|
4
|
+
export { a6 as BroadcastConfig, a7 as BroadcastResult, C as CreateLightningInvoiceParams, U as DEFAULT_FEE_SATS, D as DepositParams, a4 as FeeBumpTxChain, a3 as FeeBumpTxPackage, a2 as FeeRate, a0 as LeafInfo, P as PayLightningInvoiceParams, c as SparkWalletEvents, S as SparkWalletProps, b as TokenBalanceMap, a as TokenMetadata, T as TransferParams, a5 as TxChain, a1 as Utxo, t as addPrivateKeys, q as addPublicKeys, e as applyAdaptorToSignature, r as applyAdditiveTweakToPublicKey, N as calculateAvailableTokenAmount, O as checkIfSelectedOutputsAreAvailable, Z as checkIfValidSequence, B as collectResponses, f as computeTaprootKeyNoScript, ab as constructFeeBumpTx, aa as constructUnilateralExitFeeBumpPackages, a9 as constructUnilateralExitTxs, W as createRefundTx, K as createSigningCommitment, F as createSigningNonce, M as decodeBytesToSigningCommitment, J as decodeBytesToSigningNonce, L as encodeSigningCommitmentToBytes, H as encodeSigningNonceToBytes, Q as filterTokenBalanceForTokenPublicKey, d as generateAdaptorFromSignature, g as generateSignatureFromExistingAdaptor, X as getCurrentTimelock, $ as getEphemeralAnchorOutput, y as getLatestDepositTxId, _ as getNextTransactionSequence, j as getP2TRAddressFromPkScript, i as getP2TRAddressFromPublicKey, h as getP2TRScriptFromPublicKey, k as getP2WPKHAddressFromPublicKey, E as getRandomSigningNonce, n as getSigHashFromTx, G as getSigningCommitmentFromNonce, ac as getSparkAddressFromTaproot, Y as getTransactionSequence, R as getTransferPackageSigningPayload, m as getTxFromRawTxBytes, l as getTxFromRawTxHex, o as getTxId, p as getTxIdNoReverse, a8 as isEphemeralAnchorOutput, z as isTxBroadcast, x as lastKeyWithTarget, V as maybeApplyFee, A as proofOfPossessionMessageHashForDepositAddress, u as subtractPrivateKeys, s as subtractPublicKeys, w as sumOfPrivateKeys, v as validateOutboundAdaptorSignature } from './index-COm59SPw.js';
|
|
5
|
+
export { L as LRC_WALLET_NETWORK, c as LRC_WALLET_NETWORK_TYPE, N as Network, b as NetworkToProto, a as NetworkType, g as getNetwork, d as getNetworkFromAddress, e as getNetworkFromString } from './network-hynb7iTZ.js';
|
|
6
|
+
export { V as VerifiableSecretShare, d as bigIntToPrivateKey, c as computerLagrangeCoefficients, e as evaluatePolynomial, f as fieldDiv, a as generatePolynomialForSecretSharing, g as getRandomBigInt, m as modInverse, r as recoverSecret, s as splitSecret, b as splitSecretWithProofs, v as validateShare } from './signer-BVZJXcq7.js';
|
|
7
|
+
import './RequestLightningSendInput-CN6BNg_g.js';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import './BitcoinNetwork-TnABML0T.js';
|
|
10
10
|
import './LightningSendFeeEstimateInput-BgOhEAI-.js';
|
|
11
|
-
import './spark-
|
|
11
|
+
import './spark-DbzGfse6.js';
|
|
12
12
|
import '@bufbuild/protobuf/wire';
|
|
13
13
|
import 'nice-grpc-common';
|
|
14
14
|
import './services/config.js';
|
|
@@ -23,7 +23,7 @@ import './proto/lrc20.js';
|
|
|
23
23
|
import '@scure/btc-signer';
|
|
24
24
|
import 'eventemitter3';
|
|
25
25
|
import './address/index.js';
|
|
26
|
-
import './sdk-types-
|
|
26
|
+
import './sdk-types-CKBsylfW.js';
|
|
27
27
|
import '@scure/btc-signer/psbt';
|
|
28
28
|
import 'bitcoinjs-lib';
|
|
29
29
|
import '@scure/bip32';
|