react-native-nitro-ark 0.0.83 → 0.0.85

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 (41) hide show
  1. package/cpp/generated/ark_cxx.h +0 -13
  2. package/lib/typescript/src/NitroArk.nitro.d.ts +0 -4
  3. package/lib/typescript/src/NitroArk.nitro.d.ts.map +1 -1
  4. package/lib/typescript/src/index.d.ts +1 -1
  5. package/lib/typescript/src/index.d.ts.map +1 -1
  6. package/nitrogen/generated/android/NitroArk+autolinking.cmake +1 -1
  7. package/nitrogen/generated/android/NitroArk+autolinking.gradle +1 -1
  8. package/nitrogen/generated/android/NitroArkOnLoad.cpp +1 -1
  9. package/nitrogen/generated/android/NitroArkOnLoad.hpp +1 -1
  10. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroark/NitroArkOnLoad.kt +1 -1
  11. package/nitrogen/generated/ios/NitroArk+autolinking.rb +2 -2
  12. package/nitrogen/generated/ios/NitroArk-Swift-Cxx-Bridge.cpp +1 -1
  13. package/nitrogen/generated/ios/NitroArk-Swift-Cxx-Bridge.hpp +1 -1
  14. package/nitrogen/generated/ios/NitroArk-Swift-Cxx-Umbrella.hpp +1 -1
  15. package/nitrogen/generated/ios/NitroArkAutolinking.mm +1 -1
  16. package/nitrogen/generated/ios/NitroArkAutolinking.swift +1 -1
  17. package/nitrogen/generated/shared/c++/ArkoorPaymentResult.hpp +19 -11
  18. package/nitrogen/generated/shared/c++/BarkArkInfo.hpp +37 -29
  19. package/nitrogen/generated/shared/c++/BarkConfigOpts.hpp +43 -35
  20. package/nitrogen/generated/shared/c++/BarkCreateOpts.hpp +28 -20
  21. package/nitrogen/generated/shared/c++/BarkMovement.hpp +55 -47
  22. package/nitrogen/generated/shared/c++/BarkMovementDestination.hpp +19 -11
  23. package/nitrogen/generated/shared/c++/BarkMovementSubsystem.hpp +16 -8
  24. package/nitrogen/generated/shared/c++/BarkSendManyOutput.hpp +16 -8
  25. package/nitrogen/generated/shared/c++/BarkVtxo.hpp +31 -23
  26. package/nitrogen/generated/shared/c++/BoardResult.hpp +16 -8
  27. package/nitrogen/generated/shared/c++/Bolt11Invoice.hpp +19 -11
  28. package/nitrogen/generated/shared/c++/HybridNitroArkSpec.cpp +1 -1
  29. package/nitrogen/generated/shared/c++/HybridNitroArkSpec.hpp +1 -1
  30. package/nitrogen/generated/shared/c++/KeyPairResult.hpp +16 -8
  31. package/nitrogen/generated/shared/c++/LightningReceive.hpp +25 -17
  32. package/nitrogen/generated/shared/c++/LightningSendResult.hpp +28 -20
  33. package/nitrogen/generated/shared/c++/NewAddressResult.hpp +19 -11
  34. package/nitrogen/generated/shared/c++/OffchainBalanceResult.hpp +25 -17
  35. package/nitrogen/generated/shared/c++/OnchainBalanceResult.hpp +22 -14
  36. package/nitrogen/generated/shared/c++/OnchainPaymentResult.hpp +19 -11
  37. package/nitrogen/generated/shared/c++/RoundStatus.hpp +28 -20
  38. package/nitrogen/generated/shared/c++/RoundStatusType.hpp +1 -1
  39. package/package.json +4 -4
  40. package/src/NitroArk.nitro.ts +0 -7
  41. package/src/index.tsx +0 -1
@@ -2,7 +2,7 @@
2
2
  /// BarkCreateOpts.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 © 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 `BarkConfigOpts` to properly resolve imports.
27
32
  namespace margelo::nitro::nitroark { struct BarkConfigOpts; }
@@ -35,7 +40,7 @@ namespace margelo::nitro::nitroark {
35
40
  /**
36
41
  * A struct which can be represented as a JavaScript object (BarkCreateOpts).
37
42
  */
38
- struct BarkCreateOpts {
43
+ struct BarkCreateOpts final {
39
44
  public:
40
45
  std::optional<bool> regtest SWIFT_PRIVATE;
41
46
  std::optional<bool> signet SWIFT_PRIVATE;
@@ -47,6 +52,9 @@ namespace margelo::nitro::nitroark {
47
52
  public:
48
53
  BarkCreateOpts() = default;
49
54
  explicit BarkCreateOpts(std::optional<bool> regtest, std::optional<bool> signet, std::optional<bool> bitcoin, std::string mnemonic, std::optional<double> birthday_height, std::optional<BarkConfigOpts> config): regtest(regtest), signet(signet), bitcoin(bitcoin), mnemonic(mnemonic), birthday_height(birthday_height), config(config) {}
55
+
56
+ public:
57
+ friend bool operator==(const BarkCreateOpts& lhs, const BarkCreateOpts& rhs) = default;
50
58
  };
51
59
 
52
60
  } // namespace margelo::nitro::nitroark
@@ -59,22 +67,22 @@ namespace margelo::nitro {
59
67
  static inline margelo::nitro::nitroark::BarkCreateOpts fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
60
68
  jsi::Object obj = arg.asObject(runtime);
61
69
  return margelo::nitro::nitroark::BarkCreateOpts(
62
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "regtest")),
63
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "signet")),
64
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "bitcoin")),
65
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "mnemonic")),
66
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "birthday_height")),
67
- JSIConverter<std::optional<margelo::nitro::nitroark::BarkConfigOpts>>::fromJSI(runtime, obj.getProperty(runtime, "config"))
70
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "regtest"))),
71
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signet"))),
72
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bitcoin"))),
73
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "mnemonic"))),
74
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "birthday_height"))),
75
+ JSIConverter<std::optional<margelo::nitro::nitroark::BarkConfigOpts>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "config")))
68
76
  );
69
77
  }
70
78
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BarkCreateOpts& arg) {
71
79
  jsi::Object obj(runtime);
72
- obj.setProperty(runtime, "regtest", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.regtest));
73
- obj.setProperty(runtime, "signet", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.signet));
74
- obj.setProperty(runtime, "bitcoin", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.bitcoin));
75
- obj.setProperty(runtime, "mnemonic", JSIConverter<std::string>::toJSI(runtime, arg.mnemonic));
76
- obj.setProperty(runtime, "birthday_height", JSIConverter<std::optional<double>>::toJSI(runtime, arg.birthday_height));
77
- obj.setProperty(runtime, "config", JSIConverter<std::optional<margelo::nitro::nitroark::BarkConfigOpts>>::toJSI(runtime, arg.config));
80
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "regtest"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.regtest));
81
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "signet"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.signet));
82
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "bitcoin"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.bitcoin));
83
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "mnemonic"), JSIConverter<std::string>::toJSI(runtime, arg.mnemonic));
84
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "birthday_height"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.birthday_height));
85
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "config"), JSIConverter<std::optional<margelo::nitro::nitroark::BarkConfigOpts>>::toJSI(runtime, arg.config));
78
86
  return obj;
79
87
  }
80
88
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -85,12 +93,12 @@ namespace margelo::nitro {
85
93
  if (!nitro::isPlainObject(runtime, obj)) {
86
94
  return false;
87
95
  }
88
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "regtest"))) return false;
89
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "signet"))) return false;
90
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "bitcoin"))) return false;
91
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "mnemonic"))) return false;
92
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "birthday_height"))) return false;
93
- if (!JSIConverter<std::optional<margelo::nitro::nitroark::BarkConfigOpts>>::canConvert(runtime, obj.getProperty(runtime, "config"))) return false;
96
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "regtest")))) return false;
97
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signet")))) return false;
98
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bitcoin")))) return false;
99
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "mnemonic")))) return false;
100
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "birthday_height")))) return false;
101
+ if (!JSIConverter<std::optional<margelo::nitro::nitroark::BarkConfigOpts>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "config")))) return false;
94
102
  return true;
95
103
  }
96
104
  };
@@ -2,7 +2,7 @@
2
2
  /// BarkMovement.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 © 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 `BarkMovementSubsystem` to properly resolve imports.
27
32
  namespace margelo::nitro::nitroark { struct BarkMovementSubsystem; }
@@ -39,7 +44,7 @@ namespace margelo::nitro::nitroark {
39
44
  /**
40
45
  * A struct which can be represented as a JavaScript object (BarkMovement).
41
46
  */
42
- struct BarkMovement {
47
+ struct BarkMovement final {
43
48
  public:
44
49
  double id SWIFT_PRIVATE;
45
50
  std::string status SWIFT_PRIVATE;
@@ -60,6 +65,9 @@ namespace margelo::nitro::nitroark {
60
65
  public:
61
66
  BarkMovement() = default;
62
67
  explicit BarkMovement(double id, std::string status, BarkMovementSubsystem subsystem, std::string metadata_json, double intended_balance_sat, double effective_balance_sat, double offchain_fee_sat, std::vector<BarkMovementDestination> sent_to, std::vector<BarkMovementDestination> received_on, std::vector<std::string> input_vtxos, std::vector<std::string> output_vtxos, std::vector<std::string> exited_vtxos, std::string created_at, std::string updated_at, std::optional<std::string> completed_at): id(id), status(status), subsystem(subsystem), metadata_json(metadata_json), intended_balance_sat(intended_balance_sat), effective_balance_sat(effective_balance_sat), offchain_fee_sat(offchain_fee_sat), sent_to(sent_to), received_on(received_on), input_vtxos(input_vtxos), output_vtxos(output_vtxos), exited_vtxos(exited_vtxos), created_at(created_at), updated_at(updated_at), completed_at(completed_at) {}
68
+
69
+ public:
70
+ friend bool operator==(const BarkMovement& lhs, const BarkMovement& rhs) = default;
63
71
  };
64
72
 
65
73
  } // namespace margelo::nitro::nitroark
@@ -72,40 +80,40 @@ namespace margelo::nitro {
72
80
  static inline margelo::nitro::nitroark::BarkMovement fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
73
81
  jsi::Object obj = arg.asObject(runtime);
74
82
  return margelo::nitro::nitroark::BarkMovement(
75
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "id")),
76
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "status")),
77
- JSIConverter<margelo::nitro::nitroark::BarkMovementSubsystem>::fromJSI(runtime, obj.getProperty(runtime, "subsystem")),
78
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "metadata_json")),
79
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "intended_balance_sat")),
80
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "effective_balance_sat")),
81
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "offchain_fee_sat")),
82
- JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::fromJSI(runtime, obj.getProperty(runtime, "sent_to")),
83
- JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::fromJSI(runtime, obj.getProperty(runtime, "received_on")),
84
- JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "input_vtxos")),
85
- JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "output_vtxos")),
86
- JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "exited_vtxos")),
87
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "created_at")),
88
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "updated_at")),
89
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "completed_at"))
83
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "id"))),
84
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "status"))),
85
+ JSIConverter<margelo::nitro::nitroark::BarkMovementSubsystem>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "subsystem"))),
86
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata_json"))),
87
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "intended_balance_sat"))),
88
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "effective_balance_sat"))),
89
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "offchain_fee_sat"))),
90
+ JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sent_to"))),
91
+ JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "received_on"))),
92
+ JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "input_vtxos"))),
93
+ JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "output_vtxos"))),
94
+ JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "exited_vtxos"))),
95
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "created_at"))),
96
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "updated_at"))),
97
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "completed_at")))
90
98
  );
91
99
  }
92
100
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BarkMovement& arg) {
93
101
  jsi::Object obj(runtime);
94
- obj.setProperty(runtime, "id", JSIConverter<double>::toJSI(runtime, arg.id));
95
- obj.setProperty(runtime, "status", JSIConverter<std::string>::toJSI(runtime, arg.status));
96
- obj.setProperty(runtime, "subsystem", JSIConverter<margelo::nitro::nitroark::BarkMovementSubsystem>::toJSI(runtime, arg.subsystem));
97
- obj.setProperty(runtime, "metadata_json", JSIConverter<std::string>::toJSI(runtime, arg.metadata_json));
98
- obj.setProperty(runtime, "intended_balance_sat", JSIConverter<double>::toJSI(runtime, arg.intended_balance_sat));
99
- obj.setProperty(runtime, "effective_balance_sat", JSIConverter<double>::toJSI(runtime, arg.effective_balance_sat));
100
- obj.setProperty(runtime, "offchain_fee_sat", JSIConverter<double>::toJSI(runtime, arg.offchain_fee_sat));
101
- obj.setProperty(runtime, "sent_to", JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::toJSI(runtime, arg.sent_to));
102
- obj.setProperty(runtime, "received_on", JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::toJSI(runtime, arg.received_on));
103
- obj.setProperty(runtime, "input_vtxos", JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.input_vtxos));
104
- obj.setProperty(runtime, "output_vtxos", JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.output_vtxos));
105
- obj.setProperty(runtime, "exited_vtxos", JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.exited_vtxos));
106
- obj.setProperty(runtime, "created_at", JSIConverter<std::string>::toJSI(runtime, arg.created_at));
107
- obj.setProperty(runtime, "updated_at", JSIConverter<std::string>::toJSI(runtime, arg.updated_at));
108
- obj.setProperty(runtime, "completed_at", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.completed_at));
102
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "id"), JSIConverter<double>::toJSI(runtime, arg.id));
103
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "status"), JSIConverter<std::string>::toJSI(runtime, arg.status));
104
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "subsystem"), JSIConverter<margelo::nitro::nitroark::BarkMovementSubsystem>::toJSI(runtime, arg.subsystem));
105
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadata_json"), JSIConverter<std::string>::toJSI(runtime, arg.metadata_json));
106
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "intended_balance_sat"), JSIConverter<double>::toJSI(runtime, arg.intended_balance_sat));
107
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "effective_balance_sat"), JSIConverter<double>::toJSI(runtime, arg.effective_balance_sat));
108
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "offchain_fee_sat"), JSIConverter<double>::toJSI(runtime, arg.offchain_fee_sat));
109
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "sent_to"), JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::toJSI(runtime, arg.sent_to));
110
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "received_on"), JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::toJSI(runtime, arg.received_on));
111
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "input_vtxos"), JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.input_vtxos));
112
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "output_vtxos"), JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.output_vtxos));
113
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "exited_vtxos"), JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.exited_vtxos));
114
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "created_at"), JSIConverter<std::string>::toJSI(runtime, arg.created_at));
115
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "updated_at"), JSIConverter<std::string>::toJSI(runtime, arg.updated_at));
116
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "completed_at"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.completed_at));
109
117
  return obj;
110
118
  }
111
119
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -116,21 +124,21 @@ namespace margelo::nitro {
116
124
  if (!nitro::isPlainObject(runtime, obj)) {
117
125
  return false;
118
126
  }
119
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
120
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "status"))) return false;
121
- if (!JSIConverter<margelo::nitro::nitroark::BarkMovementSubsystem>::canConvert(runtime, obj.getProperty(runtime, "subsystem"))) return false;
122
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "metadata_json"))) return false;
123
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "intended_balance_sat"))) return false;
124
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "effective_balance_sat"))) return false;
125
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "offchain_fee_sat"))) return false;
126
- if (!JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::canConvert(runtime, obj.getProperty(runtime, "sent_to"))) return false;
127
- if (!JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::canConvert(runtime, obj.getProperty(runtime, "received_on"))) return false;
128
- if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, "input_vtxos"))) return false;
129
- if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, "output_vtxos"))) return false;
130
- if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, "exited_vtxos"))) return false;
131
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "created_at"))) return false;
132
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "updated_at"))) return false;
133
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "completed_at"))) return false;
127
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "id")))) return false;
128
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "status")))) return false;
129
+ if (!JSIConverter<margelo::nitro::nitroark::BarkMovementSubsystem>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "subsystem")))) return false;
130
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata_json")))) return false;
131
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "intended_balance_sat")))) return false;
132
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "effective_balance_sat")))) return false;
133
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "offchain_fee_sat")))) return false;
134
+ if (!JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sent_to")))) return false;
135
+ if (!JSIConverter<std::vector<margelo::nitro::nitroark::BarkMovementDestination>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "received_on")))) return false;
136
+ if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "input_vtxos")))) return false;
137
+ if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "output_vtxos")))) return false;
138
+ if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "exited_vtxos")))) return false;
139
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "created_at")))) return false;
140
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "updated_at")))) return false;
141
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "completed_at")))) return false;
134
142
  return true;
135
143
  }
136
144
  };
@@ -2,7 +2,7 @@
2
2
  /// BarkMovementDestination.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 © 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 (BarkMovementDestination).
34
39
  */
35
- struct BarkMovementDestination {
40
+ struct BarkMovementDestination final {
36
41
  public:
37
42
  std::string destination SWIFT_PRIVATE;
38
43
  std::string payment_method SWIFT_PRIVATE;
@@ -41,6 +46,9 @@ namespace margelo::nitro::nitroark {
41
46
  public:
42
47
  BarkMovementDestination() = default;
43
48
  explicit BarkMovementDestination(std::string destination, std::string payment_method, double amount_sat): destination(destination), payment_method(payment_method), amount_sat(amount_sat) {}
49
+
50
+ public:
51
+ friend bool operator==(const BarkMovementDestination& lhs, const BarkMovementDestination& 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::BarkMovementDestination fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
54
62
  jsi::Object obj = arg.asObject(runtime);
55
63
  return margelo::nitro::nitroark::BarkMovementDestination(
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "destination")),
57
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "payment_method")),
58
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "amount_sat"))
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "destination"))),
65
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_method"))),
66
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amount_sat")))
59
67
  );
60
68
  }
61
69
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BarkMovementDestination& arg) {
62
70
  jsi::Object obj(runtime);
63
- obj.setProperty(runtime, "destination", JSIConverter<std::string>::toJSI(runtime, arg.destination));
64
- obj.setProperty(runtime, "payment_method", JSIConverter<std::string>::toJSI(runtime, arg.payment_method));
65
- obj.setProperty(runtime, "amount_sat", JSIConverter<double>::toJSI(runtime, arg.amount_sat));
71
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "destination"), JSIConverter<std::string>::toJSI(runtime, arg.destination));
72
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "payment_method"), JSIConverter<std::string>::toJSI(runtime, arg.payment_method));
73
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "amount_sat"), JSIConverter<double>::toJSI(runtime, arg.amount_sat));
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, "destination"))) return false;
77
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "payment_method"))) return false;
78
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "amount_sat"))) return false;
84
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "destination")))) return false;
85
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "payment_method")))) return false;
86
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amount_sat")))) return false;
79
87
  return true;
80
88
  }
81
89
  };
@@ -2,7 +2,7 @@
2
2
  /// BarkMovementSubsystem.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 © 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 (BarkMovementSubsystem).
34
39
  */
35
- struct BarkMovementSubsystem {
40
+ struct BarkMovementSubsystem final {
36
41
  public:
37
42
  std::string name SWIFT_PRIVATE;
38
43
  std::string kind SWIFT_PRIVATE;
@@ -40,6 +45,9 @@ namespace margelo::nitro::nitroark {
40
45
  public:
41
46
  BarkMovementSubsystem() = default;
42
47
  explicit BarkMovementSubsystem(std::string name, std::string kind): name(name), kind(kind) {}
48
+
49
+ public:
50
+ friend bool operator==(const BarkMovementSubsystem& lhs, const BarkMovementSubsystem& 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::BarkMovementSubsystem fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
61
  jsi::Object obj = arg.asObject(runtime);
54
62
  return margelo::nitro::nitroark::BarkMovementSubsystem(
55
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "name")),
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "kind"))
63
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "name"))),
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "kind")))
57
65
  );
58
66
  }
59
67
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BarkMovementSubsystem& arg) {
60
68
  jsi::Object obj(runtime);
61
- obj.setProperty(runtime, "name", JSIConverter<std::string>::toJSI(runtime, arg.name));
62
- obj.setProperty(runtime, "kind", JSIConverter<std::string>::toJSI(runtime, arg.kind));
69
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "name"), JSIConverter<std::string>::toJSI(runtime, arg.name));
70
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "kind"), JSIConverter<std::string>::toJSI(runtime, arg.kind));
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, "name"))) return false;
74
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "kind"))) return false;
81
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "name")))) return false;
82
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "kind")))) return false;
75
83
  return true;
76
84
  }
77
85
  };
@@ -2,7 +2,7 @@
2
2
  /// BarkSendManyOutput.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 © 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 (BarkSendManyOutput).
34
39
  */
35
- struct BarkSendManyOutput {
40
+ struct BarkSendManyOutput final {
36
41
  public:
37
42
  std::string destination SWIFT_PRIVATE;
38
43
  double amountSat SWIFT_PRIVATE;
@@ -40,6 +45,9 @@ namespace margelo::nitro::nitroark {
40
45
  public:
41
46
  BarkSendManyOutput() = default;
42
47
  explicit BarkSendManyOutput(std::string destination, double amountSat): destination(destination), amountSat(amountSat) {}
48
+
49
+ public:
50
+ friend bool operator==(const BarkSendManyOutput& lhs, const BarkSendManyOutput& 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::BarkSendManyOutput fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
61
  jsi::Object obj = arg.asObject(runtime);
54
62
  return margelo::nitro::nitroark::BarkSendManyOutput(
55
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "destination")),
56
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "amountSat"))
63
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "destination"))),
64
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amountSat")))
57
65
  );
58
66
  }
59
67
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BarkSendManyOutput& arg) {
60
68
  jsi::Object obj(runtime);
61
- obj.setProperty(runtime, "destination", JSIConverter<std::string>::toJSI(runtime, arg.destination));
62
- obj.setProperty(runtime, "amountSat", JSIConverter<double>::toJSI(runtime, arg.amountSat));
69
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "destination"), JSIConverter<std::string>::toJSI(runtime, arg.destination));
70
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "amountSat"), JSIConverter<double>::toJSI(runtime, arg.amountSat));
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, "destination"))) return false;
74
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "amountSat"))) return false;
81
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "destination")))) return false;
82
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "amountSat")))) return false;
75
83
  return true;
76
84
  }
77
85
  };
@@ -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 © 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
  };