Skip to content
Merged
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
20 changes: 19 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,22 @@ docs: ## Generate documentation

docs-serve: docs ## Serve documentation locally
@echo "$(BLUE)🌐 Serving documentation at http://localhost:3000$(RESET)"
forge doc --serve --port 3000
forge doc --serve --port 3000

# ================================================================
# GAS OPTIMIZATION
# ================================================================

gas-snapshot: ## Create gas usage snapshot
@echo "$(BLUE)📊 Creating gas snapshot...$(RESET)"
forge snapshot

gas-diff: ## Compare gas usage with snapshot
@echo "$(BLUE)📊 Comparing gas usage...$(RESET)"
forge snapshot --diff

gas-report: ## Generate detailed gas report
@echo "$(BLUE)⛽ Generating gas report...$(RESET)"
mkdir -p $(REPORTS_DIR)
forge test --gas-report > $(REPORTS_DIR)/gas-report.txt
@echo "$(GREEN)✅ Gas report saved to $(REPORTS_DIR)/gas-report.txt$(RESET)"
Loading