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.4-output.json
More file actions
1 lines (1 loc) · 15.8 KB
/
Copy pathsample-vyper-0.4-output.json
File metadata and controls
1 lines (1 loc) · 15.8 KB
1
{"compiler": "vyper-0.4.0rc6", "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": "0x61003a61000f60003961003a6000f35f3560e01c63fdf80bda811861003257602436103417610036576004358060a01c61003657604052600160605260206060f35b5f5ffd5b5f80fd84183a8000a1657679706572830004000012", "opcodes": "PUSH2 0x003A PUSH2 0x000F PUSH1 0x00 CODECOPY PUSH2 0x003A PUSH1 0x00 RETURN PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFDF80BDA DUP2 XOR PUSH2 0x0032 JUMPI PUSH1 0x24 CALLDATASIZE LT CALLVALUE OR PUSH2 0x0036 JUMPI PUSH1 0x04 CALLDATALOAD DUP1 PUSH1 0xA0 SHR PUSH2 0x0036 JUMPI PUSH1 0x40 MSTORE PUSH1 0x01 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 DIV STOP STOP SLT", "sourceMap": {"breakpoints": [], "error_map": {"37": "bad calldatasize or callvalue", "40": "bad calldatasize or callvalue", "48": "uint160 bounds check", "51": "uint160 bounds check", "68": "fallback function"}, "pc_ast_map": {"0": [0, 0], "52": [0, 5], "54": [0, 5], "55": [0, 9], "62": [0, 3], "64": [0, 3]}, "pc_ast_map_item_keys": ["source_id", "node_id"], "pc_breakpoints": [], "pc_jump_map": {"0": "-", "15": "-", "30": "-", "40": "-", "51": "-", "65": "-", "69": "-"}, "pc_pos_map": {"0": [1, 0, 4, 12], "52": [3, 8, 3, 20], "54": [3, 8, 3, 20], "55": [4, 11, 4, 12], "62": [3, 0, 4, 12], "64": [3, 0, 4, 12]}, "pc_pos_map_compressed": "0:76:0:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;39:12:0;-1:-1:-1;39:12:0;75:1:0;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;31:45:0;-1:-1:-1;31:45:0;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1"}}, "deployedBytecode": {"object": "0x5f3560e01c63fdf80bda811861003257602436103417610036576004358060a01c61003657604052600160605260206060f35b5f5ffd5b5f80fd", "opcodes": "PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFDF80BDA DUP2 XOR PUSH2 0x0032 JUMPI PUSH1 0x24 CALLDATASIZE LT CALLVALUE OR PUSH2 0x0036 JUMPI PUSH1 0x04 CALLDATALOAD DUP1 PUSH1 0xA0 SHR PUSH2 0x0036 JUMPI PUSH1 0x40 MSTORE PUSH1 0x01 PUSH1 0x60 MSTORE PUSH1 0x20 PUSH1 0x60 RETURN JUMPDEST PUSH0 PUSH0 REVERT JUMPDEST PUSH0 DUP1 REVERT", "sourceMap": {"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_ast_map": {"0": [0, 0], "37": [0, 5], "39": [0, 5], "40": [0, 9], "47": [0, 3], "49": [0, 3]}, "pc_ast_map_item_keys": ["source_id", "node_id"], "pc_breakpoints": [], "pc_jump_map": {"0": "-", "15": "-", "25": "-", "36": "-", "50": "-", "54": "-"}, "pc_pos_map": {"0": [1, 0, 4, 12], "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": "0:76:0:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;39:12:0;-1:-1:-1;39:12:0;75:1:0;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;31:45:0;-1:-1:-1;31:45:0;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1"}}, "methodIdentifiers": {"foo(address)": "0xfdf80bda"}}, "interface": "\n# Functions\n\n@external\ndef foo(val: address) -> int128:\n ...\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 0 foo(address)_common"]}, {"seq": [{"label": ["external 0 foo(address)_common", "var_list", {"seq": [{"mstore": [64, {"with": ["val", {"calldataload": [4]}, {"seq": [{"assert": [{"iszero": [{"shr": [160, "val"]}]}]}, "val"]}]}]}, {"seq": [{"exit_to": ["external 0 foo(address)_cleanup", 96, {"seq": [{"mstore": [96, 1]}, 32]}]}, "pass"]}]}]}, {"label": ["external 0 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 0 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": "0x61002761000f6000396100276000f35f3560e01c63febb0f7e811861001f573461002357600160405260206040f35b5f5ffd5b5f80fd8418278000a1657679706572830004000012", "opcodes": "PUSH2 0x0027 PUSH2 0x000F PUSH1 0x00 CODECOPY PUSH2 0x0027 PUSH1 0x00 RETURN PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFEBB0F7E DUP2 XOR PUSH2 0x001F JUMPI CALLVALUE PUSH2 0x0023 JUMPI PUSH1 0x01 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 DIV STOP STOP SLT", "sourceMap": {"breakpoints": [], "error_map": {"32": "bad calldatasize or callvalue", "35": "bad calldatasize or callvalue", "49": "fallback function"}, "pc_ast_map": {"0": [1, 0], "36": [1, 4], "43": [1, 1], "45": [1, 1]}, "pc_ast_map_item_keys": ["source_id", "node_id"], "pc_breakpoints": [], "pc_jump_map": {"0": "-", "15": "-", "30": "-", "35": "-", "46": "-", "50": "-"}, "pc_pos_map": {"0": [1, 0, 3, 12], "36": [3, 11, 3, 12], "43": [2, 0, 3, 12], "45": [2, 0, 3, 12]}, "pc_pos_map_compressed": "0:43:1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;42:1:1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;10:33:1;-1:-1:-1;10:33:1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1"}}, "deployedBytecode": {"object": "0x5f3560e01c63febb0f7e811861001f573461002357600160405260206040f35b5f5ffd5b5f80fd", "opcodes": "PUSH0 CALLDATALOAD PUSH1 0xE0 SHR PUSH4 0xFEBB0F7E DUP2 XOR PUSH2 0x001F JUMPI CALLVALUE PUSH2 0x0023 JUMPI PUSH1 0x01 PUSH1 0x40 MSTORE PUSH1 0x20 PUSH1 0x40 RETURN JUMPDEST PUSH0 PUSH0 REVERT JUMPDEST PUSH0 DUP1 REVERT", "sourceMap": {"breakpoints": [], "error_map": {"17": "bad calldatasize or callvalue", "20": "bad calldatasize or callvalue", "34": "fallback function"}, "pc_ast_map": {"0": [1, 0], "21": [1, 4], "28": [1, 1], "30": [1, 1]}, "pc_ast_map_item_keys": ["source_id", "node_id"], "pc_breakpoints": [], "pc_jump_map": {"0": "-", "15": "-", "20": "-", "31": "-", "35": "-"}, "pc_pos_map": {"0": [1, 0, 3, 12], "21": [3, 11, 3, 12], "28": [2, 0, 3, 12], "30": [2, 0, 3, 12]}, "pc_pos_map_compressed": "0:43:1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;42:1:1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1;10:33:1;-1:-1:-1;10:33:1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1;-1:-1:-1:-;-1:-1:-1;-1:-1:-1;-1:-1:-1"}}, "methodIdentifiers": {"bar()": "0xfebb0f7e"}}, "interface": "\n# Functions\n\n@external\ndef bar() -> int128:\n ...\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 0 bar()_common"]}, {"seq": [{"label": ["external 0 bar()_common", "var_list", {"seq": [{"exit_to": ["external 0 bar()_cleanup", 64, {"seq": [{"mstore": [64, 1]}, 32]}]}, "pass"]}]}, {"label": ["external 0 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 0 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": {"annotated_ast": {"ast_type": "Module", "body": [{"alias": "B", "ast_type": "ImportFrom", "col_offset": 0, "end_col_offset": 20, "end_lineno": 1, "import_info": {"alias": "B", "file_sha256sum": "32fc98915e821667adb475381d87ced5329abd8b8dab74acf4658905e7d17ebf", "path": "b.vy", "qualified_module_name": "b", "resolved_path": "src/b.vy", "source_id": 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", "type": {"bits": 128, "is_signed": true, "name": "int128", "typeclass": "integer"}, "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": null, "node_id": 0, "path": "src/a.vy", "resolved_path": "src/a.vy", "source_id": 0, "source_sha256sum": "49a4e0a0e9dacefdbea4be8efe4f6cee83eedb78804699d477edfc08df573e0b", "src": "0:76:0", "type": {"name": "src/a.vy", "type_decl_node": {"node_id": 0, "source_id": 0}, "typeclass": "module"}}, "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": null, "node_id": 0, "path": "src/a.vy", "resolved_path": "src/a.vy", "source_id": 0, "source_sha256sum": "49a4e0a0e9dacefdbea4be8efe4f6cee83eedb78804699d477edfc08df573e0b", "src": "0:76:0"}, "id": 0}, "src/b.vy": {"annotated_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", "type": {"bits": 128, "is_signed": true, "name": "int128", "typeclass": "integer"}, "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": null, "node_id": 0, "path": "src/b.vy", "resolved_path": "src/b.vy", "source_id": 1, "source_sha256sum": "32fc98915e821667adb475381d87ced5329abd8b8dab74acf4658905e7d17ebf", "src": "0:43:1", "type": {"name": "src/b.vy", "type_decl_node": {"node_id": 0, "source_id": 1}, "typeclass": "module"}}, "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": null, "node_id": 0, "path": "src/b.vy", "resolved_path": "src/b.vy", "source_id": 1, "source_sha256sum": "32fc98915e821667adb475381d87ced5329abd8b8dab74acf4658905e7d17ebf", "src": "0:43:1"}, "id": 1}}}