Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 1de6736

Browse files
committed
Make imports relative
1 parent 5232ca1 commit 1de6736

6 files changed

Lines changed: 9 additions & 15 deletions

File tree

hardhat.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ module.exports = {
1010
hardhat: {},
1111
},
1212
solidity: {
13-
version: '0.8.7',
13+
version: '0.8.17',
1414
settings: {
1515
optimizer: {
1616
enabled: true,
1717
runs: 200,
1818
},
1919
},
2020
},
21+
paths: {
22+
sources: './src',
23+
tests: './test-ts',
24+
},
2125
etherscan: {
2226
apiKey: process.env.ETHERSCAN_API_KEY,
2327
},

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"fix": "yarn fix:sol && yarn fix:js",
1515
"fix:ts": "prettier --config .prettierrc.json './**/*.ts' --write",
1616
"fix:sol": "prettier --write 'contracts/**/*.sol'",
17-
"size": "yarn run hardhat size-contracts",
17+
"size": "npx hardhat size-contracts",
1818
"postinstall": "husky install"
1919
},
2020
"devDependencies": {
@@ -41,8 +41,5 @@
4141
"solidity-coverage": "^0.7.16",
4242
"ts-node": "10.4.0",
4343
"typescript": "4.5.2"
44-
},
45-
"dependencies": {
46-
"@openzeppelin/contracts": "4.7.3"
4744
}
4845
}

remappings.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
@openzeppelin/=node_modules/@openzeppelin/
2-
forge-std/=lib/forge-std/src/
31
ds-test/=lib/ds-test/src/
4-
hardhat/=node_modules/hardhat/
2+
forge-std/=lib/forge-std/src/

src/HeapOrdering.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: AGPL-3.0-only
22
pragma solidity ^0.8.0;
33

4-
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
4+
import "../lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol";
55

66
library HeapOrdering {
77
struct Account {

src/ThreeHeapOrdering.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: AGPL-3.0-only
22
pragma solidity ^0.8.0;
33

4-
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
4+
import "../lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol";
55

66
library ThreeHeapOrdering {
77
struct Account {

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -743,11 +743,6 @@
743743
"@types/sinon-chai" "^3.2.3"
744744
"@types/web3" "1.0.19"
745745

746-
"@openzeppelin/contracts@4.7.3":
747-
version "4.7.3"
748-
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.7.3.tgz#939534757a81f8d69cc854c7692805684ff3111e"
749-
integrity sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==
750-
751746
"@resolver-engine/core@^0.3.3":
752747
version "0.3.3"
753748
resolved "https://registry.yarnpkg.com/@resolver-engine/core/-/core-0.3.3.tgz#590f77d85d45bc7ecc4e06c654f41345db6ca967"

0 commit comments

Comments
 (0)