react-native-neural-wallet-lib 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NeuralWalletLib.podspec +1 -1
- package/android/src/main/jniLibs/arm64-v8a/libwallet.a +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libwallet.a +0 -0
- package/android/src/main/jniLibs/x86/libwallet.a +0 -0
- package/android/src/main/jniLibs/x86_64/libwallet.a +0 -0
- package/cpp/generated/wallet.cpp +334 -0
- package/cpp/generated/wallet.hpp +43 -0
- package/ios/libs/libwallet.a +0 -0
- package/lib/module/generated/wallet-ffi.js.map +1 -1
- package/lib/module/generated/wallet.js +275 -2
- package/lib/module/generated/wallet.js.map +1 -1
- package/lib/typescript/src/generated/wallet-ffi.d.ts +14 -0
- package/lib/typescript/src/generated/wallet-ffi.d.ts.map +1 -1
- package/lib/typescript/src/generated/wallet.d.ts +259 -0
- package/lib/typescript/src/generated/wallet.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/wallet-ffi.ts +36 -0
- package/src/generated/wallet.ts +436 -0
package/NeuralWalletLib.podspec
CHANGED
|
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
s.vendored_frameworks = "NeuralWalletLibFramework.xcframework"
|
|
20
20
|
s.dependency "uniffi-bindgen-react-native", "0.29.3-0"
|
|
21
21
|
s.vendored_libraries = 'ios/libs/libwallet.a'
|
|
22
|
-
s.preserve_paths = 'ios/libs/libwallet.a'
|
|
22
|
+
s.preserve_paths = 'ios/libs/libwallet.a'
|
|
23
23
|
|
|
24
24
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
25
25
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cpp/generated/wallet.cpp
CHANGED
|
@@ -122,8 +122,25 @@ RustBuffer
|
|
|
122
122
|
uniffi_wallet_fn_func_generate_solana_keypair(RustBuffer mnemonic_str,
|
|
123
123
|
RustBuffer path_str,
|
|
124
124
|
RustCallStatus *uniffi_out_err);
|
|
125
|
+
RustBuffer
|
|
126
|
+
uniffi_wallet_fn_func_generate_stellar_keypair(RustBuffer mnemonic_str,
|
|
127
|
+
RustBuffer path_str,
|
|
128
|
+
RustCallStatus *uniffi_out_err);
|
|
129
|
+
int8_t uniffi_wallet_fn_func_is_valid_ethereum_private_key(
|
|
130
|
+
RustBuffer private_key, RustCallStatus *uniffi_out_err);
|
|
131
|
+
int8_t uniffi_wallet_fn_func_is_valid_mnemonic(RustBuffer mnemonic,
|
|
132
|
+
RustCallStatus *uniffi_out_err);
|
|
133
|
+
int8_t uniffi_wallet_fn_func_is_valid_solana_private_key(
|
|
134
|
+
RustBuffer private_key, RustCallStatus *uniffi_out_err);
|
|
135
|
+
int8_t
|
|
136
|
+
uniffi_wallet_fn_func_is_valid_stellar_secret(RustBuffer secret,
|
|
137
|
+
RustCallStatus *uniffi_out_err);
|
|
138
|
+
int8_t uniffi_wallet_fn_func_is_valid_wif(RustBuffer wif,
|
|
139
|
+
RustCallStatus *uniffi_out_err);
|
|
125
140
|
RustBuffer uniffi_wallet_fn_func_solana_private_key_to_keypair(
|
|
126
141
|
RustBuffer private_key_base58, RustCallStatus *uniffi_out_err);
|
|
142
|
+
RustBuffer uniffi_wallet_fn_func_stellar_keypair_from_secret(
|
|
143
|
+
RustBuffer secret, RustCallStatus *uniffi_out_err);
|
|
127
144
|
RustBuffer
|
|
128
145
|
uniffi_wallet_fn_func_string_to_base64(RustBuffer input,
|
|
129
146
|
RustCallStatus *uniffi_out_err);
|
|
@@ -258,7 +275,14 @@ uint16_t uniffi_wallet_checksum_func_generate_complex_password();
|
|
|
258
275
|
uint16_t uniffi_wallet_checksum_func_generate_eth_keypair();
|
|
259
276
|
uint16_t uniffi_wallet_checksum_func_generate_mnemonic();
|
|
260
277
|
uint16_t uniffi_wallet_checksum_func_generate_solana_keypair();
|
|
278
|
+
uint16_t uniffi_wallet_checksum_func_generate_stellar_keypair();
|
|
279
|
+
uint16_t uniffi_wallet_checksum_func_is_valid_ethereum_private_key();
|
|
280
|
+
uint16_t uniffi_wallet_checksum_func_is_valid_mnemonic();
|
|
281
|
+
uint16_t uniffi_wallet_checksum_func_is_valid_solana_private_key();
|
|
282
|
+
uint16_t uniffi_wallet_checksum_func_is_valid_stellar_secret();
|
|
283
|
+
uint16_t uniffi_wallet_checksum_func_is_valid_wif();
|
|
261
284
|
uint16_t uniffi_wallet_checksum_func_solana_private_key_to_keypair();
|
|
285
|
+
uint16_t uniffi_wallet_checksum_func_stellar_keypair_from_secret();
|
|
262
286
|
uint16_t uniffi_wallet_checksum_func_string_to_base64();
|
|
263
287
|
uint32_t ffi_wallet_uniffi_contract_version();
|
|
264
288
|
}
|
|
@@ -1746,6 +1770,73 @@ NativeWallet::NativeWallet(
|
|
|
1746
1770
|
return this->cpp_uniffi_wallet_fn_func_generate_solana_keypair(
|
|
1747
1771
|
rt, thisVal, args, count);
|
|
1748
1772
|
});
|
|
1773
|
+
props["ubrn_uniffi_wallet_fn_func_generate_stellar_keypair"] =
|
|
1774
|
+
jsi::Function::createFromHostFunction(
|
|
1775
|
+
rt,
|
|
1776
|
+
jsi::PropNameID::forAscii(
|
|
1777
|
+
rt, "ubrn_uniffi_wallet_fn_func_generate_stellar_keypair"),
|
|
1778
|
+
2,
|
|
1779
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1780
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1781
|
+
return this->cpp_uniffi_wallet_fn_func_generate_stellar_keypair(
|
|
1782
|
+
rt, thisVal, args, count);
|
|
1783
|
+
});
|
|
1784
|
+
props["ubrn_uniffi_wallet_fn_func_is_valid_ethereum_private_key"] =
|
|
1785
|
+
jsi::Function::createFromHostFunction(
|
|
1786
|
+
rt,
|
|
1787
|
+
jsi::PropNameID::forAscii(
|
|
1788
|
+
rt, "ubrn_uniffi_wallet_fn_func_is_valid_ethereum_private_key"),
|
|
1789
|
+
1,
|
|
1790
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1791
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1792
|
+
return this
|
|
1793
|
+
->cpp_uniffi_wallet_fn_func_is_valid_ethereum_private_key(
|
|
1794
|
+
rt, thisVal, args, count);
|
|
1795
|
+
});
|
|
1796
|
+
props["ubrn_uniffi_wallet_fn_func_is_valid_mnemonic"] =
|
|
1797
|
+
jsi::Function::createFromHostFunction(
|
|
1798
|
+
rt,
|
|
1799
|
+
jsi::PropNameID::forAscii(
|
|
1800
|
+
rt, "ubrn_uniffi_wallet_fn_func_is_valid_mnemonic"),
|
|
1801
|
+
1,
|
|
1802
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1803
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1804
|
+
return this->cpp_uniffi_wallet_fn_func_is_valid_mnemonic(
|
|
1805
|
+
rt, thisVal, args, count);
|
|
1806
|
+
});
|
|
1807
|
+
props["ubrn_uniffi_wallet_fn_func_is_valid_solana_private_key"] =
|
|
1808
|
+
jsi::Function::createFromHostFunction(
|
|
1809
|
+
rt,
|
|
1810
|
+
jsi::PropNameID::forAscii(
|
|
1811
|
+
rt, "ubrn_uniffi_wallet_fn_func_is_valid_solana_private_key"),
|
|
1812
|
+
1,
|
|
1813
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1814
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1815
|
+
return this->cpp_uniffi_wallet_fn_func_is_valid_solana_private_key(
|
|
1816
|
+
rt, thisVal, args, count);
|
|
1817
|
+
});
|
|
1818
|
+
props["ubrn_uniffi_wallet_fn_func_is_valid_stellar_secret"] =
|
|
1819
|
+
jsi::Function::createFromHostFunction(
|
|
1820
|
+
rt,
|
|
1821
|
+
jsi::PropNameID::forAscii(
|
|
1822
|
+
rt, "ubrn_uniffi_wallet_fn_func_is_valid_stellar_secret"),
|
|
1823
|
+
1,
|
|
1824
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1825
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1826
|
+
return this->cpp_uniffi_wallet_fn_func_is_valid_stellar_secret(
|
|
1827
|
+
rt, thisVal, args, count);
|
|
1828
|
+
});
|
|
1829
|
+
props["ubrn_uniffi_wallet_fn_func_is_valid_wif"] =
|
|
1830
|
+
jsi::Function::createFromHostFunction(
|
|
1831
|
+
rt,
|
|
1832
|
+
jsi::PropNameID::forAscii(rt,
|
|
1833
|
+
"ubrn_uniffi_wallet_fn_func_is_valid_wif"),
|
|
1834
|
+
1,
|
|
1835
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1836
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1837
|
+
return this->cpp_uniffi_wallet_fn_func_is_valid_wif(rt, thisVal,
|
|
1838
|
+
args, count);
|
|
1839
|
+
});
|
|
1749
1840
|
props["ubrn_uniffi_wallet_fn_func_solana_private_key_to_keypair"] =
|
|
1750
1841
|
jsi::Function::createFromHostFunction(
|
|
1751
1842
|
rt,
|
|
@@ -1758,6 +1849,17 @@ NativeWallet::NativeWallet(
|
|
|
1758
1849
|
->cpp_uniffi_wallet_fn_func_solana_private_key_to_keypair(
|
|
1759
1850
|
rt, thisVal, args, count);
|
|
1760
1851
|
});
|
|
1852
|
+
props["ubrn_uniffi_wallet_fn_func_stellar_keypair_from_secret"] =
|
|
1853
|
+
jsi::Function::createFromHostFunction(
|
|
1854
|
+
rt,
|
|
1855
|
+
jsi::PropNameID::forAscii(
|
|
1856
|
+
rt, "ubrn_uniffi_wallet_fn_func_stellar_keypair_from_secret"),
|
|
1857
|
+
1,
|
|
1858
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1859
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1860
|
+
return this->cpp_uniffi_wallet_fn_func_stellar_keypair_from_secret(
|
|
1861
|
+
rt, thisVal, args, count);
|
|
1862
|
+
});
|
|
1761
1863
|
props["ubrn_uniffi_wallet_fn_func_string_to_base64"] =
|
|
1762
1864
|
jsi::Function::createFromHostFunction(
|
|
1763
1865
|
rt,
|
|
@@ -1851,6 +1953,78 @@ NativeWallet::NativeWallet(
|
|
|
1851
1953
|
->cpp_uniffi_wallet_checksum_func_generate_solana_keypair(
|
|
1852
1954
|
rt, thisVal, args, count);
|
|
1853
1955
|
});
|
|
1956
|
+
props["ubrn_uniffi_wallet_checksum_func_generate_stellar_keypair"] =
|
|
1957
|
+
jsi::Function::createFromHostFunction(
|
|
1958
|
+
rt,
|
|
1959
|
+
jsi::PropNameID::forAscii(
|
|
1960
|
+
rt, "ubrn_uniffi_wallet_checksum_func_generate_stellar_keypair"),
|
|
1961
|
+
0,
|
|
1962
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1963
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1964
|
+
return this
|
|
1965
|
+
->cpp_uniffi_wallet_checksum_func_generate_stellar_keypair(
|
|
1966
|
+
rt, thisVal, args, count);
|
|
1967
|
+
});
|
|
1968
|
+
props["ubrn_uniffi_wallet_checksum_func_is_valid_ethereum_private_key"] =
|
|
1969
|
+
jsi::Function::createFromHostFunction(
|
|
1970
|
+
rt,
|
|
1971
|
+
jsi::PropNameID::forAscii(
|
|
1972
|
+
rt,
|
|
1973
|
+
"ubrn_uniffi_wallet_checksum_func_is_valid_ethereum_private_key"),
|
|
1974
|
+
0,
|
|
1975
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1976
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1977
|
+
return this
|
|
1978
|
+
->cpp_uniffi_wallet_checksum_func_is_valid_ethereum_private_key(
|
|
1979
|
+
rt, thisVal, args, count);
|
|
1980
|
+
});
|
|
1981
|
+
props["ubrn_uniffi_wallet_checksum_func_is_valid_mnemonic"] =
|
|
1982
|
+
jsi::Function::createFromHostFunction(
|
|
1983
|
+
rt,
|
|
1984
|
+
jsi::PropNameID::forAscii(
|
|
1985
|
+
rt, "ubrn_uniffi_wallet_checksum_func_is_valid_mnemonic"),
|
|
1986
|
+
0,
|
|
1987
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
1988
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
1989
|
+
return this->cpp_uniffi_wallet_checksum_func_is_valid_mnemonic(
|
|
1990
|
+
rt, thisVal, args, count);
|
|
1991
|
+
});
|
|
1992
|
+
props["ubrn_uniffi_wallet_checksum_func_is_valid_solana_private_key"] =
|
|
1993
|
+
jsi::Function::createFromHostFunction(
|
|
1994
|
+
rt,
|
|
1995
|
+
jsi::PropNameID::forAscii(
|
|
1996
|
+
rt,
|
|
1997
|
+
"ubrn_uniffi_wallet_checksum_func_is_valid_solana_private_key"),
|
|
1998
|
+
0,
|
|
1999
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2000
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2001
|
+
return this
|
|
2002
|
+
->cpp_uniffi_wallet_checksum_func_is_valid_solana_private_key(
|
|
2003
|
+
rt, thisVal, args, count);
|
|
2004
|
+
});
|
|
2005
|
+
props["ubrn_uniffi_wallet_checksum_func_is_valid_stellar_secret"] =
|
|
2006
|
+
jsi::Function::createFromHostFunction(
|
|
2007
|
+
rt,
|
|
2008
|
+
jsi::PropNameID::forAscii(
|
|
2009
|
+
rt, "ubrn_uniffi_wallet_checksum_func_is_valid_stellar_secret"),
|
|
2010
|
+
0,
|
|
2011
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2012
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2013
|
+
return this
|
|
2014
|
+
->cpp_uniffi_wallet_checksum_func_is_valid_stellar_secret(
|
|
2015
|
+
rt, thisVal, args, count);
|
|
2016
|
+
});
|
|
2017
|
+
props["ubrn_uniffi_wallet_checksum_func_is_valid_wif"] =
|
|
2018
|
+
jsi::Function::createFromHostFunction(
|
|
2019
|
+
rt,
|
|
2020
|
+
jsi::PropNameID::forAscii(
|
|
2021
|
+
rt, "ubrn_uniffi_wallet_checksum_func_is_valid_wif"),
|
|
2022
|
+
0,
|
|
2023
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2024
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2025
|
+
return this->cpp_uniffi_wallet_checksum_func_is_valid_wif(
|
|
2026
|
+
rt, thisVal, args, count);
|
|
2027
|
+
});
|
|
1854
2028
|
props["ubrn_uniffi_wallet_checksum_func_solana_private_key_to_keypair"] =
|
|
1855
2029
|
jsi::Function::createFromHostFunction(
|
|
1856
2030
|
rt,
|
|
@@ -1864,6 +2038,19 @@ NativeWallet::NativeWallet(
|
|
|
1864
2038
|
->cpp_uniffi_wallet_checksum_func_solana_private_key_to_keypair(
|
|
1865
2039
|
rt, thisVal, args, count);
|
|
1866
2040
|
});
|
|
2041
|
+
props["ubrn_uniffi_wallet_checksum_func_stellar_keypair_from_secret"] =
|
|
2042
|
+
jsi::Function::createFromHostFunction(
|
|
2043
|
+
rt,
|
|
2044
|
+
jsi::PropNameID::forAscii(
|
|
2045
|
+
rt,
|
|
2046
|
+
"ubrn_uniffi_wallet_checksum_func_stellar_keypair_from_secret"),
|
|
2047
|
+
0,
|
|
2048
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2049
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2050
|
+
return this
|
|
2051
|
+
->cpp_uniffi_wallet_checksum_func_stellar_keypair_from_secret(
|
|
2052
|
+
rt, thisVal, args, count);
|
|
2053
|
+
});
|
|
1867
2054
|
props["ubrn_uniffi_wallet_checksum_func_string_to_base64"] =
|
|
1868
2055
|
jsi::Function::createFromHostFunction(
|
|
1869
2056
|
rt,
|
|
@@ -2044,6 +2231,86 @@ jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_generate_solana_keypair(
|
|
|
2044
2231
|
|
|
2045
2232
|
return uniffi::wallet::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
2046
2233
|
}
|
|
2234
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_generate_stellar_keypair(
|
|
2235
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2236
|
+
size_t count) {
|
|
2237
|
+
RustCallStatus status =
|
|
2238
|
+
uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2239
|
+
auto value = uniffi_wallet_fn_func_generate_stellar_keypair(
|
|
2240
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
2241
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
2242
|
+
&status);
|
|
2243
|
+
uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
|
|
2244
|
+
args[count - 1]);
|
|
2245
|
+
|
|
2246
|
+
return uniffi::wallet::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
2247
|
+
}
|
|
2248
|
+
jsi::Value
|
|
2249
|
+
NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_ethereum_private_key(
|
|
2250
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2251
|
+
size_t count) {
|
|
2252
|
+
RustCallStatus status =
|
|
2253
|
+
uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2254
|
+
auto value = uniffi_wallet_fn_func_is_valid_ethereum_private_key(
|
|
2255
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
2256
|
+
&status);
|
|
2257
|
+
uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
|
|
2258
|
+
args[count - 1]);
|
|
2259
|
+
|
|
2260
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
2261
|
+
}
|
|
2262
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_mnemonic(
|
|
2263
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2264
|
+
size_t count) {
|
|
2265
|
+
RustCallStatus status =
|
|
2266
|
+
uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2267
|
+
auto value = uniffi_wallet_fn_func_is_valid_mnemonic(
|
|
2268
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
2269
|
+
&status);
|
|
2270
|
+
uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
|
|
2271
|
+
args[count - 1]);
|
|
2272
|
+
|
|
2273
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
2274
|
+
}
|
|
2275
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_solana_private_key(
|
|
2276
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2277
|
+
size_t count) {
|
|
2278
|
+
RustCallStatus status =
|
|
2279
|
+
uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2280
|
+
auto value = uniffi_wallet_fn_func_is_valid_solana_private_key(
|
|
2281
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
2282
|
+
&status);
|
|
2283
|
+
uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
|
|
2284
|
+
args[count - 1]);
|
|
2285
|
+
|
|
2286
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
2287
|
+
}
|
|
2288
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_stellar_secret(
|
|
2289
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2290
|
+
size_t count) {
|
|
2291
|
+
RustCallStatus status =
|
|
2292
|
+
uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2293
|
+
auto value = uniffi_wallet_fn_func_is_valid_stellar_secret(
|
|
2294
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
2295
|
+
&status);
|
|
2296
|
+
uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
|
|
2297
|
+
args[count - 1]);
|
|
2298
|
+
|
|
2299
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
2300
|
+
}
|
|
2301
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_is_valid_wif(
|
|
2302
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2303
|
+
size_t count) {
|
|
2304
|
+
RustCallStatus status =
|
|
2305
|
+
uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2306
|
+
auto value = uniffi_wallet_fn_func_is_valid_wif(
|
|
2307
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
2308
|
+
&status);
|
|
2309
|
+
uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
|
|
2310
|
+
args[count - 1]);
|
|
2311
|
+
|
|
2312
|
+
return uniffi_jsi::Bridging<int8_t>::toJs(rt, callInvoker, value);
|
|
2313
|
+
}
|
|
2047
2314
|
jsi::Value
|
|
2048
2315
|
NativeWallet::cpp_uniffi_wallet_fn_func_solana_private_key_to_keypair(
|
|
2049
2316
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -2058,6 +2325,19 @@ NativeWallet::cpp_uniffi_wallet_fn_func_solana_private_key_to_keypair(
|
|
|
2058
2325
|
|
|
2059
2326
|
return uniffi::wallet::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
2060
2327
|
}
|
|
2328
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_stellar_keypair_from_secret(
|
|
2329
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2330
|
+
size_t count) {
|
|
2331
|
+
RustCallStatus status =
|
|
2332
|
+
uniffi::wallet::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
2333
|
+
auto value = uniffi_wallet_fn_func_stellar_keypair_from_secret(
|
|
2334
|
+
uniffi::wallet::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[0]),
|
|
2335
|
+
&status);
|
|
2336
|
+
uniffi::wallet::Bridging<RustCallStatus>::copyIntoJs(rt, callInvoker, status,
|
|
2337
|
+
args[count - 1]);
|
|
2338
|
+
|
|
2339
|
+
return uniffi::wallet::Bridging<RustBuffer>::toJs(rt, callInvoker, value);
|
|
2340
|
+
}
|
|
2061
2341
|
jsi::Value NativeWallet::cpp_uniffi_wallet_fn_func_string_to_base64(
|
|
2062
2342
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2063
2343
|
size_t count) {
|
|
@@ -2125,6 +2405,52 @@ NativeWallet::cpp_uniffi_wallet_checksum_func_generate_solana_keypair(
|
|
|
2125
2405
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2126
2406
|
}
|
|
2127
2407
|
jsi::Value
|
|
2408
|
+
NativeWallet::cpp_uniffi_wallet_checksum_func_generate_stellar_keypair(
|
|
2409
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2410
|
+
size_t count) {
|
|
2411
|
+
auto value = uniffi_wallet_checksum_func_generate_stellar_keypair();
|
|
2412
|
+
|
|
2413
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2414
|
+
}
|
|
2415
|
+
jsi::Value
|
|
2416
|
+
NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_ethereum_private_key(
|
|
2417
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2418
|
+
size_t count) {
|
|
2419
|
+
auto value = uniffi_wallet_checksum_func_is_valid_ethereum_private_key();
|
|
2420
|
+
|
|
2421
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2422
|
+
}
|
|
2423
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_mnemonic(
|
|
2424
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2425
|
+
size_t count) {
|
|
2426
|
+
auto value = uniffi_wallet_checksum_func_is_valid_mnemonic();
|
|
2427
|
+
|
|
2428
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2429
|
+
}
|
|
2430
|
+
jsi::Value
|
|
2431
|
+
NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_solana_private_key(
|
|
2432
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2433
|
+
size_t count) {
|
|
2434
|
+
auto value = uniffi_wallet_checksum_func_is_valid_solana_private_key();
|
|
2435
|
+
|
|
2436
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2437
|
+
}
|
|
2438
|
+
jsi::Value
|
|
2439
|
+
NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_stellar_secret(
|
|
2440
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2441
|
+
size_t count) {
|
|
2442
|
+
auto value = uniffi_wallet_checksum_func_is_valid_stellar_secret();
|
|
2443
|
+
|
|
2444
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2445
|
+
}
|
|
2446
|
+
jsi::Value NativeWallet::cpp_uniffi_wallet_checksum_func_is_valid_wif(
|
|
2447
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2448
|
+
size_t count) {
|
|
2449
|
+
auto value = uniffi_wallet_checksum_func_is_valid_wif();
|
|
2450
|
+
|
|
2451
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2452
|
+
}
|
|
2453
|
+
jsi::Value
|
|
2128
2454
|
NativeWallet::cpp_uniffi_wallet_checksum_func_solana_private_key_to_keypair(
|
|
2129
2455
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2130
2456
|
size_t count) {
|
|
@@ -2132,6 +2458,14 @@ NativeWallet::cpp_uniffi_wallet_checksum_func_solana_private_key_to_keypair(
|
|
|
2132
2458
|
|
|
2133
2459
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2134
2460
|
}
|
|
2461
|
+
jsi::Value
|
|
2462
|
+
NativeWallet::cpp_uniffi_wallet_checksum_func_stellar_keypair_from_secret(
|
|
2463
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2464
|
+
size_t count) {
|
|
2465
|
+
auto value = uniffi_wallet_checksum_func_stellar_keypair_from_secret();
|
|
2466
|
+
|
|
2467
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
2468
|
+
}
|
|
2135
2469
|
jsi::Value NativeWallet::cpp_uniffi_wallet_checksum_func_string_to_base64(
|
|
2136
2470
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
2137
2471
|
size_t count) {
|
package/cpp/generated/wallet.hpp
CHANGED
|
@@ -49,9 +49,31 @@ protected:
|
|
|
49
49
|
jsi::Value cpp_uniffi_wallet_fn_func_generate_solana_keypair(
|
|
50
50
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
51
51
|
size_t count);
|
|
52
|
+
jsi::Value cpp_uniffi_wallet_fn_func_generate_stellar_keypair(
|
|
53
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
54
|
+
size_t count);
|
|
55
|
+
jsi::Value cpp_uniffi_wallet_fn_func_is_valid_ethereum_private_key(
|
|
56
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
57
|
+
size_t count);
|
|
58
|
+
jsi::Value cpp_uniffi_wallet_fn_func_is_valid_mnemonic(
|
|
59
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
60
|
+
size_t count);
|
|
61
|
+
jsi::Value cpp_uniffi_wallet_fn_func_is_valid_solana_private_key(
|
|
62
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
63
|
+
size_t count);
|
|
64
|
+
jsi::Value cpp_uniffi_wallet_fn_func_is_valid_stellar_secret(
|
|
65
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
66
|
+
size_t count);
|
|
67
|
+
jsi::Value cpp_uniffi_wallet_fn_func_is_valid_wif(jsi::Runtime &rt,
|
|
68
|
+
const jsi::Value &thisVal,
|
|
69
|
+
const jsi::Value *args,
|
|
70
|
+
size_t count);
|
|
52
71
|
jsi::Value cpp_uniffi_wallet_fn_func_solana_private_key_to_keypair(
|
|
53
72
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
54
73
|
size_t count);
|
|
74
|
+
jsi::Value cpp_uniffi_wallet_fn_func_stellar_keypair_from_secret(
|
|
75
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
76
|
+
size_t count);
|
|
55
77
|
jsi::Value cpp_uniffi_wallet_fn_func_string_to_base64(
|
|
56
78
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
57
79
|
size_t count);
|
|
@@ -76,9 +98,30 @@ protected:
|
|
|
76
98
|
jsi::Value cpp_uniffi_wallet_checksum_func_generate_solana_keypair(
|
|
77
99
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
78
100
|
size_t count);
|
|
101
|
+
jsi::Value cpp_uniffi_wallet_checksum_func_generate_stellar_keypair(
|
|
102
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
103
|
+
size_t count);
|
|
104
|
+
jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_ethereum_private_key(
|
|
105
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
106
|
+
size_t count);
|
|
107
|
+
jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_mnemonic(
|
|
108
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
109
|
+
size_t count);
|
|
110
|
+
jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_solana_private_key(
|
|
111
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
112
|
+
size_t count);
|
|
113
|
+
jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_stellar_secret(
|
|
114
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
115
|
+
size_t count);
|
|
116
|
+
jsi::Value cpp_uniffi_wallet_checksum_func_is_valid_wif(
|
|
117
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
118
|
+
size_t count);
|
|
79
119
|
jsi::Value cpp_uniffi_wallet_checksum_func_solana_private_key_to_keypair(
|
|
80
120
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
81
121
|
size_t count);
|
|
122
|
+
jsi::Value cpp_uniffi_wallet_checksum_func_stellar_keypair_from_secret(
|
|
123
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
124
|
+
size_t count);
|
|
82
125
|
jsi::Value cpp_uniffi_wallet_checksum_func_string_to_base64(
|
|
83
126
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
84
127
|
size_t count);
|
package/ios/libs/libwallet.a
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getter","globalThis","NativeWallet","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/wallet-ffi.ts"],"mappings":";;AAAA;AACA;;
|
|
1
|
+
{"version":3,"names":["getter","globalThis","NativeWallet","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/wallet-ffi.ts"],"mappings":";;AAAA;AACA;;AAkHA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,YAAY;AAClC,eAAeF,MAAM;;AAErB;;AAmHA;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,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
|