-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.sh
executable file
·54 lines (42 loc) · 2.97 KB
/
build.sh
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
set -e
# Build contracts
ton-compiler --fift --input ./contracts/wallet.fc --output ./contracts/wallet.fif
ton-compiler --input ./contracts/wallet.fc --output ./contracts/wallet.cell
openssl base64 -A -in ./contracts/wallet.cell -out ./contracts/wallet.cell.base64
ton-compiler --fift --input ./contracts/highload-wallet.fc --output ./contracts/highload-wallet.fif
ton-compiler --input ./contracts/highload-wallet.fc --output ./contracts/highload-wallet.cell
openssl base64 -A -in ./contracts/highload-wallet.cell -out ./contracts/highload-wallet.cell.base64
ton-compiler --fift --input ./contracts/simple-wallet-code.fc --output ./contracts/simple-wallet-code.fif
ton-compiler --input ./contracts/simple-wallet-code.fc --output ./contracts/simple-wallet-code.cell
openssl base64 -A -in ./contracts/simple-wallet-code.cell -out ./contracts/simple-wallet-code.cell.base64
ton-compiler --fift --input ./contracts/whitelisted-wallet.fc --output ./contracts/whitelisted-wallet.fif
ton-compiler --input ./contracts/whitelisted-wallet.fc --output ./contracts/whitelisted-wallet.cell
openssl base64 -A -in ./contracts/whitelisted-wallet.cell -out ./contracts/whitelisted-wallet.cell.base64
ton-compiler --fift --input ./contracts/logger.fc --output ./contracts/logger.fif
ton-compiler --input ./contracts/logger.fc --output ./contracts/logger.cell
openssl base64 -A -in ./contracts/logger.cell -out ./contracts/logger.cell.base64
ton-compiler --fift --input ./contracts/pow-giver.fc --output ./contracts/pow-giver.fif
ton-compiler --input ./contracts/pow-giver.fc --output ./contracts/pow-giver.cell
openssl base64 -A -in ./contracts/pow-giver.cell -out ./contracts/pow-giver.cell.base64
ton-compiler --fift --input ./contracts/validator-controller.fc --output ./contracts/validator-controller.fif
ton-compiler --input ./contracts/validator-controller.fc --output ./contracts/validator-controller.cell
openssl base64 -A -in ./contracts/validator-controller.cell -out ./contracts/validator-controller.cell.base64
ton-compiler --fift --input ./contracts/wallet-v4.fc --output ./contracts/wallet-v4.fif
ton-compiler --input ./contracts/wallet-v4.fc --output ./contracts/wallet-v4.cell
openssl base64 -A -in ./contracts/wallet-v4.cell -out ./contracts/wallet-v4.cell.base64
ton-compiler --fift --output ./contracts/nominator-pool.fif \
--input ./contracts/nominator-pool-utils.fc \
--input ./contracts/nominator-pool-storage.fc \
--input ./contracts/nominator-pool-responses.fc \
--input ./contracts/nominator-pool-get.fc \
--input ./contracts/nominator-pool.fc
ton-compiler --output ./contracts/nominator-pool.cell \
--input ./contracts/nominator-pool-utils.fc \
--input ./contracts/nominator-pool-storage.fc \
--input ./contracts/nominator-pool-responses.fc \
--input ./contracts/nominator-pool-get.fc \
--input ./contracts/nominator-pool.fc
openssl base64 -A -in ./contracts/nominator-pool.cell -out ./contracts/nominator-pool.cell.base64
# Build distributive
rm -fr dist
tsc --declaration