CCIP v1.5.1 BurnMintTokenPoolAbstract Contract API Reference

The BurnMintTokenPoolAbstract contract extends TokenPool to implement burn/mint functionality for cross-chain token transfers.

Functions

_burn

function _burn(uint256 amount) internal virtual

Contains the specific burn call for a pool. This function is virtual to allow different burn signatures without duplicating logic.

Parameters

NameTypeDescription
amountuint256The amount of tokens to burn

lockOrBurn

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

Burns tokens in the pool after validating the operation.

Parameters

NameTypeDescription
lockOrBurnInPool.LockOrBurnInV1Input parameters for the burn operation

Return Value

TypeDescription
Pool.LockOrBurnOutV1Contains destination token address and pool decimal data

releaseOrMint

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

Mints tokens from the pool to the recipient after validating the operation.

Parameters

NameTypeDescription
releaseOrMintInPool.ReleaseOrMintInV1Input parameters for the mint operation

Return Value

TypeDescription
Pool.ReleaseOrMintOutV1Contains the final destination amount minted

Get the latest Chainlink content straight to your inbox.