This repository is a slimmed down version of Chainlink's official repo. It clones only the Chainlink contracts
folder and the repo automatically updates every time there is a new NPM release.
- NPM's latest release can be found here: https://www.npmjs.com/package/@chainlink/contracts
- Chainlink's official repo: https://github.com/smartcontractkit/chainlink
A minimal repo that is a copy of the npm package @chainlink/contracts. These contracts are taken from the core chainlink github, compressed, and deployed to npm.
Everyday at 3AM, the latest version of the package is updated here, this way, you can use the Chainlink contracts with foundry without having to use npm/yarn. This also makes other third party packages like Brownie and Ape easier to work with.
- Run this in your projects root directory.
forge install smartcontractkit/chainlink-brownie-contracts --no-commit
- Then, update your
foundry.toml
to include the following in theremappings
.
remappings = [
'@chainlink/contracts/=lib/chainlink-brownie-contracts/contracts/src/',
]
! IMPORTANT There were compatibility issues with
1.0.0
,1.1.0
and1.2.0
, where there were originally 2 versions of each version. We have deleted the deprecated and outdated versions so that there is no longer any conflict.
All the releases of this package are going to match the @chainlink/contracts NPM tags. So the versioning will look "backwards", but we are starting with v0.2.1