BurnMintERC677Helper API reference

BurnMintERC677Helper

This contract extends the functionality of the BurnMintERC677 token contract to include a drip function that mints one full token to a specified address.

Inherits from the BurnMintERC677 contract and sets the token name, symbol, decimals, and initial supply in the constructor.

constructor

constructor(string name, string symbol) public

Constructor to initialize the BurnMintERC677Helper contract with a name and symbol.

Calls the parent constructor of BurnMintERC677 with fixed decimals (18) and initial supply (0).

Parameters

NameTypeDescription
namestringThe name of the token.
symbolstringThe symbol of the token.

drip

function drip(address to) external

Mints one full token (1e18) to the specified address.

Calls the internal _mint function from the BurnMintERC677 contract.

Parameters

NameTypeDescription
toaddressThe address that receives the minted token.

Get the latest Chainlink content straight to your inbox.