UNPKG

@ark-us/evm2wasm

Version:

This is a JS protope of a EVM to eWASM transcompiler

163 lines 4.72 kB
[ { "op": "EXP", "value": "0x0a", "description": "(2^256 - 1) ^ (2^256 - 1)", "in": { "stack": [ "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ] }, "out": { "stack": [ "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ], "gasUsed": 320 }, "environment": { "callData": "0x00", "caller": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000" } }, { "op": "EXP", "value": "0x0a", "description": "(2^256 -1) ^ 0", "in": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000000", "0xfhttp://www.comp.nus.edu.sg/~loiluu/#fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ] }, "out": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000001" ], "gasUsed": 0 }, "environment": { "callData": "0x00", "caller": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000" } }, { "op": "EXP", "value": "0x0a", "description": "(2^256 - 1) ^ 2", "in": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000002", "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ] }, "out": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000001" ], "gasUsed": 10 }, "environment": { "callData": "0x00", "caller": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000" } }, { "op": "EXP", "value": "0x0a", "description": "2 ^ (2^256 - 1)", "in": { "stack": [ "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "0x0000000000000000000000000000000000000000000000000000000000000002" ] }, "out": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000000" ], "gasUsed": 320 }, "environment": { "callData": "0x00", "caller": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000" } }, { "op": "EXP", "value": "0x0a", "description": "1 ^ 2", "in": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000002", "0x0000000000000000000000000000000000000000000000000000000000000001" ] }, "out": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000001" ], "gasUsed": 10 }, "environment": { "callData": "0x00", "caller": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000" } }, { "op": "EXP", "value": "0x0a", "description": "2 ^ 2", "in": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000002", "0x0000000000000000000000000000000000000000000000000000000000000002" ] }, "out": { "stack": [ "0x0000000000000000000000000000000000000000000000000000000000000004" ], "gasUsed": 10 }, "environment": { "callData": "0x00", "caller": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000" } }, { "op": "EXP", "value": "0x0a", "description": "ff ^ 0x100000000000000000000", "in": { "stack": [ "0x0000000000000000000000000000000000000000000100000000000000000000", "0x00000000000000000000000000000000000000000000000000000000000000ff" ] }, "out": { "stack": [ "0xfe0f60957dc223578a0298879ec55c33085514ff7f0000000000000000000001" ], "gasUsed": 110 }, "environment": { "callData": "0x00", "caller": "0x0000000000000000000000000000000000000000", "address": "0x0000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000" } } ]