@ark-us/evm2wasm
Version:
This is a JS protope of a EVM to eWASM transcompiler
134 lines • 3.84 kB
JSON
[
{
"op": "DIV",
"value": "0x04",
"description": "2^255 / 2^255",
"in": {
"stack": [
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000001"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "DIV",
"value": "0x04",
"description": "2^255 / 0",
"in": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "DIV",
"value": "0x04",
"description": "2^255 / 2",
"in": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
]
},
"out": {
"stack": [
"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "DIV",
"value": "0x04",
"description": "2 / 2^255",
"in": {
"stack": [
"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"0x0000000000000000000000000000000000000000000000000000000000000002"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "DIV",
"value": "0x04",
"description": "1/2",
"in": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"0x0000000000000000000000000000000000000000000000000000000000000001"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
},
{
"op": "DIV",
"value": "0x04",
"description": "19/2",
"in": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000002",
"0x0000000000000000000000000000000000000000000000000000000000000013"
]
},
"out": {
"stack": [
"0x0000000000000000000000000000000000000000000000000000000000000009"
]
},
"environment": {
"callData": "0x00",
"caller": "0x0000000000000000000000000000000000000000",
"address": "0x0000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000"
}
}
]