@breeztech/breez-sdk-spark-react-native 0.6.4-rc3 → 0.6.5
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 +153 -0
- package/cpp/generated/breez_sdk_spark.hpp +24 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +85 -12
- 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 +85 -12
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +6 -0
- 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 +405 -1
- 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 +6 -0
- 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 +405 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +5 -1
- package/plugin/build/withBinaryArtifacts.js +35 -6
- package/scripts/postinstall.sh +38 -0
- package/src/generated/breez_sdk_spark-ffi.ts +14 -0
- package/src/generated/breez_sdk_spark.ts +668 -1
|
@@ -665,6 +665,14 @@ export type Config = {
|
|
|
665
665
|
* If set to false, no changes will be made to the Spark private mode.
|
|
666
666
|
*/
|
|
667
667
|
privateEnabledDefault: boolean;
|
|
668
|
+
/**
|
|
669
|
+
* Configuration for leaf optimization.
|
|
670
|
+
*
|
|
671
|
+
* Leaf optimization controls the denominations of leaves that are held in the wallet.
|
|
672
|
+
* Fewer, bigger leaves allow for more funds to be exited unilaterally.
|
|
673
|
+
* More leaves allow payments to be made without needing a swap, reducing payment latency.
|
|
674
|
+
*/
|
|
675
|
+
optimizationConfig: OptimizationConfig;
|
|
668
676
|
};
|
|
669
677
|
/**
|
|
670
678
|
* Generated factory for {@link Config} record objects.
|
|
@@ -1768,6 +1776,70 @@ export declare const MintIssuerTokenRequest: Readonly<{
|
|
|
1768
1776
|
*/
|
|
1769
1777
|
defaults: () => Partial<MintIssuerTokenRequest>;
|
|
1770
1778
|
}>;
|
|
1779
|
+
export type OptimizationConfig = {
|
|
1780
|
+
/**
|
|
1781
|
+
* Whether automatic leaf optimization is enabled.
|
|
1782
|
+
*
|
|
1783
|
+
* If set to true, the SDK will automatically optimize the leaf set when it changes.
|
|
1784
|
+
* Otherwise, the manual optimization API must be used to optimize the leaf set.
|
|
1785
|
+
*
|
|
1786
|
+
* Default value is true.
|
|
1787
|
+
*/
|
|
1788
|
+
autoEnabled: boolean;
|
|
1789
|
+
/**
|
|
1790
|
+
* The desired multiplicity for the leaf set. Acceptable values are 0-5.
|
|
1791
|
+
*
|
|
1792
|
+
* Setting this to 0 will optimize for maximizing unilateral exit.
|
|
1793
|
+
* Higher values will optimize for minimizing transfer swaps, with higher values
|
|
1794
|
+
* being more aggressive.
|
|
1795
|
+
*
|
|
1796
|
+
* Default value is 1.
|
|
1797
|
+
*/
|
|
1798
|
+
multiplicity: number;
|
|
1799
|
+
};
|
|
1800
|
+
/**
|
|
1801
|
+
* Generated factory for {@link OptimizationConfig} record objects.
|
|
1802
|
+
*/
|
|
1803
|
+
export declare const OptimizationConfig: Readonly<{
|
|
1804
|
+
/**
|
|
1805
|
+
* Create a frozen instance of {@link OptimizationConfig}, with defaults specified
|
|
1806
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1807
|
+
*/
|
|
1808
|
+
create: (partial: Partial<OptimizationConfig> & Required<Omit<OptimizationConfig, never>>) => OptimizationConfig;
|
|
1809
|
+
/**
|
|
1810
|
+
* Create a frozen instance of {@link OptimizationConfig}, with defaults specified
|
|
1811
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1812
|
+
*/
|
|
1813
|
+
new: (partial: Partial<OptimizationConfig> & Required<Omit<OptimizationConfig, never>>) => OptimizationConfig;
|
|
1814
|
+
/**
|
|
1815
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1816
|
+
*/
|
|
1817
|
+
defaults: () => Partial<OptimizationConfig>;
|
|
1818
|
+
}>;
|
|
1819
|
+
export type OptimizationProgress = {
|
|
1820
|
+
isRunning: boolean;
|
|
1821
|
+
currentRound: number;
|
|
1822
|
+
totalRounds: number;
|
|
1823
|
+
};
|
|
1824
|
+
/**
|
|
1825
|
+
* Generated factory for {@link OptimizationProgress} record objects.
|
|
1826
|
+
*/
|
|
1827
|
+
export declare const OptimizationProgress: Readonly<{
|
|
1828
|
+
/**
|
|
1829
|
+
* Create a frozen instance of {@link OptimizationProgress}, with defaults specified
|
|
1830
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1831
|
+
*/
|
|
1832
|
+
create: (partial: Partial<OptimizationProgress> & Required<Omit<OptimizationProgress, never>>) => OptimizationProgress;
|
|
1833
|
+
/**
|
|
1834
|
+
* Create a frozen instance of {@link OptimizationProgress}, with defaults specified
|
|
1835
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1836
|
+
*/
|
|
1837
|
+
new: (partial: Partial<OptimizationProgress> & Required<Omit<OptimizationProgress, never>>) => OptimizationProgress;
|
|
1838
|
+
/**
|
|
1839
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1840
|
+
*/
|
|
1841
|
+
defaults: () => Partial<OptimizationProgress>;
|
|
1842
|
+
}>;
|
|
1771
1843
|
export type OutgoingChange = {
|
|
1772
1844
|
change: RecordChange;
|
|
1773
1845
|
parent: Record | undefined;
|
|
@@ -4342,6 +4414,218 @@ export declare enum OnchainConfirmationSpeed {
|
|
|
4342
4414
|
Medium = 1,
|
|
4343
4415
|
Slow = 2
|
|
4344
4416
|
}
|
|
4417
|
+
export declare enum OptimizationEvent_Tags {
|
|
4418
|
+
Started = "Started",
|
|
4419
|
+
RoundCompleted = "RoundCompleted",
|
|
4420
|
+
Completed = "Completed",
|
|
4421
|
+
Cancelled = "Cancelled",
|
|
4422
|
+
Failed = "Failed",
|
|
4423
|
+
Skipped = "Skipped"
|
|
4424
|
+
}
|
|
4425
|
+
export declare const OptimizationEvent: Readonly<{
|
|
4426
|
+
instanceOf: (obj: any) => obj is OptimizationEvent;
|
|
4427
|
+
Started: {
|
|
4428
|
+
new (inner: {
|
|
4429
|
+
totalRounds: number;
|
|
4430
|
+
}): {
|
|
4431
|
+
readonly tag: OptimizationEvent_Tags.Started;
|
|
4432
|
+
readonly inner: Readonly<{
|
|
4433
|
+
totalRounds: number;
|
|
4434
|
+
}>;
|
|
4435
|
+
/**
|
|
4436
|
+
* @private
|
|
4437
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4438
|
+
*/
|
|
4439
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4440
|
+
};
|
|
4441
|
+
"new"(inner: {
|
|
4442
|
+
totalRounds: number;
|
|
4443
|
+
}): {
|
|
4444
|
+
readonly tag: OptimizationEvent_Tags.Started;
|
|
4445
|
+
readonly inner: Readonly<{
|
|
4446
|
+
totalRounds: number;
|
|
4447
|
+
}>;
|
|
4448
|
+
/**
|
|
4449
|
+
* @private
|
|
4450
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4451
|
+
*/
|
|
4452
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4453
|
+
};
|
|
4454
|
+
instanceOf(obj: any): obj is {
|
|
4455
|
+
readonly tag: OptimizationEvent_Tags.Started;
|
|
4456
|
+
readonly inner: Readonly<{
|
|
4457
|
+
totalRounds: number;
|
|
4458
|
+
}>;
|
|
4459
|
+
/**
|
|
4460
|
+
* @private
|
|
4461
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4462
|
+
*/
|
|
4463
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4464
|
+
};
|
|
4465
|
+
};
|
|
4466
|
+
RoundCompleted: {
|
|
4467
|
+
new (inner: {
|
|
4468
|
+
currentRound: number;
|
|
4469
|
+
totalRounds: number;
|
|
4470
|
+
}): {
|
|
4471
|
+
readonly tag: OptimizationEvent_Tags.RoundCompleted;
|
|
4472
|
+
readonly inner: Readonly<{
|
|
4473
|
+
currentRound: number;
|
|
4474
|
+
totalRounds: number;
|
|
4475
|
+
}>;
|
|
4476
|
+
/**
|
|
4477
|
+
* @private
|
|
4478
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4479
|
+
*/
|
|
4480
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4481
|
+
};
|
|
4482
|
+
"new"(inner: {
|
|
4483
|
+
currentRound: number;
|
|
4484
|
+
totalRounds: number;
|
|
4485
|
+
}): {
|
|
4486
|
+
readonly tag: OptimizationEvent_Tags.RoundCompleted;
|
|
4487
|
+
readonly inner: Readonly<{
|
|
4488
|
+
currentRound: number;
|
|
4489
|
+
totalRounds: number;
|
|
4490
|
+
}>;
|
|
4491
|
+
/**
|
|
4492
|
+
* @private
|
|
4493
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4494
|
+
*/
|
|
4495
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4496
|
+
};
|
|
4497
|
+
instanceOf(obj: any): obj is {
|
|
4498
|
+
readonly tag: OptimizationEvent_Tags.RoundCompleted;
|
|
4499
|
+
readonly inner: Readonly<{
|
|
4500
|
+
currentRound: number;
|
|
4501
|
+
totalRounds: number;
|
|
4502
|
+
}>;
|
|
4503
|
+
/**
|
|
4504
|
+
* @private
|
|
4505
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4506
|
+
*/
|
|
4507
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4508
|
+
};
|
|
4509
|
+
};
|
|
4510
|
+
Completed: {
|
|
4511
|
+
new (): {
|
|
4512
|
+
readonly tag: OptimizationEvent_Tags.Completed;
|
|
4513
|
+
/**
|
|
4514
|
+
* @private
|
|
4515
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4516
|
+
*/
|
|
4517
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4518
|
+
};
|
|
4519
|
+
"new"(): {
|
|
4520
|
+
readonly tag: OptimizationEvent_Tags.Completed;
|
|
4521
|
+
/**
|
|
4522
|
+
* @private
|
|
4523
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4524
|
+
*/
|
|
4525
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4526
|
+
};
|
|
4527
|
+
instanceOf(obj: any): obj is {
|
|
4528
|
+
readonly tag: OptimizationEvent_Tags.Completed;
|
|
4529
|
+
/**
|
|
4530
|
+
* @private
|
|
4531
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4532
|
+
*/
|
|
4533
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4534
|
+
};
|
|
4535
|
+
};
|
|
4536
|
+
Cancelled: {
|
|
4537
|
+
new (): {
|
|
4538
|
+
readonly tag: OptimizationEvent_Tags.Cancelled;
|
|
4539
|
+
/**
|
|
4540
|
+
* @private
|
|
4541
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4542
|
+
*/
|
|
4543
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4544
|
+
};
|
|
4545
|
+
"new"(): {
|
|
4546
|
+
readonly tag: OptimizationEvent_Tags.Cancelled;
|
|
4547
|
+
/**
|
|
4548
|
+
* @private
|
|
4549
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4550
|
+
*/
|
|
4551
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4552
|
+
};
|
|
4553
|
+
instanceOf(obj: any): obj is {
|
|
4554
|
+
readonly tag: OptimizationEvent_Tags.Cancelled;
|
|
4555
|
+
/**
|
|
4556
|
+
* @private
|
|
4557
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4558
|
+
*/
|
|
4559
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4560
|
+
};
|
|
4561
|
+
};
|
|
4562
|
+
Failed: {
|
|
4563
|
+
new (inner: {
|
|
4564
|
+
error: string;
|
|
4565
|
+
}): {
|
|
4566
|
+
readonly tag: OptimizationEvent_Tags.Failed;
|
|
4567
|
+
readonly inner: Readonly<{
|
|
4568
|
+
error: string;
|
|
4569
|
+
}>;
|
|
4570
|
+
/**
|
|
4571
|
+
* @private
|
|
4572
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4573
|
+
*/
|
|
4574
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4575
|
+
};
|
|
4576
|
+
"new"(inner: {
|
|
4577
|
+
error: string;
|
|
4578
|
+
}): {
|
|
4579
|
+
readonly tag: OptimizationEvent_Tags.Failed;
|
|
4580
|
+
readonly inner: Readonly<{
|
|
4581
|
+
error: string;
|
|
4582
|
+
}>;
|
|
4583
|
+
/**
|
|
4584
|
+
* @private
|
|
4585
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4586
|
+
*/
|
|
4587
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4588
|
+
};
|
|
4589
|
+
instanceOf(obj: any): obj is {
|
|
4590
|
+
readonly tag: OptimizationEvent_Tags.Failed;
|
|
4591
|
+
readonly inner: Readonly<{
|
|
4592
|
+
error: string;
|
|
4593
|
+
}>;
|
|
4594
|
+
/**
|
|
4595
|
+
* @private
|
|
4596
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4597
|
+
*/
|
|
4598
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4599
|
+
};
|
|
4600
|
+
};
|
|
4601
|
+
Skipped: {
|
|
4602
|
+
new (): {
|
|
4603
|
+
readonly tag: OptimizationEvent_Tags.Skipped;
|
|
4604
|
+
/**
|
|
4605
|
+
* @private
|
|
4606
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4607
|
+
*/
|
|
4608
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4609
|
+
};
|
|
4610
|
+
"new"(): {
|
|
4611
|
+
readonly tag: OptimizationEvent_Tags.Skipped;
|
|
4612
|
+
/**
|
|
4613
|
+
* @private
|
|
4614
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4615
|
+
*/
|
|
4616
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4617
|
+
};
|
|
4618
|
+
instanceOf(obj: any): obj is {
|
|
4619
|
+
readonly tag: OptimizationEvent_Tags.Skipped;
|
|
4620
|
+
/**
|
|
4621
|
+
* @private
|
|
4622
|
+
* This field is private and should not be used, use `tag` instead.
|
|
4623
|
+
*/
|
|
4624
|
+
readonly [uniffiTypeNameSymbol]: "OptimizationEvent";
|
|
4625
|
+
};
|
|
4626
|
+
};
|
|
4627
|
+
}>;
|
|
4628
|
+
export type OptimizationEvent = InstanceType<(typeof OptimizationEvent)[keyof Omit<typeof OptimizationEvent, 'instanceOf'>]>;
|
|
4345
4629
|
export declare enum PaymentDetails_Tags {
|
|
4346
4630
|
Spark = "Spark",
|
|
4347
4631
|
Token = "Token",
|
|
@@ -5170,11 +5454,15 @@ export declare const ReceivePaymentMethod: Readonly<{
|
|
|
5170
5454
|
new (inner: {
|
|
5171
5455
|
description: string;
|
|
5172
5456
|
amountSats: /*u64*/ bigint | undefined;
|
|
5457
|
+
/**
|
|
5458
|
+
* The expiry time of the invoice in seconds
|
|
5459
|
+
*/ expirySecs: /*u32*/ number | undefined;
|
|
5173
5460
|
}): {
|
|
5174
5461
|
readonly tag: ReceivePaymentMethod_Tags.Bolt11Invoice;
|
|
5175
5462
|
readonly inner: Readonly<{
|
|
5176
5463
|
description: string;
|
|
5177
5464
|
amountSats: /*u64*/ bigint | undefined;
|
|
5465
|
+
expirySecs: /*u32*/ number | undefined;
|
|
5178
5466
|
}>;
|
|
5179
5467
|
/**
|
|
5180
5468
|
* @private
|
|
@@ -5185,11 +5473,15 @@ export declare const ReceivePaymentMethod: Readonly<{
|
|
|
5185
5473
|
"new"(inner: {
|
|
5186
5474
|
description: string;
|
|
5187
5475
|
amountSats: /*u64*/ bigint | undefined;
|
|
5476
|
+
/**
|
|
5477
|
+
* The expiry time of the invoice in seconds
|
|
5478
|
+
*/ expirySecs: /*u32*/ number | undefined;
|
|
5188
5479
|
}): {
|
|
5189
5480
|
readonly tag: ReceivePaymentMethod_Tags.Bolt11Invoice;
|
|
5190
5481
|
readonly inner: Readonly<{
|
|
5191
5482
|
description: string;
|
|
5192
5483
|
amountSats: /*u64*/ bigint | undefined;
|
|
5484
|
+
expirySecs: /*u32*/ number | undefined;
|
|
5193
5485
|
}>;
|
|
5194
5486
|
/**
|
|
5195
5487
|
* @private
|
|
@@ -5202,6 +5494,7 @@ export declare const ReceivePaymentMethod: Readonly<{
|
|
|
5202
5494
|
readonly inner: Readonly<{
|
|
5203
5495
|
description: string;
|
|
5204
5496
|
amountSats: /*u64*/ bigint | undefined;
|
|
5497
|
+
expirySecs: /*u32*/ number | undefined;
|
|
5205
5498
|
}>;
|
|
5206
5499
|
/**
|
|
5207
5500
|
* @private
|
|
@@ -6022,7 +6315,8 @@ export declare enum SdkEvent_Tags {
|
|
|
6022
6315
|
ClaimedDeposits = "ClaimedDeposits",
|
|
6023
6316
|
PaymentSucceeded = "PaymentSucceeded",
|
|
6024
6317
|
PaymentPending = "PaymentPending",
|
|
6025
|
-
PaymentFailed = "PaymentFailed"
|
|
6318
|
+
PaymentFailed = "PaymentFailed",
|
|
6319
|
+
Optimization = "Optimization"
|
|
6026
6320
|
}
|
|
6027
6321
|
/**
|
|
6028
6322
|
* Events emitted by the SDK
|
|
@@ -6250,6 +6544,45 @@ export declare const SdkEvent: Readonly<{
|
|
|
6250
6544
|
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
6251
6545
|
};
|
|
6252
6546
|
};
|
|
6547
|
+
Optimization: {
|
|
6548
|
+
new (inner: {
|
|
6549
|
+
optimizationEvent: OptimizationEvent;
|
|
6550
|
+
}): {
|
|
6551
|
+
readonly tag: SdkEvent_Tags.Optimization;
|
|
6552
|
+
readonly inner: Readonly<{
|
|
6553
|
+
optimizationEvent: OptimizationEvent;
|
|
6554
|
+
}>;
|
|
6555
|
+
/**
|
|
6556
|
+
* @private
|
|
6557
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6558
|
+
*/
|
|
6559
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
6560
|
+
};
|
|
6561
|
+
"new"(inner: {
|
|
6562
|
+
optimizationEvent: OptimizationEvent;
|
|
6563
|
+
}): {
|
|
6564
|
+
readonly tag: SdkEvent_Tags.Optimization;
|
|
6565
|
+
readonly inner: Readonly<{
|
|
6566
|
+
optimizationEvent: OptimizationEvent;
|
|
6567
|
+
}>;
|
|
6568
|
+
/**
|
|
6569
|
+
* @private
|
|
6570
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6571
|
+
*/
|
|
6572
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
6573
|
+
};
|
|
6574
|
+
instanceOf(obj: any): obj is {
|
|
6575
|
+
readonly tag: SdkEvent_Tags.Optimization;
|
|
6576
|
+
readonly inner: Readonly<{
|
|
6577
|
+
optimizationEvent: OptimizationEvent;
|
|
6578
|
+
}>;
|
|
6579
|
+
/**
|
|
6580
|
+
* @private
|
|
6581
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6582
|
+
*/
|
|
6583
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
6584
|
+
};
|
|
6585
|
+
};
|
|
6253
6586
|
}>;
|
|
6254
6587
|
/**
|
|
6255
6588
|
* Events emitted by the SDK
|
|
@@ -8367,6 +8700,19 @@ export interface BreezSdkInterface {
|
|
|
8367
8700
|
addEventListener(listener: EventListener, asyncOpts_?: {
|
|
8368
8701
|
signal: AbortSignal;
|
|
8369
8702
|
}): Promise<string>;
|
|
8703
|
+
/**
|
|
8704
|
+
* Cancels the ongoing leaf optimization.
|
|
8705
|
+
*
|
|
8706
|
+
* This method cancels the ongoing optimization and waits for it to fully stop.
|
|
8707
|
+
* The current round will complete before stopping. This method blocks
|
|
8708
|
+
* until the optimization has fully stopped and leaves reserved for optimization
|
|
8709
|
+
* are available again.
|
|
8710
|
+
*
|
|
8711
|
+
* If no optimization is running, this method returns immediately.
|
|
8712
|
+
*/
|
|
8713
|
+
cancelLeafOptimization(asyncOpts_?: {
|
|
8714
|
+
signal: AbortSignal;
|
|
8715
|
+
}): Promise<void>;
|
|
8370
8716
|
checkLightningAddressAvailable(req: CheckLightningAddressRequest, asyncOpts_?: {
|
|
8371
8717
|
signal: AbortSignal;
|
|
8372
8718
|
}): Promise<boolean>;
|
|
@@ -8406,6 +8752,10 @@ export interface BreezSdkInterface {
|
|
|
8406
8752
|
getInfo(request: GetInfoRequest, asyncOpts_?: {
|
|
8407
8753
|
signal: AbortSignal;
|
|
8408
8754
|
}): Promise<GetInfoResponse>;
|
|
8755
|
+
/**
|
|
8756
|
+
* Returns the current optimization progress snapshot.
|
|
8757
|
+
*/
|
|
8758
|
+
getLeafOptimizationProgress(): OptimizationProgress;
|
|
8409
8759
|
getLightningAddress(asyncOpts_?: {
|
|
8410
8760
|
signal: AbortSignal;
|
|
8411
8761
|
}): Promise<LightningAddressInfo | undefined>;
|
|
@@ -8552,6 +8902,14 @@ export interface BreezSdkInterface {
|
|
|
8552
8902
|
signMessage(request: SignMessageRequest, asyncOpts_?: {
|
|
8553
8903
|
signal: AbortSignal;
|
|
8554
8904
|
}): Promise<SignMessageResponse>;
|
|
8905
|
+
/**
|
|
8906
|
+
* Starts leaf optimization in the background.
|
|
8907
|
+
*
|
|
8908
|
+
* This method spawns the optimization work in a background task and returns
|
|
8909
|
+
* immediately. Progress is reported via events.
|
|
8910
|
+
* If optimization is already running, no new task will be started.
|
|
8911
|
+
*/
|
|
8912
|
+
startLeafOptimization(): void;
|
|
8555
8913
|
/**
|
|
8556
8914
|
* Synchronizes the wallet with the Spark network
|
|
8557
8915
|
*/
|
|
@@ -8590,6 +8948,19 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
8590
8948
|
addEventListener(listener: EventListener, asyncOpts_?: {
|
|
8591
8949
|
signal: AbortSignal;
|
|
8592
8950
|
}): Promise<string>;
|
|
8951
|
+
/**
|
|
8952
|
+
* Cancels the ongoing leaf optimization.
|
|
8953
|
+
*
|
|
8954
|
+
* This method cancels the ongoing optimization and waits for it to fully stop.
|
|
8955
|
+
* The current round will complete before stopping. This method blocks
|
|
8956
|
+
* until the optimization has fully stopped and leaves reserved for optimization
|
|
8957
|
+
* are available again.
|
|
8958
|
+
*
|
|
8959
|
+
* If no optimization is running, this method returns immediately.
|
|
8960
|
+
*/
|
|
8961
|
+
cancelLeafOptimization(asyncOpts_?: {
|
|
8962
|
+
signal: AbortSignal;
|
|
8963
|
+
}): Promise<void>;
|
|
8593
8964
|
checkLightningAddressAvailable(req: CheckLightningAddressRequest, asyncOpts_?: {
|
|
8594
8965
|
signal: AbortSignal;
|
|
8595
8966
|
}): Promise<boolean>;
|
|
@@ -8629,6 +9000,10 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
8629
9000
|
getInfo(request: GetInfoRequest, asyncOpts_?: {
|
|
8630
9001
|
signal: AbortSignal;
|
|
8631
9002
|
}): Promise<GetInfoResponse>;
|
|
9003
|
+
/**
|
|
9004
|
+
* Returns the current optimization progress snapshot.
|
|
9005
|
+
*/
|
|
9006
|
+
getLeafOptimizationProgress(): OptimizationProgress;
|
|
8632
9007
|
getLightningAddress(asyncOpts_?: {
|
|
8633
9008
|
signal: AbortSignal;
|
|
8634
9009
|
}): Promise<LightningAddressInfo | undefined>;
|
|
@@ -8775,6 +9150,14 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
|
|
|
8775
9150
|
signMessage(request: SignMessageRequest, asyncOpts_?: {
|
|
8776
9151
|
signal: AbortSignal;
|
|
8777
9152
|
}): Promise<SignMessageResponse>;
|
|
9153
|
+
/**
|
|
9154
|
+
* Starts leaf optimization in the background.
|
|
9155
|
+
*
|
|
9156
|
+
* This method spawns the optimization work in a background task and returns
|
|
9157
|
+
* immediately. Progress is reported via events.
|
|
9158
|
+
* If optimization is already running, no new task will be started.
|
|
9159
|
+
*/
|
|
9160
|
+
startLeafOptimization(): void;
|
|
8778
9161
|
/**
|
|
8779
9162
|
* Synchronizes the wallet with the Spark network
|
|
8780
9163
|
*/
|
|
@@ -10286,6 +10669,27 @@ declare const _default: Readonly<{
|
|
|
10286
10669
|
lift(value: UniffiByteArray): OnchainConfirmationSpeed;
|
|
10287
10670
|
lower(value: OnchainConfirmationSpeed): UniffiByteArray;
|
|
10288
10671
|
};
|
|
10672
|
+
FfiConverterTypeOptimizationConfig: {
|
|
10673
|
+
read(from: RustBuffer): OptimizationConfig;
|
|
10674
|
+
write(value: OptimizationConfig, into: RustBuffer): void;
|
|
10675
|
+
allocationSize(value: OptimizationConfig): number;
|
|
10676
|
+
lift(value: UniffiByteArray): OptimizationConfig;
|
|
10677
|
+
lower(value: OptimizationConfig): UniffiByteArray;
|
|
10678
|
+
};
|
|
10679
|
+
FfiConverterTypeOptimizationEvent: {
|
|
10680
|
+
read(from: RustBuffer): OptimizationEvent;
|
|
10681
|
+
write(value: OptimizationEvent, into: RustBuffer): void;
|
|
10682
|
+
allocationSize(value: OptimizationEvent): number;
|
|
10683
|
+
lift(value: UniffiByteArray): OptimizationEvent;
|
|
10684
|
+
lower(value: OptimizationEvent): UniffiByteArray;
|
|
10685
|
+
};
|
|
10686
|
+
FfiConverterTypeOptimizationProgress: {
|
|
10687
|
+
read(from: RustBuffer): OptimizationProgress;
|
|
10688
|
+
write(value: OptimizationProgress, into: RustBuffer): void;
|
|
10689
|
+
allocationSize(value: OptimizationProgress): number;
|
|
10690
|
+
lift(value: UniffiByteArray): OptimizationProgress;
|
|
10691
|
+
lower(value: OptimizationProgress): UniffiByteArray;
|
|
10692
|
+
};
|
|
10289
10693
|
FfiConverterTypeOutgoingChange: {
|
|
10290
10694
|
read(from: RustBuffer): OutgoingChange;
|
|
10291
10695
|
write(value: OutgoingChange, into: RustBuffer): void;
|