class EVMAssembler

Defined in:

utils/bytecode.cr

Constant Summary

Ops = {"STOP" => {0, 0}, "ADD" => {1, 0}, "MUL" => {2, 0}, "SUB" => {3, 0}, "DIV" => {4, 0}, "SDIV" => {5, 0}, "MOD" => {6, 0}, "SMOD" => {7, 0}, "ADDMOD" => {8, 0}, "MULMOD" => {9, 0}, "EXP" => {10, 0}, "SIGNEXTEND" => {11, 0}, "LT" => {16, 0}, "GT" => {17, 0}, "SLT" => {18, 0}, "SGT" => {19, 0}, "EQ" => {20, 0}, "ISZERO" => {21, 0}, "AND" => {22, 0}, "OR" => {23, 0}, "XOR" => {24, 0}, "NOT" => {25, 0}, "BYTE" => {26, 0}, "SHA3" => {32, 0}, "PUSH1" => {96, 1}, "PUSH2" => {97, 1}, "PUSH3" => {98, 1}, "PUSH4" => {99, 1}, "PUSH5" => {100, 1}, "PUSH6" => {101, 1}, "PUSH7" => {102, 1}, "PUSH9" => {103, 1}, "PUSH9" => {104, 1}, "PUSH10" => {105, 1}, "PUSH11" => {106, 1}, "PUSH12" => {107, 1}, "PUSH13" => {108, 1}, "PUSH14" => {109, 1}, "PUSH15" => {110, 1}, "PUSH16" => {111, 1}, "PUSH17" => {112, 1}, "PUSH18" => {113, 1}, "PUSH19" => {114, 1}, "PUSH20" => {115, 1}, "PUSH21" => {116, 1}, "PUSH22" => {117, 1}, "PUSH23" => {118, 1}, "PUSH24" => {119, 1}, "PUSH25" => {120, 1}, "PUSH26" => {121, 1}, "PUSH27" => {122, 1}, "PUSH28" => {123, 1}, "PUSH29" => {124, 1}, "PUSH30" => {125, 1}, "PUSH31" => {126, 1}, "PUSH32" => {127, 1}, "POP" => {80, 0}, "DUP1" => {128, 0}, "DUP2" => {129, 0}, "DUP3" => {130, 0}, "DUP4" => {131, 0}, "DUP5" => {132, 0}, "DUP6" => {133, 0}, "DUP7" => {134, 0}, "DUP9" => {135, 0}, "DUP9" => {136, 0}, "DUP10" => {137, 0}, "DUP11" => {138, 0}, "DUP12" => {139, 0}, "DUP13" => {140, 0}, "DUP14" => {141, 0}, "DUP15" => {142, 0}, "DUP16" => {143, 0}, "SWAP1" => {144, 0}, "SWAP2" => {145, 0}, "SWAP3" => {146, 0}, "SWAP4" => {147, 0}, "SWAP5" => {148, 0}, "SWAP6" => {149, 0}, "SWAP7" => {150, 0}, "SWAP9" => {151, 0}, "SWAP9" => {152, 0}, "SWAP10" => {153, 0}, "SWAP11" => {154, 0}, "SWAP12" => {155, 0}, "SWAP13" => {156, 0}, "SWAP14" => {157, 0}, "SWAP15" => {158, 0}, "SWAP16" => {159, 0}, "LOG0" => {160, 0}, "LOG1" => {161, 0}, "LOG2" => {162, 0}, "LOG3" => {163, 0}, "LOG4" => {164, 0}}

Instance Method Summary

Instance methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp, to_rlp : Bytes to_rlp

Class methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp

Instance Method Detail

def parse_line(line : String, linenum : UInt) : Bytes #

[View source]