@breeztech/breez-sdk-spark-react-native 0.5.2 → 0.6.1
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/lib/commonjs/generated/breez_sdk_spark.js +23 -15
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +22 -14
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +135 -46
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +135 -46
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_spark.ts +213 -78
|
@@ -1534,7 +1534,7 @@ const FfiConverterTypeCheckMessageResponse = (() => {
|
|
|
1534
1534
|
export type ClaimDepositRequest = {
|
|
1535
1535
|
txid: string;
|
|
1536
1536
|
vout: /*u32*/ number;
|
|
1537
|
-
maxFee:
|
|
1537
|
+
maxFee: MaxFee | undefined;
|
|
1538
1538
|
};
|
|
1539
1539
|
|
|
1540
1540
|
/**
|
|
@@ -1574,19 +1574,19 @@ const FfiConverterTypeClaimDepositRequest = (() => {
|
|
|
1574
1574
|
return {
|
|
1575
1575
|
txid: FfiConverterString.read(from),
|
|
1576
1576
|
vout: FfiConverterUInt32.read(from),
|
|
1577
|
-
maxFee:
|
|
1577
|
+
maxFee: FfiConverterOptionalTypeMaxFee.read(from),
|
|
1578
1578
|
};
|
|
1579
1579
|
}
|
|
1580
1580
|
write(value: TypeName, into: RustBuffer): void {
|
|
1581
1581
|
FfiConverterString.write(value.txid, into);
|
|
1582
1582
|
FfiConverterUInt32.write(value.vout, into);
|
|
1583
|
-
|
|
1583
|
+
FfiConverterOptionalTypeMaxFee.write(value.maxFee, into);
|
|
1584
1584
|
}
|
|
1585
1585
|
allocationSize(value: TypeName): number {
|
|
1586
1586
|
return (
|
|
1587
1587
|
FfiConverterString.allocationSize(value.txid) +
|
|
1588
1588
|
FfiConverterUInt32.allocationSize(value.vout) +
|
|
1589
|
-
|
|
1589
|
+
FfiConverterOptionalTypeMaxFee.allocationSize(value.maxFee)
|
|
1590
1590
|
);
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
@@ -1758,7 +1758,7 @@ export type Config = {
|
|
|
1758
1758
|
apiKey: string | undefined;
|
|
1759
1759
|
network: Network;
|
|
1760
1760
|
syncIntervalSecs: /*u32*/ number;
|
|
1761
|
-
maxDepositClaimFee:
|
|
1761
|
+
maxDepositClaimFee: MaxFee | undefined;
|
|
1762
1762
|
/**
|
|
1763
1763
|
* The domain used for receiving through lnurl-pay and lightning address.
|
|
1764
1764
|
*/
|
|
@@ -1830,7 +1830,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
1830
1830
|
apiKey: FfiConverterOptionalString.read(from),
|
|
1831
1831
|
network: FfiConverterTypeNetwork.read(from),
|
|
1832
1832
|
syncIntervalSecs: FfiConverterUInt32.read(from),
|
|
1833
|
-
maxDepositClaimFee:
|
|
1833
|
+
maxDepositClaimFee: FfiConverterOptionalTypeMaxFee.read(from),
|
|
1834
1834
|
lnurlDomain: FfiConverterOptionalString.read(from),
|
|
1835
1835
|
preferSparkOverLightning: FfiConverterBool.read(from),
|
|
1836
1836
|
externalInputParsers:
|
|
@@ -1844,7 +1844,7 @@ const FfiConverterTypeConfig = (() => {
|
|
|
1844
1844
|
FfiConverterOptionalString.write(value.apiKey, into);
|
|
1845
1845
|
FfiConverterTypeNetwork.write(value.network, into);
|
|
1846
1846
|
FfiConverterUInt32.write(value.syncIntervalSecs, into);
|
|
1847
|
-
|
|
1847
|
+
FfiConverterOptionalTypeMaxFee.write(value.maxDepositClaimFee, into);
|
|
1848
1848
|
FfiConverterOptionalString.write(value.lnurlDomain, into);
|
|
1849
1849
|
FfiConverterBool.write(value.preferSparkOverLightning, into);
|
|
1850
1850
|
FfiConverterOptionalArrayTypeExternalInputParser.write(
|
|
@@ -1860,7 +1860,9 @@ const FfiConverterTypeConfig = (() => {
|
|
|
1860
1860
|
FfiConverterOptionalString.allocationSize(value.apiKey) +
|
|
1861
1861
|
FfiConverterTypeNetwork.allocationSize(value.network) +
|
|
1862
1862
|
FfiConverterUInt32.allocationSize(value.syncIntervalSecs) +
|
|
1863
|
-
|
|
1863
|
+
FfiConverterOptionalTypeMaxFee.allocationSize(
|
|
1864
|
+
value.maxDepositClaimFee
|
|
1865
|
+
) +
|
|
1864
1866
|
FfiConverterOptionalString.allocationSize(value.lnurlDomain) +
|
|
1865
1867
|
FfiConverterBool.allocationSize(value.preferSparkOverLightning) +
|
|
1866
1868
|
FfiConverterOptionalArrayTypeExternalInputParser.allocationSize(
|
|
@@ -9404,6 +9406,189 @@ const FfiConverterTypeKeySetType = (() => {
|
|
|
9404
9406
|
return new FFIConverter();
|
|
9405
9407
|
})();
|
|
9406
9408
|
|
|
9409
|
+
// Enum: MaxFee
|
|
9410
|
+
export enum MaxFee_Tags {
|
|
9411
|
+
Fixed = 'Fixed',
|
|
9412
|
+
Rate = 'Rate',
|
|
9413
|
+
NetworkRecommended = 'NetworkRecommended',
|
|
9414
|
+
}
|
|
9415
|
+
export const MaxFee = (() => {
|
|
9416
|
+
type Fixed__interface = {
|
|
9417
|
+
tag: MaxFee_Tags.Fixed;
|
|
9418
|
+
inner: Readonly<{ amount: /*u64*/ bigint }>;
|
|
9419
|
+
};
|
|
9420
|
+
|
|
9421
|
+
class Fixed_ extends UniffiEnum implements Fixed__interface {
|
|
9422
|
+
/**
|
|
9423
|
+
* @private
|
|
9424
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9425
|
+
*/
|
|
9426
|
+
readonly [uniffiTypeNameSymbol] = 'MaxFee';
|
|
9427
|
+
readonly tag = MaxFee_Tags.Fixed;
|
|
9428
|
+
readonly inner: Readonly<{ amount: /*u64*/ bigint }>;
|
|
9429
|
+
constructor(inner: { amount: /*u64*/ bigint }) {
|
|
9430
|
+
super('MaxFee', 'Fixed');
|
|
9431
|
+
this.inner = Object.freeze(inner);
|
|
9432
|
+
}
|
|
9433
|
+
|
|
9434
|
+
static new(inner: { amount: /*u64*/ bigint }): Fixed_ {
|
|
9435
|
+
return new Fixed_(inner);
|
|
9436
|
+
}
|
|
9437
|
+
|
|
9438
|
+
static instanceOf(obj: any): obj is Fixed_ {
|
|
9439
|
+
return obj.tag === MaxFee_Tags.Fixed;
|
|
9440
|
+
}
|
|
9441
|
+
}
|
|
9442
|
+
|
|
9443
|
+
type Rate__interface = {
|
|
9444
|
+
tag: MaxFee_Tags.Rate;
|
|
9445
|
+
inner: Readonly<{ satPerVbyte: /*u64*/ bigint }>;
|
|
9446
|
+
};
|
|
9447
|
+
|
|
9448
|
+
class Rate_ extends UniffiEnum implements Rate__interface {
|
|
9449
|
+
/**
|
|
9450
|
+
* @private
|
|
9451
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9452
|
+
*/
|
|
9453
|
+
readonly [uniffiTypeNameSymbol] = 'MaxFee';
|
|
9454
|
+
readonly tag = MaxFee_Tags.Rate;
|
|
9455
|
+
readonly inner: Readonly<{ satPerVbyte: /*u64*/ bigint }>;
|
|
9456
|
+
constructor(inner: { satPerVbyte: /*u64*/ bigint }) {
|
|
9457
|
+
super('MaxFee', 'Rate');
|
|
9458
|
+
this.inner = Object.freeze(inner);
|
|
9459
|
+
}
|
|
9460
|
+
|
|
9461
|
+
static new(inner: { satPerVbyte: /*u64*/ bigint }): Rate_ {
|
|
9462
|
+
return new Rate_(inner);
|
|
9463
|
+
}
|
|
9464
|
+
|
|
9465
|
+
static instanceOf(obj: any): obj is Rate_ {
|
|
9466
|
+
return obj.tag === MaxFee_Tags.Rate;
|
|
9467
|
+
}
|
|
9468
|
+
}
|
|
9469
|
+
|
|
9470
|
+
type NetworkRecommended__interface = {
|
|
9471
|
+
tag: MaxFee_Tags.NetworkRecommended;
|
|
9472
|
+
inner: Readonly<{ leewaySatPerVbyte: /*u64*/ bigint }>;
|
|
9473
|
+
};
|
|
9474
|
+
|
|
9475
|
+
class NetworkRecommended_
|
|
9476
|
+
extends UniffiEnum
|
|
9477
|
+
implements NetworkRecommended__interface
|
|
9478
|
+
{
|
|
9479
|
+
/**
|
|
9480
|
+
* @private
|
|
9481
|
+
* This field is private and should not be used, use `tag` instead.
|
|
9482
|
+
*/
|
|
9483
|
+
readonly [uniffiTypeNameSymbol] = 'MaxFee';
|
|
9484
|
+
readonly tag = MaxFee_Tags.NetworkRecommended;
|
|
9485
|
+
readonly inner: Readonly<{ leewaySatPerVbyte: /*u64*/ bigint }>;
|
|
9486
|
+
constructor(inner: { leewaySatPerVbyte: /*u64*/ bigint }) {
|
|
9487
|
+
super('MaxFee', 'NetworkRecommended');
|
|
9488
|
+
this.inner = Object.freeze(inner);
|
|
9489
|
+
}
|
|
9490
|
+
|
|
9491
|
+
static new(inner: {
|
|
9492
|
+
leewaySatPerVbyte: /*u64*/ bigint;
|
|
9493
|
+
}): NetworkRecommended_ {
|
|
9494
|
+
return new NetworkRecommended_(inner);
|
|
9495
|
+
}
|
|
9496
|
+
|
|
9497
|
+
static instanceOf(obj: any): obj is NetworkRecommended_ {
|
|
9498
|
+
return obj.tag === MaxFee_Tags.NetworkRecommended;
|
|
9499
|
+
}
|
|
9500
|
+
}
|
|
9501
|
+
|
|
9502
|
+
function instanceOf(obj: any): obj is MaxFee {
|
|
9503
|
+
return obj[uniffiTypeNameSymbol] === 'MaxFee';
|
|
9504
|
+
}
|
|
9505
|
+
|
|
9506
|
+
return Object.freeze({
|
|
9507
|
+
instanceOf,
|
|
9508
|
+
Fixed: Fixed_,
|
|
9509
|
+
Rate: Rate_,
|
|
9510
|
+
NetworkRecommended: NetworkRecommended_,
|
|
9511
|
+
});
|
|
9512
|
+
})();
|
|
9513
|
+
|
|
9514
|
+
export type MaxFee = InstanceType<
|
|
9515
|
+
(typeof MaxFee)[keyof Omit<typeof MaxFee, 'instanceOf'>]
|
|
9516
|
+
>;
|
|
9517
|
+
|
|
9518
|
+
// FfiConverter for enum MaxFee
|
|
9519
|
+
const FfiConverterTypeMaxFee = (() => {
|
|
9520
|
+
const ordinalConverter = FfiConverterInt32;
|
|
9521
|
+
type TypeName = MaxFee;
|
|
9522
|
+
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
9523
|
+
read(from: RustBuffer): TypeName {
|
|
9524
|
+
switch (ordinalConverter.read(from)) {
|
|
9525
|
+
case 1:
|
|
9526
|
+
return new MaxFee.Fixed({ amount: FfiConverterUInt64.read(from) });
|
|
9527
|
+
case 2:
|
|
9528
|
+
return new MaxFee.Rate({
|
|
9529
|
+
satPerVbyte: FfiConverterUInt64.read(from),
|
|
9530
|
+
});
|
|
9531
|
+
case 3:
|
|
9532
|
+
return new MaxFee.NetworkRecommended({
|
|
9533
|
+
leewaySatPerVbyte: FfiConverterUInt64.read(from),
|
|
9534
|
+
});
|
|
9535
|
+
default:
|
|
9536
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
9537
|
+
}
|
|
9538
|
+
}
|
|
9539
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
9540
|
+
switch (value.tag) {
|
|
9541
|
+
case MaxFee_Tags.Fixed: {
|
|
9542
|
+
ordinalConverter.write(1, into);
|
|
9543
|
+
const inner = value.inner;
|
|
9544
|
+
FfiConverterUInt64.write(inner.amount, into);
|
|
9545
|
+
return;
|
|
9546
|
+
}
|
|
9547
|
+
case MaxFee_Tags.Rate: {
|
|
9548
|
+
ordinalConverter.write(2, into);
|
|
9549
|
+
const inner = value.inner;
|
|
9550
|
+
FfiConverterUInt64.write(inner.satPerVbyte, into);
|
|
9551
|
+
return;
|
|
9552
|
+
}
|
|
9553
|
+
case MaxFee_Tags.NetworkRecommended: {
|
|
9554
|
+
ordinalConverter.write(3, into);
|
|
9555
|
+
const inner = value.inner;
|
|
9556
|
+
FfiConverterUInt64.write(inner.leewaySatPerVbyte, into);
|
|
9557
|
+
return;
|
|
9558
|
+
}
|
|
9559
|
+
default:
|
|
9560
|
+
// Throwing from here means that MaxFee_Tags hasn't matched an ordinal.
|
|
9561
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
9562
|
+
}
|
|
9563
|
+
}
|
|
9564
|
+
allocationSize(value: TypeName): number {
|
|
9565
|
+
switch (value.tag) {
|
|
9566
|
+
case MaxFee_Tags.Fixed: {
|
|
9567
|
+
const inner = value.inner;
|
|
9568
|
+
let size = ordinalConverter.allocationSize(1);
|
|
9569
|
+
size += FfiConverterUInt64.allocationSize(inner.amount);
|
|
9570
|
+
return size;
|
|
9571
|
+
}
|
|
9572
|
+
case MaxFee_Tags.Rate: {
|
|
9573
|
+
const inner = value.inner;
|
|
9574
|
+
let size = ordinalConverter.allocationSize(2);
|
|
9575
|
+
size += FfiConverterUInt64.allocationSize(inner.satPerVbyte);
|
|
9576
|
+
return size;
|
|
9577
|
+
}
|
|
9578
|
+
case MaxFee_Tags.NetworkRecommended: {
|
|
9579
|
+
const inner = value.inner;
|
|
9580
|
+
let size = ordinalConverter.allocationSize(3);
|
|
9581
|
+
size += FfiConverterUInt64.allocationSize(inner.leewaySatPerVbyte);
|
|
9582
|
+
return size;
|
|
9583
|
+
}
|
|
9584
|
+
default:
|
|
9585
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
9586
|
+
}
|
|
9587
|
+
}
|
|
9588
|
+
}
|
|
9589
|
+
return new FFIConverter();
|
|
9590
|
+
})();
|
|
9591
|
+
|
|
9407
9592
|
export enum Network {
|
|
9408
9593
|
Mainnet,
|
|
9409
9594
|
Regtest,
|
|
@@ -11423,7 +11608,6 @@ const FfiConverterTypeSdkError = (() => {
|
|
|
11423
11608
|
// Enum: SdkEvent
|
|
11424
11609
|
export enum SdkEvent_Tags {
|
|
11425
11610
|
Synced = 'Synced',
|
|
11426
|
-
DataSynced = 'DataSynced',
|
|
11427
11611
|
UnclaimedDeposits = 'UnclaimedDeposits',
|
|
11428
11612
|
ClaimedDeposits = 'ClaimedDeposits',
|
|
11429
11613
|
PaymentSucceeded = 'PaymentSucceeded',
|
|
@@ -11461,44 +11645,6 @@ export const SdkEvent = (() => {
|
|
|
11461
11645
|
}
|
|
11462
11646
|
}
|
|
11463
11647
|
|
|
11464
|
-
type DataSynced__interface = {
|
|
11465
|
-
tag: SdkEvent_Tags.DataSynced;
|
|
11466
|
-
inner: Readonly<{ didPullNewRecords: boolean }>;
|
|
11467
|
-
};
|
|
11468
|
-
|
|
11469
|
-
/**
|
|
11470
|
-
* Emitted when data was pushed and/or pulled to/from real-time sync storage.
|
|
11471
|
-
*/
|
|
11472
|
-
class DataSynced_ extends UniffiEnum implements DataSynced__interface {
|
|
11473
|
-
/**
|
|
11474
|
-
* @private
|
|
11475
|
-
* This field is private and should not be used, use `tag` instead.
|
|
11476
|
-
*/
|
|
11477
|
-
readonly [uniffiTypeNameSymbol] = 'SdkEvent';
|
|
11478
|
-
readonly tag = SdkEvent_Tags.DataSynced;
|
|
11479
|
-
readonly inner: Readonly<{ didPullNewRecords: boolean }>;
|
|
11480
|
-
constructor(inner: {
|
|
11481
|
-
/**
|
|
11482
|
-
* Value indicating whether new data was pulled through real-time sync.
|
|
11483
|
-
*/ didPullNewRecords: boolean;
|
|
11484
|
-
}) {
|
|
11485
|
-
super('SdkEvent', 'DataSynced');
|
|
11486
|
-
this.inner = Object.freeze(inner);
|
|
11487
|
-
}
|
|
11488
|
-
|
|
11489
|
-
static new(inner: {
|
|
11490
|
-
/**
|
|
11491
|
-
* Value indicating whether new data was pulled through real-time sync.
|
|
11492
|
-
*/ didPullNewRecords: boolean;
|
|
11493
|
-
}): DataSynced_ {
|
|
11494
|
-
return new DataSynced_(inner);
|
|
11495
|
-
}
|
|
11496
|
-
|
|
11497
|
-
static instanceOf(obj: any): obj is DataSynced_ {
|
|
11498
|
-
return obj.tag === SdkEvent_Tags.DataSynced;
|
|
11499
|
-
}
|
|
11500
|
-
}
|
|
11501
|
-
|
|
11502
11648
|
type UnclaimedDeposits__interface = {
|
|
11503
11649
|
tag: SdkEvent_Tags.UnclaimedDeposits;
|
|
11504
11650
|
inner: Readonly<{ unclaimedDeposits: Array<DepositInfo> }>;
|
|
@@ -11660,7 +11806,6 @@ export const SdkEvent = (() => {
|
|
|
11660
11806
|
return Object.freeze({
|
|
11661
11807
|
instanceOf,
|
|
11662
11808
|
Synced: Synced_,
|
|
11663
|
-
DataSynced: DataSynced_,
|
|
11664
11809
|
UnclaimedDeposits: UnclaimedDeposits_,
|
|
11665
11810
|
ClaimedDeposits: ClaimedDeposits_,
|
|
11666
11811
|
PaymentSucceeded: PaymentSucceeded_,
|
|
@@ -11687,26 +11832,22 @@ const FfiConverterTypeSdkEvent = (() => {
|
|
|
11687
11832
|
case 1:
|
|
11688
11833
|
return new SdkEvent.Synced();
|
|
11689
11834
|
case 2:
|
|
11690
|
-
return new SdkEvent.DataSynced({
|
|
11691
|
-
didPullNewRecords: FfiConverterBool.read(from),
|
|
11692
|
-
});
|
|
11693
|
-
case 3:
|
|
11694
11835
|
return new SdkEvent.UnclaimedDeposits({
|
|
11695
11836
|
unclaimedDeposits: FfiConverterArrayTypeDepositInfo.read(from),
|
|
11696
11837
|
});
|
|
11697
|
-
case
|
|
11838
|
+
case 3:
|
|
11698
11839
|
return new SdkEvent.ClaimedDeposits({
|
|
11699
11840
|
claimedDeposits: FfiConverterArrayTypeDepositInfo.read(from),
|
|
11700
11841
|
});
|
|
11701
|
-
case
|
|
11842
|
+
case 4:
|
|
11702
11843
|
return new SdkEvent.PaymentSucceeded({
|
|
11703
11844
|
payment: FfiConverterTypePayment.read(from),
|
|
11704
11845
|
});
|
|
11705
|
-
case
|
|
11846
|
+
case 5:
|
|
11706
11847
|
return new SdkEvent.PaymentPending({
|
|
11707
11848
|
payment: FfiConverterTypePayment.read(from),
|
|
11708
11849
|
});
|
|
11709
|
-
case
|
|
11850
|
+
case 6:
|
|
11710
11851
|
return new SdkEvent.PaymentFailed({
|
|
11711
11852
|
payment: FfiConverterTypePayment.read(from),
|
|
11712
11853
|
});
|
|
@@ -11720,38 +11861,32 @@ const FfiConverterTypeSdkEvent = (() => {
|
|
|
11720
11861
|
ordinalConverter.write(1, into);
|
|
11721
11862
|
return;
|
|
11722
11863
|
}
|
|
11723
|
-
case SdkEvent_Tags.DataSynced: {
|
|
11724
|
-
ordinalConverter.write(2, into);
|
|
11725
|
-
const inner = value.inner;
|
|
11726
|
-
FfiConverterBool.write(inner.didPullNewRecords, into);
|
|
11727
|
-
return;
|
|
11728
|
-
}
|
|
11729
11864
|
case SdkEvent_Tags.UnclaimedDeposits: {
|
|
11730
|
-
ordinalConverter.write(
|
|
11865
|
+
ordinalConverter.write(2, into);
|
|
11731
11866
|
const inner = value.inner;
|
|
11732
11867
|
FfiConverterArrayTypeDepositInfo.write(inner.unclaimedDeposits, into);
|
|
11733
11868
|
return;
|
|
11734
11869
|
}
|
|
11735
11870
|
case SdkEvent_Tags.ClaimedDeposits: {
|
|
11736
|
-
ordinalConverter.write(
|
|
11871
|
+
ordinalConverter.write(3, into);
|
|
11737
11872
|
const inner = value.inner;
|
|
11738
11873
|
FfiConverterArrayTypeDepositInfo.write(inner.claimedDeposits, into);
|
|
11739
11874
|
return;
|
|
11740
11875
|
}
|
|
11741
11876
|
case SdkEvent_Tags.PaymentSucceeded: {
|
|
11742
|
-
ordinalConverter.write(
|
|
11877
|
+
ordinalConverter.write(4, into);
|
|
11743
11878
|
const inner = value.inner;
|
|
11744
11879
|
FfiConverterTypePayment.write(inner.payment, into);
|
|
11745
11880
|
return;
|
|
11746
11881
|
}
|
|
11747
11882
|
case SdkEvent_Tags.PaymentPending: {
|
|
11748
|
-
ordinalConverter.write(
|
|
11883
|
+
ordinalConverter.write(5, into);
|
|
11749
11884
|
const inner = value.inner;
|
|
11750
11885
|
FfiConverterTypePayment.write(inner.payment, into);
|
|
11751
11886
|
return;
|
|
11752
11887
|
}
|
|
11753
11888
|
case SdkEvent_Tags.PaymentFailed: {
|
|
11754
|
-
ordinalConverter.write(
|
|
11889
|
+
ordinalConverter.write(6, into);
|
|
11755
11890
|
const inner = value.inner;
|
|
11756
11891
|
FfiConverterTypePayment.write(inner.payment, into);
|
|
11757
11892
|
return;
|
|
@@ -11766,15 +11901,9 @@ const FfiConverterTypeSdkEvent = (() => {
|
|
|
11766
11901
|
case SdkEvent_Tags.Synced: {
|
|
11767
11902
|
return ordinalConverter.allocationSize(1);
|
|
11768
11903
|
}
|
|
11769
|
-
case SdkEvent_Tags.DataSynced: {
|
|
11770
|
-
const inner = value.inner;
|
|
11771
|
-
let size = ordinalConverter.allocationSize(2);
|
|
11772
|
-
size += FfiConverterBool.allocationSize(inner.didPullNewRecords);
|
|
11773
|
-
return size;
|
|
11774
|
-
}
|
|
11775
11904
|
case SdkEvent_Tags.UnclaimedDeposits: {
|
|
11776
11905
|
const inner = value.inner;
|
|
11777
|
-
let size = ordinalConverter.allocationSize(
|
|
11906
|
+
let size = ordinalConverter.allocationSize(2);
|
|
11778
11907
|
size += FfiConverterArrayTypeDepositInfo.allocationSize(
|
|
11779
11908
|
inner.unclaimedDeposits
|
|
11780
11909
|
);
|
|
@@ -11782,7 +11911,7 @@ const FfiConverterTypeSdkEvent = (() => {
|
|
|
11782
11911
|
}
|
|
11783
11912
|
case SdkEvent_Tags.ClaimedDeposits: {
|
|
11784
11913
|
const inner = value.inner;
|
|
11785
|
-
let size = ordinalConverter.allocationSize(
|
|
11914
|
+
let size = ordinalConverter.allocationSize(3);
|
|
11786
11915
|
size += FfiConverterArrayTypeDepositInfo.allocationSize(
|
|
11787
11916
|
inner.claimedDeposits
|
|
11788
11917
|
);
|
|
@@ -11790,19 +11919,19 @@ const FfiConverterTypeSdkEvent = (() => {
|
|
|
11790
11919
|
}
|
|
11791
11920
|
case SdkEvent_Tags.PaymentSucceeded: {
|
|
11792
11921
|
const inner = value.inner;
|
|
11793
|
-
let size = ordinalConverter.allocationSize(
|
|
11922
|
+
let size = ordinalConverter.allocationSize(4);
|
|
11794
11923
|
size += FfiConverterTypePayment.allocationSize(inner.payment);
|
|
11795
11924
|
return size;
|
|
11796
11925
|
}
|
|
11797
11926
|
case SdkEvent_Tags.PaymentPending: {
|
|
11798
11927
|
const inner = value.inner;
|
|
11799
|
-
let size = ordinalConverter.allocationSize(
|
|
11928
|
+
let size = ordinalConverter.allocationSize(5);
|
|
11800
11929
|
size += FfiConverterTypePayment.allocationSize(inner.payment);
|
|
11801
11930
|
return size;
|
|
11802
11931
|
}
|
|
11803
11932
|
case SdkEvent_Tags.PaymentFailed: {
|
|
11804
11933
|
const inner = value.inner;
|
|
11805
|
-
let size = ordinalConverter.allocationSize(
|
|
11934
|
+
let size = ordinalConverter.allocationSize(6);
|
|
11806
11935
|
size += FfiConverterTypePayment.allocationSize(inner.payment);
|
|
11807
11936
|
return size;
|
|
11808
11937
|
}
|
|
@@ -21192,6 +21321,11 @@ const FfiConverterOptionalTypeFee = new FfiConverterOptional(
|
|
|
21192
21321
|
FfiConverterTypeFee
|
|
21193
21322
|
);
|
|
21194
21323
|
|
|
21324
|
+
// FfiConverter for MaxFee | undefined
|
|
21325
|
+
const FfiConverterOptionalTypeMaxFee = new FfiConverterOptional(
|
|
21326
|
+
FfiConverterTypeMaxFee
|
|
21327
|
+
);
|
|
21328
|
+
|
|
21195
21329
|
// FfiConverter for PaymentDetails | undefined
|
|
21196
21330
|
const FfiConverterOptionalTypePaymentDetails = new FfiConverterOptional(
|
|
21197
21331
|
FfiConverterTypePaymentDetails
|
|
@@ -22068,6 +22202,7 @@ export default Object.freeze({
|
|
|
22068
22202
|
FfiConverterTypeLocaleOverrides,
|
|
22069
22203
|
FfiConverterTypeLocalizedName,
|
|
22070
22204
|
FfiConverterTypeLogEntry,
|
|
22205
|
+
FfiConverterTypeMaxFee,
|
|
22071
22206
|
FfiConverterTypeMessageSuccessActionData,
|
|
22072
22207
|
FfiConverterTypeMintIssuerTokenRequest,
|
|
22073
22208
|
FfiConverterTypeNetwork,
|