API Version: v1.5.1

CCIP v1.5.1 BurnMintTokenPoolAbstract Contract API Reference

BurnMintTokenPoolAbstract

An abstract contract that implements core token pool functionality for burning and minting operations in cross-chain token transfers.

Git Source

Inherits:

Events

Burned

event Burned(address indexed sender, uint256 amount);

Parameters

NameTypeIndexedDescription
senderaddressYesThe address initiating the burn operation
amountuint256NoThe number of tokens burned

Minted

event Minted(address indexed sender, address indexed recipient, uint256 amount);

Parameters

NameTypeIndexedDescription
senderaddressYesThe address initiating the mint operation
recipientaddressYesThe address receiving the minted tokens
amountuint256NoThe number of tokens minted

Functions

_burn

Internal function that executes the token burning operation.

function _burn(uint256 amount) internal virtual;

Parameters

NameTypeDescription
amountuint256The number of tokens to burn

lockOrBurn

Burns tokens in the pool during a cross-chain transfer.

function lockOrBurn(
  Pool.LockOrBurnInV1 calldata lockOrBurnIn
) external virtual override returns (Pool.LockOrBurnOutV1 memory);

Parameters

NameTypeDescription
lockOrBurnInPool.LockOrBurnInV1Input parameters for the burn operation

Returns

TypeDescription
Pool.LockOrBurnOutV1Contains destination token address and pool data

releaseOrMint

Mints new tokens to a recipient during a cross-chain transfer.

function releaseOrMint(
  Pool.ReleaseOrMintInV1 calldata releaseOrMintIn
) external virtual override returns (Pool.ReleaseOrMintOutV1 memory);

Parameters

NameTypeDescription
releaseOrMintInPool.ReleaseOrMintInV1Input parameters for the mint operation

Returns

TypeDescription
Pool.ReleaseOrMintOutV1Contains the final amount minted in local tokens

Get the latest Chainlink content straight to your inbox.