Skip to content

Commit b8fd3ab

Browse files
committed
feat(gas): add lowDB + human-readable events + git hooks
1 parent 5aef8a2 commit b8fd3ab

15 files changed

Lines changed: 519 additions & 345 deletions

File tree

gas-benchmarks/.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd gas-benchmarks
2+
pnpm exec lint-staged

gas-benchmarks/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"format": "prettier --check .",
1010
"format:fix": "prettier --write .",
1111
"lint": "eslint --ext .ts .",
12-
"lint:fix": "eslint --fix --ext .ts ."
12+
"lint:fix": "eslint --fix --ext .ts .",
13+
"prepare": "husky"
1314
},
1415
"keywords": [
1516
"private-transfers",
@@ -40,13 +41,22 @@
4041
"eslint-plugin-prettier": "^5.5.5",
4142
"eslint-plugin-unused-imports": "^4.4.1",
4243
"globals": "^17.3.0",
44+
"husky": "^9.1.7",
45+
"lint-staged": "^16.2.7",
4346
"prettier": "^3.8.1",
4447
"tsx": "^4.21.0",
4548
"typescript": "^5.9.3",
4649
"typescript-eslint": "^8.55.0"
4750
},
4851
"dependencies": {
4952
"dotenv": "^17.2.4",
53+
"lowdb": "^7.0.1",
5054
"viem": "^2.45.3"
55+
},
56+
"lint-staged": {
57+
"*": [
58+
"pnpm run lint:fix --",
59+
"pnpm run format:fix --"
60+
]
5161
}
5262
}

0 commit comments

Comments
 (0)