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

Function GetOrderOpenMode

src/rpc/rpcdex.cpp:159–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 OpenMode GetOrderOpenMode(const Value &jsonValue) {
160 OpenMode ret = OpenMode::PRIVATE;
161 if (!kOpenModeHelper.Parse(jsonValue.get_str(), ret))
162 throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("order_open_mode=%s is invalid",
163 jsonValue.get_str()));
164 return ret;
165 }
166
167 OpenMode GetOrderOpenMode(const Array &params, const size_t index) {
168

Callers 3

gendexoperatorordertxFunction · 0.85
submitdexoperatorregtxFunction · 0.85
submitdexopupdatetxFunction · 0.85

Calls 3

JSONRPCErrorFunction · 0.85
ParseMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected