Specify a webhook-driven task for OpenClaw
Describe event inputs, validation, deduplication, and intended actions before integration work.
5,439,582 AI resources indexedWorking toward the world’s largest AI resource index.
Explain Starknet contract events, event enums, and emitting events; use when a request involves defining or emitting events in Cairo.
--- name: cairo-contract-events-971dc3db5840 description: Explain Starknet contract events, event enums, and emitting events; use when a request involves defining or emitting events in Cairo. --- # Cairo Contract Events ## Overview Explain how to define events and emit them from Cairo contracts. ## Quick Use - Read `references/contract-events.md` before answering. - Define an `Event` enum with `#[event]` and `#[derive(starknet::Event)]`. - Mark indexed fields with `#[key]`. ## Response Checklist - Emit events with `self.emit(Event::Variant(...))`. - Use struct variants to keep event fields clear and typed. - Use `#[key]` for fields that should be indexed. ## Example Requests - "How do I emit an event from a contract?" - "What does #[key] do on an event field?" - "How do I define multiple event types?"--- name: cairo-contract-events-971dc3db5840 description: Explain Starknet contract events, event enums, and emitting events; use when a request involves defining or emitting events in Cairo. --- # Cairo Contract Events ## Overview Explain how to define events and emit them from Cairo contracts. ## Quick Use - Read `references/contract-events.md` before answering. - Define an `Event` enum with `#[event]` and `#[derive(starknet::Event)]`. - Mark indexed fields with `#[key]`. ## Response Checklist - Emit events with `self.emit(Event::Variant(...))`. - Use struct variants to keep event fields clear and typed. - Use `#[key]` for fields that should be indexed. ## Example Requests - "How do I emit an event from a contract?" - "What does #[key] do on an event field?" - "How do I define multiple event types?"
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.