skills/smithery.ai/cairo-custom-data-structures

cairo-custom-data-structures

Installation
SKILL.md

Cairo Custom Data Structures

Overview

Guide users through building mutable data structures on top of dictionaries and traits, including proper destruction.

Quick Use

  • Read references/custom-data-structures.md before answering.
  • Emphasize that arrays are immutable; use Felt252Dict for mutable storage.
  • Call out Destruct implementations for structs containing dictionaries.

Response Checklist

  • Define a trait interface for the structure's operations.
  • Store values in a Felt252Dict and track len separately when emulating vectors.
  • Use Nullable when storing generic T in a dict.
  • Implement Destruct to squash() dictionaries.
Installs
1
First Seen
Apr 4, 2026
cairo-custom-data-structures from smithery.ai