@buildonspark/spark-sdk 0.1.43 → 0.1.44
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 +7 -0
- package/dist/{RequestLightningSendInput-Na1mHdWg.d.cts → RequestLightningSendInput-BxbCtwpV.d.cts} +43 -4
- package/dist/{RequestLightningSendInput-D7fZdT4A.d.ts → RequestLightningSendInput-RGel43ks.d.ts} +43 -4
- package/dist/address/index.d.cts +2 -2
- package/dist/address/index.d.ts +2 -2
- package/dist/address/index.js +2 -2
- package/dist/{chunk-M6A4KFIG.js → chunk-4Q2ZDYYU.js} +332 -221
- package/dist/{chunk-WWOTVNPP.js → chunk-A2ZLMH6I.js} +323 -142
- package/dist/{chunk-VA7MV4MZ.js → chunk-B3AMIGJG.js} +1 -1
- package/dist/{chunk-DQYKQJRZ.js → chunk-CIZNCBKE.js} +29 -9
- package/dist/{chunk-BUTZWYBW.js → chunk-DAXGVPVM.js} +2 -2
- package/dist/{chunk-DOA6QXYQ.js → chunk-EKFD62HN.js} +2 -1
- package/dist/{chunk-TIUBYNN5.js → chunk-HTMXTJRK.js} +1 -1
- package/dist/{chunk-TOSP3INR.js → chunk-I54FARY2.js} +4 -2
- package/dist/{chunk-MIVX3GHD.js → chunk-K4BJARWM.js} +1 -1
- package/dist/{chunk-O4RYNJNB.js → chunk-KEKGSH7B.js} +1 -1
- package/dist/{chunk-GYQR4B4P.js → chunk-NBCNYDWJ.js} +2 -2
- package/dist/{chunk-ABZA6R5S.js → chunk-SQKXGAIR.js} +1 -1
- package/dist/{chunk-VFJQNBFX.js → chunk-UBT6EDVJ.js} +5 -2
- package/dist/{chunk-HRQRRDSS.js → chunk-WPTRVD2V.js} +3 -3
- package/dist/{chunk-IRW5TWMH.js → chunk-XX4RRWOX.js} +5 -5
- package/dist/graphql/objects/index.d.cts +5 -43
- package/dist/graphql/objects/index.d.ts +5 -43
- package/dist/graphql/objects/index.js +1 -1
- package/dist/{index-BJOc8Ur-.d.cts → index-CZmDdSts.d.cts} +24 -10
- package/dist/{index-7RYRH5wc.d.ts → index-ClIRO_3y.d.ts} +24 -10
- package/dist/index.cjs +827 -414
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15 -15
- package/dist/index.node.cjs +830 -417
- package/dist/index.node.d.cts +7 -7
- package/dist/index.node.d.ts +7 -7
- package/dist/index.node.js +18 -18
- package/dist/native/index.cjs +827 -414
- package/dist/native/index.d.cts +88 -23
- package/dist/native/index.d.ts +88 -23
- package/dist/native/index.js +819 -407
- package/dist/{network-D5lKssVl.d.cts → network-CfxLnaot.d.cts} +1 -1
- package/dist/{network-xkBSpaTn.d.ts → network-CroCOQ0B.d.ts} +1 -1
- package/dist/proto/lrc20.d.cts +1 -1
- package/dist/proto/lrc20.d.ts +1 -1
- package/dist/proto/lrc20.js +2 -2
- package/dist/proto/spark.cjs +332 -221
- package/dist/proto/spark.d.cts +1 -1
- package/dist/proto/spark.d.ts +1 -1
- package/dist/proto/spark.js +3 -5
- package/dist/proto/spark_token.cjs +149 -9
- package/dist/proto/spark_token.d.cts +1 -1
- package/dist/proto/spark_token.d.ts +1 -1
- package/dist/proto/spark_token.js +2 -2
- package/dist/{sdk-types-B-q9py_P.d.cts → sdk-types-BeCBoozO.d.cts} +1 -1
- package/dist/{sdk-types-BPoPgzda.d.ts → sdk-types-CTbTdDbE.d.ts} +1 -1
- package/dist/services/config.cjs +7 -3
- 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 +334 -218
- package/dist/services/connection.d.cts +4 -4
- package/dist/services/connection.d.ts +4 -4
- package/dist/services/connection.js +4 -4
- package/dist/services/index.cjs +364 -227
- package/dist/services/index.d.cts +4 -4
- package/dist/services/index.d.ts +4 -4
- package/dist/services/index.js +9 -9
- package/dist/services/lrc-connection.cjs +5 -2
- package/dist/services/lrc-connection.d.cts +4 -4
- package/dist/services/lrc-connection.d.ts +4 -4
- package/dist/services/lrc-connection.js +4 -4
- package/dist/services/token-transactions.cjs +28 -8
- package/dist/services/token-transactions.d.cts +4 -4
- package/dist/services/token-transactions.d.ts +4 -4
- package/dist/services/token-transactions.js +3 -3
- package/dist/services/wallet-config.cjs +2 -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 +5 -2
- 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-wqesWifN.d.ts → signer-D7vfYik9.d.ts} +1 -1
- package/dist/{signer-IO3oMRNj.d.cts → signer-DaY8c60s.d.cts} +1 -1
- package/dist/{spark-CDm4gqS6.d.ts → spark-C4ZrsgjC.d.cts} +47 -29
- package/dist/{spark-CDm4gqS6.d.cts → spark-C4ZrsgjC.d.ts} +47 -29
- package/dist/types/index.cjs +331 -219
- package/dist/types/index.d.cts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +3 -3
- package/dist/utils/index.cjs +298 -28
- package/dist/utils/index.d.cts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.js +6 -6
- package/package.json +1 -1
- package/src/constants.ts +5 -1
- package/src/graphql/client.ts +28 -0
- package/src/graphql/mutations/RequestCoopExit.ts +6 -0
- package/src/graphql/mutations/RequestSwapLeaves.ts +2 -0
- package/src/graphql/queries/GetCoopExitFeeQuote.ts +20 -0
- package/src/proto/spark.ts +454 -322
- package/src/services/token-transactions.ts +12 -0
- package/src/services/transfer.ts +0 -3
- package/src/services/wallet-config.ts +1 -0
- package/src/spark-wallet/spark-wallet.node.ts +3 -3
- package/src/spark-wallet/spark-wallet.ts +301 -125
- package/src/tests/integration/deposit.test.ts +16 -0
- package/src/tests/integration/ssp/coop-exit.test.ts +85 -21
- package/src/tests/integration/ssp/swap.test.ts +47 -0
- package/src/tests/tokens.test.ts +3 -2
- package/src/utils/token-hashing.ts +28 -10
- package/src/utils/transaction.ts +2 -2
- package/src/logger.ts +0 -3
|
@@ -3,18 +3,18 @@ export { TokenTransactionService } from './token-transactions.cjs';
|
|
|
3
3
|
export { ConnectionManager } from './connection.cjs';
|
|
4
4
|
export { ConfigOptions, ELECTRS_CREDENTIALS, LOCAL_WALLET_CONFIG, LOCAL_WALLET_CONFIG_ECDSA, LOCAL_WALLET_CONFIG_SCHNORR, MAINNET_WALLET_CONFIG, REGTEST_WALLET_CONFIG, SigningOperator, getElectrsUrl, getLocalSigningOperators, getLrc20NodeUrl, getLrc20Url, getSspIdentityPublicKey, getSspSchemaEndpoint, getSspUrl } from './wallet-config.cjs';
|
|
5
5
|
import '@buildonspark/lrc20-sdk';
|
|
6
|
-
import '../RequestLightningSendInput-
|
|
6
|
+
import '../RequestLightningSendInput-BxbCtwpV.cjs';
|
|
7
7
|
import '@lightsparkdev/core';
|
|
8
8
|
import '../BitcoinNetwork-TnABML0T.cjs';
|
|
9
|
-
import '../signer-
|
|
9
|
+
import '../signer-DaY8c60s.cjs';
|
|
10
10
|
import '@scure/bip32';
|
|
11
|
-
import '../spark-
|
|
11
|
+
import '../spark-C4ZrsgjC.cjs';
|
|
12
12
|
import '@bufbuild/protobuf/wire';
|
|
13
13
|
import 'nice-grpc-common';
|
|
14
14
|
import '@scure/btc-signer';
|
|
15
15
|
import 'bitcoinjs-lib';
|
|
16
16
|
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
17
|
-
import '../network-
|
|
17
|
+
import '../network-CfxLnaot.cjs';
|
|
18
18
|
import '../proto/spark_token.cjs';
|
|
19
19
|
import 'nice-grpc';
|
|
20
20
|
import 'nice-grpc-web';
|
package/dist/services/index.d.ts
CHANGED
|
@@ -3,18 +3,18 @@ export { TokenTransactionService } from './token-transactions.js';
|
|
|
3
3
|
export { ConnectionManager } from './connection.js';
|
|
4
4
|
export { ConfigOptions, ELECTRS_CREDENTIALS, LOCAL_WALLET_CONFIG, LOCAL_WALLET_CONFIG_ECDSA, LOCAL_WALLET_CONFIG_SCHNORR, MAINNET_WALLET_CONFIG, REGTEST_WALLET_CONFIG, SigningOperator, getElectrsUrl, getLocalSigningOperators, getLrc20NodeUrl, getLrc20Url, getSspIdentityPublicKey, getSspSchemaEndpoint, getSspUrl } from './wallet-config.js';
|
|
5
5
|
import '@buildonspark/lrc20-sdk';
|
|
6
|
-
import '../RequestLightningSendInput-
|
|
6
|
+
import '../RequestLightningSendInput-RGel43ks.js';
|
|
7
7
|
import '@lightsparkdev/core';
|
|
8
8
|
import '../BitcoinNetwork-TnABML0T.js';
|
|
9
|
-
import '../signer-
|
|
9
|
+
import '../signer-D7vfYik9.js';
|
|
10
10
|
import '@scure/bip32';
|
|
11
|
-
import '../spark-
|
|
11
|
+
import '../spark-C4ZrsgjC.js';
|
|
12
12
|
import '@bufbuild/protobuf/wire';
|
|
13
13
|
import 'nice-grpc-common';
|
|
14
14
|
import '@scure/btc-signer';
|
|
15
15
|
import 'bitcoinjs-lib';
|
|
16
16
|
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
17
|
-
import '../network-
|
|
17
|
+
import '../network-CroCOQ0B.js';
|
|
18
18
|
import '../proto/spark_token.js';
|
|
19
19
|
import 'nice-grpc';
|
|
20
20
|
import 'nice-grpc-web';
|
package/dist/services/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConnectionManager
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WPTRVD2V.js";
|
|
4
4
|
import {
|
|
5
5
|
TokenTransactionService
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-CIZNCBKE.js";
|
|
7
7
|
import "../chunk-6AFUC5M2.js";
|
|
8
8
|
import "../chunk-L3EHBOUX.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-KEKGSH7B.js";
|
|
10
|
+
import "../chunk-B3AMIGJG.js";
|
|
11
11
|
import {
|
|
12
12
|
WalletConfigService
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-DAXGVPVM.js";
|
|
14
14
|
import "../chunk-Z5HIAYFT.js";
|
|
15
15
|
import {
|
|
16
16
|
ELECTRS_CREDENTIALS,
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
getSspIdentityPublicKey,
|
|
27
27
|
getSspSchemaEndpoint,
|
|
28
28
|
getSspUrl
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-EKFD62HN.js";
|
|
30
30
|
import "../chunk-HMLOC6TE.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-4Q2ZDYYU.js";
|
|
32
|
+
import "../chunk-HTMXTJRK.js";
|
|
33
|
+
import "../chunk-UBT6EDVJ.js";
|
|
34
34
|
import "../chunk-NSJF5F5O.js";
|
|
35
35
|
import "../chunk-QNNSEJ4P.js";
|
|
36
36
|
import "../chunk-VTUGIIWI.js";
|
|
@@ -240,9 +240,12 @@ init_buffer();
|
|
|
240
240
|
var import_core = require("@lightsparkdev/core");
|
|
241
241
|
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
242
242
|
var isBun = globalThis.Bun !== void 0;
|
|
243
|
-
var packageVersion = true ? "0.1.
|
|
243
|
+
var packageVersion = true ? "0.1.44" : "unknown";
|
|
244
244
|
var baseEnvStr = "unknown";
|
|
245
|
-
if (
|
|
245
|
+
if (isBun) {
|
|
246
|
+
const bunVersion = "version" in globalThis.Bun ? globalThis.Bun.version : "unknown-version";
|
|
247
|
+
baseEnvStr = `bun/${bunVersion}`;
|
|
248
|
+
} else if (import_core.isNode) {
|
|
246
249
|
baseEnvStr = `node/${process.version}`;
|
|
247
250
|
} else if (isReactNative) {
|
|
248
251
|
baseEnvStr = "react-native";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { SparkServiceClient } from '../proto/lrc20.cjs';
|
|
2
2
|
import { WalletConfigService } from './config.cjs';
|
|
3
|
-
import '../spark-
|
|
3
|
+
import '../spark-C4ZrsgjC.cjs';
|
|
4
4
|
import '@bufbuild/protobuf/wire';
|
|
5
5
|
import 'nice-grpc-common';
|
|
6
6
|
import '@buildonspark/lrc20-sdk';
|
|
7
|
-
import '../RequestLightningSendInput-
|
|
7
|
+
import '../RequestLightningSendInput-BxbCtwpV.cjs';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import '../BitcoinNetwork-TnABML0T.cjs';
|
|
10
|
-
import '../signer-
|
|
10
|
+
import '../signer-DaY8c60s.cjs';
|
|
11
11
|
import '@scure/bip32';
|
|
12
12
|
import '@scure/btc-signer';
|
|
13
13
|
import 'bitcoinjs-lib';
|
|
14
14
|
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
15
|
-
import '../network-
|
|
15
|
+
import '../network-CfxLnaot.cjs';
|
|
16
16
|
import './wallet-config.cjs';
|
|
17
17
|
|
|
18
18
|
declare class Lrc20ConnectionManager {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { SparkServiceClient } from '../proto/lrc20.js';
|
|
2
2
|
import { WalletConfigService } from './config.js';
|
|
3
|
-
import '../spark-
|
|
3
|
+
import '../spark-C4ZrsgjC.js';
|
|
4
4
|
import '@bufbuild/protobuf/wire';
|
|
5
5
|
import 'nice-grpc-common';
|
|
6
6
|
import '@buildonspark/lrc20-sdk';
|
|
7
|
-
import '../RequestLightningSendInput-
|
|
7
|
+
import '../RequestLightningSendInput-RGel43ks.js';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import '../BitcoinNetwork-TnABML0T.js';
|
|
10
|
-
import '../signer-
|
|
10
|
+
import '../signer-D7vfYik9.js';
|
|
11
11
|
import '@scure/bip32';
|
|
12
12
|
import '@scure/btc-signer';
|
|
13
13
|
import 'bitcoinjs-lib';
|
|
14
14
|
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
15
|
-
import '../network-
|
|
15
|
+
import '../network-CroCOQ0B.js';
|
|
16
16
|
import './wallet-config.js';
|
|
17
17
|
|
|
18
18
|
declare class Lrc20ConnectionManager {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Lrc20ConnectionManager
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-NBCNYDWJ.js";
|
|
4
|
+
import "../chunk-SQKXGAIR.js";
|
|
5
|
+
import "../chunk-4Q2ZDYYU.js";
|
|
6
|
+
import "../chunk-UBT6EDVJ.js";
|
|
7
7
|
import "../chunk-GSI4OLXZ.js";
|
|
8
8
|
import "../chunk-MVRQ5US7.js";
|
|
9
9
|
export {
|
|
@@ -650,17 +650,30 @@ function hashTokenTransactionV1(tokenTransaction, partialHash = false) {
|
|
|
650
650
|
);
|
|
651
651
|
hashObj.update(networkBytes);
|
|
652
652
|
allHashes.push(hashObj.digest());
|
|
653
|
-
const
|
|
654
|
-
const
|
|
655
|
-
const
|
|
656
|
-
new
|
|
653
|
+
const clientTimestampHashObj = import_sha2.sha256.create();
|
|
654
|
+
const clientCreatedTs = tokenTransaction.clientCreatedTimestamp;
|
|
655
|
+
const clientUnixTime = clientCreatedTs ? Math.floor(clientCreatedTs.getTime() / 1e3) : 0;
|
|
656
|
+
const clientTimestampBytes = new Uint8Array(8);
|
|
657
|
+
new DataView(clientTimestampBytes.buffer).setBigUint64(
|
|
657
658
|
0,
|
|
658
|
-
BigInt(
|
|
659
|
+
BigInt(clientUnixTime),
|
|
659
660
|
false
|
|
660
|
-
// false for big-endian
|
|
661
661
|
);
|
|
662
|
-
|
|
663
|
-
allHashes.push(
|
|
662
|
+
clientTimestampHashObj.update(clientTimestampBytes);
|
|
663
|
+
allHashes.push(clientTimestampHashObj.digest());
|
|
664
|
+
if (!partialHash) {
|
|
665
|
+
const expiryHashObj = import_sha2.sha256.create();
|
|
666
|
+
const expiryTimeBytes = new Uint8Array(8);
|
|
667
|
+
const expiryUnixTime = tokenTransaction.expiryTime ? Math.floor(tokenTransaction.expiryTime.getTime() / 1e3) : 0;
|
|
668
|
+
new DataView(expiryTimeBytes.buffer).setBigUint64(
|
|
669
|
+
0,
|
|
670
|
+
BigInt(expiryUnixTime),
|
|
671
|
+
false
|
|
672
|
+
// false for big-endian
|
|
673
|
+
);
|
|
674
|
+
expiryHashObj.update(expiryTimeBytes);
|
|
675
|
+
allHashes.push(expiryHashObj.digest());
|
|
676
|
+
}
|
|
664
677
|
const finalHashObj = import_sha2.sha256.create();
|
|
665
678
|
const concatenatedHashes = new Uint8Array(
|
|
666
679
|
allHashes.reduce((sum, hash) => sum + hash.length, 0)
|
|
@@ -1516,6 +1529,9 @@ var TokenTransactionService = class {
|
|
|
1516
1529
|
return txId;
|
|
1517
1530
|
}
|
|
1518
1531
|
async constructTransferTokenTransactionV0(selectedOutputs, tokenOutputData) {
|
|
1532
|
+
selectedOutputs.sort(
|
|
1533
|
+
(a, b) => a.previousTransactionVout - b.previousTransactionVout
|
|
1534
|
+
);
|
|
1519
1535
|
const availableTokenAmount = calculateAvailableTokenAmount(selectedOutputs);
|
|
1520
1536
|
const totalRequestedAmount = tokenOutputData.reduce(
|
|
1521
1537
|
(sum, output) => sum + output.tokenAmount,
|
|
@@ -1551,6 +1567,9 @@ var TokenTransactionService = class {
|
|
|
1551
1567
|
};
|
|
1552
1568
|
}
|
|
1553
1569
|
async constructTransferTokenTransaction(selectedOutputs, tokenOutputData) {
|
|
1570
|
+
selectedOutputs.sort(
|
|
1571
|
+
(a, b) => a.previousTransactionVout - b.previousTransactionVout
|
|
1572
|
+
);
|
|
1554
1573
|
const availableTokenAmount = calculateAvailableTokenAmount(selectedOutputs);
|
|
1555
1574
|
const totalRequestedAmount = tokenOutputData.reduce(
|
|
1556
1575
|
(sum, output) => sum + output.tokenAmount,
|
|
@@ -2017,6 +2036,7 @@ var TokenTransactionService = class {
|
|
|
2017
2036
|
await coordinatorClient.commit_transaction(
|
|
2018
2037
|
{
|
|
2019
2038
|
finalTokenTransaction,
|
|
2039
|
+
finalTokenTransactionHash,
|
|
2020
2040
|
inputTtxoSignaturesPerOperator,
|
|
2021
2041
|
ownerIdentityPublicKey: await this.config.signer.getIdentityPublicKey()
|
|
2022
2042
|
},
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { WalletConfigService } from './config.cjs';
|
|
2
|
-
import { j as OutputWithPreviousTransactionData, T as TokenTransaction } from '../spark-
|
|
2
|
+
import { j as OutputWithPreviousTransactionData, T as TokenTransaction } from '../spark-C4ZrsgjC.cjs';
|
|
3
3
|
import { ConnectionManager } from './connection.cjs';
|
|
4
4
|
import { TokenTransaction as TokenTransaction$1 } from '../proto/spark_token.cjs';
|
|
5
5
|
import './wallet-config.cjs';
|
|
6
6
|
import '@buildonspark/lrc20-sdk';
|
|
7
|
-
import '../RequestLightningSendInput-
|
|
7
|
+
import '../RequestLightningSendInput-BxbCtwpV.cjs';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import '../BitcoinNetwork-TnABML0T.cjs';
|
|
10
|
-
import '../signer-
|
|
10
|
+
import '../signer-DaY8c60s.cjs';
|
|
11
11
|
import '@scure/bip32';
|
|
12
12
|
import '@scure/btc-signer';
|
|
13
13
|
import 'bitcoinjs-lib';
|
|
14
14
|
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
15
|
-
import '../network-
|
|
15
|
+
import '../network-CfxLnaot.cjs';
|
|
16
16
|
import '@bufbuild/protobuf/wire';
|
|
17
17
|
import 'nice-grpc-common';
|
|
18
18
|
import 'nice-grpc';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { WalletConfigService } from './config.js';
|
|
2
|
-
import { j as OutputWithPreviousTransactionData, T as TokenTransaction } from '../spark-
|
|
2
|
+
import { j as OutputWithPreviousTransactionData, T as TokenTransaction } from '../spark-C4ZrsgjC.js';
|
|
3
3
|
import { ConnectionManager } from './connection.js';
|
|
4
4
|
import { TokenTransaction as TokenTransaction$1 } from '../proto/spark_token.js';
|
|
5
5
|
import './wallet-config.js';
|
|
6
6
|
import '@buildonspark/lrc20-sdk';
|
|
7
|
-
import '../RequestLightningSendInput-
|
|
7
|
+
import '../RequestLightningSendInput-RGel43ks.js';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import '../BitcoinNetwork-TnABML0T.js';
|
|
10
|
-
import '../signer-
|
|
10
|
+
import '../signer-D7vfYik9.js';
|
|
11
11
|
import '@scure/bip32';
|
|
12
12
|
import '@scure/btc-signer';
|
|
13
13
|
import 'bitcoinjs-lib';
|
|
14
14
|
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
15
|
-
import '../network-
|
|
15
|
+
import '../network-CroCOQ0B.js';
|
|
16
16
|
import '@bufbuild/protobuf/wire';
|
|
17
17
|
import 'nice-grpc-common';
|
|
18
18
|
import 'nice-grpc';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TokenTransactionService
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CIZNCBKE.js";
|
|
4
4
|
import "../chunk-6AFUC5M2.js";
|
|
5
5
|
import "../chunk-L3EHBOUX.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-KEKGSH7B.js";
|
|
7
|
+
import "../chunk-4Q2ZDYYU.js";
|
|
8
8
|
import "../chunk-QNNSEJ4P.js";
|
|
9
9
|
import "../chunk-VTUGIIWI.js";
|
|
10
10
|
import "../chunk-GSI4OLXZ.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MayHaveLrc20WalletApiConfig, LRC20WalletApiConfig } from '@buildonspark/lrc20-sdk';
|
|
2
|
-
import { M as MayHaveSspClientOptions,
|
|
3
|
-
import { a as NetworkType } from '../network-
|
|
2
|
+
import { M as MayHaveSspClientOptions, J as SspClientOptions } from '../RequestLightningSendInput-BxbCtwpV.cjs';
|
|
3
|
+
import { a as NetworkType } from '../network-CfxLnaot.cjs';
|
|
4
4
|
import '@lightsparkdev/core';
|
|
5
5
|
import '../BitcoinNetwork-TnABML0T.cjs';
|
|
6
|
-
import '../signer-
|
|
6
|
+
import '../signer-DaY8c60s.cjs';
|
|
7
7
|
import '@scure/bip32';
|
|
8
|
-
import '../spark-
|
|
8
|
+
import '../spark-C4ZrsgjC.cjs';
|
|
9
9
|
import '@bufbuild/protobuf/wire';
|
|
10
10
|
import 'nice-grpc-common';
|
|
11
11
|
import '@scure/btc-signer';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MayHaveLrc20WalletApiConfig, LRC20WalletApiConfig } from '@buildonspark/lrc20-sdk';
|
|
2
|
-
import { M as MayHaveSspClientOptions,
|
|
3
|
-
import { a as NetworkType } from '../network-
|
|
2
|
+
import { M as MayHaveSspClientOptions, J as SspClientOptions } from '../RequestLightningSendInput-RGel43ks.js';
|
|
3
|
+
import { a as NetworkType } from '../network-CroCOQ0B.js';
|
|
4
4
|
import '@lightsparkdev/core';
|
|
5
5
|
import '../BitcoinNetwork-TnABML0T.js';
|
|
6
|
-
import '../signer-
|
|
6
|
+
import '../signer-D7vfYik9.js';
|
|
7
7
|
import '@scure/bip32';
|
|
8
|
-
import '../spark-
|
|
8
|
+
import '../spark-C4ZrsgjC.js';
|
|
9
9
|
import '@bufbuild/protobuf/wire';
|
|
10
10
|
import 'nice-grpc-common';
|
|
11
11
|
import '@scure/btc-signer';
|
package/dist/signer/signer.cjs
CHANGED
|
@@ -1135,9 +1135,12 @@ init_buffer();
|
|
|
1135
1135
|
var import_core = require("@lightsparkdev/core");
|
|
1136
1136
|
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
1137
1137
|
var isBun = globalThis.Bun !== void 0;
|
|
1138
|
-
var packageVersion = true ? "0.1.
|
|
1138
|
+
var packageVersion = true ? "0.1.44" : "unknown";
|
|
1139
1139
|
var baseEnvStr = "unknown";
|
|
1140
|
-
if (
|
|
1140
|
+
if (isBun) {
|
|
1141
|
+
const bunVersion = "version" in globalThis.Bun ? globalThis.Bun.version : "unknown-version";
|
|
1142
|
+
baseEnvStr = `bun/${bunVersion}`;
|
|
1143
|
+
} else if (import_core.isNode) {
|
|
1141
1144
|
baseEnvStr = `node/${process.version}`;
|
|
1142
1145
|
} else if (isReactNative) {
|
|
1143
1146
|
baseEnvStr = "react-native";
|
package/dist/signer/signer.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@scure/bip32';
|
|
2
|
-
import '../spark-
|
|
3
|
-
export { A as AggregateFrostParams, D as DefaultSparkSigner, k as SignFrostParams, h as SigningCommitment, i as SigningNonce, S as SparkSigner, l as SplitSecretWithProofsParams, j as TaprootOutputKeysGenerator, T as TaprootSparkSigner } from '../signer-
|
|
2
|
+
import '../spark-C4ZrsgjC.cjs';
|
|
3
|
+
export { A as AggregateFrostParams, D as DefaultSparkSigner, k as SignFrostParams, h as SigningCommitment, i as SigningNonce, S as SparkSigner, l as SplitSecretWithProofsParams, j as TaprootOutputKeysGenerator, T as TaprootSparkSigner } from '../signer-DaY8c60s.cjs';
|
|
4
4
|
export { PARITY, Receipt, TokenSigner, fromPrivateKey } from '@buildonspark/lrc20-sdk';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import 'bitcoinjs-lib';
|
package/dist/signer/signer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@scure/bip32';
|
|
2
|
-
import '../spark-
|
|
3
|
-
export { A as AggregateFrostParams, D as DefaultSparkSigner, k as SignFrostParams, h as SigningCommitment, i as SigningNonce, S as SparkSigner, l as SplitSecretWithProofsParams, j as TaprootOutputKeysGenerator, T as TaprootSparkSigner } from '../signer-
|
|
2
|
+
import '../spark-C4ZrsgjC.js';
|
|
3
|
+
export { A as AggregateFrostParams, D as DefaultSparkSigner, k as SignFrostParams, h as SigningCommitment, i as SigningNonce, S as SparkSigner, l as SplitSecretWithProofsParams, j as TaprootOutputKeysGenerator, T as TaprootSparkSigner } from '../signer-D7vfYik9.js';
|
|
4
4
|
export { PARITY, Receipt, TokenSigner, fromPrivateKey } from '@buildonspark/lrc20-sdk';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import 'bitcoinjs-lib';
|
package/dist/signer/signer.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
TaprootOutputKeysGenerator,
|
|
7
7
|
TaprootSparkSigner,
|
|
8
8
|
fromPrivateKey
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-HTMXTJRK.js";
|
|
10
|
+
import "../chunk-UBT6EDVJ.js";
|
|
11
11
|
import "../chunk-NSJF5F5O.js";
|
|
12
12
|
import "../chunk-QNNSEJ4P.js";
|
|
13
13
|
import "../chunk-VTUGIIWI.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HDKey } from '@scure/bip32';
|
|
2
|
-
import { d as TreeNode } from './spark-
|
|
2
|
+
import { d as TreeNode } from './spark-C4ZrsgjC.js';
|
|
3
3
|
import { TokenSigner, Receipt } from '@buildonspark/lrc20-sdk';
|
|
4
4
|
import { Transaction } from '@scure/btc-signer';
|
|
5
5
|
import { Psbt } from 'bitcoinjs-lib';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HDKey } from '@scure/bip32';
|
|
2
|
-
import { d as TreeNode } from './spark-
|
|
2
|
+
import { d as TreeNode } from './spark-C4ZrsgjC.cjs';
|
|
3
3
|
import { TokenSigner, Receipt } from '@buildonspark/lrc20-sdk';
|
|
4
4
|
import { Transaction } from '@scure/btc-signer';
|
|
5
5
|
import { Psbt } from 'bitcoinjs-lib';
|