AccountContractSafeDispatcherTrait
Fully qualified path: core::starknet::account::AccountContractSafeDispatcherTrait
pub trait AccountContractSafeDispatcherTrait<T>
Trait functions
validate_declare
An entry point that is called to check if the account is willing to pay for the declaration of the class with the given hash. The entry point should return core::starknet::VALIDATED
if the account is willing to pay for the declaration.
Fully qualified path: core::starknet::account::AccountContractSafeDispatcherTrait::__validate_declare__
fn __validate_declare__(self: T, class_hash: felt252) -> starknet::SyscallResult<felt252>
validate
An entry point that is called to check if the account is willing to pay for executing a given set of calls. The entry point should return core::starknet::VALIDATED
if the account is willing to pay for the execution, in which case __execute__
will be called on the same set of calls.
Fully qualified path: core::starknet::account::AccountContractSafeDispatcherTrait::__validate__
fn __validate__(self: T, calls: Array<Call>) -> starknet::SyscallResult<felt252>
execute
An entry point that is called to execute a given set of calls. This entry point should block the deprecated v0 invoke transactions as they do not go through the __validate__
entry point.
Fully qualified path: core::starknet::account::AccountContractSafeDispatcherTrait::__execute__
fn __execute__(self: T, calls: Array<Call>) -> starknet::SyscallResult<Array<Span<felt252>>>