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

Method ToString

src/tx/cdptx.cpp:363–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363string CCDPStakeTx::ToString(CAccountDBCache &accountCache) {
364 CKeyID keyId;
365 accountCache.GetKeyId(txUid, keyId);
366
367 return strprintf(
368 "txType=%s, hash=%s, ver=%d, txUid=%s, addr=%s, valid_height=%llu, cdp_txid=%s, assets_to_stake=%s, "
369 "scoin_symbol=%s, scoins_to_mint=%d",
370 GetTxType(nTxType), GetHash().ToString(), nVersion, txUid.ToString(), keyId.ToAddress(), valid_height,
371 cdp_txid.ToString(), cdp_util::ToString(assets_to_stake), scoin_symbol, scoins_to_mint);
372}
373
374Object CCDPStakeTx::ToJson(CCacheWrapper &cw) const {
375 Object result = CBaseTx::ToJson(cw);

Callers 7

ReadCdpParamFunction · 0.45
GetBcoinMedianPriceFunction · 0.45
SellInterestForFcoinsFunction · 0.45
ComputeCDPInterestFunction · 0.45
ExecuteTxMethod · 0.45
ToJsonMethod · 0.45
GetSettledInterestCdpsFunction · 0.45

Calls 4

GetTxTypeFunction · 0.85
ToAddressMethod · 0.80
ToStringFunction · 0.70
GetKeyIdMethod · 0.45

Tested by

no test coverage detected