Skip to content

TIME Token Contracts for the ChronoTech project

License

Notifications You must be signed in to change notification settings

Chrono-Tech/TimeV2

 
 

Repository files navigation

TIMEv2 Token Contracts Build Status

The TIMEv2 token is an EIP20 token with additional ERC677 functionality forked from LINK token by ChainLink.

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.

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 TIME Token contract to your locally deployed instance of Ganache blockchain.

About

TIME Token Contracts for the ChronoTech project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 68.7%
  • JavaScript 31.3%