This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Switch to pnpm and implement gas optimizations (#14)
* switch to pnpm and audited gas optimizations * removing extension * add linting mechanics * Use audits in Readme.md
- Loading branch information
1 parent
be602ab
commit b17e7c7
Showing
123 changed files
with
21,854 additions
and
18,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: false, | ||
es2021: true, | ||
mocha: true, | ||
node: true, | ||
browser: false, | ||
es2022: true, | ||
}, | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
ignorePatterns: ["dist", "coverage"], | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"], | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint", "prettier"], | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
sourceType: "module", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ typechain-types | |
cache | ||
build | ||
.openzeppelin | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** @type {import("prettier").Config} */ | ||
module.exports = { | ||
trailingComma: "all", | ||
tabWidth: 2, | ||
semi: true, | ||
singleQuote: false, | ||
printWidth: 120, | ||
bracketSpacing: true, | ||
plugins: ["prettier-plugin-solidity"], | ||
overrides: [ | ||
{ | ||
files: "*.sol", | ||
options: { | ||
parser: "solidity-parse", | ||
bracketSpacing: true, | ||
printWidth: 120, | ||
singleQuote: false, | ||
tabWidth: 2, | ||
useTabs: false, | ||
}, | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,54 @@ | ||
# linea-contracts | ||
# linea-contracts | ||
|
||
## Audits | ||
### Fourth Audit Round (Latest) | ||
|
||
**Open Zeppelin** | ||
- Gas optimization audit: https://blog.openzeppelin.com/linea-gas-optimizations-audit | ||
|
||
|
||
### Third Audit Round | ||
**Open Zeppelin** | ||
|
||
- Blob submission audit: https://blog.openzeppelin.com/linea-blob-submission-audit | ||
|
||
### Second Audit Round | ||
|
||
**Diligence** | ||
- Proof aggregation, data compression and message service updates Audit: https://consensys.io/diligence/audits/2024/01/linea-contracts-update/ | ||
|
||
**Open Zeppelin** | ||
|
||
- Proof aggregation, data compression and message service updates Audit: https://blog.openzeppelin.com/linea-v2-audit | ||
|
||
### First Audit Round | ||
|
||
**Diligence** | ||
|
||
- Plonk Verifier: https://consensys.io/diligence/audits/2023/06/linea-plonk-verifier/ | ||
- Message Service & Rollup: https://consensys.io/diligence/audits/2023/06/linea-message-service/ | ||
- Canonical Token Bridge: https://consensys.io/diligence/audits/2023/06/linea-canonical-token-bridge/ | ||
|
||
**Open Zeppelin** | ||
|
||
- Linea Bridge Audit: https://blog.openzeppelin.com/linea-bridge-audit-1 | ||
- Linea Verifier Audit: https://blog.openzeppelin.com/linea-verifier-audit-1 | ||
|
||
|
||
|
||
--- | ||
|
||
## Installation and testing | ||
|
||
To run the solution's tests, coverage and gas reporting, be sure to install pnpm and then | ||
``` | ||
# Install all the dependencies | ||
pnpm install | ||
pnpm run test | ||
pnpm run test:reportgas | ||
pnpm run coverage | ||
``` |
Oops, something went wrong.