From 46583c055fc2e3b66204faa1f93438a95b3d2317 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Mon, 27 May 2024 18:29:20 +0300 Subject: [PATCH] Added Foundry config --- .gitignore | 4 ++++ foundry.toml | 7 +++++++ hardhat.config.ts | 1 + package.json | 2 +- yarn.lock | 8 ++++---- 5 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 foundry.toml diff --git a/.gitignore b/.gitignore index e180212..4b7773a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,8 @@ typechain-types cache artifacts +# Foundry files +out/ +cache_forge/ + access_token \ No newline at end of file diff --git a/foundry.toml b/foundry.toml new file mode 100644 index 0000000..be64e8e --- /dev/null +++ b/foundry.toml @@ -0,0 +1,7 @@ +[profile.default] +src = 'contracts' +out = 'out' +viaIR = true +libs = ['node_modules', 'lib'] +test = 'test' +cache_path = 'cache_forge' \ No newline at end of file diff --git a/hardhat.config.ts b/hardhat.config.ts index 430dd4d..fdc90e0 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -1,4 +1,5 @@ import "@nomicfoundation/hardhat-toolbox"; +import "@nomicfoundation/hardhat-foundry"; import "@zetachain/toolkit/tasks"; import { getHardhatConfigNetworks } from "@zetachain/networks"; diff --git a/package.json b/package.json index c7c7c62..54394e3 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@ethersproject/abi": "^5.4.7", "@ethersproject/providers": "^5.4.7", "@nomicfoundation/hardhat-chai-matchers": "^1.0.0", - "@nomicfoundation/hardhat-foundry": "^1.1.1", + "@nomicfoundation/hardhat-foundry": "^1.1.2", "@nomicfoundation/hardhat-network-helpers": "^1.0.0", "@nomicfoundation/hardhat-toolbox": "^2.0.0", "@nomiclabs/hardhat-ethers": "^2.0.0", diff --git a/yarn.lock b/yarn.lock index 40c9a63..dc139ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1262,10 +1262,10 @@ deep-eql "^4.0.1" ordinal "^1.0.3" -"@nomicfoundation/hardhat-foundry@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-foundry/-/hardhat-foundry-1.1.1.tgz#db72b1f33f9cfaecc27e67f69ad436f8710162d6" - integrity sha512-cXGCBHAiXas9Pg9MhMOpBVQCkWRYoRFG7GJJAph+sdQsfd22iRs5U5Vs9XmpGEQd1yEvYISQZMeE68Nxj65iUQ== +"@nomicfoundation/hardhat-foundry@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-foundry/-/hardhat-foundry-1.1.2.tgz#4f5aaa1803b8f5d974dcbc361beb72d49c815562" + integrity sha512-f5Vhj3m2qvKGpr6NAINYwNgILDsai8dVCsFb1rAVLkJxOmD2pAtfCmOH5SBVr9yUI5B1z9rbTwPBJVrqnb+PXQ== dependencies: chalk "^2.4.2"