@buildonspark/spark-sdk 0.3.8 → 0.4.0
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 +18 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/uniffi/uniffi/spark_frost/spark_frost.kt +1361 -1367
- 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/bare/index.cjs +1342 -1346
- package/dist/bare/index.d.cts +114 -68
- package/dist/bare/index.d.ts +114 -68
- package/dist/bare/index.js +1266 -1279
- package/dist/{chunk-FXIESWE6.js → chunk-27ILUWDJ.js} +1 -1
- package/dist/{chunk-5ASXVNTM.js → chunk-4YFT7DAE.js} +1 -1
- package/dist/{chunk-FP2CRVQH.js → chunk-G3LHXHF3.js} +1045 -1308
- package/dist/{chunk-XI6FCNYG.js → chunk-JLF6WJ7K.js} +1 -1
- package/dist/{chunk-3LPEQGVJ.js → chunk-LOXWCMZL.js} +1 -1
- package/dist/{chunk-5HU5W56H.js → chunk-WICAF6BS.js} +2 -2
- package/dist/{chunk-VFN34EOX.js → chunk-YEBEN7XD.js} +258 -0
- package/dist/{client-pNpGP15j.d.cts → client-BIqiUNy4.d.cts} +1 -1
- package/dist/{client-By-N7oJS.d.ts → client-BaQf-5gD.d.ts} +1 -1
- package/dist/debug.cjs +1330 -1336
- package/dist/debug.d.cts +20 -16
- package/dist/debug.d.ts +20 -16
- package/dist/debug.js +5 -5
- package/dist/graphql/objects/index.d.cts +3 -3
- package/dist/graphql/objects/index.d.ts +3 -3
- package/dist/index.cjs +1363 -1365
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +32 -24
- package/dist/index.node.cjs +1363 -1365
- package/dist/index.node.d.cts +7 -7
- package/dist/index.node.d.ts +7 -7
- package/dist/index.node.js +31 -23
- package/dist/{logging-DMFVY384.d.ts → logging-BNGm6dBp.d.ts} +42 -37
- package/dist/{logging-DxLp34Xm.d.cts → logging-D3IfXfHG.d.cts} +42 -37
- package/dist/native/index.react-native.cjs +1505 -1366
- package/dist/native/index.react-native.d.cts +112 -58
- package/dist/native/index.react-native.d.ts +112 -58
- package/dist/native/index.react-native.js +1415 -1289
- package/dist/proto/spark.cjs +258 -0
- package/dist/proto/spark.d.cts +1 -1
- package/dist/proto/spark.d.ts +1 -1
- package/dist/proto/spark.js +5 -1
- 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/{spark-By6yHsrk.d.cts → spark-DOpheE8_.d.cts} +39 -2
- package/dist/{spark-By6yHsrk.d.ts → spark-DOpheE8_.d.ts} +39 -2
- package/dist/{spark-wallet.browser-C1dQknVj.d.ts → spark-wallet.browser-B2rGwjuM.d.ts} +2 -2
- package/dist/{spark-wallet.browser-CNMo3IvO.d.cts → spark-wallet.browser-Ck9No4Ks.d.cts} +2 -2
- package/dist/{spark-wallet.node-Og6__NMh.d.ts → spark-wallet.node-BqmKsGPs.d.ts} +2 -2
- package/dist/{spark-wallet.node-BZJhJZKq.d.cts → spark-wallet.node-C2TIkyt4.d.cts} +2 -2
- package/dist/tests/test-utils.cjs +1304 -1236
- package/dist/tests/test-utils.d.cts +18 -4
- package/dist/tests/test-utils.d.ts +18 -4
- package/dist/tests/test-utils.js +7 -7
- package/dist/{token-transactions-CLR3rnYi.d.cts → token-transactions-Db8mkjnU.d.cts} +2 -2
- package/dist/{token-transactions-C7yefB2S.d.ts → token-transactions-DoMcrxXQ.d.ts} +2 -2
- package/dist/types/index.cjs +256 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/dist/{wallet-config-BoyMVa6n.d.ts → wallet-config-Bg3kWltL.d.ts} +42 -35
- package/dist/{wallet-config-xom-9UFF.d.cts → wallet-config-CuZKNo9S.d.cts} +42 -35
- 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 +1 -1
- package/src/index.react-native.ts +8 -2
- package/src/proto/spark.ts +348 -4
- package/src/services/config.ts +5 -0
- package/src/services/coop-exit.ts +26 -107
- package/src/services/deposit.ts +12 -48
- package/src/services/signing.ts +62 -49
- package/src/services/transfer.ts +437 -722
- package/src/services/wallet-config.ts +10 -0
- package/src/services/xhr-transport.ts +13 -3
- package/src/signer/signer.react-native.ts +73 -1
- package/src/spark-wallet/proto-descriptors.ts +1 -1
- package/src/spark-wallet/spark-wallet.ts +162 -315
- package/src/spark-wallet/types.ts +2 -2
- package/src/spark_descriptors.pb +0 -0
- package/src/tests/integration/lightning.test.ts +1 -27
- package/src/tests/integration/static_deposit.test.ts +6 -9
- package/src/tests/integration/unilateral-exit.test.ts +117 -0
- package/src/tests/optimize.test.ts +31 -1
- package/src/tests/utils/signing.ts +33 -0
- package/src/tests/utils/test-faucet.ts +61 -0
- package/src/utils/optimize.ts +42 -0
- package/src/utils/transaction.ts +250 -249
- package/src/utils/unilateral-exit.ts +1 -40
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Q as QueryTransfersResponse, T as Transfer, c as TreeNode } from '../spark-
|
|
2
|
-
import { b as ConfigOptions } from '../wallet-config-
|
|
3
|
-
import { S as SparkSigner, D as DefaultSparkSigner } from '../client-
|
|
4
|
-
import { S as SparkWalletNodeJS } from '../spark-wallet.node-
|
|
1
|
+
import { Q as QueryTransfersResponse, T as Transfer, c as TreeNode } from '../spark-DOpheE8_.cjs';
|
|
2
|
+
import { b as ConfigOptions } from '../wallet-config-CuZKNo9S.cjs';
|
|
3
|
+
import { S as SparkSigner, D as DefaultSparkSigner } from '../client-BIqiUNy4.cjs';
|
|
4
|
+
import { S as SparkWalletNodeJS } from '../spark-wallet.node-C2TIkyt4.cjs';
|
|
5
5
|
import { Transaction } from '@scure/btc-signer';
|
|
6
6
|
import { TransactionInput, TransactionOutput } from '@scure/btc-signer/psbt';
|
|
7
7
|
import '@bufbuild/protobuf/wire';
|
|
@@ -38,12 +38,26 @@ declare class BitcoinFaucet {
|
|
|
38
38
|
sendFaucetCoinToP2WPKHAddress(pubKey: Uint8Array): Promise<void>;
|
|
39
39
|
signFaucetCoin(unsignedTx: Transaction, fundingTxOut: TransactionOutput, key: Uint8Array): Promise<Transaction>;
|
|
40
40
|
mineBlocks(numBlocks: number): Promise<any>;
|
|
41
|
+
mineBlocksAndWaitForMiningToComplete(numBlocks: number): Promise<void>;
|
|
41
42
|
private call;
|
|
42
43
|
generateToAddress(numBlocks: number, address: string): Promise<any>;
|
|
43
44
|
sendToAddressInternal(address: string, amountSats: number): Promise<any>;
|
|
44
45
|
getBlock(blockHash: string): Promise<any>;
|
|
46
|
+
getBlockCount(): Promise<number>;
|
|
47
|
+
waitForBlocksMined({ startBlock, expectedIncrease, timeoutMs, intervalMs, }: {
|
|
48
|
+
startBlock: number;
|
|
49
|
+
expectedIncrease: number;
|
|
50
|
+
timeoutMs?: number;
|
|
51
|
+
intervalMs?: number;
|
|
52
|
+
}): Promise<number>;
|
|
45
53
|
broadcastTx(txHex: string): Promise<any>;
|
|
54
|
+
submitPackage(txHexs: string[]): Promise<any>;
|
|
46
55
|
getNewAddress(): Promise<string>;
|
|
56
|
+
getNewExternalWallet(): Promise<{
|
|
57
|
+
address: string;
|
|
58
|
+
key: Uint8Array;
|
|
59
|
+
pubKey: Uint8Array;
|
|
60
|
+
}>;
|
|
47
61
|
sendToAddress(address: string, amount: bigint, blocksToGenerate?: number): Promise<Transaction>;
|
|
48
62
|
getRawTransaction(txid: string): Promise<any>;
|
|
49
63
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Q as QueryTransfersResponse, T as Transfer, c as TreeNode } from '../spark-
|
|
2
|
-
import { b as ConfigOptions } from '../wallet-config-
|
|
3
|
-
import { S as SparkSigner, D as DefaultSparkSigner } from '../client-
|
|
4
|
-
import { S as SparkWalletNodeJS } from '../spark-wallet.node-
|
|
1
|
+
import { Q as QueryTransfersResponse, T as Transfer, c as TreeNode } from '../spark-DOpheE8_.js';
|
|
2
|
+
import { b as ConfigOptions } from '../wallet-config-Bg3kWltL.js';
|
|
3
|
+
import { S as SparkSigner, D as DefaultSparkSigner } from '../client-BaQf-5gD.js';
|
|
4
|
+
import { S as SparkWalletNodeJS } from '../spark-wallet.node-BqmKsGPs.js';
|
|
5
5
|
import { Transaction } from '@scure/btc-signer';
|
|
6
6
|
import { TransactionInput, TransactionOutput } from '@scure/btc-signer/psbt';
|
|
7
7
|
import '@bufbuild/protobuf/wire';
|
|
@@ -38,12 +38,26 @@ declare class BitcoinFaucet {
|
|
|
38
38
|
sendFaucetCoinToP2WPKHAddress(pubKey: Uint8Array): Promise<void>;
|
|
39
39
|
signFaucetCoin(unsignedTx: Transaction, fundingTxOut: TransactionOutput, key: Uint8Array): Promise<Transaction>;
|
|
40
40
|
mineBlocks(numBlocks: number): Promise<any>;
|
|
41
|
+
mineBlocksAndWaitForMiningToComplete(numBlocks: number): Promise<void>;
|
|
41
42
|
private call;
|
|
42
43
|
generateToAddress(numBlocks: number, address: string): Promise<any>;
|
|
43
44
|
sendToAddressInternal(address: string, amountSats: number): Promise<any>;
|
|
44
45
|
getBlock(blockHash: string): Promise<any>;
|
|
46
|
+
getBlockCount(): Promise<number>;
|
|
47
|
+
waitForBlocksMined({ startBlock, expectedIncrease, timeoutMs, intervalMs, }: {
|
|
48
|
+
startBlock: number;
|
|
49
|
+
expectedIncrease: number;
|
|
50
|
+
timeoutMs?: number;
|
|
51
|
+
intervalMs?: number;
|
|
52
|
+
}): Promise<number>;
|
|
45
53
|
broadcastTx(txHex: string): Promise<any>;
|
|
54
|
+
submitPackage(txHexs: string[]): Promise<any>;
|
|
46
55
|
getNewAddress(): Promise<string>;
|
|
56
|
+
getNewExternalWallet(): Promise<{
|
|
57
|
+
address: string;
|
|
58
|
+
key: Uint8Array;
|
|
59
|
+
pubKey: Uint8Array;
|
|
60
|
+
}>;
|
|
47
61
|
sendToAddress(address: string, amount: bigint, blocksToGenerate?: number): Promise<Transaction>;
|
|
48
62
|
getRawTransaction(txid: string): Promise<any>;
|
|
49
63
|
}
|
package/dist/tests/test-utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConnectionManagerNodeJS,
|
|
3
3
|
SparkWalletNodeJS
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-WICAF6BS.js";
|
|
5
|
+
import "../chunk-LOXWCMZL.js";
|
|
6
|
+
import "../chunk-27ILUWDJ.js";
|
|
7
7
|
import {
|
|
8
8
|
BitcoinFaucet,
|
|
9
9
|
DefaultSparkSigner,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
WalletConfigService,
|
|
15
15
|
getNetwork,
|
|
16
16
|
getP2TRAddressFromPublicKey
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-G3LHXHF3.js";
|
|
18
18
|
import "../chunk-NX5KPN5F.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-JLF6WJ7K.js";
|
|
20
|
+
import "../chunk-4YFT7DAE.js";
|
|
21
|
+
import "../chunk-YEBEN7XD.js";
|
|
22
22
|
import "../chunk-CQY5ML2A.js";
|
|
23
23
|
import "../chunk-MVRQ5US7.js";
|
|
24
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OutputWithPreviousTransactionData } from './spark-
|
|
1
|
+
import { O as OutputWithPreviousTransactionData } from './spark-DOpheE8_.cjs';
|
|
2
2
|
import { TokenTransaction, QueryTokenTransactionsResponse } from './proto/spark_token.cjs';
|
|
3
|
-
import { W as WalletConfigService, C as ConnectionManager, O as TokenOutputsMap, B as Bech32mTokenIdentifier, S as SparkAddressFormat } from './wallet-config-
|
|
3
|
+
import { W as WalletConfigService, C as ConnectionManager, O as TokenOutputsMap, B as Bech32mTokenIdentifier, S as SparkAddressFormat } from './wallet-config-CuZKNo9S.cjs';
|
|
4
4
|
|
|
5
5
|
declare class SparkSDKError extends Error {
|
|
6
6
|
readonly context: Record<string, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OutputWithPreviousTransactionData } from './spark-
|
|
1
|
+
import { O as OutputWithPreviousTransactionData } from './spark-DOpheE8_.js';
|
|
2
2
|
import { TokenTransaction, QueryTokenTransactionsResponse } from './proto/spark_token.js';
|
|
3
|
-
import { W as WalletConfigService, C as ConnectionManager, O as TokenOutputsMap, B as Bech32mTokenIdentifier, S as SparkAddressFormat } from './wallet-config-
|
|
3
|
+
import { W as WalletConfigService, C as ConnectionManager, O as TokenOutputsMap, B as Bech32mTokenIdentifier, S as SparkAddressFormat } from './wallet-config-Bg3kWltL.js';
|
|
4
4
|
|
|
5
5
|
declare class SparkSDKError extends Error {
|
|
6
6
|
readonly context: Record<string, unknown>;
|
package/dist/types/index.cjs
CHANGED
|
@@ -1996,6 +1996,8 @@ __export(spark_exports, {
|
|
|
1996
1996
|
RenewLeafResponse: () => RenewLeafResponse,
|
|
1997
1997
|
RenewNodeTimelockResult: () => RenewNodeTimelockResult,
|
|
1998
1998
|
RenewNodeTimelockSigningJob: () => RenewNodeTimelockSigningJob,
|
|
1999
|
+
RenewNodeZeroTimelockResult: () => RenewNodeZeroTimelockResult,
|
|
2000
|
+
RenewNodeZeroTimelockSigningJob: () => RenewNodeZeroTimelockSigningJob,
|
|
1999
2001
|
RenewRefundTimelockResult: () => RenewRefundTimelockResult,
|
|
2000
2002
|
RenewRefundTimelockSigningJob: () => RenewRefundTimelockSigningJob,
|
|
2001
2003
|
RequestedSigningCommitments: () => RequestedSigningCommitments,
|
|
@@ -4494,6 +4496,12 @@ var RenewLeafRequest = {
|
|
|
4494
4496
|
writer.uint32(26).fork()
|
|
4495
4497
|
).join();
|
|
4496
4498
|
break;
|
|
4499
|
+
case "renewNodeZeroTimelockSigningJob":
|
|
4500
|
+
RenewNodeZeroTimelockSigningJob.encode(
|
|
4501
|
+
message.signingJobs.renewNodeZeroTimelockSigningJob,
|
|
4502
|
+
writer.uint32(34).fork()
|
|
4503
|
+
).join();
|
|
4504
|
+
break;
|
|
4497
4505
|
}
|
|
4498
4506
|
return writer;
|
|
4499
4507
|
},
|
|
@@ -4531,6 +4539,16 @@ var RenewLeafRequest = {
|
|
|
4531
4539
|
};
|
|
4532
4540
|
continue;
|
|
4533
4541
|
}
|
|
4542
|
+
case 4: {
|
|
4543
|
+
if (tag !== 34) {
|
|
4544
|
+
break;
|
|
4545
|
+
}
|
|
4546
|
+
message.signingJobs = {
|
|
4547
|
+
$case: "renewNodeZeroTimelockSigningJob",
|
|
4548
|
+
renewNodeZeroTimelockSigningJob: RenewNodeZeroTimelockSigningJob.decode(reader, reader.uint32())
|
|
4549
|
+
};
|
|
4550
|
+
continue;
|
|
4551
|
+
}
|
|
4534
4552
|
}
|
|
4535
4553
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4536
4554
|
break;
|
|
@@ -4548,6 +4566,11 @@ var RenewLeafRequest = {
|
|
|
4548
4566
|
} : isSet3(object.renewRefundTimelockSigningJob) ? {
|
|
4549
4567
|
$case: "renewRefundTimelockSigningJob",
|
|
4550
4568
|
renewRefundTimelockSigningJob: RenewRefundTimelockSigningJob.fromJSON(object.renewRefundTimelockSigningJob)
|
|
4569
|
+
} : isSet3(object.renewNodeZeroTimelockSigningJob) ? {
|
|
4570
|
+
$case: "renewNodeZeroTimelockSigningJob",
|
|
4571
|
+
renewNodeZeroTimelockSigningJob: RenewNodeZeroTimelockSigningJob.fromJSON(
|
|
4572
|
+
object.renewNodeZeroTimelockSigningJob
|
|
4573
|
+
)
|
|
4551
4574
|
} : void 0
|
|
4552
4575
|
};
|
|
4553
4576
|
},
|
|
@@ -4564,6 +4587,10 @@ var RenewLeafRequest = {
|
|
|
4564
4587
|
obj.renewRefundTimelockSigningJob = RenewRefundTimelockSigningJob.toJSON(
|
|
4565
4588
|
message.signingJobs.renewRefundTimelockSigningJob
|
|
4566
4589
|
);
|
|
4590
|
+
} else if (message.signingJobs?.$case === "renewNodeZeroTimelockSigningJob") {
|
|
4591
|
+
obj.renewNodeZeroTimelockSigningJob = RenewNodeZeroTimelockSigningJob.toJSON(
|
|
4592
|
+
message.signingJobs.renewNodeZeroTimelockSigningJob
|
|
4593
|
+
);
|
|
4567
4594
|
}
|
|
4568
4595
|
return obj;
|
|
4569
4596
|
},
|
|
@@ -4596,6 +4623,17 @@ var RenewLeafRequest = {
|
|
|
4596
4623
|
}
|
|
4597
4624
|
break;
|
|
4598
4625
|
}
|
|
4626
|
+
case "renewNodeZeroTimelockSigningJob": {
|
|
4627
|
+
if (object.signingJobs?.renewNodeZeroTimelockSigningJob !== void 0 && object.signingJobs?.renewNodeZeroTimelockSigningJob !== null) {
|
|
4628
|
+
message.signingJobs = {
|
|
4629
|
+
$case: "renewNodeZeroTimelockSigningJob",
|
|
4630
|
+
renewNodeZeroTimelockSigningJob: RenewNodeZeroTimelockSigningJob.fromPartial(
|
|
4631
|
+
object.signingJobs.renewNodeZeroTimelockSigningJob
|
|
4632
|
+
)
|
|
4633
|
+
};
|
|
4634
|
+
}
|
|
4635
|
+
break;
|
|
4636
|
+
}
|
|
4599
4637
|
}
|
|
4600
4638
|
return message;
|
|
4601
4639
|
}
|
|
@@ -4870,6 +4908,125 @@ var RenewRefundTimelockSigningJob = {
|
|
|
4870
4908
|
return message;
|
|
4871
4909
|
}
|
|
4872
4910
|
};
|
|
4911
|
+
function createBaseRenewNodeZeroTimelockSigningJob() {
|
|
4912
|
+
return {
|
|
4913
|
+
nodeTxSigningJob: void 0,
|
|
4914
|
+
refundTxSigningJob: void 0,
|
|
4915
|
+
directNodeTxSigningJob: void 0,
|
|
4916
|
+
directRefundTxSigningJob: void 0,
|
|
4917
|
+
directFromCpfpRefundTxSigningJob: void 0
|
|
4918
|
+
};
|
|
4919
|
+
}
|
|
4920
|
+
var RenewNodeZeroTimelockSigningJob = {
|
|
4921
|
+
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
4922
|
+
if (message.nodeTxSigningJob !== void 0) {
|
|
4923
|
+
UserSignedTxSigningJob.encode(message.nodeTxSigningJob, writer.uint32(10).fork()).join();
|
|
4924
|
+
}
|
|
4925
|
+
if (message.refundTxSigningJob !== void 0) {
|
|
4926
|
+
UserSignedTxSigningJob.encode(message.refundTxSigningJob, writer.uint32(18).fork()).join();
|
|
4927
|
+
}
|
|
4928
|
+
if (message.directNodeTxSigningJob !== void 0) {
|
|
4929
|
+
UserSignedTxSigningJob.encode(message.directNodeTxSigningJob, writer.uint32(26).fork()).join();
|
|
4930
|
+
}
|
|
4931
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
4932
|
+
UserSignedTxSigningJob.encode(message.directRefundTxSigningJob, writer.uint32(34).fork()).join();
|
|
4933
|
+
}
|
|
4934
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
4935
|
+
UserSignedTxSigningJob.encode(message.directFromCpfpRefundTxSigningJob, writer.uint32(42).fork()).join();
|
|
4936
|
+
}
|
|
4937
|
+
return writer;
|
|
4938
|
+
},
|
|
4939
|
+
decode(input, length) {
|
|
4940
|
+
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
4941
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4942
|
+
const message = createBaseRenewNodeZeroTimelockSigningJob();
|
|
4943
|
+
while (reader.pos < end) {
|
|
4944
|
+
const tag = reader.uint32();
|
|
4945
|
+
switch (tag >>> 3) {
|
|
4946
|
+
case 1: {
|
|
4947
|
+
if (tag !== 10) {
|
|
4948
|
+
break;
|
|
4949
|
+
}
|
|
4950
|
+
message.nodeTxSigningJob = UserSignedTxSigningJob.decode(reader, reader.uint32());
|
|
4951
|
+
continue;
|
|
4952
|
+
}
|
|
4953
|
+
case 2: {
|
|
4954
|
+
if (tag !== 18) {
|
|
4955
|
+
break;
|
|
4956
|
+
}
|
|
4957
|
+
message.refundTxSigningJob = UserSignedTxSigningJob.decode(reader, reader.uint32());
|
|
4958
|
+
continue;
|
|
4959
|
+
}
|
|
4960
|
+
case 3: {
|
|
4961
|
+
if (tag !== 26) {
|
|
4962
|
+
break;
|
|
4963
|
+
}
|
|
4964
|
+
message.directNodeTxSigningJob = UserSignedTxSigningJob.decode(reader, reader.uint32());
|
|
4965
|
+
continue;
|
|
4966
|
+
}
|
|
4967
|
+
case 4: {
|
|
4968
|
+
if (tag !== 34) {
|
|
4969
|
+
break;
|
|
4970
|
+
}
|
|
4971
|
+
message.directRefundTxSigningJob = UserSignedTxSigningJob.decode(reader, reader.uint32());
|
|
4972
|
+
continue;
|
|
4973
|
+
}
|
|
4974
|
+
case 5: {
|
|
4975
|
+
if (tag !== 42) {
|
|
4976
|
+
break;
|
|
4977
|
+
}
|
|
4978
|
+
message.directFromCpfpRefundTxSigningJob = UserSignedTxSigningJob.decode(reader, reader.uint32());
|
|
4979
|
+
continue;
|
|
4980
|
+
}
|
|
4981
|
+
}
|
|
4982
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4983
|
+
break;
|
|
4984
|
+
}
|
|
4985
|
+
reader.skip(tag & 7);
|
|
4986
|
+
}
|
|
4987
|
+
return message;
|
|
4988
|
+
},
|
|
4989
|
+
fromJSON(object) {
|
|
4990
|
+
return {
|
|
4991
|
+
nodeTxSigningJob: isSet3(object.nodeTxSigningJob) ? UserSignedTxSigningJob.fromJSON(object.nodeTxSigningJob) : void 0,
|
|
4992
|
+
refundTxSigningJob: isSet3(object.refundTxSigningJob) ? UserSignedTxSigningJob.fromJSON(object.refundTxSigningJob) : void 0,
|
|
4993
|
+
directNodeTxSigningJob: isSet3(object.directNodeTxSigningJob) ? UserSignedTxSigningJob.fromJSON(object.directNodeTxSigningJob) : void 0,
|
|
4994
|
+
directRefundTxSigningJob: isSet3(object.directRefundTxSigningJob) ? UserSignedTxSigningJob.fromJSON(object.directRefundTxSigningJob) : void 0,
|
|
4995
|
+
directFromCpfpRefundTxSigningJob: isSet3(object.directFromCpfpRefundTxSigningJob) ? UserSignedTxSigningJob.fromJSON(object.directFromCpfpRefundTxSigningJob) : void 0
|
|
4996
|
+
};
|
|
4997
|
+
},
|
|
4998
|
+
toJSON(message) {
|
|
4999
|
+
const obj = {};
|
|
5000
|
+
if (message.nodeTxSigningJob !== void 0) {
|
|
5001
|
+
obj.nodeTxSigningJob = UserSignedTxSigningJob.toJSON(message.nodeTxSigningJob);
|
|
5002
|
+
}
|
|
5003
|
+
if (message.refundTxSigningJob !== void 0) {
|
|
5004
|
+
obj.refundTxSigningJob = UserSignedTxSigningJob.toJSON(message.refundTxSigningJob);
|
|
5005
|
+
}
|
|
5006
|
+
if (message.directNodeTxSigningJob !== void 0) {
|
|
5007
|
+
obj.directNodeTxSigningJob = UserSignedTxSigningJob.toJSON(message.directNodeTxSigningJob);
|
|
5008
|
+
}
|
|
5009
|
+
if (message.directRefundTxSigningJob !== void 0) {
|
|
5010
|
+
obj.directRefundTxSigningJob = UserSignedTxSigningJob.toJSON(message.directRefundTxSigningJob);
|
|
5011
|
+
}
|
|
5012
|
+
if (message.directFromCpfpRefundTxSigningJob !== void 0) {
|
|
5013
|
+
obj.directFromCpfpRefundTxSigningJob = UserSignedTxSigningJob.toJSON(message.directFromCpfpRefundTxSigningJob);
|
|
5014
|
+
}
|
|
5015
|
+
return obj;
|
|
5016
|
+
},
|
|
5017
|
+
create(base) {
|
|
5018
|
+
return RenewNodeZeroTimelockSigningJob.fromPartial(base ?? {});
|
|
5019
|
+
},
|
|
5020
|
+
fromPartial(object) {
|
|
5021
|
+
const message = createBaseRenewNodeZeroTimelockSigningJob();
|
|
5022
|
+
message.nodeTxSigningJob = object.nodeTxSigningJob !== void 0 && object.nodeTxSigningJob !== null ? UserSignedTxSigningJob.fromPartial(object.nodeTxSigningJob) : void 0;
|
|
5023
|
+
message.refundTxSigningJob = object.refundTxSigningJob !== void 0 && object.refundTxSigningJob !== null ? UserSignedTxSigningJob.fromPartial(object.refundTxSigningJob) : void 0;
|
|
5024
|
+
message.directNodeTxSigningJob = object.directNodeTxSigningJob !== void 0 && object.directNodeTxSigningJob !== null ? UserSignedTxSigningJob.fromPartial(object.directNodeTxSigningJob) : void 0;
|
|
5025
|
+
message.directRefundTxSigningJob = object.directRefundTxSigningJob !== void 0 && object.directRefundTxSigningJob !== null ? UserSignedTxSigningJob.fromPartial(object.directRefundTxSigningJob) : void 0;
|
|
5026
|
+
message.directFromCpfpRefundTxSigningJob = object.directFromCpfpRefundTxSigningJob !== void 0 && object.directFromCpfpRefundTxSigningJob !== null ? UserSignedTxSigningJob.fromPartial(object.directFromCpfpRefundTxSigningJob) : void 0;
|
|
5027
|
+
return message;
|
|
5028
|
+
}
|
|
5029
|
+
};
|
|
4873
5030
|
function createBaseRenewLeafResponse() {
|
|
4874
5031
|
return { renewResult: void 0 };
|
|
4875
5032
|
}
|
|
@@ -4882,6 +5039,9 @@ var RenewLeafResponse = {
|
|
|
4882
5039
|
case "renewRefundTimelockResult":
|
|
4883
5040
|
RenewRefundTimelockResult.encode(message.renewResult.renewRefundTimelockResult, writer.uint32(18).fork()).join();
|
|
4884
5041
|
break;
|
|
5042
|
+
case "renewNodeZeroTimelockResult":
|
|
5043
|
+
RenewNodeZeroTimelockResult.encode(message.renewResult.renewNodeZeroTimelockResult, writer.uint32(26).fork()).join();
|
|
5044
|
+
break;
|
|
4885
5045
|
}
|
|
4886
5046
|
return writer;
|
|
4887
5047
|
},
|
|
@@ -4912,6 +5072,16 @@ var RenewLeafResponse = {
|
|
|
4912
5072
|
};
|
|
4913
5073
|
continue;
|
|
4914
5074
|
}
|
|
5075
|
+
case 3: {
|
|
5076
|
+
if (tag !== 26) {
|
|
5077
|
+
break;
|
|
5078
|
+
}
|
|
5079
|
+
message.renewResult = {
|
|
5080
|
+
$case: "renewNodeZeroTimelockResult",
|
|
5081
|
+
renewNodeZeroTimelockResult: RenewNodeZeroTimelockResult.decode(reader, reader.uint32())
|
|
5082
|
+
};
|
|
5083
|
+
continue;
|
|
5084
|
+
}
|
|
4915
5085
|
}
|
|
4916
5086
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4917
5087
|
break;
|
|
@@ -4928,6 +5098,9 @@ var RenewLeafResponse = {
|
|
|
4928
5098
|
} : isSet3(object.renewRefundTimelockResult) ? {
|
|
4929
5099
|
$case: "renewRefundTimelockResult",
|
|
4930
5100
|
renewRefundTimelockResult: RenewRefundTimelockResult.fromJSON(object.renewRefundTimelockResult)
|
|
5101
|
+
} : isSet3(object.renewNodeZeroTimelockResult) ? {
|
|
5102
|
+
$case: "renewNodeZeroTimelockResult",
|
|
5103
|
+
renewNodeZeroTimelockResult: RenewNodeZeroTimelockResult.fromJSON(object.renewNodeZeroTimelockResult)
|
|
4931
5104
|
} : void 0
|
|
4932
5105
|
};
|
|
4933
5106
|
},
|
|
@@ -4937,6 +5110,10 @@ var RenewLeafResponse = {
|
|
|
4937
5110
|
obj.renewNodeTimelockResult = RenewNodeTimelockResult.toJSON(message.renewResult.renewNodeTimelockResult);
|
|
4938
5111
|
} else if (message.renewResult?.$case === "renewRefundTimelockResult") {
|
|
4939
5112
|
obj.renewRefundTimelockResult = RenewRefundTimelockResult.toJSON(message.renewResult.renewRefundTimelockResult);
|
|
5113
|
+
} else if (message.renewResult?.$case === "renewNodeZeroTimelockResult") {
|
|
5114
|
+
obj.renewNodeZeroTimelockResult = RenewNodeZeroTimelockResult.toJSON(
|
|
5115
|
+
message.renewResult.renewNodeZeroTimelockResult
|
|
5116
|
+
);
|
|
4940
5117
|
}
|
|
4941
5118
|
return obj;
|
|
4942
5119
|
},
|
|
@@ -4966,6 +5143,17 @@ var RenewLeafResponse = {
|
|
|
4966
5143
|
}
|
|
4967
5144
|
break;
|
|
4968
5145
|
}
|
|
5146
|
+
case "renewNodeZeroTimelockResult": {
|
|
5147
|
+
if (object.renewResult?.renewNodeZeroTimelockResult !== void 0 && object.renewResult?.renewNodeZeroTimelockResult !== null) {
|
|
5148
|
+
message.renewResult = {
|
|
5149
|
+
$case: "renewNodeZeroTimelockResult",
|
|
5150
|
+
renewNodeZeroTimelockResult: RenewNodeZeroTimelockResult.fromPartial(
|
|
5151
|
+
object.renewResult.renewNodeZeroTimelockResult
|
|
5152
|
+
)
|
|
5153
|
+
};
|
|
5154
|
+
}
|
|
5155
|
+
break;
|
|
5156
|
+
}
|
|
4969
5157
|
}
|
|
4970
5158
|
return message;
|
|
4971
5159
|
}
|
|
@@ -5089,6 +5277,74 @@ var RenewRefundTimelockResult = {
|
|
|
5089
5277
|
return message;
|
|
5090
5278
|
}
|
|
5091
5279
|
};
|
|
5280
|
+
function createBaseRenewNodeZeroTimelockResult() {
|
|
5281
|
+
return { splitNode: void 0, node: void 0 };
|
|
5282
|
+
}
|
|
5283
|
+
var RenewNodeZeroTimelockResult = {
|
|
5284
|
+
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
5285
|
+
if (message.splitNode !== void 0) {
|
|
5286
|
+
TreeNode.encode(message.splitNode, writer.uint32(10).fork()).join();
|
|
5287
|
+
}
|
|
5288
|
+
if (message.node !== void 0) {
|
|
5289
|
+
TreeNode.encode(message.node, writer.uint32(18).fork()).join();
|
|
5290
|
+
}
|
|
5291
|
+
return writer;
|
|
5292
|
+
},
|
|
5293
|
+
decode(input, length) {
|
|
5294
|
+
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
5295
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5296
|
+
const message = createBaseRenewNodeZeroTimelockResult();
|
|
5297
|
+
while (reader.pos < end) {
|
|
5298
|
+
const tag = reader.uint32();
|
|
5299
|
+
switch (tag >>> 3) {
|
|
5300
|
+
case 1: {
|
|
5301
|
+
if (tag !== 10) {
|
|
5302
|
+
break;
|
|
5303
|
+
}
|
|
5304
|
+
message.splitNode = TreeNode.decode(reader, reader.uint32());
|
|
5305
|
+
continue;
|
|
5306
|
+
}
|
|
5307
|
+
case 2: {
|
|
5308
|
+
if (tag !== 18) {
|
|
5309
|
+
break;
|
|
5310
|
+
}
|
|
5311
|
+
message.node = TreeNode.decode(reader, reader.uint32());
|
|
5312
|
+
continue;
|
|
5313
|
+
}
|
|
5314
|
+
}
|
|
5315
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5316
|
+
break;
|
|
5317
|
+
}
|
|
5318
|
+
reader.skip(tag & 7);
|
|
5319
|
+
}
|
|
5320
|
+
return message;
|
|
5321
|
+
},
|
|
5322
|
+
fromJSON(object) {
|
|
5323
|
+
return {
|
|
5324
|
+
splitNode: isSet3(object.splitNode) ? TreeNode.fromJSON(object.splitNode) : void 0,
|
|
5325
|
+
node: isSet3(object.node) ? TreeNode.fromJSON(object.node) : void 0
|
|
5326
|
+
};
|
|
5327
|
+
},
|
|
5328
|
+
toJSON(message) {
|
|
5329
|
+
const obj = {};
|
|
5330
|
+
if (message.splitNode !== void 0) {
|
|
5331
|
+
obj.splitNode = TreeNode.toJSON(message.splitNode);
|
|
5332
|
+
}
|
|
5333
|
+
if (message.node !== void 0) {
|
|
5334
|
+
obj.node = TreeNode.toJSON(message.node);
|
|
5335
|
+
}
|
|
5336
|
+
return obj;
|
|
5337
|
+
},
|
|
5338
|
+
create(base) {
|
|
5339
|
+
return RenewNodeZeroTimelockResult.fromPartial(base ?? {});
|
|
5340
|
+
},
|
|
5341
|
+
fromPartial(object) {
|
|
5342
|
+
const message = createBaseRenewNodeZeroTimelockResult();
|
|
5343
|
+
message.splitNode = object.splitNode !== void 0 && object.splitNode !== null ? TreeNode.fromPartial(object.splitNode) : void 0;
|
|
5344
|
+
message.node = object.node !== void 0 && object.node !== null ? TreeNode.fromPartial(object.node) : void 0;
|
|
5345
|
+
return message;
|
|
5346
|
+
}
|
|
5347
|
+
};
|
|
5092
5348
|
function createBaseNodeSignatureShares() {
|
|
5093
5349
|
return {
|
|
5094
5350
|
nodeId: "",
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BitcoinNetwork, O as ClaimStaticDeposit, C as ClaimStaticDepositOutput, Q as ClaimStaticDepositStatus, R as CompleteCoopExitInput, X as CompleteLeavesSwapInput, Y as CoopExitFeeEstimate, Z as CoopExitFeeEstimatesInput, _ as CoopExitFeeEstimatesOutput, F as CoopExitFeeQuote, a0 as CoopExitFeeQuoteInput, G as CoopExitRequest, a2 as CurrencyAmount, a3 as CurrencyUnit, E as ExitSpeed, a4 as GetChallengeOutput, a5 as Invoice, a6 as Leaf, L as LeavesSwapFeeEstimateOutput, a8 as LeavesSwapRequest, x as LightningReceiveRequest, aa as LightningReceiveRequestStatus, z as LightningSendFeeEstimateInput, ab as LightningSendFeeEstimateOutput, y as LightningSendRequest, ad as LightningSendRequestStatus, P as PageInfo, ae as RequestCoopExitInput, af as RequestLeavesSwapInput, ag as RequestLightningReceiveInput, ah as RequestLightningSendInput, ai as SparkCoopExitRequestStatus, aj as SparkLeavesSwapRequestStatus, ak as SparkTransferToLeavesConnection, al as StaticDepositQuoteInput, u as StaticDepositQuoteOutput, am as SwapLeaf, an as Transfer, ar as TransferDirection, ao as UserLeafInput, as as UserRequestType, ap as VerifyChallengeOutput, W as WalletLeaf, w as WalletTransfer, at as WalletTransferLeaf, N as getClaimStaticDepositQuery, $ as getCoopExitFeeQuoteQuery, a1 as getCoopExitRequestQuery, a7 as getLeavesSwapRequestQuery, a9 as getLightningReceiveRequestQuery, ac as getLightningSendRequestQuery, au as mapTransferLeafToWalletTransferLeaf, av as mapTransferToWalletTransfer, aq as mapTreeNodeToWalletLeaf } from '../client-
|
|
1
|
+
export { B as BitcoinNetwork, O as ClaimStaticDeposit, C as ClaimStaticDepositOutput, Q as ClaimStaticDepositStatus, R as CompleteCoopExitInput, X as CompleteLeavesSwapInput, Y as CoopExitFeeEstimate, Z as CoopExitFeeEstimatesInput, _ as CoopExitFeeEstimatesOutput, F as CoopExitFeeQuote, a0 as CoopExitFeeQuoteInput, G as CoopExitRequest, a2 as CurrencyAmount, a3 as CurrencyUnit, E as ExitSpeed, a4 as GetChallengeOutput, a5 as Invoice, a6 as Leaf, L as LeavesSwapFeeEstimateOutput, a8 as LeavesSwapRequest, x as LightningReceiveRequest, aa as LightningReceiveRequestStatus, z as LightningSendFeeEstimateInput, ab as LightningSendFeeEstimateOutput, y as LightningSendRequest, ad as LightningSendRequestStatus, P as PageInfo, ae as RequestCoopExitInput, af as RequestLeavesSwapInput, ag as RequestLightningReceiveInput, ah as RequestLightningSendInput, ai as SparkCoopExitRequestStatus, aj as SparkLeavesSwapRequestStatus, ak as SparkTransferToLeavesConnection, al as StaticDepositQuoteInput, u as StaticDepositQuoteOutput, am as SwapLeaf, an as Transfer, ar as TransferDirection, ao as UserLeafInput, as as UserRequestType, ap as VerifyChallengeOutput, W as WalletLeaf, w as WalletTransfer, at as WalletTransferLeaf, N as getClaimStaticDepositQuery, $ as getCoopExitFeeQuoteQuery, a1 as getCoopExitRequestQuery, a7 as getLeavesSwapRequestQuery, a9 as getLightningReceiveRequestQuery, ac as getLightningSendRequestQuery, au as mapTransferLeafToWalletTransferLeaf, av as mapTransferToWalletTransfer, aq as mapTreeNodeToWalletLeaf } from '../client-BIqiUNy4.cjs';
|
|
2
2
|
export { ClaimStaticDepositInput, ClaimStaticDepositRequestType, CompleteCoopExitOutput, CompleteLeavesSwapOutput, CompleteSeedReleaseInput, CompleteSeedReleaseOutput, Connection, CoopExitFeeQuoteOutput, Entity, GetChallengeInput, LeavesSwapFeeEstimateInput, NotifyReceiverTransferInput, Provider, RequestCoopExitOutput, RequestLeavesSwapOutput, RequestLightningReceiveOutput, RequestLightningSendOutput, SparkUserRequestStatus, SparkUserRequestType, SparkWalletUser, SparkWalletUserToUserRequestsConnection, StartSeedReleaseInput, UserRequest, VerifyChallengeInput, WalletUserIdentityPublicKeyInput, WalletUserIdentityPublicKeyOutput, getUserRequestQuery } from '../graphql/objects/index.cjs';
|
|
3
|
-
export { n as CommonProto, s as SparkProto } from '../spark-
|
|
3
|
+
export { n as CommonProto, s as SparkProto } from '../spark-DOpheE8_.cjs';
|
|
4
4
|
import '@lightsparkdev/core';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/bip32';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BitcoinNetwork, O as ClaimStaticDeposit, C as ClaimStaticDepositOutput, Q as ClaimStaticDepositStatus, R as CompleteCoopExitInput, X as CompleteLeavesSwapInput, Y as CoopExitFeeEstimate, Z as CoopExitFeeEstimatesInput, _ as CoopExitFeeEstimatesOutput, F as CoopExitFeeQuote, a0 as CoopExitFeeQuoteInput, G as CoopExitRequest, a2 as CurrencyAmount, a3 as CurrencyUnit, E as ExitSpeed, a4 as GetChallengeOutput, a5 as Invoice, a6 as Leaf, L as LeavesSwapFeeEstimateOutput, a8 as LeavesSwapRequest, x as LightningReceiveRequest, aa as LightningReceiveRequestStatus, z as LightningSendFeeEstimateInput, ab as LightningSendFeeEstimateOutput, y as LightningSendRequest, ad as LightningSendRequestStatus, P as PageInfo, ae as RequestCoopExitInput, af as RequestLeavesSwapInput, ag as RequestLightningReceiveInput, ah as RequestLightningSendInput, ai as SparkCoopExitRequestStatus, aj as SparkLeavesSwapRequestStatus, ak as SparkTransferToLeavesConnection, al as StaticDepositQuoteInput, u as StaticDepositQuoteOutput, am as SwapLeaf, an as Transfer, ar as TransferDirection, ao as UserLeafInput, as as UserRequestType, ap as VerifyChallengeOutput, W as WalletLeaf, w as WalletTransfer, at as WalletTransferLeaf, N as getClaimStaticDepositQuery, $ as getCoopExitFeeQuoteQuery, a1 as getCoopExitRequestQuery, a7 as getLeavesSwapRequestQuery, a9 as getLightningReceiveRequestQuery, ac as getLightningSendRequestQuery, au as mapTransferLeafToWalletTransferLeaf, av as mapTransferToWalletTransfer, aq as mapTreeNodeToWalletLeaf } from '../client-
|
|
1
|
+
export { B as BitcoinNetwork, O as ClaimStaticDeposit, C as ClaimStaticDepositOutput, Q as ClaimStaticDepositStatus, R as CompleteCoopExitInput, X as CompleteLeavesSwapInput, Y as CoopExitFeeEstimate, Z as CoopExitFeeEstimatesInput, _ as CoopExitFeeEstimatesOutput, F as CoopExitFeeQuote, a0 as CoopExitFeeQuoteInput, G as CoopExitRequest, a2 as CurrencyAmount, a3 as CurrencyUnit, E as ExitSpeed, a4 as GetChallengeOutput, a5 as Invoice, a6 as Leaf, L as LeavesSwapFeeEstimateOutput, a8 as LeavesSwapRequest, x as LightningReceiveRequest, aa as LightningReceiveRequestStatus, z as LightningSendFeeEstimateInput, ab as LightningSendFeeEstimateOutput, y as LightningSendRequest, ad as LightningSendRequestStatus, P as PageInfo, ae as RequestCoopExitInput, af as RequestLeavesSwapInput, ag as RequestLightningReceiveInput, ah as RequestLightningSendInput, ai as SparkCoopExitRequestStatus, aj as SparkLeavesSwapRequestStatus, ak as SparkTransferToLeavesConnection, al as StaticDepositQuoteInput, u as StaticDepositQuoteOutput, am as SwapLeaf, an as Transfer, ar as TransferDirection, ao as UserLeafInput, as as UserRequestType, ap as VerifyChallengeOutput, W as WalletLeaf, w as WalletTransfer, at as WalletTransferLeaf, N as getClaimStaticDepositQuery, $ as getCoopExitFeeQuoteQuery, a1 as getCoopExitRequestQuery, a7 as getLeavesSwapRequestQuery, a9 as getLightningReceiveRequestQuery, ac as getLightningSendRequestQuery, au as mapTransferLeafToWalletTransferLeaf, av as mapTransferToWalletTransfer, aq as mapTreeNodeToWalletLeaf } from '../client-BaQf-5gD.js';
|
|
2
2
|
export { ClaimStaticDepositInput, ClaimStaticDepositRequestType, CompleteCoopExitOutput, CompleteLeavesSwapOutput, CompleteSeedReleaseInput, CompleteSeedReleaseOutput, Connection, CoopExitFeeQuoteOutput, Entity, GetChallengeInput, LeavesSwapFeeEstimateInput, NotifyReceiverTransferInput, Provider, RequestCoopExitOutput, RequestLeavesSwapOutput, RequestLightningReceiveOutput, RequestLightningSendOutput, SparkUserRequestStatus, SparkUserRequestType, SparkWalletUser, SparkWalletUserToUserRequestsConnection, StartSeedReleaseInput, UserRequest, VerifyChallengeInput, WalletUserIdentityPublicKeyInput, WalletUserIdentityPublicKeyOutput, getUserRequestQuery } from '../graphql/objects/index.js';
|
|
3
|
-
export { n as CommonProto, s as SparkProto } from '../spark-
|
|
3
|
+
export { n as CommonProto, s as SparkProto } from '../spark-DOpheE8_.js';
|
|
4
4
|
import '@lightsparkdev/core';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/bip32';
|
package/dist/types/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
mapTransferLeafToWalletTransferLeaf,
|
|
4
4
|
mapTransferToWalletTransfer,
|
|
5
5
|
mapTreeNodeToWalletLeaf
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-4YFT7DAE.js";
|
|
7
7
|
import {
|
|
8
8
|
common_exports,
|
|
9
9
|
spark_exports
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-YEBEN7XD.js";
|
|
11
11
|
import {
|
|
12
12
|
BitcoinNetwork_default,
|
|
13
13
|
ClaimStaticDepositRequestType_default,
|