Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

InternalTrait

Fully qualified path: starkware_utils::components::deposit::deposit::Deposit::InternalTrait

pub trait InternalTrait<TContractState, +HasComponent<TContractState>, +Drop<TContractState>>

Trait functions

initialize

Fully qualified path: starkware_utils::components::deposit::deposit::Deposit::InternalTrait::initialize

fn initialize(ref self: ComponentState<TContractState>, cancel_delay: TimeDelta)

register_token

Each asset_id can be registered only once. Same token_address and quantum can be shared by different asset_id.

Fully qualified path: starkware_utils::components::deposit::deposit::Deposit::InternalTrait::register_token

fn register_token(
    ref self: ComponentState<TContractState>,
    asset_id: felt252,
    token_address: ContractAddress,
    quantum: u64,
)

process_deposit

Fully qualified path: starkware_utils::components::deposit::deposit::Deposit::InternalTrait::process_deposit

fn process_deposit(
    ref self: ComponentState<TContractState>,
    depositor: ContractAddress,
    beneficiary: u32,
    asset_id: felt252,
    quantized_amount: u128,
    salt: felt252,
)