LinkToken v0.2.1 API Reference
LinkToken
LinkToken
implements the ERC677 token standard for LINK tokens. This contract provides the basic functionality of the Chainlink token with a fixed total supply.
Variables
NAME
string private constant NAME = "ChainLink Token"
The name of the token.
SYMBOL
string private constant SYMBOL = "LINK"
The symbol of the token.
TOTAL_SUPPLY
uint private constant TOTAL_SUPPLY = 10 ** 27
The total supply of LINK tokens (1 billion LINK with 18 decimals).
Functions
constructor
constructor() ERC677(NAME, SYMBOL)
Initializes the contract with the token name and symbol, then calls _onCreate()
.
_onCreate
function _onCreate() internal virtual
Hook that is called when this contract is created.