@@ -1037,6 +1037,24 @@ void py_monero_bind_wallet(py::module_& m, PyMoneroTypes& t) {
10371037 MONERO_CATCH_AND_RETHROW (self.get_cache_file_buffer ());
10381038 }, py::call_guard<py::gil_scoped_release>());
10391039
1040+ // monero_wallet_light
1041+ t.py_monero_wallet_light
1042+ .def_static (" wallet_exists" , [](const std::string& primary_address, const std::string& private_view_key, const std::shared_ptr<monero_rpc_connection>& rpc) {
1043+ MONERO_CATCH_AND_RETHROW (monero_wallet_light::wallet_exists (primary_address, private_view_key, rpc));
1044+ }, py::arg (" primary_address" ), py::arg (" private_view_key" ), py::arg (" rpc" ), py::call_guard<py::gil_scoped_release>())
1045+ .def_static (" wallet_exists" , [](const monero_wallet_config& config, const std::shared_ptr<monero_rpc_connection>& rpc) {
1046+ MONERO_CATCH_AND_RETHROW (monero_wallet_light::wallet_exists (config, rpc));
1047+ }, py::arg (" config" ), py::arg (" rpc" ), py::call_guard<py::gil_scoped_release>())
1048+ .def_static (" open_wallet" , [](const monero_wallet_config& config, const std::shared_ptr<monero_rpc_connection>& rpc) {
1049+ MONERO_CATCH_AND_RETHROW (monero_wallet_light::open_wallet (config, rpc));
1050+ }, py::arg (" config" ), py::arg (" rpc" ), py::call_guard<py::gil_scoped_release>())
1051+ .def_static (" create_wallet" , [](const monero_wallet_config& config, const std::shared_ptr<monero_rpc_connection>& rpc) {
1052+ MONERO_CATCH_AND_RETHROW (monero_wallet_light::create_wallet (config, rpc));
1053+ }, py::arg (" config" ), py::arg (" rpc" ), py::call_guard<py::gil_scoped_release>())
1054+ .def (" get_rpc_connection" , [](monero_wallet_rpc& self) {
1055+ MONERO_CATCH_AND_RETHROW (self.get_rpc_connection ());
1056+ }, py::call_guard<py::gil_scoped_release>());
1057+
10401058 // monero_wallet_rpc
10411059 t.py_monero_wallet_rpc
10421060 .def (py::init<const std::shared_ptr<monero_rpc_connection>&>(), py::arg (" rpc_connection" ), py::call_guard<py::gil_scoped_release>())
0 commit comments