|
|
@@ -16,6 +16,7 @@
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
*/
|
|
|
|
|
|
+/*
|
|
|
use log::{debug, error};
|
|
|
use serde_json::{json, Value};
|
|
|
|
|
|
@@ -28,6 +29,10 @@ use darkfi::{
|
|
|
};
|
|
|
|
|
|
use super::{error::RpcError, server_error, Darkfid};
|
|
|
+*/
|
|
|
+use super::Darkfid;
|
|
|
+use darkfi::rpc::jsonrpc::JsonResult;
|
|
|
+use serde_json::Value;
|
|
|
|
|
|
impl Darkfid {
|
|
|
// RPCAPI:
|
|
|
@@ -49,7 +54,7 @@ impl Darkfid {
|
|
|
//
|
|
|
// --> {"jsonrpc": "2.0", "method": "wallet.query_row_single", "params": [...], "id": 1}
|
|
|
// <-- {"jsonrpc": "2.0", "result": ["va", "lu", "es", ...], "id": 1}
|
|
|
- pub async fn wallet_query_row_single(&self, id: Value, params: &[Value]) -> JsonResult {
|
|
|
+ pub async fn wallet_query_row_single(&self, _id: Value, _params: &[Value]) -> JsonResult {
|
|
|
todo!();
|
|
|
/* TODO: This will be abstracted away
|
|
|
// We need at least 3 params for something we want to fetch, and we want them in pairs.
|
|
|
@@ -202,7 +207,7 @@ impl Darkfid {
|
|
|
//
|
|
|
// --> {"jsonrpc": "2.0", "method": "wallet.query_row_multi", "params": [...], "id": 1}
|
|
|
// <-- {"jsonrpc": "2.0", "result": [["va", "lu"], ["es", "es"], ...], "id": 1}
|
|
|
- pub async fn wallet_query_row_multi(&self, id: Value, params: &[Value]) -> JsonResult {
|
|
|
+ pub async fn wallet_query_row_multi(&self, _id: Value, _params: &[Value]) -> JsonResult {
|
|
|
todo!();
|
|
|
/* TODO: This will be abstracted away
|
|
|
// We need at least 3 params for something we want to fetch, and we want them in pairs.
|
|
|
@@ -326,7 +331,7 @@ impl Darkfid {
|
|
|
//
|
|
|
// --> {"jsonrpc": "2.0", "method": "wallet.exec_sql", "params": ["CREATE TABLE ..."], "id": 1}
|
|
|
// <-- {"jsonrpc": "2.0", "result": true, "id": 1}
|
|
|
- pub async fn wallet_exec_sql(&self, id: Value, params: &[Value]) -> JsonResult {
|
|
|
+ pub async fn wallet_exec_sql(&self, _id: Value, _params: &[Value]) -> JsonResult {
|
|
|
todo!();
|
|
|
/* TODO: This will be abstracted away
|
|
|
if params.is_empty() || !params[0].is_string() {
|