Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ITTHook

Fully qualified path: tokentable_v2::components::interfaces::hook::ITTHook

pub trait ITTHook<TContractState>

Trait functions

did_call

A callback function that’s called by the Unlocker.

Arguments

  • function_name: The name of the Unlocker function called.
  • context: The encoded felt252 array of relevant call data.
  • caller: The caller of the Unlocker function.

Fully qualified path: tokentable_v2::components::interfaces::hook::ITTHook::did_call

fn did_call(
    ref self: TContractState,
    function_name: felt252,
    context: Span<felt252>,
    caller: ContractAddress,
)