Skip to content

Commit 2a35793

Browse files
Add Foundry dependencies to lib (#384)
* add foundry dependencies to lib * update gitignore * Delete deployArgs.json
1 parent 3ae9cd3 commit 2a35793

8 files changed

+33
-14
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ npm-debug.log*
2929
yarn-debug.log*
3030
yarn-error.log*
3131
*.dbg.json
32+
deployArgs.json
3233

3334
# Dev
3435
/relayerTest

.gitmodules

+9
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@
77
[submodule "lib/dynamic-contracts"]
88
path = lib/dynamic-contracts
99
url = https://github.com/thirdweb-dev/dynamic-contracts
10+
[submodule "lib/openzeppelin-contracts"]
11+
path = lib/openzeppelin-contracts
12+
url = https://github.com/openzeppelin/openzeppelin-contracts
13+
[submodule "lib/openzeppelin-contracts-upgradeable"]
14+
path = lib/openzeppelin-contracts-upgradeable
15+
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
16+
[submodule "lib/chainlink"]
17+
path = lib/chainlink
18+
url = https://github.com/smartcontractkit/chainlink

foundry.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ optimizer = true
1111
optimizer_runs = 20
1212
out = 'artifacts_forge'
1313
remappings = [
14-
#' @chainlink=node_modules/@chainlink/contracts/src/',
15-
'@chainlink/contracts/src=node_modules/@chainlink/contracts/src/',
14+
'@chainlink/=lib/chainlink/',
15+
'@openzeppelin/contracts=lib/openzeppelin-contracts/contracts',
16+
'@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/',
1617
'@ds-test=lib/ds-test/src/',
17-
'@openzeppelin=node_modules/@openzeppelin/',
1818
'@std=lib/forge-std/src/',
1919
'contracts/=contracts/',
2020
'erc721a-upgradeable/=node_modules/erc721a-upgradeable/',

lib/chainlink

Submodule chainlink added at 2aeba0a

lib/openzeppelin-contracts

Submodule openzeppelin-contracts added at ecd2ca2

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"/contracts/**/*.sol"
99
],
1010
"devDependencies": {
11-
"@chainlink/contracts": "^0.5.1",
11+
"@chainlink/contracts": "^0.6.1",
1212
"@nomiclabs/hardhat-ethers": "^2.0.5",
1313
"@nomiclabs/hardhat-etherscan": "^3.0.3",
1414
"@nomiclabs/hardhat-waffle": "^2.0.3",

yarn.lock

+16-10
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@
5555
near-api-js "^0.44.2"
5656
near-seed-phrase "^0.2.0"
5757

58-
"@chainlink/contracts@^0.5.1":
59-
version "0.5.1"
60-
resolved "https://registry.yarnpkg.com/@chainlink/contracts/-/contracts-0.5.1.tgz#68e7447ba8c1eccfbb760bacc93aced2eef60945"
61-
integrity sha512-3PDBJ38Sd6Ml9h7FNK/tZQti+kTCdXUq1qzE6E59CnlzycsV9ElPvf2hTvs9Mi9C6pEx2Mmw9yhZMfBktYUInQ==
58+
"@chainlink/contracts@^0.6.1":
59+
version "0.6.1"
60+
resolved "https://registry.yarnpkg.com/@chainlink/contracts/-/contracts-0.6.1.tgz#8842b57e755793cbdbcbc45277fb5d179c993e19"
61+
integrity sha512-EuwijGexttw0UjfrW+HygwhQIrGAbqpf1ue28R55HhWMHBzphEH0PhWm8DQmFfj5OZNy8Io66N4L0nStkZ3QKQ==
6262
dependencies:
6363
"@eth-optimism/contracts" "^0.5.21"
64-
"@openzeppelin/contracts" "^4.3.3"
64+
"@openzeppelin/contracts" "~4.3.3"
65+
"@openzeppelin/contracts-upgradeable" "^4.7.3"
6566
"@openzeppelin/contracts-v0.7" "npm:@openzeppelin/[email protected]"
6667

6768
"@cspotcode/[email protected]":
@@ -1207,6 +1208,11 @@
12071208
resolved "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.6.0.tgz"
12081209
integrity sha512-5OnVuO4HlkjSCJO165a4i2Pu1zQGzMs//o54LPrwUgxvEO2P3ax1QuaSI0cEHHTveA77guS0PnNugpR2JMsPfA==
12091210

1211+
"@openzeppelin/contracts-upgradeable@^4.7.3":
1212+
version "4.8.3"
1213+
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.8.3.tgz#6b076a7b751811b90fe3a172a7faeaa603e13a3f"
1214+
integrity sha512-SXDRl7HKpl2WDoJpn7CK/M9U4Z8gNXDHHChAKh0Iz+Wew3wu6CmFYBeie3je8V0GSXZAIYYwUktSrnW/kwVPtg==
1215+
12101216
"@openzeppelin/contracts-v0.7@npm:@openzeppelin/[email protected]":
12111217
version "3.4.2"
12121218
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-3.4.2.tgz#d81f786fda2871d1eb8a8c5a73e455753ba53527"
@@ -1217,16 +1223,16 @@
12171223
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.7.3.tgz#939534757a81f8d69cc854c7692805684ff3111e"
12181224
integrity sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==
12191225

1220-
"@openzeppelin/contracts@^4.3.3":
1221-
version "4.8.0"
1222-
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.8.0.tgz#6854c37df205dd2c056bdfa1b853f5d732109109"
1223-
integrity sha512-AGuwhRRL+NaKx73WKRNzeCxOCOCxpaqF+kp8TJ89QzAipSwZy/NoflkWaL9bywXFRhIzXt8j38sfF7KBKCPWLw==
1224-
12251226
"@openzeppelin/contracts@^4.4.2":
12261227
version "4.7.0"
12271228
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.7.0.tgz#3092d70ea60e3d1835466266b1d68ad47035a2d5"
12281229
integrity sha512-52Qb+A1DdOss8QvJrijYYPSf32GUg2pGaG/yCxtaA3cu4jduouTdg4XZSMLW9op54m1jH7J8hoajhHKOPsoJFw==
12291230

1231+
"@openzeppelin/contracts@~4.3.3":
1232+
version "4.3.3"
1233+
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.3.3.tgz#ff6ee919fc2a1abaf72b22814bfb72ed129ec137"
1234+
integrity sha512-tDBopO1c98Yk7Cv/PZlHqrvtVjlgK5R4J6jxLwoO7qxK4xqOiZG+zSkIvGFpPZ0ikc3QOED3plgdqjgNTnBc7g==
1235+
12301236
"@primitivefi/hardhat-dodoc@^0.2.0":
12311237
version "0.2.3"
12321238
resolved "https://registry.yarnpkg.com/@primitivefi/hardhat-dodoc/-/hardhat-dodoc-0.2.3.tgz#76aebbfa70de2d6454af29e166b1430583b54c5c"

0 commit comments

Comments
 (0)