Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.starknet.io/llms.txt

Use this file to discover all available pages before exploring further.

A general cheatcode function used to simplify implementation of Starknet testing functions. This is the base function used by testing utilities to interact with the test environment. External users can implement custom cheatcodes by injecting a custom CairoHintProcessor in the runner.

Signature

pub extern fn cheatcode(input: Span) -> Span nopanic;

Arguments

selector - The cheatcode identifier. input - Input parameters for the cheatcode.

Returns

  • A span containing the cheatcode’s output