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
| Name | Type | Description |
|---|---|---|
| token | IBurnMintERC20 | The token managed by this pool |
| localTokenDecimals | uint8 | The number of decimals for the token on the local chain |
| allowlist | address[] | 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 |
| rmnProxy | address | Address of the RMN proxy |
| router | address | Address of the router |
_burn
function _burn(
uint256 amount
) internal virtual override
Burns the specified amount of tokens using the burn(amount) signature.
Parameters
| Name | Type | Description |
|---|---|---|
| amount | uint256 | Amount of tokens to burn |
typeAndVersion
string public constant override typeAndVersion = "BurnMintTokenPool 1.5.1"
Returns the type and version of the contract.
Return Value
| Type | Description |
|---|---|
| string | The string "BurnMintTokenPool 1.5.1" |