🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@chainlink/token

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainlink/token

The LINK token is an [EIP20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md) token with additional [ERC677](https://github.com/ethereum/EIPs/issues/677) functionality.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
256
21.33%
Maintainers
7
Weekly downloads
 
Created
Source

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

Compile the contracts:

yarn compile

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.

FAQs

Package last updated on 24 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts