-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
71 lines (63 loc) · 1.3 KB
/
Makefile.toml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
[tasks."ui:install"]
script = '''
cd frontend
npm i
'''
[tasks."ui:dev"]
script = '''
cd frontend
npm run dev
'''
[tasks."ui:build"]
script = '''
cd frontend
npm run build
'''
[tasks."install:gen"]
script = '''
cargo install --locked --git https://github.com/kunalabs-io/sui-client-gen.git
'''
[tasks."gen:sui"]
script = '''
cd frontend/
npm run gen:sui
npm run lint
'''
[tasks."sui:build"]
script = '''
cd contract
sui move build
'''
[tasks."sui:deploy"]
script = '''
cd contract
sui client publish --gas-budget 123456789 --skip-dependency-verification
'''
[tasks."sui:mint"]
script = '''
cd contract
PACKAGE=0xb8458434949bd826bf4fdb5ab785d4fa89c0d3060e9b0d96ae836d62a091fe50
sui client call \
--package $PACKAGE \
--module issuer \
--function mint \
--args \
0x6 \
"Mazda Drive NFT" \
"Web3 Global Hackathon for Mazda" \
"https://pbs.twimg.com/profile_images/1538981748478214144/EUjTgb0v_400x400.jpg" \
--gas-budget 123456789 \
'''
[tasks."sui:like"]
script = '''
cd contract
PACKAGE=0xb8458434949bd826bf4fdb5ab785d4fa89c0d3060e9b0d96ae836d62a091fe50
NFT_ID=0x43ea6b4feb9cf61ae6211b9384a1d80893916e84fb11d57aad01b202691d4cf6
sui client call \
--package $PACKAGE \
--module issuer \
--function like \
--args \
$NFT_ID \
--gas-budget 123456789
'''