Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Feat: Switch to pnpm and implement gas optimizations (#14)
Browse files Browse the repository at this point in the history
* switch to pnpm and audited gas optimizations

* removing extension

* add linting mechanics

* Use audits in Readme.md
  • Loading branch information
thedarkjester authored May 24, 2024
1 parent be602ab commit b17e7c7
Show file tree
Hide file tree
Showing 123 changed files with 21,854 additions and 18,615 deletions.
10 changes: 6 additions & 4 deletions .eslintrc.js
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",
},
};
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ typechain-types
cache
build
.openzeppelin
.DS_Store

23 changes: 23 additions & 0 deletions .prettierrc.js
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,
},
},
],
};
24 changes: 0 additions & 24 deletions .prettierrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"var-name-mixedcase": "off",
"const-name-snakecase": "off",
"func-name-mixedcase": "off",
"custom-errors": "off",
"state-visibility": "off",
"no-empty-blocks": "off",
"avoid-low-level-calls": "off",
"reason-string": "off",
"check-send-result": "off",
"no-unused-import": ["error"]
"no-unused-import": ["error"],
"gas-custom-errors": "off"
}
}
55 changes: 54 additions & 1 deletion README.md
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
```
Loading

0 comments on commit b17e7c7

Please sign in to comment.