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

Method ValueToString

src/tx/dexoperatortx.h:237–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 bool UpdateToDexOperator(DexOperatorDetail& detail,CCacheWrapper& cw);
236
237 string ValueToString() const {
238 switch (field){
239 case FEE_RECEIVER_UID:
240 case OWNER_UID:
241 return get<CUserID>().ToString();
242 case NAME:
243 case PORTAL_URL:
244 case MEMO:
245 return get<string>();
246 case OPEN_MODE:
247 return dex::kOpenModeHelper.GetName(get<dex::OpenMode>());
248 case MAKER_FEE_RATIO:
249 case TAKER_FEE_RATIO:
250 return db_util::ToString(get<uint64_t>());
251 case ORDER_OPEN_DEXOP_LIST:
252 return db_util::ToString(get<DexOpIdValueList>());
253 default:
254 return EMPTY_STRING;
255
256 }
257
258 }
259
260};
261

Callers

nothing calls this directly

Calls 2

ToStringFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected