-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
38 lines (28 loc) · 1.08 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
35
36
37
38
prepare:
echo $(date)
npm run build
rm -rf ./deploy && mkdir deploy
cd ./deploy && mkdir woow
cd ./../../
cd ./target && cp ./woow.contract.wasm ./../deploy/woow/woow.contract.wasm && cp ./woow.contract.abi ./../deploy/woow/woow.contract.abi
prepare-min:
echo $(date)
npm run min
rm -rf ./deploy && mkdir deploy
cd ./deploy && mkdir woow_min
cd ./../../
cd ./target && cp ./woow.contract.min.wasm ./../deploy/woow_min/woow.contract.min.wasm && cp ./woow.contract.min.abi ./../deploy/woow_min/woow.contract.min.abi
deploy-testnet:
cd ./deploy/woow && proton chain:set proton-test && proton contract:set wookey ./
deploy-min:
cd ./deploy/woow_min && proton chain:set proton-test && proton contract:set wookey ./
deploy-mainnet:
cd ./deploy/woow && proton chain:set proton && proton contract:set wookey ./
feed-ram:
proton chain:set proton-test && proton faucet:claim XPR wookey || echo "already claimed" && proton ram:buy wookey wookey 450000
min:
make prepare-min && make deploy-min
testnet:
make prepare && make deploy-testnet
publish:
make prepare && make deploy-mainnet