__validate__
and
__execute__
are mandatory for an account).
This trait assumes that the calldata for invoke transactions is Array
.
This is the network standard following SNIP6.
It is not enforced by Starknet, but deviating from the standard interface may lead to
incompatibility with standard tooling.
pub trait AccountContract
starknet::VALIDATED
if the account is willing to pay
for the declaration.
fn __validate_declare__(
self: @TContractState, class_hash: felt252,
) -> felt252
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.
fn __validate__(
ref self: TContractState, calls: Array,
) -> felt252
__validate__
entry point.
fn __execute__(
ref self: TContractState, calls: Array,
) -> Array>