Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 1.46 KB
/
Copy pathMakefile
File metadata and controls
53 lines (38 loc) · 1.46 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
# Used in localnet's `ton wallet` command
WALLET_VERSION ?= V5R1
help: ## List of commands
@echo "Available commands:\n"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
@echo "\nUsage: make <command>"
compile: ## Compile contract
npx blueprint build
test: ## Run contract tests
npx blueprint test
deploy: ## Run deployment script
npx blueprint run deploy
debug-tx: ## Execute a transaction to the Gateway
@npx blueprint run debugTransaction
tx: ## Execute a transaction to the Gateway
@npx blueprint run transaction
prepare-tx: ## Prepare a transaction to the Gateway
@PREPARE_TX=true npx blueprint run transaction
upgrade: ## Upgrade the Gateway
@npx blueprint run upgrade
prepare-upgrade: ## Prepare a Gateway upgrade
@PREPARE_TX=true npx blueprint run upgrade
tx-localnet: ## Execute a transaction to the Gateway on localnet
@echo "Using mnemonic from env: WALLET_MNEMONIC && WALLET_VERSION"
@echo "Wallet version '$(WALLET_VERSION)'. Mnemonic: '$(shell echo $(WALLET_MNEMONIC) | cut -c 1-20)...'"
@npx blueprint run transaction \
--custom http://127.0.0.1:8081/jsonRPC --custom-version v2 \
--mnemonic
debug: ## Outputs Gateway's debug info
npx blueprint run debug
lint: ## Lint the code
npm run prettier
fmt: ## Format the code
npm run prettier-fix
.PHONY: help compile test fmt lint
.PHONY: debug debug-tx
.PHONY: tx prepare-tx tx-localnet upgrade prepare-upgrade