1+ # Test Mnemonic
2+ # source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast
3+
4+ # Test Accounts
5+ # gnokey add -recover=true -index 10 gsa
6+ # gnokey add -recover=true -index 11 lp01
7+ # gnokey add -recover=true -index 12 lp02
8+ # gnokey add -recover=true -index 13 tr01
9+
10+ ADDR_GSA := g12l9splsyngcgefrwa52x5a7scc29e9v086m6p4
11+ ADDR_LP01 := g1jqpr8r5akez83kp7ers0sfjyv2kgx45qa9qygd
12+ ADDR_LP02 := g126yz2f34qdxaqxelmky40dym379q0vw3yzhyrq
13+ ADDR_TR01 := g1wgdjecn5lylgvujzyspfzvhjm6qn4z8xqyyxdn
14+
15+ ADDR_POOL := g1ee305k8yk0pjz443xpwtqdyep522f9g5r7d63w
16+ ADDR_POS := g1htpxzv2dkplvzg50nd8fswrneaxmdpwn459thx
17+ ADDR_STAKER := g13h5s9utqcwg3a655njen0p89txusjpfrs3vxp8
18+ ADDR_ROUTER := g1ernz3lj85hnn3ucug73ymgkhqdv2lg8e4yd48e
19+ ADDR_GOV := g1wj5lwwmkru3ky6dh2zztanrcj2ups8g0pfe8cu
20+
21+ TX_EXPIRE := 9999999999
22+
23+ NOW := $(shell date +% s)
24+ INCENTIVE_START := $(shell expr $(NOW ) + 120)
25+ INCENTIVE_END := $(shell expr $(NOW ) + 7776000) # 90 DAY
26+
27+ MAKEFILE := $(shell realpath $(firstword $(MAKEFILE_LIST ) ) )
28+ GNOLAND_RPC_URL ?= localhost:26657
29+ CHAINID ?= dev
30+ ROOT_DIR: =$(shell dirname $(MAKEFILE ) ) /..
31+
32+ .PHONY : help
33+ help :
34+ @echo " Available make commands:"
35+ @cat $(MAKEFILE ) | grep ' ^[a-z][^:]*:' | cut -d: -f1 | sort | sed ' s/^/ /'
36+
37+ .PHONY : all
38+ all : deploy faucet-approve pool-setup position-mint staker-stake router-swap staker-unstake done
39+
40+ .PHONY : deploy
41+ deploy : deploy-foo deploy-bar deploy-baz deploy-qux deploy-wugnot deploy-gns deploy-obl deploy-gnft deploy-gov deploy-pool deploy-position deploy-staker deploy-router deploy-grc20_wrapper
42+
43+ .PHONY : faucet-approve
44+ faucet-approve : faucet-approve-lp01 faucet-approve-lp02 faucet-approve-tr01 faucet-approve-gsa
45+
46+ .PHONY : pool-setup
47+ pool-setup : pool-init pool-create
48+
49+ .PHONY : position-mint
50+ position-mint : mint-01 mint-02 mint-03 mint-rest
51+
52+ .PHONY : staker-stake
53+ staker-stake : stake-token-1 stake-token-2
54+
55+ .PHONY : router-swap
56+ router-swap : set-protocol-fee swap-exact-in-single swap-exact-out-multi collect-lp01 collect-lp02
57+
58+ .PHONY : staker-unstake
59+ staker-unstake : unstake-token-1 unstake-token-2
60+
61+ # Deploy Tokens
62+ # [GRC20] FOO, BAR, BAZ, QUX: Token Pair for Pool
63+ # [GRC20] WUGNOT: Wrapped GRC20 for native ugnot
64+ # [GRC20] GNS: Default Staking Reward
65+ # [GRC20] OBL: External Staking Reward
66+ # [GRC721] GNFT: LP Token
67+ deploy-foo :
68+ $(info ************ [FOO] deploy foo ************ )
69+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/foo -pkgpath gno.land/r/foo -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
70+ @echo
71+
72+ deploy-bar :
73+ $(info ************ [BAR] deploy bar ************ )
74+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/bar -pkgpath gno.land/r/bar -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
75+ @echo
76+
77+ deploy-baz :
78+ $(info ************ [BAZ] deploy baz ************ )
79+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/baz -pkgpath gno.land/r/baz -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
80+ @echo
81+
82+ deploy-qux :
83+ $(info ************ [QUX] deploy qux ************ )
84+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/qux -pkgpath gno.land/r/qux -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
85+ @echo
86+
87+ deploy-wugnot :
88+ $(info ************ [WUGNOT] deploy wugnot ************ )
89+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/wugnot -pkgpath gno.land/r/wugnot -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
90+ @echo
91+
92+ deploy-gns :
93+ $(info ************ [GNS] deploy staking reward ************ )
94+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/gns -pkgpath gno.land/r/gns -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
95+ @echo
96+
97+ deploy-obl :
98+ $(info ************ [OBL] deploy external staking reward ************ )
99+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/obl -pkgpath gno.land/r/obl -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
100+ @echo
101+
102+ deploy-gnft :
103+ $(info ************ [GNFT] deploy lp token ************ )
104+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/gnft -pkgpath gno.land/r/gnft -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
105+ @echo
106+
107+
108+ # Deploy Contracts
109+ deploy-gov :
110+ $(info ************ [GOV] deploy governance ************ )
111+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /gov -pkgpath gno.land/r/gov -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
112+ @echo
113+
114+ deploy-pool :
115+ $(info ************ [POOL] deploy pool ************ )
116+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /pool -pkgpath gno.land/r/pool -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
117+ @echo
118+
119+ deploy-position :
120+ $(info ************ [POSITION] deploy position ************ )
121+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /position -pkgpath gno.land/r/position -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
122+ @echo
123+
124+ deploy-staker :
125+ $(info ************ [STAKER] deploy staker ************ )
126+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /staker -pkgpath gno.land/r/staker -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
127+ @echo
128+
129+ deploy-router :
130+ $(info ************ [ROUTER] deploy router ************ )
131+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /router -pkgpath gno.land/r/router -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
132+ @echo
133+
134+ deploy-grc20_wrapper :
135+ $(info ************ [GRC20 Wrapper] deploy grc20_wrapper ************ )
136+ @echo " " | gnokey maketx addpkg -pkgdir $(ROOT_DIR ) /_setup/grc20_wrapper -pkgpath gno.land/r/grc20_wrapper -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
137+ @echo
138+
139+
140+ # Facuet Tokens & Approve Tokens
141+ faucet-approve-lp01 :
142+ $(info ************ [Faucet & Approve ] lp01 ************ )
143+ @echo " " | gnokey sign -txpath multi_msg_01.txt -insecure-password-stdin=true -chainid $(CHAINID ) -number 1 -sequence 0 lp01 > signed01.tx
144+ gnokey broadcast -remote $(GNOLAND_RPC_URL ) signed01.tx > /dev/null
145+
146+ faucet-approve-lp02 :
147+ $(info ************ [Faucet & Approve ] lp02 ************ )
148+ @echo " " | gnokey sign -txpath multi_msg_02.txt -insecure-password-stdin=true -chainid $(CHAINID ) -number 2 -sequence 0 lp02 > signed02.tx
149+ gnokey broadcast -remote $(GNOLAND_RPC_URL ) signed02.tx > /dev/null
150+
151+ faucet-approve-tr01 :
152+ $(info ************ [Faucet & Approve ] tr01 ************ )
153+ @echo " " | gnokey sign -txpath multi_msg_03.txt -insecure-password-stdin=true -chainid $(CHAINID ) -number 3 -sequence 0 tr01 > signed03.tx
154+ gnokey broadcast -remote $(GNOLAND_RPC_URL ) signed03.tx > /dev/null
155+
156+ faucet-approve-gsa :
157+ $(info ************ [Faucet & Approve ] gsa ************ )
158+ @echo " " | gnokey sign -txpath multi_msg_04.txt -insecure-password-stdin=true -chainid $(CHAINID ) -number 0 -sequence 0 gsa > signed04.tx
159+ gnokey broadcast -remote $(GNOLAND_RPC_URL ) signed04.tx > /dev/null
160+
161+
162+ # Pool
163+ pool-init :
164+ $(info ************ [POOL] init pool ************ )
165+ @echo " " | gnokey maketx call -pkgpath gno.land/r/pool -func InitManual -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " gsa > /dev/null
166+ @echo
167+
168+ pool-create :
169+ $(info ************ [POOL] create pools ************ )
170+ @echo " " | gnokey maketx call -pkgpath gno.land/r/pool -func CreatePool -args " gnot" -args " gno.land/r/bar" -args 100 -args 101729702841318637793976746270 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " gsa > /dev/null
171+ @echo " " | gnokey maketx call -pkgpath gno.land/r/pool -func CreatePool -args " gno.land/r/bar" -args " gno.land/r/baz" -args 100 -args 101729702841318637793976746270 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " gsa > /dev/null
172+ @echo " " | gnokey maketx call -pkgpath gno.land/r/pool -func CreatePool -args " gno.land/r/baz" -args " gno.land/r/qux" -args 100 -args 101729702841318637793976746270 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " gsa > /dev/null
173+
174+ @echo "" | gnokey maketx call -pkgpath gno.land/r/pool -func CreatePool -args "gnot" -args "gno.land/r/bar" -args 500 -args 101729702841318637793976746270 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL) -broadcast=true -chainid $(CHAINID) -gas-fee 1ugnot -gas-wanted 9000000 -memo "" gsa > /dev/null
175+ @echo "" | gnokey maketx call -pkgpath gno.land/r/pool -func CreatePool -args "gno.land/r/bar" -args "gno.land/r/baz" -args 500 -args 101729702841318637793976746270 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL) -broadcast=true -chainid $(CHAINID) -gas-fee 1ugnot -gas-wanted 9000000 -memo "" gsa > /dev/null
176+ @echo "" | gnokey maketx call -pkgpath gno.land/r/pool -func CreatePool -args "gno.land/r/baz" -args "gno.land/r/qux" -args 500 -args 101729702841318637793976746270 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL) -broadcast=true -chainid $(CHAINID) -gas-fee 1ugnot -gas-wanted 9000000 -memo "" gsa > /dev/null
177+ @echo
178+
179+
180+ # Position
181+ mint-01 :
182+ $(info ************ [POSITION - 1] mint gnot & bar // tick range 4000 ~ 6000 // by lp01 ************ )
183+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Mint -args " gnot" -args " gno.land/r/bar" -args 100 -args 4000 -args 6000 -args 10000000 -args 10000000 -args 0 -args 0 -args $(TX_EXPIRE ) -send " 10000000ugnot" -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp01 > /dev/null
184+ @echo
185+
186+ mint-02 :
187+ $(info ************ [POSITION - 2] mint bar & baz // tick range 4000 ~ 6000 // by lp02 ************ )
188+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Mint -args " gno.land/r/bar" -args " gno.land/r/baz" -args 100 -args 4000 -args 6000 -args 10000000 -args 10000000 -args 0 -args 0 -args $(TX_EXPIRE ) -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
189+ @echo
190+
191+ mint-03 :
192+ $(info ************ [POSITION - 3] mint baz & qux // tick range 4000 ~ 6000 // by lp02 ************ )
193+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Mint -args " gno.land/r/baz" -args " gno.land/r/qux" -args 100 -args 4000 -args 6000 -args 10000000 -args 10000000 -args 0 -args 0 -args $(TX_EXPIRE ) -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
194+ @echo
195+
196+ mint-rest :
197+ $(info ************ [POSITION - 4,5,6] ************ )
198+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Mint -args " gno.land/r/bar" -args " gnot" -args 500 -args -6000 -args -4000 -args 10000000 -args 10000000 -args 0 -args 0 -args $(TX_EXPIRE ) -send " 10000000ugnot" -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp01 > /dev/null
199+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Mint -args " gno.land/r/bar" -args " gno.land/r/baz" -args 500 -args 4000 -args 6000 -args 10000000 -args 10000000 -args 0 -args 0 -args $(TX_EXPIRE ) -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
200+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Mint -args " gno.land/r/baz" -args " gno.land/r/qux" -args 500 -args 4000 -args 6000 -args 10000000 -args 10000000 -args 0 -args 0 -args $(TX_EXPIRE ) -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
201+ @echo
202+
203+
204+ # Staker
205+ create-external-incentive :
206+ $(info ************ [STAKER] create external incentive ************ )
207+ @echo " " | gnokey maketx call -pkgpath gno.land/r/staker -func CreateExternalIncentive -args " gno.land/r/bar:gnot:100" -args " gno.land/r/obl" -args 10000000000 -args $(INCENTIVE_START ) -args $(INCENTIVE_END ) -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " gsa > /dev/null
208+ @echo
209+
210+ stake-token-1 :
211+ $(info ************ [STAKER] stake gnft tokenId 1)
212+ @$(MAKE ) -f $(MAKEFILE ) skip-time
213+ @echo " " | gnokey maketx call -pkgpath gno.land/r/gnft -func Approve -args $(ADDR_STAKER ) -args " 1" -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp01 > /dev/null
214+ @echo " " | gnokey maketx call -pkgpath gno.land/r/staker -func StakeToken -args 1 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp01 > /dev/null
215+ @echo
216+
217+ stake-token-2 :
218+ $(info ************ [STAKER] stake gnft tokenId 2)
219+ @$(MAKE ) -f $(MAKEFILE ) skip-time
220+ @echo " " | gnokey maketx call -pkgpath gno.land/r/gnft -func Approve -args $(ADDR_STAKER ) -args " 2" -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
221+ @echo " " | gnokey maketx call -pkgpath gno.land/r/staker -func StakeToken -args 2 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
222+ @echo
223+
224+
225+ # Swap
226+ set-protocol-fee :
227+ $(info ************ [POOL] Set Protocol Fee ************ )
228+ @echo " " | gnokey maketx call -pkgpath gno.land/r/pool -func SetFeeProtocol -args 6 -args 8 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " gsa > /dev/null
229+ @echo
230+
231+ swap-exact-in-single :
232+ $(info ************ [ROUTER] Swap 123_456 BAR to BAZ // singlePath ************ )
233+ @echo " " | gnokey maketx call -pkgpath gno.land/r/router -func SwapRoute -args " gno.land/r/bar" -args " gno.land/r/baz" -args 123456 -args " EXACT_IN" -args " gno.land/r/bar:gno.land/r/baz:100" -args " 100" -args 200000 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " tr01 > /dev/null
234+ @echo
235+
236+ swap-exact-out-multi :
237+ $(info ************ [ROUTER] Swap NATIVE ugnot to 987_654 QUX // multiPath ************ )
238+ @echo " " | gnokey maketx call -pkgpath gno.land/r/router -func SwapRoute -args " gnot" -args " gno.land/r/qux" -args 987654 -args " EXACT_OUT" -args " gnot:gno.land/r/bar:100*POOL*gno.land/r/bar:gno.land/r/baz:100*POOL*gno.land/r/baz:gno.land/r/qux:100,gnot:gno.land/r/bar:500*POOL*gno.land/r/bar:gno.land/r/baz:500*POOL*gno.land/r/baz:gno.land/r/qux:500" -args " 40,60" -args 654321 -send 100000000ugnot -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " tr01 > /dev/null
239+ @echo
240+
241+ collect-lp01 :
242+ $(info ************ [POSITION] Collect swap fee at position of tokenId 1 ************ )
243+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Collect -args 1 -args $(ADDR_LP01 ) -args 1000000 -args 1000000 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp01 > /dev/null
244+ @echo
245+
246+ collect-lp02 :
247+ $(info ************ [POSITION] Collect swap fee at position of tokenId 2 ************ )
248+ @echo " " | gnokey maketx call -pkgpath gno.land/r/position -func Collect -args 2 -args $(ADDR_LP02 ) -args 1000000 -args 1000000 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
249+ @echo
250+
251+
252+ # # Staker // Unstake
253+ unstake-token-1 :
254+ $(info ************ [STAKER] unstake gnft tokenId 1 ************ )
255+ @$(MAKE ) -f $(MAKEFILE ) skip-time
256+ @echo " " | gnokey maketx call -pkgpath gno.land/r/staker -func UnstakeToken -args 1 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp01 > /dev/null
257+ @echo
258+
259+ unstake-token-2 :
260+ $(info ************ [STAKER] unstake gnft tokenId 2 ************ )
261+ @$(MAKE ) -f $(MAKEFILE ) skip-time
262+ @echo " " | gnokey maketx call -pkgpath gno.land/r/staker -func UnstakeToken -args 2 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " lp02 > /dev/null
263+ @echo
264+
265+ # ## can not test staker EndExternalIncentive
266+ # ## it needs to wait for 90 days ( which we can't skip it in makefiles )
267+
268+ done :
269+ @echo " " | gnokey maketx send -send 1ugnot -to $(ADDR_GOV ) -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
270+
271+ # # ETC
272+ # gno time.Now returns last block time, not actual time
273+ # so to skip time, we need new block
274+ skip-time :
275+ $(info > SKIP 3 BLOCKS)
276+ @echo " " | gnokey maketx send -send 1ugnot -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
277+ @echo " " | gnokey maketx send -send 1ugnot -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
278+ @echo " " | gnokey maketx send -send 1ugnot -to g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 -insecure-password-stdin=true -remote $(GNOLAND_RPC_URL ) -broadcast=true -chainid $(CHAINID ) -gas-fee 1ugnot -gas-wanted 9000000 -memo " " test1 > /dev/null
279+ @echo
0 commit comments