@breeztech/breez-sdk-spark-react-native 0.3.1 → 0.3.3
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 +710 -48
- package/cpp/generated/breez_sdk_spark.hpp +51 -7
- package/lib/commonjs/generated/breez_sdk_common.js +115 -274
- package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +1165 -67
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_common.js +114 -273
- package/lib/module/generated/breez_sdk_common.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +1163 -65
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +123 -183
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +21 -2
- 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 +1082 -77
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +123 -183
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +21 -2
- 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 +1082 -77
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_common.ts +194 -373
- package/src/generated/breez_sdk_spark-ffi.ts +55 -2
- package/src/generated/breez_sdk_spark.ts +2090 -218
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.UrlSuccessActionData = exports.
|
|
6
|
+
exports.default = exports.UrlSuccessActionData = exports.Symbol = exports.SuccessAction_Tags = exports.SuccessActionProcessed_Tags = exports.SuccessActionProcessed = exports.SuccessAction = exports.SparkInvoiceDetails = exports.SparkAddressDetails = exports.SilentPaymentAddressDetails = exports.ServiceConnectivityError_Tags = exports.ServiceConnectivityError = exports.RestResponse = exports.RestClientImpl = exports.Rate = exports.PaymentRequestSource = exports.MessageSuccessActionData = exports.LocalizedName = exports.LocaleOverrides = exports.LnurlWithdrawRequestDetails = exports.LnurlPayRequestDetails = exports.LnurlErrorDetails = exports.LnurlCallbackStatus_Tags = exports.LnurlCallbackStatus = exports.LnurlAuthRequestDetails = exports.LightningAddressDetails = exports.InputType_Tags = exports.InputType = exports.FiatServiceImpl = exports.FiatCurrency = exports.ExternalInputParser = exports.CurrencyInfo = exports.Bolt12OfferDetails = exports.Bolt12OfferBlindedPath = exports.Bolt12Offer = exports.Bolt12InvoiceRequestDetails = exports.Bolt12InvoiceDetails = exports.Bolt12Invoice = exports.Bolt11RouteHintHop = exports.Bolt11RouteHint = exports.Bolt11InvoiceDetails = exports.Bolt11Invoice = exports.BitcoinNetwork = exports.BitcoinAddressDetails = exports.Bip21Extra = exports.Bip21Details = exports.Amount_Tags = exports.Amount = exports.AesSuccessActionDataResult_Tags = exports.AesSuccessActionDataResult = exports.AesSuccessActionDataDecrypted = exports.AesSuccessActionData = void 0;
|
|
7
7
|
var _breez_sdk_commonFfi = _interopRequireDefault(require("./breez_sdk_common-ffi.js"));
|
|
8
8
|
var _uniffiBindgenReactNative = require("uniffi-bindgen-react-native");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -780,6 +780,56 @@ const FfiConverterTypeCurrencyInfo = (() => {
|
|
|
780
780
|
return new FFIConverter();
|
|
781
781
|
})();
|
|
782
782
|
|
|
783
|
+
/**
|
|
784
|
+
* Configuration for an external input parser
|
|
785
|
+
*/
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Generated factory for {@link ExternalInputParser} record objects.
|
|
789
|
+
*/
|
|
790
|
+
const ExternalInputParser = exports.ExternalInputParser = (() => {
|
|
791
|
+
const defaults = () => ({});
|
|
792
|
+
const create = (() => {
|
|
793
|
+
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
794
|
+
})();
|
|
795
|
+
return Object.freeze({
|
|
796
|
+
/**
|
|
797
|
+
* Create a frozen instance of {@link ExternalInputParser}, with defaults specified
|
|
798
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
799
|
+
*/
|
|
800
|
+
create,
|
|
801
|
+
/**
|
|
802
|
+
* Create a frozen instance of {@link ExternalInputParser}, with defaults specified
|
|
803
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
804
|
+
*/
|
|
805
|
+
new: create,
|
|
806
|
+
/**
|
|
807
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
808
|
+
*/
|
|
809
|
+
defaults: () => Object.freeze(defaults())
|
|
810
|
+
});
|
|
811
|
+
})();
|
|
812
|
+
const FfiConverterTypeExternalInputParser = (() => {
|
|
813
|
+
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
814
|
+
read(from) {
|
|
815
|
+
return {
|
|
816
|
+
providerId: FfiConverterString.read(from),
|
|
817
|
+
inputRegex: FfiConverterString.read(from),
|
|
818
|
+
parserUrl: FfiConverterString.read(from)
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
write(value, into) {
|
|
822
|
+
FfiConverterString.write(value.providerId, into);
|
|
823
|
+
FfiConverterString.write(value.inputRegex, into);
|
|
824
|
+
FfiConverterString.write(value.parserUrl, into);
|
|
825
|
+
}
|
|
826
|
+
allocationSize(value) {
|
|
827
|
+
return FfiConverterString.allocationSize(value.providerId) + FfiConverterString.allocationSize(value.inputRegex) + FfiConverterString.allocationSize(value.parserUrl);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
return new FFIConverter();
|
|
831
|
+
})();
|
|
832
|
+
|
|
783
833
|
/**
|
|
784
834
|
* Wrapper around the [`CurrencyInfo`] of a fiat currency
|
|
785
835
|
*/
|
|
@@ -1353,47 +1403,6 @@ const FfiConverterTypeRestResponse = (() => {
|
|
|
1353
1403
|
}
|
|
1354
1404
|
return new FFIConverter();
|
|
1355
1405
|
})();
|
|
1356
|
-
/**
|
|
1357
|
-
* Generated factory for {@link SatsPaymentDetails} record objects.
|
|
1358
|
-
*/
|
|
1359
|
-
const SatsPaymentDetails = exports.SatsPaymentDetails = (() => {
|
|
1360
|
-
const defaults = () => ({});
|
|
1361
|
-
const create = (() => {
|
|
1362
|
-
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
1363
|
-
})();
|
|
1364
|
-
return Object.freeze({
|
|
1365
|
-
/**
|
|
1366
|
-
* Create a frozen instance of {@link SatsPaymentDetails}, with defaults specified
|
|
1367
|
-
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1368
|
-
*/
|
|
1369
|
-
create,
|
|
1370
|
-
/**
|
|
1371
|
-
* Create a frozen instance of {@link SatsPaymentDetails}, with defaults specified
|
|
1372
|
-
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1373
|
-
*/
|
|
1374
|
-
new: create,
|
|
1375
|
-
/**
|
|
1376
|
-
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
1377
|
-
*/
|
|
1378
|
-
defaults: () => Object.freeze(defaults())
|
|
1379
|
-
});
|
|
1380
|
-
})();
|
|
1381
|
-
const FfiConverterTypeSatsPaymentDetails = (() => {
|
|
1382
|
-
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
1383
|
-
read(from) {
|
|
1384
|
-
return {
|
|
1385
|
-
amount: FfiConverterOptionalUInt64.read(from)
|
|
1386
|
-
};
|
|
1387
|
-
}
|
|
1388
|
-
write(value, into) {
|
|
1389
|
-
FfiConverterOptionalUInt64.write(value.amount, into);
|
|
1390
|
-
}
|
|
1391
|
-
allocationSize(value) {
|
|
1392
|
-
return FfiConverterOptionalUInt64.allocationSize(value.amount);
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
return new FFIConverter();
|
|
1396
|
-
})();
|
|
1397
1406
|
/**
|
|
1398
1407
|
* Generated factory for {@link SilentPaymentAddressDetails} record objects.
|
|
1399
1408
|
*/
|
|
@@ -1439,53 +1448,6 @@ const FfiConverterTypeSilentPaymentAddressDetails = (() => {
|
|
|
1439
1448
|
}
|
|
1440
1449
|
return new FFIConverter();
|
|
1441
1450
|
})();
|
|
1442
|
-
/**
|
|
1443
|
-
* Generated factory for {@link SparkAddress} record objects.
|
|
1444
|
-
*/
|
|
1445
|
-
const SparkAddress = exports.SparkAddress = (() => {
|
|
1446
|
-
const defaults = () => ({});
|
|
1447
|
-
const create = (() => {
|
|
1448
|
-
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
1449
|
-
})();
|
|
1450
|
-
return Object.freeze({
|
|
1451
|
-
/**
|
|
1452
|
-
* Create a frozen instance of {@link SparkAddress}, with defaults specified
|
|
1453
|
-
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1454
|
-
*/
|
|
1455
|
-
create,
|
|
1456
|
-
/**
|
|
1457
|
-
* Create a frozen instance of {@link SparkAddress}, with defaults specified
|
|
1458
|
-
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1459
|
-
*/
|
|
1460
|
-
new: create,
|
|
1461
|
-
/**
|
|
1462
|
-
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
1463
|
-
*/
|
|
1464
|
-
defaults: () => Object.freeze(defaults())
|
|
1465
|
-
});
|
|
1466
|
-
})();
|
|
1467
|
-
const FfiConverterTypeSparkAddress = (() => {
|
|
1468
|
-
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
1469
|
-
read(from) {
|
|
1470
|
-
return {
|
|
1471
|
-
identityPublicKey: FfiConverterString.read(from),
|
|
1472
|
-
network: FfiConverterTypeBitcoinNetwork.read(from),
|
|
1473
|
-
sparkInvoiceFields: FfiConverterOptionalTypeSparkInvoiceFields.read(from),
|
|
1474
|
-
signature: FfiConverterOptionalString.read(from)
|
|
1475
|
-
};
|
|
1476
|
-
}
|
|
1477
|
-
write(value, into) {
|
|
1478
|
-
FfiConverterString.write(value.identityPublicKey, into);
|
|
1479
|
-
FfiConverterTypeBitcoinNetwork.write(value.network, into);
|
|
1480
|
-
FfiConverterOptionalTypeSparkInvoiceFields.write(value.sparkInvoiceFields, into);
|
|
1481
|
-
FfiConverterOptionalString.write(value.signature, into);
|
|
1482
|
-
}
|
|
1483
|
-
allocationSize(value) {
|
|
1484
|
-
return FfiConverterString.allocationSize(value.identityPublicKey) + FfiConverterTypeBitcoinNetwork.allocationSize(value.network) + FfiConverterOptionalTypeSparkInvoiceFields.allocationSize(value.sparkInvoiceFields) + FfiConverterOptionalString.allocationSize(value.signature);
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
return new FFIConverter();
|
|
1488
|
-
})();
|
|
1489
1451
|
/**
|
|
1490
1452
|
* Generated factory for {@link SparkAddressDetails} record objects.
|
|
1491
1453
|
*/
|
|
@@ -1516,37 +1478,39 @@ const FfiConverterTypeSparkAddressDetails = (() => {
|
|
|
1516
1478
|
read(from) {
|
|
1517
1479
|
return {
|
|
1518
1480
|
address: FfiConverterString.read(from),
|
|
1519
|
-
|
|
1481
|
+
identityPublicKey: FfiConverterString.read(from),
|
|
1482
|
+
network: FfiConverterTypeBitcoinNetwork.read(from),
|
|
1520
1483
|
source: FfiConverterTypePaymentRequestSource.read(from)
|
|
1521
1484
|
};
|
|
1522
1485
|
}
|
|
1523
1486
|
write(value, into) {
|
|
1524
1487
|
FfiConverterString.write(value.address, into);
|
|
1525
|
-
|
|
1488
|
+
FfiConverterString.write(value.identityPublicKey, into);
|
|
1489
|
+
FfiConverterTypeBitcoinNetwork.write(value.network, into);
|
|
1526
1490
|
FfiConverterTypePaymentRequestSource.write(value.source, into);
|
|
1527
1491
|
}
|
|
1528
1492
|
allocationSize(value) {
|
|
1529
|
-
return FfiConverterString.allocationSize(value.address) +
|
|
1493
|
+
return FfiConverterString.allocationSize(value.address) + FfiConverterString.allocationSize(value.identityPublicKey) + FfiConverterTypeBitcoinNetwork.allocationSize(value.network) + FfiConverterTypePaymentRequestSource.allocationSize(value.source);
|
|
1530
1494
|
}
|
|
1531
1495
|
}
|
|
1532
1496
|
return new FFIConverter();
|
|
1533
1497
|
})();
|
|
1534
1498
|
/**
|
|
1535
|
-
* Generated factory for {@link
|
|
1499
|
+
* Generated factory for {@link SparkInvoiceDetails} record objects.
|
|
1536
1500
|
*/
|
|
1537
|
-
const
|
|
1501
|
+
const SparkInvoiceDetails = exports.SparkInvoiceDetails = (() => {
|
|
1538
1502
|
const defaults = () => ({});
|
|
1539
1503
|
const create = (() => {
|
|
1540
1504
|
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
1541
1505
|
})();
|
|
1542
1506
|
return Object.freeze({
|
|
1543
1507
|
/**
|
|
1544
|
-
* Create a frozen instance of {@link
|
|
1508
|
+
* Create a frozen instance of {@link SparkInvoiceDetails}, with defaults specified
|
|
1545
1509
|
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1546
1510
|
*/
|
|
1547
1511
|
create,
|
|
1548
1512
|
/**
|
|
1549
|
-
* Create a frozen instance of {@link
|
|
1513
|
+
* Create a frozen instance of {@link SparkInvoiceDetails}, with defaults specified
|
|
1550
1514
|
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1551
1515
|
*/
|
|
1552
1516
|
new: create,
|
|
@@ -1556,28 +1520,32 @@ const SparkInvoiceFields = exports.SparkInvoiceFields = (() => {
|
|
|
1556
1520
|
defaults: () => Object.freeze(defaults())
|
|
1557
1521
|
});
|
|
1558
1522
|
})();
|
|
1559
|
-
const
|
|
1523
|
+
const FfiConverterTypeSparkInvoiceDetails = (() => {
|
|
1560
1524
|
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
1561
1525
|
read(from) {
|
|
1562
1526
|
return {
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1527
|
+
invoice: FfiConverterString.read(from),
|
|
1528
|
+
identityPublicKey: FfiConverterString.read(from),
|
|
1529
|
+
network: FfiConverterTypeBitcoinNetwork.read(from),
|
|
1530
|
+
amount: FfiConverterOptionalTypecommon_u128.read(from),
|
|
1531
|
+
tokenIdentifier: FfiConverterOptionalString.read(from),
|
|
1567
1532
|
expiryTime: FfiConverterOptionalUInt64.read(from),
|
|
1568
|
-
|
|
1533
|
+
description: FfiConverterOptionalString.read(from),
|
|
1534
|
+
senderPublicKey: FfiConverterOptionalString.read(from)
|
|
1569
1535
|
};
|
|
1570
1536
|
}
|
|
1571
1537
|
write(value, into) {
|
|
1572
|
-
FfiConverterString.write(value.
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1538
|
+
FfiConverterString.write(value.invoice, into);
|
|
1539
|
+
FfiConverterString.write(value.identityPublicKey, into);
|
|
1540
|
+
FfiConverterTypeBitcoinNetwork.write(value.network, into);
|
|
1541
|
+
FfiConverterOptionalTypecommon_u128.write(value.amount, into);
|
|
1542
|
+
FfiConverterOptionalString.write(value.tokenIdentifier, into);
|
|
1576
1543
|
FfiConverterOptionalUInt64.write(value.expiryTime, into);
|
|
1577
|
-
|
|
1544
|
+
FfiConverterOptionalString.write(value.description, into);
|
|
1545
|
+
FfiConverterOptionalString.write(value.senderPublicKey, into);
|
|
1578
1546
|
}
|
|
1579
1547
|
allocationSize(value) {
|
|
1580
|
-
return FfiConverterString.allocationSize(value.
|
|
1548
|
+
return FfiConverterString.allocationSize(value.invoice) + FfiConverterString.allocationSize(value.identityPublicKey) + FfiConverterTypeBitcoinNetwork.allocationSize(value.network) + FfiConverterOptionalTypecommon_u128.allocationSize(value.amount) + FfiConverterOptionalString.allocationSize(value.tokenIdentifier) + FfiConverterOptionalUInt64.allocationSize(value.expiryTime) + FfiConverterOptionalString.allocationSize(value.description) + FfiConverterOptionalString.allocationSize(value.senderPublicKey);
|
|
1581
1549
|
}
|
|
1582
1550
|
}
|
|
1583
1551
|
return new FFIConverter();
|
|
@@ -1634,49 +1602,6 @@ const FfiConverterTypeSymbol = (() => {
|
|
|
1634
1602
|
}
|
|
1635
1603
|
return new FFIConverter();
|
|
1636
1604
|
})();
|
|
1637
|
-
/**
|
|
1638
|
-
* Generated factory for {@link TokensPaymentDetails} record objects.
|
|
1639
|
-
*/
|
|
1640
|
-
const TokensPaymentDetails = exports.TokensPaymentDetails = (() => {
|
|
1641
|
-
const defaults = () => ({});
|
|
1642
|
-
const create = (() => {
|
|
1643
|
-
return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(defaults);
|
|
1644
|
-
})();
|
|
1645
|
-
return Object.freeze({
|
|
1646
|
-
/**
|
|
1647
|
-
* Create a frozen instance of {@link TokensPaymentDetails}, with defaults specified
|
|
1648
|
-
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1649
|
-
*/
|
|
1650
|
-
create,
|
|
1651
|
-
/**
|
|
1652
|
-
* Create a frozen instance of {@link TokensPaymentDetails}, with defaults specified
|
|
1653
|
-
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1654
|
-
*/
|
|
1655
|
-
new: create,
|
|
1656
|
-
/**
|
|
1657
|
-
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
1658
|
-
*/
|
|
1659
|
-
defaults: () => Object.freeze(defaults())
|
|
1660
|
-
});
|
|
1661
|
-
})();
|
|
1662
|
-
const FfiConverterTypeTokensPaymentDetails = (() => {
|
|
1663
|
-
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
1664
|
-
read(from) {
|
|
1665
|
-
return {
|
|
1666
|
-
tokenIdentifier: FfiConverterOptionalString.read(from),
|
|
1667
|
-
amount: FfiConverterOptionalTypecommon_u128.read(from)
|
|
1668
|
-
};
|
|
1669
|
-
}
|
|
1670
|
-
write(value, into) {
|
|
1671
|
-
FfiConverterOptionalString.write(value.tokenIdentifier, into);
|
|
1672
|
-
FfiConverterOptionalTypecommon_u128.write(value.amount, into);
|
|
1673
|
-
}
|
|
1674
|
-
allocationSize(value) {
|
|
1675
|
-
return FfiConverterOptionalString.allocationSize(value.tokenIdentifier) + FfiConverterOptionalTypecommon_u128.allocationSize(value.amount);
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
return new FFIConverter();
|
|
1679
|
-
})();
|
|
1680
1605
|
/**
|
|
1681
1606
|
* Generated factory for {@link UrlSuccessActionData} record objects.
|
|
1682
1607
|
*/
|
|
@@ -2071,6 +1996,7 @@ let InputType_Tags = exports.InputType_Tags = /*#__PURE__*/function (InputType_T
|
|
|
2071
1996
|
InputType_Tags["Bolt12InvoiceRequest"] = "Bolt12InvoiceRequest";
|
|
2072
1997
|
InputType_Tags["LnurlWithdraw"] = "LnurlWithdraw";
|
|
2073
1998
|
InputType_Tags["SparkAddress"] = "SparkAddress";
|
|
1999
|
+
InputType_Tags["SparkInvoice"] = "SparkInvoice";
|
|
2074
2000
|
return InputType_Tags;
|
|
2075
2001
|
}({});
|
|
2076
2002
|
const InputType = exports.InputType = (() => {
|
|
@@ -2308,6 +2234,24 @@ const InputType = exports.InputType = (() => {
|
|
|
2308
2234
|
return obj.tag === InputType_Tags.SparkAddress;
|
|
2309
2235
|
}
|
|
2310
2236
|
}
|
|
2237
|
+
class SparkInvoice_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
2238
|
+
/**
|
|
2239
|
+
* @private
|
|
2240
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2241
|
+
*/
|
|
2242
|
+
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'InputType';
|
|
2243
|
+
tag = InputType_Tags.SparkInvoice;
|
|
2244
|
+
constructor(v0) {
|
|
2245
|
+
super('InputType', 'SparkInvoice');
|
|
2246
|
+
this.inner = Object.freeze([v0]);
|
|
2247
|
+
}
|
|
2248
|
+
static new(v0) {
|
|
2249
|
+
return new SparkInvoice_(v0);
|
|
2250
|
+
}
|
|
2251
|
+
static instanceOf(obj) {
|
|
2252
|
+
return obj.tag === InputType_Tags.SparkInvoice;
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2311
2255
|
function instanceOf(obj) {
|
|
2312
2256
|
return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === 'InputType';
|
|
2313
2257
|
}
|
|
@@ -2325,7 +2269,8 @@ const InputType = exports.InputType = (() => {
|
|
|
2325
2269
|
Bip21: Bip21_,
|
|
2326
2270
|
Bolt12InvoiceRequest: Bolt12InvoiceRequest_,
|
|
2327
2271
|
LnurlWithdraw: LnurlWithdraw_,
|
|
2328
|
-
SparkAddress: SparkAddress_
|
|
2272
|
+
SparkAddress: SparkAddress_,
|
|
2273
|
+
SparkInvoice: SparkInvoice_
|
|
2329
2274
|
});
|
|
2330
2275
|
})();
|
|
2331
2276
|
// FfiConverter for enum InputType
|
|
@@ -2360,6 +2305,8 @@ const FfiConverterTypeInputType = (() => {
|
|
|
2360
2305
|
return new InputType.LnurlWithdraw(FfiConverterTypeLnurlWithdrawRequestDetails.read(from));
|
|
2361
2306
|
case 13:
|
|
2362
2307
|
return new InputType.SparkAddress(FfiConverterTypeSparkAddressDetails.read(from));
|
|
2308
|
+
case 14:
|
|
2309
|
+
return new InputType.SparkInvoice(FfiConverterTypeSparkInvoiceDetails.read(from));
|
|
2363
2310
|
default:
|
|
2364
2311
|
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
2365
2312
|
}
|
|
@@ -2457,6 +2404,13 @@ const FfiConverterTypeInputType = (() => {
|
|
|
2457
2404
|
FfiConverterTypeSparkAddressDetails.write(inner[0], into);
|
|
2458
2405
|
return;
|
|
2459
2406
|
}
|
|
2407
|
+
case InputType_Tags.SparkInvoice:
|
|
2408
|
+
{
|
|
2409
|
+
ordinalConverter.write(14, into);
|
|
2410
|
+
const inner = value.inner;
|
|
2411
|
+
FfiConverterTypeSparkInvoiceDetails.write(inner[0], into);
|
|
2412
|
+
return;
|
|
2413
|
+
}
|
|
2460
2414
|
default:
|
|
2461
2415
|
// Throwing from here means that InputType_Tags hasn't matched an ordinal.
|
|
2462
2416
|
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
@@ -2555,6 +2509,13 @@ const FfiConverterTypeInputType = (() => {
|
|
|
2555
2509
|
size += FfiConverterTypeSparkAddressDetails.allocationSize(inner[0]);
|
|
2556
2510
|
return size;
|
|
2557
2511
|
}
|
|
2512
|
+
case InputType_Tags.SparkInvoice:
|
|
2513
|
+
{
|
|
2514
|
+
const inner = value.inner;
|
|
2515
|
+
let size = ordinalConverter.allocationSize(14);
|
|
2516
|
+
size += FfiConverterTypeSparkInvoiceDetails.allocationSize(inner[0]);
|
|
2517
|
+
return size;
|
|
2518
|
+
}
|
|
2558
2519
|
default:
|
|
2559
2520
|
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
2560
2521
|
}
|
|
@@ -3166,117 +3127,6 @@ const FfiConverterTypeServiceConnectivityError = (() => {
|
|
|
3166
3127
|
return new FFIConverter();
|
|
3167
3128
|
})();
|
|
3168
3129
|
|
|
3169
|
-
// Enum: SparkAddressPaymentType
|
|
3170
|
-
let SparkAddressPaymentType_Tags = exports.SparkAddressPaymentType_Tags = /*#__PURE__*/function (SparkAddressPaymentType_Tags) {
|
|
3171
|
-
SparkAddressPaymentType_Tags["TokensPayment"] = "TokensPayment";
|
|
3172
|
-
SparkAddressPaymentType_Tags["SatsPayment"] = "SatsPayment";
|
|
3173
|
-
return SparkAddressPaymentType_Tags;
|
|
3174
|
-
}({});
|
|
3175
|
-
const SparkAddressPaymentType = exports.SparkAddressPaymentType = (() => {
|
|
3176
|
-
class TokensPayment_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
3177
|
-
/**
|
|
3178
|
-
* @private
|
|
3179
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3180
|
-
*/
|
|
3181
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'SparkAddressPaymentType';
|
|
3182
|
-
tag = SparkAddressPaymentType_Tags.TokensPayment;
|
|
3183
|
-
constructor(v0) {
|
|
3184
|
-
super('SparkAddressPaymentType', 'TokensPayment');
|
|
3185
|
-
this.inner = Object.freeze([v0]);
|
|
3186
|
-
}
|
|
3187
|
-
static new(v0) {
|
|
3188
|
-
return new TokensPayment_(v0);
|
|
3189
|
-
}
|
|
3190
|
-
static instanceOf(obj) {
|
|
3191
|
-
return obj.tag === SparkAddressPaymentType_Tags.TokensPayment;
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
class SatsPayment_ extends _uniffiBindgenReactNative.UniffiEnum {
|
|
3195
|
-
/**
|
|
3196
|
-
* @private
|
|
3197
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3198
|
-
*/
|
|
3199
|
-
[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = 'SparkAddressPaymentType';
|
|
3200
|
-
tag = SparkAddressPaymentType_Tags.SatsPayment;
|
|
3201
|
-
constructor(v0) {
|
|
3202
|
-
super('SparkAddressPaymentType', 'SatsPayment');
|
|
3203
|
-
this.inner = Object.freeze([v0]);
|
|
3204
|
-
}
|
|
3205
|
-
static new(v0) {
|
|
3206
|
-
return new SatsPayment_(v0);
|
|
3207
|
-
}
|
|
3208
|
-
static instanceOf(obj) {
|
|
3209
|
-
return obj.tag === SparkAddressPaymentType_Tags.SatsPayment;
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
function instanceOf(obj) {
|
|
3213
|
-
return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === 'SparkAddressPaymentType';
|
|
3214
|
-
}
|
|
3215
|
-
return Object.freeze({
|
|
3216
|
-
instanceOf,
|
|
3217
|
-
TokensPayment: TokensPayment_,
|
|
3218
|
-
SatsPayment: SatsPayment_
|
|
3219
|
-
});
|
|
3220
|
-
})();
|
|
3221
|
-
// FfiConverter for enum SparkAddressPaymentType
|
|
3222
|
-
const FfiConverterTypeSparkAddressPaymentType = (() => {
|
|
3223
|
-
const ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
3224
|
-
class FFIConverter extends _uniffiBindgenReactNative.AbstractFfiConverterByteArray {
|
|
3225
|
-
read(from) {
|
|
3226
|
-
switch (ordinalConverter.read(from)) {
|
|
3227
|
-
case 1:
|
|
3228
|
-
return new SparkAddressPaymentType.TokensPayment(FfiConverterTypeTokensPaymentDetails.read(from));
|
|
3229
|
-
case 2:
|
|
3230
|
-
return new SparkAddressPaymentType.SatsPayment(FfiConverterTypeSatsPaymentDetails.read(from));
|
|
3231
|
-
default:
|
|
3232
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
3233
|
-
}
|
|
3234
|
-
}
|
|
3235
|
-
write(value, into) {
|
|
3236
|
-
switch (value.tag) {
|
|
3237
|
-
case SparkAddressPaymentType_Tags.TokensPayment:
|
|
3238
|
-
{
|
|
3239
|
-
ordinalConverter.write(1, into);
|
|
3240
|
-
const inner = value.inner;
|
|
3241
|
-
FfiConverterTypeTokensPaymentDetails.write(inner[0], into);
|
|
3242
|
-
return;
|
|
3243
|
-
}
|
|
3244
|
-
case SparkAddressPaymentType_Tags.SatsPayment:
|
|
3245
|
-
{
|
|
3246
|
-
ordinalConverter.write(2, into);
|
|
3247
|
-
const inner = value.inner;
|
|
3248
|
-
FfiConverterTypeSatsPaymentDetails.write(inner[0], into);
|
|
3249
|
-
return;
|
|
3250
|
-
}
|
|
3251
|
-
default:
|
|
3252
|
-
// Throwing from here means that SparkAddressPaymentType_Tags hasn't matched an ordinal.
|
|
3253
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
3254
|
-
}
|
|
3255
|
-
}
|
|
3256
|
-
allocationSize(value) {
|
|
3257
|
-
switch (value.tag) {
|
|
3258
|
-
case SparkAddressPaymentType_Tags.TokensPayment:
|
|
3259
|
-
{
|
|
3260
|
-
const inner = value.inner;
|
|
3261
|
-
let size = ordinalConverter.allocationSize(1);
|
|
3262
|
-
size += FfiConverterTypeTokensPaymentDetails.allocationSize(inner[0]);
|
|
3263
|
-
return size;
|
|
3264
|
-
}
|
|
3265
|
-
case SparkAddressPaymentType_Tags.SatsPayment:
|
|
3266
|
-
{
|
|
3267
|
-
const inner = value.inner;
|
|
3268
|
-
let size = ordinalConverter.allocationSize(2);
|
|
3269
|
-
size += FfiConverterTypeSatsPaymentDetails.allocationSize(inner[0]);
|
|
3270
|
-
return size;
|
|
3271
|
-
}
|
|
3272
|
-
default:
|
|
3273
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
|
-
}
|
|
3277
|
-
return new FFIConverter();
|
|
3278
|
-
})();
|
|
3279
|
-
|
|
3280
3130
|
// Enum: SuccessAction
|
|
3281
3131
|
let SuccessAction_Tags = exports.SuccessAction_Tags = /*#__PURE__*/function (SuccessAction_Tags) {
|
|
3282
3132
|
SuccessAction_Tags["Aes"] = "Aes";
|
|
@@ -4021,9 +3871,6 @@ const uniffiCallbackInterfaceRestClient = {
|
|
|
4021
3871
|
// FfiConverter for boolean | undefined
|
|
4022
3872
|
const FfiConverterOptionalBool = new _uniffiBindgenReactNative.FfiConverterOptional(_uniffiBindgenReactNative.FfiConverterBool);
|
|
4023
3873
|
|
|
4024
|
-
// FfiConverter for SparkInvoiceFields | undefined
|
|
4025
|
-
const FfiConverterOptionalTypeSparkInvoiceFields = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeSparkInvoiceFields);
|
|
4026
|
-
|
|
4027
3874
|
// FfiConverter for Symbol | undefined
|
|
4028
3875
|
const FfiConverterOptionalTypeSymbol = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeSymbol);
|
|
4029
3876
|
|
|
@@ -4069,9 +3916,6 @@ const FfiConverterOptionalTypecommon_u128 = new _uniffiBindgenReactNative.FfiCon
|
|
|
4069
3916
|
// FfiConverter for Amount | undefined
|
|
4070
3917
|
const FfiConverterOptionalTypeAmount = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeAmount);
|
|
4071
3918
|
|
|
4072
|
-
// FfiConverter for SparkAddressPaymentType | undefined
|
|
4073
|
-
const FfiConverterOptionalTypeSparkAddressPaymentType = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeSparkAddressPaymentType);
|
|
4074
|
-
|
|
4075
3919
|
// FfiConverter for Map<string, string> | undefined
|
|
4076
3920
|
const FfiConverterOptionalMapStringString = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterMapStringString);
|
|
4077
3921
|
|
|
@@ -4136,6 +3980,7 @@ var _default = exports.default = Object.freeze({
|
|
|
4136
3980
|
FfiConverterTypeBolt12OfferBlindedPath,
|
|
4137
3981
|
FfiConverterTypeBolt12OfferDetails,
|
|
4138
3982
|
FfiConverterTypeCurrencyInfo,
|
|
3983
|
+
FfiConverterTypeExternalInputParser,
|
|
4139
3984
|
FfiConverterTypeFiatCurrency,
|
|
4140
3985
|
FfiConverterTypeFiatService,
|
|
4141
3986
|
FfiConverterTypeInputType,
|
|
@@ -4152,16 +3997,12 @@ var _default = exports.default = Object.freeze({
|
|
|
4152
3997
|
FfiConverterTypeRate,
|
|
4153
3998
|
FfiConverterTypeRestClient,
|
|
4154
3999
|
FfiConverterTypeRestResponse,
|
|
4155
|
-
FfiConverterTypeSatsPaymentDetails,
|
|
4156
4000
|
FfiConverterTypeSilentPaymentAddressDetails,
|
|
4157
|
-
FfiConverterTypeSparkAddress,
|
|
4158
4001
|
FfiConverterTypeSparkAddressDetails,
|
|
4159
|
-
|
|
4160
|
-
FfiConverterTypeSparkInvoiceFields,
|
|
4002
|
+
FfiConverterTypeSparkInvoiceDetails,
|
|
4161
4003
|
FfiConverterTypeSuccessAction,
|
|
4162
4004
|
FfiConverterTypeSuccessActionProcessed,
|
|
4163
4005
|
FfiConverterTypeSymbol,
|
|
4164
|
-
FfiConverterTypeTokensPaymentDetails,
|
|
4165
4006
|
FfiConverterTypeUrlSuccessActionData,
|
|
4166
4007
|
FfiConverterTypecommon_u128
|
|
4167
4008
|
}
|