You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump @chainlink/contracts to v1.5.0 + Add OpenZeppelin submodules (#45)
* Upgraded to 1.5.0 of Chainlink contracts
The unvendoring of OpenZeppelin contracts in version 1.5.0 of @chainlink/contracts results in developers having to rely on remappings to resolve the OpenZeppelin import paths.
- Install required OpenZeppelin versions with alias
- Remap import paths to the alias OZ directories
- Upgrade to 1.5.0 release of contracts from chainlink-evm repo
* Added codeowners
* Added Chainlink contracts install instructions to README
- Added the installation instructions for Chainlink contracts depending on version
- Included OZ dependency installation for versions >=1.5.0
* Fixed chainlink-evm tag for forge install
- Corrected the tag used for specific versioning of chainlink-evm
* Updated README
- Modified forge install step
Copy file name to clipboardExpand all lines: README.md
+67-6Lines changed: 67 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
_Note: This repo has been recently updated for Sepolia_
2
-
1
+
> [!IMPORTANT]
2
+
> This repository has recently been updated for use with [Chainlink contracts](https://github.com/smartcontractkit/chainlink-evm/) v1.5.0. See the [dependency installation section for instructions on how to set up v1.5.0](#installing-chainlink-contracts-with-forge-install) within your own project using `forge install`.
3
3
# Foundry Starter Kit
4
4
5
5
<br/>
@@ -18,6 +18,7 @@ Foundry Starter Kit is a repo that shows developers how to quickly build, test,
18
18
-[Getting Started](#getting-started)
19
19
-[Requirements](#requirements)
20
20
-[Quickstart](#quickstart)
21
+
-[Dependencies](#install-dependencies-as-follows)
21
22
-[Testing](#testing)
22
23
-[Deploying to a network](#deploying-to-a-network)
Run `forge install` to install dependencies. [Foundry uses git submodules](https://book.getfoundry.sh/projects/dependencies) as its dependency management system.
56
57
57
-
> ⚠️ when running forge install, you may see an error message if you have uncomitted changes in your repo. Read the message carefully - it may inform you that you can add the `--no-commit` flag to each of these `install` commands if your workspace has uncommitted changes.
58
+
> ⚠️ when running forge install, you may see an error message if you have uncommitted changes in your repo. Read the message carefully - it may inform you that you can add the `--no-commit` flag to each of these `install` commands if your workspace has uncommitted changes.
58
59
59
60
You can update dependencies by running `forge update`
60
61
62
+
## Installing Chainlink contracts:
63
+
64
+
```
65
+
forge install
66
+
```
67
+
68
+
> [!IMPORTANT]
69
+
> For this starter kit, the packages have already been included and can be installed using the above `forge install` command. This package includes Chainlink contracts v1.5.0.
70
+
71
+
To add Chainlink contracts to an existing project:
72
+
73
+
<detailsid=">=1.5.0">
74
+
<summary>v1.5.0 and above</summary>
75
+
76
+
### Step 1: Install >= v1.5.0 and required dependencies
To check that everything is compiling and working as intended after cloning and installing dependencies, run
63
124
```
@@ -76,7 +137,7 @@ Implementation of the following 4 Chainlink services using the [Foundry] (https:
76
137
77
138
For [Chainlink Functions](https://docs.chain.link/chainlink-functions) please go to these starter kits: [Hardhat](https://github.com/smartcontractkit/functions-hardhat-starter-kit) | [Foundry (coming soon)](https://github.com/smartcontractkit/functions-foundry-starter-kit)
78
139
79
-
For [Chainlink CCIP (Cross Chain Interoperability Prototocol)](https://docs.chain.link/ccip) please go to these starter kits: [Hardhat](https://github.com/smartcontractkit/ccip-starter-kit-hardhat) | [Foundry](https://github.com/smartcontractkit/ccip-starter-kit-foundry)
140
+
For [Chainlink CCIP (Cross Chain Interoperability Protocol)](https://docs.chain.link/ccip) please go to these starter kits: [Hardhat](https://github.com/smartcontractkit/ccip-starter-kit-hardhat) | [Foundry](https://github.com/smartcontractkit/ccip-starter-kit-foundry)
80
141
81
142
# Deploying to a network
82
143
@@ -89,7 +150,7 @@ We'll demo using the Sepolia testnet. (Go here for [testnet sepolia ETH](https:/
89
150
You'll need to add the following variables to a `.env` file:
90
151
91
152
-`SEPOLIA_RPC_URL`: A URL to connect to the blockchain. You can get one for free from [Infura](https://www.infura.io/) account
92
-
-`PRIVATE_KEY`: A private key from your wallet. You can get a private key from a new [Metamask](https://metamask.io/) account
153
+
-`PRIVATE_KEY`: A private key from your wallet. You can get a private key from a new [MetaMask](https://metamask.io/) account
93
154
- Additionally, if you want to deploy to a testnet, you'll need test ETH and/or LINK. You can get them from [faucets.chain.link](https://faucets.chain.link/).
94
155
- Optional `ETHERSCAN_API_KEY`: If you want to verify on etherscan
0 commit comments