Cairo Contract Class ABI
Overview
Explain what the contract class ABI contains and how entry points are represented and called.
Quick Use
- Read
references/contract-class-abi.mdbefore answering. - Distinguish ABI JSON (off-chain) from dispatcher patterns (on-chain).
- Include selector and entry point type when explaining invocation.
Response Checklist
- Identify the entry point type: external, view, constructor, or L1 handler.
- Mention selectors are computed from function names.
- Explain calldata serialization per ABI when asked about argument encoding.
Example Requests
- "What does the contract ABI include?"
- "How is an entry point selector computed?"
- "How do I encode arguments for a contract call?"