8000 GitHub - dominictobias/LinkToken at feature/tools · GitHub
[go: up one dir, main page]

Skip to content

About

LINK Token Contracts for the Chainlink Network

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

LINK Token Contracts

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.

Details

6BC9

Setup

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 install

Setup contracts:

yarn setup

This will compile all versions of the contracts.

Testing

Run tests:

yarn test

This will run unit tests for all versions of the contracts.

Integration testing

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:up

Run tests:

yarn test:integration

This 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:down

Or use the clean script, which will also delete all the images:

yarn script:oe:clean

About

LINK Token Contracts for the Chainlink Network

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0