react-native-nitro-ark 0.0.107 → 0.0.109

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,IAAI,6BAA6B,EACzD,cAAc,IAAI,mBAAmB,EACrC,gBAAgB,IAAI,qBAAqB,EACzC,4BAA4B,IAAI,iCAAiC,EACjE,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,IAAI,0BAA0B,EACnD,4BAA4B,EAC5B,YAAY,IAAI,iBAAiB,EACjC,uBAAuB,IAAI,4BAA4B,EACvD,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,YAAY,GACZ,eAAe,GACf,WAAW,GACX,iBAAiB,GACjB,SAAS,CAAC;AAEd,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,6BAA6B,EAC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;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,mBAAmB,CAAC,CAE9B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,CAAC,CAE1B;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,CAAC,CAE1B;AAID;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EAAE,EACjB,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEvE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,eAAe,CAAC,CAE1B;AAGD,YAAY,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GACjB,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,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V,QAAQ,EACR,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GACjB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,87 @@
1
+ ///
2
+ /// ExitBlockRefResult.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/JSIHelpers.hpp>)
21
+ #include <NitroModules/JSIHelpers.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
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
30
+
31
+
32
+
33
+ #include <string>
34
+
35
+ namespace margelo::nitro::nitroark {
36
+
37
+ /**
38
+ * A struct which can be represented as a JavaScript object (ExitBlockRefResult).
39
+ */
40
+ struct ExitBlockRefResult final {
41
+ public:
42
+ double height SWIFT_PRIVATE;
43
+ std::string hash SWIFT_PRIVATE;
44
+
45
+ public:
46
+ ExitBlockRefResult() = default;
47
+ explicit ExitBlockRefResult(double height, std::string hash): height(height), hash(hash) {}
48
+
49
+ public:
50
+ friend bool operator==(const ExitBlockRefResult& lhs, const ExitBlockRefResult& rhs) = default;
51
+ };
52
+
53
+ } // namespace margelo::nitro::nitroark
54
+
55
+ namespace margelo::nitro {
56
+
57
+ // C++ ExitBlockRefResult <> JS ExitBlockRefResult (object)
58
+ template <>
59
+ struct JSIConverter<margelo::nitro::nitroark::ExitBlockRefResult> final {
60
+ static inline margelo::nitro::nitroark::ExitBlockRefResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
61
+ jsi::Object obj = arg.asObject(runtime);
62
+ return margelo::nitro::nitroark::ExitBlockRefResult(
63
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "height"))),
64
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hash")))
65
+ );
66
+ }
67
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::ExitBlockRefResult& arg) {
68
+ jsi::Object obj(runtime);
69
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "height"), JSIConverter<double>::toJSI(runtime, arg.height));
70
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "hash"), JSIConverter<std::string>::toJSI(runtime, arg.hash));
71
+ return obj;
72
+ }
73
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
74
+ if (!value.isObject()) {
75
+ return false;
76
+ }
77
+ jsi::Object obj = value.getObject(runtime);
78
+ if (!nitro::isPlainObject(runtime, obj)) {
79
+ return false;
80
+ }
81
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "height")))) return false;
82
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hash")))) return false;
83
+ return true;
84
+ }
85
+ };
86
+
87
+ } // namespace margelo::nitro
@@ -28,9 +28,11 @@
28
28
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
29
  #endif
30
30
 
31
-
31
+ // Forward declaration of `ExitStateDetailsResult` to properly resolve imports.
32
+ namespace margelo::nitro::nitroark { struct ExitStateDetailsResult; }
32
33
 
33
34
  #include <string>
35
+ #include "ExitStateDetailsResult.hpp"
34
36
  #include <optional>
35
37
 
36
38
  namespace margelo::nitro::nitroark {
@@ -42,11 +44,12 @@ namespace margelo::nitro::nitroark {
42
44
  public:
43
45
  std::string vtxo_id SWIFT_PRIVATE;
44
46
  std::string state SWIFT_PRIVATE;
47
+ ExitStateDetailsResult state_details SWIFT_PRIVATE;
45
48
  std::optional<std::string> error SWIFT_PRIVATE;
46
49
 
47
50
  public:
48
51
  ExitProgressStatusResult() = default;
49
- explicit ExitProgressStatusResult(std::string vtxo_id, std::string state, std::optional<std::string> error): vtxo_id(vtxo_id), state(state), error(error) {}
52
+ explicit ExitProgressStatusResult(std::string vtxo_id, std::string state, ExitStateDetailsResult state_details, std::optional<std::string> error): vtxo_id(vtxo_id), state(state), state_details(state_details), error(error) {}
50
53
 
51
54
  public:
52
55
  friend bool operator==(const ExitProgressStatusResult& lhs, const ExitProgressStatusResult& rhs) = default;
@@ -64,6 +67,7 @@ namespace margelo::nitro {
64
67
  return margelo::nitro::nitroark::ExitProgressStatusResult(
65
68
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "vtxo_id"))),
66
69
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state"))),
70
+ JSIConverter<margelo::nitro::nitroark::ExitStateDetailsResult>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state_details"))),
67
71
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "error")))
68
72
  );
69
73
  }
@@ -71,6 +75,7 @@ namespace margelo::nitro {
71
75
  jsi::Object obj(runtime);
72
76
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "vtxo_id"), JSIConverter<std::string>::toJSI(runtime, arg.vtxo_id));
73
77
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "state"), JSIConverter<std::string>::toJSI(runtime, arg.state));
78
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "state_details"), JSIConverter<margelo::nitro::nitroark::ExitStateDetailsResult>::toJSI(runtime, arg.state_details));
74
79
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "error"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.error));
75
80
  return obj;
76
81
  }
@@ -84,6 +89,7 @@ namespace margelo::nitro {
84
89
  }
85
90
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "vtxo_id")))) return false;
86
91
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state")))) return false;
92
+ if (!JSIConverter<margelo::nitro::nitroark::ExitStateDetailsResult>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state_details")))) return false;
87
93
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "error")))) return false;
88
94
  return true;
89
95
  }
@@ -0,0 +1,126 @@
1
+ ///
2
+ /// ExitStateDetailsResult.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/JSIHelpers.hpp>)
21
+ #include <NitroModules/JSIHelpers.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
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
30
+
31
+ // Forward declaration of `ExitTxResult` to properly resolve imports.
32
+ namespace margelo::nitro::nitroark { struct ExitTxResult; }
33
+ // Forward declaration of `ExitBlockRefResult` to properly resolve imports.
34
+ namespace margelo::nitro::nitroark { struct ExitBlockRefResult; }
35
+
36
+ #include <string>
37
+ #include "ExitTxResult.hpp"
38
+ #include <vector>
39
+ #include <optional>
40
+ #include "ExitBlockRefResult.hpp"
41
+
42
+ namespace margelo::nitro::nitroark {
43
+
44
+ /**
45
+ * A struct which can be represented as a JavaScript object (ExitStateDetailsResult).
46
+ */
47
+ struct ExitStateDetailsResult final {
48
+ public:
49
+ std::string kind SWIFT_PRIVATE;
50
+ double tip_height SWIFT_PRIVATE;
51
+ std::optional<std::vector<ExitTxResult>> transactions SWIFT_PRIVATE;
52
+ std::optional<ExitBlockRefResult> confirmed_block SWIFT_PRIVATE;
53
+ std::optional<double> claimable_height SWIFT_PRIVATE;
54
+ std::optional<ExitBlockRefResult> claimable_since SWIFT_PRIVATE;
55
+ std::optional<ExitBlockRefResult> last_scanned_block SWIFT_PRIVATE;
56
+ std::optional<std::string> claim_txid SWIFT_PRIVATE;
57
+ std::optional<std::string> txid SWIFT_PRIVATE;
58
+ std::optional<ExitBlockRefResult> block SWIFT_PRIVATE;
59
+
60
+ public:
61
+ ExitStateDetailsResult() = default;
62
+ explicit ExitStateDetailsResult(std::string kind, double tip_height, std::optional<std::vector<ExitTxResult>> transactions, std::optional<ExitBlockRefResult> confirmed_block, std::optional<double> claimable_height, std::optional<ExitBlockRefResult> claimable_since, std::optional<ExitBlockRefResult> last_scanned_block, std::optional<std::string> claim_txid, std::optional<std::string> txid, std::optional<ExitBlockRefResult> block): kind(kind), tip_height(tip_height), transactions(transactions), confirmed_block(confirmed_block), claimable_height(claimable_height), claimable_since(claimable_since), last_scanned_block(last_scanned_block), claim_txid(claim_txid), txid(txid), block(block) {}
63
+
64
+ public:
65
+ friend bool operator==(const ExitStateDetailsResult& lhs, const ExitStateDetailsResult& rhs) = default;
66
+ };
67
+
68
+ } // namespace margelo::nitro::nitroark
69
+
70
+ namespace margelo::nitro {
71
+
72
+ // C++ ExitStateDetailsResult <> JS ExitStateDetailsResult (object)
73
+ template <>
74
+ struct JSIConverter<margelo::nitro::nitroark::ExitStateDetailsResult> final {
75
+ static inline margelo::nitro::nitroark::ExitStateDetailsResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
76
+ jsi::Object obj = arg.asObject(runtime);
77
+ return margelo::nitro::nitroark::ExitStateDetailsResult(
78
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "kind"))),
79
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "tip_height"))),
80
+ JSIConverter<std::optional<std::vector<margelo::nitro::nitroark::ExitTxResult>>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "transactions"))),
81
+ JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "confirmed_block"))),
82
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "claimable_height"))),
83
+ JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "claimable_since"))),
84
+ JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "last_scanned_block"))),
85
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "claim_txid"))),
86
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "txid"))),
87
+ JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "block")))
88
+ );
89
+ }
90
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::ExitStateDetailsResult& arg) {
91
+ jsi::Object obj(runtime);
92
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "kind"), JSIConverter<std::string>::toJSI(runtime, arg.kind));
93
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "tip_height"), JSIConverter<double>::toJSI(runtime, arg.tip_height));
94
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "transactions"), JSIConverter<std::optional<std::vector<margelo::nitro::nitroark::ExitTxResult>>>::toJSI(runtime, arg.transactions));
95
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "confirmed_block"), JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::toJSI(runtime, arg.confirmed_block));
96
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "claimable_height"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.claimable_height));
97
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "claimable_since"), JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::toJSI(runtime, arg.claimable_since));
98
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "last_scanned_block"), JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::toJSI(runtime, arg.last_scanned_block));
99
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "claim_txid"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.claim_txid));
100
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "txid"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.txid));
101
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "block"), JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::toJSI(runtime, arg.block));
102
+ return obj;
103
+ }
104
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
105
+ if (!value.isObject()) {
106
+ return false;
107
+ }
108
+ jsi::Object obj = value.getObject(runtime);
109
+ if (!nitro::isPlainObject(runtime, obj)) {
110
+ return false;
111
+ }
112
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "kind")))) return false;
113
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "tip_height")))) return false;
114
+ if (!JSIConverter<std::optional<std::vector<margelo::nitro::nitroark::ExitTxResult>>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "transactions")))) return false;
115
+ if (!JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "confirmed_block")))) return false;
116
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "claimable_height")))) return false;
117
+ if (!JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "claimable_since")))) return false;
118
+ if (!JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "last_scanned_block")))) return false;
119
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "claim_txid")))) return false;
120
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "txid")))) return false;
121
+ if (!JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "block")))) return false;
122
+ return true;
123
+ }
124
+ };
125
+
126
+ } // namespace margelo::nitro
@@ -28,10 +28,13 @@
28
28
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
29
  #endif
30
30
 
31
+ // Forward declaration of `ExitStateDetailsResult` to properly resolve imports.
32
+ namespace margelo::nitro::nitroark { struct ExitStateDetailsResult; }
31
33
  // Forward declaration of `ExitTransactionPackageResult` to properly resolve imports.
32
34
  namespace margelo::nitro::nitroark { struct ExitTransactionPackageResult; }
33
35
 
34
36
  #include <string>
37
+ #include "ExitStateDetailsResult.hpp"
35
38
  #include <vector>
36
39
  #include "ExitTransactionPackageResult.hpp"
37
40
 
@@ -44,12 +47,14 @@ namespace margelo::nitro::nitroark {
44
47
  public:
45
48
  std::string vtxo_id SWIFT_PRIVATE;
46
49
  std::string state SWIFT_PRIVATE;
50
+ ExitStateDetailsResult state_details SWIFT_PRIVATE;
47
51
  std::vector<std::string> history SWIFT_PRIVATE;
52
+ std::vector<ExitStateDetailsResult> history_details SWIFT_PRIVATE;
48
53
  std::vector<ExitTransactionPackageResult> transactions SWIFT_PRIVATE;
49
54
 
50
55
  public:
51
56
  ExitStatusResult() = default;
52
- explicit ExitStatusResult(std::string vtxo_id, std::string state, std::vector<std::string> history, std::vector<ExitTransactionPackageResult> transactions): vtxo_id(vtxo_id), state(state), history(history), transactions(transactions) {}
57
+ explicit ExitStatusResult(std::string vtxo_id, std::string state, ExitStateDetailsResult state_details, std::vector<std::string> history, std::vector<ExitStateDetailsResult> history_details, std::vector<ExitTransactionPackageResult> transactions): vtxo_id(vtxo_id), state(state), state_details(state_details), history(history), history_details(history_details), transactions(transactions) {}
53
58
 
54
59
  public:
55
60
  friend bool operator==(const ExitStatusResult& lhs, const ExitStatusResult& rhs) = default;
@@ -67,7 +72,9 @@ namespace margelo::nitro {
67
72
  return margelo::nitro::nitroark::ExitStatusResult(
68
73
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "vtxo_id"))),
69
74
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state"))),
75
+ JSIConverter<margelo::nitro::nitroark::ExitStateDetailsResult>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state_details"))),
70
76
  JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "history"))),
77
+ JSIConverter<std::vector<margelo::nitro::nitroark::ExitStateDetailsResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "history_details"))),
71
78
  JSIConverter<std::vector<margelo::nitro::nitroark::ExitTransactionPackageResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "transactions")))
72
79
  );
73
80
  }
@@ -75,7 +82,9 @@ namespace margelo::nitro {
75
82
  jsi::Object obj(runtime);
76
83
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "vtxo_id"), JSIConverter<std::string>::toJSI(runtime, arg.vtxo_id));
77
84
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "state"), JSIConverter<std::string>::toJSI(runtime, arg.state));
85
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "state_details"), JSIConverter<margelo::nitro::nitroark::ExitStateDetailsResult>::toJSI(runtime, arg.state_details));
78
86
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "history"), JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.history));
87
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "history_details"), JSIConverter<std::vector<margelo::nitro::nitroark::ExitStateDetailsResult>>::toJSI(runtime, arg.history_details));
79
88
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "transactions"), JSIConverter<std::vector<margelo::nitro::nitroark::ExitTransactionPackageResult>>::toJSI(runtime, arg.transactions));
80
89
  return obj;
81
90
  }
@@ -89,7 +98,9 @@ namespace margelo::nitro {
89
98
  }
90
99
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "vtxo_id")))) return false;
91
100
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state")))) return false;
101
+ if (!JSIConverter<margelo::nitro::nitroark::ExitStateDetailsResult>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state_details")))) return false;
92
102
  if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "history")))) return false;
103
+ if (!JSIConverter<std::vector<margelo::nitro::nitroark::ExitStateDetailsResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "history_details")))) return false;
93
104
  if (!JSIConverter<std::vector<margelo::nitro::nitroark::ExitTransactionPackageResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "transactions")))) return false;
94
105
  return true;
95
106
  }
@@ -0,0 +1,98 @@
1
+ ///
2
+ /// ExitTxOriginResult.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/JSIHelpers.hpp>)
21
+ #include <NitroModules/JSIHelpers.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
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
30
+
31
+ // Forward declaration of `ExitBlockRefResult` to properly resolve imports.
32
+ namespace margelo::nitro::nitroark { struct ExitBlockRefResult; }
33
+
34
+ #include <string>
35
+ #include "ExitBlockRefResult.hpp"
36
+ #include <optional>
37
+
38
+ namespace margelo::nitro::nitroark {
39
+
40
+ /**
41
+ * A struct which can be represented as a JavaScript object (ExitTxOriginResult).
42
+ */
43
+ struct ExitTxOriginResult final {
44
+ public:
45
+ std::string kind SWIFT_PRIVATE;
46
+ std::optional<ExitBlockRefResult> confirmed_in SWIFT_PRIVATE;
47
+ std::optional<double> fee_rate_sat_per_kvb SWIFT_PRIVATE;
48
+ std::optional<double> total_fee_sat SWIFT_PRIVATE;
49
+
50
+ public:
51
+ ExitTxOriginResult() = default;
52
+ explicit ExitTxOriginResult(std::string kind, std::optional<ExitBlockRefResult> confirmed_in, std::optional<double> fee_rate_sat_per_kvb, std::optional<double> total_fee_sat): kind(kind), confirmed_in(confirmed_in), fee_rate_sat_per_kvb(fee_rate_sat_per_kvb), total_fee_sat(total_fee_sat) {}
53
+
54
+ public:
55
+ friend bool operator==(const ExitTxOriginResult& lhs, const ExitTxOriginResult& rhs) = default;
56
+ };
57
+
58
+ } // namespace margelo::nitro::nitroark
59
+
60
+ namespace margelo::nitro {
61
+
62
+ // C++ ExitTxOriginResult <> JS ExitTxOriginResult (object)
63
+ template <>
64
+ struct JSIConverter<margelo::nitro::nitroark::ExitTxOriginResult> final {
65
+ static inline margelo::nitro::nitroark::ExitTxOriginResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
66
+ jsi::Object obj = arg.asObject(runtime);
67
+ return margelo::nitro::nitroark::ExitTxOriginResult(
68
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "kind"))),
69
+ JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "confirmed_in"))),
70
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fee_rate_sat_per_kvb"))),
71
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "total_fee_sat")))
72
+ );
73
+ }
74
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::ExitTxOriginResult& arg) {
75
+ jsi::Object obj(runtime);
76
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "kind"), JSIConverter<std::string>::toJSI(runtime, arg.kind));
77
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "confirmed_in"), JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::toJSI(runtime, arg.confirmed_in));
78
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "fee_rate_sat_per_kvb"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.fee_rate_sat_per_kvb));
79
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "total_fee_sat"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.total_fee_sat));
80
+ return obj;
81
+ }
82
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
83
+ if (!value.isObject()) {
84
+ return false;
85
+ }
86
+ jsi::Object obj = value.getObject(runtime);
87
+ if (!nitro::isPlainObject(runtime, obj)) {
88
+ return false;
89
+ }
90
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "kind")))) return false;
91
+ if (!JSIConverter<std::optional<margelo::nitro::nitroark::ExitBlockRefResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "confirmed_in")))) return false;
92
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fee_rate_sat_per_kvb")))) return false;
93
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "total_fee_sat")))) return false;
94
+ return true;
95
+ }
96
+ };
97
+
98
+ } // namespace margelo::nitro
@@ -0,0 +1,89 @@
1
+ ///
2
+ /// ExitTxResult.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/JSIHelpers.hpp>)
21
+ #include <NitroModules/JSIHelpers.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
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
30
+
31
+ // Forward declaration of `ExitTxStatusResult` to properly resolve imports.
32
+ namespace margelo::nitro::nitroark { struct ExitTxStatusResult; }
33
+
34
+ #include <string>
35
+ #include "ExitTxStatusResult.hpp"
36
+
37
+ namespace margelo::nitro::nitroark {
38
+
39
+ /**
40
+ * A struct which can be represented as a JavaScript object (ExitTxResult).
41
+ */
42
+ struct ExitTxResult final {
43
+ public:
44
+ std::string txid SWIFT_PRIVATE;
45
+ ExitTxStatusResult status SWIFT_PRIVATE;
46
+
47
+ public:
48
+ ExitTxResult() = default;
49
+ explicit ExitTxResult(std::string txid, ExitTxStatusResult status): txid(txid), status(status) {}
50
+
51
+ public:
52
+ friend bool operator==(const ExitTxResult& lhs, const ExitTxResult& rhs) = default;
53
+ };
54
+
55
+ } // namespace margelo::nitro::nitroark
56
+
57
+ namespace margelo::nitro {
58
+
59
+ // C++ ExitTxResult <> JS ExitTxResult (object)
60
+ template <>
61
+ struct JSIConverter<margelo::nitro::nitroark::ExitTxResult> final {
62
+ static inline margelo::nitro::nitroark::ExitTxResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
63
+ jsi::Object obj = arg.asObject(runtime);
64
+ return margelo::nitro::nitroark::ExitTxResult(
65
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "txid"))),
66
+ JSIConverter<margelo::nitro::nitroark::ExitTxStatusResult>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "status")))
67
+ );
68
+ }
69
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::ExitTxResult& arg) {
70
+ jsi::Object obj(runtime);
71
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "txid"), JSIConverter<std::string>::toJSI(runtime, arg.txid));
72
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "status"), JSIConverter<margelo::nitro::nitroark::ExitTxStatusResult>::toJSI(runtime, arg.status));
73
+ return obj;
74
+ }
75
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
76
+ if (!value.isObject()) {
77
+ return false;
78
+ }
79
+ jsi::Object obj = value.getObject(runtime);
80
+ if (!nitro::isPlainObject(runtime, obj)) {
81
+ return false;
82
+ }
83
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "txid")))) return false;
84
+ if (!JSIConverter<margelo::nitro::nitroark::ExitTxStatusResult>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "status")))) return false;
85
+ return true;
86
+ }
87
+ };
88
+
89
+ } // namespace margelo::nitro