@buildonspark/spark-sdk 0.1.22 → 0.1.23

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.
@@ -1,10 +1,6 @@
1
1
  import {
2
2
  getP2TRScriptFromPublicKey
3
3
  } from "./chunk-ASPK2HFV.js";
4
- import {
5
- ELECTRS_CREDENTIALS,
6
- getElectrsUrl
7
- } from "./chunk-TT5MFF6V.js";
8
4
  import {
9
5
  getNetworkFromAddress
10
6
  } from "./chunk-NGNWJXBO.js";
@@ -14,6 +10,10 @@ import {
14
10
  import {
15
11
  ValidationError
16
12
  } from "./chunk-7Z7Y2PCW.js";
13
+ import {
14
+ ELECTRS_CREDENTIALS,
15
+ getElectrsUrl
16
+ } from "./chunk-TT5MFF6V.js";
17
17
 
18
18
  // src/utils/mempool.ts
19
19
  async function getLatestDepositTxId(address) {
@@ -98,4 +98,4 @@ export {
98
98
  getEphemeralAnchorOutput,
99
99
  getLatestDepositTxId
100
100
  };
101
- //# sourceMappingURL=chunk-LI5VQWVO.js.map
101
+ //# sourceMappingURL=chunk-G5ADKRQI.js.map
@@ -1,8 +1,3 @@
1
- import {
2
- LOCAL_WALLET_CONFIG,
3
- MAINNET_WALLET_CONFIG,
4
- REGTEST_WALLET_CONFIG
5
- } from "./chunk-TT5MFF6V.js";
6
1
  import {
7
2
  DefaultSparkSigner
8
3
  } from "./chunk-QE6JYJ77.js";
@@ -13,6 +8,11 @@ import {
13
8
  import {
14
9
  ConfigurationError
15
10
  } from "./chunk-7Z7Y2PCW.js";
11
+ import {
12
+ LOCAL_WALLET_CONFIG,
13
+ MAINNET_WALLET_CONFIG,
14
+ REGTEST_WALLET_CONFIG
15
+ } from "./chunk-TT5MFF6V.js";
16
16
 
17
17
  // src/services/config.ts
18
18
  var WalletConfigService = class {
@@ -105,4 +105,4 @@ var WalletConfigService = class {
105
105
  export {
106
106
  WalletConfigService
107
107
  };
108
- //# sourceMappingURL=chunk-VTZVTLU4.js.map
108
+ //# sourceMappingURL=chunk-NXSLIDA6.js.map
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getLatestDepositTxId,
8
8
  getNextTransactionSequence,
9
9
  getTransactionSequence
10
- } from "./chunk-LI5VQWVO.js";
10
+ } from "./chunk-G5ADKRQI.js";
11
11
  import {
12
12
  computeTaprootKeyNoScript,
13
13
  getP2TRAddressFromPkScript,
@@ -53,10 +53,7 @@ import {
53
53
  } from "./chunk-CSNQ7B5H.js";
54
54
  import {
55
55
  WalletConfigService
56
- } from "./chunk-VTZVTLU4.js";
57
- import {
58
- ELECTRS_CREDENTIALS
59
- } from "./chunk-TT5MFF6V.js";
56
+ } from "./chunk-NXSLIDA6.js";
60
57
  import "./chunk-QE6JYJ77.js";
61
58
  import {
62
59
  LRC_WALLET_NETWORK,
@@ -130,6 +127,9 @@ import {
130
127
  SparkSDKError,
131
128
  ValidationError
132
129
  } from "./chunk-7Z7Y2PCW.js";
130
+ import {
131
+ ELECTRS_CREDENTIALS
132
+ } from "./chunk-TT5MFF6V.js";
133
133
  import {
134
134
  Buffer
135
135
  } from "./chunk-TNZ6QAWE.js";
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  WalletConfigService
3
- } from "../chunk-VTZVTLU4.js";
4
- import "../chunk-TT5MFF6V.js";
3
+ } from "../chunk-NXSLIDA6.js";
5
4
  import "../chunk-QE6JYJ77.js";
6
5
  import "../chunk-NGNWJXBO.js";
7
6
  import "../chunk-2TLUMISN.js";
@@ -10,6 +9,7 @@ import "../chunk-GPC7GYUG.js";
10
9
  import "../chunk-IBYIV3NW.js";
11
10
  import "../chunk-4GQZLBIR.js";
12
11
  import "../chunk-7Z7Y2PCW.js";
12
+ import "../chunk-TT5MFF6V.js";
13
13
  import "../chunk-TNZ6QAWE.js";
14
14
  export {
15
15
  WalletConfigService
@@ -1,21 +1,6 @@
1
1
  import {
2
2
  WalletConfigService
3
- } from "../chunk-VTZVTLU4.js";
4
- import {
5
- ELECTRS_CREDENTIALS,
6
- LOCAL_WALLET_CONFIG,
7
- LOCAL_WALLET_CONFIG_ECDSA,
8
- LOCAL_WALLET_CONFIG_SCHNORR,
9
- MAINNET_WALLET_CONFIG,
10
- REGTEST_WALLET_CONFIG,
11
- getElectrsUrl,
12
- getLocalSigningOperators,
13
- getLrc20NodeUrl,
14
- getLrc20Url,
15
- getSspIdentityPublicKey,
16
- getSspSchemaEndpoint,
17
- getSspUrl
18
- } from "../chunk-TT5MFF6V.js";
3
+ } from "../chunk-NXSLIDA6.js";
19
4
  import "../chunk-QE6JYJ77.js";
20
5
  import "../chunk-NGNWJXBO.js";
21
6
  import "../chunk-2TLUMISN.js";
@@ -31,6 +16,21 @@ import "../chunk-G53X6DO3.js";
31
16
  import "../chunk-IBYIV3NW.js";
32
17
  import "../chunk-4GQZLBIR.js";
33
18
  import "../chunk-7Z7Y2PCW.js";
19
+ import {
20
+ ELECTRS_CREDENTIALS,
21
+ LOCAL_WALLET_CONFIG,
22
+ LOCAL_WALLET_CONFIG_ECDSA,
23
+ LOCAL_WALLET_CONFIG_SCHNORR,
24
+ MAINNET_WALLET_CONFIG,
25
+ REGTEST_WALLET_CONFIG,
26
+ getElectrsUrl,
27
+ getLocalSigningOperators,
28
+ getLrc20NodeUrl,
29
+ getLrc20Url,
30
+ getSspIdentityPublicKey,
31
+ getSspSchemaEndpoint,
32
+ getSspUrl
33
+ } from "../chunk-TT5MFF6V.js";
34
34
  import "../chunk-TNZ6QAWE.js";
35
35
  export {
36
36
  ConnectionManager,
@@ -6,10 +6,7 @@ import {
6
6
  } from "../chunk-ASPK2HFV.js";
7
7
  import {
8
8
  WalletConfigService
9
- } from "../chunk-VTZVTLU4.js";
10
- import {
11
- LOCAL_WALLET_CONFIG
12
- } from "../chunk-TT5MFF6V.js";
9
+ } from "../chunk-NXSLIDA6.js";
13
10
  import "../chunk-QE6JYJ77.js";
14
11
  import {
15
12
  getNetwork
@@ -27,6 +24,9 @@ import "../chunk-4GQZLBIR.js";
27
24
  import {
28
25
  RPCError
29
26
  } from "../chunk-7Z7Y2PCW.js";
27
+ import {
28
+ LOCAL_WALLET_CONFIG
29
+ } from "../chunk-TT5MFF6V.js";
30
30
  import "../chunk-TNZ6QAWE.js";
31
31
 
32
32
  // src/tests/test-util.ts
@@ -4,7 +4,7 @@ import {
4
4
  getLatestDepositTxId,
5
5
  getNextTransactionSequence,
6
6
  getTransactionSequence
7
- } from "../chunk-LI5VQWVO.js";
7
+ } from "../chunk-G5ADKRQI.js";
8
8
  import {
9
9
  computeTaprootKeyNoScript,
10
10
  getP2TRAddressFromPkScript,
@@ -20,7 +20,6 @@ import {
20
20
  } from "../chunk-ASPK2HFV.js";
21
21
  import "../chunk-JYTR74T3.js";
22
22
  import "../chunk-XFLRFB5W.js";
23
- import "../chunk-TT5MFF6V.js";
24
23
  import {
25
24
  LRC_WALLET_NETWORK,
26
25
  LRC_WALLET_NETWORK_TYPE,
@@ -72,6 +71,7 @@ import {
72
71
  } from "../chunk-IBYIV3NW.js";
73
72
  import "../chunk-4GQZLBIR.js";
74
73
  import "../chunk-7Z7Y2PCW.js";
74
+ import "../chunk-TT5MFF6V.js";
75
75
  import "../chunk-TNZ6QAWE.js";
76
76
  export {
77
77
  LRC_WALLET_NETWORK,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildonspark/spark-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "author": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -72,6 +72,7 @@
72
72
  "crypto": false,
73
73
  "fs": false,
74
74
  "fs/promises": false,
75
+ "nice-grpc": "nice-grpc-web",
75
76
  "path": false,
76
77
  "url": false
77
78
  },
@@ -82,7 +83,7 @@
82
83
  "clean": "rm -rf dist",
83
84
  "circular-deps": "madge --circular --extensions ts,tsx src",
84
85
  "dev": "yarn build -- --watch",
85
- "depcheck": "depcheck --ignores=buffer,ts-proto,jest,ts-jest",
86
+ "depcheck": "depcheck --ignores=buffer,ts-proto,jest,ts-jest,publint",
86
87
  "docs": "typedoc src",
87
88
  "format:fix": "prettier src --write",
88
89
  "format": "prettier src --check",
@@ -90,7 +91,7 @@
90
91
  "lint:fix:continue": "eslint --fix . || exit 0",
91
92
  "lint:watch": "esw ./src -w --ext .ts,.tsx,.js --color",
92
93
  "lint": "eslint .",
93
- "package:checks": "yarn depcheck && yarn publint && yarn attw --pack . && echo \"\nPackage checks passed successfully!\"",
94
+ "package:checks": "yarn depcheck && yarn attw --pack . && echo \"\nPackage checks passed successfully!\"",
94
95
  "postversion": "yarn build",
95
96
  "test-cmd": "node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --detectOpenHandles --forceExit",
96
97
  "test": "yarn test-cmd src/tests/*.test.ts",
@@ -118,7 +119,7 @@
118
119
  },
119
120
  "dependencies": {
120
121
  "@bufbuild/protobuf": "^2.2.5",
121
- "@buildonspark/lrc20-sdk": "0.0.48",
122
+ "@buildonspark/lrc20-sdk": "0.0.49",
122
123
  "@lightsparkdev/core": "^1.4.0",
123
124
  "@noble/curves": "^1.8.0",
124
125
  "@noble/hashes": "^1.7.1",
@@ -0,0 +1,27 @@
1
+ export {
2
+ type CallOptions,
3
+ type ClientError,
4
+ type ClientMiddleware,
5
+ type ClientMiddlewareCall,
6
+ type ClientMiddlewareCallRequest,
7
+ type ClientMiddlewareCallResponse,
8
+ composeClientMiddleware,
9
+ type Metadata,
10
+ type MetadataConstructor,
11
+ type MetadataInit,
12
+ type MetadataValue,
13
+ type MethodDescriptor,
14
+ Status,
15
+ FetchTransport,
16
+ WebsocketTransport,
17
+ NodeHttpTransport,
18
+ createClientFactory,
19
+ createClient,
20
+ type Channel,
21
+ type Client,
22
+ type CompatServiceDefinition,
23
+ type NormalizedServiceDefinition,
24
+ type ServiceDefinition,
25
+ type DefaultCallOptions,
26
+ createChannel,
27
+ } from "nice-grpc-web";
@@ -0,0 +1,27 @@
1
+ export {
2
+ type CallOptions,
3
+ type ClientError,
4
+ type ClientMiddleware,
5
+ type ClientMiddlewareCall,
6
+ type ClientMiddlewareCallRequest,
7
+ type ClientMiddlewareCallResponse,
8
+ composeClientMiddleware,
9
+ type Metadata,
10
+ type MetadataConstructor,
11
+ type MetadataInit,
12
+ type MetadataValue,
13
+ type MethodDescriptor,
14
+ Status,
15
+ FetchTransport,
16
+ WebsocketTransport,
17
+ NodeHttpTransport,
18
+ createClientFactory,
19
+ createClient,
20
+ type Channel,
21
+ type Client,
22
+ type CompatServiceDefinition,
23
+ type NormalizedServiceDefinition,
24
+ type ServiceDefinition,
25
+ type DefaultCallOptions,
26
+ createChannel,
27
+ } from "nice-grpc-web";