@bennyblader/ddk-rn 0.3.42 → 0.4.0

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 (46) hide show
  1. package/DdkRn.podspec +1 -1
  2. package/README.md +14 -0
  3. package/android/CMakeLists.txt +6 -3
  4. package/android/build.gradle +0 -1
  5. package/android/cpp-adapter.cpp +6 -26
  6. package/android/src/main/jniLibs/arm64-v8a/libddk_ffi.so +0 -0
  7. package/android/src/main/jniLibs/armeabi-v7a/libddk_ffi.so +0 -0
  8. package/android/src/main/jniLibs/x86/libddk_ffi.so +0 -0
  9. package/android/src/main/jniLibs/x86_64/libddk_ffi.so +0 -0
  10. package/cpp/bennyblader-ddk-rn.cpp +1 -1
  11. package/cpp/ddk_ffi.cpp +2361 -2671
  12. package/cpp/ddk_ffi.hpp +86 -255
  13. package/ios/DdkRn.xcframework/Info.plist +43 -0
  14. package/ios/DdkRn.xcframework/ios-arm64/libddk_ffi.a +0 -0
  15. package/ios/DdkRn.xcframework/ios-arm64-simulator/libddk_ffi.a +0 -0
  16. package/lib/commonjs/ddk_ffi-ffi.js +6 -29
  17. package/lib/commonjs/ddk_ffi-ffi.js.map +1 -1
  18. package/lib/commonjs/ddk_ffi.js +961 -944
  19. package/lib/commonjs/ddk_ffi.js.map +1 -1
  20. package/lib/module/ddk_ffi-ffi.js +6 -29
  21. package/lib/module/ddk_ffi-ffi.js.map +1 -1
  22. package/lib/module/ddk_ffi.js +924 -896
  23. package/lib/module/ddk_ffi.js.map +1 -1
  24. package/lib/typescript/commonjs/src/ddk_ffi-ffi.d.ts +71 -96
  25. package/lib/typescript/commonjs/src/ddk_ffi-ffi.d.ts.map +1 -1
  26. package/lib/typescript/commonjs/src/ddk_ffi.d.ts +500 -471
  27. package/lib/typescript/commonjs/src/ddk_ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/ddk_ffi-ffi.d.ts +71 -96
  29. package/lib/typescript/module/src/ddk_ffi-ffi.d.ts.map +1 -1
  30. package/lib/typescript/module/src/ddk_ffi.d.ts +500 -471
  31. package/lib/typescript/module/src/ddk_ffi.d.ts.map +1 -1
  32. package/package.json +8 -38
  33. package/src/ddk_ffi-ffi.ts +419 -170
  34. package/src/ddk_ffi.ts +2648 -1939
  35. package/ubrn.config.yaml +18 -1
  36. package/ddk-ffi/Cargo.lock +0 -1013
  37. package/ddk-ffi/Cargo.toml +0 -36
  38. package/ddk-ffi/build.rs +0 -3
  39. package/ddk-ffi/rust-toolchain.toml +0 -10
  40. package/ddk-ffi/src/ddk_ffi.udl +0 -376
  41. package/ddk-ffi/src/lib.rs +0 -2509
  42. package/ddk-ffi/src/uniffi-bindgen.rs +0 -3
  43. package/ddk-ffi/uniffi.toml +0 -18
  44. package/scripts/apply-hotfix.js +0 -96
  45. package/scripts/postinstall.js +0 -298
  46. package/scripts/prepare-rust-src.js +0 -51
package/cpp/ddk_ffi.hpp CHANGED
@@ -1,270 +1,101 @@
1
- // This file was autogenerated by some hot garbage in the
2
- // `uniffi-bindgen-react-native` crate. Trust me, you don't want to mess with
3
- // it!
1
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
2
+ // Trust me, you don't want to mess with it!
4
3
  #pragma once
5
- #include "UniffiCallInvoker.h"
6
- #include <ReactCommon/CallInvoker.h>
7
- #include <iostream>
8
4
  #include <jsi/jsi.h>
5
+ #include <iostream>
9
6
  #include <map>
10
7
  #include <memory>
8
+ #include <ReactCommon/CallInvoker.h>
9
+ #include "UniffiCallInvoker.h"
11
10
 
12
11
  namespace react = facebook::react;
13
12
  namespace jsi = facebook::jsi;
14
13
 
15
14
  class NativeDdkFfi : public jsi::HostObject {
16
- private:
17
- // For calling back into JS from Rust.
18
- std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker;
15
+ private:
16
+ // For calling back into JS from Rust.
17
+ std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker;
19
18
 
20
- protected:
21
- std::map<std::string, jsi::Value> props;
22
- jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(
23
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
24
- size_t count);
25
- jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(
26
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
27
- size_t count);
28
- jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
29
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
30
- size_t count);
31
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_add_signature_to_transaction(
32
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
33
- size_t count);
34
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_convert_mnemonic_to_seed(
35
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
36
- size_t count);
37
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cet(jsi::Runtime &rt,
38
- const jsi::Value &thisVal,
39
- const jsi::Value *args,
40
- size_t count);
41
- jsi::Value
42
- cpp_uniffi_ddk_ffi_fn_func_create_cet_adaptor_points_from_oracle_info(
43
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
44
- size_t count);
45
- jsi::Value
46
- cpp_uniffi_ddk_ffi_fn_func_create_cet_adaptor_signature_from_oracle_info(
47
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
48
- size_t count);
49
- jsi::Value
50
- cpp_uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_oracle_info(
51
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
52
- size_t count);
53
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_points(
54
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
55
- size_t count);
56
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cets(jsi::Runtime &rt,
57
- const jsi::Value &thisVal,
58
- const jsi::Value *args,
59
- size_t count);
60
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_dlc_transactions(
61
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
62
- size_t count);
63
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_extkey_from_parent_path(
64
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
65
- size_t count);
66
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_extkey_from_seed(
67
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
68
- size_t count);
69
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_fund_tx_locking_script(
70
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
71
- size_t count);
72
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_refund_transaction(
73
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
74
- size_t count);
75
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_spliced_dlc_transactions(
76
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
77
- size_t count);
78
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_xpriv_from_parent_path(
79
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
80
- size_t count);
81
- jsi::Value
82
- cpp_uniffi_ddk_ffi_fn_func_extract_ecdsa_signature_from_oracle_signatures(
83
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
84
- size_t count);
85
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_cet_adaptor_signature_inputs(
86
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
87
- size_t count);
88
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_cet_sighash(
89
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
90
- size_t count);
91
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_change_output_and_fees(
92
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
93
- size_t count);
94
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_pubkey_from_extkey(
95
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
96
- size_t count);
97
- jsi::Value
98
- cpp_uniffi_ddk_ffi_fn_func_get_raw_funding_transaction_input_signature(
99
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
100
- size_t count);
101
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_total_input_vsize(
102
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
103
- size_t count);
104
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_xpub_from_xpriv(
105
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
106
- size_t count);
107
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_is_dust_output(
108
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
109
- size_t count);
110
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_sign_cet(jsi::Runtime &rt,
111
- const jsi::Value &thisVal,
112
- const jsi::Value *args,
113
- size_t count);
114
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_sign_fund_transaction_input(
115
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
116
- size_t count);
117
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_sign_multi_sig_input(
118
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
119
- size_t count);
120
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_verify_cet_adaptor_sig_from_oracle_info(
121
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
122
- size_t count);
123
- jsi::Value
124
- cpp_uniffi_ddk_ffi_fn_func_verify_cet_adaptor_sigs_from_oracle_info(
125
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
126
- size_t count);
127
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_verify_fund_tx_signature(
128
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
129
- size_t count);
130
- jsi::Value cpp_uniffi_ddk_ffi_fn_func_version(jsi::Runtime &rt,
131
- const jsi::Value &thisVal,
132
- const jsi::Value *args,
133
- size_t count);
134
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_add_signature_to_transaction(
135
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
136
- size_t count);
137
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed(
138
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
139
- size_t count);
140
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_cet(
141
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
142
- size_t count);
143
- jsi::Value
144
- cpp_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info(
145
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
146
- size_t count);
147
- jsi::Value
148
- cpp_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info(
149
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
150
- size_t count);
151
- jsi::Value
152
- cpp_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info(
153
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
154
- size_t count);
155
- jsi::Value
156
- cpp_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points(
157
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
158
- size_t count);
159
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_cets(
160
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
161
- size_t count);
162
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_dlc_transactions(
163
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
164
- size_t count);
165
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path(
166
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
167
- size_t count);
168
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_extkey_from_seed(
169
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
170
- size_t count);
171
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script(
172
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
173
- size_t count);
174
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_refund_transaction(
175
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
176
- size_t count);
177
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions(
178
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
179
- size_t count);
180
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path(
181
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
182
- size_t count);
183
- jsi::Value
184
- cpp_uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures(
185
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
186
- size_t count);
187
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_cet_adaptor_signature_inputs(
188
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
189
- size_t count);
190
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_cet_sighash(
191
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
192
- size_t count);
193
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_change_output_and_fees(
194
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
195
- size_t count);
196
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey(
197
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
198
- size_t count);
199
- jsi::Value
200
- cpp_uniffi_ddk_ffi_checksum_func_get_raw_funding_transaction_input_signature(
201
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
202
- size_t count);
203
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_total_input_vsize(
204
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
205
- size_t count);
206
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv(
207
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
208
- size_t count);
209
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_is_dust_output(
210
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
211
- size_t count);
212
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_sign_cet(
213
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
214
- size_t count);
215
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input(
216
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
217
- size_t count);
218
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_sign_multi_sig_input(
219
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
220
- size_t count);
221
- jsi::Value
222
- cpp_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info(
223
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
224
- size_t count);
225
- jsi::Value
226
- cpp_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info(
227
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
228
- size_t count);
229
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature(
230
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
231
- size_t count);
232
- jsi::Value cpp_uniffi_ddk_ffi_checksum_func_version(jsi::Runtime &rt,
233
- const jsi::Value &thisVal,
234
- const jsi::Value *args,
235
- size_t count);
236
- jsi::Value cpp_ffi_ddk_ffi_uniffi_contract_version(jsi::Runtime &rt,
237
- const jsi::Value &thisVal,
238
- const jsi::Value *args,
239
- size_t count);
19
+ protected:
20
+ std::map<std::string,jsi::Value> props;
21
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
22
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
23
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__string_from_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
24
+ jsi::Value cpp_uniffi_internal_fn_func_ffi__read_string_from_buffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
25
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_adaptorsignature_verify_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
26
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_partyparams_change_output_and_fees(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
27
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_add_signature(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
28
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_cet_adaptor_signature_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
29
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_cet_adaptor_signature_inputs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
30
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_cet_sighash(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
31
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_raw_funding_input_signature(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
32
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_sign_cet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
33
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_sign_fund_input(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
34
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_sign_multi_sig_input(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
35
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_transaction_verify_fund_signature(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
36
+ jsi::Value cpp_uniffi_ddk_ffi_fn_method_txoutput_is_dust(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
37
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_convert_mnemonic_to_seed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
38
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
39
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cet_adaptor_points_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
40
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
41
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_points(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
42
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_cets(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
43
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_dlc_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
44
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_extkey_from_parent_path(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
45
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_extkey_from_seed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
46
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_fund_tx_locking_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
47
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_refund_transaction(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
48
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_spliced_dlc_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
49
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_create_xpriv_from_parent_path(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
50
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_extract_ecdsa_signature_from_oracle_signatures(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
51
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_pubkey_from_extkey(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
52
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_total_input_vsize(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
53
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_get_xpub_from_xpriv(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
54
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_verify_cet_adaptor_sigs_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
55
+ jsi::Value cpp_uniffi_ddk_ffi_fn_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
56
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_convert_mnemonic_to_seed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
57
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_cet(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
58
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
59
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
60
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_sigs_from_points(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
61
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_cets(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
62
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_dlc_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
63
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
64
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_extkey_from_seed(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
65
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_fund_tx_locking_script(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
66
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_refund_transaction(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
67
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
68
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
69
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
70
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_pubkey_from_extkey(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
71
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_total_input_vsize(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
72
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_get_xpub_from_xpriv(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
73
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
74
+ jsi::Value cpp_uniffi_ddk_ffi_checksum_func_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
75
+ jsi::Value cpp_ffi_ddk_ffi_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
240
76
 
241
- public:
242
- NativeDdkFfi(jsi::Runtime &rt,
243
- std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker);
244
- virtual ~NativeDdkFfi();
77
+ public:
78
+ NativeDdkFfi(jsi::Runtime &rt, std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker);
79
+ virtual ~NativeDdkFfi();
245
80
 
246
- /**
247
- * The entry point into the crate.
248
- *
249
- * React Native must call `NativeDdkFfi.registerModule(rt, callInvoker)`
250
- * before using the Javascript interface.
251
- */
252
- static void registerModule(jsi::Runtime &rt,
253
- std::shared_ptr<react::CallInvoker> callInvoker);
81
+ /**
82
+ * The entry point into the crate.
83
+ *
84
+ * React Native must call `NativeDdkFfi.registerModule(rt, callInvoker)` before using
85
+ * the Javascript interface.
86
+ */
87
+ static void registerModule(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> callInvoker);
254
88
 
255
- /**
256
- * Some cleanup into the crate goes here.
257
- *
258
- * Current implementation is empty, however, this is not guaranteed to always
259
- * be the case.
260
- *
261
- * Clients should call `NativeDdkFfi.unregisterModule(rt)` after final use
262
- * where possible.
263
- */
264
- static void unregisterModule(jsi::Runtime &rt);
89
+ /**
90
+ * Some cleanup into the crate goes here.
91
+ *
92
+ * Current implementation is empty, however, this is not guaranteed to always be the case.
93
+ *
94
+ * Clients should call `NativeDdkFfi.unregisterModule(rt)` after final use where possible.
95
+ */
96
+ static void unregisterModule(jsi::Runtime &rt);
265
97
 
266
- virtual jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name);
267
- virtual void set(jsi::Runtime &rt, const jsi::PropNameID &name,
268
- const jsi::Value &value);
269
- virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt);
98
+ virtual jsi::Value get(jsi::Runtime& rt, const jsi::PropNameID& name);
99
+ virtual void set(jsi::Runtime& rt,const jsi::PropNameID& name,const jsi::Value& value);
100
+ virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& rt);
270
101
  };
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>libddk_ffi.a</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64</string>
12
+ <key>LibraryPath</key>
13
+ <string>libddk_ffi.a</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ </array>
18
+ <key>SupportedPlatform</key>
19
+ <string>ios</string>
20
+ </dict>
21
+ <dict>
22
+ <key>BinaryPath</key>
23
+ <string>libddk_ffi.a</string>
24
+ <key>LibraryIdentifier</key>
25
+ <string>ios-arm64-simulator</string>
26
+ <key>LibraryPath</key>
27
+ <string>libddk_ffi.a</string>
28
+ <key>SupportedArchitectures</key>
29
+ <array>
30
+ <string>arm64</string>
31
+ </array>
32
+ <key>SupportedPlatform</key>
33
+ <string>ios</string>
34
+ <key>SupportedPlatformVariant</key>
35
+ <string>simulator</string>
36
+ </dict>
37
+ </array>
38
+ <key>CFBundlePackageType</key>
39
+ <string>XFWK</string>
40
+ <key>XCFrameworkFormatVersion</key>
41
+ <string>1.0</string>
42
+ </dict>
43
+ </plist>
@@ -7,38 +7,15 @@ exports.default = void 0;
7
7
  // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
8
8
  // Trust me, you don't want to mess with it!
9
9
 
10
- // Casting globalThis to any allows us to look for `NativeDdkFfi`
11
- // if it was added via JSI.
12
- //
13
- // We use a getter here rather than simply `globalThis.NativeDdkFfi` so that
14
- // if/when the startup sequence isn't just so, an empty value isn't inadvertantly cached.
10
+ /* tslint:disable */
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
15
14
  const getter = () => globalThis.NativeDdkFfi;
16
15
  var _default = exports.default = getter; // Structs and function types for calling back into Typescript from Rust.
17
16
  // UniffiRustFutureContinuationCallback is generated as part of the component interface's
18
17
  // ffi_definitions. However, we need it in the runtime.
19
- // We could:
20
- // (a) do some complicated template logic to ensure the declaration is not generated here (possible)
21
- // (b) import the generated declaration into the runtime (m a y b e) or…
22
- // (c) generate the declaration anyway, and use a different declaration in the runtime.
23
- //
24
- // We chose (c) here as the simplest. In addition, we perform a compile time check that
25
- // the two versions of `UniffiRustFutureContinuationCallback` are structurally equivalent.
26
- //
27
- // If you see the error:
28
- // ```
29
- // Type 'true' is not assignable to type 'false'.(2322)
30
- // ```
31
- // Then a new version of uniffi has changed the signature of the callback. Most likely, code in
32
- // `typescript/src/async-rust-call.ts` will need to be changed.
33
- //
34
- // If you see the error:
35
- // ```
36
- // Cannot find name 'UniffiRustFutureContinuationCallback'. Did you mean 'RuntimeUniffiRustFutureContinuationCallback'?(2552)
37
- // ```
38
- // then you may not be using callbacks or promises, and uniffi is now not generating Futures and callbacks.
39
- // You should not generate this if that is the case.
40
- //
41
- // ('You' being the bindings generator maintainer).
18
+ // We chose to generate the declaration anyway, and use a different declaration in the runtime.
19
+ // We perform a compile time check that the two versions are structurally equivalent.
42
20
  const isRustFutureContinuationCallbackTypeCompatible = true;
43
- const isUniffiForeignFutureTypeCompatible = true;
44
21
  //# sourceMappingURL=ddk_ffi-ffi.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeDdkFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../src","sources":["ddk_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAgFA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KAAOC,UAAU,CAASC,YAAY;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACpEL,MAAM,EAErB;AAyEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeDdkFfi","_default","exports","default","isRustFutureContinuationCallbackTypeCompatible"],"sourceRoot":"../../src","sources":["ddk_ffi-ffi.ts"],"mappings":";;;;;;AAAA;AACA;;AAEA;AACA;AACA;;AAgaA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,YAAY;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACpBL,MAAM,EAErB;AAWA;AACA;AACA;AACA;AACA,MAAMM,8CAGL,GAAG,IAAI","ignoreList":[]}