react-native-nitro-ark 0.0.82 → 0.0.84

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 (44) hide show
  1. package/cpp/NitroArk.hpp +28 -5
  2. package/cpp/generated/ark_cxx.h +2 -14
  3. package/lib/module/index.js +1 -1
  4. package/lib/module/index.js.map +1 -1
  5. package/lib/typescript/src/NitroArk.nitro.d.ts +2 -5
  6. package/lib/typescript/src/NitroArk.nitro.d.ts.map +1 -1
  7. package/lib/typescript/src/index.d.ts +3 -3
  8. package/lib/typescript/src/index.d.ts.map +1 -1
  9. package/nitrogen/generated/android/NitroArk+autolinking.cmake +1 -1
  10. package/nitrogen/generated/android/NitroArk+autolinking.gradle +1 -1
  11. package/nitrogen/generated/android/NitroArkOnLoad.cpp +1 -1
  12. package/nitrogen/generated/android/NitroArkOnLoad.hpp +1 -1
  13. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroark/NitroArkOnLoad.kt +1 -1
  14. package/nitrogen/generated/ios/NitroArk+autolinking.rb +2 -2
  15. package/nitrogen/generated/ios/NitroArk-Swift-Cxx-Bridge.cpp +1 -1
  16. package/nitrogen/generated/ios/NitroArk-Swift-Cxx-Bridge.hpp +1 -1
  17. package/nitrogen/generated/ios/NitroArk-Swift-Cxx-Umbrella.hpp +1 -1
  18. package/nitrogen/generated/ios/NitroArkAutolinking.mm +1 -1
  19. package/nitrogen/generated/ios/NitroArkAutolinking.swift +1 -1
  20. package/nitrogen/generated/shared/c++/ArkoorPaymentResult.hpp +19 -11
  21. package/nitrogen/generated/shared/c++/BarkArkInfo.hpp +37 -29
  22. package/nitrogen/generated/shared/c++/BarkConfigOpts.hpp +43 -35
  23. package/nitrogen/generated/shared/c++/BarkCreateOpts.hpp +28 -20
  24. package/nitrogen/generated/shared/c++/BarkMovement.hpp +55 -47
  25. package/nitrogen/generated/shared/c++/BarkMovementDestination.hpp +19 -11
  26. package/nitrogen/generated/shared/c++/BarkMovementSubsystem.hpp +16 -8
  27. package/nitrogen/generated/shared/c++/BarkSendManyOutput.hpp +16 -8
  28. package/nitrogen/generated/shared/c++/BarkVtxo.hpp +31 -23
  29. package/nitrogen/generated/shared/c++/BoardResult.hpp +16 -8
  30. package/nitrogen/generated/shared/c++/Bolt11Invoice.hpp +19 -11
  31. package/nitrogen/generated/shared/c++/HybridNitroArkSpec.cpp +1 -1
  32. package/nitrogen/generated/shared/c++/HybridNitroArkSpec.hpp +2 -2
  33. package/nitrogen/generated/shared/c++/KeyPairResult.hpp +16 -8
  34. package/nitrogen/generated/shared/c++/LightningReceive.hpp +27 -15
  35. package/nitrogen/generated/shared/c++/LightningSendResult.hpp +28 -20
  36. package/nitrogen/generated/shared/c++/NewAddressResult.hpp +19 -11
  37. package/nitrogen/generated/shared/c++/OffchainBalanceResult.hpp +25 -17
  38. package/nitrogen/generated/shared/c++/OnchainBalanceResult.hpp +22 -14
  39. package/nitrogen/generated/shared/c++/OnchainPaymentResult.hpp +19 -11
  40. package/nitrogen/generated/shared/c++/RoundStatus.hpp +28 -20
  41. package/nitrogen/generated/shared/c++/RoundStatusType.hpp +1 -1
  42. package/package.json +4 -4
  43. package/src/NitroArk.nitro.ts +2 -8
  44. package/src/index.tsx +3 -4
@@ -2,7 +2,7 @@
2
2
  /// BarkVtxo.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -32,7 +37,7 @@ namespace margelo::nitro::nitroark {
32
37
  /**
33
38
  * A struct which can be represented as a JavaScript object (BarkVtxo).
34
39
  */
35
- struct BarkVtxo {
40
+ struct BarkVtxo final {
36
41
  public:
37
42
  double amount SWIFT_PRIVATE;
38
43
  double expiry_height SWIFT_PRIVATE;
@@ -45,6 +50,9 @@ namespace margelo::nitro::nitroark {
45
50
  public:
46
51
  BarkVtxo() = default;
47
52
  explicit BarkVtxo(double amount, double expiry_height, std::string server_pubkey, double exit_delta, std::string anchor_point, std::string point, std::string state): amount(amount), expiry_height(expiry_height), server_pubkey(server_pubkey), exit_delta(exit_delta), anchor_point(anchor_point), point(point), state(state) {}
53
+
54
+ public:
55
+ friend bool operator==(const BarkVtxo& lhs, const BarkVtxo& rhs) = default;
48
56
  };
49
57
 
50
58
  } // namespace margelo::nitro::nitroark
@@ -57,24 +65,24 @@ namespace margelo::nitro {
57
65
  static inline margelo::nitro::nitroark::BarkVtxo fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
58
66
  jsi::Object obj = arg.asObject(runtime);
59
67
  return margelo::nitro::nitroark::BarkVtxo(
60
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "amount")),
61
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "expiry_height")),
62
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "server_pubkey")),
63
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "exit_delta")),
64
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "anchor_point")),
65
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "point")),
66
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "state"))
68
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amount"))),
69
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "expiry_height"))),
70
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "server_pubkey"))),
71
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "exit_delta"))),
72
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "anchor_point"))),
73
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "point"))),
74
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state")))
67
75
  );
68
76
  }
69
77
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BarkVtxo& arg) {
70
78
  jsi::Object obj(runtime);
71
- obj.setProperty(runtime, "amount", JSIConverter<double>::toJSI(runtime, arg.amount));
72
- obj.setProperty(runtime, "expiry_height", JSIConverter<double>::toJSI(runtime, arg.expiry_height));
73
- obj.setProperty(runtime, "server_pubkey", JSIConverter<std::string>::toJSI(runtime, arg.server_pubkey));
74
- obj.setProperty(runtime, "exit_delta", JSIConverter<double>::toJSI(runtime, arg.exit_delta));
75
- obj.setProperty(runtime, "anchor_point", JSIConverter<std::string>::toJSI(runtime, arg.anchor_point));
76
- obj.setProperty(runtime, "point", JSIConverter<std::string>::toJSI(runtime, arg.point));
77
- obj.setProperty(runtime, "state", JSIConverter<std::string>::toJSI(runtime, arg.state));
79
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "amount"), JSIConverter<double>::toJSI(runtime, arg.amount));
80
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "expiry_height"), JSIConverter<double>::toJSI(runtime, arg.expiry_height));
81
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "server_pubkey"), JSIConverter<std::string>::toJSI(runtime, arg.server_pubkey));
82
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "exit_delta"), JSIConverter<double>::toJSI(runtime, arg.exit_delta));
83
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "anchor_point"), JSIConverter<std::string>::toJSI(runtime, arg.anchor_point));
84
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "point"), JSIConverter<std::string>::toJSI(runtime, arg.point));
85
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "state"), JSIConverter<std::string>::toJSI(runtime, arg.state));
78
86
  return obj;
79
87
  }
80
88
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -85,13 +93,13 @@ namespace margelo::nitro {
85
93
  if (!nitro::isPlainObject(runtime, obj)) {
86
94
  return false;
87
95
  }
88
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "amount"))) return false;
89
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "expiry_height"))) return false;
90
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "server_pubkey"))) return false;
91
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "exit_delta"))) return false;
92
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "anchor_point"))) return false;
93
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "point"))) return false;
94
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "state"))) return false;
96
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amount")))) return false;
97
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "expiry_height")))) return false;
98
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "server_pubkey")))) return false;
99
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "exit_delta")))) return false;
100
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "anchor_point")))) return false;
101
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "point")))) return false;
102
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state")))) return false;
95
103
  return true;
96
104
  }
97
105
  };
@@ -2,7 +2,7 @@
2
2
  /// BoardResult.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -33,7 +38,7 @@ namespace margelo::nitro::nitroark {
33
38
  /**
34
39
  * A struct which can be represented as a JavaScript object (BoardResult).
35
40
  */
36
- struct BoardResult {
41
+ struct BoardResult final {
37
42
  public:
38
43
  std::string funding_txid SWIFT_PRIVATE;
39
44
  std::vector<std::string> vtxos SWIFT_PRIVATE;
@@ -41,6 +46,9 @@ namespace margelo::nitro::nitroark {
41
46
  public:
42
47
  BoardResult() = default;
43
48
  explicit BoardResult(std::string funding_txid, std::vector<std::string> vtxos): funding_txid(funding_txid), vtxos(vtxos) {}
49
+
50
+ public:
51
+ friend bool operator==(const BoardResult& lhs, const BoardResult& rhs) = default;
44
52
  };
45
53
 
46
54
  } // namespace margelo::nitro::nitroark
@@ -53,14 +61,14 @@ namespace margelo::nitro {
53
61
  static inline margelo::nitro::nitroark::BoardResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
54
62
  jsi::Object obj = arg.asObject(runtime);
55
63
  return margelo::nitro::nitroark::BoardResult(
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "funding_txid")),
57
- JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "vtxos"))
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "funding_txid"))),
65
+ JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "vtxos")))
58
66
  );
59
67
  }
60
68
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BoardResult& arg) {
61
69
  jsi::Object obj(runtime);
62
- obj.setProperty(runtime, "funding_txid", JSIConverter<std::string>::toJSI(runtime, arg.funding_txid));
63
- obj.setProperty(runtime, "vtxos", JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.vtxos));
70
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "funding_txid"), JSIConverter<std::string>::toJSI(runtime, arg.funding_txid));
71
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "vtxos"), JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.vtxos));
64
72
  return obj;
65
73
  }
66
74
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -71,8 +79,8 @@ namespace margelo::nitro {
71
79
  if (!nitro::isPlainObject(runtime, obj)) {
72
80
  return false;
73
81
  }
74
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "funding_txid"))) return false;
75
- if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, "vtxos"))) return false;
82
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "funding_txid")))) return false;
83
+ if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "vtxos")))) return false;
76
84
  return true;
77
85
  }
78
86
  };
@@ -2,7 +2,7 @@
2
2
  /// Bolt11Invoice.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -32,7 +37,7 @@ namespace margelo::nitro::nitroark {
32
37
  /**
33
38
  * A struct which can be represented as a JavaScript object (Bolt11Invoice).
34
39
  */
35
- struct Bolt11Invoice {
40
+ struct Bolt11Invoice final {
36
41
  public:
37
42
  std::string payment_request SWIFT_PRIVATE;
38
43
  std::string payment_secret SWIFT_PRIVATE;
@@ -41,6 +46,9 @@ namespace margelo::nitro::nitroark {
41
46
  public:
42
47
  Bolt11Invoice() = default;
43
48
  explicit Bolt11Invoice(std::string payment_request, std::string payment_secret, std::string payment_hash): payment_request(payment_request), payment_secret(payment_secret), payment_hash(payment_hash) {}
49
+
50
+ public:
51
+ friend bool operator==(const Bolt11Invoice& lhs, const Bolt11Invoice& rhs) = default;
44
52
  };
45
53
 
46
54
  } // namespace margelo::nitro::nitroark
@@ -53,16 +61,16 @@ namespace margelo::nitro {
53
61
  static inline margelo::nitro::nitroark::Bolt11Invoice fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
54
62
  jsi::Object obj = arg.asObject(runtime);
55
63
  return margelo::nitro::nitroark::Bolt11Invoice(
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "payment_request")),
57
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "payment_secret")),
58
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "payment_hash"))
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_request"))),
65
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_secret"))),
66
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_hash")))
59
67
  );
60
68
  }
61
69
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::Bolt11Invoice& arg) {
62
70
  jsi::Object obj(runtime);
63
- obj.setProperty(runtime, "payment_request", JSIConverter<std::string>::toJSI(runtime, arg.payment_request));
64
- obj.setProperty(runtime, "payment_secret", JSIConverter<std::string>::toJSI(runtime, arg.payment_secret));
65
- obj.setProperty(runtime, "payment_hash", JSIConverter<std::string>::toJSI(runtime, arg.payment_hash));
71
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "payment_request"), JSIConverter<std::string>::toJSI(runtime, arg.payment_request));
72
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "payment_secret"), JSIConverter<std::string>::toJSI(runtime, arg.payment_secret));
73
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "payment_hash"), JSIConverter<std::string>::toJSI(runtime, arg.payment_hash));
66
74
  return obj;
67
75
  }
68
76
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -73,9 +81,9 @@ namespace margelo::nitro {
73
81
  if (!nitro::isPlainObject(runtime, obj)) {
74
82
  return false;
75
83
  }
76
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "payment_request"))) return false;
77
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "payment_secret"))) return false;
78
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "payment_hash"))) return false;
84
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_request")))) return false;
85
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_secret")))) return false;
86
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_hash")))) return false;
79
87
  return true;
80
88
  }
81
89
  };
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroArkSpec.cpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #include "HybridNitroArkSpec.hpp"
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroArkSpec.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -147,7 +147,7 @@ namespace margelo::nitro::nitroark {
147
147
  virtual std::shared_ptr<Promise<Bolt11Invoice>> bolt11Invoice(double amountMsat) = 0;
148
148
  virtual std::shared_ptr<Promise<std::optional<LightningReceive>>> lightningReceiveStatus(const std::string& paymentHash) = 0;
149
149
  virtual std::shared_ptr<Promise<std::variant<nitro::NullType, std::string>>> checkLightningPayment(const std::string& paymentHash, bool wait) = 0;
150
- virtual std::shared_ptr<Promise<std::vector<BarkVtxo>>> tryClaimLightningReceive(const std::string& paymentHash, bool wait, const std::optional<std::string>& token) = 0;
150
+ virtual std::shared_ptr<Promise<LightningReceive>> tryClaimLightningReceive(const std::string& paymentHash, bool wait, const std::optional<std::string>& token) = 0;
151
151
  virtual std::shared_ptr<Promise<void>> tryClaimAllLightningReceives(bool wait) = 0;
152
152
  virtual std::shared_ptr<Promise<RoundStatus>> offboardSpecific(const std::vector<std::string>& vtxoIds, const std::string& destinationAddress) = 0;
153
153
  virtual std::shared_ptr<Promise<RoundStatus>> offboardAll(const std::string& destinationAddress) = 0;
@@ -2,7 +2,7 @@
2
2
  /// KeyPairResult.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -32,7 +37,7 @@ namespace margelo::nitro::nitroark {
32
37
  /**
33
38
  * A struct which can be represented as a JavaScript object (KeyPairResult).
34
39
  */
35
- struct KeyPairResult {
40
+ struct KeyPairResult final {
36
41
  public:
37
42
  std::string public_key SWIFT_PRIVATE;
38
43
  std::string secret_key SWIFT_PRIVATE;
@@ -40,6 +45,9 @@ namespace margelo::nitro::nitroark {
40
45
  public:
41
46
  KeyPairResult() = default;
42
47
  explicit KeyPairResult(std::string public_key, std::string secret_key): public_key(public_key), secret_key(secret_key) {}
48
+
49
+ public:
50
+ friend bool operator==(const KeyPairResult& lhs, const KeyPairResult& rhs) = default;
43
51
  };
44
52
 
45
53
  } // namespace margelo::nitro::nitroark
@@ -52,14 +60,14 @@ namespace margelo::nitro {
52
60
  static inline margelo::nitro::nitroark::KeyPairResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
61
  jsi::Object obj = arg.asObject(runtime);
54
62
  return margelo::nitro::nitroark::KeyPairResult(
55
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "public_key")),
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "secret_key"))
63
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "public_key"))),
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "secret_key")))
57
65
  );
58
66
  }
59
67
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::KeyPairResult& arg) {
60
68
  jsi::Object obj(runtime);
61
- obj.setProperty(runtime, "public_key", JSIConverter<std::string>::toJSI(runtime, arg.public_key));
62
- obj.setProperty(runtime, "secret_key", JSIConverter<std::string>::toJSI(runtime, arg.secret_key));
69
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "public_key"), JSIConverter<std::string>::toJSI(runtime, arg.public_key));
70
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "secret_key"), JSIConverter<std::string>::toJSI(runtime, arg.secret_key));
63
71
  return obj;
64
72
  }
65
73
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -70,8 +78,8 @@ namespace margelo::nitro {
70
78
  if (!nitro::isPlainObject(runtime, obj)) {
71
79
  return false;
72
80
  }
73
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "public_key"))) return false;
74
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "secret_key"))) return false;
81
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "public_key")))) return false;
82
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "secret_key")))) return false;
75
83
  return true;
76
84
  }
77
85
  };
@@ -2,7 +2,7 @@
2
2
  /// LightningReceive.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -33,16 +38,20 @@ namespace margelo::nitro::nitroark {
33
38
  /**
34
39
  * A struct which can be represented as a JavaScript object (LightningReceive).
35
40
  */
36
- struct LightningReceive {
41
+ struct LightningReceive final {
37
42
  public:
38
43
  std::string payment_hash SWIFT_PRIVATE;
39
44
  std::string payment_preimage SWIFT_PRIVATE;
40
45
  std::string invoice SWIFT_PRIVATE;
41
46
  std::optional<double> preimage_revealed_at SWIFT_PRIVATE;
47
+ std::optional<double> finished_at SWIFT_PRIVATE;
42
48
 
43
49
  public:
44
50
  LightningReceive() = default;
45
- explicit LightningReceive(std::string payment_hash, std::string payment_preimage, std::string invoice, std::optional<double> preimage_revealed_at): payment_hash(payment_hash), payment_preimage(payment_preimage), invoice(invoice), preimage_revealed_at(preimage_revealed_at) {}
51
+ explicit LightningReceive(std::string payment_hash, std::string payment_preimage, std::string invoice, std::optional<double> preimage_revealed_at, std::optional<double> finished_at): payment_hash(payment_hash), payment_preimage(payment_preimage), invoice(invoice), preimage_revealed_at(preimage_revealed_at), finished_at(finished_at) {}
52
+
53
+ public:
54
+ friend bool operator==(const LightningReceive& lhs, const LightningReceive& rhs) = default;
46
55
  };
47
56
 
48
57
  } // namespace margelo::nitro::nitroark
@@ -55,18 +64,20 @@ namespace margelo::nitro {
55
64
  static inline margelo::nitro::nitroark::LightningReceive fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
56
65
  jsi::Object obj = arg.asObject(runtime);
57
66
  return margelo::nitro::nitroark::LightningReceive(
58
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "payment_hash")),
59
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "payment_preimage")),
60
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "invoice")),
61
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "preimage_revealed_at"))
67
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_hash"))),
68
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_preimage"))),
69
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "invoice"))),
70
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "preimage_revealed_at"))),
71
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "finished_at")))
62
72
  );
63
73
  }
64
74
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::LightningReceive& arg) {
65
75
  jsi::Object obj(runtime);
66
- obj.setProperty(runtime, "payment_hash", JSIConverter<std::string>::toJSI(runtime, arg.payment_hash));
67
- obj.setProperty(runtime, "payment_preimage", JSIConverter<std::string>::toJSI(runtime, arg.payment_preimage));
68
- obj.setProperty(runtime, "invoice", JSIConverter<std::string>::toJSI(runtime, arg.invoice));
69
- obj.setProperty(runtime, "preimage_revealed_at", JSIConverter<std::optional<double>>::toJSI(runtime, arg.preimage_revealed_at));
76
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "payment_hash"), JSIConverter<std::string>::toJSI(runtime, arg.payment_hash));
77
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "payment_preimage"), JSIConverter<std::string>::toJSI(runtime, arg.payment_preimage));
78
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "invoice"), JSIConverter<std::string>::toJSI(runtime, arg.invoice));
79
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "preimage_revealed_at"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.preimage_revealed_at));
80
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "finished_at"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.finished_at));
70
81
  return obj;
71
82
  }
72
83
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -77,10 +88,11 @@ namespace margelo::nitro {
77
88
  if (!nitro::isPlainObject(runtime, obj)) {
78
89
  return false;
79
90
  }
80
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "payment_hash"))) return false;
81
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "payment_preimage"))) return false;
82
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "invoice"))) return false;
83
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "preimage_revealed_at"))) return false;
91
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_hash")))) return false;
92
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_preimage")))) return false;
93
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "invoice")))) return false;
94
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "preimage_revealed_at")))) return false;
95
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "finished_at")))) return false;
84
96
  return true;
85
97
  }
86
98
  };
@@ -2,7 +2,7 @@
2
2
  /// LightningSendResult.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
  // Forward declaration of `BarkVtxo` to properly resolve imports.
27
32
  namespace margelo::nitro::nitroark { struct BarkVtxo; }
@@ -38,7 +43,7 @@ namespace margelo::nitro::nitroark {
38
43
  /**
39
44
  * A struct which can be represented as a JavaScript object (LightningSendResult).
40
45
  */
41
- struct LightningSendResult {
46
+ struct LightningSendResult final {
42
47
  public:
43
48
  std::string invoice SWIFT_PRIVATE;
44
49
  std::string payment_hash SWIFT_PRIVATE;
@@ -50,6 +55,9 @@ namespace margelo::nitro::nitroark {
50
55
  public:
51
56
  LightningSendResult() = default;
52
57
  explicit LightningSendResult(std::string invoice, std::string payment_hash, double amount, std::vector<BarkVtxo> htlc_vtxos, double movement_id, std::optional<std::variant<nitro::NullType, std::string>> preimage): invoice(invoice), payment_hash(payment_hash), amount(amount), htlc_vtxos(htlc_vtxos), movement_id(movement_id), preimage(preimage) {}
58
+
59
+ public:
60
+ friend bool operator==(const LightningSendResult& lhs, const LightningSendResult& rhs) = default;
53
61
  };
54
62
 
55
63
  } // namespace margelo::nitro::nitroark
@@ -62,22 +70,22 @@ namespace margelo::nitro {
62
70
  static inline margelo::nitro::nitroark::LightningSendResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
63
71
  jsi::Object obj = arg.asObject(runtime);
64
72
  return margelo::nitro::nitroark::LightningSendResult(
65
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "invoice")),
66
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "payment_hash")),
67
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "amount")),
68
- JSIConverter<std::vector<margelo::nitro::nitroark::BarkVtxo>>::fromJSI(runtime, obj.getProperty(runtime, "htlc_vtxos")),
69
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "movement_id")),
70
- JSIConverter<std::optional<std::variant<nitro::NullType, std::string>>>::fromJSI(runtime, obj.getProperty(runtime, "preimage"))
73
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "invoice"))),
74
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_hash"))),
75
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amount"))),
76
+ JSIConverter<std::vector<margelo::nitro::nitroark::BarkVtxo>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "htlc_vtxos"))),
77
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "movement_id"))),
78
+ JSIConverter<std::optional<std::variant<nitro::NullType, std::string>>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "preimage")))
71
79
  );
72
80
  }
73
81
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::LightningSendResult& arg) {
74
82
  jsi::Object obj(runtime);
75
- obj.setProperty(runtime, "invoice", JSIConverter<std::string>::toJSI(runtime, arg.invoice));
76
- obj.setProperty(runtime, "payment_hash", JSIConverter<std::string>::toJSI(runtime, arg.payment_hash));
77
- obj.setProperty(runtime, "amount", JSIConverter<double>::toJSI(runtime, arg.amount));
78
- obj.setProperty(runtime, "htlc_vtxos", JSIConverter<std::vector<margelo::nitro::nitroark::BarkVtxo>>::toJSI(runtime, arg.htlc_vtxos));
79
- obj.setProperty(runtime, "movement_id", JSIConverter<double>::toJSI(runtime, arg.movement_id));
80
- obj.setProperty(runtime, "preimage", JSIConverter<std::optional<std::variant<nitro::NullType, std::string>>>::toJSI(runtime, arg.preimage));
83
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "invoice"), JSIConverter<std::string>::toJSI(runtime, arg.invoice));
84
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "payment_hash"), JSIConverter<std::string>::toJSI(runtime, arg.payment_hash));
85
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "amount"), JSIConverter<double>::toJSI(runtime, arg.amount));
86
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "htlc_vtxos"), JSIConverter<std::vector<margelo::nitro::nitroark::BarkVtxo>>::toJSI(runtime, arg.htlc_vtxos));
87
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "movement_id"), JSIConverter<double>::toJSI(runtime, arg.movement_id));
88
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "preimage"), JSIConverter<std::optional<std::variant<nitro::NullType, std::string>>>::toJSI(runtime, arg.preimage));
81
89
  return obj;
82
90
  }
83
91
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -88,12 +96,12 @@ namespace margelo::nitro {
88
96
  if (!nitro::isPlainObject(runtime, obj)) {
89
97
  return false;
90
98
  }
91
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "invoice"))) return false;
92
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "payment_hash"))) return false;
93
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "amount"))) return false;
94
- if (!JSIConverter<std::vector<margelo::nitro::nitroark::BarkVtxo>>::canConvert(runtime, obj.getProperty(runtime, "htlc_vtxos"))) return false;
95
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "movement_id"))) return false;
96
- if (!JSIConverter<std::optional<std::variant<nitro::NullType, std::string>>>::canConvert(runtime, obj.getProperty(runtime, "preimage"))) return false;
99
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "invoice")))) return false;
100
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_hash")))) return false;
101
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amount")))) return false;
102
+ if (!JSIConverter<std::vector<margelo::nitro::nitroark::BarkVtxo>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "htlc_vtxos")))) return false;
103
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "movement_id")))) return false;
104
+ if (!JSIConverter<std::optional<std::variant<nitro::NullType, std::string>>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "preimage")))) return false;
97
105
  return true;
98
106
  }
99
107
  };
@@ -2,7 +2,7 @@
2
2
  /// NewAddressResult.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,6 +22,11 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
25
30
 
26
31
 
27
32
 
@@ -32,7 +37,7 @@ namespace margelo::nitro::nitroark {
32
37
  /**
33
38
  * A struct which can be represented as a JavaScript object (NewAddressResult).
34
39
  */
35
- struct NewAddressResult {
40
+ struct NewAddressResult final {
36
41
  public:
37
42
  std::string user_pubkey SWIFT_PRIVATE;
38
43
  std::string ark_id SWIFT_PRIVATE;
@@ -41,6 +46,9 @@ namespace margelo::nitro::nitroark {
41
46
  public:
42
47
  NewAddressResult() = default;
43
48
  explicit NewAddressResult(std::string user_pubkey, std::string ark_id, std::string address): user_pubkey(user_pubkey), ark_id(ark_id), address(address) {}
49
+
50
+ public:
51
+ friend bool operator==(const NewAddressResult& lhs, const NewAddressResult& rhs) = default;
44
52
  };
45
53
 
46
54
  } // namespace margelo::nitro::nitroark
@@ -53,16 +61,16 @@ namespace margelo::nitro {
53
61
  static inline margelo::nitro::nitroark::NewAddressResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
54
62
  jsi::Object obj = arg.asObject(runtime);
55
63
  return margelo::nitro::nitroark::NewAddressResult(
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "user_pubkey")),
57
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "ark_id")),
58
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "address"))
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "user_pubkey"))),
65
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ark_id"))),
66
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "address")))
59
67
  );
60
68
  }
61
69
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::NewAddressResult& arg) {
62
70
  jsi::Object obj(runtime);
63
- obj.setProperty(runtime, "user_pubkey", JSIConverter<std::string>::toJSI(runtime, arg.user_pubkey));
64
- obj.setProperty(runtime, "ark_id", JSIConverter<std::string>::toJSI(runtime, arg.ark_id));
65
- obj.setProperty(runtime, "address", JSIConverter<std::string>::toJSI(runtime, arg.address));
71
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "user_pubkey"), JSIConverter<std::string>::toJSI(runtime, arg.user_pubkey));
72
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "ark_id"), JSIConverter<std::string>::toJSI(runtime, arg.ark_id));
73
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "address"), JSIConverter<std::string>::toJSI(runtime, arg.address));
66
74
  return obj;
67
75
  }
68
76
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -73,9 +81,9 @@ namespace margelo::nitro {
73
81
  if (!nitro::isPlainObject(runtime, obj)) {
74
82
  return false;
75
83
  }
76
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "user_pubkey"))) return false;
77
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "ark_id"))) return false;
78
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "address"))) return false;
84
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "user_pubkey")))) return false;
85
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ark_id")))) return false;
86
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "address")))) return false;
79
87
  return true;
80
88
  }
81
89
  };