Skip to content

Commit 85bb62c

Browse files
authored
Simplify remappings and use master for OpenZeppelin dependencies (#26)
* Simplify remappings and use master for OpenZeppelin dependencies * Adapt CI * up * up * up * up * up * up
1 parent 355cb82 commit 85bb62c

File tree

8 files changed

+9
-36
lines changed

8 files changed

+9
-36
lines changed

.github/actions/setup/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ runs:
1919
uses: foundry-rs/foundry-toolchain@v1
2020
with:
2121
version: nightly
22+
- name: Install submodule dependencies
23+
shell: bash
24+
run: forge install

.github/workflows/checks.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ jobs:
3535
- uses: actions/checkout@v4
3636
- name: Set up environment
3737
uses: ./.github/actions/setup
38-
- name: Bring vanilla repository test utils as a submodule
39-
run: forge install
4038
- name: Run tests and generate gas report
4139
run: npm run test
4240

@@ -46,8 +44,6 @@ jobs:
4644
- uses: actions/checkout@v4
4745
- name: Set up environment
4846
uses: ./.github/actions/setup
49-
- name: Bring vanilla repository test utils as a submodule
50-
run: forge install
5147
- name: Run coverage
5248
run: npm run coverage
5349

@@ -68,7 +64,6 @@ jobs:
6864
- uses: actions/checkout@v4
6965
- name: Set up environment
7066
uses: ./.github/actions/setup
71-
- run: rm foundry.toml
7267
- uses: crytic/[email protected]
7368

7469
codespell:

foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[profile.default]
2-
solc_version = '0.8.26'
2+
solc_version = '0.8.27'
33
evm_version = 'cancun'
44
src = 'contracts'
55
out = 'out'

hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { argv } = require('yargs/yargs')()
33
.options({
44
compiler: {
55
type: 'string',
6-
default: '0.8.26',
6+
default: '0.8.27',
77
},
88
hardfork: {
99
type: 'string',

package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
"security",
4040
"zeppelin"
4141
],
42-
"dependencies": {
43-
"@openzeppelin/contracts": "^5.0.2",
44-
"@openzeppelin/contracts-upgradeable": "^5.0.2"
45-
},
42+
"dependencies": {},
4643
"devDependencies": {
4744
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
4845
"@nomicfoundation/hardhat-ethers": "^3.0.5",

remappings.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
@openzeppelin/contracts@v5/=node_modules/@openzeppelin/contracts/
2-
@openzeppelin/contracts-upgradeable@v5/=node_modules/@openzeppelin/contracts-upgradeable/
3-
4-
@openzeppelin/contracts@master/=lib/@openzeppelin-contracts/contracts/
5-
@openzeppelin/contracts-upgradeable@master/=lib/@openzeppelin-contracts-upgradeable/contracts/
6-
1+
@openzeppelin/contracts/=lib/@openzeppelin-contracts/contracts/
2+
@openzeppelin/contracts-upgradeable/=lib/@openzeppelin-contracts-upgradeable/contracts/
73
@openzeppelin/community-contracts/=contracts/

slither.config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"detectors_to_run": "arbitrary-send-erc20,array-by-reference,incorrect-shift,name-reused,rtlo,suicidal,uninitialized-state,uninitialized-storage,arbitrary-send-erc20-permit,controlled-array-length,controlled-delegatecall,delegatecall-loop,msg-value-loop,reentrancy-eth,unchecked-transfer,weak-prng,domain-separator-collision,erc20-interface,erc721-interface,locked-ether,mapping-deletion,shadowing-abstract,tautology,write-after-write,boolean-cst,reentrancy-no-eth,reused-constructor,tx-origin,unchecked-lowlevel,unchecked-send,variable-scope,void-cst,events-access,events-maths,incorrect-unary,boolean-equal,cyclomatic-complexity,deprecated-standards,erc20-indexed,function-init-state,pragma,unused-state,reentrancy-unlimited-gas,constable-states,immutable-states,var-read-using-this",
3-
"filter_paths": "contracts/mocks,contracts-exposed",
4-
"compile_force_framework": "hardhat"
3+
"filter_paths": "contracts/mocks,contracts-exposed"
54
}

0 commit comments

Comments
 (0)