Account
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::Account
pub impl Account<
TContractState,
+HasComponent<TContractState>,
+Drop<TContractState>,
impl SRC5: HasComponent<TContractState>,
> of IAccount<ComponentState<TContractState>>;
Impl functions
owner
@notice gets the NFT owner @param token_contract the contract address of the NFT @param token_id the token ID of the NFT
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::Account::owner
fn owner(self: @ComponentState<TContractState>) -> ContractAddress
token
@notice returns the contract address and token ID of the associated NFT
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::Account::token
fn token(self: @ComponentState<TContractState>) -> (ContractAddress, u256, felt252)
state
@notice returns the current state of the account
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::Account::state
fn state(self: @ComponentState<TContractState>) -> u256
supports_interface
Fully qualified path: token_bound_accounts::components::account::account::AccountComponent::Account::supports_interface
fn supports_interface(self: @ComponentState<TContractState>, interface_id: felt252) -> bool