diff --git a/include/python-cellframe.h b/include/python-cellframe.h index a5042ee64d75a78c152c6a23de0ac6fa872c35ab..7989b685ee0f2400a97a6b30b372139342071925 100644 --- a/include/python-cellframe.h +++ b/include/python-cellframe.h @@ -36,6 +36,11 @@ #include "wrapping_dap_chain_net_node_client.h" #include "wrapping_dap_chain_net_node_info.h" #include "wrapping_dap_chain_net_state.h" +// === Chain net srv === +#include "wrapping_dap_chain_net_srv.h" +#include "wrapping_dap_chain_net_srv_client_remote.h" +#include "wrapping_dap_chain_net_srv_common.h" +#include "wrapping_dap_chain_net_srv_order.h" // ============ // === type DAG === #include "wrapping_dap_chain_cs_dag.h" @@ -50,6 +55,8 @@ #include "wrapping_dap_mempool.h" #include "wrapping_dap_http_folder.h" #include "dap_chain_wallet_python.h" +// === Chain GlobalDB === +#include "wrapping_dap_chain_global_db.h" //#include "dap_http_client_simple.h" //#include "dap_chain_wallet.h" diff --git a/modules/cellframe-sdk/common/include/wrapping_dap_chain_common.h b/modules/cellframe-sdk/common/include/wrapping_dap_chain_common.h index dec022f3d61c78e164d44162cf0a4aaf2b261da8..6eb1bb1b70200a7418586f984c26db616ffa0a27 100644 --- a/modules/cellframe-sdk/common/include/wrapping_dap_chain_common.h +++ b/modules/cellframe-sdk/common/include/wrapping_dap_chain_common.h @@ -280,6 +280,10 @@ static PyTypeObject DapChainNetSrvUIDObject_DapChainNetSrvUIDObjectType = { /*=================*/ +static bool PyDapChainNetSrvUid_Check(PyObject *a_obj){ + return PyObject_TypeCheck(a_obj, &DapChainNetSrvUIDObject_DapChainNetSrvUIDObjectType); +} + /* Chain net srv uid */ typedef struct PyDapChainNetSrvPriceUnitUID{ PyObject_HEAD diff --git a/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_client.c b/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_client.c index 1f077013205d672ccbe1bedd026ca56bb88f085d..e8d314d2ebe5b3494aaae69347d9cddd43f07499 100644 --- a/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_client.c +++ b/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_client.c @@ -76,7 +76,7 @@ int PyDapChainNetSrvClient_init(PyDapChainNetSrvClientObject* self, PyObject *ar PyObject *obj_net, *obj_hander; const char *addr; uint16_t port; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OsH", (char *)kwlist, &obj_net, &addr, &port, &obj_hander)){ + if (!PyArg_ParseTupleAndKeywords(args, kwds, "OsH", (char **)kwlist, &obj_net, &addr, &port, &obj_hander)){ return -1; } if (!PyCallable_Check(obj_hander)){ diff --git a/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_order.c b/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_order.c index dd28206ddfe5a113df5f433192194a755bd2a6b0..02020a823a3d9535a64df5960c19e4d12a329597 100644 --- a/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_order.c +++ b/modules/cellframe-sdk/net/srv/src/wrapping_dap_chain_net_srv_order.c @@ -216,7 +216,8 @@ PyObject *wrapping_dap_chain_net_srv_order_delete(PyObject *self, PyObject *args return NULL; } -PyObject *wrapping_dap_chain_net_srv_order_find_all_by(PyObject *self, PyObject *args){} +PyObject *wrapping_dap_chain_net_srv_order_find_all_by(PyObject *self, PyObject *args){return Py_None;} + PyObject *wrapping_dap_chain_net_srv_order_save(PyObject *self, PyObject *args){ PyObject *obj_net; if(!PyArg_ParseTuple(args, "O", &obj_net)){ diff --git a/modules/dap-sdk/crypto/include/wrapping_dap_hash.h b/modules/dap-sdk/crypto/include/wrapping_dap_hash.h index 2cc3839868c482ef910b2d309a0cbe7c02937c85..b5c05286672c1e48a5d2639ba7b18e9899e8fe90 100644 --- a/modules/dap-sdk/crypto/include/wrapping_dap_hash.h +++ b/modules/dap-sdk/crypto/include/wrapping_dap_hash.h @@ -156,6 +156,10 @@ static PyTypeObject DapHashFastObject_DapHashFastObjectType = { PyType_GenericNew, /* tp_new */ }; +static bool PyDapHashFast_Check(PyObject *a_obj){ + return PyObject_TypeCheck(a_obj, &DapHashFastObject_DapHashFastObjectType); +} + #ifdef __cplusplus } #endif