@breeztech/breez-sdk-spark-react-native 0.19.0 → 0.20.0-dev1
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/cpp/generated/breez_sdk_spark.cpp +1402 -157
- package/cpp/generated/breez_sdk_spark.hpp +63 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +348 -40
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +347 -39
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +48 -19
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1493 -163
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +48 -19
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1493 -163
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +104 -18
- package/src/generated/breez_sdk_spark.ts +2727 -61
|
@@ -187,6 +187,11 @@ export declare function newRestChainService(url: string, network: Network, apiTy
|
|
|
187
187
|
export declare function newSharedSdkContext(config: SdkContextConfig, asyncOpts_?: {
|
|
188
188
|
signal: AbortSignal;
|
|
189
189
|
}): Promise<SdkContextInterface>;
|
|
190
|
+
/**
|
|
191
|
+
* A CPFP signer backed by a single private key. Signs P2WPKH and P2TR key-path
|
|
192
|
+
* inputs only; taproot script-path spends are not supported.
|
|
193
|
+
*/
|
|
194
|
+
export declare function singleKeyCpfpSigner(secretKeyBytes: ArrayBuffer): CpfpSigner;
|
|
190
195
|
/**
|
|
191
196
|
* Trait for event listeners
|
|
192
197
|
*/
|
|
@@ -1141,10 +1146,11 @@ export type ConnectWithPasskeyRequest = {
|
|
|
1141
1146
|
*/
|
|
1142
1147
|
label: string | undefined;
|
|
1143
1148
|
/**
|
|
1144
|
-
* Optional credential IDs to restrict the
|
|
1145
|
-
*
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1149
|
+
* Optional credential IDs to restrict the sign-in attempt to
|
|
1150
|
+
* (reauthentication path). A non-empty list runs the modal sign-in
|
|
1151
|
+
* rather than the immediate probe (a pin means a credential is already
|
|
1152
|
+
* known). See [`SignInRequest::allow_credentials`]. Ignored on the
|
|
1153
|
+
* fallback registration path.
|
|
1148
1154
|
*/
|
|
1149
1155
|
allowCredentials: Array<ArrayBuffer> | undefined;
|
|
1150
1156
|
/**
|
|
@@ -1181,10 +1187,17 @@ export declare const ConnectWithPasskeyRequest: Readonly<{
|
|
|
1181
1187
|
* registered, when the provider surfaces it. The register path also
|
|
1182
1188
|
* populates the attestation fields (`aaguid`, `backup_eligible`); the
|
|
1183
1189
|
* sign-in path sets only `credential_id`.
|
|
1190
|
+
*
|
|
1191
|
+
* `labels` is the user's discovered label set when `request.label` was
|
|
1192
|
+
* `None` (the returning-user multi-wallet case): `wallet` is the default
|
|
1193
|
+
* label, and a host showing more than one entry lets the user pick
|
|
1194
|
+
* another via [`PasskeyClient::sign_in`]. Empty on the register path (a
|
|
1195
|
+
* new user has no other labels) and when a specific label was requested.
|
|
1184
1196
|
*/
|
|
1185
1197
|
export type ConnectWithPasskeyResponse = {
|
|
1186
1198
|
wallet: Wallet;
|
|
1187
1199
|
credential: PasskeyCredential | undefined;
|
|
1200
|
+
labels: Array<string>;
|
|
1188
1201
|
};
|
|
1189
1202
|
/**
|
|
1190
1203
|
* Generated factory for {@link ConnectWithPasskeyResponse} record objects.
|
|
@@ -4479,6 +4492,38 @@ export declare const PaymentRequestSource: Readonly<{
|
|
|
4479
4492
|
*/
|
|
4480
4493
|
defaults: () => Partial<PaymentRequestSource>;
|
|
4481
4494
|
}>;
|
|
4495
|
+
/**
|
|
4496
|
+
* How much to fund one branch of the exit to avoid a fan-out.
|
|
4497
|
+
*/
|
|
4498
|
+
export type PerBranchFunding = {
|
|
4499
|
+
/**
|
|
4500
|
+
* The leaf whose branch this funds.
|
|
4501
|
+
*/
|
|
4502
|
+
leafId: string;
|
|
4503
|
+
/**
|
|
4504
|
+
* Fund a UTXO of at least this many satoshis for this branch.
|
|
4505
|
+
*/
|
|
4506
|
+
fundingSat: bigint;
|
|
4507
|
+
};
|
|
4508
|
+
/**
|
|
4509
|
+
* Generated factory for {@link PerBranchFunding} record objects.
|
|
4510
|
+
*/
|
|
4511
|
+
export declare const PerBranchFunding: Readonly<{
|
|
4512
|
+
/**
|
|
4513
|
+
* Create a frozen instance of {@link PerBranchFunding}, with defaults specified
|
|
4514
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4515
|
+
*/
|
|
4516
|
+
create: (partial: Partial<PerBranchFunding> & Required<Omit<PerBranchFunding, never>>) => PerBranchFunding;
|
|
4517
|
+
/**
|
|
4518
|
+
* Create a frozen instance of {@link PerBranchFunding}, with defaults specified
|
|
4519
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4520
|
+
*/
|
|
4521
|
+
new: (partial: Partial<PerBranchFunding> & Required<Omit<PerBranchFunding, never>>) => PerBranchFunding;
|
|
4522
|
+
/**
|
|
4523
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
4524
|
+
*/
|
|
4525
|
+
defaults: () => Partial<PerBranchFunding>;
|
|
4526
|
+
}>;
|
|
4482
4527
|
export type PrepareLnurlPayRequest = {
|
|
4483
4528
|
/**
|
|
4484
4529
|
* The amount to send. Denominated in satoshis, or in token base units
|
|
@@ -4658,6 +4703,98 @@ export declare const PrepareSendPaymentResponse: Readonly<{
|
|
|
4658
4703
|
*/
|
|
4659
4704
|
defaults: () => Partial<PrepareSendPaymentResponse>;
|
|
4660
4705
|
}>;
|
|
4706
|
+
/**
|
|
4707
|
+
* Request for `prepare_unilateral_exit`, the exit quote.
|
|
4708
|
+
*/
|
|
4709
|
+
export type PrepareUnilateralExitRequest = {
|
|
4710
|
+
/**
|
|
4711
|
+
* Target fee rate in sat/vByte, applied to every CPFP child, the fan-out,
|
|
4712
|
+
* and the sweep.
|
|
4713
|
+
*/
|
|
4714
|
+
feeRateSatPerVbyte: bigint;
|
|
4715
|
+
fundingKind: CpfpFundingKind;
|
|
4716
|
+
/**
|
|
4717
|
+
* The Bitcoin address the swept funds are sent to.
|
|
4718
|
+
*/
|
|
4719
|
+
destination: string;
|
|
4720
|
+
selection: ExitLeafSelection;
|
|
4721
|
+
};
|
|
4722
|
+
/**
|
|
4723
|
+
* Generated factory for {@link PrepareUnilateralExitRequest} record objects.
|
|
4724
|
+
*/
|
|
4725
|
+
export declare const PrepareUnilateralExitRequest: Readonly<{
|
|
4726
|
+
/**
|
|
4727
|
+
* Create a frozen instance of {@link PrepareUnilateralExitRequest}, with defaults specified
|
|
4728
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4729
|
+
*/
|
|
4730
|
+
create: (partial: Partial<PrepareUnilateralExitRequest> & Required<Omit<PrepareUnilateralExitRequest, never>>) => PrepareUnilateralExitRequest;
|
|
4731
|
+
/**
|
|
4732
|
+
* Create a frozen instance of {@link PrepareUnilateralExitRequest}, with defaults specified
|
|
4733
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4734
|
+
*/
|
|
4735
|
+
new: (partial: Partial<PrepareUnilateralExitRequest> & Required<Omit<PrepareUnilateralExitRequest, never>>) => PrepareUnilateralExitRequest;
|
|
4736
|
+
/**
|
|
4737
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
4738
|
+
*/
|
|
4739
|
+
defaults: () => Partial<PrepareUnilateralExitRequest>;
|
|
4740
|
+
}>;
|
|
4741
|
+
/**
|
|
4742
|
+
* Response from `prepare_unilateral_exit`: which leaves would exit, the exact
|
|
4743
|
+
* fee at the requested rate, and how much to fund.
|
|
4744
|
+
*/
|
|
4745
|
+
export type PrepareUnilateralExitResponse = {
|
|
4746
|
+
leaves: Array<UnilateralExitLeaf>;
|
|
4747
|
+
/**
|
|
4748
|
+
* Total value of the selected leaves, in satoshis.
|
|
4749
|
+
*/
|
|
4750
|
+
recoverableValueSat: bigint;
|
|
4751
|
+
/**
|
|
4752
|
+
* Total on-chain fee when funding with a single UTXO (fanned out across
|
|
4753
|
+
* branches), in satoshis. Exact for the given funding kind; nodes the
|
|
4754
|
+
* operators report on-chain are assumed already paid, so a partially-exited
|
|
4755
|
+
* tree quotes a lower fee than a fresh one.
|
|
4756
|
+
*/
|
|
4757
|
+
totalFeeSat: bigint;
|
|
4758
|
+
/**
|
|
4759
|
+
* The part of `total_fee_sat` paid for the fan-out transaction. Funding one
|
|
4760
|
+
* UTXO per branch (`per_branch_funding`) avoids it. Zero for a single
|
|
4761
|
+
* branch (no fan-out).
|
|
4762
|
+
*/
|
|
4763
|
+
fanoutFeeSat: bigint;
|
|
4764
|
+
/**
|
|
4765
|
+
* Fund a single UTXO of at least this many satoshis to exit with a fan-out.
|
|
4766
|
+
*/
|
|
4767
|
+
singleUtxoFundingSat: bigint;
|
|
4768
|
+
/**
|
|
4769
|
+
* To skip the fan-out, fund one UTXO per branch of at least the given
|
|
4770
|
+
* amount (one entry per selected leaf).
|
|
4771
|
+
*/
|
|
4772
|
+
perBranchFunding: Array<PerBranchFunding>;
|
|
4773
|
+
/**
|
|
4774
|
+
* The fee rate this quote was computed at, in sat/vByte.
|
|
4775
|
+
*/
|
|
4776
|
+
feeRateSatPerVbyte: bigint;
|
|
4777
|
+
destination: string;
|
|
4778
|
+
};
|
|
4779
|
+
/**
|
|
4780
|
+
* Generated factory for {@link PrepareUnilateralExitResponse} record objects.
|
|
4781
|
+
*/
|
|
4782
|
+
export declare const PrepareUnilateralExitResponse: Readonly<{
|
|
4783
|
+
/**
|
|
4784
|
+
* Create a frozen instance of {@link PrepareUnilateralExitResponse}, with defaults specified
|
|
4785
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4786
|
+
*/
|
|
4787
|
+
create: (partial: Partial<PrepareUnilateralExitResponse> & Required<Omit<PrepareUnilateralExitResponse, never>>) => PrepareUnilateralExitResponse;
|
|
4788
|
+
/**
|
|
4789
|
+
* Create a frozen instance of {@link PrepareUnilateralExitResponse}, with defaults specified
|
|
4790
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
4791
|
+
*/
|
|
4792
|
+
new: (partial: Partial<PrepareUnilateralExitResponse> & Required<Omit<PrepareUnilateralExitResponse, never>>) => PrepareUnilateralExitResponse;
|
|
4793
|
+
/**
|
|
4794
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
4795
|
+
*/
|
|
4796
|
+
defaults: () => Partial<PrepareUnilateralExitResponse>;
|
|
4797
|
+
}>;
|
|
4661
4798
|
export type ProvisionalPayment = {
|
|
4662
4799
|
/**
|
|
4663
4800
|
* Unique identifier for the payment
|
|
@@ -5007,6 +5144,44 @@ export declare const RefundDepositResponse: Readonly<{
|
|
|
5007
5144
|
*/
|
|
5008
5145
|
defaults: () => Partial<RefundDepositResponse>;
|
|
5009
5146
|
}>;
|
|
5147
|
+
/**
|
|
5148
|
+
* Response from refunding pending conversions.
|
|
5149
|
+
*/
|
|
5150
|
+
export type RefundPendingConversionsResponse = {
|
|
5151
|
+
/**
|
|
5152
|
+
* Conversions successfully refunded this pass.
|
|
5153
|
+
*/
|
|
5154
|
+
refunded: number;
|
|
5155
|
+
/**
|
|
5156
|
+
* Conversions intentionally deferred (eligible but held back by a
|
|
5157
|
+
* safety window). The next pass will retry them.
|
|
5158
|
+
*/
|
|
5159
|
+
skipped: number;
|
|
5160
|
+
/**
|
|
5161
|
+
* Conversions whose clawback did not complete this pass (rejected or
|
|
5162
|
+
* errored; funds not returned). The next pass will retry them.
|
|
5163
|
+
*/
|
|
5164
|
+
failed: number;
|
|
5165
|
+
};
|
|
5166
|
+
/**
|
|
5167
|
+
* Generated factory for {@link RefundPendingConversionsResponse} record objects.
|
|
5168
|
+
*/
|
|
5169
|
+
export declare const RefundPendingConversionsResponse: Readonly<{
|
|
5170
|
+
/**
|
|
5171
|
+
* Create a frozen instance of {@link RefundPendingConversionsResponse}, with defaults specified
|
|
5172
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
5173
|
+
*/
|
|
5174
|
+
create: (partial: Partial<RefundPendingConversionsResponse> & Required<Omit<RefundPendingConversionsResponse, never>>) => RefundPendingConversionsResponse;
|
|
5175
|
+
/**
|
|
5176
|
+
* Create a frozen instance of {@link RefundPendingConversionsResponse}, with defaults specified
|
|
5177
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
5178
|
+
*/
|
|
5179
|
+
new: (partial: Partial<RefundPendingConversionsResponse> & Required<Omit<RefundPendingConversionsResponse, never>>) => RefundPendingConversionsResponse;
|
|
5180
|
+
/**
|
|
5181
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
5182
|
+
*/
|
|
5183
|
+
defaults: () => Partial<RefundPendingConversionsResponse>;
|
|
5184
|
+
}>;
|
|
5010
5185
|
export type RegisterLightningAddressRequest = {
|
|
5011
5186
|
username: string;
|
|
5012
5187
|
description: string | undefined;
|
|
@@ -6675,6 +6850,161 @@ export declare const UnfreezeIssuerTokenResponse: Readonly<{
|
|
|
6675
6850
|
*/
|
|
6676
6851
|
defaults: () => Partial<UnfreezeIssuerTokenResponse>;
|
|
6677
6852
|
}>;
|
|
6853
|
+
/**
|
|
6854
|
+
* A leaf selected for exit, with its value.
|
|
6855
|
+
*/
|
|
6856
|
+
export type UnilateralExitLeaf = {
|
|
6857
|
+
leafId: string;
|
|
6858
|
+
/**
|
|
6859
|
+
* The leaf's value in satoshis.
|
|
6860
|
+
*/
|
|
6861
|
+
value: bigint;
|
|
6862
|
+
};
|
|
6863
|
+
/**
|
|
6864
|
+
* Generated factory for {@link UnilateralExitLeaf} record objects.
|
|
6865
|
+
*/
|
|
6866
|
+
export declare const UnilateralExitLeaf: Readonly<{
|
|
6867
|
+
/**
|
|
6868
|
+
* Create a frozen instance of {@link UnilateralExitLeaf}, with defaults specified
|
|
6869
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6870
|
+
*/
|
|
6871
|
+
create: (partial: Partial<UnilateralExitLeaf> & Required<Omit<UnilateralExitLeaf, never>>) => UnilateralExitLeaf;
|
|
6872
|
+
/**
|
|
6873
|
+
* Create a frozen instance of {@link UnilateralExitLeaf}, with defaults specified
|
|
6874
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6875
|
+
*/
|
|
6876
|
+
new: (partial: Partial<UnilateralExitLeaf> & Required<Omit<UnilateralExitLeaf, never>>) => UnilateralExitLeaf;
|
|
6877
|
+
/**
|
|
6878
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
6879
|
+
*/
|
|
6880
|
+
defaults: () => Partial<UnilateralExitLeaf>;
|
|
6881
|
+
}>;
|
|
6882
|
+
/**
|
|
6883
|
+
* Request for `unilateral_exit`: a `prepare_unilateral_exit` quote plus the
|
|
6884
|
+
* funding UTXOs that pay its fees. The signer is passed separately (it is not a
|
|
6885
|
+
* plain data value).
|
|
6886
|
+
*/
|
|
6887
|
+
export type UnilateralExitRequest = {
|
|
6888
|
+
/**
|
|
6889
|
+
* The quote returned by `prepare_unilateral_exit`, naming the leaves to exit.
|
|
6890
|
+
*/
|
|
6891
|
+
prepared: PrepareUnilateralExitResponse;
|
|
6892
|
+
/**
|
|
6893
|
+
* The funding UTXOs that pay the exit's on-chain fees, meeting the quote's
|
|
6894
|
+
* `single_utxo_funding_sat` (one UTXO) or `per_branch_funding` (one per branch).
|
|
6895
|
+
*/
|
|
6896
|
+
fundingInputs: Array<CpfpInput>;
|
|
6897
|
+
};
|
|
6898
|
+
/**
|
|
6899
|
+
* Generated factory for {@link UnilateralExitRequest} record objects.
|
|
6900
|
+
*/
|
|
6901
|
+
export declare const UnilateralExitRequest: Readonly<{
|
|
6902
|
+
/**
|
|
6903
|
+
* Create a frozen instance of {@link UnilateralExitRequest}, with defaults specified
|
|
6904
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6905
|
+
*/
|
|
6906
|
+
create: (partial: Partial<UnilateralExitRequest> & Required<Omit<UnilateralExitRequest, never>>) => UnilateralExitRequest;
|
|
6907
|
+
/**
|
|
6908
|
+
* Create a frozen instance of {@link UnilateralExitRequest}, with defaults specified
|
|
6909
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6910
|
+
*/
|
|
6911
|
+
new: (partial: Partial<UnilateralExitRequest> & Required<Omit<UnilateralExitRequest, never>>) => UnilateralExitRequest;
|
|
6912
|
+
/**
|
|
6913
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
6914
|
+
*/
|
|
6915
|
+
defaults: () => Partial<UnilateralExitRequest>;
|
|
6916
|
+
}>;
|
|
6917
|
+
/**
|
|
6918
|
+
* Result of `unilateral_exit`: a cost summary plus the complete, signed exit
|
|
6919
|
+
* path.
|
|
6920
|
+
*/
|
|
6921
|
+
export type UnilateralExitResponse = {
|
|
6922
|
+
/**
|
|
6923
|
+
* Total value of the selected leaves, in satoshis.
|
|
6924
|
+
*/
|
|
6925
|
+
recoverableValueSat: bigint;
|
|
6926
|
+
/**
|
|
6927
|
+
* The actual total on-chain fee the returned transactions pay at the
|
|
6928
|
+
* requested rate, in satoshis. A resumed or partially-confirmed exit pays
|
|
6929
|
+
* less because already-confirmed steps are not rebuilt.
|
|
6930
|
+
*/
|
|
6931
|
+
totalFeeSat: bigint;
|
|
6932
|
+
leaves: Array<UnilateralExitLeaf>;
|
|
6933
|
+
/**
|
|
6934
|
+
* The full signed transaction set, in valid topological (broadcast) order
|
|
6935
|
+
* with shared ancestors appearing once and the sweep last.
|
|
6936
|
+
*/
|
|
6937
|
+
transactions: Array<UnilateralExitTransaction>;
|
|
6938
|
+
};
|
|
6939
|
+
/**
|
|
6940
|
+
* Generated factory for {@link UnilateralExitResponse} record objects.
|
|
6941
|
+
*/
|
|
6942
|
+
export declare const UnilateralExitResponse: Readonly<{
|
|
6943
|
+
/**
|
|
6944
|
+
* Create a frozen instance of {@link UnilateralExitResponse}, with defaults specified
|
|
6945
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6946
|
+
*/
|
|
6947
|
+
create: (partial: Partial<UnilateralExitResponse> & Required<Omit<UnilateralExitResponse, never>>) => UnilateralExitResponse;
|
|
6948
|
+
/**
|
|
6949
|
+
* Create a frozen instance of {@link UnilateralExitResponse}, with defaults specified
|
|
6950
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6951
|
+
*/
|
|
6952
|
+
new: (partial: Partial<UnilateralExitResponse> & Required<Omit<UnilateralExitResponse, never>>) => UnilateralExitResponse;
|
|
6953
|
+
/**
|
|
6954
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
6955
|
+
*/
|
|
6956
|
+
defaults: () => Partial<UnilateralExitResponse>;
|
|
6957
|
+
}>;
|
|
6958
|
+
/**
|
|
6959
|
+
* One transaction in the unilateral exit path, with everything needed to
|
|
6960
|
+
* order and broadcast it.
|
|
6961
|
+
*/
|
|
6962
|
+
export type UnilateralExitTransaction = {
|
|
6963
|
+
kind: UnilateralExitTxKind;
|
|
6964
|
+
/**
|
|
6965
|
+
* The tree node this transaction belongs to. Unset for the fan-out and the
|
|
6966
|
+
* sweep.
|
|
6967
|
+
*/
|
|
6968
|
+
nodeId: string | undefined;
|
|
6969
|
+
txid: string;
|
|
6970
|
+
txHex: string;
|
|
6971
|
+
/**
|
|
6972
|
+
* The signed CPFP child to broadcast alongside `tx_hex` as a package.
|
|
6973
|
+
* Unset for the fan-out and the sweep (no anchor to bump) and for a
|
|
6974
|
+
* `Confirmed` step (its CPFP is already on-chain).
|
|
6975
|
+
*/
|
|
6976
|
+
cpfpTxHex: string | undefined;
|
|
6977
|
+
/**
|
|
6978
|
+
* Relative CSV timelock, in blocks, that must mature on the spent input
|
|
6979
|
+
* before this transaction can confirm. Unset when there is no timelock.
|
|
6980
|
+
*/
|
|
6981
|
+
csvTimelockBlocks: /*u32*/ number | undefined;
|
|
6982
|
+
/**
|
|
6983
|
+
* Txids of other entries in this list that must be confirmed before this
|
|
6984
|
+
* one can be broadcast.
|
|
6985
|
+
*/
|
|
6986
|
+
dependsOn: Array<string>;
|
|
6987
|
+
status: ConfirmationStatus;
|
|
6988
|
+
};
|
|
6989
|
+
/**
|
|
6990
|
+
* Generated factory for {@link UnilateralExitTransaction} record objects.
|
|
6991
|
+
*/
|
|
6992
|
+
export declare const UnilateralExitTransaction: Readonly<{
|
|
6993
|
+
/**
|
|
6994
|
+
* Create a frozen instance of {@link UnilateralExitTransaction}, with defaults specified
|
|
6995
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6996
|
+
*/
|
|
6997
|
+
create: (partial: Partial<UnilateralExitTransaction> & Required<Omit<UnilateralExitTransaction, never>>) => UnilateralExitTransaction;
|
|
6998
|
+
/**
|
|
6999
|
+
* Create a frozen instance of {@link UnilateralExitTransaction}, with defaults specified
|
|
7000
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
7001
|
+
*/
|
|
7002
|
+
new: (partial: Partial<UnilateralExitTransaction> & Required<Omit<UnilateralExitTransaction, never>>) => UnilateralExitTransaction;
|
|
7003
|
+
/**
|
|
7004
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
7005
|
+
*/
|
|
7006
|
+
defaults: () => Partial<UnilateralExitTransaction>;
|
|
7007
|
+
}>;
|
|
6678
7008
|
/**
|
|
6679
7009
|
* Request to unregister an existing webhook.
|
|
6680
7010
|
*/
|
|
@@ -6763,6 +7093,14 @@ export type UpdateUserSettingsRequest = {
|
|
|
6763
7093
|
* Update the active stable balance token. `None` means no change.
|
|
6764
7094
|
*/
|
|
6765
7095
|
stableBalanceActiveLabel: StableBalanceActiveLabel | undefined;
|
|
7096
|
+
/**
|
|
7097
|
+
* Designate or remove the wallet's master identity, a second public key
|
|
7098
|
+
* the Spark operators accept as a reader of this wallet's balance and
|
|
7099
|
+
* history while `spark_private_mode_enabled` is set. The master identity
|
|
7100
|
+
* can only read: payments still require the owner's keys. `None` means no
|
|
7101
|
+
* change.
|
|
7102
|
+
*/
|
|
7103
|
+
sparkMasterIdentityPublicKey: SparkMasterIdentityPublicKey | undefined;
|
|
6766
7104
|
};
|
|
6767
7105
|
/**
|
|
6768
7106
|
* Generated factory for {@link UpdateUserSettingsRequest} record objects.
|
|
@@ -6772,12 +7110,12 @@ export declare const UpdateUserSettingsRequest: Readonly<{
|
|
|
6772
7110
|
* Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
|
|
6773
7111
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6774
7112
|
*/
|
|
6775
|
-
create: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel">>) => UpdateUserSettingsRequest;
|
|
7113
|
+
create: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel" | "sparkMasterIdentityPublicKey">>) => UpdateUserSettingsRequest;
|
|
6776
7114
|
/**
|
|
6777
7115
|
* Create a frozen instance of {@link UpdateUserSettingsRequest}, with defaults specified
|
|
6778
7116
|
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
6779
7117
|
*/
|
|
6780
|
-
new: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel">>) => UpdateUserSettingsRequest;
|
|
7118
|
+
new: (partial: Partial<UpdateUserSettingsRequest> & Required<Omit<UpdateUserSettingsRequest, "stableBalanceActiveLabel" | "sparkMasterIdentityPublicKey">>) => UpdateUserSettingsRequest;
|
|
6781
7119
|
/**
|
|
6782
7120
|
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
6783
7121
|
*/
|
|
@@ -6824,6 +7162,11 @@ export type UserSettings = {
|
|
|
6824
7162
|
* The label of the currently active stable balance token, or `None` if deactivated.
|
|
6825
7163
|
*/
|
|
6826
7164
|
stableBalanceActiveLabel: string | undefined;
|
|
7165
|
+
/**
|
|
7166
|
+
* The hex encoded public key designated as this wallet's master identity
|
|
7167
|
+
* key, or `None` if none is designated.
|
|
7168
|
+
*/
|
|
7169
|
+
sparkMasterIdentityPublicKey: string | undefined;
|
|
6827
7170
|
};
|
|
6828
7171
|
/**
|
|
6829
7172
|
* Generated factory for {@link UserSettings} record objects.
|
|
@@ -7924,6 +8267,24 @@ export declare const ChainServiceError: Readonly<{
|
|
|
7924
8267
|
};
|
|
7925
8268
|
}>;
|
|
7926
8269
|
export type ChainServiceError = InstanceType<(typeof ChainServiceError)[keyof Omit<typeof ChainServiceError, 'instanceOf'>]>;
|
|
8270
|
+
/**
|
|
8271
|
+
* Whether a transaction in the exit path is already on-chain.
|
|
8272
|
+
*/
|
|
8273
|
+
export declare enum ConfirmationStatus {
|
|
8274
|
+
/**
|
|
8275
|
+
* This transaction is confirmed in a block. It needs no action.
|
|
8276
|
+
*/
|
|
8277
|
+
Confirmed = 0,
|
|
8278
|
+
/**
|
|
8279
|
+
* This transaction is not yet confirmed. Mempool state is not consulted.
|
|
8280
|
+
*/
|
|
8281
|
+
Unconfirmed = 1,
|
|
8282
|
+
/**
|
|
8283
|
+
* The on-chain status could not be determined (the chain service errored).
|
|
8284
|
+
* Broadcasting may fail if a conflicting transaction already landed.
|
|
8285
|
+
*/
|
|
8286
|
+
Unverified = 2
|
|
8287
|
+
}
|
|
7927
8288
|
export declare enum ConversionChain_Tags {
|
|
7928
8289
|
Spark = "Spark",
|
|
7929
8290
|
Lightning = "Lightning",
|
|
@@ -8812,88 +9173,381 @@ export declare const ConversionType: Readonly<{
|
|
|
8812
9173
|
};
|
|
8813
9174
|
}>;
|
|
8814
9175
|
export type ConversionType = InstanceType<(typeof ConversionType)[keyof Omit<typeof ConversionType, 'instanceOf'>]>;
|
|
8815
|
-
export declare enum
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
}
|
|
8820
|
-
/**
|
|
8821
|
-
* How the caller wants fees handled against the request `amount`.
|
|
8822
|
-
*
|
|
8823
|
-
* - `FeesExcluded`: `amount` is the provider invoice/deposit target; the
|
|
8824
|
-
* wallet pays `amount + source_transfer_fee_sats` in total.
|
|
8825
|
-
* - `FeesIncluded`: `amount` is the wallet's total sats budget; the provider
|
|
8826
|
-
* leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
|
|
8827
|
-
*/
|
|
8828
|
-
export declare enum CrossChainFeeMode {
|
|
8829
|
-
FeesExcluded = 0,
|
|
8830
|
-
FeesIncluded = 1
|
|
8831
|
-
}
|
|
8832
|
-
export declare enum CrossChainProvider {
|
|
8833
|
-
Orchestra = 0,
|
|
8834
|
-
Boltz = 1
|
|
8835
|
-
}
|
|
8836
|
-
export declare enum CrossChainProviderContext_Tags {
|
|
8837
|
-
Orchestra = "Orchestra",
|
|
8838
|
-
Boltz = "Boltz"
|
|
9176
|
+
export declare enum CpfpFundingKind_Tags {
|
|
9177
|
+
P2wpkh = "P2wpkh",
|
|
9178
|
+
P2tr = "P2tr",
|
|
9179
|
+
Custom = "Custom"
|
|
8839
9180
|
}
|
|
8840
9181
|
/**
|
|
8841
|
-
*
|
|
8842
|
-
* Typed per provider so the send stage can resume without re-quoting and
|
|
8843
|
-
* without a serde round-trip. Callers should round-trip this value as-is.
|
|
9182
|
+
* The kind of UTXO that will fund an exit's fees.
|
|
8844
9183
|
*/
|
|
8845
|
-
export declare const
|
|
8846
|
-
instanceOf: (obj: any) => obj is
|
|
8847
|
-
|
|
8848
|
-
new (
|
|
8849
|
-
|
|
8850
|
-
* Orchestra quote id, passed back on `/submit`.
|
|
8851
|
-
*/ quoteId: string;
|
|
8852
|
-
/**
|
|
8853
|
-
* Spark address Orchestra expects the deposit transfer to land on.
|
|
8854
|
-
*/ depositAddress: string;
|
|
8855
|
-
/**
|
|
8856
|
-
* Spark-side deposit amount in the route's source-asset base units.
|
|
8857
|
-
*/ depositAmount: U128;
|
|
8858
|
-
}): {
|
|
8859
|
-
readonly tag: CrossChainProviderContext_Tags.Orchestra;
|
|
8860
|
-
readonly inner: Readonly<{
|
|
8861
|
-
quoteId: string;
|
|
8862
|
-
depositAddress: string;
|
|
8863
|
-
depositAmount: U128;
|
|
8864
|
-
}>;
|
|
9184
|
+
export declare const CpfpFundingKind: Readonly<{
|
|
9185
|
+
instanceOf: (obj: any) => obj is CpfpFundingKind;
|
|
9186
|
+
P2wpkh: {
|
|
9187
|
+
new (): {
|
|
9188
|
+
readonly tag: CpfpFundingKind_Tags.P2wpkh;
|
|
8865
9189
|
/**
|
|
8866
9190
|
* @private
|
|
8867
9191
|
* This field is private and should not be used, use `tag` instead.
|
|
8868
9192
|
*/
|
|
8869
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
9193
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
8870
9194
|
};
|
|
8871
|
-
"new"(
|
|
8872
|
-
|
|
8873
|
-
* Orchestra quote id, passed back on `/submit`.
|
|
8874
|
-
*/ quoteId: string;
|
|
8875
|
-
/**
|
|
8876
|
-
* Spark address Orchestra expects the deposit transfer to land on.
|
|
8877
|
-
*/ depositAddress: string;
|
|
8878
|
-
/**
|
|
8879
|
-
* Spark-side deposit amount in the route's source-asset base units.
|
|
8880
|
-
*/ depositAmount: U128;
|
|
8881
|
-
}): {
|
|
8882
|
-
readonly tag: CrossChainProviderContext_Tags.Orchestra;
|
|
8883
|
-
readonly inner: Readonly<{
|
|
8884
|
-
quoteId: string;
|
|
8885
|
-
depositAddress: string;
|
|
8886
|
-
depositAmount: U128;
|
|
8887
|
-
}>;
|
|
9195
|
+
"new"(): {
|
|
9196
|
+
readonly tag: CpfpFundingKind_Tags.P2wpkh;
|
|
8888
9197
|
/**
|
|
8889
9198
|
* @private
|
|
8890
9199
|
* This field is private and should not be used, use `tag` instead.
|
|
8891
9200
|
*/
|
|
8892
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
9201
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
8893
9202
|
};
|
|
8894
9203
|
instanceOf(obj: any): obj is {
|
|
8895
|
-
readonly tag:
|
|
8896
|
-
|
|
9204
|
+
readonly tag: CpfpFundingKind_Tags.P2wpkh;
|
|
9205
|
+
/**
|
|
9206
|
+
* @private
|
|
9207
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9208
|
+
*/
|
|
9209
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
9210
|
+
};
|
|
9211
|
+
};
|
|
9212
|
+
P2tr: {
|
|
9213
|
+
new (): {
|
|
9214
|
+
readonly tag: CpfpFundingKind_Tags.P2tr;
|
|
9215
|
+
/**
|
|
9216
|
+
* @private
|
|
9217
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9218
|
+
*/
|
|
9219
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
9220
|
+
};
|
|
9221
|
+
"new"(): {
|
|
9222
|
+
readonly tag: CpfpFundingKind_Tags.P2tr;
|
|
9223
|
+
/**
|
|
9224
|
+
* @private
|
|
9225
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9226
|
+
*/
|
|
9227
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
9228
|
+
};
|
|
9229
|
+
instanceOf(obj: any): obj is {
|
|
9230
|
+
readonly tag: CpfpFundingKind_Tags.P2tr;
|
|
9231
|
+
/**
|
|
9232
|
+
* @private
|
|
9233
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9234
|
+
*/
|
|
9235
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
9236
|
+
};
|
|
9237
|
+
};
|
|
9238
|
+
Custom: {
|
|
9239
|
+
new (inner: {
|
|
9240
|
+
scriptPubkeyHex: string;
|
|
9241
|
+
signedInputWeight: bigint;
|
|
9242
|
+
}): {
|
|
9243
|
+
readonly tag: CpfpFundingKind_Tags.Custom;
|
|
9244
|
+
readonly inner: Readonly<{
|
|
9245
|
+
scriptPubkeyHex: string;
|
|
9246
|
+
signedInputWeight: bigint;
|
|
9247
|
+
}>;
|
|
9248
|
+
/**
|
|
9249
|
+
* @private
|
|
9250
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9251
|
+
*/
|
|
9252
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
9253
|
+
};
|
|
9254
|
+
"new"(inner: {
|
|
9255
|
+
scriptPubkeyHex: string;
|
|
9256
|
+
signedInputWeight: bigint;
|
|
9257
|
+
}): {
|
|
9258
|
+
readonly tag: CpfpFundingKind_Tags.Custom;
|
|
9259
|
+
readonly inner: Readonly<{
|
|
9260
|
+
scriptPubkeyHex: string;
|
|
9261
|
+
signedInputWeight: bigint;
|
|
9262
|
+
}>;
|
|
9263
|
+
/**
|
|
9264
|
+
* @private
|
|
9265
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9266
|
+
*/
|
|
9267
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
9268
|
+
};
|
|
9269
|
+
instanceOf(obj: any): obj is {
|
|
9270
|
+
readonly tag: CpfpFundingKind_Tags.Custom;
|
|
9271
|
+
readonly inner: Readonly<{
|
|
9272
|
+
scriptPubkeyHex: string;
|
|
9273
|
+
signedInputWeight: bigint;
|
|
9274
|
+
}>;
|
|
9275
|
+
/**
|
|
9276
|
+
* @private
|
|
9277
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9278
|
+
*/
|
|
9279
|
+
readonly [uniffiTypeNameSymbol]: "CpfpFundingKind";
|
|
9280
|
+
};
|
|
9281
|
+
};
|
|
9282
|
+
}>;
|
|
9283
|
+
/**
|
|
9284
|
+
* The kind of UTXO that will fund an exit's fees.
|
|
9285
|
+
*/
|
|
9286
|
+
export type CpfpFundingKind = InstanceType<(typeof CpfpFundingKind)[keyof Omit<typeof CpfpFundingKind, 'instanceOf'>]>;
|
|
9287
|
+
export declare enum CpfpInput_Tags {
|
|
9288
|
+
P2wpkh = "P2wpkh",
|
|
9289
|
+
P2tr = "P2tr",
|
|
9290
|
+
Custom = "Custom"
|
|
9291
|
+
}
|
|
9292
|
+
/**
|
|
9293
|
+
* A funding UTXO that pays the on-chain fees of a unilateral exit.
|
|
9294
|
+
*/
|
|
9295
|
+
export declare const CpfpInput: Readonly<{
|
|
9296
|
+
instanceOf: (obj: any) => obj is CpfpInput;
|
|
9297
|
+
P2wpkh: {
|
|
9298
|
+
new (inner: {
|
|
9299
|
+
txid: string;
|
|
9300
|
+
vout: number;
|
|
9301
|
+
value: bigint;
|
|
9302
|
+
pubkey: string;
|
|
9303
|
+
}): {
|
|
9304
|
+
readonly tag: CpfpInput_Tags.P2wpkh;
|
|
9305
|
+
readonly inner: Readonly<{
|
|
9306
|
+
txid: string;
|
|
9307
|
+
vout: number;
|
|
9308
|
+
value: bigint;
|
|
9309
|
+
pubkey: string;
|
|
9310
|
+
}>;
|
|
9311
|
+
/**
|
|
9312
|
+
* @private
|
|
9313
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9314
|
+
*/
|
|
9315
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9316
|
+
};
|
|
9317
|
+
"new"(inner: {
|
|
9318
|
+
txid: string;
|
|
9319
|
+
vout: number;
|
|
9320
|
+
value: bigint;
|
|
9321
|
+
pubkey: string;
|
|
9322
|
+
}): {
|
|
9323
|
+
readonly tag: CpfpInput_Tags.P2wpkh;
|
|
9324
|
+
readonly inner: Readonly<{
|
|
9325
|
+
txid: string;
|
|
9326
|
+
vout: number;
|
|
9327
|
+
value: bigint;
|
|
9328
|
+
pubkey: string;
|
|
9329
|
+
}>;
|
|
9330
|
+
/**
|
|
9331
|
+
* @private
|
|
9332
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9333
|
+
*/
|
|
9334
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9335
|
+
};
|
|
9336
|
+
instanceOf(obj: any): obj is {
|
|
9337
|
+
readonly tag: CpfpInput_Tags.P2wpkh;
|
|
9338
|
+
readonly inner: Readonly<{
|
|
9339
|
+
txid: string;
|
|
9340
|
+
vout: number;
|
|
9341
|
+
value: bigint;
|
|
9342
|
+
pubkey: string;
|
|
9343
|
+
}>;
|
|
9344
|
+
/**
|
|
9345
|
+
* @private
|
|
9346
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9347
|
+
*/
|
|
9348
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9349
|
+
};
|
|
9350
|
+
};
|
|
9351
|
+
P2tr: {
|
|
9352
|
+
new (inner: {
|
|
9353
|
+
txid: string;
|
|
9354
|
+
vout: number;
|
|
9355
|
+
value: bigint;
|
|
9356
|
+
pubkey: string;
|
|
9357
|
+
}): {
|
|
9358
|
+
readonly tag: CpfpInput_Tags.P2tr;
|
|
9359
|
+
readonly inner: Readonly<{
|
|
9360
|
+
txid: string;
|
|
9361
|
+
vout: number;
|
|
9362
|
+
value: bigint;
|
|
9363
|
+
pubkey: string;
|
|
9364
|
+
}>;
|
|
9365
|
+
/**
|
|
9366
|
+
* @private
|
|
9367
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9368
|
+
*/
|
|
9369
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9370
|
+
};
|
|
9371
|
+
"new"(inner: {
|
|
9372
|
+
txid: string;
|
|
9373
|
+
vout: number;
|
|
9374
|
+
value: bigint;
|
|
9375
|
+
pubkey: string;
|
|
9376
|
+
}): {
|
|
9377
|
+
readonly tag: CpfpInput_Tags.P2tr;
|
|
9378
|
+
readonly inner: Readonly<{
|
|
9379
|
+
txid: string;
|
|
9380
|
+
vout: number;
|
|
9381
|
+
value: bigint;
|
|
9382
|
+
pubkey: string;
|
|
9383
|
+
}>;
|
|
9384
|
+
/**
|
|
9385
|
+
* @private
|
|
9386
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9387
|
+
*/
|
|
9388
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9389
|
+
};
|
|
9390
|
+
instanceOf(obj: any): obj is {
|
|
9391
|
+
readonly tag: CpfpInput_Tags.P2tr;
|
|
9392
|
+
readonly inner: Readonly<{
|
|
9393
|
+
txid: string;
|
|
9394
|
+
vout: number;
|
|
9395
|
+
value: bigint;
|
|
9396
|
+
pubkey: string;
|
|
9397
|
+
}>;
|
|
9398
|
+
/**
|
|
9399
|
+
* @private
|
|
9400
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9401
|
+
*/
|
|
9402
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9403
|
+
};
|
|
9404
|
+
};
|
|
9405
|
+
Custom: {
|
|
9406
|
+
new (inner: {
|
|
9407
|
+
txid: string;
|
|
9408
|
+
vout: number;
|
|
9409
|
+
value: bigint;
|
|
9410
|
+
scriptPubkeyHex: string;
|
|
9411
|
+
signedInputWeight: bigint;
|
|
9412
|
+
}): {
|
|
9413
|
+
readonly tag: CpfpInput_Tags.Custom;
|
|
9414
|
+
readonly inner: Readonly<{
|
|
9415
|
+
txid: string;
|
|
9416
|
+
vout: number;
|
|
9417
|
+
value: bigint;
|
|
9418
|
+
scriptPubkeyHex: string;
|
|
9419
|
+
signedInputWeight: bigint;
|
|
9420
|
+
}>;
|
|
9421
|
+
/**
|
|
9422
|
+
* @private
|
|
9423
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9424
|
+
*/
|
|
9425
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9426
|
+
};
|
|
9427
|
+
"new"(inner: {
|
|
9428
|
+
txid: string;
|
|
9429
|
+
vout: number;
|
|
9430
|
+
value: bigint;
|
|
9431
|
+
scriptPubkeyHex: string;
|
|
9432
|
+
signedInputWeight: bigint;
|
|
9433
|
+
}): {
|
|
9434
|
+
readonly tag: CpfpInput_Tags.Custom;
|
|
9435
|
+
readonly inner: Readonly<{
|
|
9436
|
+
txid: string;
|
|
9437
|
+
vout: number;
|
|
9438
|
+
value: bigint;
|
|
9439
|
+
scriptPubkeyHex: string;
|
|
9440
|
+
signedInputWeight: bigint;
|
|
9441
|
+
}>;
|
|
9442
|
+
/**
|
|
9443
|
+
* @private
|
|
9444
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9445
|
+
*/
|
|
9446
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9447
|
+
};
|
|
9448
|
+
instanceOf(obj: any): obj is {
|
|
9449
|
+
readonly tag: CpfpInput_Tags.Custom;
|
|
9450
|
+
readonly inner: Readonly<{
|
|
9451
|
+
txid: string;
|
|
9452
|
+
vout: number;
|
|
9453
|
+
value: bigint;
|
|
9454
|
+
scriptPubkeyHex: string;
|
|
9455
|
+
signedInputWeight: bigint;
|
|
9456
|
+
}>;
|
|
9457
|
+
/**
|
|
9458
|
+
* @private
|
|
9459
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9460
|
+
*/
|
|
9461
|
+
readonly [uniffiTypeNameSymbol]: "CpfpInput";
|
|
9462
|
+
};
|
|
9463
|
+
};
|
|
9464
|
+
}>;
|
|
9465
|
+
/**
|
|
9466
|
+
* A funding UTXO that pays the on-chain fees of a unilateral exit.
|
|
9467
|
+
*/
|
|
9468
|
+
export type CpfpInput = InstanceType<(typeof CpfpInput)[keyof Omit<typeof CpfpInput, 'instanceOf'>]>;
|
|
9469
|
+
export declare enum CrossChainAddressFamily {
|
|
9470
|
+
Evm = 0,
|
|
9471
|
+
Solana = 1,
|
|
9472
|
+
Tron = 2
|
|
9473
|
+
}
|
|
9474
|
+
/**
|
|
9475
|
+
* How the caller wants fees handled against the request `amount`.
|
|
9476
|
+
*
|
|
9477
|
+
* - `FeesExcluded`: `amount` is the provider invoice/deposit target; the
|
|
9478
|
+
* wallet pays `amount + source_transfer_fee_sats` in total.
|
|
9479
|
+
* - `FeesIncluded`: `amount` is the wallet's total sats budget; the provider
|
|
9480
|
+
* leg is sized so `amount_in + source_transfer_fee_sats <= amount`.
|
|
9481
|
+
*/
|
|
9482
|
+
export declare enum CrossChainFeeMode {
|
|
9483
|
+
FeesExcluded = 0,
|
|
9484
|
+
FeesIncluded = 1
|
|
9485
|
+
}
|
|
9486
|
+
export declare enum CrossChainProvider {
|
|
9487
|
+
Orchestra = 0,
|
|
9488
|
+
Boltz = 1
|
|
9489
|
+
}
|
|
9490
|
+
export declare enum CrossChainProviderContext_Tags {
|
|
9491
|
+
Orchestra = "Orchestra",
|
|
9492
|
+
Boltz = "Boltz"
|
|
9493
|
+
}
|
|
9494
|
+
/**
|
|
9495
|
+
* Provider-internal state produced by `prepare` and consumed by `send`.
|
|
9496
|
+
* Typed per provider so the send stage can resume without re-quoting and
|
|
9497
|
+
* without a serde round-trip. Callers should round-trip this value as-is.
|
|
9498
|
+
*/
|
|
9499
|
+
export declare const CrossChainProviderContext: Readonly<{
|
|
9500
|
+
instanceOf: (obj: any) => obj is CrossChainProviderContext;
|
|
9501
|
+
Orchestra: {
|
|
9502
|
+
new (inner: {
|
|
9503
|
+
/**
|
|
9504
|
+
* Orchestra quote id, passed back on `/submit`.
|
|
9505
|
+
*/ quoteId: string;
|
|
9506
|
+
/**
|
|
9507
|
+
* Spark address Orchestra expects the deposit transfer to land on.
|
|
9508
|
+
*/ depositAddress: string;
|
|
9509
|
+
/**
|
|
9510
|
+
* Spark-side deposit amount in the route's source-asset base units.
|
|
9511
|
+
*/ depositAmount: U128;
|
|
9512
|
+
}): {
|
|
9513
|
+
readonly tag: CrossChainProviderContext_Tags.Orchestra;
|
|
9514
|
+
readonly inner: Readonly<{
|
|
9515
|
+
quoteId: string;
|
|
9516
|
+
depositAddress: string;
|
|
9517
|
+
depositAmount: U128;
|
|
9518
|
+
}>;
|
|
9519
|
+
/**
|
|
9520
|
+
* @private
|
|
9521
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9522
|
+
*/
|
|
9523
|
+
readonly [uniffiTypeNameSymbol]: "CrossChainProviderContext";
|
|
9524
|
+
};
|
|
9525
|
+
"new"(inner: {
|
|
9526
|
+
/**
|
|
9527
|
+
* Orchestra quote id, passed back on `/submit`.
|
|
9528
|
+
*/ quoteId: string;
|
|
9529
|
+
/**
|
|
9530
|
+
* Spark address Orchestra expects the deposit transfer to land on.
|
|
9531
|
+
*/ depositAddress: string;
|
|
9532
|
+
/**
|
|
9533
|
+
* Spark-side deposit amount in the route's source-asset base units.
|
|
9534
|
+
*/ depositAmount: U128;
|
|
9535
|
+
}): {
|
|
9536
|
+
readonly tag: CrossChainProviderContext_Tags.Orchestra;
|
|
9537
|
+
readonly inner: Readonly<{
|
|
9538
|
+
quoteId: string;
|
|
9539
|
+
depositAddress: string;
|
|
9540
|
+
depositAmount: U128;
|
|
9541
|
+
}>;
|
|
9542
|
+
/**
|
|
9543
|
+
* @private
|
|
9544
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9545
|
+
*/
|
|
9546
|
+
readonly [uniffiTypeNameSymbol]: "CrossChainProviderContext";
|
|
9547
|
+
};
|
|
9548
|
+
instanceOf(obj: any): obj is {
|
|
9549
|
+
readonly tag: CrossChainProviderContext_Tags.Orchestra;
|
|
9550
|
+
readonly inner: Readonly<{
|
|
8897
9551
|
quoteId: string;
|
|
8898
9552
|
depositAddress: string;
|
|
8899
9553
|
depositAmount: U128;
|
|
@@ -9404,6 +10058,85 @@ export declare enum ErrorKind {
|
|
|
9404
10058
|
*/
|
|
9405
10059
|
Internal = 8
|
|
9406
10060
|
}
|
|
10061
|
+
export declare enum ExitLeafSelection_Tags {
|
|
10062
|
+
Auto = "Auto",
|
|
10063
|
+
Specific = "Specific"
|
|
10064
|
+
}
|
|
10065
|
+
/**
|
|
10066
|
+
* Which leaves to exit.
|
|
10067
|
+
*/
|
|
10068
|
+
export declare const ExitLeafSelection: Readonly<{
|
|
10069
|
+
instanceOf: (obj: any) => obj is ExitLeafSelection;
|
|
10070
|
+
Auto: {
|
|
10071
|
+
new (): {
|
|
10072
|
+
readonly tag: ExitLeafSelection_Tags.Auto;
|
|
10073
|
+
/**
|
|
10074
|
+
* @private
|
|
10075
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10076
|
+
*/
|
|
10077
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
10078
|
+
};
|
|
10079
|
+
"new"(): {
|
|
10080
|
+
readonly tag: ExitLeafSelection_Tags.Auto;
|
|
10081
|
+
/**
|
|
10082
|
+
* @private
|
|
10083
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10084
|
+
*/
|
|
10085
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
10086
|
+
};
|
|
10087
|
+
instanceOf(obj: any): obj is {
|
|
10088
|
+
readonly tag: ExitLeafSelection_Tags.Auto;
|
|
10089
|
+
/**
|
|
10090
|
+
* @private
|
|
10091
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10092
|
+
*/
|
|
10093
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
10094
|
+
};
|
|
10095
|
+
};
|
|
10096
|
+
Specific: {
|
|
10097
|
+
new (inner: {
|
|
10098
|
+
leafIds: Array<string>;
|
|
10099
|
+
}): {
|
|
10100
|
+
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
10101
|
+
readonly inner: Readonly<{
|
|
10102
|
+
leafIds: Array<string>;
|
|
10103
|
+
}>;
|
|
10104
|
+
/**
|
|
10105
|
+
* @private
|
|
10106
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10107
|
+
*/
|
|
10108
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
10109
|
+
};
|
|
10110
|
+
"new"(inner: {
|
|
10111
|
+
leafIds: Array<string>;
|
|
10112
|
+
}): {
|
|
10113
|
+
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
10114
|
+
readonly inner: Readonly<{
|
|
10115
|
+
leafIds: Array<string>;
|
|
10116
|
+
}>;
|
|
10117
|
+
/**
|
|
10118
|
+
* @private
|
|
10119
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10120
|
+
*/
|
|
10121
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
10122
|
+
};
|
|
10123
|
+
instanceOf(obj: any): obj is {
|
|
10124
|
+
readonly tag: ExitLeafSelection_Tags.Specific;
|
|
10125
|
+
readonly inner: Readonly<{
|
|
10126
|
+
leafIds: Array<string>;
|
|
10127
|
+
}>;
|
|
10128
|
+
/**
|
|
10129
|
+
* @private
|
|
10130
|
+
* This field is private and should not be used, use `tag` instead.
|
|
10131
|
+
*/
|
|
10132
|
+
readonly [uniffiTypeNameSymbol]: "ExitLeafSelection";
|
|
10133
|
+
};
|
|
10134
|
+
};
|
|
10135
|
+
}>;
|
|
10136
|
+
/**
|
|
10137
|
+
* Which leaves to exit.
|
|
10138
|
+
*/
|
|
10139
|
+
export type ExitLeafSelection = InstanceType<(typeof ExitLeafSelection)[keyof Omit<typeof ExitLeafSelection, 'instanceOf'>]>;
|
|
9407
10140
|
export declare enum ExternalFrostDerivation_Tags {
|
|
9408
10141
|
SigningLeaf = "SigningLeaf",
|
|
9409
10142
|
StaticDeposit = "StaticDeposit",
|
|
@@ -10480,6 +11213,95 @@ export declare const OptimizationOutcome: Readonly<{
|
|
|
10480
11213
|
* ```
|
|
10481
11214
|
*/
|
|
10482
11215
|
export type OptimizationOutcome = InstanceType<(typeof OptimizationOutcome)[keyof Omit<typeof OptimizationOutcome, 'instanceOf'>]>;
|
|
11216
|
+
export declare enum Outspend_Tags {
|
|
11217
|
+
Unspent = "Unspent",
|
|
11218
|
+
Spent = "Spent"
|
|
11219
|
+
}
|
|
11220
|
+
/**
|
|
11221
|
+
* The spend status of a transaction output.
|
|
11222
|
+
*/
|
|
11223
|
+
export declare const Outspend: Readonly<{
|
|
11224
|
+
instanceOf: (obj: any) => obj is Outspend;
|
|
11225
|
+
Unspent: {
|
|
11226
|
+
new (): {
|
|
11227
|
+
readonly tag: Outspend_Tags.Unspent;
|
|
11228
|
+
/**
|
|
11229
|
+
* @private
|
|
11230
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11231
|
+
*/
|
|
11232
|
+
readonly [uniffiTypeNameSymbol]: "Outspend";
|
|
11233
|
+
};
|
|
11234
|
+
"new"(): {
|
|
11235
|
+
readonly tag: Outspend_Tags.Unspent;
|
|
11236
|
+
/**
|
|
11237
|
+
* @private
|
|
11238
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11239
|
+
*/
|
|
11240
|
+
readonly [uniffiTypeNameSymbol]: "Outspend";
|
|
11241
|
+
};
|
|
11242
|
+
instanceOf(obj: any): obj is {
|
|
11243
|
+
readonly tag: Outspend_Tags.Unspent;
|
|
11244
|
+
/**
|
|
11245
|
+
* @private
|
|
11246
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11247
|
+
*/
|
|
11248
|
+
readonly [uniffiTypeNameSymbol]: "Outspend";
|
|
11249
|
+
};
|
|
11250
|
+
};
|
|
11251
|
+
Spent: {
|
|
11252
|
+
new (inner: {
|
|
11253
|
+
txid: string;
|
|
11254
|
+
vin: number;
|
|
11255
|
+
status: TxStatus;
|
|
11256
|
+
}): {
|
|
11257
|
+
readonly tag: Outspend_Tags.Spent;
|
|
11258
|
+
readonly inner: Readonly<{
|
|
11259
|
+
txid: string;
|
|
11260
|
+
vin: number;
|
|
11261
|
+
status: TxStatus;
|
|
11262
|
+
}>;
|
|
11263
|
+
/**
|
|
11264
|
+
* @private
|
|
11265
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11266
|
+
*/
|
|
11267
|
+
readonly [uniffiTypeNameSymbol]: "Outspend";
|
|
11268
|
+
};
|
|
11269
|
+
"new"(inner: {
|
|
11270
|
+
txid: string;
|
|
11271
|
+
vin: number;
|
|
11272
|
+
status: TxStatus;
|
|
11273
|
+
}): {
|
|
11274
|
+
readonly tag: Outspend_Tags.Spent;
|
|
11275
|
+
readonly inner: Readonly<{
|
|
11276
|
+
txid: string;
|
|
11277
|
+
vin: number;
|
|
11278
|
+
status: TxStatus;
|
|
11279
|
+
}>;
|
|
11280
|
+
/**
|
|
11281
|
+
* @private
|
|
11282
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11283
|
+
*/
|
|
11284
|
+
readonly [uniffiTypeNameSymbol]: "Outspend";
|
|
11285
|
+
};
|
|
11286
|
+
instanceOf(obj: any): obj is {
|
|
11287
|
+
readonly tag: Outspend_Tags.Spent;
|
|
11288
|
+
readonly inner: Readonly<{
|
|
11289
|
+
txid: string;
|
|
11290
|
+
vin: number;
|
|
11291
|
+
status: TxStatus;
|
|
11292
|
+
}>;
|
|
11293
|
+
/**
|
|
11294
|
+
* @private
|
|
11295
|
+
* This field is private and should not be used, use `tag` instead.
|
|
11296
|
+
*/
|
|
11297
|
+
readonly [uniffiTypeNameSymbol]: "Outspend";
|
|
11298
|
+
};
|
|
11299
|
+
};
|
|
11300
|
+
}>;
|
|
11301
|
+
/**
|
|
11302
|
+
* The spend status of a transaction output.
|
|
11303
|
+
*/
|
|
11304
|
+
export type Outspend = InstanceType<(typeof Outspend)[keyof Omit<typeof Outspend, 'instanceOf'>]>;
|
|
10483
11305
|
export declare enum PasskeyAvailability_Tags {
|
|
10484
11306
|
Available = "Available",
|
|
10485
11307
|
PrfUnsupported = "PrfUnsupported",
|
|
@@ -13315,6 +14137,8 @@ export declare enum SdkError_Tags {
|
|
|
13315
14137
|
Signer = "Signer",
|
|
13316
14138
|
OptimizationAlreadyRunning = "OptimizationAlreadyRunning",
|
|
13317
14139
|
OptimizationCancelled = "OptimizationCancelled",
|
|
14140
|
+
InsufficientCpfpFunds = "InsufficientCpfpFunds",
|
|
14141
|
+
FundingUtxoConflict = "FundingUtxoConflict",
|
|
13318
14142
|
Generic = "Generic"
|
|
13319
14143
|
}
|
|
13320
14144
|
/**
|
|
@@ -14030,9 +14854,149 @@ export declare const SdkError: Readonly<{
|
|
|
14030
14854
|
stack?: string;
|
|
14031
14855
|
cause?: unknown;
|
|
14032
14856
|
};
|
|
14033
|
-
"new"(v0: string): {
|
|
14034
|
-
readonly tag: SdkError_Tags.LnurlError;
|
|
14035
|
-
readonly inner: Readonly<[string]>;
|
|
14857
|
+
"new"(v0: string): {
|
|
14858
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
14859
|
+
readonly inner: Readonly<[string]>;
|
|
14860
|
+
/**
|
|
14861
|
+
* @private
|
|
14862
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14863
|
+
*/
|
|
14864
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14865
|
+
name: string;
|
|
14866
|
+
message: string;
|
|
14867
|
+
stack?: string;
|
|
14868
|
+
cause?: unknown;
|
|
14869
|
+
};
|
|
14870
|
+
instanceOf(obj: any): obj is {
|
|
14871
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
14872
|
+
readonly inner: Readonly<[string]>;
|
|
14873
|
+
/**
|
|
14874
|
+
* @private
|
|
14875
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14876
|
+
*/
|
|
14877
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14878
|
+
name: string;
|
|
14879
|
+
message: string;
|
|
14880
|
+
stack?: string;
|
|
14881
|
+
cause?: unknown;
|
|
14882
|
+
};
|
|
14883
|
+
hasInner(obj: any): obj is {
|
|
14884
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
14885
|
+
readonly inner: Readonly<[string]>;
|
|
14886
|
+
/**
|
|
14887
|
+
* @private
|
|
14888
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14889
|
+
*/
|
|
14890
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14891
|
+
name: string;
|
|
14892
|
+
message: string;
|
|
14893
|
+
stack?: string;
|
|
14894
|
+
cause?: unknown;
|
|
14895
|
+
};
|
|
14896
|
+
getInner(obj: {
|
|
14897
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
14898
|
+
readonly inner: Readonly<[string]>;
|
|
14899
|
+
/**
|
|
14900
|
+
* @private
|
|
14901
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14902
|
+
*/
|
|
14903
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14904
|
+
name: string;
|
|
14905
|
+
message: string;
|
|
14906
|
+
stack?: string;
|
|
14907
|
+
cause?: unknown;
|
|
14908
|
+
}): Readonly<[string]>;
|
|
14909
|
+
isError(error: unknown): error is Error;
|
|
14910
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
14911
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
14912
|
+
stackTraceLimit: number;
|
|
14913
|
+
};
|
|
14914
|
+
Signer: {
|
|
14915
|
+
new (v0: string): {
|
|
14916
|
+
readonly tag: SdkError_Tags.Signer;
|
|
14917
|
+
readonly inner: Readonly<[string]>;
|
|
14918
|
+
/**
|
|
14919
|
+
* @private
|
|
14920
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14921
|
+
*/
|
|
14922
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14923
|
+
name: string;
|
|
14924
|
+
message: string;
|
|
14925
|
+
stack?: string;
|
|
14926
|
+
cause?: unknown;
|
|
14927
|
+
};
|
|
14928
|
+
"new"(v0: string): {
|
|
14929
|
+
readonly tag: SdkError_Tags.Signer;
|
|
14930
|
+
readonly inner: Readonly<[string]>;
|
|
14931
|
+
/**
|
|
14932
|
+
* @private
|
|
14933
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14934
|
+
*/
|
|
14935
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14936
|
+
name: string;
|
|
14937
|
+
message: string;
|
|
14938
|
+
stack?: string;
|
|
14939
|
+
cause?: unknown;
|
|
14940
|
+
};
|
|
14941
|
+
instanceOf(obj: any): obj is {
|
|
14942
|
+
readonly tag: SdkError_Tags.Signer;
|
|
14943
|
+
readonly inner: Readonly<[string]>;
|
|
14944
|
+
/**
|
|
14945
|
+
* @private
|
|
14946
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14947
|
+
*/
|
|
14948
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14949
|
+
name: string;
|
|
14950
|
+
message: string;
|
|
14951
|
+
stack?: string;
|
|
14952
|
+
cause?: unknown;
|
|
14953
|
+
};
|
|
14954
|
+
hasInner(obj: any): obj is {
|
|
14955
|
+
readonly tag: SdkError_Tags.Signer;
|
|
14956
|
+
readonly inner: Readonly<[string]>;
|
|
14957
|
+
/**
|
|
14958
|
+
* @private
|
|
14959
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14960
|
+
*/
|
|
14961
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14962
|
+
name: string;
|
|
14963
|
+
message: string;
|
|
14964
|
+
stack?: string;
|
|
14965
|
+
cause?: unknown;
|
|
14966
|
+
};
|
|
14967
|
+
getInner(obj: {
|
|
14968
|
+
readonly tag: SdkError_Tags.Signer;
|
|
14969
|
+
readonly inner: Readonly<[string]>;
|
|
14970
|
+
/**
|
|
14971
|
+
* @private
|
|
14972
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14973
|
+
*/
|
|
14974
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14975
|
+
name: string;
|
|
14976
|
+
message: string;
|
|
14977
|
+
stack?: string;
|
|
14978
|
+
cause?: unknown;
|
|
14979
|
+
}): Readonly<[string]>;
|
|
14980
|
+
isError(error: unknown): error is Error;
|
|
14981
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
14982
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
14983
|
+
stackTraceLimit: number;
|
|
14984
|
+
};
|
|
14985
|
+
OptimizationAlreadyRunning: {
|
|
14986
|
+
new (): {
|
|
14987
|
+
readonly tag: SdkError_Tags.OptimizationAlreadyRunning;
|
|
14988
|
+
/**
|
|
14989
|
+
* @private
|
|
14990
|
+
* This field is private and should not be used, use `tag` instead.
|
|
14991
|
+
*/
|
|
14992
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14993
|
+
name: string;
|
|
14994
|
+
message: string;
|
|
14995
|
+
stack?: string;
|
|
14996
|
+
cause?: unknown;
|
|
14997
|
+
};
|
|
14998
|
+
"new"(): {
|
|
14999
|
+
readonly tag: SdkError_Tags.OptimizationAlreadyRunning;
|
|
14036
15000
|
/**
|
|
14037
15001
|
* @private
|
|
14038
15002
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14044,8 +15008,7 @@ export declare const SdkError: Readonly<{
|
|
|
14044
15008
|
cause?: unknown;
|
|
14045
15009
|
};
|
|
14046
15010
|
instanceOf(obj: any): obj is {
|
|
14047
|
-
readonly tag: SdkError_Tags.
|
|
14048
|
-
readonly inner: Readonly<[string]>;
|
|
15011
|
+
readonly tag: SdkError_Tags.OptimizationAlreadyRunning;
|
|
14049
15012
|
/**
|
|
14050
15013
|
* @private
|
|
14051
15014
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14057,8 +15020,7 @@ export declare const SdkError: Readonly<{
|
|
|
14057
15020
|
cause?: unknown;
|
|
14058
15021
|
};
|
|
14059
15022
|
hasInner(obj: any): obj is {
|
|
14060
|
-
readonly tag: SdkError_Tags.
|
|
14061
|
-
readonly inner: Readonly<[string]>;
|
|
15023
|
+
readonly tag: SdkError_Tags.OptimizationAlreadyRunning;
|
|
14062
15024
|
/**
|
|
14063
15025
|
* @private
|
|
14064
15026
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14069,28 +15031,14 @@ export declare const SdkError: Readonly<{
|
|
|
14069
15031
|
stack?: string;
|
|
14070
15032
|
cause?: unknown;
|
|
14071
15033
|
};
|
|
14072
|
-
getInner(obj: {
|
|
14073
|
-
readonly tag: SdkError_Tags.LnurlError;
|
|
14074
|
-
readonly inner: Readonly<[string]>;
|
|
14075
|
-
/**
|
|
14076
|
-
* @private
|
|
14077
|
-
* This field is private and should not be used, use `tag` instead.
|
|
14078
|
-
*/
|
|
14079
|
-
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
14080
|
-
name: string;
|
|
14081
|
-
message: string;
|
|
14082
|
-
stack?: string;
|
|
14083
|
-
cause?: unknown;
|
|
14084
|
-
}): Readonly<[string]>;
|
|
14085
15034
|
isError(error: unknown): error is Error;
|
|
14086
15035
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
14087
15036
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
14088
15037
|
stackTraceLimit: number;
|
|
14089
15038
|
};
|
|
14090
|
-
|
|
14091
|
-
new (
|
|
14092
|
-
readonly tag: SdkError_Tags.
|
|
14093
|
-
readonly inner: Readonly<[string]>;
|
|
15039
|
+
OptimizationCancelled: {
|
|
15040
|
+
new (): {
|
|
15041
|
+
readonly tag: SdkError_Tags.OptimizationCancelled;
|
|
14094
15042
|
/**
|
|
14095
15043
|
* @private
|
|
14096
15044
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14101,9 +15049,8 @@ export declare const SdkError: Readonly<{
|
|
|
14101
15049
|
stack?: string;
|
|
14102
15050
|
cause?: unknown;
|
|
14103
15051
|
};
|
|
14104
|
-
"new"(
|
|
14105
|
-
readonly tag: SdkError_Tags.
|
|
14106
|
-
readonly inner: Readonly<[string]>;
|
|
15052
|
+
"new"(): {
|
|
15053
|
+
readonly tag: SdkError_Tags.OptimizationCancelled;
|
|
14107
15054
|
/**
|
|
14108
15055
|
* @private
|
|
14109
15056
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14115,8 +15062,7 @@ export declare const SdkError: Readonly<{
|
|
|
14115
15062
|
cause?: unknown;
|
|
14116
15063
|
};
|
|
14117
15064
|
instanceOf(obj: any): obj is {
|
|
14118
|
-
readonly tag: SdkError_Tags.
|
|
14119
|
-
readonly inner: Readonly<[string]>;
|
|
15065
|
+
readonly tag: SdkError_Tags.OptimizationCancelled;
|
|
14120
15066
|
/**
|
|
14121
15067
|
* @private
|
|
14122
15068
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14128,8 +15074,7 @@ export declare const SdkError: Readonly<{
|
|
|
14128
15074
|
cause?: unknown;
|
|
14129
15075
|
};
|
|
14130
15076
|
hasInner(obj: any): obj is {
|
|
14131
|
-
readonly tag: SdkError_Tags.
|
|
14132
|
-
readonly inner: Readonly<[string]>;
|
|
15077
|
+
readonly tag: SdkError_Tags.OptimizationCancelled;
|
|
14133
15078
|
/**
|
|
14134
15079
|
* @private
|
|
14135
15080
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14140,9 +15085,19 @@ export declare const SdkError: Readonly<{
|
|
|
14140
15085
|
stack?: string;
|
|
14141
15086
|
cause?: unknown;
|
|
14142
15087
|
};
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
15088
|
+
isError(error: unknown): error is Error;
|
|
15089
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
15090
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
15091
|
+
stackTraceLimit: number;
|
|
15092
|
+
};
|
|
15093
|
+
InsufficientCpfpFunds: {
|
|
15094
|
+
new (inner: {
|
|
15095
|
+
requiredSat: bigint;
|
|
15096
|
+
}): {
|
|
15097
|
+
readonly tag: SdkError_Tags.InsufficientCpfpFunds;
|
|
15098
|
+
readonly inner: Readonly<{
|
|
15099
|
+
requiredSat: bigint;
|
|
15100
|
+
}>;
|
|
14146
15101
|
/**
|
|
14147
15102
|
* @private
|
|
14148
15103
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14152,15 +15107,14 @@ export declare const SdkError: Readonly<{
|
|
|
14152
15107
|
message: string;
|
|
14153
15108
|
stack?: string;
|
|
14154
15109
|
cause?: unknown;
|
|
14155
|
-
}
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
readonly tag: SdkError_Tags.OptimizationAlreadyRunning;
|
|
15110
|
+
};
|
|
15111
|
+
"new"(inner: {
|
|
15112
|
+
requiredSat: bigint;
|
|
15113
|
+
}): {
|
|
15114
|
+
readonly tag: SdkError_Tags.InsufficientCpfpFunds;
|
|
15115
|
+
readonly inner: Readonly<{
|
|
15116
|
+
requiredSat: bigint;
|
|
15117
|
+
}>;
|
|
14164
15118
|
/**
|
|
14165
15119
|
* @private
|
|
14166
15120
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14171,8 +15125,11 @@ export declare const SdkError: Readonly<{
|
|
|
14171
15125
|
stack?: string;
|
|
14172
15126
|
cause?: unknown;
|
|
14173
15127
|
};
|
|
14174
|
-
|
|
14175
|
-
readonly tag: SdkError_Tags.
|
|
15128
|
+
instanceOf(obj: any): obj is {
|
|
15129
|
+
readonly tag: SdkError_Tags.InsufficientCpfpFunds;
|
|
15130
|
+
readonly inner: Readonly<{
|
|
15131
|
+
requiredSat: bigint;
|
|
15132
|
+
}>;
|
|
14176
15133
|
/**
|
|
14177
15134
|
* @private
|
|
14178
15135
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14183,8 +15140,11 @@ export declare const SdkError: Readonly<{
|
|
|
14183
15140
|
stack?: string;
|
|
14184
15141
|
cause?: unknown;
|
|
14185
15142
|
};
|
|
14186
|
-
|
|
14187
|
-
readonly tag: SdkError_Tags.
|
|
15143
|
+
hasInner(obj: any): obj is {
|
|
15144
|
+
readonly tag: SdkError_Tags.InsufficientCpfpFunds;
|
|
15145
|
+
readonly inner: Readonly<{
|
|
15146
|
+
requiredSat: bigint;
|
|
15147
|
+
}>;
|
|
14188
15148
|
/**
|
|
14189
15149
|
* @private
|
|
14190
15150
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14195,8 +15155,11 @@ export declare const SdkError: Readonly<{
|
|
|
14195
15155
|
stack?: string;
|
|
14196
15156
|
cause?: unknown;
|
|
14197
15157
|
};
|
|
14198
|
-
|
|
14199
|
-
readonly tag: SdkError_Tags.
|
|
15158
|
+
getInner(obj: {
|
|
15159
|
+
readonly tag: SdkError_Tags.InsufficientCpfpFunds;
|
|
15160
|
+
readonly inner: Readonly<{
|
|
15161
|
+
requiredSat: bigint;
|
|
15162
|
+
}>;
|
|
14200
15163
|
/**
|
|
14201
15164
|
* @private
|
|
14202
15165
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14206,15 +15169,24 @@ export declare const SdkError: Readonly<{
|
|
|
14206
15169
|
message: string;
|
|
14207
15170
|
stack?: string;
|
|
14208
15171
|
cause?: unknown;
|
|
14209
|
-
}
|
|
15172
|
+
}): Readonly<{
|
|
15173
|
+
requiredSat: bigint;
|
|
15174
|
+
}>;
|
|
14210
15175
|
isError(error: unknown): error is Error;
|
|
14211
15176
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
14212
15177
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
14213
15178
|
stackTraceLimit: number;
|
|
14214
15179
|
};
|
|
14215
|
-
|
|
14216
|
-
new (
|
|
14217
|
-
|
|
15180
|
+
FundingUtxoConflict: {
|
|
15181
|
+
new (inner: {
|
|
15182
|
+
txid: string;
|
|
15183
|
+
vout: number;
|
|
15184
|
+
}): {
|
|
15185
|
+
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
15186
|
+
readonly inner: Readonly<{
|
|
15187
|
+
txid: string;
|
|
15188
|
+
vout: number;
|
|
15189
|
+
}>;
|
|
14218
15190
|
/**
|
|
14219
15191
|
* @private
|
|
14220
15192
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14225,8 +15197,15 @@ export declare const SdkError: Readonly<{
|
|
|
14225
15197
|
stack?: string;
|
|
14226
15198
|
cause?: unknown;
|
|
14227
15199
|
};
|
|
14228
|
-
"new"(
|
|
14229
|
-
|
|
15200
|
+
"new"(inner: {
|
|
15201
|
+
txid: string;
|
|
15202
|
+
vout: number;
|
|
15203
|
+
}): {
|
|
15204
|
+
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
15205
|
+
readonly inner: Readonly<{
|
|
15206
|
+
txid: string;
|
|
15207
|
+
vout: number;
|
|
15208
|
+
}>;
|
|
14230
15209
|
/**
|
|
14231
15210
|
* @private
|
|
14232
15211
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14238,7 +15217,11 @@ export declare const SdkError: Readonly<{
|
|
|
14238
15217
|
cause?: unknown;
|
|
14239
15218
|
};
|
|
14240
15219
|
instanceOf(obj: any): obj is {
|
|
14241
|
-
readonly tag: SdkError_Tags.
|
|
15220
|
+
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
15221
|
+
readonly inner: Readonly<{
|
|
15222
|
+
txid: string;
|
|
15223
|
+
vout: number;
|
|
15224
|
+
}>;
|
|
14242
15225
|
/**
|
|
14243
15226
|
* @private
|
|
14244
15227
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14250,7 +15233,11 @@ export declare const SdkError: Readonly<{
|
|
|
14250
15233
|
cause?: unknown;
|
|
14251
15234
|
};
|
|
14252
15235
|
hasInner(obj: any): obj is {
|
|
14253
|
-
readonly tag: SdkError_Tags.
|
|
15236
|
+
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
15237
|
+
readonly inner: Readonly<{
|
|
15238
|
+
txid: string;
|
|
15239
|
+
vout: number;
|
|
15240
|
+
}>;
|
|
14254
15241
|
/**
|
|
14255
15242
|
* @private
|
|
14256
15243
|
* This field is private and should not be used, use `tag` instead.
|
|
@@ -14261,6 +15248,25 @@ export declare const SdkError: Readonly<{
|
|
|
14261
15248
|
stack?: string;
|
|
14262
15249
|
cause?: unknown;
|
|
14263
15250
|
};
|
|
15251
|
+
getInner(obj: {
|
|
15252
|
+
readonly tag: SdkError_Tags.FundingUtxoConflict;
|
|
15253
|
+
readonly inner: Readonly<{
|
|
15254
|
+
txid: string;
|
|
15255
|
+
vout: number;
|
|
15256
|
+
}>;
|
|
15257
|
+
/**
|
|
15258
|
+
* @private
|
|
15259
|
+
* This field is private and should not be used, use `tag` instead.
|
|
15260
|
+
*/
|
|
15261
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
15262
|
+
name: string;
|
|
15263
|
+
message: string;
|
|
15264
|
+
stack?: string;
|
|
15265
|
+
cause?: unknown;
|
|
15266
|
+
}): Readonly<{
|
|
15267
|
+
txid: string;
|
|
15268
|
+
vout: number;
|
|
15269
|
+
}>;
|
|
14264
15270
|
isError(error: unknown): error is Error;
|
|
14265
15271
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
14266
15272
|
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
@@ -16922,6 +17928,85 @@ export declare enum SparkHtlcStatus {
|
|
|
16922
17928
|
*/
|
|
16923
17929
|
Returned = 2
|
|
16924
17930
|
}
|
|
17931
|
+
export declare enum SparkMasterIdentityPublicKey_Tags {
|
|
17932
|
+
Set = "Set",
|
|
17933
|
+
Unset = "Unset"
|
|
17934
|
+
}
|
|
17935
|
+
/**
|
|
17936
|
+
* Specifies how to update the wallet's Spark master identity public key.
|
|
17937
|
+
*/
|
|
17938
|
+
export declare const SparkMasterIdentityPublicKey: Readonly<{
|
|
17939
|
+
instanceOf: (obj: any) => obj is SparkMasterIdentityPublicKey;
|
|
17940
|
+
Set: {
|
|
17941
|
+
new (inner: {
|
|
17942
|
+
publicKey: string;
|
|
17943
|
+
}): {
|
|
17944
|
+
readonly tag: SparkMasterIdentityPublicKey_Tags.Set;
|
|
17945
|
+
readonly inner: Readonly<{
|
|
17946
|
+
publicKey: string;
|
|
17947
|
+
}>;
|
|
17948
|
+
/**
|
|
17949
|
+
* @private
|
|
17950
|
+
* This field is private and should not be used, use `tag` instead.
|
|
17951
|
+
*/
|
|
17952
|
+
readonly [uniffiTypeNameSymbol]: "SparkMasterIdentityPublicKey";
|
|
17953
|
+
};
|
|
17954
|
+
"new"(inner: {
|
|
17955
|
+
publicKey: string;
|
|
17956
|
+
}): {
|
|
17957
|
+
readonly tag: SparkMasterIdentityPublicKey_Tags.Set;
|
|
17958
|
+
readonly inner: Readonly<{
|
|
17959
|
+
publicKey: string;
|
|
17960
|
+
}>;
|
|
17961
|
+
/**
|
|
17962
|
+
* @private
|
|
17963
|
+
* This field is private and should not be used, use `tag` instead.
|
|
17964
|
+
*/
|
|
17965
|
+
readonly [uniffiTypeNameSymbol]: "SparkMasterIdentityPublicKey";
|
|
17966
|
+
};
|
|
17967
|
+
instanceOf(obj: any): obj is {
|
|
17968
|
+
readonly tag: SparkMasterIdentityPublicKey_Tags.Set;
|
|
17969
|
+
readonly inner: Readonly<{
|
|
17970
|
+
publicKey: string;
|
|
17971
|
+
}>;
|
|
17972
|
+
/**
|
|
17973
|
+
* @private
|
|
17974
|
+
* This field is private and should not be used, use `tag` instead.
|
|
17975
|
+
*/
|
|
17976
|
+
readonly [uniffiTypeNameSymbol]: "SparkMasterIdentityPublicKey";
|
|
17977
|
+
};
|
|
17978
|
+
};
|
|
17979
|
+
Unset: {
|
|
17980
|
+
new (): {
|
|
17981
|
+
readonly tag: SparkMasterIdentityPublicKey_Tags.Unset;
|
|
17982
|
+
/**
|
|
17983
|
+
* @private
|
|
17984
|
+
* This field is private and should not be used, use `tag` instead.
|
|
17985
|
+
*/
|
|
17986
|
+
readonly [uniffiTypeNameSymbol]: "SparkMasterIdentityPublicKey";
|
|
17987
|
+
};
|
|
17988
|
+
"new"(): {
|
|
17989
|
+
readonly tag: SparkMasterIdentityPublicKey_Tags.Unset;
|
|
17990
|
+
/**
|
|
17991
|
+
* @private
|
|
17992
|
+
* This field is private and should not be used, use `tag` instead.
|
|
17993
|
+
*/
|
|
17994
|
+
readonly [uniffiTypeNameSymbol]: "SparkMasterIdentityPublicKey";
|
|
17995
|
+
};
|
|
17996
|
+
instanceOf(obj: any): obj is {
|
|
17997
|
+
readonly tag: SparkMasterIdentityPublicKey_Tags.Unset;
|
|
17998
|
+
/**
|
|
17999
|
+
* @private
|
|
18000
|
+
* This field is private and should not be used, use `tag` instead.
|
|
18001
|
+
*/
|
|
18002
|
+
readonly [uniffiTypeNameSymbol]: "SparkMasterIdentityPublicKey";
|
|
18003
|
+
};
|
|
18004
|
+
};
|
|
18005
|
+
}>;
|
|
18006
|
+
/**
|
|
18007
|
+
* Specifies how to update the wallet's Spark master identity public key.
|
|
18008
|
+
*/
|
|
18009
|
+
export type SparkMasterIdentityPublicKey = InstanceType<(typeof SparkMasterIdentityPublicKey)[keyof Omit<typeof SparkMasterIdentityPublicKey, 'instanceOf'>]>;
|
|
16925
18010
|
export declare enum StableBalanceActiveLabel_Tags {
|
|
16926
18011
|
Set = "Set",
|
|
16927
18012
|
Unset = "Unset"
|
|
@@ -18029,6 +19114,28 @@ export declare const TransferTarget: Readonly<{
|
|
|
18029
19114
|
};
|
|
18030
19115
|
}>;
|
|
18031
19116
|
export type TransferTarget = InstanceType<(typeof TransferTarget)[keyof Omit<typeof TransferTarget, 'instanceOf'>]>;
|
|
19117
|
+
/**
|
|
19118
|
+
* The role of a transaction in the exit path.
|
|
19119
|
+
*/
|
|
19120
|
+
export declare enum UnilateralExitTxKind {
|
|
19121
|
+
/**
|
|
19122
|
+
* Splits the caller's funding into one output per branch. Present only
|
|
19123
|
+
* when the funding couldn't be matched one-to-one to branches.
|
|
19124
|
+
*/
|
|
19125
|
+
FanOut = 0,
|
|
19126
|
+
/**
|
|
19127
|
+
* A tree node transaction (root, intermediate, or leaf node).
|
|
19128
|
+
*/
|
|
19129
|
+
Node = 1,
|
|
19130
|
+
/**
|
|
19131
|
+
* A leaf's refund transaction.
|
|
19132
|
+
*/
|
|
19133
|
+
Refund = 2,
|
|
19134
|
+
/**
|
|
19135
|
+
* The final transaction sweeping all refund outputs to the destination.
|
|
19136
|
+
*/
|
|
19137
|
+
Sweep = 3
|
|
19138
|
+
}
|
|
18032
19139
|
export declare enum UnsignedTransferPackage_Tags {
|
|
18033
19140
|
Swap = "Swap",
|
|
18034
19141
|
Transfer = "Transfer",
|
|
@@ -18463,12 +19570,24 @@ export interface BitcoinChainService {
|
|
|
18463
19570
|
getAddressUtxos(address: string, asyncOpts_?: {
|
|
18464
19571
|
signal: AbortSignal;
|
|
18465
19572
|
}): Promise<Array<Utxo>>;
|
|
19573
|
+
/**
|
|
19574
|
+
* Every output ever paid to `address`, spent or not, unlike
|
|
19575
|
+
* [`get_address_utxos`](Self::get_address_utxos) which omits spent ones.
|
|
19576
|
+
* Recovers an output's outpoint and value after it has been spent, so a
|
|
19577
|
+
* swept refund can still be distinguished from one never broadcast.
|
|
19578
|
+
*/
|
|
19579
|
+
getAddressTxos(address: string, asyncOpts_?: {
|
|
19580
|
+
signal: AbortSignal;
|
|
19581
|
+
}): Promise<Array<Utxo>>;
|
|
18466
19582
|
getTransactionStatus(txid: string, asyncOpts_?: {
|
|
18467
19583
|
signal: AbortSignal;
|
|
18468
19584
|
}): Promise<TxStatus>;
|
|
18469
19585
|
getTransactionHex(txid: string, asyncOpts_?: {
|
|
18470
19586
|
signal: AbortSignal;
|
|
18471
19587
|
}): Promise<string>;
|
|
19588
|
+
getOutspend(txid: string, vout: number, asyncOpts_?: {
|
|
19589
|
+
signal: AbortSignal;
|
|
19590
|
+
}): Promise<Outspend>;
|
|
18472
19591
|
broadcastTransaction(tx: string, asyncOpts_?: {
|
|
18473
19592
|
signal: AbortSignal;
|
|
18474
19593
|
}): Promise<void>;
|
|
@@ -18484,12 +19603,24 @@ export declare class BitcoinChainServiceImpl extends UniffiAbstractObject implem
|
|
|
18484
19603
|
getAddressUtxos(address: string, asyncOpts_?: {
|
|
18485
19604
|
signal: AbortSignal;
|
|
18486
19605
|
}): Promise<Array<Utxo>>;
|
|
19606
|
+
/**
|
|
19607
|
+
* Every output ever paid to `address`, spent or not, unlike
|
|
19608
|
+
* [`get_address_utxos`](Self::get_address_utxos) which omits spent ones.
|
|
19609
|
+
* Recovers an output's outpoint and value after it has been spent, so a
|
|
19610
|
+
* swept refund can still be distinguished from one never broadcast.
|
|
19611
|
+
*/
|
|
19612
|
+
getAddressTxos(address: string, asyncOpts_?: {
|
|
19613
|
+
signal: AbortSignal;
|
|
19614
|
+
}): Promise<Array<Utxo>>;
|
|
18487
19615
|
getTransactionStatus(txid: string, asyncOpts_?: {
|
|
18488
19616
|
signal: AbortSignal;
|
|
18489
19617
|
}): Promise<TxStatus>;
|
|
18490
19618
|
getTransactionHex(txid: string, asyncOpts_?: {
|
|
18491
19619
|
signal: AbortSignal;
|
|
18492
19620
|
}): Promise<string>;
|
|
19621
|
+
getOutspend(txid: string, vout: number, asyncOpts_?: {
|
|
19622
|
+
signal: AbortSignal;
|
|
19623
|
+
}): Promise<Outspend>;
|
|
18493
19624
|
broadcastTransaction(tx: string, asyncOpts_?: {
|
|
18494
19625
|
signal: AbortSignal;
|
|
18495
19626
|
}): Promise<void>;
|
|
@@ -18808,6 +19939,14 @@ export interface BreezSdkInterface {
|
|
|
18808
19939
|
prepareSendPayment(request: PrepareSendPaymentRequest, asyncOpts_?: {
|
|
18809
19940
|
signal: AbortSignal;
|
|
18810
19941
|
}): Promise<PrepareSendPaymentResponse>;
|
|
19942
|
+
/**
|
|
19943
|
+
* Quotes a unilateral exit without any funding UTXOs: selects which leaves
|
|
19944
|
+
* would exit, computes the exact fee for the given funding kind, and reports
|
|
19945
|
+
* how much to fund.
|
|
19946
|
+
*/
|
|
19947
|
+
prepareUnilateralExit(request: PrepareUnilateralExitRequest, asyncOpts_?: {
|
|
19948
|
+
signal: AbortSignal;
|
|
19949
|
+
}): Promise<PrepareUnilateralExitResponse>;
|
|
18811
19950
|
publishSignedLnurlPayPackage(request: PublishSignedLnurlPayPackageRequest, asyncOpts_?: {
|
|
18812
19951
|
signal: AbortSignal;
|
|
18813
19952
|
}): Promise<PublishSignedLnurlPayResponse>;
|
|
@@ -18827,19 +19966,20 @@ export interface BreezSdkInterface {
|
|
|
18827
19966
|
signal: AbortSignal;
|
|
18828
19967
|
}): Promise<RefundDepositResponse>;
|
|
18829
19968
|
/**
|
|
18830
|
-
* Runs one pass of the pending-conversion refunder
|
|
19969
|
+
* Runs one full pass of the pending-conversion refunder and returns how
|
|
19970
|
+
* many conversions were refunded, skipped (held back by a safety window),
|
|
19971
|
+
* or failed.
|
|
18831
19972
|
*
|
|
18832
|
-
*
|
|
18833
|
-
*
|
|
18834
|
-
*
|
|
18835
|
-
*
|
|
18836
|
-
*
|
|
18837
|
-
* explicit entry point for driving
|
|
18838
|
-
* enabled, it can be called to force an immediate refund pass.
|
|
19973
|
+
* The pass has two parts: refunding locally-marked failed conversions, and
|
|
19974
|
+
* reconciling against Flashnet's clawback-eligible listing to catch
|
|
19975
|
+
* conversions with no local marker (e.g. a storage write that never
|
|
19976
|
+
* landed). The SDK's periodic background schedule runs only the local
|
|
19977
|
+
* part; the reconcile runs at SDK init and on each call to this method, so
|
|
19978
|
+
* this is the explicit entry point for driving a full pass on demand.
|
|
18839
19979
|
*/
|
|
18840
19980
|
refundPendingConversions(asyncOpts_?: {
|
|
18841
19981
|
signal: AbortSignal;
|
|
18842
|
-
}): Promise<
|
|
19982
|
+
}): Promise<RefundPendingConversionsResponse>;
|
|
18843
19983
|
registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
|
|
18844
19984
|
signal: AbortSignal;
|
|
18845
19985
|
}): Promise<LightningAddressInfo>;
|
|
@@ -18892,6 +20032,21 @@ export interface BreezSdkInterface {
|
|
|
18892
20032
|
syncWallet(request: SyncWalletRequest, asyncOpts_?: {
|
|
18893
20033
|
signal: AbortSignal;
|
|
18894
20034
|
}): Promise<SyncWalletResponse>;
|
|
20035
|
+
/**
|
|
20036
|
+
* Builds and signs a complete unilateral exit from a `prepare_unilateral_exit`
|
|
20037
|
+
* quote and the actual funding UTXOs, returning the full transaction set in
|
|
20038
|
+
* topological broadcast order without broadcasting. Broadcast it over time,
|
|
20039
|
+
* respecting each transaction's `depends_on` and `csv_timelock_blocks`.
|
|
20040
|
+
*
|
|
20041
|
+
* It resolves on-chain state first (see [`resolve_exit_observations`]): an
|
|
20042
|
+
* already-confirmed fan-out or CPFP node is not rebuilt, and a leaf refund
|
|
20043
|
+
* already on-chain (recognized by the leaf's refund address, so any refund
|
|
20044
|
+
* variant counts) is swept directly. Re-running after partial progress
|
|
20045
|
+
* therefore resumes rather than restarts.
|
|
20046
|
+
*/
|
|
20047
|
+
unilateralExit(request: UnilateralExitRequest, signer: CpfpSigner, asyncOpts_?: {
|
|
20048
|
+
signal: AbortSignal;
|
|
20049
|
+
}): Promise<UnilateralExitResponse>;
|
|
18895
20050
|
/**
|
|
18896
20051
|
* Unregisters a previously registered webhook.
|
|
18897
20052
|
*
|
|
@@ -19238,6 +20393,14 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
19238
20393
|
prepareSendPayment(request: PrepareSendPaymentRequest, asyncOpts_?: {
|
|
19239
20394
|
signal: AbortSignal;
|
|
19240
20395
|
}): Promise<PrepareSendPaymentResponse>;
|
|
20396
|
+
/**
|
|
20397
|
+
* Quotes a unilateral exit without any funding UTXOs: selects which leaves
|
|
20398
|
+
* would exit, computes the exact fee for the given funding kind, and reports
|
|
20399
|
+
* how much to fund.
|
|
20400
|
+
*/
|
|
20401
|
+
prepareUnilateralExit(request: PrepareUnilateralExitRequest, asyncOpts_?: {
|
|
20402
|
+
signal: AbortSignal;
|
|
20403
|
+
}): Promise<PrepareUnilateralExitResponse>;
|
|
19241
20404
|
publishSignedLnurlPayPackage(request: PublishSignedLnurlPayPackageRequest, asyncOpts_?: {
|
|
19242
20405
|
signal: AbortSignal;
|
|
19243
20406
|
}): Promise<PublishSignedLnurlPayResponse>;
|
|
@@ -19257,19 +20420,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
19257
20420
|
signal: AbortSignal;
|
|
19258
20421
|
}): Promise<RefundDepositResponse>;
|
|
19259
20422
|
/**
|
|
19260
|
-
* Runs one pass of the pending-conversion refunder
|
|
20423
|
+
* Runs one full pass of the pending-conversion refunder and returns how
|
|
20424
|
+
* many conversions were refunded, skipped (held back by a safety window),
|
|
20425
|
+
* or failed.
|
|
19261
20426
|
*
|
|
19262
|
-
*
|
|
19263
|
-
*
|
|
19264
|
-
*
|
|
19265
|
-
*
|
|
19266
|
-
*
|
|
19267
|
-
* explicit entry point for driving
|
|
19268
|
-
* enabled, it can be called to force an immediate refund pass.
|
|
20427
|
+
* The pass has two parts: refunding locally-marked failed conversions, and
|
|
20428
|
+
* reconciling against Flashnet's clawback-eligible listing to catch
|
|
20429
|
+
* conversions with no local marker (e.g. a storage write that never
|
|
20430
|
+
* landed). The SDK's periodic background schedule runs only the local
|
|
20431
|
+
* part; the reconcile runs at SDK init and on each call to this method, so
|
|
20432
|
+
* this is the explicit entry point for driving a full pass on demand.
|
|
19269
20433
|
*/
|
|
19270
20434
|
refundPendingConversions(asyncOpts_?: {
|
|
19271
20435
|
signal: AbortSignal;
|
|
19272
|
-
}): Promise<
|
|
20436
|
+
}): Promise<RefundPendingConversionsResponse>;
|
|
19273
20437
|
registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
|
|
19274
20438
|
signal: AbortSignal;
|
|
19275
20439
|
}): Promise<LightningAddressInfo>;
|
|
@@ -19322,6 +20486,21 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
19322
20486
|
syncWallet(request: SyncWalletRequest, asyncOpts_?: {
|
|
19323
20487
|
signal: AbortSignal;
|
|
19324
20488
|
}): Promise<SyncWalletResponse>;
|
|
20489
|
+
/**
|
|
20490
|
+
* Builds and signs a complete unilateral exit from a `prepare_unilateral_exit`
|
|
20491
|
+
* quote and the actual funding UTXOs, returning the full transaction set in
|
|
20492
|
+
* topological broadcast order without broadcasting. Broadcast it over time,
|
|
20493
|
+
* respecting each transaction's `depends_on` and `csv_timelock_blocks`.
|
|
20494
|
+
*
|
|
20495
|
+
* It resolves on-chain state first (see [`resolve_exit_observations`]): an
|
|
20496
|
+
* already-confirmed fan-out or CPFP node is not rebuilt, and a leaf refund
|
|
20497
|
+
* already on-chain (recognized by the leaf's refund address, so any refund
|
|
20498
|
+
* variant counts) is swept directly. Re-running after partial progress
|
|
20499
|
+
* therefore resumes rather than restarts.
|
|
20500
|
+
*/
|
|
20501
|
+
unilateralExit(request: UnilateralExitRequest, signer: CpfpSigner, asyncOpts_?: {
|
|
20502
|
+
signal: AbortSignal;
|
|
20503
|
+
}): Promise<UnilateralExitResponse>;
|
|
19325
20504
|
/**
|
|
19326
20505
|
* Unregisters a previously registered webhook.
|
|
19327
20506
|
*
|
|
@@ -19363,6 +20542,37 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
19363
20542
|
uniffiDestroy(): void;
|
|
19364
20543
|
static instanceOf(obj: any): obj is BreezSdk;
|
|
19365
20544
|
}
|
|
20545
|
+
/**
|
|
20546
|
+
* Signer for external UTXO inputs in CPFP fee-bumping transactions.
|
|
20547
|
+
*
|
|
20548
|
+
* Signs the non-finalized inputs of a PSBT (serialized as bytes) and returns the
|
|
20549
|
+
* signed PSBT (also serialized as bytes).
|
|
20550
|
+
*/
|
|
20551
|
+
export interface CpfpSigner {
|
|
20552
|
+
signPsbt(psbtBytes: ArrayBuffer, asyncOpts_?: {
|
|
20553
|
+
signal: AbortSignal;
|
|
20554
|
+
}): Promise<ArrayBuffer>;
|
|
20555
|
+
}
|
|
20556
|
+
/**
|
|
20557
|
+
* Signer for external UTXO inputs in CPFP fee-bumping transactions.
|
|
20558
|
+
*
|
|
20559
|
+
* Signs the non-finalized inputs of a PSBT (serialized as bytes) and returns the
|
|
20560
|
+
* signed PSBT (also serialized as bytes).
|
|
20561
|
+
*/
|
|
20562
|
+
export declare class CpfpSignerImpl extends UniffiAbstractObject implements CpfpSigner {
|
|
20563
|
+
readonly [uniffiTypeNameSymbol] = "CpfpSignerImpl";
|
|
20564
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
20565
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
20566
|
+
private constructor();
|
|
20567
|
+
signPsbt(psbtBytes: ArrayBuffer, asyncOpts_?: {
|
|
20568
|
+
signal: AbortSignal;
|
|
20569
|
+
}): Promise<ArrayBuffer>;
|
|
20570
|
+
/**
|
|
20571
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
20572
|
+
*/
|
|
20573
|
+
uniffiDestroy(): void;
|
|
20574
|
+
static instanceOf(obj: any): obj is CpfpSignerImpl;
|
|
20575
|
+
}
|
|
19366
20576
|
/**
|
|
19367
20577
|
* External signer trait that can be implemented by users and passed to the SDK.
|
|
19368
20578
|
*
|
|
@@ -19788,6 +20998,13 @@ export interface ExternalSparkSigner {
|
|
|
19788
20998
|
signMessage(message: ArrayBuffer, asyncOpts_?: {
|
|
19789
20999
|
signal: AbortSignal;
|
|
19790
21000
|
}): Promise<EcdsaSignatureBytes>;
|
|
21001
|
+
/**
|
|
21002
|
+
* Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
|
|
21003
|
+
* BIP341 key-path spend (empty script tree).
|
|
21004
|
+
*/
|
|
21005
|
+
signLeafRefundSpend(leafId: ExternalTreeNodeId, sighash: ArrayBuffer, asyncOpts_?: {
|
|
21006
|
+
signal: AbortSignal;
|
|
21007
|
+
}): Promise<SchnorrSignatureBytes>;
|
|
19791
21008
|
/**
|
|
19792
21009
|
* Produce FROST shares for a batch of jobs.
|
|
19793
21010
|
*/
|
|
@@ -19894,6 +21111,13 @@ export declare class ExternalSparkSignerImpl extends UniffiAbstractObject implem
|
|
|
19894
21111
|
signMessage(message: ArrayBuffer, asyncOpts_?: {
|
|
19895
21112
|
signal: AbortSignal;
|
|
19896
21113
|
}): Promise<EcdsaSignatureBytes>;
|
|
21114
|
+
/**
|
|
21115
|
+
* Schnorr-sign `sighash` to spend a tree leaf's P2TR refund output as a
|
|
21116
|
+
* BIP341 key-path spend (empty script tree).
|
|
21117
|
+
*/
|
|
21118
|
+
signLeafRefundSpend(leafId: ExternalTreeNodeId, sighash: ArrayBuffer, asyncOpts_?: {
|
|
21119
|
+
signal: AbortSignal;
|
|
21120
|
+
}): Promise<SchnorrSignatureBytes>;
|
|
19897
21121
|
/**
|
|
19898
21122
|
* Produce FROST shares for a batch of jobs.
|
|
19899
21123
|
*/
|
|
@@ -20032,8 +21256,7 @@ export interface PasskeyClientInterface {
|
|
|
20032
21256
|
}): Promise<PasskeyAvailability>;
|
|
20033
21257
|
/**
|
|
20034
21258
|
* Single-CTA onboarding: silent sign-in, falling through to
|
|
20035
|
-
* registration when no credential exists on the device.
|
|
20036
|
-
* [`ConnectFlow`] tells the caller which path ran.
|
|
21259
|
+
* registration when no credential exists on the device.
|
|
20037
21260
|
*
|
|
20038
21261
|
* The silent sign-in pins `prefer_immediately_available_credentials =
|
|
20039
21262
|
* true` regardless of [`SignInRequest`]: the fallback depends on the OS
|
|
@@ -20042,11 +21265,12 @@ export interface PasskeyClientInterface {
|
|
|
20042
21265
|
* register path; every other error (`Cancel`, `Timeout`, ...) propagates
|
|
20043
21266
|
* unchanged.
|
|
20044
21267
|
*
|
|
20045
|
-
*
|
|
20046
|
-
*
|
|
20047
|
-
*
|
|
20048
|
-
*
|
|
20049
|
-
*
|
|
21268
|
+
* On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
|
|
21269
|
+
* where the browser advertises it. Web hosts gate on the browser's
|
|
21270
|
+
* immediate-mediation capability (the WASM client surfaces it):
|
|
21271
|
+
* without it the probe shows the standard picker and a dismiss is a
|
|
21272
|
+
* cancel, not `CredentialNotFound`, so it never reaches register.
|
|
21273
|
+
* Present an explicit create / sign-in choice there instead.
|
|
20050
21274
|
*/
|
|
20051
21275
|
connectWithPasskey(request: ConnectWithPasskeyRequest, asyncOpts_?: {
|
|
20052
21276
|
signal: AbortSignal;
|
|
@@ -20111,8 +21335,7 @@ export declare class PasskeyClient extends UniffiAbstractObject implements Passk
|
|
|
20111
21335
|
}): Promise<PasskeyAvailability>;
|
|
20112
21336
|
/**
|
|
20113
21337
|
* Single-CTA onboarding: silent sign-in, falling through to
|
|
20114
|
-
* registration when no credential exists on the device.
|
|
20115
|
-
* [`ConnectFlow`] tells the caller which path ran.
|
|
21338
|
+
* registration when no credential exists on the device.
|
|
20116
21339
|
*
|
|
20117
21340
|
* The silent sign-in pins `prefer_immediately_available_credentials =
|
|
20118
21341
|
* true` regardless of [`SignInRequest`]: the fallback depends on the OS
|
|
@@ -20121,11 +21344,12 @@ export declare class PasskeyClient extends UniffiAbstractObject implements Passk
|
|
|
20121
21344
|
* register path; every other error (`Cancel`, `Timeout`, ...) propagates
|
|
20122
21345
|
* unchanged.
|
|
20123
21346
|
*
|
|
20124
|
-
*
|
|
20125
|
-
*
|
|
20126
|
-
*
|
|
20127
|
-
*
|
|
20128
|
-
*
|
|
21347
|
+
* On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
|
|
21348
|
+
* where the browser advertises it. Web hosts gate on the browser's
|
|
21349
|
+
* immediate-mediation capability (the WASM client surfaces it):
|
|
21350
|
+
* without it the probe shows the standard picker and a dismiss is a
|
|
21351
|
+
* cancel, not `CredentialNotFound`, so it never reaches register.
|
|
21352
|
+
* Present an explicit create / sign-in choice there instead.
|
|
20129
21353
|
*/
|
|
20130
21354
|
connectWithPasskey(request: ConnectWithPasskeyRequest, asyncOpts_?: {
|
|
20131
21355
|
signal: AbortSignal;
|
|
@@ -21921,6 +23145,13 @@ declare const _default: Readonly<{
|
|
|
21921
23145
|
lift(value: UniffiByteArray): Config;
|
|
21922
23146
|
lower(value: Config): UniffiByteArray;
|
|
21923
23147
|
};
|
|
23148
|
+
FfiConverterTypeConfirmationStatus: {
|
|
23149
|
+
read(from: RustBuffer): ConfirmationStatus;
|
|
23150
|
+
write(value: ConfirmationStatus, into: RustBuffer): void;
|
|
23151
|
+
allocationSize(value: ConfirmationStatus): number;
|
|
23152
|
+
lift(value: UniffiByteArray): ConfirmationStatus;
|
|
23153
|
+
lower(value: ConfirmationStatus): UniffiByteArray;
|
|
23154
|
+
};
|
|
21924
23155
|
FfiConverterTypeConnectRequest: {
|
|
21925
23156
|
read(from: RustBuffer): ConnectRequest;
|
|
21926
23157
|
write(value: ConnectRequest, into: RustBuffer): void;
|
|
@@ -22054,6 +23285,21 @@ declare const _default: Readonly<{
|
|
|
22054
23285
|
lift(value: UniffiByteArray): ConversionType;
|
|
22055
23286
|
lower(value: ConversionType): UniffiByteArray;
|
|
22056
23287
|
};
|
|
23288
|
+
FfiConverterTypeCpfpFundingKind: {
|
|
23289
|
+
read(from: RustBuffer): CpfpFundingKind;
|
|
23290
|
+
write(value: CpfpFundingKind, into: RustBuffer): void;
|
|
23291
|
+
allocationSize(value: CpfpFundingKind): number;
|
|
23292
|
+
lift(value: UniffiByteArray): CpfpFundingKind;
|
|
23293
|
+
lower(value: CpfpFundingKind): UniffiByteArray;
|
|
23294
|
+
};
|
|
23295
|
+
FfiConverterTypeCpfpInput: {
|
|
23296
|
+
read(from: RustBuffer): CpfpInput;
|
|
23297
|
+
write(value: CpfpInput, into: RustBuffer): void;
|
|
23298
|
+
allocationSize(value: CpfpInput): number;
|
|
23299
|
+
lift(value: UniffiByteArray): CpfpInput;
|
|
23300
|
+
lower(value: CpfpInput): UniffiByteArray;
|
|
23301
|
+
};
|
|
23302
|
+
FfiConverterTypeCpfpSigner: FfiConverterObjectWithCallbacks<CpfpSigner>;
|
|
22057
23303
|
FfiConverterTypeCreateIssuerTokenRequest: {
|
|
22058
23304
|
read(from: RustBuffer): CreateIssuerTokenRequest;
|
|
22059
23305
|
write(value: CreateIssuerTokenRequest, into: RustBuffer): void;
|
|
@@ -22180,6 +23426,13 @@ declare const _default: Readonly<{
|
|
|
22180
23426
|
lift(value: UniffiByteArray): ErrorKind;
|
|
22181
23427
|
lower(value: ErrorKind): UniffiByteArray;
|
|
22182
23428
|
};
|
|
23429
|
+
FfiConverterTypeExitLeafSelection: {
|
|
23430
|
+
read(from: RustBuffer): ExitLeafSelection;
|
|
23431
|
+
write(value: ExitLeafSelection, into: RustBuffer): void;
|
|
23432
|
+
allocationSize(value: ExitLeafSelection): number;
|
|
23433
|
+
lift(value: UniffiByteArray): ExitLeafSelection;
|
|
23434
|
+
lower(value: ExitLeafSelection): UniffiByteArray;
|
|
23435
|
+
};
|
|
22183
23436
|
FfiConverterTypeExternalBreezSigner: FfiConverterObjectWithCallbacks<ExternalBreezSigner>;
|
|
22184
23437
|
FfiConverterTypeExternalClaimLeafInput: {
|
|
22185
23438
|
read(from: RustBuffer): ExternalClaimLeafInput;
|
|
@@ -22828,6 +24081,13 @@ declare const _default: Readonly<{
|
|
|
22828
24081
|
lift(value: UniffiByteArray): OutgoingChange;
|
|
22829
24082
|
lower(value: OutgoingChange): UniffiByteArray;
|
|
22830
24083
|
};
|
|
24084
|
+
FfiConverterTypeOutspend: {
|
|
24085
|
+
read(from: RustBuffer): Outspend;
|
|
24086
|
+
write(value: Outspend, into: RustBuffer): void;
|
|
24087
|
+
allocationSize(value: Outspend): number;
|
|
24088
|
+
lift(value: UniffiByteArray): Outspend;
|
|
24089
|
+
lower(value: Outspend): UniffiByteArray;
|
|
24090
|
+
};
|
|
22831
24091
|
FfiConverterTypePasskeyAvailability: {
|
|
22832
24092
|
read(from: RustBuffer): PasskeyAvailability;
|
|
22833
24093
|
write(value: PasskeyAvailability, into: RustBuffer): void;
|
|
@@ -22943,6 +24203,13 @@ declare const _default: Readonly<{
|
|
|
22943
24203
|
lift(value: UniffiByteArray): PaymentType;
|
|
22944
24204
|
lower(value: PaymentType): UniffiByteArray;
|
|
22945
24205
|
};
|
|
24206
|
+
FfiConverterTypePerBranchFunding: {
|
|
24207
|
+
read(from: RustBuffer): PerBranchFunding;
|
|
24208
|
+
write(value: PerBranchFunding, into: RustBuffer): void;
|
|
24209
|
+
allocationSize(value: PerBranchFunding): number;
|
|
24210
|
+
lift(value: UniffiByteArray): PerBranchFunding;
|
|
24211
|
+
lower(value: PerBranchFunding): UniffiByteArray;
|
|
24212
|
+
};
|
|
22946
24213
|
FfiConverterTypePrepareLnurlPayRequest: {
|
|
22947
24214
|
read(from: RustBuffer): PrepareLnurlPayRequest;
|
|
22948
24215
|
write(value: PrepareLnurlPayRequest, into: RustBuffer): void;
|
|
@@ -22971,6 +24238,20 @@ declare const _default: Readonly<{
|
|
|
22971
24238
|
lift(value: UniffiByteArray): PrepareSendPaymentResponse;
|
|
22972
24239
|
lower(value: PrepareSendPaymentResponse): UniffiByteArray;
|
|
22973
24240
|
};
|
|
24241
|
+
FfiConverterTypePrepareUnilateralExitRequest: {
|
|
24242
|
+
read(from: RustBuffer): PrepareUnilateralExitRequest;
|
|
24243
|
+
write(value: PrepareUnilateralExitRequest, into: RustBuffer): void;
|
|
24244
|
+
allocationSize(value: PrepareUnilateralExitRequest): number;
|
|
24245
|
+
lift(value: UniffiByteArray): PrepareUnilateralExitRequest;
|
|
24246
|
+
lower(value: PrepareUnilateralExitRequest): UniffiByteArray;
|
|
24247
|
+
};
|
|
24248
|
+
FfiConverterTypePrepareUnilateralExitResponse: {
|
|
24249
|
+
read(from: RustBuffer): PrepareUnilateralExitResponse;
|
|
24250
|
+
write(value: PrepareUnilateralExitResponse, into: RustBuffer): void;
|
|
24251
|
+
allocationSize(value: PrepareUnilateralExitResponse): number;
|
|
24252
|
+
lift(value: UniffiByteArray): PrepareUnilateralExitResponse;
|
|
24253
|
+
lower(value: PrepareUnilateralExitResponse): UniffiByteArray;
|
|
24254
|
+
};
|
|
22974
24255
|
FfiConverterTypePrfProvider: FfiConverterObjectWithCallbacks<PrfProvider>;
|
|
22975
24256
|
FfiConverterTypePrfProviderError: {
|
|
22976
24257
|
read(from: RustBuffer): PrfProviderError;
|
|
@@ -23106,6 +24387,13 @@ declare const _default: Readonly<{
|
|
|
23106
24387
|
lift(value: UniffiByteArray): RefundDepositResponse;
|
|
23107
24388
|
lower(value: RefundDepositResponse): UniffiByteArray;
|
|
23108
24389
|
};
|
|
24390
|
+
FfiConverterTypeRefundPendingConversionsResponse: {
|
|
24391
|
+
read(from: RustBuffer): RefundPendingConversionsResponse;
|
|
24392
|
+
write(value: RefundPendingConversionsResponse, into: RustBuffer): void;
|
|
24393
|
+
allocationSize(value: RefundPendingConversionsResponse): number;
|
|
24394
|
+
lift(value: UniffiByteArray): RefundPendingConversionsResponse;
|
|
24395
|
+
lower(value: RefundPendingConversionsResponse): UniffiByteArray;
|
|
24396
|
+
};
|
|
23109
24397
|
FfiConverterTypeRegisterLightningAddressRequest: {
|
|
23110
24398
|
read(from: RustBuffer): RegisterLightningAddressRequest;
|
|
23111
24399
|
write(value: RegisterLightningAddressRequest, into: RustBuffer): void;
|
|
@@ -23391,6 +24679,13 @@ declare const _default: Readonly<{
|
|
|
23391
24679
|
lift(value: UniffiByteArray): SparkInvoicePaymentDetails;
|
|
23392
24680
|
lower(value: SparkInvoicePaymentDetails): UniffiByteArray;
|
|
23393
24681
|
};
|
|
24682
|
+
FfiConverterTypeSparkMasterIdentityPublicKey: {
|
|
24683
|
+
read(from: RustBuffer): SparkMasterIdentityPublicKey;
|
|
24684
|
+
write(value: SparkMasterIdentityPublicKey, into: RustBuffer): void;
|
|
24685
|
+
allocationSize(value: SparkMasterIdentityPublicKey): number;
|
|
24686
|
+
lift(value: UniffiByteArray): SparkMasterIdentityPublicKey;
|
|
24687
|
+
lower(value: SparkMasterIdentityPublicKey): UniffiByteArray;
|
|
24688
|
+
};
|
|
23394
24689
|
FfiConverterTypeSparkSigningOperator: {
|
|
23395
24690
|
read(from: RustBuffer): SparkSigningOperator;
|
|
23396
24691
|
write(value: SparkSigningOperator, into: RustBuffer): void;
|
|
@@ -23583,6 +24878,41 @@ declare const _default: Readonly<{
|
|
|
23583
24878
|
lift(value: UniffiByteArray): UnfreezeIssuerTokenResponse;
|
|
23584
24879
|
lower(value: UnfreezeIssuerTokenResponse): UniffiByteArray;
|
|
23585
24880
|
};
|
|
24881
|
+
FfiConverterTypeUnilateralExitLeaf: {
|
|
24882
|
+
read(from: RustBuffer): UnilateralExitLeaf;
|
|
24883
|
+
write(value: UnilateralExitLeaf, into: RustBuffer): void;
|
|
24884
|
+
allocationSize(value: UnilateralExitLeaf): number;
|
|
24885
|
+
lift(value: UniffiByteArray): UnilateralExitLeaf;
|
|
24886
|
+
lower(value: UnilateralExitLeaf): UniffiByteArray;
|
|
24887
|
+
};
|
|
24888
|
+
FfiConverterTypeUnilateralExitRequest: {
|
|
24889
|
+
read(from: RustBuffer): UnilateralExitRequest;
|
|
24890
|
+
write(value: UnilateralExitRequest, into: RustBuffer): void;
|
|
24891
|
+
allocationSize(value: UnilateralExitRequest): number;
|
|
24892
|
+
lift(value: UniffiByteArray): UnilateralExitRequest;
|
|
24893
|
+
lower(value: UnilateralExitRequest): UniffiByteArray;
|
|
24894
|
+
};
|
|
24895
|
+
FfiConverterTypeUnilateralExitResponse: {
|
|
24896
|
+
read(from: RustBuffer): UnilateralExitResponse;
|
|
24897
|
+
write(value: UnilateralExitResponse, into: RustBuffer): void;
|
|
24898
|
+
allocationSize(value: UnilateralExitResponse): number;
|
|
24899
|
+
lift(value: UniffiByteArray): UnilateralExitResponse;
|
|
24900
|
+
lower(value: UnilateralExitResponse): UniffiByteArray;
|
|
24901
|
+
};
|
|
24902
|
+
FfiConverterTypeUnilateralExitTransaction: {
|
|
24903
|
+
read(from: RustBuffer): UnilateralExitTransaction;
|
|
24904
|
+
write(value: UnilateralExitTransaction, into: RustBuffer): void;
|
|
24905
|
+
allocationSize(value: UnilateralExitTransaction): number;
|
|
24906
|
+
lift(value: UniffiByteArray): UnilateralExitTransaction;
|
|
24907
|
+
lower(value: UnilateralExitTransaction): UniffiByteArray;
|
|
24908
|
+
};
|
|
24909
|
+
FfiConverterTypeUnilateralExitTxKind: {
|
|
24910
|
+
read(from: RustBuffer): UnilateralExitTxKind;
|
|
24911
|
+
write(value: UnilateralExitTxKind, into: RustBuffer): void;
|
|
24912
|
+
allocationSize(value: UnilateralExitTxKind): number;
|
|
24913
|
+
lift(value: UniffiByteArray): UnilateralExitTxKind;
|
|
24914
|
+
lower(value: UnilateralExitTxKind): UniffiByteArray;
|
|
24915
|
+
};
|
|
23586
24916
|
FfiConverterTypeUnregisterWebhookRequest: {
|
|
23587
24917
|
read(from: RustBuffer): UnregisterWebhookRequest;
|
|
23588
24918
|
write(value: UnregisterWebhookRequest, into: RustBuffer): void;
|