From a54aeead2e2a647f6e4d2820f9e43c2e2881aa1d Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Sun, 14 Jul 2024 13:47:41 +0200 Subject: [PATCH] poc --- bootloader_input.json | 271 +- .../contract/execute_entry_point.cairo | 10 +- .../contract/execute_syscalls.cairo | 37 +- .../contract/run_contract_bootloader.cairo | 17 +- .../contract/starknet_new_syscalls.json | 1358 ---- .../contract/starknet_syscalls.json | 7132 ----------------- .../bootloader/contract/syscall_handler.py | 10 +- 7 files changed, 257 insertions(+), 8578 deletions(-) delete mode 100644 cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json delete mode 100644 cairo0-bootloader/bootloader/contract/starknet_syscalls.json diff --git a/bootloader_input.json b/bootloader_input.json index 48bf9f7..6b72265 100644 --- a/bootloader_input.json +++ b/bootloader_input.json @@ -11,7 +11,7 @@ "0x100000000000000000000000000000000", "0x400280007ff97fff", "0x10780017fff7fff", - "0xc8", + "0x128", "0x4825800180007ffa", "0x0", "0x400280007ff97fff", @@ -37,7 +37,7 @@ "0x480680017fff8000", "0x0", "0x20680017fff7ffe", - "0x9d", + "0xfd", "0xa0680017fff8004", "0xe", "0x4824800180047ffe", @@ -51,7 +51,7 @@ "0xffffffffffffffeeffffffffffffffff", "0x400080027ff47ffd", "0x10780017fff7fff", - "0x8b", + "0xeb", "0x484480017fff8001", "0x8000000000000000000000000000000", "0x48307fff80007ffd", @@ -66,14 +66,77 @@ "0x20680017fff7fff", "0x4", "0x10780017fff7fff", + "0xa", + "0x482480017ff58000", + "0x1", + "0x48127ff57fff8000", + "0x480680017fff8000", + "0x0", + "0x480080007ff28000", + "0x10780017fff7fff", + "0x8", + "0x48127ff57fff8000", + "0x48127ff57fff8000", + "0x480680017fff8000", + "0x1", + "0x480680017fff8000", + "0x0", + "0x20680017fff7ffe", + "0xbe", + "0x48307ffc80007ffd", + "0x20680017fff7fff", + "0x4", + "0x10780017fff7fff", + "0xa", + "0x482480017ffb8000", + "0x1", + "0x48127ffb7fff8000", + "0x480680017fff8000", + "0x0", + "0x480080007ff88000", + "0x10780017fff7fff", + "0x8", + "0x48127ffb7fff8000", + "0x48127ffb7fff8000", + "0x480680017fff8000", + "0x1", + "0x480680017fff8000", + "0x0", + "0x20680017fff7ffe", + "0x9b", + "0x48307ffc80007ffd", + "0x20680017fff7fff", + "0x4", + "0x10780017fff7fff", + "0xa", + "0x482480017ffb8000", + "0x1", + "0x48127ffb7fff8000", + "0x480680017fff8000", + "0x0", + "0x480080007ff88000", + "0x10780017fff7fff", + "0x8", + "0x48127ffb7fff8000", + "0x48127ffb7fff8000", + "0x480680017fff8000", + "0x1", + "0x480680017fff8000", + "0x0", + "0x20680017fff7ffe", + "0x78", + "0x48307ffc80007ffd", + "0x20680017fff7fff", + "0x4", + "0x10780017fff7fff", "0x10", "0x40780017fff7fff", "0x1", "0x480680017fff8000", "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473", "0x400080007ffe7fff", - "0x48127ffc7fff8000", - "0x48127fef7fff8000", + "0x48127fed7fff8000", + "0x48127fe07fff8000", "0x480a7ffb7fff8000", "0x480680017fff8000", "0x1", @@ -82,48 +145,39 @@ "0x1", "0x208b7fff7fff7ffe", "0x1104800180018000", - "0xd2", + "0xf3", "0x482480017fff8000", - "0xd1", + "0xf2", "0x480080007fff8000", "0xa0680017fff8000", "0x9", - "0x4824800180007fed", - "0x233c", + "0x4824800180007fde", + "0x2aa8", "0x482480017fff8000", "0x100000000000000000000000000000000", - "0x400080007ff77fff", + "0x400080007fe87fff", "0x10780017fff7fff", - "0x51", - "0x4824800180007fed", - "0x233c", - "0x400080007ff87fff", + "0x48", + "0x4824800180007fde", + "0x2aa8", + "0x400080007fe97fff", "0x40780017fff7fff", "0x1", - "0x480680017fff8000", - "0xa", - "0x400080007ffe7fff", - "0x480680017fff8000", - "0xb", - "0x400080017ffd7fff", - "0x480680017fff8000", - "0xc", - "0x400080027ffc7fff", - "0x480680017fff8000", - "0xe", - "0x400080037ffb7fff", + "0x400080007fff7fed", + "0x400080017fff7ff2", + "0x400080027fff7ff7", "0x480680017fff8000", "0x1", - "0x48127ffa7fff8000", - "0x482480017ff98000", - "0x4", - "0x482480017ff08000", + "0x48127ffe7fff8000", + "0x482480017ffd8000", + "0x3", + "0x482480017fe58000", "0x1", "0x480680017fff8000", "0x43616c6c436f6e7472616374", "0x400280007ffb7fff", - "0x400280017ffb7ff5", - "0x400280027ffb7fe8", + "0x400280017ffb7ff9", + "0x400280027ffb7fdd", "0x400280037ffb7ffb", "0x400280047ffb7ffc", "0x400280057ffb7ffd", @@ -146,7 +200,7 @@ "0x402780017ffb8000", "0xa", "0x1104800180018000", - "0x50", + "0x7a", "0x20680017fff7ffd", "0xa", "0x48127ffb7fff8000", @@ -179,9 +233,51 @@ "0x480680017fff8000", "0x4f7574206f6620676173", "0x400080007ffe7fff", - "0x482480017ff58000", + "0x482480017fe68000", "0x1", - "0x48127fe87fff8000", + "0x48127fd97fff8000", + "0x480a7ffb7fff8000", + "0x480680017fff8000", + "0x1", + "0x48127ffa7fff8000", + "0x482480017ff98000", + "0x1", + "0x208b7fff7fff7ffe", + "0x40780017fff7fff", + "0x1", + "0x480680017fff8000", + "0x4661696c656420746f20646573657269616c697a6520706172616d202334", + "0x400080007ffe7fff", + "0x48127fee7fff8000", + "0x48127fe17fff8000", + "0x480a7ffb7fff8000", + "0x480680017fff8000", + "0x1", + "0x48127ffa7fff8000", + "0x482480017ff98000", + "0x1", + "0x208b7fff7fff7ffe", + "0x40780017fff7fff", + "0x1", + "0x480680017fff8000", + "0x4661696c656420746f20646573657269616c697a6520706172616d202333", + "0x400080007ffe7fff", + "0x48127ff37fff8000", + "0x48127fe67fff8000", + "0x480a7ffb7fff8000", + "0x480680017fff8000", + "0x1", + "0x48127ffa7fff8000", + "0x482480017ff98000", + "0x1", + "0x208b7fff7fff7ffe", + "0x40780017fff7fff", + "0x1", + "0x480680017fff8000", + "0x4661696c656420746f20646573657269616c697a6520706172616d202332", + "0x400080007ffe7fff", + "0x48127ff87fff8000", + "0x48127feb7fff8000", "0x480a7ffb7fff8000", "0x480680017fff8000", "0x1", @@ -294,7 +390,7 @@ "0x208b7fff7fff7ffe" ], "bytecode_segment_lengths": [ - 222, + 318, 67 ], "hints": [ @@ -401,7 +497,7 @@ ] ], [ - 64, + 127, [ { "AllocSegment": { @@ -414,17 +510,17 @@ ] ], [ - 83, + 146, [ { "TestLessThanOrEqual": { "lhs": { - "Immediate": "0x233c" + "Immediate": "0x2aa8" }, "rhs": { "Deref": { "register": "AP", - "offset": -18 + "offset": -33 } }, "dst": { @@ -436,7 +532,7 @@ ] ], [ - 95, + 158, [ { "AllocSegment": { @@ -449,7 +545,7 @@ ] ], [ - 124, + 178, [ { "SystemCall": { @@ -464,7 +560,7 @@ ] ], [ - 127, + 181, [ { "AllocSegment": { @@ -477,7 +573,7 @@ ] ], [ - 171, + 225, [ { "AllocSegment": { @@ -490,7 +586,7 @@ ] ], [ - 193, + 240, [ { "AllocSegment": { @@ -503,7 +599,7 @@ ] ], [ - 207, + 254, [ { "AllocSegment": { @@ -516,7 +612,46 @@ ] ], [ - 222, + 268, + [ + { + "AllocSegment": { + "dst": { + "register": "AP", + "offset": 0 + } + } + } + ] + ], + [ + 289, + [ + { + "AllocSegment": { + "dst": { + "register": "AP", + "offset": 0 + } + } + } + ] + ], + [ + 303, + [ + { + "AllocSegment": { + "dst": { + "register": "AP", + "offset": 0 + } + } + } + ] + ], + [ + 318, [ { "TestLessThanOrEqual": { @@ -538,7 +673,7 @@ ] ], [ - 274, + 370, [ { "AllocSegment": { @@ -577,61 +712,79 @@ ] ], [ - 64, + 127, [ "memory[ap + 0] = segments.add()" ] ], [ - 83, + 146, [ - "memory[ap + 0] = 9020 <= memory[ap + -18]" + "memory[ap + 0] = 10920 <= memory[ap + -33]" ] ], [ - 95, + 158, [ "memory[ap + 0] = segments.add()" ] ], [ - 124, + 178, [ "syscall_handler.syscall(syscall_ptr=memory[fp + -5])" ] ], [ - 127, + 181, + [ + "memory[ap + 0] = segments.add()" + ] + ], + [ + 225, + [ + "memory[ap + 0] = segments.add()" + ] + ], + [ + 240, + [ + "memory[ap + 0] = segments.add()" + ] + ], + [ + 254, [ "memory[ap + 0] = segments.add()" ] ], [ - 171, + 268, [ "memory[ap + 0] = segments.add()" ] ], [ - 193, + 289, [ "memory[ap + 0] = segments.add()" ] ], [ - 207, + 303, [ "memory[ap + 0] = segments.add()" ] ], [ - 222, + 318, [ "memory[ap + 0] = 2270 <= memory[fp + -7]" ] ], [ - 274, + 370, [ "memory[ap + 0] = segments.add()" ] diff --git a/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo b/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo index 0a4cbad..ebab159 100644 --- a/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo +++ b/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo @@ -53,7 +53,7 @@ struct EntryPointReturnValues { // Performs a Cairo jump to the function 'execute_syscalls'. // This function's signature must match the signature of 'execute_syscalls'. -func call_execute_syscalls{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*}( +func call_execute_syscalls{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*, dict_ptr: DictAccess*}( execution_context: ExecutionContext*, syscall_ptr_end: felt* ) { execute_syscalls(execution_context, syscall_ptr_end); @@ -114,7 +114,7 @@ func get_entry_point{range_check_ptr}( // Arguments: // execution_context - The context for the current execution. func execute_entry_point{ - range_check_ptr, builtin_ptrs: BuiltinPointers*, builtin_params: BuiltinParams* + range_check_ptr, builtin_ptrs: BuiltinPointers*, builtin_params: BuiltinParams*, dict_ptr: DictAccess* }(compiled_class: CompiledClass*, execution_context: ExecutionContext*) -> ( retdata_size: felt, retdata: felt* ) { @@ -141,7 +141,7 @@ func execute_entry_point{ print("contract_entry_point:" , ids.contract_entry_point) ids.syscall_ptr = segments.add() from bootloader.contract.syscall_handler import SyscallHandler - syscall_handler = SyscallHandler(segments=segments) + syscall_handler = SyscallHandler(segments=segments, dict_manager=__dict_manager) syscall_handler.set_syscall_ptr(syscall_ptr=ids.syscall_ptr) %} @@ -215,7 +215,7 @@ func execute_entry_point{ validate_segment_arena(segment_arena=current_segment_arena); let builtin_ptrs = return_builtin_ptrs; - with syscall_ptr { + with syscall_ptr, dict_ptr { call_execute_syscalls( execution_context=execution_context, syscall_ptr_end=entry_point_return_values.syscall_ptr, @@ -224,7 +224,7 @@ func execute_entry_point{ %{ print(ids.entry_point_return_values.failure_flag) - for i in range(0, 5): + for i in range(0, 2): print(memory[ids.retdata_start + i]) %} diff --git a/cairo0-bootloader/bootloader/contract/execute_syscalls.cairo b/cairo0-bootloader/bootloader/contract/execute_syscalls.cairo index f9c061e..4d194d2 100644 --- a/cairo0-bootloader/bootloader/contract/execute_syscalls.cairo +++ b/cairo0-bootloader/bootloader/contract/execute_syscalls.cairo @@ -57,7 +57,7 @@ struct ExecutionContext { // Arguments: // execution_context - The execution context in which the system calls need to be executed. // syscall_ptr_end - a pointer to the end of the syscall segment. -func execute_syscalls{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*}( +func execute_syscalls{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*, dict_ptr: DictAccess*}( execution_context: ExecutionContext*, syscall_ptr_end: felt* ) { if (syscall_ptr == syscall_ptr_end) { @@ -73,7 +73,7 @@ func execute_syscalls{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: Builtin } // Executes a syscall that calls another contract. -func execute_call_contract{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*}( +func execute_call_contract{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*, dict_ptr: DictAccess*}( caller_execution_context: ExecutionContext* ) { let request_header = cast(syscall_ptr, RequestHeader*); @@ -82,33 +82,28 @@ func execute_call_contract{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: Bu let call_contract_request = cast(syscall_ptr, CallContractRequest*); let syscall_ptr = syscall_ptr + CallContractRequest.SIZE; - tempvar contract_address = call_contract_request.contract_address; - assert contract_address = 0; + %{ + print("call_contract_request", memory[ids.call_contract_request.calldata_start + 2]) + %} - tempvar calldata_start = call_contract_request.calldata_start; - tempvar calldata_size = call_contract_request.calldata_end - calldata_start; - assert calldata_size = 4; - assert calldata_start[0] = 0xa; - assert calldata_start[1] = 0xb; - assert calldata_start[2] = 0xc; - assert calldata_start[3] = 0xe; + let (value) = dict_read(call_contract_request.calldata_start[2]); + + %{ + print("value", ids.value) + %} let response_header = cast(syscall_ptr, ResponseHeader*); let syscall_ptr = syscall_ptr + ResponseHeader.SIZE; - assert [response_header] = ResponseHeader(gas=1000000000000, failure_flag=0); - let call_contract_response = cast(syscall_ptr, CallContractResponse*); - // Advance syscall pointer to the next syscall. let syscall_ptr = syscall_ptr + CallContractResponse.SIZE; - tempvar calldata_start = call_contract_response.retdata_start; - tempvar calldata_size = call_contract_response.retdata_end - calldata_start; - assert calldata_size = 4; - assert calldata_start[0] = 0xa; - assert calldata_start[1] = 0xb; - assert calldata_start[2] = 0xc; - assert calldata_start[3] = 0xe; + %{ + print("call_contract_response", memory[ids.call_contract_response.retdata_start + 0]) + %} + + assert value = call_contract_response.retdata_start[0]; + return (); } diff --git a/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo b/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo index 171eb12..fc20572 100644 --- a/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo +++ b/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo @@ -7,6 +7,7 @@ from starkware.cairo.common.cairo_builtins import ( EcOpBuiltin, ) from starkware.cairo.common.registers import get_fp_and_pc +from starkware.cairo.common.dict import dict_new from contract_class.compiled_class import CompiledClass from starkware.starknet.builtins.segment_arena.segment_arena import new_arena, SegmentArenaBuiltin from starkware.starknet.core.os.builtins import ( @@ -91,7 +92,19 @@ func run_contract_bootloader{ local calldata: felt*; %{ ids.calldata = segments.add() %} + %{ initial_dict = {7: 9} %} + let (dict_ptr) = dict_new(); + + %{ + print("__dict_manager", type(__dict_manager)) + + print("dict_ptr", ids.dict_ptr.address_) + %} + assert calldata[0] = 0x0; + assert calldata[1] = 0x15; + assert calldata[2] = 0x0; + assert calldata[3] = 0x7; local execution_info: ExecutionInfo = ExecutionInfo( selector=0x00e2054f8a912367e38a22ce773328ff8aabf8082c4120bad9ef085e1dbf29a7 @@ -99,12 +112,12 @@ func run_contract_bootloader{ local execution_context: ExecutionContext = ExecutionContext( entry_point_type=ENTRY_POINT_TYPE_EXTERNAL, - calldata_size=1, + calldata_size=4, calldata=calldata, execution_info=&execution_info, ); - with builtin_ptrs, builtin_params { + with builtin_ptrs, builtin_params, dict_ptr { let (retdata_size, retdata) = execute_entry_point(compiled_class, &execution_context); } diff --git a/cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json b/cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json deleted file mode 100644 index 9a45964..0000000 --- a/cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json +++ /dev/null @@ -1,1358 +0,0 @@ -{ - "attributes": [], - "builtins": [], - "compiler_version": "0.13.1", - "data": [], - "debug_info": { - "file_contents": {}, - "instruction_locations": {} - }, - "hints": {}, - "identifiers": { - "__main__.BlockInfo": { - "full_name": "__main__.BlockInfo", - "members": { - "block_number": { - "cairo_type": "felt", - "offset": 0 - }, - "block_timestamp": { - "cairo_type": "felt", - "offset": 1 - }, - "sequencer_address": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.CALL_CONTRACT_SELECTOR": { - "type": "const", - "value": 20853273475220472486191784820 - }, - "__main__.CallContractRequest": { - "full_name": "__main__.CallContractRequest", - "members": { - "calldata_end": { - "cairo_type": "felt*", - "offset": 3 - }, - "calldata_start": { - "cairo_type": "felt*", - "offset": 2 - }, - "contract_address": { - "cairo_type": "felt", - "offset": 0 - }, - "selector": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.CallContractResponse": { - "full_name": "__main__.CallContractResponse", - "members": { - "retdata_end": { - "cairo_type": "felt*", - "offset": 1 - }, - "retdata_start": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.DEPLOY_SELECTOR": { - "type": "const", - "value": 75202468540281 - }, - "__main__.DeployRequest": { - "full_name": "__main__.DeployRequest", - "members": { - "class_hash": { - "cairo_type": "felt", - "offset": 0 - }, - "constructor_calldata_end": { - "cairo_type": "felt*", - "offset": 3 - }, - "constructor_calldata_start": { - "cairo_type": "felt*", - "offset": 2 - }, - "contract_address_salt": { - "cairo_type": "felt", - "offset": 1 - }, - "deploy_from_zero": { - "cairo_type": "felt", - "offset": 4 - } - }, - "size": 5, - "type": "struct" - }, - "__main__.DeployResponse": { - "full_name": "__main__.DeployResponse", - "members": { - "constructor_retdata_end": { - "cairo_type": "felt*", - "offset": 2 - }, - "constructor_retdata_start": { - "cairo_type": "felt*", - "offset": 1 - }, - "contract_address": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.EMIT_EVENT_SELECTOR": { - "type": "const", - "value": 1280709301550335749748 - }, - "__main__.EcPoint": { - "destination": "starkware.cairo.common.cairo_secp.ec.EcPoint", - "type": "alias" - }, - "__main__.EmitEventRequest": { - "full_name": "__main__.EmitEventRequest", - "members": { - "data_end": { - "cairo_type": "felt*", - "offset": 3 - }, - "data_start": { - "cairo_type": "felt*", - "offset": 2 - }, - "keys_end": { - "cairo_type": "felt*", - "offset": 1 - }, - "keys_start": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.EmptyRequest": { - "full_name": "__main__.EmptyRequest", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.ExecutionInfo": { - "full_name": "__main__.ExecutionInfo", - "members": { - "block_info": { - "cairo_type": "__main__.BlockInfo*", - "offset": 0 - }, - "caller_address": { - "cairo_type": "felt", - "offset": 2 - }, - "contract_address": { - "cairo_type": "felt", - "offset": 3 - }, - "selector": { - "cairo_type": "felt", - "offset": 4 - }, - "tx_info": { - "cairo_type": "__main__.TxInfo*", - "offset": 1 - } - }, - "size": 5, - "type": "struct" - }, - "__main__.FailureReason": { - "full_name": "__main__.FailureReason", - "members": { - "end": { - "cairo_type": "felt*", - "offset": 1 - }, - "start": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.GET_BLOCK_HASH_SELECTOR": { - "type": "const", - "value": 22096086224907272360718070632 - }, - "__main__.GET_EXECUTION_INFO_SELECTOR": { - "type": "const", - "value": 94901967946959054011942058057773508207 - }, - "__main__.GetBlockHashRequest": { - "full_name": "__main__.GetBlockHashRequest", - "members": { - "block_number": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetBlockHashResponse": { - "full_name": "__main__.GetBlockHashResponse", - "members": { - "block_hash": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetExecutionInfoResponse": { - "full_name": "__main__.GetExecutionInfoResponse", - "members": { - "execution_info": { - "cairo_type": "__main__.ExecutionInfo*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.KECCAK_SELECTOR": { - "type": "const", - "value": 82898831237483 - }, - "__main__.KeccakRequest": { - "full_name": "__main__.KeccakRequest", - "members": { - "input_end": { - "cairo_type": "felt*", - "offset": 1 - }, - "input_start": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.KeccakResponse": { - "full_name": "__main__.KeccakResponse", - "members": { - "result_high": { - "cairo_type": "felt", - "offset": 1 - }, - "result_low": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.LIBRARY_CALL_SELECTOR": { - "type": "const", - "value": 92376026794327011772951660 - }, - "__main__.LibraryCallRequest": { - "full_name": "__main__.LibraryCallRequest", - "members": { - "calldata_end": { - "cairo_type": "felt*", - "offset": 3 - }, - "calldata_start": { - "cairo_type": "felt*", - "offset": 2 - }, - "class_hash": { - "cairo_type": "felt", - "offset": 0 - }, - "selector": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.REPLACE_CLASS_SELECTOR": { - "type": "const", - "value": 25500403217443378527601783667 - }, - "__main__.ReplaceClassRequest": { - "full_name": "__main__.ReplaceClassRequest", - "members": { - "class_hash": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.RequestHeader": { - "full_name": "__main__.RequestHeader", - "members": { - "gas": { - "cairo_type": "felt", - "offset": 1 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.ResourceBounds": { - "full_name": "__main__.ResourceBounds", - "members": { - "max_amount": { - "cairo_type": "felt", - "offset": 1 - }, - "max_price_per_unit": { - "cairo_type": "felt", - "offset": 2 - }, - "resource": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.ResponseHeader": { - "full_name": "__main__.ResponseHeader", - "members": { - "failure_flag": { - "cairo_type": "felt", - "offset": 1 - }, - "gas": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.SECP256K1_ADD_SELECTOR": { - "type": "const", - "value": 25809826906887716310825919588 - }, - "__main__.SECP256K1_GET_POINT_FROM_X_SELECTOR": { - "type": "const", - "value": 31202166147520941793195011415201397765240582401125720 - }, - "__main__.SECP256K1_GET_XY_SELECTOR": { - "type": "const", - "value": 1691472816169793376146313253771385 - }, - "__main__.SECP256K1_MUL_SELECTOR": { - "type": "const", - "value": 25809826906887716310826710380 - }, - "__main__.SECP256K1_NEW_SELECTOR": { - "type": "const", - "value": 25809826906887716310826771831 - }, - "__main__.SECP256R1_ADD_SELECTOR": { - "type": "const", - "value": 25809826906887716340890690660 - }, - "__main__.SECP256R1_GET_POINT_FROM_X_SELECTOR": { - "type": "const", - "value": 31202166147520941829541089424945191164954056705666392 - }, - "__main__.SECP256R1_GET_XY_SELECTOR": { - "type": "const", - "value": 1691472816169793378116638090745977 - }, - "__main__.SECP256R1_MUL_SELECTOR": { - "type": "const", - "value": 25809826906887716340891481452 - }, - "__main__.SECP256R1_NEW_SELECTOR": { - "type": "const", - "value": 25809826906887716340891542903 - }, - "__main__.SEND_MESSAGE_TO_L1_SELECTOR": { - "type": "const", - "value": 433017908768303439907196859243777073 - }, - "__main__.STORAGE_READ_SELECTOR": { - "type": "const", - "value": 100890693370601760042082660 - }, - "__main__.STORAGE_WRITE_SELECTOR": { - "type": "const", - "value": 25828017502874050592466629733 - }, - "__main__.Secp256k1AddRequest": { - "cairo_type": "__main__.SecpAddRequest", - "type": "type_definition" - }, - "__main__.Secp256k1AddResponse": { - "cairo_type": "__main__.SecpOpResponse", - "type": "type_definition" - }, - "__main__.Secp256k1GetPointFromXRequest": { - "cairo_type": "__main__.SecpGetPointFromXRequest", - "type": "type_definition" - }, - "__main__.Secp256k1GetXyRequest": { - "cairo_type": "__main__.SecpGetXyRequest", - "type": "type_definition" - }, - "__main__.Secp256k1GetXyResponse": { - "cairo_type": "__main__.SecpGetXyResponse", - "type": "type_definition" - }, - "__main__.Secp256k1MulRequest": { - "cairo_type": "__main__.SecpMulRequest", - "type": "type_definition" - }, - "__main__.Secp256k1MulResponse": { - "cairo_type": "__main__.SecpOpResponse", - "type": "type_definition" - }, - "__main__.Secp256k1NewRequest": { - "cairo_type": "__main__.SecpNewRequest", - "type": "type_definition" - }, - "__main__.Secp256k1NewResponse": { - "cairo_type": "__main__.SecpNewResponse", - "type": "type_definition" - }, - "__main__.Secp256r1AddRequest": { - "cairo_type": "__main__.SecpAddRequest", - "type": "type_definition" - }, - "__main__.Secp256r1AddResponse": { - "cairo_type": "__main__.SecpOpResponse", - "type": "type_definition" - }, - "__main__.Secp256r1GetPointFromXRequest": { - "cairo_type": "__main__.SecpGetPointFromXRequest", - "type": "type_definition" - }, - "__main__.Secp256r1GetXyRequest": { - "cairo_type": "__main__.SecpGetXyRequest", - "type": "type_definition" - }, - "__main__.Secp256r1GetXyResponse": { - "cairo_type": "__main__.SecpGetXyResponse", - "type": "type_definition" - }, - "__main__.Secp256r1MulRequest": { - "cairo_type": "__main__.SecpMulRequest", - "type": "type_definition" - }, - "__main__.Secp256r1MulResponse": { - "cairo_type": "__main__.SecpOpResponse", - "type": "type_definition" - }, - "__main__.Secp256r1NewRequest": { - "cairo_type": "__main__.SecpNewRequest", - "type": "type_definition" - }, - "__main__.Secp256r1NewResponse": { - "cairo_type": "__main__.SecpNewResponse", - "type": "type_definition" - }, - "__main__.SecpAddRequest": { - "full_name": "__main__.SecpAddRequest", - "members": { - "p0": { - "cairo_type": "starkware.cairo.common.cairo_secp.ec_point.EcPoint*", - "offset": 0 - }, - "p1": { - "cairo_type": "starkware.cairo.common.cairo_secp.ec_point.EcPoint*", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.SecpGetPointFromXRequest": { - "full_name": "__main__.SecpGetPointFromXRequest", - "members": { - "x": { - "cairo_type": "starkware.cairo.common.uint256.Uint256", - "offset": 0 - }, - "y_parity": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.SecpGetXyRequest": { - "full_name": "__main__.SecpGetXyRequest", - "members": { - "ec_point": { - "cairo_type": "starkware.cairo.common.cairo_secp.ec_point.EcPoint*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.SecpGetXyResponse": { - "full_name": "__main__.SecpGetXyResponse", - "members": { - "x": { - "cairo_type": "starkware.cairo.common.uint256.Uint256", - "offset": 0 - }, - "y": { - "cairo_type": "starkware.cairo.common.uint256.Uint256", - "offset": 2 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.SecpMulRequest": { - "full_name": "__main__.SecpMulRequest", - "members": { - "p": { - "cairo_type": "starkware.cairo.common.cairo_secp.ec_point.EcPoint*", - "offset": 0 - }, - "scalar": { - "cairo_type": "starkware.cairo.common.uint256.Uint256", - "offset": 1 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.SecpNewRequest": { - "full_name": "__main__.SecpNewRequest", - "members": { - "x": { - "cairo_type": "starkware.cairo.common.uint256.Uint256", - "offset": 0 - }, - "y": { - "cairo_type": "starkware.cairo.common.uint256.Uint256", - "offset": 2 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.SecpNewResponse": { - "full_name": "__main__.SecpNewResponse", - "members": { - "ec_point": { - "cairo_type": "starkware.cairo.common.cairo_secp.ec_point.EcPoint*", - "offset": 1 - }, - "not_on_curve": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.SecpOpResponse": { - "full_name": "__main__.SecpOpResponse", - "members": { - "ec_point": { - "cairo_type": "starkware.cairo.common.cairo_secp.ec_point.EcPoint*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.SendMessageToL1Request": { - "full_name": "__main__.SendMessageToL1Request", - "members": { - "payload_end": { - "cairo_type": "felt*", - "offset": 2 - }, - "payload_start": { - "cairo_type": "felt*", - "offset": 1 - }, - "to_address": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.StorageReadRequest": { - "full_name": "__main__.StorageReadRequest", - "members": { - "key": { - "cairo_type": "felt", - "offset": 1 - }, - "reserved": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.StorageReadResponse": { - "full_name": "__main__.StorageReadResponse", - "members": { - "value": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.StorageWriteRequest": { - "full_name": "__main__.StorageWriteRequest", - "members": { - "key": { - "cairo_type": "felt", - "offset": 1 - }, - "reserved": { - "cairo_type": "felt", - "offset": 0 - }, - "value": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.TxInfo": { - "full_name": "__main__.TxInfo", - "members": { - "account_contract_address": { - "cairo_type": "felt", - "offset": 1 - }, - "account_deployment_data_end": { - "cairo_type": "felt*", - "offset": 16 - }, - "account_deployment_data_start": { - "cairo_type": "felt*", - "offset": 15 - }, - "chain_id": { - "cairo_type": "felt", - "offset": 6 - }, - "fee_data_availability_mode": { - "cairo_type": "felt", - "offset": 14 - }, - "max_fee": { - "cairo_type": "felt", - "offset": 2 - }, - "nonce": { - "cairo_type": "felt", - "offset": 7 - }, - "nonce_data_availability_mode": { - "cairo_type": "felt", - "offset": 13 - }, - "paymaster_data_end": { - "cairo_type": "felt*", - "offset": 12 - }, - "paymaster_data_start": { - "cairo_type": "felt*", - "offset": 11 - }, - "resource_bounds_end": { - "cairo_type": "__main__.ResourceBounds*", - "offset": 9 - }, - "resource_bounds_start": { - "cairo_type": "__main__.ResourceBounds*", - "offset": 8 - }, - "signature_end": { - "cairo_type": "felt*", - "offset": 4 - }, - "signature_start": { - "cairo_type": "felt*", - "offset": 3 - }, - "tip": { - "cairo_type": "felt", - "offset": 10 - }, - "transaction_hash": { - "cairo_type": "felt", - "offset": 5 - }, - "version": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 17, - "type": "struct" - }, - "__main__.Uint256": { - "destination": "starkware.cairo.common.uint256.Uint256", - "type": "alias" - }, - "starkware.cairo.common.bitwise.ALL_ONES": { - "type": "const", - "value": -106710729501573572985208420194530329073740042555888586719234 - }, - "starkware.cairo.common.bitwise.BitwiseBuiltin": { - "destination": "starkware.cairo.common.cairo_builtins.BitwiseBuiltin", - "type": "alias" - }, - "starkware.cairo.common.bool.FALSE": { - "type": "const", - "value": 0 - }, - "starkware.cairo.common.bool.TRUE": { - "type": "const", - "value": 1 - }, - "starkware.cairo.common.cairo_builtins.BitwiseBuiltin": { - "full_name": "starkware.cairo.common.cairo_builtins.BitwiseBuiltin", - "members": { - "x": { - "cairo_type": "felt", - "offset": 0 - }, - "x_and_y": { - "cairo_type": "felt", - "offset": 2 - }, - "x_or_y": { - "cairo_type": "felt", - "offset": 4 - }, - "x_xor_y": { - "cairo_type": "felt", - "offset": 3 - }, - "y": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 5, - "type": "struct" - }, - "starkware.cairo.common.cairo_builtins.EcOpBuiltin": { - "full_name": "starkware.cairo.common.cairo_builtins.EcOpBuiltin", - "members": { - "m": { - "cairo_type": "felt", - "offset": 4 - }, - "p": { - "cairo_type": "starkware.cairo.common.ec_point.EcPoint", - "offset": 0 - }, - "q": { - "cairo_type": "starkware.cairo.common.ec_point.EcPoint", - "offset": 2 - }, - "r": { - "cairo_type": "starkware.cairo.common.ec_point.EcPoint", - "offset": 5 - } - }, - "size": 7, - "type": "struct" - }, - "starkware.cairo.common.cairo_builtins.EcPoint": { - "destination": "starkware.cairo.common.ec_point.EcPoint", - "type": "alias" - }, - "starkware.cairo.common.cairo_builtins.HashBuiltin": { - "full_name": "starkware.cairo.common.cairo_builtins.HashBuiltin", - "members": { - "result": { - "cairo_type": "felt", - "offset": 2 - }, - "x": { - "cairo_type": "felt", - "offset": 0 - }, - "y": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 3, - "type": "struct" - }, - "starkware.cairo.common.cairo_builtins.KeccakBuiltin": { - "full_name": "starkware.cairo.common.cairo_builtins.KeccakBuiltin", - "members": { - "input": { - "cairo_type": "starkware.cairo.common.keccak_state.KeccakBuiltinState", - "offset": 0 - }, - "output": { - "cairo_type": "starkware.cairo.common.keccak_state.KeccakBuiltinState", - "offset": 8 - } - }, - "size": 16, - "type": "struct" - }, - "starkware.cairo.common.cairo_builtins.KeccakBuiltinState": { - "destination": "starkware.cairo.common.keccak_state.KeccakBuiltinState", - "type": "alias" - }, - "starkware.cairo.common.cairo_builtins.PoseidonBuiltin": { - "full_name": "starkware.cairo.common.cairo_builtins.PoseidonBuiltin", - "members": { - "input": { - "cairo_type": "starkware.cairo.common.poseidon_state.PoseidonBuiltinState", - "offset": 0 - }, - "output": { - "cairo_type": "starkware.cairo.common.poseidon_state.PoseidonBuiltinState", - "offset": 3 - } - }, - "size": 6, - "type": "struct" - }, - "starkware.cairo.common.cairo_builtins.PoseidonBuiltinState": { - "destination": "starkware.cairo.common.poseidon_state.PoseidonBuiltinState", - "type": "alias" - }, - "starkware.cairo.common.cairo_builtins.SignatureBuiltin": { - "full_name": "starkware.cairo.common.cairo_builtins.SignatureBuiltin", - "members": { - "message": { - "cairo_type": "felt", - "offset": 1 - }, - "pub_key": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "starkware.cairo.common.cairo_secp.bigint.BASE": { - "destination": "starkware.cairo.common.cairo_secp.constants.BASE", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint.BigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.BigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint.RC_BOUND": { - "destination": "starkware.cairo.common.math_cmp.RC_BOUND", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint.Uint256": { - "destination": "starkware.cairo.common.uint256.Uint256", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint.UnreducedBigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.UnreducedBigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint.UnreducedBigInt5": { - "full_name": "starkware.cairo.common.cairo_secp.bigint.UnreducedBigInt5", - "members": { - "d0": { - "cairo_type": "felt", - "offset": 0 - }, - "d1": { - "cairo_type": "felt", - "offset": 1 - }, - "d2": { - "cairo_type": "felt", - "offset": 2 - }, - "d3": { - "cairo_type": "felt", - "offset": 3 - }, - "d4": { - "cairo_type": "felt", - "offset": 4 - } - }, - "size": 5, - "type": "struct" - }, - "starkware.cairo.common.cairo_secp.bigint.assert_nn": { - "destination": "starkware.cairo.common.math.assert_nn", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint.assert_nn_le": { - "destination": "starkware.cairo.common.math.assert_nn_le", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint.unsigned_div_rem": { - "destination": "starkware.cairo.common.math.unsigned_div_rem", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.bigint3.BigInt3": { - "full_name": "starkware.cairo.common.cairo_secp.bigint3.BigInt3", - "members": { - "d0": { - "cairo_type": "felt", - "offset": 0 - }, - "d1": { - "cairo_type": "felt", - "offset": 1 - }, - "d2": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "starkware.cairo.common.cairo_secp.bigint3.SumBigInt3": { - "full_name": "starkware.cairo.common.cairo_secp.bigint3.SumBigInt3", - "members": { - "d0": { - "cairo_type": "felt", - "offset": 0 - }, - "d1": { - "cairo_type": "felt", - "offset": 1 - }, - "d2": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "starkware.cairo.common.cairo_secp.bigint3.UnreducedBigInt3": { - "full_name": "starkware.cairo.common.cairo_secp.bigint3.UnreducedBigInt3", - "members": { - "d0": { - "cairo_type": "felt", - "offset": 0 - }, - "d1": { - "cairo_type": "felt", - "offset": 1 - }, - "d2": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "starkware.cairo.common.cairo_secp.constants.BASE": { - "type": "const", - "value": 77371252455336267181195264 - }, - "starkware.cairo.common.cairo_secp.constants.BETA": { - "type": "const", - "value": 7 - }, - "starkware.cairo.common.cairo_secp.constants.N0": { - "type": "const", - "value": 10428087374290690730508609 - }, - "starkware.cairo.common.cairo_secp.constants.N1": { - "type": "const", - "value": 77371252455330678278691517 - }, - "starkware.cairo.common.cairo_secp.constants.N2": { - "type": "const", - "value": 19342813113834066795298815 - }, - "starkware.cairo.common.cairo_secp.constants.P0": { - "type": "const", - "value": 77371252455336262886226991 - }, - "starkware.cairo.common.cairo_secp.constants.P1": { - "type": "const", - "value": 77371252455336267181195263 - }, - "starkware.cairo.common.cairo_secp.constants.P2": { - "type": "const", - "value": 19342813113834066795298815 - }, - "starkware.cairo.common.cairo_secp.constants.SECP_PRIME_HIGH": { - "type": "const", - "value": 340282366920938463463374607431768211455 - }, - "starkware.cairo.common.cairo_secp.constants.SECP_PRIME_LOW": { - "type": "const", - "value": 340282366920938463463374607427473243183 - }, - "starkware.cairo.common.cairo_secp.constants.SECP_REM": { - "type": "const", - "value": 4294968273 - }, - "starkware.cairo.common.cairo_secp.ec.BigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.BigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.EcPoint": { - "destination": "starkware.cairo.common.cairo_secp.ec_point.EcPoint", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.SumBigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.SumBigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.Uint256": { - "destination": "starkware.cairo.common.uint256.Uint256", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.UnreducedBigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.UnreducedBigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.alloc": { - "destination": "starkware.cairo.common.alloc.alloc", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.assert_nn_le": { - "destination": "starkware.cairo.common.math.assert_nn_le", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.is_zero": { - "destination": "starkware.cairo.common.cairo_secp.field.is_zero", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.nondet_bigint3": { - "destination": "starkware.cairo.common.cairo_secp.bigint.nondet_bigint3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.unreduced_mul": { - "destination": "starkware.cairo.common.cairo_secp.field.unreduced_mul", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.unreduced_sqr": { - "destination": "starkware.cairo.common.cairo_secp.field.unreduced_sqr", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec.verify_zero": { - "destination": "starkware.cairo.common.cairo_secp.field.verify_zero", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec_point.BigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.BigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.ec_point.EcPoint": { - "full_name": "starkware.cairo.common.cairo_secp.ec_point.EcPoint", - "members": { - "x": { - "cairo_type": "starkware.cairo.common.cairo_secp.bigint3.BigInt3", - "offset": 0 - }, - "y": { - "cairo_type": "starkware.cairo.common.cairo_secp.bigint3.BigInt3", - "offset": 3 - } - }, - "size": 6, - "type": "struct" - }, - "starkware.cairo.common.cairo_secp.field.BASE": { - "destination": "starkware.cairo.common.cairo_secp.constants.BASE", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.BigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.BigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.P0": { - "destination": "starkware.cairo.common.cairo_secp.constants.P0", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.P1": { - "destination": "starkware.cairo.common.cairo_secp.constants.P1", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.P2": { - "destination": "starkware.cairo.common.cairo_secp.constants.P2", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.SECP_REM": { - "destination": "starkware.cairo.common.cairo_secp.constants.SECP_REM", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.SumBigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.SumBigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.UnreducedBigInt3": { - "destination": "starkware.cairo.common.cairo_secp.bigint3.UnreducedBigInt3", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.assert_nn_le": { - "destination": "starkware.cairo.common.math.assert_nn_le", - "type": "alias" - }, - "starkware.cairo.common.cairo_secp.field.nondet_bigint3": { - "destination": "starkware.cairo.common.cairo_secp.bigint.nondet_bigint3", - "type": "alias" - }, - "starkware.cairo.common.ec_point.EcPoint": { - "full_name": "starkware.cairo.common.ec_point.EcPoint", - "members": { - "x": { - "cairo_type": "felt", - "offset": 0 - }, - "y": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "starkware.cairo.common.keccak_state.KeccakBuiltinState": { - "full_name": "starkware.cairo.common.keccak_state.KeccakBuiltinState", - "members": { - "s0": { - "cairo_type": "felt", - "offset": 0 - }, - "s1": { - "cairo_type": "felt", - "offset": 1 - }, - "s2": { - "cairo_type": "felt", - "offset": 2 - }, - "s3": { - "cairo_type": "felt", - "offset": 3 - }, - "s4": { - "cairo_type": "felt", - "offset": 4 - }, - "s5": { - "cairo_type": "felt", - "offset": 5 - }, - "s6": { - "cairo_type": "felt", - "offset": 6 - }, - "s7": { - "cairo_type": "felt", - "offset": 7 - } - }, - "size": 8, - "type": "struct" - }, - "starkware.cairo.common.math.FALSE": { - "destination": "starkware.cairo.common.bool.FALSE", - "type": "alias" - }, - "starkware.cairo.common.math.TRUE": { - "destination": "starkware.cairo.common.bool.TRUE", - "type": "alias" - }, - "starkware.cairo.common.math_cmp.RC_BOUND": { - "type": "const", - "value": 340282366920938463463374607431768211456 - }, - "starkware.cairo.common.math_cmp.assert_le_felt": { - "destination": "starkware.cairo.common.math.assert_le_felt", - "type": "alias" - }, - "starkware.cairo.common.math_cmp.assert_lt_felt": { - "destination": "starkware.cairo.common.math.assert_lt_felt", - "type": "alias" - }, - "starkware.cairo.common.poseidon_state.PoseidonBuiltinState": { - "full_name": "starkware.cairo.common.poseidon_state.PoseidonBuiltinState", - "members": { - "s0": { - "cairo_type": "felt", - "offset": 0 - }, - "s1": { - "cairo_type": "felt", - "offset": 1 - }, - "s2": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "starkware.cairo.common.pow.assert_le": { - "destination": "starkware.cairo.common.math.assert_le", - "type": "alias" - }, - "starkware.cairo.common.pow.get_ap": { - "destination": "starkware.cairo.common.registers.get_ap", - "type": "alias" - }, - "starkware.cairo.common.pow.get_fp_and_pc": { - "destination": "starkware.cairo.common.registers.get_fp_and_pc", - "type": "alias" - }, - "starkware.cairo.common.pow.sign": { - "destination": "starkware.cairo.common.math.sign", - "type": "alias" - }, - "starkware.cairo.common.registers.get_ap": { - "destination": "starkware.cairo.lang.compiler.lib.registers.get_ap", - "type": "alias" - }, - "starkware.cairo.common.registers.get_fp_and_pc": { - "destination": "starkware.cairo.lang.compiler.lib.registers.get_fp_and_pc", - "type": "alias" - }, - "starkware.cairo.common.uint256.ALL_ONES": { - "type": "const", - "value": 340282366920938463463374607431768211455 - }, - "starkware.cairo.common.uint256.BitwiseBuiltin": { - "destination": "starkware.cairo.common.cairo_builtins.BitwiseBuiltin", - "type": "alias" - }, - "starkware.cairo.common.uint256.HALF_SHIFT": { - "type": "const", - "value": 18446744073709551616 - }, - "starkware.cairo.common.uint256.SHIFT": { - "type": "const", - "value": 340282366920938463463374607431768211456 - }, - "starkware.cairo.common.uint256.Uint256": { - "full_name": "starkware.cairo.common.uint256.Uint256", - "members": { - "high": { - "cairo_type": "felt", - "offset": 1 - }, - "low": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "starkware.cairo.common.uint256.assert_in_range": { - "destination": "starkware.cairo.common.math.assert_in_range", - "type": "alias" - }, - "starkware.cairo.common.uint256.assert_le": { - "destination": "starkware.cairo.common.math.assert_le", - "type": "alias" - }, - "starkware.cairo.common.uint256.assert_nn_le": { - "destination": "starkware.cairo.common.math.assert_nn_le", - "type": "alias" - }, - "starkware.cairo.common.uint256.assert_not_zero": { - "destination": "starkware.cairo.common.math.assert_not_zero", - "type": "alias" - }, - "starkware.cairo.common.uint256.bitwise_and": { - "destination": "starkware.cairo.common.bitwise.bitwise_and", - "type": "alias" - }, - "starkware.cairo.common.uint256.bitwise_or": { - "destination": "starkware.cairo.common.bitwise.bitwise_or", - "type": "alias" - }, - "starkware.cairo.common.uint256.bitwise_xor": { - "destination": "starkware.cairo.common.bitwise.bitwise_xor", - "type": "alias" - }, - "starkware.cairo.common.uint256.get_ap": { - "destination": "starkware.cairo.common.registers.get_ap", - "type": "alias" - }, - "starkware.cairo.common.uint256.get_fp_and_pc": { - "destination": "starkware.cairo.common.registers.get_fp_and_pc", - "type": "alias" - }, - "starkware.cairo.common.uint256.is_le": { - "destination": "starkware.cairo.common.math_cmp.is_le", - "type": "alias" - }, - "starkware.cairo.common.uint256.pow": { - "destination": "starkware.cairo.common.pow.pow", - "type": "alias" - }, - "starkware.cairo.common.uint256.split_felt": { - "destination": "starkware.cairo.common.math.split_felt", - "type": "alias" - } - }, - "main_scope": "__main__", - "prime": "0x800000000000011000000000000000000000000000000000000000000000001", - "reference_manager": { - "references": [] - } -} diff --git a/cairo0-bootloader/bootloader/contract/starknet_syscalls.json b/cairo0-bootloader/bootloader/contract/starknet_syscalls.json deleted file mode 100644 index b0db6ab..0000000 --- a/cairo0-bootloader/bootloader/contract/starknet_syscalls.json +++ /dev/null @@ -1,7132 +0,0 @@ -{ - "attributes": [], - "builtins": [], - "compiler_version": "0.13.1", - "data": [ - "0x480680017fff8000", - "0x43616c6c436f6e7472616374", - "0x400280007ff97fff", - "0x400380017ff97ffa", - "0x400380027ff97ffb", - "0x400380037ff97ffc", - "0x400380047ff97ffd", - "0x482680017ff98000", - "0x7", - "0x480280057ff98000", - "0x480280067ff98000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x4c69627261727943616c6c", - "0x400280007ff97fff", - "0x400380017ff97ffa", - "0x400380027ff97ffb", - "0x400380037ff97ffc", - "0x400380047ff97ffd", - "0x482680017ff98000", - "0x7", - "0x480280057ff98000", - "0x480280067ff98000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x4c69627261727943616c6c4c3148616e646c6572", - "0x400280007ff97fff", - "0x400380017ff97ffa", - "0x400380027ff97ffb", - "0x400380037ff97ffc", - "0x400380047ff97ffd", - "0x482680017ff98000", - "0x7", - "0x480280057ff98000", - "0x480280067ff98000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x4465706c6f79", - "0x400280007ff87fff", - "0x400380017ff87ff9", - "0x400380027ff87ffa", - "0x400380037ff87ffb", - "0x400380047ff87ffc", - "0x400380057ff87ffd", - "0x482680017ff88000", - "0x9", - "0x480280067ff88000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x47657443616c6c657241646472657373", - "0x400280007ffd7fff", - "0x482680017ffd8000", - "0x2", - "0x480280017ffd8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x47657453657175656e63657241646472657373", - "0x400280007ffd7fff", - "0x482680017ffd8000", - "0x2", - "0x480280017ffd8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x476574426c6f636b4e756d626572", - "0x400280007ffd7fff", - "0x482680017ffd8000", - "0x2", - "0x480280017ffd8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x476574436f6e747261637441646472657373", - "0x400280007ffd7fff", - "0x482680017ffd8000", - "0x2", - "0x480280017ffd8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x476574426c6f636b54696d657374616d70", - "0x400280007ffd7fff", - "0x482680017ffd8000", - "0x2", - "0x480280017ffd8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x47657454785369676e6174757265", - "0x400280007ffd7fff", - "0x482680017ffd8000", - "0x3", - "0x480280017ffd8000", - "0x480280027ffd8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x53746f7261676552656164", - "0x400280007ffc7fff", - "0x400380017ffc7ffd", - "0x482680017ffc8000", - "0x3", - "0x480280027ffc8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x53746f726167655772697465", - "0x400280007ffb7fff", - "0x400380017ffb7ffc", - "0x400380027ffb7ffd", - "0x482680017ffb8000", - "0x3", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x456d69744576656e74", - "0x400280007ff97fff", - "0x400380017ff97ffa", - "0x400380027ff97ffb", - "0x400380037ff97ffc", - "0x400380047ff97ffd", - "0x482680017ff98000", - "0x5", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x4765745478496e666f", - "0x400280007ffd7fff", - "0x482680017ffd8000", - "0x2", - "0x480280017ffd8000", - "0x208b7fff7fff7ffe", - "0x480680017fff8000", - "0x5265706c616365436c617373", - "0x400280007ffc7fff", - "0x400380017ffc7ffd", - "0x482680017ffc8000", - "0x2", - "0x208b7fff7fff7ffe" - ], - "debug_info": { - "file_contents": {}, - "instruction_locations": { - "0": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 0 - }, - "reference_ids": { - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 4 - } - }, - "hints": [], - "inst": { - "end_col": 40, - "end_line": 47, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 18, - "start_line": 47 - } - }, - "2": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 1 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 4 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 52, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 46 - } - }, - "3": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 1 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 4 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 52, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 46 - } - }, - "4": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 1 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 4 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 52, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 46 - } - }, - "5": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 1 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 4 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 52, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 46 - } - }, - "6": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 1 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 4 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 52, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 46 - } - }, - "7": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 1 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.response": 7, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 8 - } - }, - "hints": [ - { - "location": { - "end_col": 88, - "end_line": 53, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 53 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 54, - "end_line": 56, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 38, - "end_line": 42, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 75, - "end_line": 57, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 57 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 20, - "start_line": 42 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 56 - } - }, - "9": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 2 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.response": 7, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 8 - } - }, - "hints": [], - "inst": { - "end_col": 47, - "end_line": 57, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 26, - "start_line": 57 - } - }, - "10": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 3 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.response": 7, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 8 - } - }, - "hints": [], - "inst": { - "end_col": 73, - "end_line": 57, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 57, - "start_line": 57 - } - }, - "11": { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 4 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.response": 7, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 8 - } - }, - "hints": [], - "inst": { - "end_col": 75, - "end_line": 57, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 57 - } - }, - "12": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 0 - }, - "reference_ids": { - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 13 - } - }, - "hints": [], - "inst": { - "end_col": 39, - "end_line": 90, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 18, - "start_line": 90 - } - }, - "14": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 13 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 95, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 89 - } - }, - "15": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 13 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 95, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 89 - } - }, - "16": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 13 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 95, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 89 - } - }, - "17": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 13 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 95, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 89 - } - }, - "18": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 13 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 95, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 89 - } - }, - "19": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.response": 16, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 17 - } - }, - "hints": [ - { - "location": { - "end_col": 87, - "end_line": 96, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 96 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 53, - "end_line": 99, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 37, - "end_line": 85, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 75, - "end_line": 100, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 100 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 19, - "start_line": 85 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 99 - } - }, - "21": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 2 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.response": 16, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 17 - } - }, - "hints": [], - "inst": { - "end_col": 47, - "end_line": 100, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 26, - "start_line": 100 - } - }, - "22": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 3 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.response": 16, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 17 - } - }, - "hints": [], - "inst": { - "end_col": 73, - "end_line": 100, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 57, - "start_line": 100 - } - }, - "23": { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 4 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.response": 16, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 17 - } - }, - "hints": [], - "inst": { - "end_col": 75, - "end_line": 100, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 100 - } - }, - "24": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 0 - }, - "reference_ids": { - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 22 - } - }, - "hints": [], - "inst": { - "end_col": 50, - "end_line": 112, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 18, - "start_line": 112 - } - }, - "26": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 22 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 117, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 111 - } - }, - "27": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 22 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 117, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 111 - } - }, - "28": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 22 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 117, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 111 - } - }, - "29": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 22 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 117, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 111 - } - }, - "30": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 22 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 117, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 111 - } - }, - "31": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.response": 25, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 26 - } - }, - "hints": [ - { - "location": { - "end_col": 98, - "end_line": 118, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 118 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 53, - "end_line": 121, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 48, - "end_line": 107, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 75, - "end_line": 122, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 122 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 30, - "start_line": 107 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 121 - } - }, - "33": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 2 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.response": 25, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 26 - } - }, - "hints": [], - "inst": { - "end_col": 47, - "end_line": 122, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 26, - "start_line": 122 - } - }, - "34": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 3 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.response": 25, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 26 - } - }, - "hints": [], - "inst": { - "end_col": 73, - "end_line": 122, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 57, - "start_line": 122 - } - }, - "35": { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 4 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.response": 25, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 26 - } - }, - "hints": [], - "inst": { - "end_col": 75, - "end_line": 122, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 122 - } - }, - "36": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 0 - }, - "reference_ids": { - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - }, - "hints": [], - "inst": { - "end_col": 33, - "end_line": 166, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 18, - "start_line": 166 - } - }, - "38": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 172, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 165 - } - }, - "39": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 172, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 165 - } - }, - "40": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 172, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 165 - } - }, - "41": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 172, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 165 - } - }, - "42": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 172, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 165 - } - }, - "43": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 172, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 165 - } - }, - "44": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.response": 35, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 36 - } - }, - "hints": [ - { - "location": { - "end_col": 81, - "end_line": 174, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 174 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 48, - "end_line": 176, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 31, - "end_line": 157, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 57, - "end_line": 178, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 178 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 13, - "start_line": 157 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 176 - } - }, - "46": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 2 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.response": 35, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 36 - } - }, - "hints": [], - "inst": { - "end_col": 55, - "end_line": 178, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 30, - "start_line": 178 - } - }, - "47": { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 3 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.response": 35, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 36 - } - }, - "hints": [], - "inst": { - "end_col": 57, - "end_line": 178, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 178 - } - }, - "48": { - "accessible_scopes": [ - "__main__", - "__main__.get_caller_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 4, - "offset": 0 - }, - "reference_ids": { - "__main__.get_caller_address.syscall": 38, - "__main__.get_caller_address.syscall_ptr": 37 - } - }, - "hints": [], - "inst": { - "end_col": 90, - "end_line": 202, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 63, - "start_line": 202 - } - }, - "50": { - "accessible_scopes": [ - "__main__", - "__main__.get_caller_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 4, - "offset": 1 - }, - "reference_ids": { - "__main__.get_caller_address.__temp4": 39, - "__main__.get_caller_address.syscall": 38, - "__main__.get_caller_address.syscall_ptr": 37 - } - }, - "hints": [], - "inst": { - "end_col": 92, - "end_line": 202, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 202 - } - }, - "51": { - "accessible_scopes": [ - "__main__", - "__main__.get_caller_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 4, - "offset": 1 - }, - "reference_ids": { - "__main__.get_caller_address.__temp4": 39, - "__main__.get_caller_address.syscall": 38, - "__main__.get_caller_address.syscall_ptr": 40 - } - }, - "hints": [ - { - "location": { - "end_col": 93, - "end_line": 203, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 203 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 58, - "end_line": 204, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 43, - "end_line": 200, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 61, - "end_line": 205, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 205 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 25, - "start_line": 200 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 204 - } - }, - "53": { - "accessible_scopes": [ - "__main__", - "__main__.get_caller_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 4, - "offset": 2 - }, - "reference_ids": { - "__main__.get_caller_address.__temp4": 39, - "__main__.get_caller_address.syscall": 38, - "__main__.get_caller_address.syscall_ptr": 40 - } - }, - "hints": [], - "inst": { - "end_col": 59, - "end_line": 205, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 28, - "start_line": 205 - } - }, - "54": { - "accessible_scopes": [ - "__main__", - "__main__.get_caller_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 4, - "offset": 3 - }, - "reference_ids": { - "__main__.get_caller_address.__temp4": 39, - "__main__.get_caller_address.syscall": 38, - "__main__.get_caller_address.syscall_ptr": 40 - } - }, - "hints": [], - "inst": { - "end_col": 61, - "end_line": 205, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 205 - } - }, - "55": { - "accessible_scopes": [ - "__main__", - "__main__.get_sequencer_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 5, - "offset": 0 - }, - "reference_ids": { - "__main__.get_sequencer_address.syscall": 42, - "__main__.get_sequencer_address.syscall_ptr": 41 - } - }, - "hints": [], - "inst": { - "end_col": 96, - "end_line": 228, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 66, - "start_line": 228 - } - }, - "57": { - "accessible_scopes": [ - "__main__", - "__main__.get_sequencer_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 5, - "offset": 1 - }, - "reference_ids": { - "__main__.get_sequencer_address.__temp5": 43, - "__main__.get_sequencer_address.syscall": 42, - "__main__.get_sequencer_address.syscall_ptr": 41 - } - }, - "hints": [], - "inst": { - "end_col": 98, - "end_line": 228, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 228 - } - }, - "58": { - "accessible_scopes": [ - "__main__", - "__main__.get_sequencer_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 5, - "offset": 1 - }, - "reference_ids": { - "__main__.get_sequencer_address.__temp5": 43, - "__main__.get_sequencer_address.syscall": 42, - "__main__.get_sequencer_address.syscall_ptr": 44 - } - }, - "hints": [ - { - "location": { - "end_col": 96, - "end_line": 229, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 229 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 61, - "end_line": 230, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 46, - "end_line": 226, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 67, - "end_line": 231, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 231 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 28, - "start_line": 226 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 230 - } - }, - "60": { - "accessible_scopes": [ - "__main__", - "__main__.get_sequencer_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 5, - "offset": 2 - }, - "reference_ids": { - "__main__.get_sequencer_address.__temp5": 43, - "__main__.get_sequencer_address.syscall": 42, - "__main__.get_sequencer_address.syscall_ptr": 44 - } - }, - "hints": [], - "inst": { - "end_col": 65, - "end_line": 231, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 31, - "start_line": 231 - } - }, - "61": { - "accessible_scopes": [ - "__main__", - "__main__.get_sequencer_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 5, - "offset": 3 - }, - "reference_ids": { - "__main__.get_sequencer_address.__temp5": 43, - "__main__.get_sequencer_address.syscall": 42, - "__main__.get_sequencer_address.syscall_ptr": 44 - } - }, - "hints": [], - "inst": { - "end_col": 67, - "end_line": 231, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 231 - } - }, - "62": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_number" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 6, - "offset": 0 - }, - "reference_ids": { - "__main__.get_block_number.syscall": 46, - "__main__.get_block_number.syscall_ptr": 45 - } - }, - "hints": [], - "inst": { - "end_col": 86, - "end_line": 251, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 61, - "start_line": 251 - } - }, - "64": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_number" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 6, - "offset": 1 - }, - "reference_ids": { - "__main__.get_block_number.__temp6": 47, - "__main__.get_block_number.syscall": 46, - "__main__.get_block_number.syscall_ptr": 45 - } - }, - "hints": [], - "inst": { - "end_col": 88, - "end_line": 251, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 251 - } - }, - "65": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_number" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 6, - "offset": 1 - }, - "reference_ids": { - "__main__.get_block_number.__temp6": 47, - "__main__.get_block_number.syscall": 46, - "__main__.get_block_number.syscall_ptr": 48 - } - }, - "hints": [ - { - "location": { - "end_col": 91, - "end_line": 252, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 252 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 56, - "end_line": 253, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 41, - "end_line": 249, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 57, - "end_line": 254, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 254 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 249 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 253 - } - }, - "67": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_number" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 6, - "offset": 2 - }, - "reference_ids": { - "__main__.get_block_number.__temp6": 47, - "__main__.get_block_number.syscall": 46, - "__main__.get_block_number.syscall_ptr": 48 - } - }, - "hints": [], - "inst": { - "end_col": 55, - "end_line": 254, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 26, - "start_line": 254 - } - }, - "68": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_number" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 6, - "offset": 3 - }, - "reference_ids": { - "__main__.get_block_number.__temp6": 47, - "__main__.get_block_number.syscall": 46, - "__main__.get_block_number.syscall_ptr": 48 - } - }, - "hints": [], - "inst": { - "end_col": 57, - "end_line": 254, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 254 - } - }, - "69": { - "accessible_scopes": [ - "__main__", - "__main__.get_contract_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 7, - "offset": 0 - }, - "reference_ids": { - "__main__.get_contract_address.syscall": 50, - "__main__.get_contract_address.syscall_ptr": 49 - } - }, - "hints": [], - "inst": { - "end_col": 94, - "end_line": 276, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 65, - "start_line": 276 - } - }, - "71": { - "accessible_scopes": [ - "__main__", - "__main__.get_contract_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 7, - "offset": 1 - }, - "reference_ids": { - "__main__.get_contract_address.__temp7": 51, - "__main__.get_contract_address.syscall": 50, - "__main__.get_contract_address.syscall_ptr": 49 - } - }, - "hints": [], - "inst": { - "end_col": 96, - "end_line": 276, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 276 - } - }, - "72": { - "accessible_scopes": [ - "__main__", - "__main__.get_contract_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 7, - "offset": 1 - }, - "reference_ids": { - "__main__.get_contract_address.__temp7": 51, - "__main__.get_contract_address.syscall": 50, - "__main__.get_contract_address.syscall_ptr": 52 - } - }, - "hints": [ - { - "location": { - "end_col": 95, - "end_line": 277, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 277 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 60, - "end_line": 278, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 45, - "end_line": 274, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 65, - "end_line": 279, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 279 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 27, - "start_line": 274 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 278 - } - }, - "74": { - "accessible_scopes": [ - "__main__", - "__main__.get_contract_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 7, - "offset": 2 - }, - "reference_ids": { - "__main__.get_contract_address.__temp7": 51, - "__main__.get_contract_address.syscall": 50, - "__main__.get_contract_address.syscall_ptr": 52 - } - }, - "hints": [], - "inst": { - "end_col": 63, - "end_line": 279, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 30, - "start_line": 279 - } - }, - "75": { - "accessible_scopes": [ - "__main__", - "__main__.get_contract_address" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 7, - "offset": 3 - }, - "reference_ids": { - "__main__.get_contract_address.__temp7": 51, - "__main__.get_contract_address.syscall": 50, - "__main__.get_contract_address.syscall_ptr": 52 - } - }, - "hints": [], - "inst": { - "end_col": 65, - "end_line": 279, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 279 - } - }, - "76": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_timestamp" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 8, - "offset": 0 - }, - "reference_ids": { - "__main__.get_block_timestamp.syscall": 54, - "__main__.get_block_timestamp.syscall_ptr": 53 - } - }, - "hints": [], - "inst": { - "end_col": 92, - "end_line": 300, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 64, - "start_line": 300 - } - }, - "78": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_timestamp" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 8, - "offset": 1 - }, - "reference_ids": { - "__main__.get_block_timestamp.__temp8": 55, - "__main__.get_block_timestamp.syscall": 54, - "__main__.get_block_timestamp.syscall_ptr": 53 - } - }, - "hints": [], - "inst": { - "end_col": 94, - "end_line": 300, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 300 - } - }, - "79": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_timestamp" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 8, - "offset": 1 - }, - "reference_ids": { - "__main__.get_block_timestamp.__temp8": 55, - "__main__.get_block_timestamp.syscall": 54, - "__main__.get_block_timestamp.syscall_ptr": 56 - } - }, - "hints": [ - { - "location": { - "end_col": 94, - "end_line": 301, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 301 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 59, - "end_line": 302, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 44, - "end_line": 298, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 63, - "end_line": 303, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 303 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 26, - "start_line": 298 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 302 - } - }, - "81": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_timestamp" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 8, - "offset": 2 - }, - "reference_ids": { - "__main__.get_block_timestamp.__temp8": 55, - "__main__.get_block_timestamp.syscall": 54, - "__main__.get_block_timestamp.syscall_ptr": 56 - } - }, - "hints": [], - "inst": { - "end_col": 61, - "end_line": 303, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 29, - "start_line": 303 - } - }, - "82": { - "accessible_scopes": [ - "__main__", - "__main__.get_block_timestamp" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 8, - "offset": 3 - }, - "reference_ids": { - "__main__.get_block_timestamp.__temp8": 55, - "__main__.get_block_timestamp.syscall": 54, - "__main__.get_block_timestamp.syscall_ptr": 56 - } - }, - "hints": [], - "inst": { - "end_col": 63, - "end_line": 303, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 303 - } - }, - "83": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_signature" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 9, - "offset": 0 - }, - "reference_ids": { - "__main__.get_tx_signature.syscall": 58, - "__main__.get_tx_signature.syscall_ptr": 57 - } - }, - "hints": [], - "inst": { - "end_col": 86, - "end_line": 328, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 61, - "start_line": 328 - } - }, - "85": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_signature" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 9, - "offset": 1 - }, - "reference_ids": { - "__main__.get_tx_signature.__temp9": 59, - "__main__.get_tx_signature.syscall": 58, - "__main__.get_tx_signature.syscall_ptr": 57 - } - }, - "hints": [], - "inst": { - "end_col": 88, - "end_line": 328, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 328 - } - }, - "86": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_signature" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 9, - "offset": 1 - }, - "reference_ids": { - "__main__.get_tx_signature.__temp9": 59, - "__main__.get_tx_signature.syscall": 58, - "__main__.get_tx_signature.syscall_ptr": 60 - } - }, - "hints": [ - { - "location": { - "end_col": 91, - "end_line": 329, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 329 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 56, - "end_line": 330, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 41, - "end_line": 326, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 97, - "end_line": 331, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 331 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 326 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 330 - } - }, - "88": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_signature" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 9, - "offset": 2 - }, - "reference_ids": { - "__main__.get_tx_signature.__temp9": 59, - "__main__.get_tx_signature.syscall": 58, - "__main__.get_tx_signature.syscall_ptr": 60 - } - }, - "hints": [], - "inst": { - "end_col": 57, - "end_line": 331, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 27, - "start_line": 331 - } - }, - "89": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_signature" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 9, - "offset": 3 - }, - "reference_ids": { - "__main__.get_tx_signature.__temp9": 59, - "__main__.get_tx_signature.syscall": 58, - "__main__.get_tx_signature.syscall_ptr": 60 - } - }, - "hints": [], - "inst": { - "end_col": 95, - "end_line": 331, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 69, - "start_line": 331 - } - }, - "90": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_signature" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 9, - "offset": 4 - }, - "reference_ids": { - "__main__.get_tx_signature.__temp9": 59, - "__main__.get_tx_signature.syscall": 58, - "__main__.get_tx_signature.syscall_ptr": 60 - } - }, - "hints": [], - "inst": { - "end_col": 97, - "end_line": 331, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 331 - } - }, - "91": { - "accessible_scopes": [ - "__main__", - "__main__.storage_read" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 10, - "offset": 0 - }, - "reference_ids": { - "__main__.storage_read.address": 61, - "__main__.storage_read.syscall": 63, - "__main__.storage_read.syscall_ptr": 62 - } - }, - "hints": [], - "inst": { - "end_col": 79, - "end_line": 354, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 58, - "start_line": 354 - } - }, - "93": { - "accessible_scopes": [ - "__main__", - "__main__.storage_read" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 10, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_read.__temp10": 64, - "__main__.storage_read.address": 61, - "__main__.storage_read.syscall": 63, - "__main__.storage_read.syscall_ptr": 62 - } - }, - "hints": [], - "inst": { - "end_col": 98, - "end_line": 354, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 354 - } - }, - "94": { - "accessible_scopes": [ - "__main__", - "__main__.storage_read" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 10, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_read.__temp10": 64, - "__main__.storage_read.address": 61, - "__main__.storage_read.syscall": 63, - "__main__.storage_read.syscall_ptr": 62 - } - }, - "hints": [], - "inst": { - "end_col": 98, - "end_line": 354, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 354 - } - }, - "95": { - "accessible_scopes": [ - "__main__", - "__main__.storage_read" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 10, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_read.__temp10": 64, - "__main__.storage_read.address": 61, - "__main__.storage_read.response": 65, - "__main__.storage_read.syscall": 63, - "__main__.storage_read.syscall_ptr": 66 - } - }, - "hints": [ - { - "location": { - "end_col": 87, - "end_line": 355, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 355 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 53, - "end_line": 357, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 37, - "end_line": 352, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 35, - "end_line": 358, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 358 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 19, - "start_line": 352 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 357 - } - }, - "97": { - "accessible_scopes": [ - "__main__", - "__main__.storage_read" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 10, - "offset": 2 - }, - "reference_ids": { - "__main__.storage_read.__temp10": 64, - "__main__.storage_read.address": 61, - "__main__.storage_read.response": 65, - "__main__.storage_read.syscall": 63, - "__main__.storage_read.syscall_ptr": 66 - } - }, - "hints": [], - "inst": { - "end_col": 33, - "end_line": 358, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 19, - "start_line": 358 - } - }, - "98": { - "accessible_scopes": [ - "__main__", - "__main__.storage_read" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 10, - "offset": 3 - }, - "reference_ids": { - "__main__.storage_read.__temp10": 64, - "__main__.storage_read.address": 61, - "__main__.storage_read.response": 65, - "__main__.storage_read.syscall": 63, - "__main__.storage_read.syscall_ptr": 66 - } - }, - "hints": [], - "inst": { - "end_col": 35, - "end_line": 358, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 358 - } - }, - "99": { - "accessible_scopes": [ - "__main__", - "__main__.storage_write" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 11, - "offset": 0 - }, - "reference_ids": { - "__main__.storage_write.address": 67, - "__main__.storage_write.syscall_ptr": 69, - "__main__.storage_write.value": 68 - } - }, - "hints": [], - "inst": { - "end_col": 40, - "end_line": 372, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 18, - "start_line": 372 - } - }, - "101": { - "accessible_scopes": [ - "__main__", - "__main__.storage_write" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 11, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_write.__temp11": 70, - "__main__.storage_write.address": 67, - "__main__.storage_write.syscall_ptr": 69, - "__main__.storage_write.value": 68 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 373, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 371 - } - }, - "102": { - "accessible_scopes": [ - "__main__", - "__main__.storage_write" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 11, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_write.__temp11": 70, - "__main__.storage_write.address": 67, - "__main__.storage_write.syscall_ptr": 69, - "__main__.storage_write.value": 68 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 373, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 371 - } - }, - "103": { - "accessible_scopes": [ - "__main__", - "__main__.storage_write" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 11, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_write.__temp11": 70, - "__main__.storage_write.address": 67, - "__main__.storage_write.syscall_ptr": 69, - "__main__.storage_write.value": 68 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 373, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 371 - } - }, - "104": { - "accessible_scopes": [ - "__main__", - "__main__.storage_write" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 11, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_write.__temp11": 70, - "__main__.storage_write.address": 67, - "__main__.storage_write.syscall_ptr": 71, - "__main__.storage_write.value": 68 - } - }, - "hints": [ - { - "location": { - "end_col": 88, - "end_line": 374, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 374 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 54, - "end_line": 375, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 38, - "end_line": 370, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 15, - "end_line": 376, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 376 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 20, - "start_line": 370 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 375 - } - }, - "106": { - "accessible_scopes": [ - "__main__", - "__main__.storage_write" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 11, - "offset": 2 - }, - "reference_ids": { - "__main__.storage_write.__temp11": 70, - "__main__.storage_write.address": 67, - "__main__.storage_write.syscall_ptr": 71, - "__main__.storage_write.value": 68 - } - }, - "hints": [], - "inst": { - "end_col": 15, - "end_line": 376, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 376 - } - }, - "107": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 0 - }, - "reference_ids": { - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 76 - } - }, - "hints": [], - "inst": { - "end_col": 37, - "end_line": 392, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 18, - "start_line": 392 - } - }, - "109": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 1 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 76 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 393, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 391 - } - }, - "110": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 1 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 76 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 393, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 391 - } - }, - "111": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 1 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 76 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 393, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 391 - } - }, - "112": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 1 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 76 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 393, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 391 - } - }, - "113": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 1 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 76 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 393, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 391 - } - }, - "114": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 1 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 78 - } - }, - "hints": [ - { - "location": { - "end_col": 85, - "end_line": 394, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 394 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 51, - "end_line": 395, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 35, - "end_line": 390, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 15, - "end_line": 396, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 396 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 17, - "start_line": 390 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 395 - } - }, - "116": { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 2 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 78 - } - }, - "hints": [], - "inst": { - "end_col": 15, - "end_line": 396, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 396 - } - }, - "117": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_info" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 13, - "offset": 0 - }, - "reference_ids": { - "__main__.get_tx_info.syscall": 80, - "__main__.get_tx_info.syscall_ptr": 79 - } - }, - "hints": [], - "inst": { - "end_col": 76, - "end_line": 446, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 56, - "start_line": 446 - } - }, - "119": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_info" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 13, - "offset": 1 - }, - "reference_ids": { - "__main__.get_tx_info.__temp13": 81, - "__main__.get_tx_info.syscall": 80, - "__main__.get_tx_info.syscall_ptr": 79 - } - }, - "hints": [], - "inst": { - "end_col": 78, - "end_line": 446, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 446 - } - }, - "120": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_info" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 13, - "offset": 1 - }, - "reference_ids": { - "__main__.get_tx_info.__temp13": 81, - "__main__.get_tx_info.response": 82, - "__main__.get_tx_info.syscall": 80, - "__main__.get_tx_info.syscall_ptr": 83 - } - }, - "hints": [ - { - "location": { - "end_col": 86, - "end_line": 447, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 447 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 51, - "end_line": 449, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 36, - "end_line": 444, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 39, - "end_line": 450, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 450 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 18, - "start_line": 444 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 449 - } - }, - "122": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_info" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 13, - "offset": 2 - }, - "reference_ids": { - "__main__.get_tx_info.__temp13": 81, - "__main__.get_tx_info.response": 82, - "__main__.get_tx_info.syscall": 80, - "__main__.get_tx_info.syscall_ptr": 83 - } - }, - "hints": [], - "inst": { - "end_col": 37, - "end_line": 450, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 21, - "start_line": 450 - } - }, - "123": { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_info" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 13, - "offset": 3 - }, - "reference_ids": { - "__main__.get_tx_info.__temp13": 81, - "__main__.get_tx_info.response": 82, - "__main__.get_tx_info.syscall": 80, - "__main__.get_tx_info.syscall_ptr": 83 - } - }, - "hints": [], - "inst": { - "end_col": 39, - "end_line": 450, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 450 - } - }, - "124": { - "accessible_scopes": [ - "__main__", - "__main__.replace_class" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 14, - "offset": 0 - }, - "reference_ids": { - "__main__.replace_class.class_hash": 84, - "__main__.replace_class.syscall_ptr": 85 - } - }, - "hints": [], - "inst": { - "end_col": 40, - "end_line": 465, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 18, - "start_line": 465 - } - }, - "126": { - "accessible_scopes": [ - "__main__", - "__main__.replace_class" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 14, - "offset": 1 - }, - "reference_ids": { - "__main__.replace_class.__temp14": 86, - "__main__.replace_class.class_hash": 84, - "__main__.replace_class.syscall_ptr": 85 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 466, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 464 - } - }, - "127": { - "accessible_scopes": [ - "__main__", - "__main__.replace_class" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 14, - "offset": 1 - }, - "reference_ids": { - "__main__.replace_class.__temp14": 86, - "__main__.replace_class.class_hash": 84, - "__main__.replace_class.syscall_ptr": 85 - } - }, - "hints": [], - "inst": { - "end_col": 7, - "end_line": 466, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 464 - } - }, - "128": { - "accessible_scopes": [ - "__main__", - "__main__.replace_class" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 14, - "offset": 1 - }, - "reference_ids": { - "__main__.replace_class.__temp14": 86, - "__main__.replace_class.class_hash": 84, - "__main__.replace_class.syscall_ptr": 87 - } - }, - "hints": [ - { - "location": { - "end_col": 88, - "end_line": 467, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 467 - }, - "n_prefix_newlines": 0 - } - ], - "inst": { - "end_col": 54, - "end_line": 468, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 38, - "end_line": 463, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "parent_location": [ - { - "end_col": 15, - "end_line": 469, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 469 - }, - "While trying to retrieve the implicit argument 'syscall_ptr' in:" - ], - "start_col": 20, - "start_line": 463 - }, - "While expanding the reference 'syscall_ptr' in:" - ], - "start_col": 23, - "start_line": 468 - } - }, - "130": { - "accessible_scopes": [ - "__main__", - "__main__.replace_class" - ], - "flow_tracking_data": { - "ap_tracking": { - "group": 14, - "offset": 2 - }, - "reference_ids": { - "__main__.replace_class.__temp14": 86, - "__main__.replace_class.class_hash": 84, - "__main__.replace_class.syscall_ptr": 87 - } - }, - "hints": [], - "inst": { - "end_col": 15, - "end_line": 469, - "input_file": { - "filename": "starkware/starknet/common/syscalls.cairo" - }, - "start_col": 5, - "start_line": 469 - } - } - } - }, - "hints": { - "7": [ - { - "accessible_scopes": [ - "__main__", - "__main__.call_contract" - ], - "code": "syscall_handler.call_contract(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 0, - "offset": 1 - }, - "reference_ids": { - "__main__.call_contract.__temp0": 6, - "__main__.call_contract.calldata": 3, - "__main__.call_contract.calldata_size": 2, - "__main__.call_contract.contract_address": 0, - "__main__.call_contract.function_selector": 1, - "__main__.call_contract.syscall": 5, - "__main__.call_contract.syscall_ptr": 4 - } - } - } - ], - "19": [ - { - "accessible_scopes": [ - "__main__", - "__main__.library_call" - ], - "code": "syscall_handler.library_call(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 1, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call.__temp1": 15, - "__main__.library_call.calldata": 12, - "__main__.library_call.calldata_size": 11, - "__main__.library_call.class_hash": 9, - "__main__.library_call.function_selector": 10, - "__main__.library_call.syscall": 14, - "__main__.library_call.syscall_ptr": 13 - } - } - } - ], - "31": [ - { - "accessible_scopes": [ - "__main__", - "__main__.library_call_l1_handler" - ], - "code": "syscall_handler.library_call_l1_handler(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 2, - "offset": 1 - }, - "reference_ids": { - "__main__.library_call_l1_handler.__temp2": 24, - "__main__.library_call_l1_handler.calldata": 21, - "__main__.library_call_l1_handler.calldata_size": 20, - "__main__.library_call_l1_handler.class_hash": 18, - "__main__.library_call_l1_handler.function_selector": 19, - "__main__.library_call_l1_handler.syscall": 23, - "__main__.library_call_l1_handler.syscall_ptr": 22 - } - } - } - ], - "44": [ - { - "accessible_scopes": [ - "__main__", - "__main__.deploy" - ], - "code": "syscall_handler.deploy(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 3, - "offset": 1 - }, - "reference_ids": { - "__main__.deploy.__temp3": 34, - "__main__.deploy.class_hash": 27, - "__main__.deploy.constructor_calldata": 30, - "__main__.deploy.constructor_calldata_size": 29, - "__main__.deploy.contract_address_salt": 28, - "__main__.deploy.deploy_from_zero": 31, - "__main__.deploy.syscall": 33, - "__main__.deploy.syscall_ptr": 32 - } - } - } - ], - "51": [ - { - "accessible_scopes": [ - "__main__", - "__main__.get_caller_address" - ], - "code": "syscall_handler.get_caller_address(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 4, - "offset": 1 - }, - "reference_ids": { - "__main__.get_caller_address.__temp4": 39, - "__main__.get_caller_address.syscall": 38, - "__main__.get_caller_address.syscall_ptr": 37 - } - } - } - ], - "58": [ - { - "accessible_scopes": [ - "__main__", - "__main__.get_sequencer_address" - ], - "code": "syscall_handler.get_sequencer_address(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 5, - "offset": 1 - }, - "reference_ids": { - "__main__.get_sequencer_address.__temp5": 43, - "__main__.get_sequencer_address.syscall": 42, - "__main__.get_sequencer_address.syscall_ptr": 41 - } - } - } - ], - "65": [ - { - "accessible_scopes": [ - "__main__", - "__main__.get_block_number" - ], - "code": "syscall_handler.get_block_number(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 6, - "offset": 1 - }, - "reference_ids": { - "__main__.get_block_number.__temp6": 47, - "__main__.get_block_number.syscall": 46, - "__main__.get_block_number.syscall_ptr": 45 - } - } - } - ], - "72": [ - { - "accessible_scopes": [ - "__main__", - "__main__.get_contract_address" - ], - "code": "syscall_handler.get_contract_address(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 7, - "offset": 1 - }, - "reference_ids": { - "__main__.get_contract_address.__temp7": 51, - "__main__.get_contract_address.syscall": 50, - "__main__.get_contract_address.syscall_ptr": 49 - } - } - } - ], - "79": [ - { - "accessible_scopes": [ - "__main__", - "__main__.get_block_timestamp" - ], - "code": "syscall_handler.get_block_timestamp(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 8, - "offset": 1 - }, - "reference_ids": { - "__main__.get_block_timestamp.__temp8": 55, - "__main__.get_block_timestamp.syscall": 54, - "__main__.get_block_timestamp.syscall_ptr": 53 - } - } - } - ], - "86": [ - { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_signature" - ], - "code": "syscall_handler.get_tx_signature(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 9, - "offset": 1 - }, - "reference_ids": { - "__main__.get_tx_signature.__temp9": 59, - "__main__.get_tx_signature.syscall": 58, - "__main__.get_tx_signature.syscall_ptr": 57 - } - } - } - ], - "95": [ - { - "accessible_scopes": [ - "__main__", - "__main__.storage_read" - ], - "code": "syscall_handler.storage_read(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 10, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_read.__temp10": 64, - "__main__.storage_read.address": 61, - "__main__.storage_read.syscall": 63, - "__main__.storage_read.syscall_ptr": 62 - } - } - } - ], - "104": [ - { - "accessible_scopes": [ - "__main__", - "__main__.storage_write" - ], - "code": "syscall_handler.storage_write(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 11, - "offset": 1 - }, - "reference_ids": { - "__main__.storage_write.__temp11": 70, - "__main__.storage_write.address": 67, - "__main__.storage_write.syscall_ptr": 69, - "__main__.storage_write.value": 68 - } - } - } - ], - "114": [ - { - "accessible_scopes": [ - "__main__", - "__main__.emit_event" - ], - "code": "syscall_handler.emit_event(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 12, - "offset": 1 - }, - "reference_ids": { - "__main__.emit_event.__temp12": 77, - "__main__.emit_event.data": 75, - "__main__.emit_event.data_len": 74, - "__main__.emit_event.keys": 73, - "__main__.emit_event.keys_len": 72, - "__main__.emit_event.syscall_ptr": 76 - } - } - } - ], - "120": [ - { - "accessible_scopes": [ - "__main__", - "__main__.get_tx_info" - ], - "code": "syscall_handler.get_tx_info(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 13, - "offset": 1 - }, - "reference_ids": { - "__main__.get_tx_info.__temp13": 81, - "__main__.get_tx_info.syscall": 80, - "__main__.get_tx_info.syscall_ptr": 79 - } - } - } - ], - "128": [ - { - "accessible_scopes": [ - "__main__", - "__main__.replace_class" - ], - "code": "syscall_handler.replace_class(segments=segments, syscall_ptr=ids.syscall_ptr)", - "flow_tracking_data": { - "ap_tracking": { - "group": 14, - "offset": 1 - }, - "reference_ids": { - "__main__.replace_class.__temp14": 86, - "__main__.replace_class.class_hash": 84, - "__main__.replace_class.syscall_ptr": 85 - } - } - } - ] - }, - "identifiers": { - "__main__.CALL_CONTRACT_SELECTOR": { - "type": "const", - "value": 20853273475220472486191784820 - }, - "__main__.CallContract": { - "full_name": "__main__.CallContract", - "members": { - "request": { - "cairo_type": "__main__.CallContractRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.CallContractResponse", - "offset": 5 - } - }, - "size": 7, - "type": "struct" - }, - "__main__.CallContractRequest": { - "full_name": "__main__.CallContractRequest", - "members": { - "calldata": { - "cairo_type": "felt*", - "offset": 4 - }, - "calldata_size": { - "cairo_type": "felt", - "offset": 3 - }, - "contract_address": { - "cairo_type": "felt", - "offset": 1 - }, - "function_selector": { - "cairo_type": "felt", - "offset": 2 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 5, - "type": "struct" - }, - "__main__.CallContractResponse": { - "full_name": "__main__.CallContractResponse", - "members": { - "retdata": { - "cairo_type": "felt*", - "offset": 1 - }, - "retdata_size": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.DELEGATE_CALL_SELECTOR": { - "type": "const", - "value": 21167594061783206823196716140 - }, - "__main__.DELEGATE_L1_HANDLER_SELECTOR": { - "type": "const", - "value": 23274015802972845247556842986379118667122 - }, - "__main__.DEPLOY_SELECTOR": { - "type": "const", - "value": 75202468540281 - }, - "__main__.Deploy": { - "full_name": "__main__.Deploy", - "members": { - "request": { - "cairo_type": "__main__.DeployRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.DeployResponse", - "offset": 6 - } - }, - "size": 9, - "type": "struct" - }, - "__main__.DeployRequest": { - "full_name": "__main__.DeployRequest", - "members": { - "class_hash": { - "cairo_type": "felt", - "offset": 1 - }, - "constructor_calldata": { - "cairo_type": "felt*", - "offset": 4 - }, - "constructor_calldata_size": { - "cairo_type": "felt", - "offset": 3 - }, - "contract_address_salt": { - "cairo_type": "felt", - "offset": 2 - }, - "deploy_from_zero": { - "cairo_type": "felt", - "offset": 5 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 6, - "type": "struct" - }, - "__main__.DeployResponse": { - "full_name": "__main__.DeployResponse", - "members": { - "constructor_retdata": { - "cairo_type": "felt*", - "offset": 2 - }, - "constructor_retdata_size": { - "cairo_type": "felt", - "offset": 1 - }, - "contract_address": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.DictAccess": { - "destination": "starkware.cairo.common.dict_access.DictAccess", - "type": "alias" - }, - "__main__.EMIT_EVENT_SELECTOR": { - "type": "const", - "value": 1280709301550335749748 - }, - "__main__.EmitEvent": { - "full_name": "__main__.EmitEvent", - "members": { - "data": { - "cairo_type": "felt*", - "offset": 4 - }, - "data_len": { - "cairo_type": "felt", - "offset": 3 - }, - "keys": { - "cairo_type": "felt*", - "offset": 2 - }, - "keys_len": { - "cairo_type": "felt", - "offset": 1 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 5, - "type": "struct" - }, - "__main__.GET_BLOCK_NUMBER_SELECTOR": { - "type": "const", - "value": 1448089106835523001438702345020786 - }, - "__main__.GET_BLOCK_TIMESTAMP_SELECTOR": { - "type": "const", - "value": 24294903732626645868215235778792757751152 - }, - "__main__.GET_CALLER_ADDRESS_SELECTOR": { - "type": "const", - "value": 94901967781393078444254803017658102643 - }, - "__main__.GET_CONTRACT_ADDRESS_SELECTOR": { - "type": "const", - "value": 6219495360805491471215297013070624192820083 - }, - "__main__.GET_SEQUENCER_ADDRESS_SELECTOR": { - "type": "const", - "value": 1592190833581991703053805829594610833820054387 - }, - "__main__.GET_TX_INFO_SELECTOR": { - "type": "const", - "value": 1317029390204112103023 - }, - "__main__.GET_TX_SIGNATURE_SELECTOR": { - "type": "const", - "value": 1448089128652340074717162277007973 - }, - "__main__.GetBlockNumber": { - "full_name": "__main__.GetBlockNumber", - "members": { - "request": { - "cairo_type": "__main__.GetBlockNumberRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.GetBlockNumberResponse", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.GetBlockNumberRequest": { - "full_name": "__main__.GetBlockNumberRequest", - "members": { - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetBlockNumberResponse": { - "full_name": "__main__.GetBlockNumberResponse", - "members": { - "block_number": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetBlockTimestamp": { - "full_name": "__main__.GetBlockTimestamp", - "members": { - "request": { - "cairo_type": "__main__.GetBlockTimestampRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.GetBlockTimestampResponse", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.GetBlockTimestampRequest": { - "full_name": "__main__.GetBlockTimestampRequest", - "members": { - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetBlockTimestampResponse": { - "full_name": "__main__.GetBlockTimestampResponse", - "members": { - "block_timestamp": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetCallerAddress": { - "full_name": "__main__.GetCallerAddress", - "members": { - "request": { - "cairo_type": "__main__.GetCallerAddressRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.GetCallerAddressResponse", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.GetCallerAddressRequest": { - "full_name": "__main__.GetCallerAddressRequest", - "members": { - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetCallerAddressResponse": { - "full_name": "__main__.GetCallerAddressResponse", - "members": { - "caller_address": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetContractAddress": { - "full_name": "__main__.GetContractAddress", - "members": { - "request": { - "cairo_type": "__main__.GetContractAddressRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.GetContractAddressResponse", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.GetContractAddressRequest": { - "full_name": "__main__.GetContractAddressRequest", - "members": { - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetContractAddressResponse": { - "full_name": "__main__.GetContractAddressResponse", - "members": { - "contract_address": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetSequencerAddress": { - "full_name": "__main__.GetSequencerAddress", - "members": { - "request": { - "cairo_type": "__main__.GetSequencerAddressRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.GetSequencerAddressResponse", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.GetSequencerAddressRequest": { - "full_name": "__main__.GetSequencerAddressRequest", - "members": { - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetSequencerAddressResponse": { - "full_name": "__main__.GetSequencerAddressResponse", - "members": { - "sequencer_address": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetTxInfo": { - "full_name": "__main__.GetTxInfo", - "members": { - "request": { - "cairo_type": "__main__.GetTxInfoRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.GetTxInfoResponse", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.GetTxInfoRequest": { - "full_name": "__main__.GetTxInfoRequest", - "members": { - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetTxInfoResponse": { - "full_name": "__main__.GetTxInfoResponse", - "members": { - "tx_info": { - "cairo_type": "__main__.TxInfo*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetTxSignature": { - "full_name": "__main__.GetTxSignature", - "members": { - "request": { - "cairo_type": "__main__.GetTxSignatureRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.GetTxSignatureResponse", - "offset": 1 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.GetTxSignatureRequest": { - "full_name": "__main__.GetTxSignatureRequest", - "members": { - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.GetTxSignatureResponse": { - "full_name": "__main__.GetTxSignatureResponse", - "members": { - "signature": { - "cairo_type": "felt*", - "offset": 1 - }, - "signature_len": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.LIBRARY_CALL_L1_HANDLER_SELECTOR": { - "type": "const", - "value": 436233452754198157705746250789557519228244616562 - }, - "__main__.LIBRARY_CALL_SELECTOR": { - "type": "const", - "value": 92376026794327011772951660 - }, - "__main__.LibraryCall": { - "full_name": "__main__.LibraryCall", - "members": { - "request": { - "cairo_type": "__main__.LibraryCallRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.CallContractResponse", - "offset": 5 - } - }, - "size": 7, - "type": "struct" - }, - "__main__.LibraryCallRequest": { - "full_name": "__main__.LibraryCallRequest", - "members": { - "calldata": { - "cairo_type": "felt*", - "offset": 4 - }, - "calldata_size": { - "cairo_type": "felt", - "offset": 3 - }, - "class_hash": { - "cairo_type": "felt", - "offset": 1 - }, - "function_selector": { - "cairo_type": "felt", - "offset": 2 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 5, - "type": "struct" - }, - "__main__.REPLACE_CLASS_SELECTOR": { - "type": "const", - "value": 25500403217443378527601783667 - }, - "__main__.ReplaceClass": { - "full_name": "__main__.ReplaceClass", - "members": { - "class_hash": { - "cairo_type": "felt", - "offset": 1 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.SEND_MESSAGE_TO_L1_SELECTOR": { - "type": "const", - "value": 433017908768303439907196859243777073 - }, - "__main__.STORAGE_READ_SELECTOR": { - "type": "const", - "value": 100890693370601760042082660 - }, - "__main__.STORAGE_WRITE_SELECTOR": { - "type": "const", - "value": 25828017502874050592466629733 - }, - "__main__.SendMessageToL1SysCall": { - "full_name": "__main__.SendMessageToL1SysCall", - "members": { - "payload_ptr": { - "cairo_type": "felt*", - "offset": 3 - }, - "payload_size": { - "cairo_type": "felt", - "offset": 2 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - }, - "to_address": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.StorageRead": { - "full_name": "__main__.StorageRead", - "members": { - "request": { - "cairo_type": "__main__.StorageReadRequest", - "offset": 0 - }, - "response": { - "cairo_type": "__main__.StorageReadResponse", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.StorageReadRequest": { - "full_name": "__main__.StorageReadRequest", - "members": { - "address": { - "cairo_type": "felt", - "offset": 1 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.StorageReadResponse": { - "full_name": "__main__.StorageReadResponse", - "members": { - "value": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.StorageWrite": { - "full_name": "__main__.StorageWrite", - "members": { - "address": { - "cairo_type": "felt", - "offset": 1 - }, - "selector": { - "cairo_type": "felt", - "offset": 0 - }, - "value": { - "cairo_type": "felt", - "offset": 2 - } - }, - "size": 3, - "type": "struct" - }, - "__main__.TxInfo": { - "full_name": "__main__.TxInfo", - "members": { - "account_contract_address": { - "cairo_type": "felt", - "offset": 1 - }, - "chain_id": { - "cairo_type": "felt", - "offset": 6 - }, - "max_fee": { - "cairo_type": "felt", - "offset": 2 - }, - "nonce": { - "cairo_type": "felt", - "offset": 7 - }, - "signature": { - "cairo_type": "felt*", - "offset": 4 - }, - "signature_len": { - "cairo_type": "felt", - "offset": 3 - }, - "transaction_hash": { - "cairo_type": "felt", - "offset": 5 - }, - "version": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 8, - "type": "struct" - }, - "__main__.call_contract": { - "decorators": [], - "pc": 0, - "type": "function" - }, - "__main__.call_contract.Args": { - "full_name": "__main__.call_contract.Args", - "members": { - "calldata": { - "cairo_type": "felt*", - "offset": 3 - }, - "calldata_size": { - "cairo_type": "felt", - "offset": 2 - }, - "contract_address": { - "cairo_type": "felt", - "offset": 0 - }, - "function_selector": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.call_contract.ImplicitArgs": { - "full_name": "__main__.call_contract.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.call_contract.Return": { - "cairo_type": "(retdata_size: felt, retdata: felt*)", - "type": "type_definition" - }, - "__main__.call_contract.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.call_contract.__temp0": { - "cairo_type": "felt", - "full_name": "__main__.call_contract.__temp0", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 1 - }, - "pc": 2, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.call_contract.calldata": { - "cairo_type": "felt*", - "full_name": "__main__.call_contract.calldata", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-3), felt**)]" - } - ], - "type": "reference" - }, - "__main__.call_contract.calldata_size": { - "cairo_type": "felt", - "full_name": "__main__.call_contract.calldata_size", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-4), felt*)]" - } - ], - "type": "reference" - }, - "__main__.call_contract.contract_address": { - "cairo_type": "felt", - "full_name": "__main__.call_contract.contract_address", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-6), felt*)]" - } - ], - "type": "reference" - }, - "__main__.call_contract.function_selector": { - "cairo_type": "felt", - "full_name": "__main__.call_contract.function_selector", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-5), felt*)]" - } - ], - "type": "reference" - }, - "__main__.call_contract.response": { - "cairo_type": "__main__.CallContractResponse", - "full_name": "__main__.call_contract.response", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 1 - }, - "pc": 7, - "value": "[cast([fp + (-7)] + 5, __main__.CallContractResponse*)]" - } - ], - "type": "reference" - }, - "__main__.call_contract.syscall": { - "cairo_type": "__main__.CallContract", - "full_name": "__main__.call_contract.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast([fp + (-7)], __main__.CallContract*)]" - } - ], - "type": "reference" - }, - "__main__.call_contract.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.call_contract.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 1 - }, - "pc": 7, - "value": "cast([fp + (-7)] + 7, felt*)" - } - ], - "type": "reference" - }, - "__main__.deploy": { - "decorators": [], - "pc": 36, - "type": "function" - }, - "__main__.deploy.Args": { - "full_name": "__main__.deploy.Args", - "members": { - "class_hash": { - "cairo_type": "felt", - "offset": 0 - }, - "constructor_calldata": { - "cairo_type": "felt*", - "offset": 3 - }, - "constructor_calldata_size": { - "cairo_type": "felt", - "offset": 2 - }, - "contract_address_salt": { - "cairo_type": "felt", - "offset": 1 - }, - "deploy_from_zero": { - "cairo_type": "felt", - "offset": 4 - } - }, - "size": 5, - "type": "struct" - }, - "__main__.deploy.ImplicitArgs": { - "full_name": "__main__.deploy.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.deploy.Return": { - "cairo_type": "(contract_address: felt)", - "type": "type_definition" - }, - "__main__.deploy.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.deploy.__temp3": { - "cairo_type": "felt", - "full_name": "__main__.deploy.__temp3", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 1 - }, - "pc": 38, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.deploy.class_hash": { - "cairo_type": "felt", - "full_name": "__main__.deploy.class_hash", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-7), felt*)]" - } - ], - "type": "reference" - }, - "__main__.deploy.constructor_calldata": { - "cairo_type": "felt*", - "full_name": "__main__.deploy.constructor_calldata", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-4), felt**)]" - } - ], - "type": "reference" - }, - "__main__.deploy.constructor_calldata_size": { - "cairo_type": "felt", - "full_name": "__main__.deploy.constructor_calldata_size", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-5), felt*)]" - } - ], - "type": "reference" - }, - "__main__.deploy.contract_address_salt": { - "cairo_type": "felt", - "full_name": "__main__.deploy.contract_address_salt", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-6), felt*)]" - } - ], - "type": "reference" - }, - "__main__.deploy.deploy_from_zero": { - "cairo_type": "felt", - "full_name": "__main__.deploy.deploy_from_zero", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-3), felt*)]" - } - ], - "type": "reference" - }, - "__main__.deploy.response": { - "cairo_type": "__main__.DeployResponse", - "full_name": "__main__.deploy.response", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 1 - }, - "pc": 44, - "value": "[cast([fp + (-8)] + 6, __main__.DeployResponse*)]" - } - ], - "type": "reference" - }, - "__main__.deploy.syscall": { - "cairo_type": "__main__.Deploy", - "full_name": "__main__.deploy.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast([fp + (-8)], __main__.Deploy*)]" - } - ], - "type": "reference" - }, - "__main__.deploy.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.deploy.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-8), felt**)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 1 - }, - "pc": 44, - "value": "cast([fp + (-8)] + 9, felt*)" - } - ], - "type": "reference" - }, - "__main__.emit_event": { - "decorators": [], - "pc": 107, - "type": "function" - }, - "__main__.emit_event.Args": { - "full_name": "__main__.emit_event.Args", - "members": { - "data": { - "cairo_type": "felt*", - "offset": 3 - }, - "data_len": { - "cairo_type": "felt", - "offset": 2 - }, - "keys": { - "cairo_type": "felt*", - "offset": 1 - }, - "keys_len": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.emit_event.ImplicitArgs": { - "full_name": "__main__.emit_event.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.emit_event.Return": { - "cairo_type": "()", - "type": "type_definition" - }, - "__main__.emit_event.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.emit_event.__temp12": { - "cairo_type": "felt", - "full_name": "__main__.emit_event.__temp12", - "references": [ - { - "ap_tracking_data": { - "group": 12, - "offset": 1 - }, - "pc": 109, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.emit_event.data": { - "cairo_type": "felt*", - "full_name": "__main__.emit_event.data", - "references": [ - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-3), felt**)]" - } - ], - "type": "reference" - }, - "__main__.emit_event.data_len": { - "cairo_type": "felt", - "full_name": "__main__.emit_event.data_len", - "references": [ - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-4), felt*)]" - } - ], - "type": "reference" - }, - "__main__.emit_event.keys": { - "cairo_type": "felt*", - "full_name": "__main__.emit_event.keys", - "references": [ - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-5), felt**)]" - } - ], - "type": "reference" - }, - "__main__.emit_event.keys_len": { - "cairo_type": "felt", - "full_name": "__main__.emit_event.keys_len", - "references": [ - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-6), felt*)]" - } - ], - "type": "reference" - }, - "__main__.emit_event.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.emit_event.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 1 - }, - "pc": 114, - "value": "cast([fp + (-7)] + 5, felt*)" - } - ], - "type": "reference" - }, - "__main__.get_block_number": { - "decorators": [], - "pc": 62, - "type": "function" - }, - "__main__.get_block_number.Args": { - "full_name": "__main__.get_block_number.Args", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.get_block_number.ImplicitArgs": { - "full_name": "__main__.get_block_number.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.get_block_number.Return": { - "cairo_type": "(block_number: felt)", - "type": "type_definition" - }, - "__main__.get_block_number.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.get_block_number.__temp6": { - "cairo_type": "felt", - "full_name": "__main__.get_block_number.__temp6", - "references": [ - { - "ap_tracking_data": { - "group": 6, - "offset": 1 - }, - "pc": 64, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.get_block_number.syscall": { - "cairo_type": "__main__.GetBlockNumber", - "full_name": "__main__.get_block_number.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 6, - "offset": 0 - }, - "pc": 62, - "value": "[cast([fp + (-3)], __main__.GetBlockNumber*)]" - } - ], - "type": "reference" - }, - "__main__.get_block_number.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.get_block_number.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 6, - "offset": 0 - }, - "pc": 62, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 6, - "offset": 1 - }, - "pc": 65, - "value": "cast([fp + (-3)] + 2, felt*)" - } - ], - "type": "reference" - }, - "__main__.get_block_timestamp": { - "decorators": [], - "pc": 76, - "type": "function" - }, - "__main__.get_block_timestamp.Args": { - "full_name": "__main__.get_block_timestamp.Args", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.get_block_timestamp.ImplicitArgs": { - "full_name": "__main__.get_block_timestamp.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.get_block_timestamp.Return": { - "cairo_type": "(block_timestamp: felt)", - "type": "type_definition" - }, - "__main__.get_block_timestamp.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.get_block_timestamp.__temp8": { - "cairo_type": "felt", - "full_name": "__main__.get_block_timestamp.__temp8", - "references": [ - { - "ap_tracking_data": { - "group": 8, - "offset": 1 - }, - "pc": 78, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.get_block_timestamp.syscall": { - "cairo_type": "__main__.GetBlockTimestamp", - "full_name": "__main__.get_block_timestamp.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 8, - "offset": 0 - }, - "pc": 76, - "value": "[cast([fp + (-3)], __main__.GetBlockTimestamp*)]" - } - ], - "type": "reference" - }, - "__main__.get_block_timestamp.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.get_block_timestamp.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 8, - "offset": 0 - }, - "pc": 76, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 8, - "offset": 1 - }, - "pc": 79, - "value": "cast([fp + (-3)] + 2, felt*)" - } - ], - "type": "reference" - }, - "__main__.get_caller_address": { - "decorators": [], - "pc": 48, - "type": "function" - }, - "__main__.get_caller_address.Args": { - "full_name": "__main__.get_caller_address.Args", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.get_caller_address.ImplicitArgs": { - "full_name": "__main__.get_caller_address.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.get_caller_address.Return": { - "cairo_type": "(caller_address: felt)", - "type": "type_definition" - }, - "__main__.get_caller_address.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.get_caller_address.__temp4": { - "cairo_type": "felt", - "full_name": "__main__.get_caller_address.__temp4", - "references": [ - { - "ap_tracking_data": { - "group": 4, - "offset": 1 - }, - "pc": 50, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.get_caller_address.syscall": { - "cairo_type": "__main__.GetCallerAddress", - "full_name": "__main__.get_caller_address.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 4, - "offset": 0 - }, - "pc": 48, - "value": "[cast([fp + (-3)], __main__.GetCallerAddress*)]" - } - ], - "type": "reference" - }, - "__main__.get_caller_address.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.get_caller_address.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 4, - "offset": 0 - }, - "pc": 48, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 4, - "offset": 1 - }, - "pc": 51, - "value": "cast([fp + (-3)] + 2, felt*)" - } - ], - "type": "reference" - }, - "__main__.get_contract_address": { - "decorators": [], - "pc": 69, - "type": "function" - }, - "__main__.get_contract_address.Args": { - "full_name": "__main__.get_contract_address.Args", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.get_contract_address.ImplicitArgs": { - "full_name": "__main__.get_contract_address.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.get_contract_address.Return": { - "cairo_type": "(contract_address: felt)", - "type": "type_definition" - }, - "__main__.get_contract_address.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.get_contract_address.__temp7": { - "cairo_type": "felt", - "full_name": "__main__.get_contract_address.__temp7", - "references": [ - { - "ap_tracking_data": { - "group": 7, - "offset": 1 - }, - "pc": 71, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.get_contract_address.syscall": { - "cairo_type": "__main__.GetContractAddress", - "full_name": "__main__.get_contract_address.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 7, - "offset": 0 - }, - "pc": 69, - "value": "[cast([fp + (-3)], __main__.GetContractAddress*)]" - } - ], - "type": "reference" - }, - "__main__.get_contract_address.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.get_contract_address.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 7, - "offset": 0 - }, - "pc": 69, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 7, - "offset": 1 - }, - "pc": 72, - "value": "cast([fp + (-3)] + 2, felt*)" - } - ], - "type": "reference" - }, - "__main__.get_sequencer_address": { - "decorators": [], - "pc": 55, - "type": "function" - }, - "__main__.get_sequencer_address.Args": { - "full_name": "__main__.get_sequencer_address.Args", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.get_sequencer_address.ImplicitArgs": { - "full_name": "__main__.get_sequencer_address.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.get_sequencer_address.Return": { - "cairo_type": "(sequencer_address: felt)", - "type": "type_definition" - }, - "__main__.get_sequencer_address.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.get_sequencer_address.__temp5": { - "cairo_type": "felt", - "full_name": "__main__.get_sequencer_address.__temp5", - "references": [ - { - "ap_tracking_data": { - "group": 5, - "offset": 1 - }, - "pc": 57, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.get_sequencer_address.syscall": { - "cairo_type": "__main__.GetSequencerAddress", - "full_name": "__main__.get_sequencer_address.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 5, - "offset": 0 - }, - "pc": 55, - "value": "[cast([fp + (-3)], __main__.GetSequencerAddress*)]" - } - ], - "type": "reference" - }, - "__main__.get_sequencer_address.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.get_sequencer_address.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 5, - "offset": 0 - }, - "pc": 55, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 5, - "offset": 1 - }, - "pc": 58, - "value": "cast([fp + (-3)] + 2, felt*)" - } - ], - "type": "reference" - }, - "__main__.get_tx_info": { - "decorators": [], - "pc": 117, - "type": "function" - }, - "__main__.get_tx_info.Args": { - "full_name": "__main__.get_tx_info.Args", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.get_tx_info.ImplicitArgs": { - "full_name": "__main__.get_tx_info.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.get_tx_info.Return": { - "cairo_type": "(tx_info: __main__.TxInfo*)", - "type": "type_definition" - }, - "__main__.get_tx_info.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.get_tx_info.__temp13": { - "cairo_type": "felt", - "full_name": "__main__.get_tx_info.__temp13", - "references": [ - { - "ap_tracking_data": { - "group": 13, - "offset": 1 - }, - "pc": 119, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.get_tx_info.response": { - "cairo_type": "__main__.GetTxInfoResponse", - "full_name": "__main__.get_tx_info.response", - "references": [ - { - "ap_tracking_data": { - "group": 13, - "offset": 1 - }, - "pc": 120, - "value": "[cast([fp + (-3)] + 1, __main__.GetTxInfoResponse*)]" - } - ], - "type": "reference" - }, - "__main__.get_tx_info.syscall": { - "cairo_type": "__main__.GetTxInfo", - "full_name": "__main__.get_tx_info.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 13, - "offset": 0 - }, - "pc": 117, - "value": "[cast([fp + (-3)], __main__.GetTxInfo*)]" - } - ], - "type": "reference" - }, - "__main__.get_tx_info.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.get_tx_info.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 13, - "offset": 0 - }, - "pc": 117, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 13, - "offset": 1 - }, - "pc": 120, - "value": "cast([fp + (-3)] + 2, felt*)" - } - ], - "type": "reference" - }, - "__main__.get_tx_signature": { - "decorators": [], - "pc": 83, - "type": "function" - }, - "__main__.get_tx_signature.Args": { - "full_name": "__main__.get_tx_signature.Args", - "members": {}, - "size": 0, - "type": "struct" - }, - "__main__.get_tx_signature.ImplicitArgs": { - "full_name": "__main__.get_tx_signature.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.get_tx_signature.Return": { - "cairo_type": "(signature_len: felt, signature: felt*)", - "type": "type_definition" - }, - "__main__.get_tx_signature.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.get_tx_signature.__temp9": { - "cairo_type": "felt", - "full_name": "__main__.get_tx_signature.__temp9", - "references": [ - { - "ap_tracking_data": { - "group": 9, - "offset": 1 - }, - "pc": 85, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.get_tx_signature.syscall": { - "cairo_type": "__main__.GetTxSignature", - "full_name": "__main__.get_tx_signature.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 9, - "offset": 0 - }, - "pc": 83, - "value": "[cast([fp + (-3)], __main__.GetTxSignature*)]" - } - ], - "type": "reference" - }, - "__main__.get_tx_signature.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.get_tx_signature.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 9, - "offset": 0 - }, - "pc": 83, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 9, - "offset": 1 - }, - "pc": 86, - "value": "cast([fp + (-3)] + 3, felt*)" - } - ], - "type": "reference" - }, - "__main__.library_call": { - "decorators": [], - "pc": 12, - "type": "function" - }, - "__main__.library_call.Args": { - "full_name": "__main__.library_call.Args", - "members": { - "calldata": { - "cairo_type": "felt*", - "offset": 3 - }, - "calldata_size": { - "cairo_type": "felt", - "offset": 2 - }, - "class_hash": { - "cairo_type": "felt", - "offset": 0 - }, - "function_selector": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.library_call.ImplicitArgs": { - "full_name": "__main__.library_call.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.library_call.Return": { - "cairo_type": "(retdata_size: felt, retdata: felt*)", - "type": "type_definition" - }, - "__main__.library_call.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.library_call.__temp1": { - "cairo_type": "felt", - "full_name": "__main__.library_call.__temp1", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 1 - }, - "pc": 14, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call.calldata": { - "cairo_type": "felt*", - "full_name": "__main__.library_call.calldata", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-3), felt**)]" - } - ], - "type": "reference" - }, - "__main__.library_call.calldata_size": { - "cairo_type": "felt", - "full_name": "__main__.library_call.calldata_size", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-4), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call.class_hash": { - "cairo_type": "felt", - "full_name": "__main__.library_call.class_hash", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-6), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call.function_selector": { - "cairo_type": "felt", - "full_name": "__main__.library_call.function_selector", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-5), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call.response": { - "cairo_type": "__main__.CallContractResponse", - "full_name": "__main__.library_call.response", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 1 - }, - "pc": 19, - "value": "[cast([fp + (-7)] + 5, __main__.CallContractResponse*)]" - } - ], - "type": "reference" - }, - "__main__.library_call.syscall": { - "cairo_type": "__main__.LibraryCall", - "full_name": "__main__.library_call.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast([fp + (-7)], __main__.LibraryCall*)]" - } - ], - "type": "reference" - }, - "__main__.library_call.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.library_call.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 1 - }, - "pc": 19, - "value": "cast([fp + (-7)] + 7, felt*)" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler": { - "decorators": [], - "pc": 24, - "type": "function" - }, - "__main__.library_call_l1_handler.Args": { - "full_name": "__main__.library_call_l1_handler.Args", - "members": { - "calldata": { - "cairo_type": "felt*", - "offset": 3 - }, - "calldata_size": { - "cairo_type": "felt", - "offset": 2 - }, - "class_hash": { - "cairo_type": "felt", - "offset": 0 - }, - "function_selector": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 4, - "type": "struct" - }, - "__main__.library_call_l1_handler.ImplicitArgs": { - "full_name": "__main__.library_call_l1_handler.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.library_call_l1_handler.Return": { - "cairo_type": "(retdata_size: felt, retdata: felt*)", - "type": "type_definition" - }, - "__main__.library_call_l1_handler.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.library_call_l1_handler.__temp2": { - "cairo_type": "felt", - "full_name": "__main__.library_call_l1_handler.__temp2", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 1 - }, - "pc": 26, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler.calldata": { - "cairo_type": "felt*", - "full_name": "__main__.library_call_l1_handler.calldata", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-3), felt**)]" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler.calldata_size": { - "cairo_type": "felt", - "full_name": "__main__.library_call_l1_handler.calldata_size", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-4), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler.class_hash": { - "cairo_type": "felt", - "full_name": "__main__.library_call_l1_handler.class_hash", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-6), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler.function_selector": { - "cairo_type": "felt", - "full_name": "__main__.library_call_l1_handler.function_selector", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-5), felt*)]" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler.response": { - "cairo_type": "__main__.CallContractResponse", - "full_name": "__main__.library_call_l1_handler.response", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 1 - }, - "pc": 31, - "value": "[cast([fp + (-7)] + 5, __main__.CallContractResponse*)]" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler.syscall": { - "cairo_type": "__main__.LibraryCall", - "full_name": "__main__.library_call_l1_handler.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast([fp + (-7)], __main__.LibraryCall*)]" - } - ], - "type": "reference" - }, - "__main__.library_call_l1_handler.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.library_call_l1_handler.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 1 - }, - "pc": 31, - "value": "cast([fp + (-7)] + 7, felt*)" - } - ], - "type": "reference" - }, - "__main__.replace_class": { - "decorators": [], - "pc": 124, - "type": "function" - }, - "__main__.replace_class.Args": { - "full_name": "__main__.replace_class.Args", - "members": { - "class_hash": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.replace_class.ImplicitArgs": { - "full_name": "__main__.replace_class.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.replace_class.Return": { - "cairo_type": "()", - "type": "type_definition" - }, - "__main__.replace_class.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.replace_class.__temp14": { - "cairo_type": "felt", - "full_name": "__main__.replace_class.__temp14", - "references": [ - { - "ap_tracking_data": { - "group": 14, - "offset": 1 - }, - "pc": 126, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.replace_class.class_hash": { - "cairo_type": "felt", - "full_name": "__main__.replace_class.class_hash", - "references": [ - { - "ap_tracking_data": { - "group": 14, - "offset": 0 - }, - "pc": 124, - "value": "[cast(fp + (-3), felt*)]" - } - ], - "type": "reference" - }, - "__main__.replace_class.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.replace_class.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 14, - "offset": 0 - }, - "pc": 124, - "value": "[cast(fp + (-4), felt**)]" - }, - { - "ap_tracking_data": { - "group": 14, - "offset": 1 - }, - "pc": 128, - "value": "cast([fp + (-4)] + 2, felt*)" - } - ], - "type": "reference" - }, - "__main__.storage_read": { - "decorators": [], - "pc": 91, - "type": "function" - }, - "__main__.storage_read.Args": { - "full_name": "__main__.storage_read.Args", - "members": { - "address": { - "cairo_type": "felt", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.storage_read.ImplicitArgs": { - "full_name": "__main__.storage_read.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.storage_read.Return": { - "cairo_type": "(value: felt)", - "type": "type_definition" - }, - "__main__.storage_read.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.storage_read.__temp10": { - "cairo_type": "felt", - "full_name": "__main__.storage_read.__temp10", - "references": [ - { - "ap_tracking_data": { - "group": 10, - "offset": 1 - }, - "pc": 93, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.storage_read.address": { - "cairo_type": "felt", - "full_name": "__main__.storage_read.address", - "references": [ - { - "ap_tracking_data": { - "group": 10, - "offset": 0 - }, - "pc": 91, - "value": "[cast(fp + (-3), felt*)]" - } - ], - "type": "reference" - }, - "__main__.storage_read.response": { - "cairo_type": "__main__.StorageReadResponse", - "full_name": "__main__.storage_read.response", - "references": [ - { - "ap_tracking_data": { - "group": 10, - "offset": 1 - }, - "pc": 95, - "value": "[cast([fp + (-4)] + 2, __main__.StorageReadResponse*)]" - } - ], - "type": "reference" - }, - "__main__.storage_read.syscall": { - "cairo_type": "__main__.StorageRead", - "full_name": "__main__.storage_read.syscall", - "references": [ - { - "ap_tracking_data": { - "group": 10, - "offset": 0 - }, - "pc": 91, - "value": "[cast([fp + (-4)], __main__.StorageRead*)]" - } - ], - "type": "reference" - }, - "__main__.storage_read.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.storage_read.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 10, - "offset": 0 - }, - "pc": 91, - "value": "[cast(fp + (-4), felt**)]" - }, - { - "ap_tracking_data": { - "group": 10, - "offset": 1 - }, - "pc": 95, - "value": "cast([fp + (-4)] + 3, felt*)" - } - ], - "type": "reference" - }, - "__main__.storage_write": { - "decorators": [], - "pc": 99, - "type": "function" - }, - "__main__.storage_write.Args": { - "full_name": "__main__.storage_write.Args", - "members": { - "address": { - "cairo_type": "felt", - "offset": 0 - }, - "value": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 2, - "type": "struct" - }, - "__main__.storage_write.ImplicitArgs": { - "full_name": "__main__.storage_write.ImplicitArgs", - "members": { - "syscall_ptr": { - "cairo_type": "felt*", - "offset": 0 - } - }, - "size": 1, - "type": "struct" - }, - "__main__.storage_write.Return": { - "cairo_type": "()", - "type": "type_definition" - }, - "__main__.storage_write.SIZEOF_LOCALS": { - "type": "const", - "value": 0 - }, - "__main__.storage_write.__temp11": { - "cairo_type": "felt", - "full_name": "__main__.storage_write.__temp11", - "references": [ - { - "ap_tracking_data": { - "group": 11, - "offset": 1 - }, - "pc": 101, - "value": "[cast(ap + (-1), felt*)]" - } - ], - "type": "reference" - }, - "__main__.storage_write.address": { - "cairo_type": "felt", - "full_name": "__main__.storage_write.address", - "references": [ - { - "ap_tracking_data": { - "group": 11, - "offset": 0 - }, - "pc": 99, - "value": "[cast(fp + (-4), felt*)]" - } - ], - "type": "reference" - }, - "__main__.storage_write.syscall_ptr": { - "cairo_type": "felt*", - "full_name": "__main__.storage_write.syscall_ptr", - "references": [ - { - "ap_tracking_data": { - "group": 11, - "offset": 0 - }, - "pc": 99, - "value": "[cast(fp + (-5), felt**)]" - }, - { - "ap_tracking_data": { - "group": 11, - "offset": 1 - }, - "pc": 104, - "value": "cast([fp + (-5)] + 3, felt*)" - } - ], - "type": "reference" - }, - "__main__.storage_write.value": { - "cairo_type": "felt", - "full_name": "__main__.storage_write.value", - "references": [ - { - "ap_tracking_data": { - "group": 11, - "offset": 0 - }, - "pc": 99, - "value": "[cast(fp + (-3), felt*)]" - } - ], - "type": "reference" - }, - "starkware.cairo.common.dict_access.DictAccess": { - "full_name": "starkware.cairo.common.dict_access.DictAccess", - "members": { - "key": { - "cairo_type": "felt", - "offset": 0 - }, - "new_value": { - "cairo_type": "felt", - "offset": 2 - }, - "prev_value": { - "cairo_type": "felt", - "offset": 1 - } - }, - "size": 3, - "type": "struct" - } - }, - "main_scope": "__main__", - "prime": "0x800000000000011000000000000000000000000000000000000000000000001", - "reference_manager": { - "references": [ - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-6), felt*)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-5), felt*)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-4), felt*)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 0 - }, - "pc": 0, - "value": "[cast([fp + (-7)], __main__.CallContract*)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 1 - }, - "pc": 2, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 1 - }, - "pc": 7, - "value": "[cast([fp + (-7)] + 5, __main__.CallContractResponse*)]" - }, - { - "ap_tracking_data": { - "group": 0, - "offset": 1 - }, - "pc": 7, - "value": "cast([fp + (-7)] + 7, felt*)" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-6), felt*)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-5), felt*)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-4), felt*)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 0 - }, - "pc": 12, - "value": "[cast([fp + (-7)], __main__.LibraryCall*)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 1 - }, - "pc": 14, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 1 - }, - "pc": 19, - "value": "[cast([fp + (-7)] + 5, __main__.CallContractResponse*)]" - }, - { - "ap_tracking_data": { - "group": 1, - "offset": 1 - }, - "pc": 19, - "value": "cast([fp + (-7)] + 7, felt*)" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-6), felt*)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-5), felt*)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-4), felt*)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 0 - }, - "pc": 24, - "value": "[cast([fp + (-7)], __main__.LibraryCall*)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 1 - }, - "pc": 26, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 1 - }, - "pc": 31, - "value": "[cast([fp + (-7)] + 5, __main__.CallContractResponse*)]" - }, - { - "ap_tracking_data": { - "group": 2, - "offset": 1 - }, - "pc": 31, - "value": "cast([fp + (-7)] + 7, felt*)" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-7), felt*)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-6), felt*)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-5), felt*)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-4), felt**)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-3), felt*)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast(fp + (-8), felt**)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 0 - }, - "pc": 36, - "value": "[cast([fp + (-8)], __main__.Deploy*)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 1 - }, - "pc": 38, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 1 - }, - "pc": 44, - "value": "[cast([fp + (-8)] + 6, __main__.DeployResponse*)]" - }, - { - "ap_tracking_data": { - "group": 3, - "offset": 1 - }, - "pc": 44, - "value": "cast([fp + (-8)] + 9, felt*)" - }, - { - "ap_tracking_data": { - "group": 4, - "offset": 0 - }, - "pc": 48, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 4, - "offset": 0 - }, - "pc": 48, - "value": "[cast([fp + (-3)], __main__.GetCallerAddress*)]" - }, - { - "ap_tracking_data": { - "group": 4, - "offset": 1 - }, - "pc": 50, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 4, - "offset": 1 - }, - "pc": 51, - "value": "cast([fp + (-3)] + 2, felt*)" - }, - { - "ap_tracking_data": { - "group": 5, - "offset": 0 - }, - "pc": 55, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 5, - "offset": 0 - }, - "pc": 55, - "value": "[cast([fp + (-3)], __main__.GetSequencerAddress*)]" - }, - { - "ap_tracking_data": { - "group": 5, - "offset": 1 - }, - "pc": 57, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 5, - "offset": 1 - }, - "pc": 58, - "value": "cast([fp + (-3)] + 2, felt*)" - }, - { - "ap_tracking_data": { - "group": 6, - "offset": 0 - }, - "pc": 62, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 6, - "offset": 0 - }, - "pc": 62, - "value": "[cast([fp + (-3)], __main__.GetBlockNumber*)]" - }, - { - "ap_tracking_data": { - "group": 6, - "offset": 1 - }, - "pc": 64, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 6, - "offset": 1 - }, - "pc": 65, - "value": "cast([fp + (-3)] + 2, felt*)" - }, - { - "ap_tracking_data": { - "group": 7, - "offset": 0 - }, - "pc": 69, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 7, - "offset": 0 - }, - "pc": 69, - "value": "[cast([fp + (-3)], __main__.GetContractAddress*)]" - }, - { - "ap_tracking_data": { - "group": 7, - "offset": 1 - }, - "pc": 71, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 7, - "offset": 1 - }, - "pc": 72, - "value": "cast([fp + (-3)] + 2, felt*)" - }, - { - "ap_tracking_data": { - "group": 8, - "offset": 0 - }, - "pc": 76, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 8, - "offset": 0 - }, - "pc": 76, - "value": "[cast([fp + (-3)], __main__.GetBlockTimestamp*)]" - }, - { - "ap_tracking_data": { - "group": 8, - "offset": 1 - }, - "pc": 78, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 8, - "offset": 1 - }, - "pc": 79, - "value": "cast([fp + (-3)] + 2, felt*)" - }, - { - "ap_tracking_data": { - "group": 9, - "offset": 0 - }, - "pc": 83, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 9, - "offset": 0 - }, - "pc": 83, - "value": "[cast([fp + (-3)], __main__.GetTxSignature*)]" - }, - { - "ap_tracking_data": { - "group": 9, - "offset": 1 - }, - "pc": 85, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 9, - "offset": 1 - }, - "pc": 86, - "value": "cast([fp + (-3)] + 3, felt*)" - }, - { - "ap_tracking_data": { - "group": 10, - "offset": 0 - }, - "pc": 91, - "value": "[cast(fp + (-3), felt*)]" - }, - { - "ap_tracking_data": { - "group": 10, - "offset": 0 - }, - "pc": 91, - "value": "[cast(fp + (-4), felt**)]" - }, - { - "ap_tracking_data": { - "group": 10, - "offset": 0 - }, - "pc": 91, - "value": "[cast([fp + (-4)], __main__.StorageRead*)]" - }, - { - "ap_tracking_data": { - "group": 10, - "offset": 1 - }, - "pc": 93, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 10, - "offset": 1 - }, - "pc": 95, - "value": "[cast([fp + (-4)] + 2, __main__.StorageReadResponse*)]" - }, - { - "ap_tracking_data": { - "group": 10, - "offset": 1 - }, - "pc": 95, - "value": "cast([fp + (-4)] + 3, felt*)" - }, - { - "ap_tracking_data": { - "group": 11, - "offset": 0 - }, - "pc": 99, - "value": "[cast(fp + (-4), felt*)]" - }, - { - "ap_tracking_data": { - "group": 11, - "offset": 0 - }, - "pc": 99, - "value": "[cast(fp + (-3), felt*)]" - }, - { - "ap_tracking_data": { - "group": 11, - "offset": 0 - }, - "pc": 99, - "value": "[cast(fp + (-5), felt**)]" - }, - { - "ap_tracking_data": { - "group": 11, - "offset": 1 - }, - "pc": 101, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 11, - "offset": 1 - }, - "pc": 104, - "value": "cast([fp + (-5)] + 3, felt*)" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-6), felt*)]" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-5), felt**)]" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-4), felt*)]" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 0 - }, - "pc": 107, - "value": "[cast(fp + (-7), felt**)]" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 1 - }, - "pc": 109, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 12, - "offset": 1 - }, - "pc": 114, - "value": "cast([fp + (-7)] + 5, felt*)" - }, - { - "ap_tracking_data": { - "group": 13, - "offset": 0 - }, - "pc": 117, - "value": "[cast(fp + (-3), felt**)]" - }, - { - "ap_tracking_data": { - "group": 13, - "offset": 0 - }, - "pc": 117, - "value": "[cast([fp + (-3)], __main__.GetTxInfo*)]" - }, - { - "ap_tracking_data": { - "group": 13, - "offset": 1 - }, - "pc": 119, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 13, - "offset": 1 - }, - "pc": 120, - "value": "[cast([fp + (-3)] + 1, __main__.GetTxInfoResponse*)]" - }, - { - "ap_tracking_data": { - "group": 13, - "offset": 1 - }, - "pc": 120, - "value": "cast([fp + (-3)] + 2, felt*)" - }, - { - "ap_tracking_data": { - "group": 14, - "offset": 0 - }, - "pc": 124, - "value": "[cast(fp + (-3), felt*)]" - }, - { - "ap_tracking_data": { - "group": 14, - "offset": 0 - }, - "pc": 124, - "value": "[cast(fp + (-4), felt**)]" - }, - { - "ap_tracking_data": { - "group": 14, - "offset": 1 - }, - "pc": 126, - "value": "[cast(ap + (-1), felt*)]" - }, - { - "ap_tracking_data": { - "group": 14, - "offset": 1 - }, - "pc": 128, - "value": "cast([fp + (-4)] + 2, felt*)" - } - ] - } -} diff --git a/cairo0-bootloader/bootloader/contract/syscall_handler.py b/cairo0-bootloader/bootloader/contract/syscall_handler.py index d48eec1..f46d19e 100644 --- a/cairo0-bootloader/bootloader/contract/syscall_handler.py +++ b/cairo0-bootloader/bootloader/contract/syscall_handler.py @@ -6,6 +6,7 @@ from starkware.cairo.lang.vm.memory_segments import MemorySegmentManager from bootloader.contract.syscall_handler_base import SyscallHandlerBase from starkware.cairo.common.structs import CairoStructProxy +from starkware.cairo.common.dict import DictManager from starkware.starknet.business_logic.execution.objects import ( CallResult, ) @@ -18,10 +19,12 @@ class SyscallHandler(SyscallHandlerBase): def __init__( self, segments: MemorySegmentManager, + dict_manager: DictManager, ): print("init") super().__init__(segments=segments, initial_syscall_ptr=None) self.syscall_counter: Dict[str, int] = {} + self.dict_manager = dict_manager print("initialized") def set_syscall_ptr(self, syscall_ptr: RelocatableValue): @@ -42,9 +45,14 @@ def _call_contract_helper( calldata = self._get_felt_range( start_addr=request.calldata_start, end_addr=request.calldata_end ) + + dictionary = self.dict_manager.get_dict(RelocatableValue.from_tuple([calldata[0], calldata[1]])) + + print("dictionary", dictionary) + print("calldata", calldata) return CallResult( gas_consumed=0, failure_flag=0, - retdata=calldata, + retdata=[int(dictionary[calldata[2]])], ) \ No newline at end of file