@ark-us/evm2wasm
Version:
This is a JS protope of a EVM to eWASM transcompiler
134 lines • 3.9 kB
JSON
[
{
"op": "MOD",
"value": "0x06",
"description": "(2^255 - 1) mod (2^255 - 1)",
"in": {
"stack": [
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "MOD",
"value": "0x06",
"description": "(2^255 -1) mod 0",
"in": {
"stack": [
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "MOD",
"value": "0x06",
"description": "(2^256 - 1) mod 2",
"in": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000001"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "MOD",
"value": "0x06",
"description": "2 mod (2^256 - 1)",
"in": {
"stack": [
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"0x0000000000000000000000000000000000000000000000000000000000000002"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000002"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "MOD",
"value": "0x06",
"description": "1 mod 2",
"in": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"0x0000000000000000000000000000000000000000000000000000000000000001"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000001"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "MOD",
"value": "0x06",
"description": "(2^256 -1) mod (2^256 - 2)",
"in": {
"stack": [
"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe",
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000001"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
}
]