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

Function GetOrderSide

src/rpc/rpcdex.cpp:118–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 OrderSide GetOrderSide(const Value &jsonValue) {
119 OrderSide ret = OrderSide::ORDER_SIDE_NULL;
120 if (!kOrderSideHelper.Parse(jsonValue.get_str(), ret))
121 throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("order_side=%s is invalid",
122 jsonValue.get_str()));
123 return ret;
124 }
125
126 DexID GetDexId(const Value &jsonValue) {
127 return RPC_PARAM::GetUint32(jsonValue);

Callers 1

gendexoperatorordertxFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
ParseMethod · 0.80

Tested by

no test coverage detected