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

Method ToString

src/tx/dextx.cpp:188–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187
188 string CDEXOrderBaseTx::ToString(CAccountDBCache &accountCache) {
189 return strprintf("txType=%s", GetTxType(nTxType)) + ", " +
190 strprintf("hash=%s", GetHash().GetHex()) + ", " +
191 strprintf("ver=%d", nVersion) + ", " +
192 strprintf("valid_height=%d", valid_height) + ", " +
193 strprintf("tx_uid=%s", txUid.ToDebugString()) + ", " +
194 strprintf("fee_symbol=%llu", fee_symbol) + ", " +
195 strprintf("fees=%llu", llFees) + ", " +
196 strprintf("signature=%s", HexStr(signature)) + ", " +
197 strprintf("order_type=%s", kOrderTypeHelper.GetName(order_type)) + ", " +
198 strprintf("order_side=%s", kOrderSideHelper.GetName(order_side)) + ", " +
199 strprintf("coin_symbol=%s", coin_symbol) + ", " +
200 strprintf("asset_symbol=%s", asset_symbol) + ", " +
201 strprintf("coin_amount=%llu", coin_amount) + ", " +
202 strprintf("asset_amount=%llu", asset_amount) + ", " +
203 strprintf("price=%llu", price) + ", " +
204 strprintf("dex_id=%u", dex_id) + ", " +
205 strprintf("has_operator_config=%d", has_operator_config) + ", " +
206 strprintf("open_mode=%llu", kOpenModeHelper.GetName(open_mode)) + ", " +
207 strprintf("operator_taker_fee_ratio=%llu", taker_fee_ratio) + ", " +
208 strprintf("operator_maker_fee_ratio=%llu", maker_fee_ratio) + ", " +
209 strprintf("operator_uid=%s", operator_uid.ToDebugString()) + ", " +
210 strprintf("operator_signature=%s", HexStr(operator_signature)) + ", " +
211 strprintf("memo_hex=%s", nVersion);
212 }
213
214 Object CDEXOrderBaseTx::ToJson(CCacheWrapper &cw) const {
215 Object result = CBaseTx::ToJson(cw);

Callers 10

ExecuteTxMethod · 0.45
ToJsonMethod · 0.45
FreezeBalanceMethod · 0.45
ExecuteMethod · 0.45
SubDealFeeMethod · 0.45
GetDealOrderMethod · 0.45
CheckTxMethod · 0.45

Calls 4

GetTxTypeFunction · 0.85
HexStrFunction · 0.85
ToDebugStringMethod · 0.80
GetHexMethod · 0.45

Tested by

no test coverage detected