-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (33 loc) · 1.27 KB
/
Copy pathMakefile
File metadata and controls
48 lines (33 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# AiFinPay × Casper — developer tasks
.DEFAULT_GOAL := help
.PHONY: help setup build fmt lint clippy test demo agent-demo mcp dashboard deploy keygen clean
WASM_TARGET := wasm32-unknown-unknown
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN{FS=":.*?## "}{printf " \033[36m%-14s\033[0m %s\n", $$1, $$2}'
setup: ## Install toolchains (Rust wasm target + Node deps)
rustup target add $(WASM_TARGET)
cd demo && npm install
build: ## Build the contract to Wasm (release)
cargo build --release --target $(WASM_TARGET)
fmt: ## Format Rust code
cargo fmt --all
lint: clippy ## Alias for clippy
clippy: ## Run clippy with warnings as errors
cargo clippy --all-targets -- -D warnings
test: ## Run contract tests
cargo test
keygen: ## Generate a Casper testnet keypair
cd demo && node keygen.js
deploy: ## Deploy the contract to Casper testnet
cd demo && node deploy.js
demo: ## Run the basic register + settle demo
cd demo && node demo.js
agent-demo: ## Run the AI-agent-buys-compute demo (x402 -> Casper)
cd demo && node agent-compute-demo.js
mcp: ## Start the Casper MCP server
cd demo && node casper-mcp.mjs
dashboard: ## Serve the live dashboard
cd demo && node serve-dashboard.js
clean: ## Remove build artifacts
cargo clean