Skip to content

Commit e0545af

Browse files
committed
Update .gitignore and modify Lottery contract
Refactored .gitignore to improve coverage for build artifacts, editor files, and environment files. Added new state file for vm-cancun. Updated src/Lottery.sol with changes to the contract logic.
1 parent ceb13b8 commit e0545af

File tree

3 files changed

+301
-146
lines changed

3 files changed

+301
-146
lines changed

.gitignore

Lines changed: 28 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,38 @@
1-
# ============================
2-
# General
3-
# ============================
4-
.DS_Store
5-
Thumbs.db
6-
*.log
7-
*.tmp
1+
# Compiler files
2+
cache/
3+
out/
4+
5+
# Rust/Foundry build artifacts
6+
target/
7+
artifacts/
88

9-
# ============================
10-
# Node / JS / TS
11-
# ============================
9+
# Node/JS dependencies
1210
node_modules/
13-
npm-debug.log*
14-
yarn-debug.log*
15-
yarn-error.log*
1611
package-lock.json
1712
pnpm-lock.yaml
13+
yarn.lock
1814

19-
# TypeScript
20-
dist/
21-
out-tsc/
22-
*.tsbuildinfo
15+
# Ignores development broadcast logs
16+
!/broadcast
17+
/broadcast/*/31337/
18+
/broadcast/**/dry-run/
2319

24-
# dotenv
25-
.env
26-
.env.*
27-
.env.local
28-
.env.production
29-
.env.development
30-
31-
# ============================
32-
# Foundry / Solidity
33-
# ============================
34-
out/
35-
cache/
36-
broadcast/
37-
lib/
38-
test-results/
39-
40-
# Anvil artifacts
41-
anvil.*
42-
*.bin
43-
*.hex
44-
45-
# Coverage
20+
# Coverage and debug
4621
coverage/
47-
coverage.json
48-
lcov-report/
49-
50-
# Forge snapshots
51-
gas-snapshot.txt
22+
coverage.*
23+
lcov.info
24+
*.log
5225

53-
artifacts/
54-
cache/
55-
typechain/
56-
typechain-types/
26+
# Docs
27+
docs/
5728

58-
# ============================
59-
# VSCode
60-
# ============================
29+
# Editors and OS metadata
6130
.vscode/
62-
.history/
31+
.idea/
32+
*.swp
33+
*.swo
34+
.DS_Store
35+
36+
# Dotenv file
37+
.env
38+
.env.*

0 commit comments

Comments
 (0)