@breeztech/breez-sdk-spark-react-native 0.2.6 → 0.3.0-rc2

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.
Files changed (28) hide show
  1. package/cpp/generated/breez_sdk_spark.cpp +66 -338
  2. package/cpp/generated/breez_sdk_spark.hpp +7 -45
  3. package/lib/commonjs/generated/breez_sdk_common.js +41 -4
  4. package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
  5. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_spark.js +504 -139
  7. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  8. package/lib/module/generated/breez_sdk_common.js +41 -4
  9. package/lib/module/generated/breez_sdk_common.js.map +1 -1
  10. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  11. package/lib/module/generated/breez_sdk_spark.js +504 -139
  12. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  13. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +13 -1
  14. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -1
  15. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +4 -14
  16. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  17. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +373 -63
  18. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  19. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +13 -1
  20. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -1
  21. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +4 -14
  22. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  23. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +373 -63
  24. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/generated/breez_sdk_common.ts +47 -4
  27. package/src/generated/breez_sdk_spark-ffi.ts +7 -42
  28. package/src/generated/breez_sdk_spark.ts +769 -365
@@ -83,6 +83,9 @@ protected:
83
83
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_payment(
84
84
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
85
85
  size_t count);
86
+ jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_get_tokens_metadata(
87
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
88
+ size_t count);
86
89
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(
87
90
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
88
91
  size_t count);
@@ -99,10 +102,6 @@ protected:
99
102
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay(
100
103
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
101
104
  size_t count);
102
- jsi::Value
103
- cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_poll_lightning_send_payment(
104
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
105
- size_t count);
106
105
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_lnurl_pay(
107
106
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
108
107
  size_t count);
@@ -112,10 +111,6 @@ protected:
112
111
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_receive_payment(
113
112
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
114
113
  size_t count);
115
- jsi::Value
116
- cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_recover_lightning_address(
117
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
118
- size_t count);
119
114
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_refund_deposit(
120
115
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
121
116
  size_t count);
@@ -127,22 +122,9 @@ protected:
127
122
  cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_remove_event_listener(
128
123
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
129
124
  size_t count);
130
- jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bitcoin_address(
131
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
132
- size_t count);
133
- jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_bolt11_invoice(
134
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
135
- size_t count);
136
125
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
137
126
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
138
127
  size_t count);
139
- jsi::Value
140
- cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment_internal(
141
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
142
- size_t count);
143
- jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_send_spark_address(
144
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
145
- size_t count);
146
128
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_breezsdk_sync_wallet(
147
129
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
148
130
  size_t count);
@@ -452,6 +434,10 @@ protected:
452
434
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
453
435
  size_t count);
454
436
  jsi::Value
437
+ cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(
438
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
439
+ size_t count);
440
+ jsi::Value
455
441
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies(
456
442
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
457
443
  size_t count);
@@ -470,10 +456,6 @@ protected:
470
456
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
471
457
  size_t count);
472
458
  jsi::Value
473
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_poll_lightning_send_payment(
474
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
475
- size_t count);
476
- jsi::Value
477
459
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay(
478
460
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
479
461
  size_t count);
@@ -485,10 +467,6 @@ protected:
485
467
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment(
486
468
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
487
469
  size_t count);
488
- jsi::Value
489
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_recover_lightning_address(
490
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
491
- size_t count);
492
470
  jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_refund_deposit(
493
471
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
494
472
  size_t count);
@@ -500,25 +478,9 @@ protected:
500
478
  cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(
501
479
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
502
480
  size_t count);
503
- jsi::Value
504
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bitcoin_address(
505
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
506
- size_t count);
507
- jsi::Value
508
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_bolt11_invoice(
509
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
510
- size_t count);
511
481
  jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(
512
482
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
513
483
  size_t count);
514
- jsi::Value
515
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment_internal(
516
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
517
- size_t count);
518
- jsi::Value
519
- cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_spark_address(
520
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
521
- size_t count);
522
484
  jsi::Value cpp_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(
523
485
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
524
486
  size_t count);
@@ -1664,15 +1664,15 @@ const FfiConverterTypeTokensPaymentDetails = (() => {
1664
1664
  read(from) {
1665
1665
  return {
1666
1666
  tokenIdentifier: FfiConverterOptionalString.read(from),
1667
- amount: FfiConverterOptionalUInt64.read(from)
1667
+ amount: FfiConverterOptionalTypecommon_u128.read(from)
1668
1668
  };
1669
1669
  }
1670
1670
  write(value, into) {
1671
1671
  FfiConverterOptionalString.write(value.tokenIdentifier, into);
1672
- FfiConverterOptionalUInt64.write(value.amount, into);
1672
+ FfiConverterOptionalTypecommon_u128.write(value.amount, into);
1673
1673
  }
1674
1674
  allocationSize(value) {
1675
- return FfiConverterOptionalString.allocationSize(value.tokenIdentifier) + FfiConverterOptionalUInt64.allocationSize(value.amount);
1675
+ return FfiConverterOptionalString.allocationSize(value.tokenIdentifier) + FfiConverterOptionalTypecommon_u128.allocationSize(value.amount);
1676
1676
  }
1677
1677
  }
1678
1678
  return new FFIConverter();
@@ -1729,6 +1729,39 @@ const stringConverter = {
1729
1729
  };
1730
1730
  const FfiConverterString = (0, _uniffiBindgenReactNative.uniffiCreateFfiConverterString)(stringConverter);
1731
1731
 
1732
+ /**
1733
+ * Typealias from the type name used in the UDL file to the custom type. This
1734
+ * is needed because the UDL type name is used in function/method signatures.
1735
+ */
1736
+
1737
+ // FfiConverter for CommonU128
1738
+ const FfiConverterTypecommon_u128 = (() => {
1739
+ const intermediateConverter = FfiConverterString;
1740
+ class FFIConverter {
1741
+ lift(value) {
1742
+ const intermediate = intermediateConverter.lift(value);
1743
+ return BigInt(intermediate);
1744
+ }
1745
+ lower(value) {
1746
+ const intermediate = value.toString();
1747
+ return intermediateConverter.lower(intermediate);
1748
+ }
1749
+ read(from) {
1750
+ const intermediate = intermediateConverter.read(from);
1751
+ return BigInt(intermediate);
1752
+ }
1753
+ write(value, into) {
1754
+ const intermediate = value.toString();
1755
+ intermediateConverter.write(intermediate, into);
1756
+ }
1757
+ allocationSize(value) {
1758
+ const intermediate = value.toString();
1759
+ return intermediateConverter.allocationSize(intermediate);
1760
+ }
1761
+ }
1762
+ return new FFIConverter();
1763
+ })();
1764
+
1732
1765
  // Enum: AesSuccessActionDataResult
1733
1766
  let AesSuccessActionDataResult_Tags = exports.AesSuccessActionDataResult_Tags = /*#__PURE__*/function (AesSuccessActionDataResult_Tags) {
1734
1767
  AesSuccessActionDataResult_Tags["Decrypted"] = "Decrypted";
@@ -4030,6 +4063,9 @@ const FfiConverterArrayTypeRate = new _uniffiBindgenReactNative.FfiConverterArra
4030
4063
  // FfiConverter for Array<string>
4031
4064
  const FfiConverterArrayString = new _uniffiBindgenReactNative.FfiConverterArray(FfiConverterString);
4032
4065
 
4066
+ // FfiConverter for CommonU128 | undefined
4067
+ const FfiConverterOptionalTypecommon_u128 = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypecommon_u128);
4068
+
4033
4069
  // FfiConverter for Amount | undefined
4034
4070
  const FfiConverterOptionalTypeAmount = new _uniffiBindgenReactNative.FfiConverterOptional(FfiConverterTypeAmount);
4035
4071
 
@@ -4126,7 +4162,8 @@ var _default = exports.default = Object.freeze({
4126
4162
  FfiConverterTypeSuccessActionProcessed,
4127
4163
  FfiConverterTypeSymbol,
4128
4164
  FfiConverterTypeTokensPaymentDetails,
4129
- FfiConverterTypeUrlSuccessActionData
4165
+ FfiConverterTypeUrlSuccessActionData,
4166
+ FfiConverterTypecommon_u128
4130
4167
  }
4131
4168
  });
4132
4169
  //# sourceMappingURL=breez_sdk_common.js.map