-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (54 loc) · 1.92 KB
/
Copy pathMakefile
File metadata and controls
69 lines (54 loc) · 1.92 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Configurable variables
WASM ?= target/wasm32v1-none/release/my_token.wasm
SOURCE ?= alice
NETWORK ?= testnet
HOST_TARGET ?= x86_64-unknown-linux-gnu
default: build
all: test
test: build
cargo test --workspace --target $(HOST_TARGET)
build:
SOROBAN_SDK_BUILD_SYSTEM_SUPPORTS_SPEC_SHAKING_V2=1 stellar contract build
@ls -l target/wasm32v1-none/release/*.wasm
# Deploy the built wasm to Stellar (uses `stellar` CLI)
# Usage: make deploy WASM=path/to/wasm SOURCE=alice NETWORK=testnet
deploy: build
stellar contract deploy --wasm $(WASM) --source $(SOURCE) --network $(NETWORK)
# Convenience target: deploy and show contract id (stdout from CLI)
deploy-show: deploy
@echo "Deployed. Check output above for CONTRACT_ID"
# Mainnet deployment for AgentVerse (MyToken + PromptMarketplace)
# Requires MAINNET_DEPLOYER_SOURCE, MAINNET_ADMIN_SOURCE, MAINNET_ADMIN_ADDR
# Usage:
# MAINNET_DEPLOYER_SOURCE=deployer \
# MAINNET_ADMIN_SOURCE=admin \
# MAINNET_ADMIN_ADDR=G... \
# make deploy-mainnet
deploy-mainnet:
bash scripts/deploy-mainnet.sh
# Mainnet verification of deployed contracts
# Usage:
# MAINNET_TOKEN_ID=C... \
# MAINNET_MARKETPLACE_ID=C... \
# MAINNET_ADMIN_ADDR=G... \
# make verify-mainnet
verify-mainnet:
bash scripts/verify-mainnet.sh
# Fresh Testnet dry run for the Mainnet release gate (adversarial scenarios,
# resource budgets, pause/recovery, reconciliation). See
# docs/security/MAINNET_RELEASE_CHECKLIST.md.
# Requires DRYRUN_ADMIN_SOURCE, DRYRUN_ADMIN_ADDR, DRYRUN_BUYER_SOURCE, DRYRUN_BUYER_ADDR
testnet-dry-run:
bash scripts/testnet-dry-run.sh
# Capped, real-value Mainnet canary purchase. Requires explicit CANARY_CONFIRM.
# See scripts/canary-mainnet.sh for required/optional variables.
canary-mainnet:
bash scripts/canary-mainnet.sh
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
clippy:
cargo clippy --workspace --all-targets --target $(HOST_TARGET) -- -D warnings
clean:
cargo clean