CCIP v1.5.0 BurnMintTokenPoolAbstract Contract API Reference

BurnMintTokenPoolAbstract

BurnMintTokenPoolAbstract is an abstract contract that extends the TokenPool contract. It defines the common logic for burning tokens in the pool. This contract contains validation mechanisms and logic for burning tokens in the context of a cross-chain token transfer. When allowlist is enabled, it ensures only token-developer specified addresses can transfer tokens.

Functions

_burn

function _burn(uint256 amount) internal virtual

Contains the specific burn call for a pool.

Parameters

NameTypeDescription
amountuint256The amount of tokens to burn.

lockOrBurn

function lockOrBurn(struct Pool.LockOrBurnInV1 lockOrBurnIn) external virtual returns (struct Pool.LockOrBurnOutV1)

Burn the token in the pool.

Parameters

NameTypeDescription
lockOrBurnInPool.LockOrBurnInV1The input parameters for burning tokens.

Return Values

NameTypeDescription
[0]Pool.LockOrBurnOutV1The output data after burning the tokens.

releaseOrMint

function releaseOrMint(struct Pool.ReleaseOrMintInV1 releaseOrMintIn) external virtual returns (struct Pool.ReleaseOrMintOutV1)

Mint tokens from the pool to the recipient.

Parameters

NameTypeDescription
releaseOrMintInPool.ReleaseOrMintInV1The input parameters for minting tokens.

Return Values

NameTypeDescription
[0]Pool.ReleaseOrMintOutV1The output data after minting the tokens.

Get the latest Chainlink content straight to your inbox.