@buildonspark/spark-sdk 0.1.41 → 0.1.43
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 +15 -0
- package/android/src/main/jniLibs/arm64-v8a/libuniffi_spark_frost.so +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libuniffi_spark_frost.so +0 -0
- package/android/src/main/jniLibs/x86/libuniffi_spark_frost.so +0 -0
- package/android/src/main/jniLibs/x86_64/libuniffi_spark_frost.so +0 -0
- package/dist/LightningSendFeeEstimateInput-BgOhEAI-.d.cts +10 -0
- package/dist/LightningSendFeeEstimateInput-BgOhEAI-.d.ts +10 -0
- package/dist/{RequestLightningSendInput-mXUWn_cp.d.ts → RequestLightningSendInput-D7fZdT4A.d.ts} +35 -16
- package/dist/{RequestLightningSendInput-DXcLoiCe.d.cts → RequestLightningSendInput-Na1mHdWg.d.cts} +35 -16
- package/dist/address/index.cjs +38 -7
- package/dist/address/index.d.cts +2 -2
- package/dist/address/index.d.ts +2 -2
- package/dist/address/index.js +3 -3
- package/dist/{chunk-ATEHMLKP.js → chunk-6AFUC5M2.js} +1 -1
- package/dist/{chunk-ZXDE2XMU.js → chunk-BUTZWYBW.js} +9 -6
- package/dist/{chunk-7EFSUADA.js → chunk-DOA6QXYQ.js} +1 -0
- package/dist/{chunk-J5W5Q2ZP.js → chunk-DQYKQJRZ.js} +291 -7
- package/dist/{chunk-TWF35O6M.js → chunk-GSI4OLXZ.js} +32 -1
- package/dist/{chunk-2ZXXLPG2.js → chunk-GYQR4B4P.js} +5 -4
- package/dist/{chunk-ROKY5KS4.js → chunk-HRQRRDSS.js} +53 -15
- package/dist/{chunk-YEZDPUFY.js → chunk-IRW5TWMH.js} +8 -8
- package/dist/{chunk-7VMYMQLF.js → chunk-NSJF5F5O.js} +1 -1
- package/dist/{chunk-TM4TOEOX.js → chunk-O4RYNJNB.js} +3 -3
- package/dist/{chunk-MGPRLH6Q.js → chunk-QNNSEJ4P.js} +1 -1
- package/dist/{chunk-UKT6OFLO.js → chunk-TIUBYNN5.js} +13 -7
- package/dist/{chunk-6YVPOQ2A.js → chunk-TOSP3INR.js} +235 -143
- package/dist/chunk-VFJQNBFX.js +21 -0
- package/dist/{chunk-KKSU7OZO.js → chunk-WWOTVNPP.js} +195 -67
- package/dist/{chunk-HK6LPV6Z.js → chunk-Z5HIAYFT.js} +1 -1
- package/dist/graphql/objects/index.cjs +229 -135
- package/dist/graphql/objects/index.d.cts +54 -9
- package/dist/graphql/objects/index.d.ts +54 -9
- package/dist/graphql/objects/index.js +3 -3
- package/dist/{index-OSDtPMmC.d.ts → index-7RYRH5wc.d.ts} +10 -8
- package/dist/{index-CFh4uWzi.d.cts → index-BJOc8Ur-.d.cts} +10 -8
- package/dist/index.cjs +790 -315
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +26 -26
- package/dist/index.node.cjs +790 -315
- package/dist/index.node.d.cts +9 -8
- package/dist/index.node.d.ts +9 -8
- package/dist/index.node.js +26 -26
- package/dist/native/index.cjs +812 -332
- package/dist/native/index.d.cts +53 -18
- package/dist/native/index.d.ts +53 -18
- package/dist/native/index.js +659 -181
- package/dist/{network-BiwBmoOg.d.cts → network-D5lKssVl.d.cts} +1 -1
- package/dist/{network-BF2GYPye.d.ts → network-xkBSpaTn.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-CfhdFnsA.d.cts → sdk-types-B-q9py_P.d.cts} +1 -1
- package/dist/{sdk-types-MnQrHolg.d.ts → sdk-types-BPoPgzda.d.ts} +1 -1
- package/dist/services/config.cjs +118 -69
- package/dist/services/config.d.cts +6 -4
- package/dist/services/config.d.ts +6 -4
- package/dist/services/config.js +9 -9
- package/dist/services/connection.cjs +95 -15
- package/dist/services/connection.d.cts +6 -4
- package/dist/services/connection.d.ts +6 -4
- package/dist/services/connection.js +3 -3
- package/dist/services/index.cjs +487 -117
- package/dist/services/index.d.cts +5 -4
- package/dist/services/index.d.ts +5 -4
- package/dist/services/index.js +19 -19
- package/dist/services/lrc-connection.cjs +50 -7
- package/dist/services/lrc-connection.d.cts +5 -4
- package/dist/services/lrc-connection.d.ts +5 -4
- package/dist/services/lrc-connection.js +3 -3
- package/dist/services/token-transactions.cjs +351 -36
- package/dist/services/token-transactions.d.cts +5 -4
- package/dist/services/token-transactions.d.ts +5 -4
- package/dist/services/token-transactions.js +6 -6
- package/dist/services/wallet-config.cjs +1 -0
- package/dist/services/wallet-config.d.cts +6 -4
- package/dist/services/wallet-config.d.ts +6 -4
- package/dist/services/wallet-config.js +1 -1
- package/dist/signer/signer.cjs +117 -64
- package/dist/signer/signer.d.cts +4 -3
- package/dist/signer/signer.d.ts +4 -3
- package/dist/signer/signer.js +15 -7
- package/dist/{signer-CylxIujU.d.ts → signer-IO3oMRNj.d.cts} +2 -1
- package/dist/{signer-BhLS7SYR.d.cts → signer-wqesWifN.d.ts} +2 -1
- package/dist/{spark-DjR1b3TC.d.cts → spark-CDm4gqS6.d.cts} +1 -1
- package/dist/{spark-DjR1b3TC.d.ts → spark-CDm4gqS6.d.ts} +1 -1
- package/dist/types/index.cjs +282 -188
- package/dist/types/index.d.cts +7 -6
- package/dist/types/index.d.ts +7 -6
- package/dist/types/index.js +3 -3
- package/dist/utils/index.cjs +90 -58
- package/dist/utils/index.d.cts +6 -5
- package/dist/utils/index.d.ts +6 -5
- package/dist/utils/index.js +16 -16
- package/ios/spark_frostFFI.xcframework/ios-arm64/SparkFrost +0 -0
- package/ios/spark_frostFFI.xcframework/ios-arm64/spark_frostFFI.framework/spark_frostFFI +0 -0
- package/ios/spark_frostFFI.xcframework/ios-arm64_x86_64-simulator/SparkFrost +0 -0
- package/ios/spark_frostFFI.xcframework/ios-arm64_x86_64-simulator/spark_frostFFI.framework/spark_frostFFI +0 -0
- package/ios/spark_frostFFI.xcframework/macos-arm64_x86_64/spark_frostFFI.framework/spark_frostFFI +0 -0
- package/package.json +4 -4
- package/src/constants.ts +21 -0
- package/src/errors/base.ts +43 -1
- package/src/graphql/client.ts +4 -0
- package/src/graphql/mutations/RequestLightningSend.ts +2 -0
- package/src/graphql/objects/ClaimStaticDepositInput.ts +1 -1
- package/src/graphql/objects/ClaimStaticDepositStatus.ts +4 -2
- package/src/graphql/objects/Connection.ts +7 -7
- package/src/graphql/objects/CoopExitFeeEstimate.ts +1 -1
- package/src/graphql/objects/CoopExitFeeQuote.ts +202 -0
- package/src/graphql/objects/CoopExitFeeQuoteInput.ts +41 -0
- package/src/graphql/objects/CoopExitFeeQuoteOutput.ts +45 -0
- package/src/graphql/objects/CoopExitRequest.ts +21 -0
- package/src/graphql/objects/CurrencyUnit.ts +26 -28
- package/src/graphql/objects/Entity.ts +84 -0
- package/src/graphql/objects/Invoice.ts +2 -2
- package/src/graphql/objects/Leaf.ts +1 -1
- package/src/graphql/objects/LeavesSwapFeeEstimateOutput.ts +1 -1
- package/src/graphql/objects/LeavesSwapRequest.ts +6 -0
- package/src/graphql/objects/LightningReceiveRequest.ts +11 -0
- package/src/graphql/objects/LightningSendFeeEstimateInput.ts +8 -0
- package/src/graphql/objects/LightningSendFeeEstimateOutput.ts +1 -1
- package/src/graphql/objects/LightningSendRequest.ts +3 -0
- package/src/graphql/objects/RequestCoopExitInput.ts +8 -0
- package/src/graphql/objects/RequestLeavesSwapInput.ts +5 -1
- package/src/graphql/objects/RequestLightningReceiveInput.ts +9 -2
- package/src/graphql/objects/RequestLightningSendInput.ts +8 -0
- package/src/graphql/objects/SparkCoopExitRequestStatus.ts +2 -0
- package/src/graphql/objects/SparkUserRequestType.ts +2 -0
- package/src/graphql/objects/SparkWalletUser.ts +20 -0
- package/src/graphql/objects/UserRequest.ts +32 -0
- package/src/graphql/objects/VerifyChallengeInput.ts +1 -1
- package/src/graphql/objects/index.ts +12 -3
- package/src/graphql/queries/LightningSendFeeEstimate.ts +2 -0
- package/src/logger.ts +3 -0
- package/src/native/index.ts +1 -0
- package/src/services/config.ts +4 -0
- package/src/services/connection.ts +68 -29
- package/src/services/coop-exit.ts +1 -1
- package/src/services/lightning.ts +25 -1
- package/src/services/lrc-connection.ts +3 -3
- package/src/services/token-transactions.ts +6 -2
- package/src/services/wallet-config.ts +2 -0
- package/src/signer/signer.ts +4 -1
- package/src/spark-wallet/spark-wallet.ts +51 -15
- package/src/spark-wallet/types.ts +1 -0
- package/src/tests/errors.test.ts +58 -0
- package/src/tests/integration/lightning.test.ts +184 -0
- package/src/tests/integration/ssp/static_deposit.test.ts +1 -2
- package/src/tests/tokens.test.ts +52 -3
- package/src/utils/token-hashing.ts +335 -1
- package/dist/LightningSendFeeEstimateInput-CJvPnCSB.d.cts +0 -5
- package/dist/LightningSendFeeEstimateInput-CJvPnCSB.d.ts +0 -5
- package/dist/chunk-HKAKEKCE.js +0 -8
|
@@ -3,17 +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-Na1mHdWg.cjs';
|
|
7
7
|
import '@lightsparkdev/core';
|
|
8
8
|
import '../BitcoinNetwork-TnABML0T.cjs';
|
|
9
|
-
import '../signer-
|
|
9
|
+
import '../signer-IO3oMRNj.cjs';
|
|
10
10
|
import '@scure/bip32';
|
|
11
|
-
import '../spark-
|
|
11
|
+
import '../spark-CDm4gqS6.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
|
-
import '
|
|
16
|
+
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
17
|
+
import '../network-D5lKssVl.cjs';
|
|
17
18
|
import '../proto/spark_token.cjs';
|
|
18
19
|
import 'nice-grpc';
|
|
19
20
|
import 'nice-grpc-web';
|
package/dist/services/index.d.ts
CHANGED
|
@@ -3,17 +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-D7fZdT4A.js';
|
|
7
7
|
import '@lightsparkdev/core';
|
|
8
8
|
import '../BitcoinNetwork-TnABML0T.js';
|
|
9
|
-
import '../signer-
|
|
9
|
+
import '../signer-wqesWifN.js';
|
|
10
10
|
import '@scure/bip32';
|
|
11
|
-
import '../spark-
|
|
11
|
+
import '../spark-CDm4gqS6.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
|
-
import '
|
|
16
|
+
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
17
|
+
import '../network-xkBSpaTn.js';
|
|
17
18
|
import '../proto/spark_token.js';
|
|
18
19
|
import 'nice-grpc';
|
|
19
20
|
import 'nice-grpc-web';
|
package/dist/services/index.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConnectionManager
|
|
3
|
+
} from "../chunk-HRQRRDSS.js";
|
|
4
|
+
import {
|
|
5
|
+
TokenTransactionService
|
|
6
|
+
} from "../chunk-DQYKQJRZ.js";
|
|
7
|
+
import "../chunk-6AFUC5M2.js";
|
|
8
|
+
import "../chunk-L3EHBOUX.js";
|
|
9
|
+
import "../chunk-O4RYNJNB.js";
|
|
10
|
+
import "../chunk-VA7MV4MZ.js";
|
|
1
11
|
import {
|
|
2
12
|
WalletConfigService
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-HK6LPV6Z.js";
|
|
13
|
+
} from "../chunk-BUTZWYBW.js";
|
|
14
|
+
import "../chunk-Z5HIAYFT.js";
|
|
6
15
|
import {
|
|
7
16
|
ELECTRS_CREDENTIALS,
|
|
8
17
|
LOCAL_WALLET_CONFIG,
|
|
@@ -17,24 +26,15 @@ import {
|
|
|
17
26
|
getSspIdentityPublicKey,
|
|
18
27
|
getSspSchemaEndpoint,
|
|
19
28
|
getSspUrl
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-7VMYMQLF.js";
|
|
29
|
+
} from "../chunk-DOA6QXYQ.js";
|
|
22
30
|
import "../chunk-HMLOC6TE.js";
|
|
23
|
-
import {
|
|
24
|
-
ConnectionManager
|
|
25
|
-
} from "../chunk-ROKY5KS4.js";
|
|
26
|
-
import "../chunk-VA7MV4MZ.js";
|
|
27
|
-
import "../chunk-HKAKEKCE.js";
|
|
28
|
-
import {
|
|
29
|
-
TokenTransactionService
|
|
30
|
-
} from "../chunk-J5W5Q2ZP.js";
|
|
31
|
-
import "../chunk-ATEHMLKP.js";
|
|
32
|
-
import "../chunk-L3EHBOUX.js";
|
|
33
|
-
import "../chunk-TM4TOEOX.js";
|
|
34
|
-
import "../chunk-MGPRLH6Q.js";
|
|
35
|
-
import "../chunk-VTUGIIWI.js";
|
|
36
|
-
import "../chunk-TWF35O6M.js";
|
|
37
31
|
import "../chunk-M6A4KFIG.js";
|
|
32
|
+
import "../chunk-TIUBYNN5.js";
|
|
33
|
+
import "../chunk-VFJQNBFX.js";
|
|
34
|
+
import "../chunk-NSJF5F5O.js";
|
|
35
|
+
import "../chunk-QNNSEJ4P.js";
|
|
36
|
+
import "../chunk-VTUGIIWI.js";
|
|
37
|
+
import "../chunk-GSI4OLXZ.js";
|
|
38
38
|
import "../chunk-MVRQ5US7.js";
|
|
39
39
|
export {
|
|
40
40
|
ConnectionManager,
|
|
@@ -231,20 +231,33 @@ __export(lrc_connection_exports, {
|
|
|
231
231
|
});
|
|
232
232
|
module.exports = __toCommonJS(lrc_connection_exports);
|
|
233
233
|
init_buffer();
|
|
234
|
-
var
|
|
234
|
+
var import_core2 = require("@lightsparkdev/core");
|
|
235
235
|
var import_nice_grpc_client_middleware_retry = require("nice-grpc-client-middleware-retry");
|
|
236
236
|
var import_nice_grpc_common2 = require("nice-grpc-common");
|
|
237
237
|
|
|
238
238
|
// src/constants.ts
|
|
239
239
|
init_buffer();
|
|
240
|
+
var import_core = require("@lightsparkdev/core");
|
|
240
241
|
var isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
241
242
|
var isBun = globalThis.Bun !== void 0;
|
|
243
|
+
var packageVersion = true ? "0.1.43" : "unknown";
|
|
244
|
+
var baseEnvStr = "unknown";
|
|
245
|
+
if (import_core.isNode) {
|
|
246
|
+
baseEnvStr = `node/${process.version}`;
|
|
247
|
+
} else if (isReactNative) {
|
|
248
|
+
baseEnvStr = "react-native";
|
|
249
|
+
} else {
|
|
250
|
+
const userAgent = typeof navigator !== "undefined" && navigator.userAgent || "unknown-user-agent";
|
|
251
|
+
baseEnvStr = `browser/${userAgent}`;
|
|
252
|
+
}
|
|
253
|
+
var clientEnv = `js-spark-sdk/${packageVersion} ${baseEnvStr}`;
|
|
242
254
|
|
|
243
255
|
// src/errors/types.ts
|
|
244
256
|
init_buffer();
|
|
245
257
|
|
|
246
258
|
// src/errors/base.ts
|
|
247
259
|
init_buffer();
|
|
260
|
+
var import_utils = require("@noble/hashes/utils");
|
|
248
261
|
var SparkSDKError = class extends Error {
|
|
249
262
|
context;
|
|
250
263
|
originalError;
|
|
@@ -276,12 +289,42 @@ var SparkSDKError = class extends Error {
|
|
|
276
289
|
}
|
|
277
290
|
};
|
|
278
291
|
function getMessage(message, context = {}, originalError) {
|
|
279
|
-
const contextStr = Object.entries(context).map(([key, value]) => `${key}: ${
|
|
292
|
+
const contextStr = Object.entries(context).map(([key, value]) => `${key}: ${safeStringify(value)}`).join(", ");
|
|
280
293
|
const originalErrorStr = originalError ? `
|
|
281
294
|
Original Error: ${originalError.message}` : "";
|
|
282
295
|
return `SparkSDKError: ${message}${contextStr ? `
|
|
283
296
|
Context: ${contextStr}` : ""}${originalErrorStr}`;
|
|
284
297
|
}
|
|
298
|
+
function safeStringify(value) {
|
|
299
|
+
const replacer = (_, v) => {
|
|
300
|
+
if (typeof v === "bigint") {
|
|
301
|
+
return v.toString();
|
|
302
|
+
}
|
|
303
|
+
if (v instanceof Uint8Array) {
|
|
304
|
+
return formatUint8Array(v);
|
|
305
|
+
}
|
|
306
|
+
return v;
|
|
307
|
+
};
|
|
308
|
+
if (typeof value === "bigint") {
|
|
309
|
+
return `"${value.toString()}"`;
|
|
310
|
+
}
|
|
311
|
+
if (value instanceof Uint8Array) {
|
|
312
|
+
return `"${formatUint8Array(value)}"`;
|
|
313
|
+
}
|
|
314
|
+
try {
|
|
315
|
+
const result = JSON.stringify(value, replacer);
|
|
316
|
+
return result === void 0 ? String(value) : result;
|
|
317
|
+
} catch {
|
|
318
|
+
try {
|
|
319
|
+
return String(value);
|
|
320
|
+
} catch {
|
|
321
|
+
return "[Unserializable]";
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
function formatUint8Array(arr) {
|
|
326
|
+
return `Uint8Array(0x${(0, import_utils.bytesToHex)(arr)})`;
|
|
327
|
+
}
|
|
285
328
|
|
|
286
329
|
// src/errors/types.ts
|
|
287
330
|
var NetworkError = class extends SparkSDKError {
|
|
@@ -4319,7 +4362,7 @@ var Lrc20ConnectionManager = class {
|
|
|
4319
4362
|
}
|
|
4320
4363
|
async createChannelWithTLS(address, certPath) {
|
|
4321
4364
|
try {
|
|
4322
|
-
if (
|
|
4365
|
+
if (import_core2.isNode && !isBun) {
|
|
4323
4366
|
const grpcModule = await import("nice-grpc");
|
|
4324
4367
|
const { ChannelCredentials, createChannel } = "default" in grpcModule ? grpcModule.default : grpcModule;
|
|
4325
4368
|
if (certPath) {
|
|
@@ -4386,7 +4429,7 @@ var Lrc20ConnectionManager = class {
|
|
|
4386
4429
|
return client;
|
|
4387
4430
|
}
|
|
4388
4431
|
createMiddleware() {
|
|
4389
|
-
if (
|
|
4432
|
+
if (import_core2.isNode) {
|
|
4390
4433
|
return this.createNodeMiddleware();
|
|
4391
4434
|
} else {
|
|
4392
4435
|
return this.createBrowserMiddleware();
|
|
@@ -4396,7 +4439,7 @@ var Lrc20ConnectionManager = class {
|
|
|
4396
4439
|
return async function* (call, options) {
|
|
4397
4440
|
return yield* call.next(call.request, {
|
|
4398
4441
|
...options,
|
|
4399
|
-
metadata: (0, import_nice_grpc_common2.Metadata)(options.metadata).set("
|
|
4442
|
+
metadata: (0, import_nice_grpc_common2.Metadata)(options.metadata).set("X-Client-Env", clientEnv)
|
|
4400
4443
|
});
|
|
4401
4444
|
}.bind(this);
|
|
4402
4445
|
}
|
|
@@ -4404,7 +4447,7 @@ var Lrc20ConnectionManager = class {
|
|
|
4404
4447
|
return async function* (call, options) {
|
|
4405
4448
|
return yield* call.next(call.request, {
|
|
4406
4449
|
...options,
|
|
4407
|
-
metadata: (0, import_nice_grpc_common2.Metadata)(options.metadata).set("X-Requested-With", "XMLHttpRequest").set("X-Grpc-Web", "1").set("Content-Type", "application/grpc-web+proto").set("
|
|
4450
|
+
metadata: (0, import_nice_grpc_common2.Metadata)(options.metadata).set("X-Requested-With", "XMLHttpRequest").set("X-Grpc-Web", "1").set("Content-Type", "application/grpc-web+proto").set("X-Client-Env", clientEnv)
|
|
4408
4451
|
});
|
|
4409
4452
|
}.bind(this);
|
|
4410
4453
|
}
|
|
@@ -4416,7 +4459,7 @@ var Lrc20ConnectionManager = class {
|
|
|
4416
4459
|
};
|
|
4417
4460
|
let options = {};
|
|
4418
4461
|
const isNodeChannel = "close" in channel;
|
|
4419
|
-
if (
|
|
4462
|
+
if (import_core2.isNode && isNodeChannel && !isBun) {
|
|
4420
4463
|
const grpcModule = await import("nice-grpc");
|
|
4421
4464
|
const { openTelemetryClientMiddleware } = await import("nice-grpc-opentelemetry");
|
|
4422
4465
|
const { createClientFactory } = "default" in grpcModule ? grpcModule.default : grpcModule;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { SparkServiceClient } from '../proto/lrc20.cjs';
|
|
2
2
|
import { WalletConfigService } from './config.cjs';
|
|
3
|
-
import '../spark-
|
|
3
|
+
import '../spark-CDm4gqS6.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-Na1mHdWg.cjs';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import '../BitcoinNetwork-TnABML0T.cjs';
|
|
10
|
-
import '../signer-
|
|
10
|
+
import '../signer-IO3oMRNj.cjs';
|
|
11
11
|
import '@scure/bip32';
|
|
12
12
|
import '@scure/btc-signer';
|
|
13
13
|
import 'bitcoinjs-lib';
|
|
14
|
-
import '
|
|
14
|
+
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
15
|
+
import '../network-D5lKssVl.cjs';
|
|
15
16
|
import './wallet-config.cjs';
|
|
16
17
|
|
|
17
18
|
declare class Lrc20ConnectionManager {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { SparkServiceClient } from '../proto/lrc20.js';
|
|
2
2
|
import { WalletConfigService } from './config.js';
|
|
3
|
-
import '../spark-
|
|
3
|
+
import '../spark-CDm4gqS6.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-D7fZdT4A.js';
|
|
8
8
|
import '@lightsparkdev/core';
|
|
9
9
|
import '../BitcoinNetwork-TnABML0T.js';
|
|
10
|
-
import '../signer-
|
|
10
|
+
import '../signer-wqesWifN.js';
|
|
11
11
|
import '@scure/bip32';
|
|
12
12
|
import '@scure/btc-signer';
|
|
13
13
|
import 'bitcoinjs-lib';
|
|
14
|
-
import '
|
|
14
|
+
import '@buildonspark/lrc20-sdk/lrc/types';
|
|
15
|
+
import '../network-xkBSpaTn.js';
|
|
15
16
|
import './wallet-config.js';
|
|
16
17
|
|
|
17
18
|
declare class Lrc20ConnectionManager {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Lrc20ConnectionManager
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-GYQR4B4P.js";
|
|
4
4
|
import "../chunk-ABZA6R5S.js";
|
|
5
|
-
import "../chunk-HKAKEKCE.js";
|
|
6
|
-
import "../chunk-TWF35O6M.js";
|
|
7
5
|
import "../chunk-M6A4KFIG.js";
|
|
6
|
+
import "../chunk-VFJQNBFX.js";
|
|
7
|
+
import "../chunk-GSI4OLXZ.js";
|
|
8
8
|
import "../chunk-MVRQ5US7.js";
|
|
9
9
|
export {
|
|
10
10
|
Lrc20ConnectionManager
|