222{
223 switch (status_code)
224 {
226 return "success";
228 return "failure";
230 return "revert";
232 return "out of gas";
234 return "invalid instruction";
236 return "undefined instruction";
238 return "stack overflow";
240 return "stack underflow";
242 return "bad jump destination";
244 return "invalid memory access";
246 return "call depth exceeded";
248 return "static mode violation";
250 return "precompile failure";
252 return "contract validation failure";
254 return "argument out of range";
256 return "wasm unreachable instruction";
258 return "wasm trap";
260 return "insufficient balance";
262 return "internal error";
264 return "rejected";
266 return "out of memory";
267 }
268 return "<unknown>";
269}
@ EVMC_INSUFFICIENT_BALANCE
The caller does not have enough funds for value transfer.
@ EVMC_ARGUMENT_OUT_OF_RANGE
An argument to a state accessing method has a value outside of the accepted range of values.
@ EVMC_INVALID_MEMORY_ACCESS
Tried to read outside memory bounds.
@ EVMC_REJECTED
The execution of the given code and/or message has been rejected by the EVM implementation.
@ EVMC_UNDEFINED_INSTRUCTION
An undefined instruction has been encountered.
@ EVMC_SUCCESS
Execution finished with success.
@ EVMC_STACK_UNDERFLOW
Execution of an opcode has required more items on the EVM stack.
@ EVMC_BAD_JUMP_DESTINATION
Execution has violated the jump destination restrictions.
@ EVMC_INVALID_INSTRUCTION
The designated INVALID instruction has been hit during execution.
@ EVMC_STATIC_MODE_VIOLATION
Tried to execute an operation which is restricted in static mode.
@ EVMC_WASM_TRAP
A WebAssembly trap has been hit during execution.
@ EVMC_PRECOMPILE_FAILURE
A call to a precompiled or system contract has ended with a failure.
@ EVMC_INTERNAL_ERROR
EVM implementation generic internal error.
@ EVMC_OUT_OF_GAS
The execution has run out of gas.
@ EVMC_CONTRACT_VALIDATION_FAILURE
Contract validation has failed (e.g.
@ EVMC_CALL_DEPTH_EXCEEDED
Call depth has exceeded the limit (if any)
@ EVMC_WASM_UNREACHABLE_INSTRUCTION
A WebAssembly unreachable instruction has been hit during execution.
@ EVMC_STACK_OVERFLOW
The execution has attempted to put more items on the EVM stack than the specified limit.
@ EVMC_FAILURE
Generic execution failure.
@ EVMC_REVERT
Execution terminated with REVERT opcode.