MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ToString

Function ToString

src/tx/cdptx.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53namespace cdp_util {
54
55 static string ToString(const CDPStakeAssetMap& assetMap) {
56 string ret = "";
57 for (auto item : assetMap) {
58 ret = strprintf("{%s=%llu}", item.first, item.second.get());
59 if (!ret.empty()) ret += ",";
60 }
61 return "{" + ret + "}";
62 }
63
64 static Object ToJson(const CDPStakeAssetMap& assetMap) {
65 Object ret;

Callers 15

ToStringMethod · 0.70
ToStringMethod · 0.70
ToStringMethod · 0.70
ToStringMethod · 0.70
ValueToStringMethod · 0.70
UnserializeMethod · 0.70
ExecuteTxMethod · 0.70
ToStringMethod · 0.70
ToStringMethod · 0.70
PrintMethod · 0.50
PrintMethod · 0.50
ToStringMethod · 0.50

Calls 2

getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected