forked from totorofinance/swap-contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (37 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
58 lines (37 loc) · 1.53 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
# Makefile for an eosio smart contact
SWAP_CONTRACT=swap
TOKEN_CONTRACT=lptoken
SWAP_ACCOUNT=swap.nefty
TOKEN_ACCOUNT=lp.nefty
TEST_URL=https://wax-testnet.neftyblocks.com
PROD_URL=https://wax.neftyblocks.com
build-swap:
./build.sh ${SWAP_CONTRACT}
build-lptoken:
./build.sh ${TOKEN_CONTRACT}
build-swap-test:
./build.sh ${SWAP_CONTRACT} -D=BUILD_TEST=1
build-lptoken-test:
./build.sh ${TOKEN_CONTRACT}
build: build-swap build-lptoken
build-test: build-swap-test build-lptoken-test
use-test:
cleos wallet open -n test
cleos wallet unlock -n test
use-prod:
cleos wallet open -n prod
cleos wallet unlock -n prod
deploy-lptoken-test:
cleos -u ${TEST_URL} set contract ${TOKEN_ACCOUNT} ./artifacts $(TOKEN_CONTRACT).wasm $(TOKEN_CONTRACT).abi -p ${TOKEN_ACCOUNT}@active
deploy-swap-test:
cleos -u ${TEST_URL} set contract ${SWAP_ACCOUNT} ./artifacts $(SWAP_CONTRACT).wasm $(SWAP_CONTRACT).abi -p ${SWAP_ACCOUNT}@active
deploy-lptoken-prod:
cleos -u ${PROD_URL} set contract ${TOKEN_ACCOUNT} ./artifacts $(TOKEN_CONTRACT).wasm $(TOKEN_CONTRACT).abi -p ${TOKEN_ACCOUNT}@active
deploy-swap-prod:
cleos -u ${PROD_URL} set contract ${SWAP_ACCOUNT} ./artifacts $(SWAP_CONTRACT).wasm $(SWAP_CONTRACT).abi -p ${SWAP_ACCOUNT}@active
install-lptoken-test: build-lptoken deploy-lptoken-test
install-swap-test: build-swap deploy-swap-test
install-lptoken-prod: build-lptoken deploy-lptoken-prod
install-swap-prod: build-swap deploy-swap-prod
install-test: install-swap-test install-lptoken-test
install-prod: install-swap-prod install-lptoken-prod