@breeztech/breez-sdk-spark-react-native 0.16.1-dev1 → 0.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.16.1-dev1",
3
+ "version": "0.17.1",
4
4
  "description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -209,7 +209,7 @@
209
209
  "version": "0.49.0"
210
210
  },
211
211
  "checksums": {
212
- "android": "221bd9a358381e424f56018a81c4e359fde5799382bacea4cff86cb9d3f19607",
213
- "ios": "46fdfca17557a6a5b65785c1c65a1375e1b4b2c754c0402dda809150c6e144bd"
212
+ "android": "dacd38b9b319d03f5d73a6cc3be07f86eb2d0eef53a8cf14b1e07f703eb895fa",
213
+ "ios": "58b164592e98fd5532dcd310fe2b892fc5f8847b108a91f8e858cbc448995b6b"
214
214
  }
215
215
  }
@@ -111,6 +111,10 @@ interface NativeModuleInterface {
111
111
  ptr: bigint,
112
112
  request: Uint8Array
113
113
  ): bigint;
114
+ ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_cross_chain_routes(
115
+ ptr: bigint,
116
+ filter: Uint8Array
117
+ ): bigint;
114
118
  ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_info(
115
119
  ptr: bigint,
116
120
  request: Uint8Array
@@ -670,6 +674,19 @@ interface NativeModuleInterface {
670
674
  ptr: bigint,
671
675
  id: Uint8Array
672
676
  ): bigint;
677
+ ubrn_uniffi_breez_sdk_spark_fn_method_storage_set_cross_chain_swap(
678
+ ptr: bigint,
679
+ swap: Uint8Array
680
+ ): bigint;
681
+ ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_cross_chain_swap(
682
+ ptr: bigint,
683
+ provider: Uint8Array,
684
+ id: Uint8Array
685
+ ): bigint;
686
+ ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_active_cross_chain_swaps(
687
+ ptr: bigint,
688
+ provider: Uint8Array
689
+ ): bigint;
673
690
  ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_outgoing_change(
674
691
  ptr: bigint,
675
692
  record: Uint8Array
@@ -977,6 +994,7 @@ interface NativeModuleInterface {
977
994
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address(): number;
978
995
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect(): number;
979
996
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits(): number;
997
+ ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_cross_chain_routes(): number;
980
998
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_info(): number;
981
999
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_lightning_address(): number;
982
1000
  ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_payment(): number;
@@ -1080,6 +1098,9 @@ interface NativeModuleInterface {
1080
1098
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact(): number;
1081
1099
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact(): number;
1082
1100
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact(): number;
1101
+ ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_cross_chain_swap(): number;
1102
+ ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_cross_chain_swap(): number;
1103
+ ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_active_cross_chain_swaps(): number;
1083
1104
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change(): number;
1084
1105
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync(): number;
1085
1106
  ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes(): number;
@@ -1668,53 +1689,72 @@ type UniffiCallbackInterfaceStorageMethod17 = (
1668
1689
  uniffiCallbackData: bigint
1669
1690
  ) => UniffiForeignFuture;
1670
1691
  type UniffiCallbackInterfaceStorageMethod18 = (
1692
+ uniffiHandle: bigint,
1693
+ swap: Uint8Array,
1694
+ uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1695
+ uniffiCallbackData: bigint
1696
+ ) => UniffiForeignFuture;
1697
+ type UniffiCallbackInterfaceStorageMethod19 = (
1698
+ uniffiHandle: bigint,
1699
+ provider: Uint8Array,
1700
+ id: Uint8Array,
1701
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1702
+ uniffiCallbackData: bigint
1703
+ ) => UniffiForeignFuture;
1704
+ type UniffiCallbackInterfaceStorageMethod20 = (
1705
+ uniffiHandle: bigint,
1706
+ provider: Uint8Array,
1707
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1708
+ uniffiCallbackData: bigint
1709
+ ) => UniffiForeignFuture;
1710
+ type UniffiCallbackInterfaceStorageMethod21 = (
1671
1711
  uniffiHandle: bigint,
1672
1712
  record: Uint8Array,
1673
1713
  uniffiFutureCallback: UniffiForeignFutureCompleteU64,
1674
1714
  uniffiCallbackData: bigint
1675
1715
  ) => UniffiForeignFuture;
1676
- type UniffiCallbackInterfaceStorageMethod19 = (
1716
+ type UniffiCallbackInterfaceStorageMethod22 = (
1677
1717
  uniffiHandle: bigint,
1678
1718
  record: Uint8Array,
1679
1719
  localRevision: bigint,
1680
1720
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1681
1721
  uniffiCallbackData: bigint
1682
1722
  ) => UniffiForeignFuture;
1683
- type UniffiCallbackInterfaceStorageMethod20 = (
1723
+ type UniffiCallbackInterfaceStorageMethod23 = (
1684
1724
  uniffiHandle: bigint,
1685
1725
  limit: number,
1686
1726
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1687
1727
  uniffiCallbackData: bigint
1688
1728
  ) => UniffiForeignFuture;
1689
- type UniffiCallbackInterfaceStorageMethod21 = (
1729
+ type UniffiCallbackInterfaceStorageMethod24 = (
1690
1730
  uniffiHandle: bigint,
1691
1731
  uniffiFutureCallback: UniffiForeignFutureCompleteU64,
1692
1732
  uniffiCallbackData: bigint
1693
1733
  ) => UniffiForeignFuture;
1694
- type UniffiCallbackInterfaceStorageMethod22 = (
1734
+ type UniffiCallbackInterfaceStorageMethod25 = (
1695
1735
  uniffiHandle: bigint,
1696
1736
  records: Uint8Array,
1697
1737
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1698
1738
  uniffiCallbackData: bigint
1699
1739
  ) => UniffiForeignFuture;
1700
- type UniffiCallbackInterfaceStorageMethod23 = (
1740
+ type UniffiCallbackInterfaceStorageMethod26 = (
1701
1741
  uniffiHandle: bigint,
1702
1742
  record: Uint8Array,
1703
1743
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
1704
1744
  uniffiCallbackData: bigint
1705
1745
  ) => UniffiForeignFuture;
1706
- type UniffiCallbackInterfaceStorageMethod24 = (
1746
+ type UniffiCallbackInterfaceStorageMethod27 = (
1707
1747
  uniffiHandle: bigint,
1708
1748
  limit: number,
1709
1749
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1710
1750
  uniffiCallbackData: bigint
1711
1751
  ) => UniffiForeignFuture;
1712
- type UniffiCallbackInterfaceStorageMethod25 = (
1752
+ type UniffiCallbackInterfaceStorageMethod28 = (
1713
1753
  uniffiHandle: bigint,
1714
1754
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1715
1755
  uniffiCallbackData: bigint
1716
1756
  ) => UniffiForeignFuture;
1717
- type UniffiCallbackInterfaceStorageMethod26 = (
1757
+ type UniffiCallbackInterfaceStorageMethod29 = (
1718
1758
  uniffiHandle: bigint,
1719
1759
  record: Uint8Array,
1720
1760
  uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
@@ -1818,15 +1858,18 @@ export type UniffiVTableCallbackInterfaceStorage = {
1818
1858
  getContact: UniffiCallbackInterfaceStorageMethod15;
1819
1859
  insertContact: UniffiCallbackInterfaceStorageMethod16;
1820
1860
  deleteContact: UniffiCallbackInterfaceStorageMethod17;
1821
- addOutgoingChange: UniffiCallbackInterfaceStorageMethod18;
1822
- completeOutgoingSync: UniffiCallbackInterfaceStorageMethod19;
1823
- getPendingOutgoingChanges: UniffiCallbackInterfaceStorageMethod20;
1824
- getLastRevision: UniffiCallbackInterfaceStorageMethod21;
1825
- insertIncomingRecords: UniffiCallbackInterfaceStorageMethod22;
1826
- deleteIncomingRecord: UniffiCallbackInterfaceStorageMethod23;
1827
- getIncomingRecords: UniffiCallbackInterfaceStorageMethod24;
1828
- getLatestOutgoingChange: UniffiCallbackInterfaceStorageMethod25;
1829
- updateRecordFromIncoming: UniffiCallbackInterfaceStorageMethod26;
1861
+ setCrossChainSwap: UniffiCallbackInterfaceStorageMethod18;
1862
+ getCrossChainSwap: UniffiCallbackInterfaceStorageMethod19;
1863
+ listActiveCrossChainSwaps: UniffiCallbackInterfaceStorageMethod20;
1864
+ addOutgoingChange: UniffiCallbackInterfaceStorageMethod21;
1865
+ completeOutgoingSync: UniffiCallbackInterfaceStorageMethod22;
1866
+ getPendingOutgoingChanges: UniffiCallbackInterfaceStorageMethod23;
1867
+ getLastRevision: UniffiCallbackInterfaceStorageMethod24;
1868
+ insertIncomingRecords: UniffiCallbackInterfaceStorageMethod25;
1869
+ deleteIncomingRecord: UniffiCallbackInterfaceStorageMethod26;
1870
+ getIncomingRecords: UniffiCallbackInterfaceStorageMethod27;
1871
+ getLatestOutgoingChange: UniffiCallbackInterfaceStorageMethod28;
1872
+ updateRecordFromIncoming: UniffiCallbackInterfaceStorageMethod29;
1830
1873
  uniffiFree: UniffiCallbackInterfaceFree;
1831
1874
  };
1832
1875
  export type UniffiVTableCallbackInterfaceStorageBackend = {