tx · 3T6MXhcZBsbS1fvshcTmh7B3woWdLfkNFzBz4EykeWsG 3MwFCBSWkWf9JMqmRyN5WEdoF2MCEPUB1Jx: -0.02000000 Waves 2025.01.18 01:45 [3463725] smart account 3MwFCBSWkWf9JMqmRyN5WEdoF2MCEPUB1Jx > SELF 0.00000000 Waves
{ "type": 13, "id": "3T6MXhcZBsbS1fvshcTmh7B3woWdLfkNFzBz4EykeWsG", "fee": 2000000, "feeAssetId": null, "timestamp": 1737154018013, "version": 2, "chainId": 84, "sender": "3MwFCBSWkWf9JMqmRyN5WEdoF2MCEPUB1Jx", "senderPublicKey": "BVdzAdt4eF9ScXGp5dwKiwoMQXBwMDeVSxLhL4LT1ceu", "proofs": [ "ohGUfK5DKUoT9BDduZa3Y2udgyZ6oYHkmqBLW3uY5rMwGYkbYLdNQEUKLod49bdSYsQJMzBYP5kgkiDNtfcvBak" ], "script": "base64:BwJFCAISAwoBCBIECgIIARIDCgEIEgQKAggBEgMKAQgSBAoCCAESAwoBCBIECgIICBIAEgMKAQESAwoBCBIDCgEIEgQKAggBPgEJaXNUZXN0RW52AAQHdGVzdGVudgQHJG1hdGNoMAkAmwgCBQR0aGlzAgdURVNURU5WAwkAAQIFByRtYXRjaDACB0Jvb2xlYW4EAXgFByRtYXRjaDAFAXgHBQd0ZXN0ZW52ARR0cnlHZXRTdHJpbmdFeHRlcm5hbAIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJ0IAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBYQUHJG1hdGNoMAUBYQIAAQ10cnlHZXRCb29sZWFuAQNrZXkEByRtYXRjaDAJAKAIAQUDa2V5AwkAAQIFByRtYXRjaDACB0Jvb2xlYW4EAWIFByRtYXRjaDAFAWIHAQx0cnlHZXRTdHJpbmcBA2tleQkBFHRyeUdldFN0cmluZ0V4dGVybmFsAgUEdGhpcwUDa2V5AQ10cnlHZXRJbnRlZ2VyAQNrZXkEByRtYXRjaDAJAJoI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l0ZXMJAJEDAggFAnR4BnByb29mcwACBQlmaXJzdFVzZXIAAQAABBBzZWNvbmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUKc2Vjb25kVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUKc2Vjb25kVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUKc2Vjb25kVXNlcgABAAAED3RoaXJkVXNlclNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXRoaXJkVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQl0aGlyZFVzZXIAAQAABA9zaWduYXR1cmVzQ291bnQJAGQCCQBkAgUPZmlyc3RVc2VyU2lnbmVkBRBzZWNvbmRVc2VyU2lnbmVkBQ90aGlyZFVzZXJTaWduZWQEByRtYXRjaDAFAnR4CQBnAgUPc2lnbmF0dXJlc0NvdW50AAE3wGB9", "height": 3463725, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cggm3Lkf3Y9AgiA4uCGWXcCJVcG76mytEE7VFkBMMqzY Next: none Diff:
Old | New | Differences | |
---|---|---|---|
89 | 89 | func staticKey_turtleBreederAddress () = "static_turtleBreederAddress" | |
90 | 90 | ||
91 | 91 | ||
92 | - | func staticKey_eagleBreederAddress () = "static_ | |
92 | + | func staticKey_eagleBreederAddress () = "static_eagleBreederAddress" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_rebirthAddress"))) | |
152 | 152 | func getFelineFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_felineStakingAddress"))) | |
153 | 153 | ||
154 | 154 | ||
155 | - | func getEagleFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_ | |
155 | + | func getEagleFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_eagleStakingAddress"))) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getCanineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineBreederAddress()))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func isTestEnv () = { | |
5 | 5 | let testenv = match getBoolean(this, "TESTENV") { | |
6 | 6 | case x: Boolean => | |
7 | 7 | x | |
8 | 8 | case _ => | |
9 | 9 | false | |
10 | 10 | } | |
11 | 11 | testenv | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
16 | 16 | case a: String => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | "" | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func tryGetBoolean (key) = match getBoolean(key) { | |
24 | 24 | case b: Boolean => | |
25 | 25 | b | |
26 | 26 | case _ => | |
27 | 27 | false | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func tryGetString (key) = tryGetStringExternal(this, key) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func tryGetInteger (key) = match getInteger(this, key) { | |
35 | 35 | case b: Int => | |
36 | 36 | b | |
37 | 37 | case _ => | |
38 | 38 | 0 | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getOracle () = Address(fromBase58String(tryGetString("static_oracleAddress"))) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func asInt (value) = match value { | |
46 | 46 | case int: Int => | |
47 | 47 | int | |
48 | 48 | case _ => | |
49 | 49 | throw("WAI: wrong type, expected: Int") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func staticKey_turtleStakingAddress () = "static_turtleStakingAddress" | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func staticKey_turtleRebirthAddress () = "static_turtleRebirthAddress" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func staticKey_ropeAddress () = "static_ropeAddress" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func staticKey_levelSystemAddress () = "static_levelSystemAddress" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func staticKey_spiceAssetId () = "static_spiceAssetId" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func staticKey_marketplace () = "static_marketplaceAddress" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func staticKey_capacityAddress () = "static_capacityAddress" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func staticKey_veggFarmingAddress () = "static_veggFarmingAddress" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func staticKey_itemsAddress () = "static_itemsAddress" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func staticKey_mutantFarmingAddress () = "static_mutantFarmingAddress" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func staticKey_canineBreederAddress () = "static_canineBreederAddress" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func staticKey_felineBreederAddress () = "static_felineBreederAddress" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func staticKey_turtleBreederAddress () = "static_turtleBreederAddress" | |
90 | 90 | ||
91 | 91 | ||
92 | - | func staticKey_eagleBreederAddress () = "static_ | |
92 | + | func staticKey_eagleBreederAddress () = "static_eagleBreederAddress" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_rebirthAddress"))) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_incubatorAddress"))) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_farmingAddressNew"))) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getGameDappAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_gameDappAddress"))) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getCapacityAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_capacityAddress()))) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_burnAddress"))) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func getBabyduckAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_babyDuckAddress"))) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func getBreedingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_breederAddress"))) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getMasterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_cfMasterAddress"))) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func getTurtleStakingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleStakingAddress()))) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getTurtleRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleRebirthAddress()))) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getRopeAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_ropeAddress()))) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getSpiceAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_spiceAssetId())) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getLevelSystemAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_levelSystemAddress()))) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getMarketPlaceAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_marketplace()))) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getVeggFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_veggFarmingAddress()))) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func getMutantFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_mutantFarmingAddress()))) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func getCanineFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_canineStakingAddress"))) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func getFelineFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_felineStakingAddress"))) | |
153 | 153 | ||
154 | 154 | ||
155 | - | func getEagleFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_ | |
155 | + | func getEagleFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_eagleStakingAddress"))) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getCanineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineBreederAddress()))) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getFelineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineBreederAddress()))) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getTurtleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleBreederAddress()))) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getEagleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_eagleBreederAddress()))) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | let wAccPKey = fromBase58String(valueOrErrorMessage(getString(getOracle(), "static_warsPKey"), "static_warsPKey not defined")) | |
171 | 171 | ||
172 | 172 | let scCanUseCoupons = [getRebirthAddress(), getIncubatorAddress(), getFarmingAddress(), getGameDappAddress(), getBabyduckAddress(), getBreedingAddress(), getTurtleStakingAddress(), getTurtleRebirthAddress(), getRopeAddress(), getLevelSystemAddress(), getMarketPlaceAddress(), getCapacityAddress(), getMutantFarmingAddress(), getCanineFarmingAddress(), getFelineFarmingAddress(), getEagleBreederAddress(), getCanineBreederAddress(), getFelineBreederAddress(), getTurtleBreederAddress(), getEagleFarmingAddress(), this] | |
173 | 173 | ||
174 | 174 | func couponsUserSpend (user) = (user + "_spend") | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func couponsUserActive (user) = (user + "_active") | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func couponsUserActiveOld (user) = (couponsUserActive(user) + "_old") | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func couponsSpendOnSc (sc) = (sc + "_spend_by_using") | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func actionPerAddressPerUserPerDay (user,action,dappAddress,day) = (((((((dappAddress + "_") + action) + "_") + user) + "_") + day) + "_actions") | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func actionPerAddressPerUserLastCheckDay (user,action) = (((action + "_") + user) + "_actions_check_day") | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func actionPerAddressPerUserAmountInARow (user,action) = (((action + "_") + user) + "_actions_amount_in_row") | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func userExperience (user) = (user + "_experience") | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func addCouponsInternal (user,amount) = { | |
199 | 199 | let keyOld = couponsUserActiveOld(user) | |
200 | 200 | let key = couponsUserActive(user) | |
201 | 201 | let couponsOld = tryGetInteger(key) | |
202 | 202 | let coupons = (couponsOld + amount) | |
203 | 203 | [IntegerEntry(keyOld, couponsOld), IntegerEntry(key, coupons)] | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | let startTsMs = 1695427200000 | |
208 | 208 | ||
209 | 209 | func calculateDaysSinceStart () = { | |
210 | 210 | let diff = (lastBlock.timestamp - startTsMs) | |
211 | 211 | let daysPassed = (diff / (86400 * 1000)) | |
212 | 212 | daysPassed | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func hasDoneTask7Days (day,address,actionName,rewardAmount,rewardAmountWeekly) = { | |
217 | 217 | let userExperienceKey = userExperience(address) | |
218 | 218 | let userExpTilldate = tryGetInteger(userExperienceKey) | |
219 | 219 | let checkDayKey = actionPerAddressPerUserLastCheckDay(address, actionName) | |
220 | 220 | let daysInRowKey = actionPerAddressPerUserAmountInARow(address, actionName) | |
221 | 221 | let lastCheckDay = tryGetInteger(checkDayKey) | |
222 | 222 | let daysInRow = tryGetInteger(daysInRowKey) | |
223 | 223 | let daysInRowUpdate = if ((lastCheckDay == (day - 1))) | |
224 | 224 | then (daysInRow + 1) | |
225 | 225 | else if (((day - 1) > lastCheckDay)) | |
226 | 226 | then 1 | |
227 | 227 | else 0 | |
228 | 228 | let lastCheckDayUpdate = day | |
229 | 229 | let reward = if ((daysInRowUpdate == 7)) | |
230 | 230 | then [ScriptTransfer(addressFromStringValue(address), rewardAmountWeekly, getSpiceAssetId()), IntegerEntry(daysInRowKey, 0)] | |
231 | 231 | else [IntegerEntry(daysInRowKey, daysInRowUpdate)] | |
232 | 232 | ([IntegerEntry(checkDayKey, lastCheckDayUpdate), ScriptTransfer(addressFromStringValue(address), rewardAmount, getSpiceAssetId()), IntegerEntry(userExperienceKey, (userExpTilldate + 1))] ++ reward) | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func payAction (actionName,userAddress,amount,day) = { | |
237 | 237 | let composedKey = if (tryGetBoolean((("TASK_" + actionName) + "_EVERY"))) | |
238 | 238 | then actionName | |
239 | 239 | else ((actionName + "_") + toString(amount)) | |
240 | 240 | if (tryGetBoolean(("TASK_" + composedKey))) | |
241 | 241 | then hasDoneTask7Days(day, toString(userAddress), composedKey, tryGetInteger((("TASK_" + composedKey) + "_REWARD_DAILY")), tryGetInteger((("TASK_" + composedKey) + "_REWARD_WEEKLY"))) | |
242 | 242 | else nil | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func recordActionInternal (actionName,addressCaller,address) = if (!(containsElement(scCanUseCoupons, addressCaller))) | |
247 | 247 | then throw("CRA: Only certain smart contracts can use this reward module!") | |
248 | 248 | else { | |
249 | 249 | let day = calculateDaysSinceStart() | |
250 | 250 | let actionKey = actionPerAddressPerUserPerDay(toString(address), actionName, toString(addressCaller), toString(day)) | |
251 | 251 | let totalActions = (tryGetInteger(actionKey) + 1) | |
252 | 252 | ([IntegerEntry(actionKey, totalActions)] ++ payAction(actionName, address, totalActions, day)) | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | @Callable(i) | |
257 | 257 | func configureOracle (oracle) = if ((i.caller != this)) | |
258 | 258 | then throw("CCO: admin only") | |
259 | 259 | else [StringEntry("static_oracleAddress", oracle)] | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(i) | |
264 | 264 | func addCoupons (user,amount) = if (if ((i.caller != this)) | |
265 | 265 | then (i.callerPublicKey != wAccPKey) | |
266 | 266 | else false) | |
267 | 267 | then throw("CAC: admin only") | |
268 | 268 | else if ((amount >= 10000000)) | |
269 | 269 | then (recordActionInternal("VEGG10000000", this, addressFromStringValue(user)) ++ addCouponsInternal(user, amount)) | |
270 | 270 | else if ((amount >= 500000)) | |
271 | 271 | then (recordActionInternal("VEGG500000", this, addressFromStringValue(user)) ++ addCouponsInternal(user, amount)) | |
272 | 272 | else addCouponsInternal(user, amount) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | ||
276 | 276 | @Callable(i) | |
277 | 277 | func resetCheater (user) = if (if ((i.caller != this)) | |
278 | 278 | then (i.callerPublicKey != wAccPKey) | |
279 | 279 | else false) | |
280 | 280 | then throw("CAC: admin only") | |
281 | 281 | else { | |
282 | 282 | let keyOld = couponsUserActiveOld(user) | |
283 | 283 | let key = couponsUserActive(user) | |
284 | 284 | let couponsOld = tryGetInteger(key) | |
285 | 285 | let coupons = -100000000 | |
286 | 286 | [IntegerEntry(keyOld, couponsOld), IntegerEntry(key, coupons)] | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | ||
291 | 291 | @Callable(i) | |
292 | 292 | func addCouponsFarming (user,amount) = if (if ((i.caller != getVeggFarmingAddress())) | |
293 | 293 | then (i.caller != getMutantFarmingAddress()) | |
294 | 294 | else false) | |
295 | 295 | then throw("Method only for farming sc!") | |
296 | 296 | else addCouponsInternal(user, amount) | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Callable(i) | |
301 | 301 | func addCouponsBatch (batch) = if (if ((i.caller != this)) | |
302 | 302 | then (i.callerPublicKey != wAccPKey) | |
303 | 303 | else false) | |
304 | 304 | then throw("CAC: admin only") | |
305 | 305 | else { | |
306 | 306 | let couponsList = split(batch, ";") | |
307 | 307 | func handleCoupon (acc,coupon) = { | |
308 | 308 | let splitArray = split(coupon, ":") | |
309 | 309 | let user = splitArray[0] | |
310 | 310 | let amount = parseIntValue(splitArray[1]) | |
311 | 311 | let burnCall = invoke(getBurnAddress(), "burnByInvoke", [amount], nil) | |
312 | 312 | if ((burnCall == burnCall)) | |
313 | 313 | then if ((amount >= 10000000)) | |
314 | 314 | then ((acc ++ recordActionInternal("VEGG10000000", this, addressFromStringValue(user))) ++ addCouponsInternal(user, amount)) | |
315 | 315 | else if ((amount >= 500000)) | |
316 | 316 | then ((acc ++ recordActionInternal("VEGG500000", this, addressFromStringValue(user))) ++ addCouponsInternal(user, amount)) | |
317 | 317 | else (acc ++ addCouponsInternal(user, amount)) | |
318 | 318 | else throw("Strict value is not equal to itself.") | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | let $l = couponsList | |
322 | 322 | let $s = size($l) | |
323 | 323 | let $acc0 = nil | |
324 | 324 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
325 | 325 | then $a | |
326 | 326 | else handleCoupon($a, $l[$i]) | |
327 | 327 | ||
328 | 328 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
329 | 329 | then $a | |
330 | 330 | else throw("List size exceeds 20") | |
331 | 331 | ||
332 | 332 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | ||
337 | 337 | @Callable(i) | |
338 | 338 | func CFRefund (recipient,amount) = { | |
339 | 339 | let cfAddress = getStringValue(i.caller, "CF_ADDRESS") | |
340 | 340 | let key = (("f_" + cfAddress) + "_stake_address") | |
341 | 341 | let stakeAddress = getStringValue(getMasterAddress(), key) | |
342 | 342 | if ((stakeAddress != toString(i.caller))) | |
343 | 343 | then throw("CCR: This is something fishy going on!") | |
344 | 344 | else addCouponsInternal(recipient, amount) | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | ||
349 | 349 | @Callable(i) | |
350 | 350 | func questOnePetNft (assetId) = { | |
351 | 351 | let invoker = toString(i.caller) | |
352 | 352 | let type = if ((value(assetInfo(fromBase58String(assetId))).issuer == getBreedingAddress())) | |
353 | 353 | then "DUCK" | |
354 | 354 | else if ((value(assetInfo(fromBase58String(assetId))).issuer == getCanineBreederAddress())) | |
355 | 355 | then "CANINE" | |
356 | 356 | else if ((value(assetInfo(fromBase58String(assetId))).issuer == getFelineBreederAddress())) | |
357 | 357 | then "FELINE" | |
358 | 358 | else if ((value(assetInfo(fromBase58String(assetId))).issuer == getTurtleBreederAddress())) | |
359 | 359 | then "TURTLE" | |
360 | 360 | else throw("Unsupported NFT!") | |
361 | 361 | let invokedKey = (((("q1_" + type) + "_") + invoker) + "_invoked") | |
362 | 362 | let amountNftInvokedKey = (("q1_" + assetId) + "_amount_invoked") | |
363 | 363 | let typesCompletedKey = (("q1_" + invoker) + "_completed") | |
364 | 364 | let totalPetKey = "q1_total" | |
365 | 365 | if (tryGetBoolean(invokedKey)) | |
366 | 366 | then throw("You already invoked this type!") | |
367 | 367 | else ([BooleanEntry(invokedKey, true), IntegerEntry(amountNftInvokedKey, (tryGetInteger(amountNftInvokedKey) + 1)), IntegerEntry(typesCompletedKey, (tryGetInteger(typesCompletedKey) + 1)), IntegerEntry(totalPetKey, (tryGetInteger(totalPetKey) + 1))] ++ addCouponsInternal(toString(i.caller), 60000000)) | |
368 | 368 | } | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | ||
372 | 372 | @Callable(i) | |
373 | 373 | func questTwoBuyPerches (type,color) = { | |
374 | 374 | let invoker = toString(i.caller) | |
375 | 375 | let typesCompletedKey = (("q1_" + invoker) + "_completed") | |
376 | 376 | if ((4 > tryGetInteger(typesCompletedKey))) | |
377 | 377 | then throw("You need to complete the first quest!") | |
378 | 378 | else { | |
379 | 379 | let method = if ((type == "TURTLE")) | |
380 | 380 | then "addFreeBeach" | |
381 | 381 | else "addFreePerch" | |
382 | 382 | let invokeRes = asInt(invoke(this, "useCoupons", [50000000], nil)) | |
383 | 383 | if ((invokeRes == invokeRes)) | |
384 | 384 | then if ((invokeRes != 0)) | |
385 | 385 | then throw("Not enough vEGG to complet this quest!") | |
386 | 386 | else { | |
387 | 387 | let invokeAddress = if ((type == "TURTLE")) | |
388 | 388 | then getTurtleStakingAddress() | |
389 | 389 | else if ((type == "CANINE")) | |
390 | 390 | then getCanineFarmingAddress() | |
391 | 391 | else if ((type == "FELINE")) | |
392 | 392 | then getFelineFarmingAddress() | |
393 | 393 | else if ((type == "DUCK")) | |
394 | 394 | then getBreedingAddress() | |
395 | 395 | else throw("Unsupported type!") | |
396 | 396 | let invokeRes2 = invoke(invokeAddress, method, [invoker, color], nil) | |
397 | 397 | let invokedKey = (((("q2_" + type) + "_") + invoker) + "_invoked") | |
398 | 398 | let amountNftInvokedKey = (("q2_" + type) + "_amount_invoked") | |
399 | 399 | let typesQ2CompletedKey = (("q2_" + invoker) + "_completed") | |
400 | 400 | let totalQ2Key = "q2_total" | |
401 | 401 | if (tryGetBoolean(invokedKey)) | |
402 | 402 | then throw("You already invoked this type!") | |
403 | 403 | else ([BooleanEntry(invokedKey, true), IntegerEntry(amountNftInvokedKey, (tryGetInteger(amountNftInvokedKey) + 1)), IntegerEntry(typesQ2CompletedKey, (tryGetInteger(typesQ2CompletedKey) + 1)), IntegerEntry(totalQ2Key, (tryGetInteger(totalQ2Key) + 1))] ++ addCouponsInternal(toString(i.caller), 20000000)) | |
404 | 404 | } | |
405 | 405 | else throw("Strict value is not equal to itself.") | |
406 | 406 | } | |
407 | 407 | } | |
408 | 408 | ||
409 | 409 | ||
410 | 410 | ||
411 | 411 | @Callable(i) | |
412 | 412 | func questThree () = { | |
413 | 413 | let invoker = toString(i.caller) | |
414 | 414 | let typesCompletedKey = (("q1_" + invoker) + "_completed") | |
415 | 415 | if ((4 > tryGetInteger(typesCompletedKey))) | |
416 | 416 | then throw("You need to complete the first quest!") | |
417 | 417 | else { | |
418 | 418 | let invokeRes1 = asInt(invoke(this, "useCoupons", [100000000], nil)) | |
419 | 419 | if ((invokeRes1 == invokeRes1)) | |
420 | 420 | then if ((invokeRes1 != 0)) | |
421 | 421 | then throw("Not enough vEGG to complet this quest!") | |
422 | 422 | else { | |
423 | 423 | let invokeKey = (("q3_" + invoker) + "_invoked") | |
424 | 424 | let totalQ3Key = "q3_total" | |
425 | 425 | if (tryGetBoolean(invokeKey)) | |
426 | 426 | then throw("You already invoked this type!") | |
427 | 427 | else { | |
428 | 428 | let invokeRes2 = invoke(getBabyduckAddress(), "issueFreeDuckling", [invoker, toBase58String(i.transactionId), 20], nil) | |
429 | 429 | if ((invokeRes2 == invokeRes2)) | |
430 | 430 | then ([BooleanEntry(invokeKey, true), IntegerEntry(totalQ3Key, (tryGetInteger(totalQ3Key) + 1))] ++ addCouponsInternal(toString(i.caller), 110000000)) | |
431 | 431 | else throw("Strict value is not equal to itself.") | |
432 | 432 | } | |
433 | 433 | } | |
434 | 434 | else throw("Strict value is not equal to itself.") | |
435 | 435 | } | |
436 | 436 | } | |
437 | 437 | ||
438 | 438 | ||
439 | 439 | ||
440 | 440 | @Callable(i) | |
441 | 441 | func useCoupons (amountTryingToPay) = { | |
442 | 442 | let invokingSc = i.caller | |
443 | 443 | if ((0 > amountTryingToPay)) | |
444 | 444 | then throw("CUC: Only positive amount of money can be paid!") | |
445 | 445 | else if (!(containsElement(scCanUseCoupons, invokingSc))) | |
446 | 446 | then throw("CUC: Only certain smart contracts can use this coupon module!") | |
447 | 447 | else { | |
448 | 448 | let user = toString(i.originCaller) | |
449 | 449 | let keyActive = couponsUserActive(user) | |
450 | 450 | let availableCoupons = tryGetInteger(keyActive) | |
451 | 451 | if ((0 > availableCoupons)) | |
452 | 452 | then throw("CUC: Get rekt!") | |
453 | 453 | else { | |
454 | 454 | let leftToPay = if ((amountTryingToPay > availableCoupons)) | |
455 | 455 | then (amountTryingToPay - availableCoupons) | |
456 | 456 | else 0 | |
457 | 457 | let amountPaid = (amountTryingToPay - leftToPay) | |
458 | 458 | let availableCouponsLeft = (availableCoupons - amountPaid) | |
459 | 459 | if ((0 > availableCouponsLeft)) | |
460 | 460 | then throw("CUC: You try to overspend!") | |
461 | 461 | else { | |
462 | 462 | let keySpend = couponsUserSpend(user) | |
463 | 463 | let keyOld = couponsUserActiveOld(user) | |
464 | 464 | let keySpendSc = couponsSpendOnSc(toString(i.caller)) | |
465 | 465 | let topUp = invoke(getVeggFarmingAddress(), "topUpReward", [((amountPaid / 100) * 25)], nil) | |
466 | 466 | if ((topUp == topUp)) | |
467 | 467 | then { | |
468 | 468 | let topUp2 = if ((invokingSc == getMutantFarmingAddress())) | |
469 | 469 | then unit | |
470 | 470 | else invoke(getMutantFarmingAddress(), "topUpReward", ["VEGG", ((amountPaid / 100) * 15)], nil) | |
471 | 471 | if ((topUp2 == topUp2)) | |
472 | 472 | then { | |
473 | 473 | let totalSpend = (tryGetInteger(keySpend) + amountPaid) | |
474 | 474 | let totalSpendSc = (tryGetInteger(keySpendSc) + amountPaid) | |
475 | 475 | $Tuple2([IntegerEntry(keySpend, totalSpend), IntegerEntry(keyOld, availableCoupons), IntegerEntry(keyActive, availableCouponsLeft), IntegerEntry(keySpendSc, totalSpendSc)], amountPaid) | |
476 | 476 | } | |
477 | 477 | else throw("Strict value is not equal to itself.") | |
478 | 478 | } | |
479 | 479 | else throw("Strict value is not equal to itself.") | |
480 | 480 | } | |
481 | 481 | } | |
482 | 482 | } | |
483 | 483 | } | |
484 | 484 | ||
485 | 485 | ||
486 | 486 | ||
487 | 487 | @Callable(i) | |
488 | 488 | func recordAction (actionName) = recordActionInternal(actionName, i.caller, i.originCaller) | |
489 | 489 | ||
490 | 490 | ||
491 | 491 | ||
492 | 492 | @Callable(i) | |
493 | 493 | func increaseExp (address) = if ((i.caller != getItemsAddress())) | |
494 | 494 | then nil | |
495 | 495 | else { | |
496 | 496 | let userExperienceKey = userExperience(address) | |
497 | 497 | let userExpTilldate = tryGetInteger(userExperienceKey) | |
498 | 498 | [IntegerEntry(userExperienceKey, (userExpTilldate + 1))] | |
499 | 499 | } | |
500 | 500 | ||
501 | 501 | ||
502 | 502 | ||
503 | 503 | @Callable(i) | |
504 | 504 | func increaseExpDefined (address,amount) = if ((i.caller != getItemsAddress())) | |
505 | 505 | then nil | |
506 | 506 | else { | |
507 | 507 | let userExperienceKey = userExperience(address) | |
508 | 508 | let userExpTilldate = tryGetInteger(userExperienceKey) | |
509 | 509 | [IntegerEntry(userExperienceKey, (userExpTilldate + amount))] | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | @Verifier(tx) | |
514 | 514 | func verify () = if (isTestEnv()) | |
515 | 515 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
516 | 516 | else { | |
517 | 517 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
518 | 518 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
519 | 519 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
520 | 520 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
521 | 521 | then 1 | |
522 | 522 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
523 | 523 | then 1 | |
524 | 524 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
525 | 525 | then 1 | |
526 | 526 | else 0 | |
527 | 527 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
528 | 528 | then 1 | |
529 | 529 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
530 | 530 | then 1 | |
531 | 531 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
532 | 532 | then 1 | |
533 | 533 | else 0 | |
534 | 534 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
535 | 535 | then 1 | |
536 | 536 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
537 | 537 | then 1 | |
538 | 538 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
539 | 539 | then 1 | |
540 | 540 | else 0 | |
541 | 541 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
542 | 542 | match tx { | |
543 | 543 | case _ => | |
544 | 544 | (signaturesCount >= 1) | |
545 | 545 | } | |
546 | 546 | } | |
547 | 547 |
github/deemru/w8io/169f3d6 55.95 ms ◑