Skip to content

MobileDinero/LinkToken

 
 

Repository files navigation

LINK Token Contracts Build Status

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

Installation

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

Testing

Before running tests, open a new terminal and start Ganache on port 8454:

ganache-cli -l 8000000

Run tests:

yarn test

This will instruct the tests to run against your locally deployed instance of Ganache.

Or you can test specific version separately:

yarn test:v0.4

Migration

To migrate v0.4 contracts run:

yarn migrate:v0.4

To migrate v0.6 contracts run:

yarn migrate:v0.6

This will migrate the LinkToken contract to your locally deployed instance of Ganache blockchain.

About

LINK Token Contracts for the Chainlink Network

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 68.9%
  • JavaScript 31.1%