This repository was archived by the owner on Apr 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathsample-vyper-0.3-output.json
More file actions
1 lines (1 loc) · 8.89 KB
/
Copy pathsample-vyper-0.3-output.json
File metadata and controls
1 lines (1 loc) · 8.89 KB
1
{"compiler": "vyper-0.3.10", "contracts": {"src/a.vy": {"a": {"abi": [{"inputs": [{"name": "val", "type": "address"}], "name": "foo", "outputs": [{"name": "", "type": "int128"}], "stateMutability": "nonpayable", "type": "function"}], "devdoc": {}, "evm": {"bytecode": {"object": "0x61003a61000f60003961003a6000f35f3560e01c63fdf80bda811861003257602436103417610036576004358060a01c61003657604052600160605260206060f35b5f5ffd5b5f80fd84183a8000a16576797065728300030a0012", "opcodes": "PUSH2 0x03A PUSH2 0x0F PUSH1 0x0 CODECOPY PUSH2 0x03A PUSH1 0x0 RETURN PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFDF8BDA DUP2 XOR PUSH2 0x032 JUMPI PUSH1 0x24 CALLDATASIZE LT CALLVALUE OR PUSH2 0x036 JUMPI PUSH1 0x4 CALLDATALOAD DUP1 PUSH1 0xA0 SHR PUSH2 0x036 JUMPI PUSH1 0x40 MSTORE PUSH1 0x1 PUSH1 0x60 MSTORE PUSH1 0x20 PUSH1 0x60 RETURN JUMPDEST PUSH0 PUSH0 REVERT JUMPDEST PUSH0 DUP1 REVERT DUP5 XOR GASPRICE DUP1 STOP LOG1 PUSH6 0x767970657283 STOP SUB EXP STOP SLT"}, "deployedBytecode": {"object": "0x5f3560e01c63fdf80bda811861003257602436103417610036576004358060a01c61003657604052600160605260206060f35b5f5ffd5b5f80fd", "opcodes": "PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFDF8BDA DUP2 XOR PUSH2 0x032 JUMPI PUSH1 0x24 CALLDATASIZE LT CALLVALUE OR PUSH2 0x036 JUMPI PUSH1 0x4 CALLDATALOAD DUP1 PUSH1 0xA0 SHR PUSH2 0x036 JUMPI PUSH1 0x40 MSTORE PUSH1 0x1 PUSH1 0x60 MSTORE PUSH1 0x20 PUSH1 0x60 RETURN JUMPDEST PUSH0 PUSH0 REVERT JUMPDEST PUSH0 DUP1 REVERT", "sourceMap": "-1:-1:0:-;;;;;;;;:::-;;;;;;;:::-;;;;;;;:::-;39:12;;75:1;-1:-1;;;31:45;;-1:-1::-;;;;:::-;;;", "sourceMapFull": {"breakpoints": [], "error_map": {"22": "bad calldatasize or callvalue", "25": "bad calldatasize or callvalue", "33": "uint160 bounds check", "36": "uint160 bounds check", "53": "fallback function"}, "pc_breakpoints": [], "pc_jump_map": {"0": "-", "15": "-", "25": "-", "36": "-", "50": "-", "54": "-"}, "pc_pos_map": {"37": [3, 8, 3, 20], "39": [3, 8, 3, 20], "40": [4, 11, 4, 12], "47": [3, 0, 4, 12], "49": [3, 0, 4, 12]}, "pc_pos_map_compressed": "-1:-1:0:-;;;;;;;;:::-;;;;;;;:::-;;;;;;;:::-;39:12;;75:1;-1:-1;;;31:45;;-1:-1::-;;;;:::-;;;"}}, "methodIdentifiers": {"foo(address)": "0xfdf80bda"}}, "interface": "\n# Functions\n\n@external\ndef foo(val: address) -> int128:\n pass\n\n", "ir": {"deploy": [0, {"seq": [{"with": ["_calldata_method_id", {"shr": [224, {"calldataload": [0]}]}, {"seq": [{"label": ["selector_bucket_0", "var_list", {"seq": []}]}, {"seq": [{"if": [{"iszero": [{"xor": ["_calldata_method_id", 4260891610]}]}, {"seq": [{"assert": [{"iszero": [{"or": ["callvalue", {"lt": ["calldatasize", 36]}]}]}]}, {"seq": [{"goto": ["external_foo__address__common"]}, {"seq": [{"label": ["external_foo__address__common", "var_list", {"seq": [{"mstore": [64, {"with": ["val", {"calldataload": [4]}, {"seq": [{"assert": [{"iszero": [{"shr": [160, "val"]}]}]}, "val"]}]}]}, {"seq": [{"exit_to": ["external_foo__address__cleanup", 96, {"seq": [{"mstore": [96, 1]}, 32]}]}, "pass"]}]}]}, {"label": ["external_foo__address__cleanup", {"var_list": ["ret_ofst", "ret_len"]}, {"return": ["ret_ofst", "ret_len"]}]}]}]}]}]}, {"goto": ["fallback"]}]}]}]}, {"goto": ["fallback"]}, {"label": ["fallback", "var_list", {"revert": [0, 0]}]}]}, 0]}, "metadata": {"function_info": {"foo": {"_ir_identifier": "external_foo__address_", "default_values": {}, "frame_info": {"frame_size": 64, "frame_start": 64}, "keyword_args": {}, "mutability": "nonpayable", "name": "foo", "positional_args": {"val": "address"}, "return_type": "int128", "visibility": "external"}}}, "userdoc": {}}}, "src/b.vy": {"b": {"abi": [{"inputs": [], "name": "bar", "outputs": [{"name": "", "type": "int128"}], "stateMutability": "nonpayable", "type": "function"}], "devdoc": {}, "evm": {"bytecode": {"object": "0x61002761000f6000396100276000f35f3560e01c63febb0f7e811861001f573461002357600160405260206040f35b5f5ffd5b5f80fd8418278000a16576797065728300030a0012", "opcodes": "PUSH2 0x027 PUSH2 0x0F PUSH1 0x0 CODECOPY PUSH2 0x027 PUSH1 0x0 RETURN PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFEBBF7E DUP2 XOR PUSH2 0x01F JUMPI CALLVALUE PUSH2 0x023 JUMPI PUSH1 0x1 PUSH1 0x40 MSTORE PUSH1 0x20 PUSH1 0x40 RETURN JUMPDEST PUSH0 PUSH0 REVERT JUMPDEST PUSH0 DUP1 REVERT DUP5 XOR VERBATIM_0x27 DUP1 STOP LOG1 PUSH6 0x767970657283 STOP SUB EXP STOP SLT"}, "deployedBytecode": {"object": "0x5f3560e01c63febb0f7e811861001f573461002357600160405260206040f35b5f5ffd5b5f80fd", "opcodes": "PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFEBBF7E DUP2 XOR PUSH2 0x01F JUMPI CALLVALUE PUSH2 0x023 JUMPI PUSH1 0x1 PUSH1 0x40 MSTORE PUSH1 0x20 PUSH1 0x40 RETURN JUMPDEST PUSH0 PUSH0 REVERT JUMPDEST PUSH0 DUP1 REVERT", "sourceMap": "-1:-1:1:-;;;;;;;;:::-;;;:::-;42:1;-1:-1;;;10:33;;-1:-1::-;;;;:::-;;;", "sourceMapFull": {"breakpoints": [], "error_map": {"17": "bad calldatasize or callvalue", "20": "bad calldatasize or callvalue", "34": "fallback function"}, "pc_breakpoints": [], "pc_jump_map": {"0": "-", "15": "-", "20": "-", "31": "-", "35": "-"}, "pc_pos_map": {"21": [3, 11, 3, 12], "28": [2, 0, 3, 12], "30": [2, 0, 3, 12]}, "pc_pos_map_compressed": "-1:-1:1:-;;;;;;;;:::-;;;:::-;42:1;-1:-1;;;10:33;;-1:-1::-;;;;:::-;;;"}}, "methodIdentifiers": {"bar()": "0xfebb0f7e"}}, "interface": "\n# Functions\n\n@external\ndef bar() -> int128:\n pass\n\n", "ir": {"deploy": [0, {"seq": [{"with": ["_calldata_method_id", {"shr": [224, {"calldataload": [0]}]}, {"seq": [{"label": ["selector_bucket_0", "var_list", {"seq": []}]}, {"seq": [{"if": [{"iszero": [{"xor": ["_calldata_method_id", 4273672062]}]}, {"seq": [{"assert": [{"iszero": ["callvalue"]}]}, {"seq": [{"goto": ["external_bar____common"]}, {"seq": [{"label": ["external_bar____common", "var_list", {"seq": [{"exit_to": ["external_bar____cleanup", 64, {"seq": [{"mstore": [64, 1]}, 32]}]}, "pass"]}]}, {"label": ["external_bar____cleanup", {"var_list": ["ret_ofst", "ret_len"]}, {"return": ["ret_ofst", "ret_len"]}]}]}]}]}]}, {"goto": ["fallback"]}]}]}]}, {"goto": ["fallback"]}, {"label": ["fallback", "var_list", {"revert": [0, 0]}]}]}, 0]}, "metadata": {"function_info": {"bar": {"_ir_identifier": "external_bar___", "default_values": {}, "frame_info": {"frame_size": 32, "frame_start": 64}, "keyword_args": {}, "mutability": "nonpayable", "name": "bar", "positional_args": {}, "return_type": "int128", "visibility": "external"}}}, "userdoc": {}}}}, "sources": {"src/a.vy": {"ast": {"ast_type": "Module", "body": [{"alias": "B", "ast_type": "ImportFrom", "col_offset": 0, "end_col_offset": 20, "end_lineno": 1, "level": 1, "lineno": 1, "module": null, "name": "b", "node_id": 1, "src": "0:20:0"}, {"args": {"args": [{"annotation": {"ast_type": "Name", "col_offset": 13, "end_col_offset": 20, "end_lineno": 3, "id": "address", "lineno": 3, "node_id": 6, "src": "44:7:0"}, "arg": "val", "ast_type": "arg", "col_offset": 8, "end_col_offset": 20, "end_lineno": 3, "lineno": 3, "node_id": 5, "src": "39:12:0"}], "ast_type": "arguments", "col_offset": 8, "default": null, "defaults": [], "end_col_offset": 20, "end_lineno": 3, "lineno": 3, "node_id": 4, "src": "39:12:0"}, "ast_type": "FunctionDef", "body": [{"ast_type": "Return", "col_offset": 4, "end_col_offset": 12, "end_lineno": 4, "lineno": 4, "node_id": 8, "src": "68:8:0", "value": {"ast_type": "Int", "col_offset": 11, "end_col_offset": 12, "end_lineno": 4, "lineno": 4, "node_id": 9, "src": "75:1:0", "value": 1}}], "col_offset": 0, "decorator_list": [{"ast_type": "Name", "col_offset": 1, "end_col_offset": 9, "end_lineno": 2, "id": "external", "lineno": 2, "node_id": 10, "src": "22:8:0"}], "doc_string": null, "end_col_offset": 12, "end_lineno": 4, "lineno": 3, "name": "foo", "node_id": 3, "pos": null, "returns": {"ast_type": "Name", "col_offset": 25, "end_col_offset": 31, "end_lineno": 3, "id": "int128", "lineno": 3, "node_id": 12, "src": "56:6:0"}, "src": "31:45:0"}], "col_offset": 0, "doc_string": null, "end_col_offset": 12, "end_lineno": 4, "lineno": 1, "name": "src/a.vy", "node_id": 0, "src": "0:76:0"}, "id": 0}, "src/b.vy": {"ast": {"ast_type": "Module", "body": [{"args": {"args": [], "ast_type": "arguments", "col_offset": 0, "default": null, "defaults": [], "end_col_offset": 3, "end_lineno": 2, "lineno": 2, "node_id": 2, "src": "10:3:1"}, "ast_type": "FunctionDef", "body": [{"ast_type": "Return", "col_offset": 4, "end_col_offset": 12, "end_lineno": 3, "lineno": 3, "node_id": 3, "src": "35:8:1", "value": {"ast_type": "Int", "col_offset": 11, "end_col_offset": 12, "end_lineno": 3, "lineno": 3, "node_id": 4, "src": "42:1:1", "value": 1}}], "col_offset": 0, "decorator_list": [{"ast_type": "Name", "col_offset": 1, "end_col_offset": 9, "end_lineno": 1, "id": "external", "lineno": 1, "node_id": 5, "src": "1:8:1"}], "doc_string": null, "end_col_offset": 12, "end_lineno": 3, "lineno": 2, "name": "bar", "node_id": 1, "pos": null, "returns": {"ast_type": "Name", "col_offset": 13, "end_col_offset": 19, "end_lineno": 2, "id": "int128", "lineno": 2, "node_id": 7, "src": "23:6:1"}, "src": "10:33:1"}], "col_offset": 0, "doc_string": null, "end_col_offset": 12, "end_lineno": 3, "lineno": 1, "name": "src/b.vy", "node_id": 0, "src": "0:43:1"}, "id": 1}}}