#include <Python.h>
#include <CuEVM/evm.cuh>
#include <CuEVM/utils/opcodes.cuh>
#include <unordered_set>
Go to the source code of this file.
|
#define | GET_STR_FROM_DICT_WITH_DEFAULT(dict, key, default_value) (PyDict_GetItemString(dict, key) ? PyUnicode_AsUTF8(PyDict_GetItemString(dict, key)) : default_value) |
|
|
constexpr char | DefaultBlock::BaseFee [] = "0x0a" |
|
constexpr char | DefaultBlock::CoinBase [] = "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" |
|
constexpr char | DefaultBlock::Difficulty [] = "0x020000" |
|
constexpr char | DefaultBlock::BlockNumber [] = "0x01" |
|
constexpr char | DefaultBlock::GasLimit [] = "0x05f5e100" |
|
constexpr char | DefaultBlock::TimeStamp [] = "0x03e8" |
|
constexpr char | DefaultBlock::PreviousHash [] = "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" |
|
std::unordered_set< int > const | python_utils::bug_opcodes = {OP_ADD, OP_MUL, OP_SUB, OP_MOD, OP_EXP, OP_SELFDESTRUCT, OP_ORIGIN} |
|
std::unordered_set< int > const | python_utils::call_opcodes = {OP_CALL, OP_CALLCODE, OP_DELEGATECALL} |
|
std::unordered_set< int > const | python_utils::comparison_opcodes = {OP_LT, OP_GT, OP_SLT, OP_SGT, OP_EQ} |
|
std::unordered_set< int > const | python_utils::revert_opcodes = {OP_REVERT, OP_INVALID} |
|
◆ GET_STR_FROM_DICT_WITH_DEFAULT
#define GET_STR_FROM_DICT_WITH_DEFAULT |
( |
|
dict, |
|
|
|
key, |
|
|
|
default_value |
|
) |
| (PyDict_GetItemString(dict, key) ? PyUnicode_AsUTF8(PyDict_GetItemString(dict, key)) : default_value) |
◆ copy_dict_recursive()
void copy_dict_recursive |
( |
PyObject * |
read_root, |
|
|
PyObject * |
write_root |
|
) |
| |