The LINK token is an EIP20 token with additional ERC677 functionality.
The total supply of the token is 1,000,000,000, and each token is divisible up to 18 decimal places.
To prevent accidental burns, the token does not allow transfers to the contract itself and to 0x0.
Security audit for v0.4 version of the contracts is available here.
- Deployments:
- Ethereum Mainnet LinkToken v0.4: 0x514910771AF9Ca656af840dff83E8264EcF986CA
- Decimals: 18
- Name: ChainLink Token
- Symbol: LINK
The project contains v0.4 contracts that were used for LINK Ethereum Mainnet deployment in 2017. For deployments moving forward, we use the updated v0.6 contracts which use a more recent version of solc and the OpenZeppelin token standards. These updates include a minor ABI change around approval/allowance naming.
yarn installSetup contracts:
yarn setupThis will compile all versions of the contracts.
Run tests:
yarn testThis will run unit tests for all versions of the contracts.
Integration tests are currently setup for Optimism bridge contracts, and to run them make sure you have a local network running first.
The network can be started using a helpful script, which will clone the Optimism monorepo, build the :
yarn script:oe:upRun tests:
yarn test:integrationThis will run unit tests for all versions of the contracts, plus supported integration tests against the local L1 & L2 networks.
The network can be stopped using another script:
yarn script:oe:downOr use the clean script, which will also delete all the images:
yarn script:oe:clean