Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IERC7802

Inherits: IERC165

Defines the interface for crosschain ERC20 transfers.

Functions

crosschainMint

Mint tokens through a crosschain transfer.

function crosschainMint(address _to, uint256 _amount) external;

Parameters

NameTypeDescription
_toaddressAddress to mint tokens to.
_amountuint256Amount of tokens to mint.

crosschainBurn

Burn tokens through a crosschain transfer.

function crosschainBurn(address _from, uint256 _amount) external;

Parameters

NameTypeDescription
_fromaddressAddress to burn tokens from.
_amountuint256Amount of tokens to burn.

Events

CrosschainMint

Emitted when a crosschain transfer mints tokens.

event CrosschainMint(address indexed to, uint256 amount, address indexed sender);

Parameters

NameTypeDescription
toaddressAddress of the account tokens are being minted for.
amountuint256Amount of tokens minted.
senderaddressAddress of the caller (msg.sender) who invoked crosschainMint.

CrosschainBurn

Emitted when a crosschain transfer burns tokens.

event CrosschainBurn(address indexed from, uint256 amount, address indexed sender);

Parameters

NameTypeDescription
fromaddressAddress of the account tokens are being burned from.
amountuint256Amount of tokens burned.
senderaddressAddress of the caller (msg.sender) who invoked crosschainBurn.