Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: update contracts folder structure #420

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions contracts/.solcover.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module.exports = {
skipFiles: [
"test-contracts",
"verifiers/test",
"_testing",
"proxies",
"tokenBridge/mocks",
"token/MyToken.sol",
"tokenBridge/CustomBridgedToken.sol",
"bridging/token/CustomBridgedToken.sol",
],
};
26 changes: 0 additions & 26 deletions contracts/contracts/test-contracts/TestEIP4844.sol

This file was deleted.

17 changes: 0 additions & 17 deletions contracts/contracts/test-contracts/TestPublicInputVerifier.sol

This file was deleted.

10 changes: 0 additions & 10 deletions contracts/contracts/test-contracts/TestUtils.sol

This file was deleted.

12 changes: 0 additions & 12 deletions contracts/contracts/tools/ProxyAdminReplica.sol

This file was deleted.

158 changes: 0 additions & 158 deletions contracts/contracts/verifiers/Utils.sol

This file was deleted.

16 changes: 0 additions & 16 deletions contracts/deploy/09_deploy_TestEIP4844.ts

This file was deleted.

23 changes: 0 additions & 23 deletions contracts/docs/api/interfaces/l1/IPlonkVerifier.mdx

This file was deleted.

26 changes: 0 additions & 26 deletions contracts/docs/api/lib/CallForwardingProxy.md

This file was deleted.

30 changes: 0 additions & 30 deletions contracts/docs/api/lib/CallForwardingProxy.mdx

This file was deleted.

32 changes: 32 additions & 0 deletions contracts/docs/api/libraries/EfficientLeftRightKeccak.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# `EfficientLeftRightKeccak`

### _efficientKeccak

```solidity
function _efficientKeccak(bytes32 _left, bytes32 _right) internal pure returns (bytes32 value)
```

Performs a gas optimized keccak hash for two bytes32 values.

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| _left | bytes32 | Left value. |
| _right | bytes32 | Right value. |

### _efficientKeccak

```solidity
function _efficientKeccak(uint256 _left, address _right) internal pure returns (bytes32 value)
```

Performs a gas optimized keccak hash for uint256 and address.

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| _left | uint256 | Left value. |
| _right | address | Right value. |

2 changes: 1 addition & 1 deletion contracts/foundry.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[profile.default]
src = 'contracts'
src = 'src'
out = 'out'
libs = ['node_modules', 'lib']
cache_path = 'cache_forge'
Expand Down
3 changes: 2 additions & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const useViaIR = process.env.ENABLE_VIA_IR === "true";
const config: HardhatUserConfig = {
paths: {
artifacts: "./build",
sources: "./src",
},
solidity: {
// NB: double check the autoupdate shell script version complies to the latest solidity version if you add a new one.
Expand Down Expand Up @@ -154,7 +155,7 @@ const config: HardhatUserConfig = {
],
},
docgen: {
exclude: ["token", "test-contracts", "proxies", "tools", "interfaces/tools", "tokenBridge/mocks", "verifiers"],
exclude: ["tokens", "_testing", "proxies", "recovery", "verifiers"],
pages: "files",
outputDir: "docs/api/",
// For compatibility with docs.linea.build
Expand Down
Loading
Loading