Skip to content

Commit

Permalink
foundry test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFan1992 committed Nov 13, 2023
1 parent c890224 commit adcb4fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ src = 'src/v0.8/functions/dev/v1_X'
test = 'src/v0.8/functions/tests/v1_X'
gas_price = 3_000_000_000 # 3 gwei

[profile.automationexp]
auto_detect_solc = true
src = 'src/v0.8/automation/'

[profile.vrf]
optimizer_runs = 1000
src = 'src/v0.8/vrf'
Expand Down
13 changes: 13 additions & 0 deletions contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ let config = {
),
hardfork: 'merge',
},
optimism_goerli: {
url: 'https://op.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/goerli/',
},
},
solidity: {
compilers: [
Expand Down Expand Up @@ -141,6 +144,16 @@ if (process.env.NETWORK_NAME && process.env.EXPLORER_API_KEY) {
apiKey: {
[process.env.NETWORK_NAME]: process.env.EXPLORER_API_KEY,
},
customChains: [
{
network: 'optimism_goerli',
chainId: 420,
urls: {
apiURL: 'https://api-goerli-optimistic.etherscan.io/api',
browserURL: 'https://goerli-optimism.etherscan.io/',
},
},
],
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/remappings.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ds-test/=foundry-lib/forge-std/lib/ds-test/src
forge-std/=foundry-lib/forge-std/src

@openzeppelin/=node_modules/@openzeppelin/
@openzeppelin/=src/v0.8/vendor/openzeppelin-solidity/v4.9.3
hardhat/=node_modules/hardhat/
@eth-optimism/=node_modules/@eth-optimism

0 comments on commit adcb4fd

Please sign in to comment.