|
|
@ -101,6 +101,7 @@ const ( |
|
|
|
NUMBER |
|
|
|
NUMBER |
|
|
|
DIFFICULTY |
|
|
|
DIFFICULTY |
|
|
|
GASLIMIT |
|
|
|
GASLIMIT |
|
|
|
|
|
|
|
CHAINID = 0x46 |
|
|
|
SELFBALANCE = 0x47 |
|
|
|
SELFBALANCE = 0x47 |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -278,6 +279,7 @@ var opCodeToString = map[OpCode]string{ |
|
|
|
NUMBER: "NUMBER", |
|
|
|
NUMBER: "NUMBER", |
|
|
|
DIFFICULTY: "DIFFICULTY", |
|
|
|
DIFFICULTY: "DIFFICULTY", |
|
|
|
GASLIMIT: "GASLIMIT", |
|
|
|
GASLIMIT: "GASLIMIT", |
|
|
|
|
|
|
|
CHAINID: "CHAINID", |
|
|
|
SELFBALANCE: "SELFBALANCE", |
|
|
|
SELFBALANCE: "SELFBALANCE", |
|
|
|
|
|
|
|
|
|
|
|
// 0x50 range - 'storage' and execution.
|
|
|
|
// 0x50 range - 'storage' and execution.
|
|
|
@ -430,6 +432,7 @@ var stringToOp = map[string]OpCode{ |
|
|
|
"CALLDATALOAD": CALLDATALOAD, |
|
|
|
"CALLDATALOAD": CALLDATALOAD, |
|
|
|
"CALLDATASIZE": CALLDATASIZE, |
|
|
|
"CALLDATASIZE": CALLDATASIZE, |
|
|
|
"CALLDATACOPY": CALLDATACOPY, |
|
|
|
"CALLDATACOPY": CALLDATACOPY, |
|
|
|
|
|
|
|
"CHAINID": CHAINID, |
|
|
|
"DELEGATECALL": DELEGATECALL, |
|
|
|
"DELEGATECALL": DELEGATECALL, |
|
|
|
"STATICCALL": STATICCALL, |
|
|
|
"STATICCALL": STATICCALL, |
|
|
|
"CODESIZE": CODESIZE, |
|
|
|
"CODESIZE": CODESIZE, |
|
|
|