cryptonerdcn / wasm-cairo

A suite of development tools and a WASM-Runtime environment for Cairo. All based on WebAssembly. By Caironautes, for Caironautes.
https://wasm-cairo-landing.vercel.app/
Apache License 2.0
53 stars 13 forks source link

When compiling the Starknet contract, expect to return the compilation result of casm #26

Open YanYuanFE opened 3 months ago

YanYuanFE commented 3 months ago
{
    "prime": "0x800000000000011000000000000000000000000000000000000000000000001",
    "compiler_version": "2.6.3",
    "bytecode": [
        "0xa0680017fff8000",
        "0x7",
        "0x482680017ffa8000",
        "0x100000000000000000000000000000000",
        "0x400280007ff97fff",
        "0x10780017fff7fff",
        "0x49",
        "0x4825800180007ffa",
        "0x0",
        "0x400280007ff97fff",
        "0x482680017ff98000",
        "0x1",
        "0x48297ffc80007ffd",
        "0x20680017fff7fff",
        "0x4",
        "0x10780017fff7fff",
        "0x10",
        "0x40780017fff7fff",
        "0x1",
        "0x480680017fff8000",
        "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473",
        "0x400080007ffe7fff",
        "0x48127ffc7fff8000",
        "0x48127ffa7fff8000",
        "0x480a7ffb7fff8000",
        "0x480680017fff8000",
        "0x1",
        "0x48127ffa7fff8000",
        "0x482480017ff98000",
        "0x1",
        "0x208b7fff7fff7ffe",
        "0x1104800180018000",
        "0x3e",
        "0x482480017fff8000",
        "0x3d",
        "0x480080007fff8000",
        "0xa0680017fff8000",
        "0x9",
        "0x4824800180007ff8",
        "0x0",
        "0x482480017fff8000",
        "0x100000000000000000000000000000000",
        "0x400080007ff77fff",
        "0x10780017fff7fff",
        "0x14",
        "0x4824800180007ff8",
        "0x0",
        "0x400080007ff87fff",
        "0x40780017fff7fff",
        "0x1",
        "0x480680017fff8000",
        "0x48656c6c6f20576f726c6421",
        "0x400080007ffe7fff",
        "0x482480017ff68000",
        "0x1",
        "0x48127ffc7fff8000",
        "0x480a7ffb7fff8000",
        "0x480680017fff8000",
        "0x0",
        "0x48127ffa7fff8000",
        "0x482480017ff98000",
        "0x1",
        "0x208b7fff7fff7ffe",
        "0x40780017fff7fff",
        "0x1",
        "0x480680017fff8000",
        "0x4f7574206f6620676173",
        "0x400080007ffe7fff",
        "0x482480017ff58000",
        "0x1",
        "0x48127ff37fff8000",
        "0x480a7ffb7fff8000",
        "0x480680017fff8000",
        "0x1",
        "0x48127ffa7fff8000",
        "0x482480017ff98000",
        "0x1",
        "0x208b7fff7fff7ffe",
        "0x40780017fff7fff",
        "0x1",
        "0x480680017fff8000",
        "0x4f7574206f6620676173",
        "0x400080007ffe7fff",
        "0x482680017ff98000",
        "0x1",
        "0x480a7ffa7fff8000",
        "0x480a7ffb7fff8000",
        "0x480680017fff8000",
        "0x1",
        "0x48127ffa7fff8000",
        "0x482480017ff98000",
        "0x1",
        "0x208b7fff7fff7ffe"
    ],
    "bytecode_segment_lengths": [
        93
    ],
    "hints": [
        [
            0,
            [
                {
                    "TestLessThanOrEqual": {
                        "lhs": {
                            "Immediate": "0x0"
                        },
                        "rhs": {
                            "Deref": {
                                "register": "FP",
                                "offset": -6
                            }
                        },
                        "dst": {
                            "register": "AP",
                            "offset": 0
                        }
                    }
                }
            ]
        ],
        [
            17,
            [
                {
                    "AllocSegment": {
                        "dst": {
                            "register": "AP",
                            "offset": 0
                        }
                    }
                }
            ]
        ],
        [
            36,
            [
                {
                    "TestLessThanOrEqual": {
                        "lhs": {
                            "Immediate": "0x0"
                        },
                        "rhs": {
                            "Deref": {
                                "register": "AP",
                                "offset": -7
                            }
                        },
                        "dst": {
                            "register": "AP",
                            "offset": 0
                        }
                    }
                }
            ]
        ],
        [
            48,
            [
                {
                    "AllocSegment": {
                        "dst": {
                            "register": "AP",
                            "offset": 0
                        }
                    }
                }
            ]
        ],
        [
            63,
            [
                {
                    "AllocSegment": {
                        "dst": {
                            "register": "AP",
                            "offset": 0
                        }
                    }
                }
            ]
        ],
        [
            78,
            [
                {
                    "AllocSegment": {
                        "dst": {
                            "register": "AP",
                            "offset": 0
                        }
                    }
                }
            ]
        ]
    ],
    "entry_points_by_type": {
        "EXTERNAL": [
            {
                "selector": "0x1d4734bf4586a39c9da61a06f6fe3d8a2abd48a075f9ae0b48da270b9f449a9",
                "offset": 0,
                "builtins": [
                    "range_check"
                ]
            }
        ],
        "L1_HANDLER": [],
        "CONSTRUCTOR": []
    }
}

like this json