CCIP v1.5.1 BurnMintTokenPool Contract API Reference

The BurnMintTokenPool contract extends BurnMintTokenPoolAbstract to implement burn/mint functionality for third-party tokens using the burn(amount) signature.

Functions

constructor

constructor(
    IBurnMintERC20 token,
    uint8 localTokenDecimals,
    address[] memory allowlist,
    address rmnProxy,
    address router
) TokenPool(token, localTokenDecimals, allowlist, rmnProxy, router)

Initializes the token pool with the specified parameters.

Parameters

NameTypeDescription
tokenIBurnMintERC20The token managed by this pool
localTokenDecimalsuint8The number of decimals for the token on the local chain
allowlistaddress[]List of addresses allowed to be original senders for token transfers. When allowlist is enabled, it ensures only token-developer specified addresses can transfer tokens
rmnProxyaddressAddress of the RMN proxy
routeraddressAddress of the router

_burn

function _burn(
    uint256 amount
) internal virtual override

Burns the specified amount of tokens using the burn(amount) signature.

Parameters

NameTypeDescription
amountuint256Amount of tokens to burn

typeAndVersion

string public constant override typeAndVersion = "BurnMintTokenPool 1.5.1"

Returns the type and version of the contract.

Return Value

TypeDescription
stringThe string "BurnMintTokenPool 1.5.1"

Get the latest Chainlink content straight to your inbox.