{"id":19107330,"url":"https://github.com/smartcontractkit/linktoken","last_synced_at":"2025-10-26T05:40:29.750Z","repository":{"id":25261715,"uuid":"97355967","full_name":"smartcontractkit/LinkToken","owner":"smartcontractkit","description":"LINK Token Contracts for the Chainlink Network","archived":false,"fork":false,"pushed_at":"2023-11-11T08:54:06.000Z","size":3188,"stargazers_count":136,"open_issues_count":22,"forks_count":76,"subscribers_count":80,"default_branch":"master","last_synced_at":"2025-03-29T11:04:37.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chain.link","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartcontractkit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-16T02:55:36.000Z","updated_at":"2025-02-05T17:17:55.000Z","dependencies_parsed_at":"2024-06-18T16:55:54.958Z","dependency_job_id":null,"html_url":"https://github.com/smartcontractkit/LinkToken","commit_stats":{"total_commits":207,"total_committers":11,"mean_commits":"18.818181818181817","dds":"0.22705314009661837","last_synced_commit":"8fd6d624d981e39e6e3f55a72732deb9f2f832d9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2FLinkToken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2FLinkToken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2FLinkToken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2FLinkToken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartcontractkit","download_url":"https://codeload.github.com/smartcontractkit/LinkToken/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332560,"owners_count":20921853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T04:12:08.548Z","updated_at":"2025-10-26T05:40:24.696Z","avatar_url":"https://github.com/smartcontractkit.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LINK Token Contracts\n\nThe 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.\n\nThe total supply of the token is 1,000,000,000, and each token is divisible up to 18 decimal places.\n\nTo prevent accidental burns, the token does not allow transfers to the contract itself and to 0x0.\n\nSecurity audit for [0.4 version of the contracts](./contracts/v0.4/) is available [here](https://gist.github.com/Arachnid/4aa88041bd6e34835b8c0fd051245e79).\n\n## Details\n\n- Deployments:\n  - Ethereum Mainnet [LinkToken 0.4](./contracts-flat/v0.4/LinkToken.sol): [0x514910771AF9Ca656af840dff83E8264EcF986CA](https://etherscan.io/address/0x514910771af9ca656af840dff83e8264ecf986ca)\n- Decimals: 18\n- Name: ChainLink Token\n- Symbol: LINK\n\n## Setup\n\nThe project contains [0.4 contracts](./contracts/v0.4/) that were used for LINK Ethereum Mainnet deployment in 2017. For deployments moving forward, we use the updated [0.6 contracts](./contracts/v0.6/) which use a more recent version of solc and the OpenZeppelin token standards. These updates include a minor ABI change around approval/allowance naming.\n\nTo mitigate supply chain attack type of risk, we currently avoid using NPM modules to pull Solidity vendor code, but instead use git submodules. Make sure you pull submodules explicitly:\n\n```bash\ngit submodule update --init --recursive\n```\n\nAfter submodules are updated, we can run:\n\n```bash\nyarn\n```\n\nSetup contracts:\n\n```bash\nyarn setup\n```\n\n**NOTICE:** This will compile all versions of the contracts, but as Hardhat doesn't have robust support for multiple Solidity versions the resulting artifacts will include only final (latest) compiler output. To make sure you compile the specific version please use the specific command:\n\nSetup v0.6 contracts using Solidity 0.6 compiler:\n\n```bash\nbuild:contracts:0.6\n```\n\n### ABI\n\n- [v0.4](./build/artifacts/contracts/v0.4)\n- [v0.6](./build/artifacts/contracts/v0.6)\n- [v0.7](./build/artifacts/contracts/v0.7)\n\nYou can also find interfaces and ABIs after running through the install `yarn setup` process.\n\n## Testing\n\nRun tests:\n\n```bash\nyarn test\n```\n\nThis will run unit tests for all versions of the contracts.\n\n## Integration testing\n\nIntegration tests are currently setup for Optimism contracts, and to run them make sure you have a local network running first.\n\nThe network can be started using a helpful script, which will clone the [Optimism monorepo](https://github.com/ethereum-optimism/optimism), build the :\n\n```bash\nyarn script:oe:up\n```\n\nRun tests:\n\n```bash\nyarn test --network optimism\n```\n\nThis will run unit tests for all versions of the contracts, plus supported integration tests against the local L1 \u0026 L2 networks.\n\nThe network can be stopped using another script:\n\n```bash\nyarn script:oe:down\n```\n\nOr use the clean script, which will also delete all the images:\n\n```bash\nyarn script:oe:clean\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartcontractkit%2Flinktoken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartcontractkit%2Flinktoken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartcontractkit%2Flinktoken/lists"}