Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

token_sender

Fully qualified path: token_sender

Modules

Modules

Modules

erc20

Fully qualified path: token_sender::erc20

Modules

Modules

Modules

mock_erc20

Fully qualified path: token_sender::erc20::mock_erc20

Modules

Modules

Modules

MockERC20

Fully qualified path: token_sender::erc20::mock_erc20::MockERC20

Free functions

Structs

Free functions

Free functions

unsafe_new_contract_state

Fully qualified path: token_sender::erc20::mock_erc20::MockERC20::unsafe_new_contract_state

pub fn unsafe_new_contract_state() -> ContractState

Structs

Structs

ContractState

Fully qualified path: token_sender::erc20::mock_erc20::MockERC20::ContractState

pub struct ContractState { /* private fields */ }

token_sender

Fully qualified path: token_sender::token_sender

Modules

Structs

TransferRequestTransferRequest struct

Traits


Groups:

dispatchers

Modules

Modules

TokenSender

Fully qualified path: token_sender::token_sender::TokenSender

Free functions

Structs

Enums

Event

Free functions

Free functions

unsafe_new_contract_state

Fully qualified path: token_sender::token_sender::TokenSender::unsafe_new_contract_state

pub fn unsafe_new_contract_state() -> ContractState

Structs

Structs

TokensSent

Fully qualified path: token_sender::token_sender::TokenSender::TokensSent

[derive(Drop, starknet::Event)]
pub struct TokensSent {
    pub recipient: ContractAddress,
    pub token_address: ContractAddress,
    pub amount: u256,
}

Members

recipient

Fully qualified path: token_sender::token_sender::TokenSender::TokensSent::recipient

pub recipient: ContractAddress

token_address

Fully qualified path: token_sender::token_sender::TokenSender::TokensSent::token_address

pub token_address: ContractAddress

amount

Fully qualified path: token_sender::token_sender::TokenSender::TokensSent::amount

pub amount: u256

ContractState

Fully qualified path: token_sender::token_sender::TokenSender::ContractState

pub struct ContractState {}

Enums

Enums

Event

Event

Fully qualified path: token_sender::token_sender::TokenSender::Event

pub enum Event {
    TokensSent: TokensSent,
}

Variants

TokensSent

Fully qualified path: token_sender::token_sender::TokenSender::Event::TokensSent

TokensSent: TokensSent

__external_ITokenSenderForwardImpl

Fully qualified path: token_sender::token_sender::__external_ITokenSenderForwardImpl

__l1_handler_ITokenSenderForwardImpl

Fully qualified path: token_sender::token_sender::__l1_handler_ITokenSenderForwardImpl

__constructor_ITokenSenderForwardImpl

Fully qualified path: token_sender::token_sender::__constructor_ITokenSenderForwardImpl

Structs

Structs

TransferRequestTransferRequest struct

TransferRequest

TransferRequest struct

Fully qualified path: token_sender::token_sender::TransferRequest

[derive(Drop, Serde, Copy)]
pub struct TransferRequest {
    pub recipient: ContractAddress,
    pub amount: u256,
}

Members

recipient

Recipient address

Fully qualified path: token_sender::token_sender::TransferRequest::recipient

pub recipient: ContractAddress

amount

Amount to transfer

Fully qualified path: token_sender::token_sender::TransferRequest::amount

pub amount: u256

Traits

Traits

ITokenSender

Fully qualified path: token_sender::token_sender::ITokenSender

pub trait ITokenSender<TContractState>

Trait functions

multisend

Multisend function

Arguments

  • token_address - The address of the token contract
  • transfer_list - The list of transfers to perform

Fully qualified path: token_sender::token_sender::ITokenSender::multisend

fn multisend(
    ref self: TContractState, token_address: ContractAddress, transfer_list: Array<TransferRequest>,
)

UnsafeNewContractStateTraitForITokenSenderForwardImpl

Fully qualified path: token_sender::token_sender::UnsafeNewContractStateTraitForITokenSenderForwardImpl

pub trait UnsafeNewContractStateTraitForITokenSenderForwardImpl<TContractState>

Trait functions

unsafe_new_contract_state

Fully qualified path: token_sender::token_sender::UnsafeNewContractStateTraitForITokenSenderForwardImpl::unsafe_new_contract_state

fn unsafe_new_contract_state() -> TContractState

dispatchers

Structs

Structs

ITokenSenderDispatcher

Fully qualified path: token_sender::token_sender::ITokenSenderDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct ITokenSenderDispatcher {
    pub contract_address: ContractAddress,
}

Members

contract_address

Fully qualified path: token_sender::token_sender::ITokenSenderDispatcher::contract_address

pub contract_address: ContractAddress

ITokenSenderLibraryDispatcher

Fully qualified path: token_sender::token_sender::ITokenSenderLibraryDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct ITokenSenderLibraryDispatcher {
    pub class_hash: ClassHash,
}

Members

class_hash

Fully qualified path: token_sender::token_sender::ITokenSenderLibraryDispatcher::class_hash

pub class_hash: ClassHash

ITokenSenderSafeLibraryDispatcher

Fully qualified path: token_sender::token_sender::ITokenSenderSafeLibraryDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct ITokenSenderSafeLibraryDispatcher {
    pub class_hash: ClassHash,
}

Members

class_hash

Fully qualified path: token_sender::token_sender::ITokenSenderSafeLibraryDispatcher::class_hash

pub class_hash: ClassHash

ITokenSenderSafeDispatcher

Fully qualified path: token_sender::token_sender::ITokenSenderSafeDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct ITokenSenderSafeDispatcher {
    pub contract_address: ContractAddress,
}

Members

contract_address

Fully qualified path: token_sender::token_sender::ITokenSenderSafeDispatcher::contract_address

pub contract_address: ContractAddress

Traits

Traits

ITokenSenderDispatcherTrait

Fully qualified path: token_sender::token_sender::ITokenSenderDispatcherTrait

Part of the group: dispatchers

pub trait ITokenSenderDispatcherTrait<T>

Trait functions

multisend

Multisend function

Arguments

  • token_address - The address of the token contract
  • transfer_list - The list of transfers to perform

Fully qualified path: token_sender::token_sender::ITokenSenderDispatcherTrait::multisend

fn multisend(self: T, token_address: ContractAddress, transfer_list: Array<TransferRequest>)

ITokenSenderSafeDispatcherTrait

Fully qualified path: token_sender::token_sender::ITokenSenderSafeDispatcherTrait

Part of the group: dispatchers

pub trait ITokenSenderSafeDispatcherTrait<T>

Trait functions

multisend

Multisend function

Arguments

  • token_address - The address of the token contract
  • transfer_list - The list of transfers to perform

Fully qualified path: token_sender::token_sender::ITokenSenderSafeDispatcherTrait::multisend

fn multisend(
    self: T, token_address: ContractAddress, transfer_list: Array<TransferRequest>,
) -> Result<(), Array<felt252>>