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