-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
34 lines (27 loc) · 1.51 KB
/
Makefile
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
.PHONY: install test-keys build start test clean-test-keys stop
TEST_KEY := $(shell solana-keygen pubkey ./tests/test-key.json)
all: install test-keys build start test clean-test-keys stop
install:
yarn install
build:
anchor build
yarn idl:generate && yarn lint && yarn build
start:
solana-test-validator --url https://api.mainnet-beta.solana.com \
--clone metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s --clone PwDiXFxQsGra4sFFTT8r1QWRMd4vfumiWC1jfWNfdYT \
--clone pmvYY6Wgvpe3DEj3UX1FcRpMx43sMLYLJrFTVGcqpdn --clone 355AtuHH98Jy9XFg5kWodfmvSfrhcxYUKGoJe8qziFNY \
--clone auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg --clone BXPrcDXuxa4G7m5qj4hu9Fs48sAPJqsjK5Y5S8qxH44J \
--clone 3DFgpPFW6H5vjCaUg1crHg98dGUEUd3VcLiwada4jz1D \
--bpf-program mgr99QFMYByTqGPWmNqunV7vBLmWWXdSrHUfV8Jf3JM ./target/deploy/solana_nft_programs_token_manager.so \
--bpf-program pcaBwhJ1YHp7UDA7HASpQsRUmUNwzgYaLQto2kSj1fR ./target/deploy/solana_nft_programs_paid_claim_approver.so \
--bpf-program tmeEDp1RgoDtZFtx6qod3HkbQmv9LMe36uqKVvsLTDE ./target/deploy/solana_nft_programs_time_invalidator.so \
--bpf-program useZ65tbyvWpdYCLDJaegGK34Lnsi8S3jZdwx8122qp ./target/deploy/solana_nft_programs_use_invalidator.so \
--bpf-program trsMRg3GzFSNgC3tdhbuKUES8YvGtUBbzp5fjxLtVQW ./target/deploy/solana_nft_programs_transfer_authority.so \
--reset --quiet & echo $$! > validator.PID
sleep 5
solana-keygen pubkey ./tests/test-key.json
solana airdrop 1000 $(TEST_KEY) --url http://localhost:8899
test:
yarn test
stop:
pkill solana-test-validator