-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 1.48 KB
/
Copy pathMakefile
File metadata and controls
47 lines (33 loc) · 1.48 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
# PulseGrid — top-level task runner.
# Loads .env if present so RPC/key vars are available to targets.
ifneq (,$(wildcard ./.env))
include .env
export
endif
RPC ?= https://rpc.bohr.life
.PHONY: help probe test build-contracts fmt deploy-ping keygen balance anvil web-build web web-install
help: ## List targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN{FS=":.*?## "}{printf " %-16s %s\n", $$1, $$2}'
probe: ## Run the Go connectivity + block-time probe against testnet
cd agent && go run ./cmd/probe -rpc $(RPC)
test: ## Run the Foundry test suite
cd contracts && forge test -vv
build-contracts: ## Compile contracts
cd contracts && forge build
fmt: ## Format + check Solidity
cd contracts && forge fmt && forge fmt --check
keygen: ## Generate a fresh testnet keypair (fund it via the faucet, then set TESTNET_PRIVATE_KEY)
cast wallet new
balance: ## Check the dev key's testnet balance (needs ADDR=0x...)
cast balance $(ADDR) --rpc-url $(RPC) --ether
deploy-ping: ## Deploy the Ping canary to testnet (needs TESTNET_PRIVATE_KEY funded)
cd contracts && forge script script/DeployPing.s.sol:DeployPing \
--rpc-url $(RPC) --broadcast --private-key $(TESTNET_PRIVATE_KEY)
anvil: ## Local fork/dev chain
anvil
web-install: ## Install the dashboard's dependencies
cd web && npm install
web-build: ## Build the Next.js dashboard
cd web && npm run build
web: ## Run the live dashboard (reads the Phase-3 instance; copy web/.env.local.example first)
cd web && npm run dev