AccountPrivateTrait
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait
pub trait AccountPrivateTrait<
TContractState,
+HasComponent<TContractState>,
+Drop<TContractState>,
impl SRC5: HasComponent<TContractState>,
>
Trait functions
initializer
@notice initializes the account by setting the initial token contract and token id
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::initializer
fn initializer(
ref self: ComponentState<TContractState>,
token_contract: ContractAddress,
token_id: u256,
registry: ContractAddress,
implementation_hash: felt252,
salt: felt252,
)
_execute
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::_execute
fn _execute(ref self: ComponentState<TContractState>, calls: Array<Call>) -> Array<Span<felt252>>
_update_state
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::_update_state
fn _update_state(ref self: ComponentState<TContractState>)
_get_owner
@notice internal function for getting NFT owner @param token_contract contract address of NFT
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::_get_owner
fn _get_owner(
self: @ComponentState<TContractState>, token_contract: ContractAddress, token_id: u256,
) -> ContractAddress
_context
@notice internal function to retrieve deployment details of an account
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::_context
fn _context(self: @ComponentState<TContractState>) -> (ContractAddress, felt252, felt252)
_is_tokenbound_account
@notice internal function for checking if an account is a tokenbound account @param token_contract contract address of NFT @param token_id token ID of NFT
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::_is_tokenbound_account
fn _is_tokenbound_account(
self: @ComponentState<TContractState>,
account: ContractAddress,
token_contract: ContractAddress,
token_id: u256,
registry: ContractAddress,
implementation: felt252,
salt: felt252,
) -> bool
_get_token
@notice internal transaction for returning the contract address and token ID of the NFT
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::_get_token
fn _get_token(self: @ComponentState<TContractState>) -> (ContractAddress, u256, felt252)
_execute_calls
@notice internal function for executing transactions @param calls An array of transactions to be executed
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::AccountPrivateTrait::_execute_calls
fn _execute_calls(
ref self: ComponentState<TContractState>, calls: Array<Call>,
) -> Array<Span<felt252>>