Skip to content

Commit

Permalink
Project refactoring proposal (#27)
Browse files Browse the repository at this point in the history
* README: dummy commit - needed to open a draft PR

* Moved the  to

* forge install: forge-std

v1.7.1

* Foundry: Updated remappings

* Removed  from git tracking

* Cargo.lock deletion

* Returned  to git tracking

* Removed obsolete './hardhat' project

* Foundry.toml: set 'vendor' as a lib
  • Loading branch information
wertikalk authored Nov 8, 2023
1 parent cee55f7 commit 0755d80
Show file tree
Hide file tree
Showing 71 changed files with 651 additions and 7,974 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ out/
testing/*.csv
package-lock.json

vendor/solidity-BigNumber/cache/
contracts/vendor/solidity-BigNumber/cache/
artifacts
cache
yarn.lock
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "lib/openzeppelin-contracts-upgradeable"]
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
2 changes: 1 addition & 1 deletion contracts/v0.8/mocks/MarketMockAPI.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import "../types/MarketTypes.sol";
import "../types/CommonTypes.sol";
import "./types/MockTypes.sol";

import "vendor/solidity-BigNumber/src/BigNumbers.sol";
import "../../vendor/solidity-BigNumber/src/BigNumbers.sol";

/// @title This library is a proxy to the singleton Storage Market actor (address: f05). Calling one of its methods will result in a cross-actor call being performed. However, in this mock library, no actual call is performed.
/// @author Zondax AG
Expand Down
2 changes: 1 addition & 1 deletion contracts/v0.8/mocks/MinerMockAPI.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.17;

import "vendor/solidity-BigNumber/src/BigNumbers.sol";
import "../../vendor/solidity-BigNumber/src/BigNumbers.sol";

import "../types/MinerTypes.sol";
import "../types/CommonTypes.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/v0.8/tests/bigints.test.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.17;

import "vendor/solidity-BigNumber/src/BigNumbers.sol";
import "../../vendor/solidity-BigNumber/src/BigNumbers.sol";

import "../types/CommonTypes.sol";
import "../utils/BigInts.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/v0.8/utils/BigInts.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.17;

import "vendor/solidity-BigNumber/src/BigNumbers.sol";
import "../../vendor/solidity-BigNumber/src/BigNumbers.sol";

import "../types/CommonTypes.sol";
import "../utils/Misc.sol";
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
src = 'contracts'
solc = '0.8.18'
out = 'out'
libs = ['lib', 'vendor']
libs = ['lib', 'contracts/vendor']
test = 'contracts/v0.8/test'
cache_path = 'foundry-cache'
optimizer = true
Expand Down
3 changes: 0 additions & 3 deletions hardhat/.env.local

This file was deleted.

2 changes: 0 additions & 2 deletions hardhat/.gitattributes

This file was deleted.

105 changes: 0 additions & 105 deletions hardhat/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions hardhat/.gitpod.yml

This file was deleted.

3 changes: 0 additions & 3 deletions hardhat/.npmignore

This file was deleted.

12 changes: 0 additions & 12 deletions hardhat/.prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions hardhat/.prettierrc

This file was deleted.

3 changes: 0 additions & 3 deletions hardhat/.solcover.js

This file was deleted.

7 changes: 0 additions & 7 deletions hardhat/.solhint.json

This file was deleted.

2 changes: 0 additions & 2 deletions hardhat/.solhintignore

This file was deleted.

25 changes: 0 additions & 25 deletions hardhat/contracts/SimpleCoin.sol

This file was deleted.

77 changes: 0 additions & 77 deletions hardhat/deploy/market.js

This file was deleted.

Loading

0 comments on commit 0755d80

Please sign in to comment.