remove silence

This commit is contained in:
Vladimir N. Korotenko
2025-11-11 12:16:34 +03:00
parent db107f74c8
commit 3b49759051
6 changed files with 84 additions and 1 deletions

40
dm-cli/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,40 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) dm-cli",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/dm-cli",
"args": [ "--address",
"https://testnet-dm2.bitdeals.org",
"--debug",
"account", "update",
"-d", "2020-01-01",
"-s", "IEF1ysyhu8ps0m5xSJaZZg/5hBylmcWQQggkGO7yNN8iMf/EA2O287kxi58xCDDtxvdsC0TWqylVE5MT5CouamU=",
"--pgp", "$PGP",
"mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}

9
dm-cli/.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"makefile.launchConfigurations": [
{
"cwd": "/home/kvn/dm-cli",
"binaryPath": "/home/kvn/dm-cli/dm-cli",
"binaryArgs": []
}
]
}

33
dm-cli/.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,33 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Make and start",
"type": "shell",
"command": "make && ./dm-cli --address https://testnet-dm2.bitdeals.org --debug account update -d 2020-01-01 -s IEF1ysyhu8ps0m5xSJaZZg/5hBylmcWQQggkGO7yNN8iMf/EA2O287kxi58xCDDtxvdsC0TWqylVE5MT5CouamU= -p \"$pgp\" mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"
},
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
]
}

View File

@@ -30,7 +30,7 @@ void AccountHelp(bool isRussian)
int AccountStatus(const std::string address, const char* bkaddress, bool isDebug)
{
// curl "https://testnet-dm.bitdeals.org/api/v1/account/status?address=mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"
string url("curl ");
string url("curl -s ");
url += address + "/api/v1/account/status?address=" + bkaddress ;
string result = ExecCommand(url.c_str());
nlohmann::json jsonData = nlohmann::json::parse(result);

BIN
dm-cli/dm-cli Normal file

Binary file not shown.

1
dm-cli/test.cmd Normal file
View File

@@ -0,0 +1 @@
dm-cli deal create -a https://test.com -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -t Prepayment -s 0.1 -l 14d -p 1d