-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
106 lines (92 loc) · 2.76 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Name of the key to use for the transactions
KEY_NAME ?= test
# Password of the key to use for the transactions
KEY_PASSWORD ?=
# Remote gno.land node address
REMOTE ?= localhost:26657
help:
@echo "Available make commands:"
@cat Makefile | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /'
all: install populate
install-package-book:
@echo Adding book package...
@gnokey maketx addpkg \
-pkgpath="gno.land/p/demo/jeronimoalbi/book" \
-pkgdir="p/demo/jeronimoalbi/book" \
-deposit="1ugnot" \
-gas-fee="1ugnot" \
-gas-wanted="2000000" \
-chainid="dev" \
-remote="$(REMOTE)" \
-broadcast \
-insecure-password-stdin \
$(KEY_NAME) <<< "$(KEY_PASSWORD)"
install-package-testhelpers:
@echo Adding testhelpers package...
@gnokey maketx addpkg \
-pkgpath="gno.land/p/demo/jeronimoalbi/testhelpers" \
-pkgdir="p/demo/jeronimoalbi/testhelpers" \
-deposit="1ugnot" \
-gas-fee="1ugnot" \
-gas-wanted="2000000" \
-chainid="dev" \
-remote="$(REMOTE)" \
-broadcast \
-insecure-password-stdin \
$(KEY_NAME) <<< "$(KEY_PASSWORD)"
install-realm-library:
@echo Adding library realm...
@gnokey maketx addpkg \
-pkgpath="gno.land/r/demo/jeronimoalbi/library" \
-pkgdir="r/demo/jeronimoalbi/library" \
-deposit="1ugnot" \
-gas-fee="1ugnot" \
-gas-wanted="2000000" \
-chainid="dev" \
-remote="$(REMOTE)" \
-broadcast \
-insecure-password-stdin \
$(KEY_NAME) <<< "$(KEY_PASSWORD)"
install-realm-page:
@echo Adding realm for PAGE token...
@gnokey maketx addpkg \
-pkgpath="gno.land/r/demo/jeronimoalbi/page" \
-pkgdir=r/demo/jeronimoalbi/page \
-deposit="1ugnot" \
-gas-fee="1ugnot" \
-gas-wanted="2000000" \
-chainid="dev" \
-remote="$(REMOTE)" \
-broadcast \
-insecure-password-stdin \
$(KEY_NAME) <<< "$(KEY_PASSWORD)"
install-realm-bookclub:
@echo Adding book club realm...
@gnokey maketx addpkg \
-pkgpath="gno.land/r/demo/jeronimoalbi/bookclub" \
-pkgdir=r/demo/jeronimoalbi/bookclub \
-deposit="1ugnot" \
-gas-fee="1ugnot" \
-gas-wanted="2000000" \
-chainid="dev" \
-remote="$(REMOTE)" \
-broadcast \
-insecure-password-stdin \
$(KEY_NAME) <<< "$(KEY_PASSWORD)"
install-packages: install-package-book install-package-testhelpers
install-realms: install-realm-library install-realm-page install-realm-bookclub
install: install-packages install-realms
populate-library:
@echo Adding example book to the library
@gnokey maketx call \
-pkgpath="gno.land/r/demo/jeronimoalbi/library" \
-func="Add" \
-args="The Hitchhiker's Guide to the Galaxy" \
-gas-fee="1ugnot" \
-gas-wanted="2000000" \
-chainid="dev" \
-remote="$(REMOTE)" \
-broadcast \
-insecure-password-stdin \
$(KEY_NAME) <<< "$(KEY_PASSWORD)"
populate: populate-library