From 07156556a4f118948e3360887f8e88f7caa7fbd4 Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Tue, 4 Jun 2024 16:20:27 +0200 Subject: [PATCH 1/3] simple syscall working --- bootloader_input.json | 1282 +-- .../contract/execute_entry_point.cairo | 48 +- .../contract/execute_syscalls.cairo | 135 + .../contract/run_contract_bootloader.cairo | 20 +- .../contract/starknet_new_syscalls.json | 1358 ++++ .../contract/starknet_syscalls.json | 7132 +++++++++++++++++ .../bootloader/contract/syscall_handler.py | 82 +- .../contract/syscall_handler_base.py | 198 + cairo0-bootloader/setup.py | 2 +- 9 files changed, 9098 insertions(+), 1159 deletions(-) create mode 100644 cairo0-bootloader/bootloader/contract/execute_syscalls.cairo create mode 100644 cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json create mode 100644 cairo0-bootloader/bootloader/contract/starknet_syscalls.json create mode 100644 cairo0-bootloader/bootloader/contract/syscall_handler_base.py diff --git a/bootloader_input.json b/bootloader_input.json index 6fa3e3b..48bf9f7 100644 --- a/bootloader_input.json +++ b/bootloader_input.json @@ -3,13 +3,15 @@ "prime": "0x800000000000011000000000000000000000000000000000000000000000001", "compiler_version": "2.6.3", "bytecode": [ + "0x40780017fff7fff", + "0x1", "0xa0680017fff8000", "0x7", "0x482680017ffa8000", "0x100000000000000000000000000000000", "0x400280007ff97fff", "0x10780017fff7fff", - "0xb6", + "0xc8", "0x4825800180007ffa", "0x0", "0x400280007ff97fff", @@ -25,7 +27,7 @@ "0x480a7ffd7fff8000", "0x480680017fff8000", "0x0", - "0x480a7ffc7fff8000", + "0x480280007ffc8000", "0x10780017fff7fff", "0x8", "0x480a7ffc7fff8000", @@ -35,50 +37,32 @@ "0x480680017fff8000", "0x0", "0x20680017fff7ffe", - "0x20", - "0x40780017fff7fff", - "0x1", - "0x48127ff97fff8000", - "0x48127ff77fff8000", - "0x48127ff97fff8000", - "0x48127ff97fff8000", - "0x48127ffb7fff8000", - "0x48127ffa7fff8000", - "0x480080007ff88000", - "0x1104800180018000", - "0xa0", - "0x20680017fff7ffa", - "0xb", - "0x48127ff87fff8000", - "0x48127ff87fff8000", - "0x48127ff97fff8000", - "0x48127ff97fff8000", - "0x48127ff97fff8000", - "0x48127ff97fff8000", - "0x48127ff97fff8000", + "0x9d", + "0xa0680017fff8004", + "0xe", + "0x4824800180047ffe", + "0x800000000000000000000000000000000000000000000000000000000000000", + "0x484480017ffe8000", + "0x110000000000000000", + "0x48307ffe7fff8002", + "0x480080007ff67ffc", + "0x480080017ff57ffc", + "0x402480017ffb7ffd", + "0xffffffffffffffeeffffffffffffffff", + "0x400080027ff47ffd", "0x10780017fff7fff", - "0x14", - "0x48127ff87fff8000", - "0x48127ff87fff8000", - "0x480a7ffb7fff8000", - "0x480680017fff8000", - "0x1", - "0x48127ffa7fff8000", - "0x48127ffa7fff8000", - "0x208b7fff7fff7ffe", - "0x48127ffa7fff8000", - "0x48127ff87fff8000", - "0x48127ffa7fff8000", - "0x48127ffa7fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x20680017fff7ffd", - "0x64", - "0x48307ffb80007ffc", + "0x8b", + "0x484480017fff8001", + "0x8000000000000000000000000000000", + "0x48307fff80007ffd", + "0x480080007ff77ffd", + "0x480080017ff67ffd", + "0x402480017ffc7ffe", + "0xf8000000000000000000000000000000", + "0x400080027ff57ffe", + "0x482480017ff58000", + "0x3", + "0x48307ff680007ff7", "0x20680017fff7fff", "0x4", "0x10780017fff7fff", @@ -88,8 +72,8 @@ "0x480680017fff8000", "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473", "0x400080007ffe7fff", - "0x48127ff67fff8000", - "0x48127ff67fff8000", + "0x48127ffc7fff8000", + "0x48127fef7fff8000", "0x480a7ffb7fff8000", "0x480680017fff8000", "0x1", @@ -98,48 +82,76 @@ "0x1", "0x208b7fff7fff7ffe", "0x1104800180018000", - "0x27a", + "0xd2", "0x482480017fff8000", - "0x279", + "0xd1", "0x480080007fff8000", "0xa0680017fff8000", "0x9", - "0x4824800180007ff4", - "0x254e", + "0x4824800180007fed", + "0x233c", "0x482480017fff8000", "0x100000000000000000000000000000000", - "0x400080007ff17fff", + "0x400080007ff77fff", "0x10780017fff7fff", - "0x34", - "0x4824800180007ff4", - "0x254e", - "0x400080007ff27fff", - "0x482480017ff28000", - "0x1", - "0x48127ff67fff8000", - "0x48127ff67fff8000", - "0x1104800180018000", - "0xb3", - "0x20680017fff7ffd", - "0x21", + "0x51", + "0x4824800180007fed", + "0x233c", + "0x400080007ff87fff", "0x40780017fff7fff", "0x1", - "0x48307ffd80007ffe", + "0x480680017fff8000", + "0xa", "0x400080007ffe7fff", - "0x48127ffa7fff8000", - "0x48127fb67fff8000", - "0x48127ffa7fff8000", - "0x48127ffa7fff8000", + "0x480680017fff8000", + "0xb", + "0x400080017ffd7fff", + "0x480680017fff8000", + "0xc", + "0x400080027ffc7fff", + "0x480680017fff8000", + "0xe", + "0x400080037ffb7fff", + "0x480680017fff8000", + "0x1", "0x48127ffa7fff8000", "0x482480017ff98000", + "0x4", + "0x482480017ff08000", + "0x1", + "0x480680017fff8000", + "0x43616c6c436f6e7472616374", + "0x400280007ffb7fff", + "0x400280017ffb7ff5", + "0x400280027ffb7fe8", + "0x400280037ffb7ffb", + "0x400280047ffb7ffc", + "0x400280057ffb7ffd", + "0x480280077ffb8000", + "0x20680017fff7fff", + "0x25", + "0x40780017fff7fff", "0x1", + "0x480280087ffb8000", + "0x480280097ffb8000", + "0x48307ffe80007fff", + "0x400080007ffc7fff", + "0x48127ff97fff8000", + "0x480280067ffb8000", + "0x48127ffb7fff8000", + "0x48127ffb7fff8000", + "0x48127ff87fff8000", + "0x482480017ff78000", + "0x1", + "0x402780017ffb8000", + "0xa", "0x1104800180018000", - "0x146", + "0x50", "0x20680017fff7ffd", "0xa", "0x48127ffb7fff8000", "0x48127ffb7fff8000", - "0x480a7ffb7fff8000", + "0x480a80007fff8000", "0x480680017fff8000", "0x0", "0x48127ffa7fff8000", @@ -147,28 +159,29 @@ "0x208b7fff7fff7ffe", "0x48127ffb7fff8000", "0x48127ffb7fff8000", - "0x480a7ffb7fff8000", + "0x480a80007fff8000", "0x480680017fff8000", "0x1", "0x48127ffa7fff8000", "0x48127ffa7fff8000", "0x208b7fff7fff7ffe", - "0x48127ffc7fff8000", - "0x48127fb87fff8000", - "0x480a7ffb7fff8000", + "0x48127ffd7fff8000", + "0x480280067ffb8000", + "0x482680017ffb8000", + "0xa", "0x480680017fff8000", "0x1", - "0x48127ffa7fff8000", - "0x48127ffa7fff8000", + "0x480280087ffb8000", + "0x480280097ffb8000", "0x208b7fff7fff7ffe", "0x40780017fff7fff", "0x1", "0x480680017fff8000", "0x4f7574206f6620676173", "0x400080007ffe7fff", - "0x482480017fef8000", + "0x482480017ff58000", "0x1", - "0x48127fef7fff8000", + "0x48127fe87fff8000", "0x480a7ffb7fff8000", "0x480680017fff8000", "0x1", @@ -176,13 +189,20 @@ "0x482480017ff98000", "0x1", "0x208b7fff7fff7ffe", + "0x482480017ff48000", + "0x3", + "0x10780017fff7fff", + "0x5", + "0x40780017fff7fff", + "0x6", + "0x48127ff47fff8000", "0x40780017fff7fff", "0x1", "0x480680017fff8000", "0x4661696c656420746f20646573657269616c697a6520706172616d202331", "0x400080007ffe7fff", - "0x48127ff77fff8000", - "0x48127ff77fff8000", + "0x48127ffd7fff8000", + "0x48127fef7fff8000", "0x480a7ffb7fff8000", "0x480680017fff8000", "0x1", @@ -207,710 +227,90 @@ "0x208b7fff7fff7ffe", "0xa0680017fff8000", "0x7", - "0x482680017ff88000", - "0xfffffffffffffffffffffffffffff6be", - "0x400280007ff77fff", + "0x482680017ff98000", + "0xfffffffffffffffffffffffffffff722", + "0x400280007ff87fff", "0x10780017fff7fff", - "0x43", - "0x4825800180007ff8", - "0x942", - "0x400280007ff77fff", - "0x482680017ff78000", + "0x2f", + "0x4825800180007ff9", + "0x8de", + "0x400280007ff87fff", + "0x482680017ff88000", "0x1", - "0x20780017fff7ffd", - "0xd", - "0x48127fff7fff8000", - "0x48127ffd7fff8000", - "0x480680017fff8000", - "0x0", - "0x480a7ff97fff8000", - "0x480a7ffa7fff8000", - "0x480680017fff8000", - "0x0", - "0x480a7ffb7fff8000", - "0x480a7ffc7fff8000", - "0x208b7fff7fff7ffe", - "0x48297ff980007ffa", + "0x48297ffa80007ffb", "0x20680017fff7fff", "0x4", "0x10780017fff7fff", "0xa", - "0x482680017ff98000", + "0x482680017ffa8000", "0x1", - "0x480a7ffa7fff8000", + "0x480a7ffb7fff8000", "0x480680017fff8000", "0x0", - "0x480280007ff98000", + "0x480a7ffa7fff8000", "0x10780017fff7fff", "0x8", - "0x480a7ff97fff8000", "0x480a7ffa7fff8000", + "0x480a7ffb7fff8000", "0x480680017fff8000", "0x1", "0x480680017fff8000", "0x0", "0x20680017fff7ffe", - "0xf", - "0x400280007ffc7fff", - "0x48127ffa7fff8000", - "0x48127ff87fff8000", - "0x48127ffa7fff8000", - "0x48127ffa7fff8000", - "0x480a7ffb7fff8000", - "0x482680017ffc8000", - "0x1", - "0x4825800180007ffd", + "0xe", + "0x480080007fff8000", + "0x400280007ffd7fff", + "0x48127ff97fff8000", + "0x48127ff77fff8000", + "0x48127ff97fff8000", + "0x48127ff97fff8000", + "0x480a7ffc7fff8000", + "0x482680017ffd8000", "0x1", "0x1104800180018000", - "0x800000000000010ffffffffffffffffffffffffffffffffffffffffffffffc9", + "0x800000000000010ffffffffffffffffffffffffffffffffffffffffffffffd7", "0x208b7fff7fff7ffe", "0x48127ffa7fff8000", "0x48127ff87fff8000", "0x480680017fff8000", "0x0", - "0x48127ff97fff8000", - "0x48127ff97fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x1", - "0x480680017fff8000", - "0x4f7574206f6620676173", - "0x400080007ffe7fff", - "0x482680017ff78000", - "0x1", - "0x480a7ff87fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x48127ff87fff8000", - "0x482480017ff78000", - "0x1", - "0x208b7fff7fff7ffe", - "0x480a7ffb7fff8000", "0x480a7ffc7fff8000", "0x480a7ffd7fff8000", - "0x1104800180018000", - "0xe1", - "0x20680017fff7ffc", - "0x8f", - "0x48507ffd7ffd8000", - "0xa0680017fff8000", - "0x7", - "0x4824800180007ffe", - "0x100000000", - "0x400080007ff67fff", - "0x10780017fff7fff", - "0x78", - "0x482480017ffe8000", - "0xffffffffffffffffffffffff00000000", - "0x400080007ff67fff", - "0x48507ffb7ffb8000", - "0xa0680017fff8000", - "0x7", - "0x4824800180007ffe", - "0x100000000", - "0x400080017ff37fff", - "0x10780017fff7fff", - "0x5e", - "0x482480017ffe8000", - "0xffffffffffffffffffffffff00000000", - "0x400080017ff37fff", - "0x48507ff97ff98000", - "0xa0680017fff8000", - "0x7", - "0x4824800180007ffe", - "0x100000000", - "0x400080027ff07fff", - "0x10780017fff7fff", - "0x44", - "0x482480017ffe8000", - "0xffffffffffffffffffffffff00000000", - "0x400080027ff07fff", - "0xa0680017fff8000", - "0x8", - "0x48307ff97ff68000", - "0x4824800180007fff", - "0x100000000", - "0x400080037fed7fff", - "0x10780017fff7fff", - "0x2a", - "0x48307ff97ff68001", - "0x4824800180007fff", - "0xffffffffffffffffffffffff00000000", - "0x400080037fed7ffe", - "0x482480017fed8000", - "0x4", - "0x48307ff980007ffe", - "0x20680017fff7fff", - "0x4", - "0x10780017fff7fff", - "0x10", - "0x40780017fff7fff", - "0x2", - "0x40780017fff7fff", - "0x1", - "0x480680017fff8000", - "0x696e76616c69642076616c7565", - "0x400080007ffe7fff", - "0x48127ffa7fff8000", - "0x480680017fff8000", - "0x1", - "0x48127ffc7fff8000", - "0x482480017ffb8000", - "0x1", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x1", - "0x48127ff17fff8000", - "0x48127ff37fff8000", - "0x48127ff57fff8000", - "0x400080007ffc7ffd", - "0x400080017ffc7ffe", - "0x400080027ffc7fff", - "0x48127ffa7fff8000", - "0x480680017fff8000", - "0x0", - "0x48127ffa7fff8000", - "0x482480017ff98000", - "0x3", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x4", - "0x40780017fff7fff", - "0x1", - "0x480680017fff8000", - "0x7533325f616464204f766572666c6f77", - "0x400080007ffe7fff", - "0x482480017fe78000", - "0x4", - "0x480680017fff8000", - "0x1", - "0x48127ffc7fff8000", - "0x482480017ffb8000", - "0x1", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x7", - "0x40780017fff7fff", - "0x1", - "0x480680017fff8000", - "0x7533325f6d756c204f766572666c6f77", - "0x400080007ffe7fff", - "0x482480017fe78000", - "0x3", - "0x480680017fff8000", - "0x1", - "0x48127ffc7fff8000", - "0x482480017ffb8000", - "0x1", "0x208b7fff7fff7ffe", "0x40780017fff7fff", - "0xa", - "0x40780017fff7fff", - "0x1", - "0x480680017fff8000", - "0x7533325f6d756c204f766572666c6f77", - "0x400080007ffe7fff", - "0x482480017fe78000", - "0x2", - "0x480680017fff8000", - "0x1", - "0x48127ffc7fff8000", - "0x482480017ffb8000", - "0x1", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0xd", - "0x40780017fff7fff", "0x1", "0x480680017fff8000", - "0x7533325f6d756c204f766572666c6f77", + "0x4f7574206f6620676173", "0x400080007ffe7fff", - "0x482480017fe78000", - "0x1", - "0x480680017fff8000", - "0x1", - "0x48127ffc7fff8000", - "0x482480017ffb8000", - "0x1", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x10", - "0x40780017fff7fff", + "0x482680017ff88000", "0x1", - "0x480680017fff8000", - "0x4f7074696f6e3a3a756e77726170206661696c65642e", - "0x400080007ffe7fff", - "0x48127fe77fff8000", + "0x480a7ff97fff8000", "0x480680017fff8000", "0x1", - "0x48127ffc7fff8000", - "0x482480017ffb8000", + "0x48127ffb7fff8000", + "0x482480017ffa8000", "0x1", "0x208b7fff7fff7ffe", - "0xa0680017fff8000", - "0x7", - "0x482680017ff98000", - "0xfffffffffffffffffffffffffffff722", - "0x400280007ff87fff", - "0x10780017fff7fff", - "0x2f", - "0x4825800180007ff9", - "0x8de", - "0x400280007ff87fff", - "0x482680017ff88000", - "0x1", - "0x48297ffa80007ffb", - "0x20680017fff7fff", - "0x4", - "0x10780017fff7fff", - "0xa", - "0x482680017ffa8000", - "0x1", - "0x480a7ffb7fff8000", - "0x480680017fff8000", - "0x0", - "0x480a7ffa7fff8000", - "0x10780017fff7fff", - "0x8", - "0x480a7ffa7fff8000", - "0x480a7ffb7fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x20680017fff7ffe", - "0xe", - "0x480080007fff8000", - "0x400280007ffd7fff", - "0x48127ff97fff8000", - "0x48127ff77fff8000", - "0x48127ff97fff8000", - "0x48127ff97fff8000", - "0x480a7ffc7fff8000", - "0x482680017ffd8000", - "0x1", - "0x1104800180018000", - "0x800000000000010ffffffffffffffffffffffffffffffffffffffffffffffd7", - "0x208b7fff7fff7ffe", - "0x48127ffa7fff8000", - "0x48127ff87fff8000", - "0x480680017fff8000", - "0x0", - "0x480a7ffc7fff8000", - "0x480a7ffd7fff8000", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x1", - "0x480680017fff8000", - "0x4f7574206f6620676173", - "0x400080007ffe7fff", - "0x482680017ff88000", - "0x1", - "0x480a7ff97fff8000", - "0x480680017fff8000", - "0x1", - "0x48127ffb7fff8000", - "0x482480017ffa8000", - "0x1", - "0x208b7fff7fff7ffe", - "0x48297ffc80007ffd", - "0x20680017fff7fff", - "0x4", - "0x10780017fff7fff", - "0xa", - "0x482680017ffc8000", - "0x1", - "0x480a7ffd7fff8000", - "0x480680017fff8000", - "0x0", - "0x480a7ffc7fff8000", - "0x10780017fff7fff", - "0x8", - "0x480a7ffc7fff8000", - "0x480a7ffd7fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x20680017fff7ffe", - "0xad", - "0x480080007fff8000", - "0xa0680017fff8000", - "0x12", - "0x4824800180007ffe", - "0x100000000", - "0x4844800180008002", - "0x8000000000000110000000000000000", - "0x4830800080017ffe", - "0x480280007ffb7fff", - "0x482480017ffe8000", - "0xefffffffffffffde00000000ffffffff", - "0x480280017ffb7fff", - "0x400280027ffb7ffb", - "0x402480017fff7ffb", - "0xffffffffffffffffffffffffffffffff", - "0x20680017fff7fff", - "0x96", - "0x402780017fff7fff", - "0x1", - "0x400280007ffb7ffe", - "0x482480017ffe8000", - "0xffffffffffffffffffffffff00000000", - "0x400280017ffb7fff", - "0x482680017ffb8000", - "0x2", - "0x48307ff880007ff9", - "0x20680017fff7fff", - "0x4", - "0x10780017fff7fff", - "0xa", - "0x482480017ff78000", - "0x1", - "0x48127ff77fff8000", - "0x480680017fff8000", - "0x0", - "0x48127ff47fff8000", - "0x10780017fff7fff", - "0x8", - "0x48127ff77fff8000", - "0x48127ff77fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x20680017fff7ffe", - "0x6b", - "0x480080007fff8000", - "0xa0680017fff8000", - "0x12", - "0x4824800180007ffe", - "0x100000000", - "0x4844800180008002", - "0x8000000000000110000000000000000", - "0x4830800080017ffe", - "0x480080007ff57fff", - "0x482480017ffe8000", - "0xefffffffffffffde00000000ffffffff", - "0x480080017ff37fff", - "0x400080027ff27ffb", - "0x402480017fff7ffb", - "0xffffffffffffffffffffffffffffffff", - "0x20680017fff7fff", - "0x54", - "0x402780017fff7fff", - "0x1", - "0x400080007ff87ffe", - "0x482480017ffe8000", - "0xffffffffffffffffffffffff00000000", - "0x400080017ff77fff", - "0x482480017ff78000", - "0x2", - "0x48307ff880007ff9", - "0x20680017fff7fff", - "0x4", - "0x10780017fff7fff", - "0xa", - "0x482480017ff78000", - "0x1", - "0x48127ff77fff8000", - "0x480680017fff8000", - "0x0", - "0x48127ff47fff8000", - "0x10780017fff7fff", - "0x8", - "0x48127ff77fff8000", - "0x48127ff77fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x20680017fff7ffe", - "0x29", - "0x480080007fff8000", - "0xa0680017fff8000", - "0x12", - "0x4824800180007ffe", - "0x100000000", - "0x4844800180008002", - "0x8000000000000110000000000000000", - "0x4830800080017ffe", - "0x480080007ff57fff", - "0x482480017ffe8000", - "0xefffffffffffffde00000000ffffffff", - "0x480080017ff37fff", - "0x400080027ff27ffb", - "0x402480017fff7ffb", - "0xffffffffffffffffffffffffffffffff", - "0x20680017fff7fff", - "0x14", - "0x402780017fff7fff", - "0x1", - "0x400080007ff87ffe", - "0x482480017ffe8000", - "0xffffffffffffffffffffffff00000000", - "0x400080017ff77fff", - "0x40780017fff7fff", - "0x5", - "0x482480017ff28000", - "0x2", - "0x48127ff37fff8000", - "0x48127ff37fff8000", - "0x480680017fff8000", - "0x0", - "0x48127fe27fff8000", - "0x48127fea7fff8000", - "0x48127ff27fff8000", - "0x208b7fff7fff7ffe", - "0x482480017ff28000", - "0x3", - "0x10780017fff7fff", - "0x5", - "0x40780017fff7fff", - "0x8", - "0x48127ff27fff8000", - "0x48127ff37fff8000", - "0x48127ff37fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x9", - "0x482480017fe98000", - "0x3", - "0x10780017fff7fff", - "0x5", - "0x40780017fff7fff", - "0x11", - "0x48127fe97fff8000", - "0x48127fea7fff8000", - "0x48127fea7fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x208b7fff7fff7ffe", - "0x40780017fff7fff", - "0x12", - "0x482680017ffb8000", - "0x3", - "0x10780017fff7fff", - "0x5", - "0x40780017fff7fff", - "0x1a", - "0x480a7ffb7fff8000", - "0x48127fe17fff8000", - "0x48127fe17fff8000", - "0x480680017fff8000", - "0x1", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x480680017fff8000", - "0x0", - "0x208b7fff7fff7ffe", "0x208b7fff7fff7ffe" ], - "bytecode_segment_lengths": [ - 202, - 92, - 162, - 66, - 207 - ], - "hints": [ - [ - 0, - [ - { - "TestLessThanOrEqual": { - "lhs": { - "Immediate": "0x0" - }, - "rhs": { - "Deref": { - "register": "FP", - "offset": -6 - } - }, - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 33, - [ - { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 80, - [ - { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 99, - [ - { - "TestLessThanOrEqual": { - "lhs": { - "Immediate": "0x254e" - }, - "rhs": { - "Deref": { - "register": "AP", - "offset": -11 - } - }, - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 119, - [ - { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 158, - [ - { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 173, - [ - { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 187, - [ - { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 202, - [ - { - "TestLessThanOrEqual": { - "lhs": { - "Immediate": "0x942" - }, - "rhs": { - "Deref": { - "register": "FP", - "offset": -8 - } - }, - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 274, - [ - { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], + "bytecode_segment_lengths": [ + 222, + 67 + ], + "hints": [ [ - 302, + 2, [ { - "TestLessThan": { + "TestLessThanOrEqual": { "lhs": { - "Deref": { - "register": "AP", - "offset": -1 - } + "Immediate": "0x0" }, "rhs": { - "Immediate": "0x100000000" + "Deref": { + "register": "FP", + "offset": -6 + } }, "dst": { "register": "AP", @@ -921,7 +321,7 @@ ] ], [ - 313, + 35, [ { "TestLessThan": { @@ -932,75 +332,67 @@ } }, "rhs": { - "Immediate": "0x100000000" + "Immediate": "0x800000000000000000000000000000000000000000000000000000000000000" }, "dst": { "register": "AP", - "offset": 0 + "offset": 4 } } } ] ], [ - 324, + 39, [ { - "TestLessThan": { - "lhs": { + "LinearSplit": { + "value": { "Deref": { "register": "AP", - "offset": -1 + "offset": 3 } }, - "rhs": { - "Immediate": "0x100000000" + "scalar": { + "Immediate": "0x110000000000000000" }, - "dst": { + "max_x": { + "Immediate": "0xffffffffffffffffffffffffffffffff" + }, + "x": { "register": "AP", - "offset": 0 + "offset": -2 + }, + "y": { + "register": "AP", + "offset": -1 } } } ] ], [ - 334, + 49, [ { - "TestLessThan": { - "lhs": { - "BinOp": { - "op": "Add", - "a": { - "register": "AP", - "offset": -9 - }, - "b": { - "Deref": { - "register": "AP", - "offset": -6 - } - } + "LinearSplit": { + "value": { + "Deref": { + "register": "AP", + "offset": -2 } }, - "rhs": { - "Immediate": "0x100000000" + "scalar": { + "Immediate": "0x8000000000000000000000000000000" }, - "dst": { + "max_x": { + "Immediate": "0xffffffffffffffffffffffffffffffff" + }, + "x": { "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 355, - [ - { - "AllocSegment": { - "dst": { + "offset": -1 + }, + "y": { "register": "AP", "offset": 0 } @@ -1009,7 +401,7 @@ ] ], [ - 367, + 64, [ { "AllocSegment": { @@ -1022,10 +414,19 @@ ] ], [ - 384, + 83, [ { - "AllocSegment": { + "TestLessThanOrEqual": { + "lhs": { + "Immediate": "0x233c" + }, + "rhs": { + "Deref": { + "register": "AP", + "offset": -18 + } + }, "dst": { "register": "AP", "offset": 0 @@ -1035,7 +436,7 @@ ] ], [ - 399, + 95, [ { "AllocSegment": { @@ -1048,20 +449,22 @@ ] ], [ - 414, + 124, [ { - "AllocSegment": { - "dst": { - "register": "AP", - "offset": 0 + "SystemCall": { + "system": { + "Deref": { + "register": "FP", + "offset": -5 + } } } } ] ], [ - 429, + 127, [ { "AllocSegment": { @@ -1074,7 +477,7 @@ ] ], [ - 444, + 171, [ { "AllocSegment": { @@ -1087,19 +490,10 @@ ] ], [ - 456, + 193, [ { - "TestLessThanOrEqual": { - "lhs": { - "Immediate": "0x8de" - }, - "rhs": { - "Deref": { - "register": "FP", - "offset": -7 - } - }, + "AllocSegment": { "dst": { "register": "AP", "offset": 0 @@ -1109,7 +503,7 @@ ] ], [ - 508, + 207, [ { "AllocSegment": { @@ -1122,82 +516,19 @@ ] ], [ - 544, + 222, [ { - "TestLessThan": { + "TestLessThanOrEqual": { "lhs": { - "BinOp": { - "op": "Add", - "a": { - "register": "AP", - "offset": -1 - }, - "b": { - "Immediate": "0x0" - } - } + "Immediate": "0x8de" }, "rhs": { - "Immediate": "0x100000000" - }, - "dst": { - "register": "AP", - "offset": 0 - } - } - } - ] - ], - [ - 548, - [ - { - "LinearSplit": { - "value": { "Deref": { - "register": "AP", - "offset": -1 - } - }, - "scalar": { - "Immediate": "0x8000000000000110000000000000000" - }, - "max_x": { - "Immediate": "0xfffffffffffffffffffffffffffffffe" - }, - "x": { - "register": "AP", - "offset": 0 - }, - "y": { - "register": "AP", - "offset": 1 - } - } - } - ] - ], - [ - 590, - [ - { - "TestLessThan": { - "lhs": { - "BinOp": { - "op": "Add", - "a": { - "register": "AP", - "offset": -1 - }, - "b": { - "Immediate": "0x0" - } + "register": "FP", + "offset": -7 } }, - "rhs": { - "Immediate": "0x100000000" - }, "dst": { "register": "AP", "offset": 0 @@ -1207,54 +538,10 @@ ] ], [ - 594, - [ - { - "LinearSplit": { - "value": { - "Deref": { - "register": "AP", - "offset": -1 - } - }, - "scalar": { - "Immediate": "0x8000000000000110000000000000000" - }, - "max_x": { - "Immediate": "0xfffffffffffffffffffffffffffffffe" - }, - "x": { - "register": "AP", - "offset": 0 - }, - "y": { - "register": "AP", - "offset": 1 - } - } - } - ] - ], - [ - 636, + 274, [ { - "TestLessThan": { - "lhs": { - "BinOp": { - "op": "Add", - "a": { - "register": "AP", - "offset": -1 - }, - "b": { - "Immediate": "0x0" - } - } - }, - "rhs": { - "Immediate": "0x100000000" - }, + "AllocSegment": { "dst": { "register": "AP", "offset": 0 @@ -1262,211 +549,92 @@ } } ] - ], - [ - 640, - [ - { - "LinearSplit": { - "value": { - "Deref": { - "register": "AP", - "offset": -1 - } - }, - "scalar": { - "Immediate": "0x8000000000000110000000000000000" - }, - "max_x": { - "Immediate": "0xfffffffffffffffffffffffffffffffe" - }, - "x": { - "register": "AP", - "offset": 0 - }, - "y": { - "register": "AP", - "offset": 1 - } - } - } - ] ] ], "pythonic_hints": [ [ - 0, + 2, [ "memory[ap + 0] = 0 <= memory[fp + -6]" ] ], [ - 33, - [ - "memory[ap + 0] = segments.add()" - ] - ], - [ - 80, - [ - "memory[ap + 0] = segments.add()" - ] - ], - [ - 99, - [ - "memory[ap + 0] = 9550 <= memory[ap + -11]" - ] - ], - [ - 119, - [ - "memory[ap + 0] = segments.add()" - ] - ], - [ - 158, - [ - "memory[ap + 0] = segments.add()" - ] - ], - [ - 173, + 35, [ - "memory[ap + 0] = segments.add()" + "memory[ap + 4] = memory[ap + -1] < 3618502788666131106986593281521497120414687020801267626233049500247285301248" ] ], [ - 187, + 39, [ - "memory[ap + 0] = segments.add()" + "\n(value, scalar) = (memory[ap + 3], 313594649253062377472)\nx = min(value // scalar, 340282366920938463463374607431768211455)\ny = value - x * scalar\nmemory[ap + -2] = x\nmemory[ap + -1] = y\n" ] ], [ - 202, + 49, [ - "memory[ap + 0] = 2370 <= memory[fp + -8]" + "\n(value, scalar) = (memory[ap + -2], 10633823966279326983230456482242756608)\nx = min(value // scalar, 340282366920938463463374607431768211455)\ny = value - x * scalar\nmemory[ap + -1] = x\nmemory[ap + 0] = y\n" ] ], [ - 274, + 64, [ "memory[ap + 0] = segments.add()" ] ], [ - 302, - [ - "memory[ap + 0] = memory[ap + -1] < 4294967296" - ] - ], - [ - 313, - [ - "memory[ap + 0] = memory[ap + -1] < 4294967296" - ] - ], - [ - 324, - [ - "memory[ap + 0] = memory[ap + -1] < 4294967296" - ] - ], - [ - 334, - [ - "memory[ap + 0] = (memory[ap + -9] + memory[ap + -6]) % PRIME < 4294967296" - ] - ], - [ - 355, + 83, [ - "memory[ap + 0] = segments.add()" + "memory[ap + 0] = 9020 <= memory[ap + -18]" ] ], [ - 367, + 95, [ "memory[ap + 0] = segments.add()" ] ], [ - 384, + 124, [ - "memory[ap + 0] = segments.add()" + "syscall_handler.syscall(syscall_ptr=memory[fp + -5])" ] ], [ - 399, + 127, [ "memory[ap + 0] = segments.add()" ] ], [ - 414, + 171, [ "memory[ap + 0] = segments.add()" ] ], [ - 429, + 193, [ "memory[ap + 0] = segments.add()" ] ], [ - 444, + 207, [ "memory[ap + 0] = segments.add()" ] ], [ - 456, + 222, [ "memory[ap + 0] = 2270 <= memory[fp + -7]" ] ], [ - 508, + 274, [ "memory[ap + 0] = segments.add()" ] - ], - [ - 544, - [ - "memory[ap + 0] = (memory[ap + -1] + 0) % PRIME < 4294967296" - ] - ], - [ - 548, - [ - "\n(value, scalar) = (memory[ap + -1], 10633823966279327296825105735305134080)\nx = min(value // scalar, 340282366920938463463374607431768211454)\ny = value - x * scalar\nmemory[ap + 0] = x\nmemory[ap + 1] = y\n" - ] - ], - [ - 590, - [ - "memory[ap + 0] = (memory[ap + -1] + 0) % PRIME < 4294967296" - ] - ], - [ - 594, - [ - "\n(value, scalar) = (memory[ap + -1], 10633823966279327296825105735305134080)\nx = min(value // scalar, 340282366920938463463374607431768211454)\ny = value - x * scalar\nmemory[ap + 0] = x\nmemory[ap + 1] = y\n" - ] - ], - [ - 636, - [ - "memory[ap + 0] = (memory[ap + -1] + 0) % PRIME < 4294967296" - ] - ], - [ - 640, - [ - "\n(value, scalar) = (memory[ap + -1], 10633823966279327296825105735305134080)\nx = min(value // scalar, 340282366920938463463374607431768211454)\ny = value - x * scalar\nmemory[ap + 0] = x\nmemory[ap + 1] = y\n" - ] ] ], "entry_points_by_type": { diff --git a/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo b/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo index 8628324..0a4cbad 100644 --- a/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo +++ b/cairo0-bootloader/bootloader/contract/execute_entry_point.cairo @@ -7,12 +7,12 @@ from starkware.cairo.common.dict_access import DictAccess from starkware.cairo.common.find_element import find_element, search_sorted from starkware.cairo.common.math import assert_not_zero from starkware.cairo.common.registers import get_ap +from bootloader.contract.execute_syscalls import execute_syscalls from starkware.starknet.builtins.segment_arena.segment_arena import ( SegmentArenaBuiltin, validate_segment_arena, ) from starkware.starknet.common.syscalls import TxInfo as DeprecatedTxInfo -from starkware.starknet.core.os.block_context import BlockContext from starkware.starknet.core.os.builtins import ( BuiltinEncodings, BuiltinParams, @@ -31,19 +31,7 @@ from starkware.starknet.core.os.constants import ( ) from contract_class.compiled_class import CompiledClass, CompiledClassEntryPoint, CompiledClassFact from starkware.starknet.core.os.output import OsCarriedOutputs - -struct ExecutionInfo { - selector: felt, -} - -// Represents the execution context during the execution of contract code. -struct ExecutionContext { - entry_point_type: felt, - calldata_size: felt, - calldata: felt*, - // Additional information about the execution. - execution_info: ExecutionInfo*, -} +from bootloader.contract.execute_syscalls import ExecutionContext // Represents the arguments pushed to the stack before calling an entry point. struct EntryPointCallArguments { @@ -65,15 +53,11 @@ 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*, - contract_state_changes: DictAccess*, - contract_class_changes: DictAccess*, - outputs: OsCarriedOutputs*, -}(block_context: BlockContext*, execution_context: ExecutionContext*, syscall_ptr_end: felt*) { - %{ print("call_execute_syscalls") %} +func call_execute_syscalls{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*}( + execution_context: ExecutionContext*, syscall_ptr_end: felt* +) { + execute_syscalls(execution_context, syscall_ptr_end); + return (); } // Returns the CompiledClassEntryPoint, based on 'compiled_class' and 'execution_context'. @@ -128,7 +112,6 @@ func get_entry_point{range_check_ptr}( // and execution_context.execution_info.selector. // // Arguments: -// block_context - a global context that is fixed throughout the block. // execution_context - The context for the current execution. func execute_entry_point{ range_check_ptr, builtin_ptrs: BuiltinPointers*, builtin_params: BuiltinParams* @@ -181,7 +164,7 @@ func execute_entry_point{ // Use tempvar to pass the rest of the arguments to contract_entry_point(). let current_ap = ap; tempvar args = EntryPointCallArguments( - gas_builtin=1000000, + gas_builtin=1000000000000, syscall_ptr=syscall_ptr, calldata_start=calldata_start, calldata_end=calldata_end, @@ -232,17 +215,16 @@ func execute_entry_point{ validate_segment_arena(segment_arena=current_segment_arena); let builtin_ptrs = return_builtin_ptrs; - // with syscall_ptr { - // call_execute_syscalls( - // block_context=block_context, - // execution_context=execution_context, - // syscall_ptr_end=entry_point_return_values.syscall_ptr, - // ); - // } + with syscall_ptr { + call_execute_syscalls( + execution_context=execution_context, + syscall_ptr_end=entry_point_return_values.syscall_ptr, + ); + } %{ print(ids.entry_point_return_values.failure_flag) - for i in range(0, 4): + for i in range(0, 5): print(memory[ids.retdata_start + i]) %} diff --git a/cairo0-bootloader/bootloader/contract/execute_syscalls.cairo b/cairo0-bootloader/bootloader/contract/execute_syscalls.cairo new file mode 100644 index 0000000..f9c061e --- /dev/null +++ b/cairo0-bootloader/bootloader/contract/execute_syscalls.cairo @@ -0,0 +1,135 @@ +from starkware.cairo.common.bool import FALSE +from starkware.cairo.common.cairo_builtins import BitwiseBuiltin +from starkware.cairo.common.cairo_secp.bigint import ( + bigint_to_uint256, + nondet_bigint3, + uint256_to_bigint, +) +from starkware.cairo.common.dict import dict_read, dict_update +from starkware.cairo.common.dict_access import DictAccess +from starkware.cairo.common.math import ( + assert_le, + assert_lt, + assert_nn, + assert_not_zero, + unsigned_div_rem, +) +from starkware.cairo.common.memcpy import memcpy +from starkware.cairo.common.segments import relocate_segment +from starkware.cairo.common.uint256 import Uint256, assert_uint256_lt, uint256_lt +from starkware.starknet.common.new_syscalls import ( + CALL_CONTRACT_SELECTOR, + CallContractRequest, + CallContractResponse, + RequestHeader, + ResponseHeader, + FailureReason, +) +from starkware.starknet.core.os.builtins import ( + BuiltinPointers, + NonSelectableBuiltins, + SelectableBuiltins, +) +from starkware.starknet.core.os.execution.deprecated_execute_syscalls import deploy_contract +from starkware.starknet.core.os.output import ( + MessageToL1Header, + OsCarriedOutputs, + os_carried_outputs_new, +) +from starkware.starknet.core.os.state.commitment import StateEntry + +struct ExecutionInfo { + selector: felt, +} + +// Represents the execution context during the execution of contract code. +struct ExecutionContext { + entry_point_type: felt, + calldata_size: felt, + calldata: felt*, + // Additional information about the execution. + execution_info: ExecutionInfo*, +} + +// Executes the system calls in syscall_ptr. +// The signature of the function 'call_execute_syscalls' must match this function's signature. +// +// 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*}( + execution_context: ExecutionContext*, syscall_ptr_end: felt* +) { + if (syscall_ptr == syscall_ptr_end) { + return (); + } + + tempvar selector = [syscall_ptr]; + + assert selector = CALL_CONTRACT_SELECTOR; + + execute_call_contract(caller_execution_context=execution_context); + return execute_syscalls(execution_context=execution_context, syscall_ptr_end=syscall_ptr_end); +} + +// Executes a syscall that calls another contract. +func execute_call_contract{range_check_ptr, syscall_ptr: felt*, builtin_ptrs: BuiltinPointers*}( + caller_execution_context: ExecutionContext* +) { + let request_header = cast(syscall_ptr, RequestHeader*); + let syscall_ptr = syscall_ptr + RequestHeader.SIZE; + + 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; + + 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 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; + + return (); +} + +// Returns a failure response with a single felt. +@known_ap_change +func write_failure_response{syscall_ptr: felt*}(remaining_gas: felt, failure_felt: felt) { + let response_header = cast(syscall_ptr, ResponseHeader*); + // Advance syscall pointer to the response body. + let syscall_ptr = syscall_ptr + ResponseHeader.SIZE; + + // Write the response header. + assert [response_header] = ResponseHeader(gas=remaining_gas, failure_flag=1); + + let failure_reason: FailureReason* = cast(syscall_ptr, FailureReason*); + // Advance syscall pointer to the next syscall. + let syscall_ptr = syscall_ptr + FailureReason.SIZE; + + // Write the failure reason. + tempvar start = failure_reason.start; + assert start[0] = failure_felt; + assert failure_reason.end = start + 1; + return (); +} diff --git a/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo b/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo index f5453f5..171eb12 100644 --- a/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo +++ b/cairo0-bootloader/bootloader/contract/run_contract_bootloader.cairo @@ -18,11 +18,8 @@ from starkware.starknet.core.os.builtins import ( SelectableBuiltins, update_builtin_ptrs, ) -from bootloader.contract.execute_entry_point import ( - execute_entry_point, - ExecutionContext, - ExecutionInfo, -) +from bootloader.contract.execute_entry_point import execute_entry_point +from bootloader.contract.execute_syscalls import ExecutionContext, ExecutionInfo from starkware.starknet.core.os.constants import ENTRY_POINT_TYPE_EXTERNAL // Loads the programs and executes them. @@ -93,17 +90,16 @@ func run_contract_bootloader{ local calldata: felt*; %{ ids.calldata = segments.add() %} - - assert calldata[0] = 0x3; - assert calldata[1] = 0x3; - assert calldata[2] = 0x4; - assert calldata[3] = 0x5; - local execution_info: ExecutionInfo = ExecutionInfo(selector=0x00e2054f8a912367e38a22ce773328ff8aabf8082c4120bad9ef085e1dbf29a7); + assert calldata[0] = 0x0; + + local execution_info: ExecutionInfo = ExecutionInfo( + selector=0x00e2054f8a912367e38a22ce773328ff8aabf8082c4120bad9ef085e1dbf29a7 + ); local execution_context: ExecutionContext = ExecutionContext( entry_point_type=ENTRY_POINT_TYPE_EXTERNAL, - calldata_size=4, + calldata_size=1, calldata=calldata, execution_info=&execution_info, ); diff --git a/cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json b/cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json new file mode 100644 index 0000000..9a45964 --- /dev/null +++ b/cairo0-bootloader/bootloader/contract/starknet_new_syscalls.json @@ -0,0 +1,1358 @@ +{ + "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 new file mode 100644 index 0000000..b0db6ab --- /dev/null +++ b/cairo0-bootloader/bootloader/contract/starknet_syscalls.json @@ -0,0 +1,7132 @@ +{ + "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 3867364..d48eec1 100644 --- a/cairo0-bootloader/bootloader/contract/syscall_handler.py +++ b/cairo0-bootloader/bootloader/contract/syscall_handler.py @@ -1,11 +1,14 @@ -from typing import Iterable -from starkware.starknet.core.os.syscall_handler import ( - SyscallHandlerBase, - OsExecutionHelper, +from typing import ( + Dict, + Iterable, ) from starkware.cairo.lang.vm.relocatable import RelocatableValue, MaybeRelocatable 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.starknet.business_logic.execution.objects import ( + CallResult, +) class SyscallHandler(SyscallHandlerBase): """ @@ -16,7 +19,10 @@ def __init__( self, segments: MemorySegmentManager, ): + print("init") super().__init__(segments=segments, initial_syscall_ptr=None) + self.syscall_counter: Dict[str, int] = {} + print("initialized") def set_syscall_ptr(self, syscall_ptr: RelocatableValue): assert self._syscall_ptr is None, "syscall_ptr is already set." @@ -27,54 +33,18 @@ def allocate_segment(self, data: Iterable[MaybeRelocatable]) -> RelocatableValue self.segments.write_arg(ptr=segment_start, arg=data) return segment_start - def _allocate_segment_for_retdata(self): - # Implementation here - pass - - def _call_contract_helper(self): - # Implementation here - pass - - def _count_syscall(self): - # Implementation here - pass - - def _deploy(self): - # Implementation here - pass - - def _emit_event(self): - # Implementation here - pass - - def _get_block_hash(self): - # Implementation here - pass - - def _get_execution_info_ptr(self): - # Implementation here - pass - - def _keccak(self): - # Implementation here - pass - - def _replace_class(self): - # Implementation here - pass - - def _send_message_to_l1(self): - # Implementation here - pass - - def _storage_read(self): - # Implementation here - pass - - def _storage_write(self): - # Implementation here - pass - - def current_block_number(self): - # Implementation here - pass + def _allocate_segment_for_retdata(self, retdata: Iterable[int]) -> RelocatableValue: + return self.allocate_segment(data=retdata) + + def _call_contract_helper( + self, request: CairoStructProxy, syscall_name: str + ) -> CallResult: + calldata = self._get_felt_range( + start_addr=request.calldata_start, end_addr=request.calldata_end + ) + print("calldata", calldata) + return CallResult( + gas_consumed=0, + failure_flag=0, + retdata=calldata, + ) \ No newline at end of file diff --git a/cairo0-bootloader/bootloader/contract/syscall_handler_base.py b/cairo0-bootloader/bootloader/contract/syscall_handler_base.py new file mode 100644 index 0000000..a522b50 --- /dev/null +++ b/cairo0-bootloader/bootloader/contract/syscall_handler_base.py @@ -0,0 +1,198 @@ +from typing import ( + Any, List, + Dict, + Iterable, + Optional, + Tuple, +) +import cachetools +from starkware.starknet.core.os.syscall_handler import ( + SyscallInfo, +) +SyscallFullResponse = Tuple[tuple, tuple] # Response header + specific syscall response. +import functools +from starkware.cairo.common.structs import CairoStructProxy +from abc import ABC, abstractmethod +from starkware.cairo.lang.vm.relocatable import RelocatableValue, MaybeRelocatable +from starkware.cairo.lang.vm.memory_segments import MemorySegmentManager +from starkware.starknet.definitions.error_codes import CairoErrorCode +from starkware.starknet.core.os.syscall_utils import ( + STARKNET_SYSCALLS_COMPILED_PATH, + cast_to_int, + get_selector_from_program, + get_syscall_structs, + load_program, + validate_runtime_request_type, +) +from starkware.starknet.core.os.syscall_utils import ( + STARKNET_SYSCALLS_COMPILED_PATH, + cast_to_int, + get_selector_from_program, + get_syscall_structs, + load_program, + validate_runtime_request_type, +) +from starkware.starknet.business_logic.execution.objects import ( + CallResult, +) + +class SyscallHandlerBase(ABC): + def __init__( + self, + segments: MemorySegmentManager, + initial_syscall_ptr: Optional[RelocatableValue], + ): + # Static syscall information. + self.structs = get_syscall_structs() + self.selector_to_syscall_info = self.get_selector_to_syscall_info() + + # Memory segments of the running program. + self.segments = segments + # Current syscall pointer; updated internally during the call execution. + self._syscall_ptr = initial_syscall_ptr + + @classmethod + @cachetools.cached(cache={}) + def get_selector_to_syscall_info(cls) -> Dict[int, SyscallInfo]: + structs = get_syscall_structs() + syscalls_program = load_program(path=STARKNET_SYSCALLS_COMPILED_PATH) + get_selector = functools.partial( + get_selector_from_program, syscalls_program=syscalls_program + ) + return { + get_selector("call_contract"): SyscallInfo( + name="call_contract", + execute_callback=cls.call_contract, + request_struct=structs.CallContractRequest, + ), + } + + @property + def syscall_ptr(self) -> RelocatableValue: + assert ( + self._syscall_ptr is not None + ), "syscall_ptr must be set before using the SyscallHandler." + return self._syscall_ptr + + def syscall(self, syscall_ptr: RelocatableValue): + """ + Executes the selected system call. + """ + self._validate_syscall_ptr(actual_syscall_ptr=syscall_ptr) + request_header = self._read_and_validate_request(request_struct=self.structs.RequestHeader) + + # Validate syscall selector and request. + selector = cast_to_int(request_header.selector) + syscall_info = self.selector_to_syscall_info.get(selector) + assert ( + syscall_info is not None + ), f"Unsupported syscall selector {bytes.fromhex(hex(selector)[2:])!r}" + print("syscall_info", syscall_info.name) + request = self._read_and_validate_request(request_struct=syscall_info.request_struct) + response_header, response = syscall_info.execute_callback(self, request) + + print("response_header", response_header) + print("response", response) + + # Write response to the syscall segment. + self._write_response(response=response_header) + self._write_response(response=response) + + # Syscalls. + + def call_contract(self, request: CairoStructProxy) -> SyscallFullResponse: + return self.call_contract_helper( + request=request, syscall_name="call_contract" + ) + + def call_contract_helper( + self, request: CairoStructProxy, syscall_name: str + ) -> SyscallFullResponse: + result = self._call_contract_helper(request=request, syscall_name=syscall_name + ) + + response_header = self.structs.ResponseHeader( + gas=1000000000000, failure_flag=result.failure_flag + ) + retdata_start = self._allocate_segment_for_retdata(retdata=result.retdata) + retdata_end = retdata_start + len(result.retdata) + if response_header.failure_flag == 0: + response = self.structs.CallContractResponse( + retdata_start=retdata_start, retdata_end=retdata_end + ) + else: + response = self.structs.FailureReason(start=retdata_start, end=retdata_end) + + return response_header, response + + # Application-specific syscall implementation. + + @abstractmethod + def _call_contract_helper( + self, request: CairoStructProxy, syscall_name: str + ) -> CallResult: + """ + Returns the call's result. + + syscall_name can be "call_contract" or "library_call". + """ + + # Internal utilities. + + def _get_felt_range(self, start_addr: Any, end_addr: Any) -> List[int]: + assert isinstance(start_addr, RelocatableValue) + assert isinstance(end_addr, RelocatableValue) + assert start_addr.segment_index == end_addr.segment_index, ( + "Inconsistent start and end segment indices " + f"({start_addr.segment_index} != {end_addr.segment_index})." + ) + + assert start_addr.offset <= end_addr.offset, ( + "The start offset cannot be greater than the end offset" + f"({start_addr.offset} > {end_addr.offset})." + ) + + size = end_addr.offset - start_addr.offset + return self.segments.memory.get_range_as_ints(addr=start_addr, size=size) + + def _handle_failure(self, final_gas: int, error_code: CairoErrorCode) -> SyscallFullResponse: + response_header = self.structs.ResponseHeader(gas=final_gas, failure_flag=1) + data = [error_code.to_felt()] + start = self.allocate_segment(data=data) + failure_reason = self.structs.FailureReason(start=start, end=start + len(data)) + + return response_header, failure_reason + + @abstractmethod + def allocate_segment(self, data: Iterable[MaybeRelocatable]) -> RelocatableValue: + """ + Allocates and returns a new (read-only) segment with the given data. + Note that unlike MemorySegmentManager.write_arg, this function doesn't work well with + recursive input - call allocate_segment for the inner items if needed. + """ + + @abstractmethod + def _allocate_segment_for_retdata(self, retdata: Iterable[int]) -> RelocatableValue: + """ + Allocates and returns a new (read-only) segment with the given retdata. + """ + + def _validate_syscall_ptr(self, actual_syscall_ptr: RelocatableValue): + assert ( + actual_syscall_ptr == self.syscall_ptr + ), f"Bad syscall_ptr, Expected {self.syscall_ptr}, got {actual_syscall_ptr}." + + def _read_and_validate_request(self, request_struct: CairoStructProxy) -> CairoStructProxy: + request = self._read_request(request_struct=request_struct) + validate_runtime_request_type(request_values=request, request_struct=request_struct) + return request + + def _read_request(self, request_struct: CairoStructProxy) -> CairoStructProxy: + request = request_struct.from_ptr(memory=self.segments.memory, addr=self.syscall_ptr) + # Advance syscall pointer. + self._syscall_ptr = self.syscall_ptr + request_struct.size + return request + + def _write_response(self, response: tuple): + # Write response and update syscall pointer. + self._syscall_ptr = self.segments.write_arg(ptr=self.syscall_ptr, arg=response) diff --git a/cairo0-bootloader/setup.py b/cairo0-bootloader/setup.py index 52dc298..6905b1f 100644 --- a/cairo0-bootloader/setup.py +++ b/cairo0-bootloader/setup.py @@ -13,7 +13,7 @@ "bootloader.recursive": ["*.cairo", "*/*.cairo"], "bootloader.starknet_with_keccak": ["*.cairo", "*/*.cairo"], "bootloader.starknet": ["*.cairo", "*/*.cairo"], - "bootloader.contract": ["*.cairo", "*/*.cairo"], + "bootloader.contract": ["*.cairo", "*/*.cairo", "*.json"], "bootloader": ["*.cairo", "*/*.cairo"], "builtin_selection": ["*.cairo", "*/*.cairo"], "common.builtin_poseidon": ["*.cairo", "*/*.cairo"], From e2fe775ef19d95fef33242c47a509db08f065d18 Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Wed, 5 Jun 2024 14:22:42 +0200 Subject: [PATCH 2/3] cleanup --- README.md | 54 ++++++++++++++---------------------------- contract/src/lib.cairo | 48 ++++++++++--------------------------- 2 files changed, 30 insertions(+), 72 deletions(-) diff --git a/README.md b/README.md index ef8aed7..c7ca653 100644 --- a/README.md +++ b/README.md @@ -16,50 +16,32 @@ To set up the project environment and run the bootloader, follow these steps: 4. **Running the Bootloader**: Start the bootloader with `python run.py`, which will load and execute the compiled Cairo1 contract within the Cairo0 environment. +5. **Preparing bootloader_input.json (Optional)**: + - Run `Scarb build` in the contract folder. + - Use `starknet-sierra-compile INPUT OUTPUT --add-pythonic-hints`. + - Add a return footer at the end of the contract's bytecode (increase the bytecode segment size by one). + - Supply `bootloader_input.json` with new contract sierra class json. + --- This example showcases merge of Cairo0 host provable environment and a Cairo1 developer frendly language: ```cairo -#[starknet::interface] -pub trait IHelloBootloader { - fn main(ref self: TContractState, input: Array) -> Array; -} - #[starknet::contract] -mod HelloBootloader { - #[derive(Drop, Serde)] - struct Input { - a: u32, - b: u32, - c: u32, - } - - #[derive(Drop, Serde)] - struct Output { - a_2: u32, - b_2: u32, - c_2: u32, - } +mod Factorial { + use starknet::{ContractAddress, SyscallResult, SyscallResultTraitImpl}; + use starknet::syscalls::call_contract_syscall; #[storage] - struct Storage {} - - #[abi(embed_v0)] - impl HelloBootloaderImpl of super::IHelloBootloader { - fn main(ref self: ContractState, input: Array) -> Array { - let mut input_span = input.span(); - let input = Serde::::deserialize(ref input_span).unwrap(); - - let a_2 = input.a * input.a; - let b_2 = input.b * input.b; - let c_2 = input.c * input.c; - assert(a_2 + b_2 == c_2, 'invalid value'); - - let mut output = array![]; - Output { a_2, b_2, c_2, }.serialize(ref output); - output - } + struct Storage{} + + #[external(v0)] + fn main(ref self: ContractState, address: ContractAddress) -> Span { + // call_contract_syscall is modified POC syscall to just return calldata it received + let value: Span = call_contract_syscall( + address, 0x1, array![0xa, 0xb, 0xc, 0xe].span(), + ).unwrap_syscall(); + value } } ``` diff --git a/contract/src/lib.cairo b/contract/src/lib.cairo index 853ec8a..c997544 100644 --- a/contract/src/lib.cairo +++ b/contract/src/lib.cairo @@ -1,41 +1,17 @@ -#[starknet::interface] -pub trait IHelloBootloader { - fn main(ref self: TContractState, input: Array) -> Array; -} - #[starknet::contract] -mod HelloBootloader { - #[derive(Drop, Serde)] - struct Input { - a: u32, - b: u32, - c: u32, - } - - #[derive(Drop, Serde)] - struct Output { - a_2: u32, - b_2: u32, - c_2: u32, - } +mod Factorial { + use starknet::{ContractAddress, SyscallResult, SyscallResultTrait}; + use starknet::syscalls::call_contract_syscall; #[storage] - struct Storage {} - - #[abi(embed_v0)] - impl HelloBootloaderImpl of super::IHelloBootloader { - fn main(ref self: ContractState, input: Array) -> Array { - let mut input_span = input.span(); - let input = Serde::::deserialize(ref input_span).unwrap(); - - let a_2 = input.a * input.a; - let b_2 = input.b * input.b; - let c_2 = input.c * input.c; - assert(a_2 + b_2 == c_2, 'invalid value'); + struct Storage{} - let mut output = array![]; - Output { a_2, b_2, c_2, }.serialize(ref output); - output - } + #[external(v0)] + fn main(ref self: ContractState, address: ContractAddress) -> Span { + // call_contract_syscall is modified POC syscall to just return calldata it received + let value: Span = call_contract_syscall( + address, 0x1, array![0xa, 0xb, 0xc, 0xe].span(), + ).unwrap_syscall(); + value } -} +} \ No newline at end of file From a54aeead2e2a647f6e4d2820f9e43c2e2881aa1d Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Sun, 14 Jul 2024 13:47:41 +0200 Subject: [PATCH 3/3] 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