tx · 4hn21P4gYWSAu3vjZi2jqG2GELQpf9wfcn3yrEBb2o8V 3N1ZfechNGoBTZyzvCAxGXPKchL4C6438dr: -0.03300000 Waves 2024.10.07 20:24 [3316719] smart account 3N1ZfechNGoBTZyzvCAxGXPKchL4C6438dr > SELF 0.00000000 Waves
{ "type": 13, "id": "4hn21P4gYWSAu3vjZi2jqG2GELQpf9wfcn3yrEBb2o8V", "fee": 3300000, "feeAssetId": null, "timestamp": 1728321921431, "version": 2, "chainId": 84, "sender": "3N1ZfechNGoBTZyzvCAxGXPKchL4C6438dr", "senderPublicKey": "9JhgPDL4uV7b9tRjpNxGkGVDsbQ2qkEWfjt64wysYmKQ", "proofs": [ "4ekahx4iU7C2tMmSTTiGhfuHLSUcRiThG75L9PYSnJHGXSUq9vzfmKbMLHvXtig9NMrCC7y3LpEGU6QdrNyJYLAb" ], "script": "base64:BgJbCAISABIDCgEIEgMKAQgSBAoCCAESAwoBCBIECgIBCBIECgIBCBIDCgEIEgMKAQgSBAoCCAgSABIAEgASABIECgIICBIFCgMICAESAwoBARIKCggBCAEECAEBAU4BF3N0YXRpY0tleV9vcmFjbGVBZGRyZXNzAAIUc3RhdGljX29yYWNsZUFkZHJlc3MBGHN0YXRpY0tleV9icmVlZGVyQWRkcmVzcwACFXN0YXRpY19icmVlZGVyQWRkcmVzcwEUc3RhdGljS2V5X2VnZ0Fzc2V0SWQAAhFzdGF0aWNfZWdnQXNzZXRJZAEac3RhdGljS2V5X3RydXN0ZWRDb250cmFjdHMAAhdzdGF0aWNfdHJ1c3RlZENvbnRyYWN0cwEYc3RhdGljS2V5X3JlYmlydGhBZGRyZXNzAAIVc3RhdGljX3JlYmlydGhBZGRyZXNzAR5zdGF0aWNLZXlfdHVydGxlUmViaXJ0aEFkZHJlc3MAAhtzdGF0aWNfdHVydGxlUmViaXJ0aEFkZHJlc3MBFnN0YXRpY0tleV9waXBlbGluZVVzZXIAAhNzdGF0aWNfcGlwZWxpbmVVc2VyARJzdGF0aWNLZ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0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQpzZWNvbmRVc2VyAAEAAAQPdGhpcmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAvpy5Yo=", "height": 3316719, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 2qLvP16Hmrw7N3cJb7Dwt1J4S1EdvqYLoEnhP2SHihaC Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func staticKey_oracleAddress () = "static_oracleAddress" | |
5 | + | ||
6 | + | ||
7 | + | func staticKey_breederAddress () = "static_breederAddress" | |
8 | + | ||
9 | + | ||
10 | + | func staticKey_eggAssetId () = "static_eggAssetId" | |
11 | + | ||
12 | + | ||
13 | + | func staticKey_trustedContracts () = "static_trustedContracts" | |
14 | + | ||
15 | + | ||
16 | + | func staticKey_rebirthAddress () = "static_rebirthAddress" | |
17 | + | ||
18 | + | ||
19 | + | func staticKey_turtleRebirthAddress () = "static_turtleRebirthAddress" | |
20 | + | ||
21 | + | ||
22 | + | func staticKey_pipelineUser () = "static_pipelineUser" | |
23 | + | ||
24 | + | ||
25 | + | func staticKey_extraFee () = "static_extraFee" | |
26 | + | ||
27 | + | ||
28 | + | func staticKey_feeAggregator () = "static_feeAggregator" | |
29 | + | ||
30 | + | ||
31 | + | func staticKey_huntDistroAddress () = "static_huntDistroAddress" | |
32 | + | ||
33 | + | ||
34 | + | func staticKey_warsPKey () = "static_warsPKey" | |
35 | + | ||
36 | + | ||
37 | + | func staticKey_duplicatorFee () = "static_duplicatorFee" | |
38 | + | ||
39 | + | ||
40 | + | func staticKey_canineRebirthAddress () = "static_canineRebirthAddress" | |
41 | + | ||
42 | + | ||
43 | + | func staticKey_felineRebirthAddress () = "static_felineRebirthAddress" | |
44 | + | ||
45 | + | ||
46 | + | func staticKey_babyDuckAddress () = "static_babyDuckAddress" | |
47 | + | ||
48 | + | ||
49 | + | func staticKey_burnAddress () = "static_burnAddress" | |
50 | + | ||
51 | + | ||
52 | + | func key_artefactOwner (artefactName,owner) = (((artefactName + "_") + owner) + "_owner") | |
53 | + | ||
54 | + | ||
55 | + | func key_unstakeHeight (artefactName,artefactId) = (((artefactName + "_") + artefactId) + "_unstake_height") | |
56 | + | ||
57 | + | ||
58 | + | func key_externalBoostDuck (duckId) = (duckId + "_duck_external_boost") | |
59 | + | ||
60 | + | ||
61 | + | func key_externalBoostAddress (address) = (address + "_user_external_boost") | |
62 | + | ||
63 | + | ||
64 | + | func key_priceCosmetic (item) = ("direct_cosmetic_" + item) | |
65 | + | ||
66 | + | ||
67 | + | func key_maxSalesCosmetic (item) = (("direct_cosmetic_" + item) + "_max_sales") | |
68 | + | ||
69 | + | ||
70 | + | func key_saleCosmetic (item) = (("direct_cosmetic_" + item) + "_sale") | |
71 | + | ||
72 | + | ||
73 | + | func key_priceAssetCosmetic (item) = (("direct_cosmetic_" + item) + "_priceAsset") | |
74 | + | ||
75 | + | ||
76 | + | func key_growPercentageCosmetic (item) = (("direct_cosmetic_" + item) + "_growing_percentage") | |
77 | + | ||
78 | + | ||
79 | + | func key_soldCosmetic (item) = (("direct_cosmetic_" + item) + "_sold") | |
80 | + | ||
81 | + | ||
82 | + | func key_lastPriceCosmetic (item) = (("direct_cosmetic_" + item) + "_last_price") | |
83 | + | ||
84 | + | ||
85 | + | func key_startTsCosmetic (item) = (("direct_cosmetic_" + item) + "_startTs") | |
86 | + | ||
87 | + | ||
88 | + | func key_endTsCosmetic (item) = (("direct_cosmetic_" + item) + "_endTs") | |
89 | + | ||
90 | + | ||
91 | + | func key_processFinishHeight (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh") | |
92 | + | ||
93 | + | ||
94 | + | func staticKey_couponsAddress () = "static_couponsAddress" | |
95 | + | ||
96 | + | ||
97 | + | let allArtefact = ["ART-LAKE", "ART-HOUSE", "ART-BIGHOUSE", "ART-FIXGENE", "ART-FREEGENE", "ART-MIRROR", "ART-POMP", "ART-CAPE", "ART-HAT", "ART-CUSTOMDUCK", "ART-XMISTL", "ART-XHAT", "ART-XSCARF", "ART-XSWEATER", "ART-XSOCK", "ART-XTREE"] | |
98 | + | ||
99 | + | let snow_boosters = ["ART-TINSEL", "ART-FEED10", "ART-GNGR_BREAD", "ART-SNOWBALL", "ART-GIFT_DOUBL"] | |
100 | + | ||
101 | + | let hween_boosters = ["ART-HWRESCUE", "ART-HWERASE", "ART-FEED10", "ART-FEED15", "ART-FEED20", "ART-FEED25", "ART-GIFT_DOUBL"] | |
102 | + | ||
103 | + | let shake_artefact = ["ART-SNW_GLBES", "ART-SKELETON"] | |
104 | + | ||
105 | + | let Generations = ["G", "H", "I", "K", "L", "M", "N", "O"] | |
106 | + | ||
107 | + | func tryGetBoolean (key) = match getBoolean(this, key) { | |
108 | + | case b: Boolean => | |
109 | + | b | |
110 | + | case _ => | |
111 | + | false | |
112 | + | } | |
113 | + | ||
114 | + | ||
115 | + | func tryGetString (key) = match getString(this, key) { | |
116 | + | case a: String => | |
117 | + | a | |
118 | + | case _ => | |
119 | + | "" | |
120 | + | } | |
121 | + | ||
122 | + | ||
123 | + | func tryGetInteger (key) = match getInteger(this, key) { | |
124 | + | case a: Int => | |
125 | + | a | |
126 | + | case _ => | |
127 | + | 0 | |
128 | + | } | |
129 | + | ||
130 | + | ||
131 | + | func tryGetIntegerExternal (address,key) = match getInteger(address, key) { | |
132 | + | case b: Int => | |
133 | + | b | |
134 | + | case _ => | |
135 | + | 0 | |
136 | + | } | |
137 | + | ||
138 | + | ||
139 | + | func getRandomNumber (variants,txId,finishHeight,offset) = { | |
140 | + | let randomSeedBlock = value(blockInfoByHeight((finishHeight - 1))) | |
141 | + | let randomHash = sha256(((base58'items' + txId) + value(randomSeedBlock.vrf))) | |
142 | + | (toInt(randomHash, offset) % variants) | |
143 | + | } | |
144 | + | ||
145 | + | ||
146 | + | func tryGetStringExternal (address,key) = match getString(address, key) { | |
147 | + | case a: String => | |
148 | + | a | |
149 | + | case _ => | |
150 | + | "" | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
155 | + | ||
156 | + | ||
157 | + | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress()))) | |
158 | + | ||
159 | + | ||
160 | + | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
161 | + | ||
162 | + | ||
163 | + | func getTrustedContracts () = tryGetStringExternal(getOracle(), staticKey_trustedContracts()) | |
164 | + | ||
165 | + | ||
166 | + | func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_rebirthAddress()))) | |
167 | + | ||
168 | + | ||
169 | + | func getTurtleRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleRebirthAddress()))) | |
170 | + | ||
171 | + | ||
172 | + | func getCanineRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineRebirthAddress()))) | |
173 | + | ||
174 | + | ||
175 | + | func getFelineeRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineRebirthAddress()))) | |
176 | + | ||
177 | + | ||
178 | + | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
179 | + | ||
180 | + | ||
181 | + | func getHuntDistroAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_huntDistroAddress()))) | |
182 | + | ||
183 | + | ||
184 | + | func getWarsPKey () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_warsPKey())) | |
185 | + | ||
186 | + | ||
187 | + | func getDuplicatorFee () = tryGetIntegerExternal(getOracle(), staticKey_duplicatorFee()) | |
188 | + | ||
189 | + | ||
190 | + | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
191 | + | ||
192 | + | ||
193 | + | func getBabyduckAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_babyDuckAddress()))) | |
194 | + | ||
195 | + | ||
196 | + | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
197 | + | ||
198 | + | ||
199 | + | func tryGetCosmeticItemPrice (item) = { | |
200 | + | let key = key_priceCosmetic(item) | |
201 | + | match getInteger(this, key) { | |
202 | + | case a: Int => | |
203 | + | a | |
204 | + | case _ => | |
205 | + | throw((("ITGCIP: " + item) + " is not available in the store!")) | |
206 | + | } | |
207 | + | } | |
208 | + | ||
209 | + | ||
210 | + | func asString (value) = match value { | |
211 | + | case string: String => | |
212 | + | string | |
213 | + | case _ => | |
214 | + | throw("wrong type, expected: String") | |
215 | + | } | |
216 | + | ||
217 | + | ||
218 | + | func asInt (value) = match value { | |
219 | + | case int: Int => | |
220 | + | int | |
221 | + | case _ => | |
222 | + | throw("wrong type, expected: Int") | |
223 | + | } | |
224 | + | ||
225 | + | ||
226 | + | func manipulateName (assetName,position,char) = ((take(assetName, (position - 1)) + char) + takeRight(assetName, (16 - position))) | |
227 | + | ||
228 | + | ||
229 | + | func itemIsInCoolDown (artefactName,artefactId) = { | |
230 | + | let unstakeHeightLast = tryGetInteger(key_unstakeHeight(artefactName, artefactId)) | |
231 | + | let cooldownPeriod = 240 | |
232 | + | if ((height > (unstakeHeightLast + cooldownPeriod))) | |
233 | + | then false | |
234 | + | else true | |
235 | + | } | |
236 | + | ||
237 | + | ||
238 | + | func isTestEnv () = tryGetBoolean("TESTENV") | |
239 | + | ||
240 | + | ||
241 | + | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
242 | + | then throw("WCAP: Please attach waves") | |
243 | + | else { | |
244 | + | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
245 | + | if ((payment.amount != feeAmount)) | |
246 | + | then throw((("WCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
247 | + | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
248 | + | } | |
249 | + | ||
250 | + | ||
251 | + | func issueItem (type,nonce,address) = { | |
252 | + | let artefact = Issue(type, "NFT artefact of Waves Ducks game.", 1, 0, false, unit, nonce) | |
253 | + | let artefactId = calculateAssetId(artefact) | |
254 | + | $Tuple2([artefact, StringEntry((("artefact_" + toBase58String(artefactId)) + "_type"), type), ScriptTransfer(address, 1, artefactId)], toBase58String(artefactId)) | |
255 | + | } | |
256 | + | ||
257 | + | ||
258 | + | func itemMerger (baseItem,amountBaseItem,endItem,payments,feeAmount,feeAssetId,recipient,instantFinish,txId,secondaryItem,amountSecondaryItem,ducklingsPercent,genValue) = if ((size(payments) != (amountBaseItem + 1))) | |
259 | + | then throw((("IID: Please attach " + toString((amountBaseItem + 2))) + " payments!")) | |
260 | + | else { | |
261 | + | func isBaseItem (accumulated,pay) = if (if ((pay.assetId == unit)) | |
262 | + | then true | |
263 | + | else (pay.assetId == getEggAssetId())) | |
264 | + | then $Tuple5(accumulated._1, accumulated._2, accumulated._3, accumulated._4, accumulated._5) | |
265 | + | else { | |
266 | + | let assetId = value(pay.assetId) | |
267 | + | if ((value(assetInfo(value(assetId))).issuer == getBreederAddress())) | |
268 | + | then { | |
269 | + | let splitted = split(value(assetInfo(value(assetId))).name, "") | |
270 | + | let gen = splitted[14] | |
271 | + | let genNr = value(indexOf(Generations, gen)) | |
272 | + | $Tuple5(accumulated._1, accumulated._2, accumulated._3, accumulated._4, (accumulated._5 + genNr)) | |
273 | + | } | |
274 | + | else if ((value(assetInfo(value(assetId))).issuer == getBabyduckAddress())) | |
275 | + | then { | |
276 | + | let startPercentage = tryGetIntegerExternal(getBabyduckAddress(), (("duckling_" + toBase58String(assetId)) + "_startPercentage")) | |
277 | + | let limit = if ((10 > startPercentage)) | |
278 | + | then 10 | |
279 | + | else startPercentage | |
280 | + | let burnCall = invoke(getBurnAddress(), "burnDuckling", [toString(recipient)], [AttachedPayment(assetId, 1)]) | |
281 | + | if ((burnCall == burnCall)) | |
282 | + | then $Tuple5(accumulated._1, accumulated._2, accumulated._3, (accumulated._4 + limit), accumulated._5) | |
283 | + | else throw("Strict value is not equal to itself.") | |
284 | + | } | |
285 | + | else { | |
286 | + | let artefact = asString(invoke(this, "checkArtefactDetails", [toBase58String(assetId)], nil)) | |
287 | + | if ((artefact == artefact)) | |
288 | + | then if ((artefact == baseItem)) | |
289 | + | then $Tuple5((accumulated._1 ++ [Burn(assetId, 1)]), (accumulated._2 + 1), accumulated._3, accumulated._4, accumulated._5) | |
290 | + | else if ((artefact == secondaryItem)) | |
291 | + | then $Tuple5((accumulated._1 ++ [Burn(assetId, 1)]), accumulated._2, (accumulated._3 + 1), accumulated._4, accumulated._5) | |
292 | + | else $Tuple5(accumulated._1, accumulated._2, accumulated._3, accumulated._4, accumulated._5) | |
293 | + | else throw("Strict value is not equal to itself.") | |
294 | + | } | |
295 | + | } | |
296 | + | ||
297 | + | let totalBaseItem = { | |
298 | + | let $l = payments | |
299 | + | let $s = size($l) | |
300 | + | let $acc0 = $Tuple5(nil, 0, 0, 0, 0) | |
301 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
302 | + | then $a | |
303 | + | else isBaseItem($a, $l[$i]) | |
304 | + | ||
305 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
306 | + | then $a | |
307 | + | else throw("List size exceeds 10") | |
308 | + | ||
309 | + | $f0_2($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) | |
310 | + | } | |
311 | + | if ((totalBaseItem._2 != amountBaseItem)) | |
312 | + | then throw(((("IID: Please attach " + toString(amountBaseItem)) + " artefacts of type ") + baseItem)) | |
313 | + | else if (if ((secondaryItem != "")) | |
314 | + | then (totalBaseItem._3 != amountSecondaryItem) | |
315 | + | else false) | |
316 | + | then throw(((("IID: Please attach " + toString(amountSecondaryItem)) + " artefacts of type ") + secondaryItem)) | |
317 | + | else if (if ((ducklingsPercent != 0)) | |
318 | + | then (totalBaseItem._4 != ducklingsPercent) | |
319 | + | else false) | |
320 | + | then throw(((("IID: Please attach " + toString(ducklingsPercent)) + " growth, you added ") + toString(totalBaseItem._4))) | |
321 | + | else if (if ((genValue != 0)) | |
322 | + | then (totalBaseItem._5 != genValue) | |
323 | + | else false) | |
324 | + | then throw(((("IID: Please attach " + toString(genValue)) + " gen value, you added ") + toString(totalBaseItem._5))) | |
325 | + | else { | |
326 | + | let validate = if ((feeAmount != 0)) | |
327 | + | then { | |
328 | + | let feePayment = payments[amountBaseItem] | |
329 | + | if ((feePayment.assetId != feeAssetId)) | |
330 | + | then throw("IID: You miss a payment with the fee!") | |
331 | + | else if ((feePayment.amount != feeAmount)) | |
332 | + | then throw("IID: You did not attach the correct fee amount!") | |
333 | + | else [ScriptTransfer(getFeeAggregator(), feeAmount, feePayment.assetId)] | |
334 | + | } | |
335 | + | else nil | |
336 | + | if ((validate == validate)) | |
337 | + | then { | |
338 | + | let artefact = Issue(endItem, ("NFT artefact of Waves Ducks game: " + endItem), 1, 0, false, unit, 0) | |
339 | + | let artefactId = calculateAssetId(artefact) | |
340 | + | let instant = if (instantFinish) | |
341 | + | then issueItem(endItem, 0, recipient) | |
342 | + | else $Tuple2(nil, "") | |
343 | + | $Tuple2(((([BooleanEntry((("merge_" + txId) + "_instant"), instantFinish), StringEntry((("merge_" + txId) + "_reward"), endItem), BooleanEntry((("merge_" + txId) + "_finished"), instantFinish)] ++ instant._1) ++ totalBaseItem._1) ++ validate), instant._2) | |
344 | + | } | |
345 | + | else throw("Strict value is not equal to itself.") | |
346 | + | } | |
347 | + | } | |
348 | + | ||
349 | + | ||
350 | + | func getBaseItem (baseItem) = getStringValue((("merge_" + baseItem) + "_baseItem")) | |
351 | + | ||
352 | + | ||
353 | + | func getAmountBaseItem (baseItem) = getIntegerValue((("merge_" + baseItem) + "_amount")) | |
354 | + | ||
355 | + | ||
356 | + | func getSecondaryItem (baseItem) = tryGetString((("merge_" + baseItem) + "_secondaryItem")) | |
357 | + | ||
358 | + | ||
359 | + | func getAmountSecondaryItem (baseItem) = tryGetInteger((("merge_" + baseItem) + "_amountSecondaryItem")) | |
360 | + | ||
361 | + | ||
362 | + | func getGenValue (baseItem) = tryGetInteger((("merge_" + baseItem) + "_genValue")) | |
363 | + | ||
364 | + | ||
365 | + | func getDucklingsPercent (baseItem) = tryGetInteger((("merge_" + baseItem) + "_ducklingsPercent")) | |
366 | + | ||
367 | + | ||
368 | + | func getEndItem (baseItem) = getStringValue((("merge_" + baseItem) + "_endItem")) | |
369 | + | ||
370 | + | ||
371 | + | func getPrice (baseItem) = getIntegerValue((("merge_" + baseItem) + "_price")) | |
372 | + | ||
373 | + | ||
374 | + | func getInstant (baseItem) = getBooleanValue((("merge_" + baseItem) + "_instant")) | |
375 | + | ||
376 | + | ||
377 | + | func getAsset (baseItem) = { | |
378 | + | let asset = getStringValue((("merge_" + baseItem) + "_asset")) | |
379 | + | if ((asset == "WAVES")) | |
380 | + | then unit | |
381 | + | else fromBase58String(asset) | |
382 | + | } | |
383 | + | ||
384 | + | ||
385 | + | func userExperience (user) = (user + "_experience") | |
386 | + | ||
387 | + | ||
388 | + | func finishShakeItBabyInternal (initTx,address,payment) = { | |
389 | + | let type = getStringValue((((("address_" + address) + "_initTx_") + initTx) + "_type")) | |
390 | + | let expStep = if ((type == "ART-SNW_GLBES")) | |
391 | + | then 100 | |
392 | + | else if ((type == "ART-SKELETON")) | |
393 | + | then 200 | |
394 | + | else throw("FSI: Invalid type") | |
395 | + | let steps = if ((type == "ART-SNW_GLBES")) | |
396 | + | then [1, 2, 3, 4, 5, 6] | |
397 | + | else if ((type == "ART-SKELETON")) | |
398 | + | then [1, 2, 3, 4, 5, 6, 7] | |
399 | + | else throw("FSI: Invalid type") | |
400 | + | let maxStep = size(steps) | |
401 | + | let rewards = if ((type == "ART-SNW_GLBES")) | |
402 | + | then snow_boosters | |
403 | + | else if ((type == "ART-SKELETON")) | |
404 | + | then hween_boosters | |
405 | + | else throw("FSI: Invalid type") | |
406 | + | let expUser = tryGetIntegerExternal(getCouponsAddress(), userExperience(address)) | |
407 | + | let multiplier = min([((expUser / expStep) + 1), maxStep]) | |
408 | + | let finish = getIntegerValue((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock")) | |
409 | + | if ((finish > height)) | |
410 | + | then throw("Please wait till the shaking is finished!") | |
411 | + | else if ((tryGetString((((("address_" + address) + "_initTx_") + initTx) + "_status")) != "open")) | |
412 | + | then throw("FSI: Only open status can be finished!") | |
413 | + | else { | |
414 | + | func handleMint (acc,index) = if ((multiplier >= index)) | |
415 | + | then { | |
416 | + | let randomPosition = getRandomNumber(size(rewards), fromBase58String(initTx), finish, index) | |
417 | + | let win = rewards[randomPosition] | |
418 | + | ((acc ++ issueItem(win, (index - 1), addressFromStringValue(address))._1) ++ [StringEntry(((((("address_" + address) + "_initTx_") + initTx) + "_win") + toString((index - 1))), win)]) | |
419 | + | } | |
420 | + | else acc | |
421 | + | ||
422 | + | ({ | |
423 | + | let $l = steps | |
424 | + | let $s = size($l) | |
425 | + | let $acc0 = nil | |
426 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
427 | + | then $a | |
428 | + | else handleMint($a, $l[$i]) | |
429 | + | ||
430 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
431 | + | then $a | |
432 | + | else throw("List size exceeds 7") | |
433 | + | ||
434 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7) | |
435 | + | } ++ [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "finish")]) | |
436 | + | } | |
437 | + | } | |
438 | + | ||
439 | + | ||
440 | + | @Callable(i) | |
441 | + | func startShakeItBaby () = { | |
442 | + | let itemPayment = value(i.payments[0]) | |
443 | + | let validPayment = checkAdditionalPayment(i.payments[1]) | |
444 | + | let itemAssetId = toBase58String(value(itemPayment.assetId)) | |
445 | + | if ((itemPayment.amount != 1)) | |
446 | + | then throw("IID: Item NFT is not attached") | |
447 | + | else { | |
448 | + | let globeArtefact = asString(invoke(this, "checkArtefactDetails", [itemAssetId], nil)) | |
449 | + | if ((globeArtefact == globeArtefact)) | |
450 | + | then if ((indexOf(shake_artefact, globeArtefact) == unit)) | |
451 | + | then throw("IID: You need to attach a valid artefact") | |
452 | + | else { | |
453 | + | let address = toString(i.caller) | |
454 | + | let initTx = toBase58String(i.transactionId) | |
455 | + | [Burn(value(itemPayment.assetId), 1), IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock"), (height + 2)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "open"), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetId"), itemAssetId), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_type"), globeArtefact)] | |
456 | + | } | |
457 | + | else throw("Strict value is not equal to itself.") | |
458 | + | } | |
459 | + | } | |
460 | + | ||
461 | + | ||
462 | + | ||
463 | + | @Callable(i) | |
464 | + | func finishShakeItBaby (initTx) = finishShakeItBabyInternal(initTx, toString(i.caller), i.payments[0]) | |
465 | + | ||
466 | + | ||
467 | + | ||
468 | + | @Callable(i) | |
469 | + | func instanMergeItem (receiptName) = if ((tryGetString((("merge_" + receiptName) + "_endItem")) == "")) | |
470 | + | then throw("IID: Only certain items can be merged!") | |
471 | + | else { | |
472 | + | let params = $Tuple10(getAmountBaseItem(receiptName), getEndItem(receiptName), getPrice(receiptName), getAsset(receiptName), getInstant(receiptName), getSecondaryItem(receiptName), getAmountSecondaryItem(receiptName), getDucklingsPercent(receiptName), getBaseItem(receiptName), getGenValue(receiptName)) | |
473 | + | let grantExp = invoke(getCouponsAddress(), "increaseExp", [toString(i.caller)], nil) | |
474 | + | if ((grantExp == grantExp)) | |
475 | + | then itemMerger(params._9, params._1, params._2, i.payments, params._3, params._4, i.caller, params._5, toBase58String(i.transactionId), params._6, params._7, params._8, params._10) | |
476 | + | else throw("Strict value is not equal to itself.") | |
477 | + | } | |
478 | + | ||
479 | + | ||
480 | + | ||
481 | + | @Callable(i) | |
482 | + | func directBuyItemMultiple (itemName,itemAmount) = { | |
483 | + | let array = [0, 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] | |
484 | + | let basePrice = tryGetCosmeticItemPrice(itemName) | |
485 | + | let grow = tryGetInteger(key_growPercentageCosmetic(itemName)) | |
486 | + | let startTs = tryGetInteger(key_startTsCosmetic(itemName)) | |
487 | + | let endTs = tryGetInteger(key_endTsCosmetic(itemName)) | |
488 | + | if (if ((startTs != 0)) | |
489 | + | then (startTs > lastBlock.timestamp) | |
490 | + | else false) | |
491 | + | then throw("IDBI: The sale did not start yet!") | |
492 | + | else if (if ((endTs != 0)) | |
493 | + | then (lastBlock.timestamp > endTs) | |
494 | + | else false) | |
495 | + | then throw("IDBI: The sale has already finished!") | |
496 | + | else if (!(tryGetBoolean(key_saleCosmetic(itemName)))) | |
497 | + | then throw(("IDBI: Item not for sale anymore" + key_saleCosmetic(itemName))) | |
498 | + | else { | |
499 | + | let maxSalesValue = tryGetInteger(key_maxSalesCosmetic(itemName)) | |
500 | + | let soldValue = tryGetInteger(key_soldCosmetic(itemName)) | |
501 | + | if ((itemAmount > size(array))) | |
502 | + | then throw(("IDBI: Max amount to issue is " + toString(size(array)))) | |
503 | + | else { | |
504 | + | let price = if ((grow == 0)) | |
505 | + | then (basePrice * itemAmount) | |
506 | + | else throw("IDBI: Items that grow in price can not be bought in batch!") | |
507 | + | if (if ((maxSalesValue != 0)) | |
508 | + | then (soldValue >= maxSalesValue) | |
509 | + | else false) | |
510 | + | then throw("IDBI: Max editions sold!") | |
511 | + | else { | |
512 | + | let assetId = if ((tryGetString(key_priceAssetCosmetic(itemName)) == "")) | |
513 | + | then getEggAssetId() | |
514 | + | else if ((tryGetString(key_priceAssetCosmetic(itemName)) == "WAVES")) | |
515 | + | then unit | |
516 | + | else fromBase58String(tryGetString(key_priceAssetCosmetic(itemName))) | |
517 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
518 | + | let firstPayment = value(i.payments[1]) | |
519 | + | let amount = firstPayment.amount | |
520 | + | if ((firstPayment.assetId != assetId)) | |
521 | + | then throw("IDBI: You can attach only tokens with the correct payment ") | |
522 | + | else if ((amount != price)) | |
523 | + | then throw(("IDBI: Please attach the exact asset amount" + toString(price))) | |
524 | + | else { | |
525 | + | let txIdStr = toBase58String(i.transactionId) | |
526 | + | let address = i.originCaller | |
527 | + | func handleMint (acc,index) = if ((itemAmount > index)) | |
528 | + | then (acc ++ issueItem(itemName, index, address)._1) | |
529 | + | else acc | |
530 | + | ||
531 | + | let issues = { | |
532 | + | let $l = array | |
533 | + | let $s = size($l) | |
534 | + | let $acc0 = nil | |
535 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
536 | + | then $a | |
537 | + | else handleMint($a, $l[$i]) | |
538 | + | ||
539 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
540 | + | then $a | |
541 | + | else throw("List size exceeds 30") | |
542 | + | ||
543 | + | $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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
544 | + | } | |
545 | + | (([IntegerEntry(key_lastPriceCosmetic(itemName), basePrice), IntegerEntry(key_soldCosmetic(itemName), (soldValue + itemAmount)), ScriptTransfer(getFeeAggregator(), amount, assetId)] ++ validPayment) ++ issues) | |
546 | + | } | |
547 | + | } | |
548 | + | } | |
549 | + | } | |
550 | + | } | |
551 | + | ||
552 | + | ||
553 | + | ||
554 | + | @Callable(i) | |
555 | + | func directBuyItem (itemName) = { | |
556 | + | let basePrice = tryGetCosmeticItemPrice(itemName) | |
557 | + | let grow = tryGetInteger(key_growPercentageCosmetic(itemName)) | |
558 | + | let startTs = tryGetInteger(key_startTsCosmetic(itemName)) | |
559 | + | let endTs = tryGetInteger(key_endTsCosmetic(itemName)) | |
560 | + | if (if ((startTs != 0)) | |
561 | + | then (startTs > lastBlock.timestamp) | |
562 | + | else false) | |
563 | + | then throw("IDBI: The sale did not start yet!") | |
564 | + | else if (if ((endTs != 0)) | |
565 | + | then (lastBlock.timestamp > endTs) | |
566 | + | else false) | |
567 | + | then throw("IDBI: The sale has already finished!") | |
568 | + | else if (!(tryGetBoolean(key_saleCosmetic(itemName)))) | |
569 | + | then throw(("IDBI: Item not for sale anymore" + key_saleCosmetic(itemName))) | |
570 | + | else { | |
571 | + | let maxSalesValue = tryGetInteger(key_maxSalesCosmetic(itemName)) | |
572 | + | let soldValue = tryGetInteger(key_soldCosmetic(itemName)) | |
573 | + | let price = if ((grow == 0)) | |
574 | + | then basePrice | |
575 | + | else (basePrice + ((basePrice / 100) * (soldValue * grow))) | |
576 | + | if (if ((maxSalesValue != 0)) | |
577 | + | then (soldValue >= maxSalesValue) | |
578 | + | else false) | |
579 | + | then throw("IDBI: Max editions sold!") | |
580 | + | else { | |
581 | + | let assetId = if ((tryGetString(key_priceAssetCosmetic(itemName)) == "")) | |
582 | + | then getEggAssetId() | |
583 | + | else if ((tryGetString(key_priceAssetCosmetic(itemName)) == "WAVES")) | |
584 | + | then unit | |
585 | + | else fromBase58String(tryGetString(key_priceAssetCosmetic(itemName))) | |
586 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
587 | + | let firstPayment = value(i.payments[1]) | |
588 | + | let amount = firstPayment.amount | |
589 | + | if ((firstPayment.assetId != assetId)) | |
590 | + | then throw("IDBI: You can attach only tokens with the correct payment ") | |
591 | + | else if ((amount != price)) | |
592 | + | then throw(("IDBI: Please attach the exact asset amount" + toString(price))) | |
593 | + | else { | |
594 | + | let txIdStr = toBase58String(i.transactionId) | |
595 | + | let address = i.originCaller | |
596 | + | let artefact = Issue(itemName, ("NFT artefact of Waves Ducks game: " + itemName), 1, 0, false, unit, 0) | |
597 | + | let artefactId = calculateAssetId(artefact) | |
598 | + | $Tuple2(([artefact, StringEntry((("artefact_" + toBase58String(artefactId)) + "_type"), itemName), IntegerEntry(key_lastPriceCosmetic(itemName), price), IntegerEntry(key_soldCosmetic(itemName), (soldValue + 1)), ScriptTransfer(address, 1, artefactId), ScriptTransfer(getFeeAggregator(), amount, assetId)] ++ validPayment), toBase58String(artefactId)) | |
599 | + | } | |
600 | + | } | |
601 | + | } | |
602 | + | } | |
603 | + | ||
604 | + | ||
605 | + | ||
606 | + | @Callable(i) | |
607 | + | func manipulateBoost (boost,duckId) = { | |
608 | + | let allowedContracts = getTrustedContracts() | |
609 | + | let allowedContractsList = split(allowedContracts, ";") | |
610 | + | let dappToCall = toString(i.caller) | |
611 | + | if ((indexOf(allowedContractsList, dappToCall) == unit)) | |
612 | + | then throw("IMB: This smart contract can't manipulate the boost!") | |
613 | + | else { | |
614 | + | let key = key_externalBoostDuck(duckId) | |
615 | + | let activeBoost = tryGetInteger(key) | |
616 | + | let newBoost = (activeBoost + boost) | |
617 | + | if ((0 > newBoost)) | |
618 | + | then throw("IMB: Something went wrong with boost, please contact the admins!") | |
619 | + | else [IntegerEntry(key, newBoost)] | |
620 | + | } | |
621 | + | } | |
622 | + | ||
623 | + | ||
624 | + | ||
625 | + | @Callable(i) | |
626 | + | func manipulateBoostAccount (boost,address) = { | |
627 | + | let allowedContracts = getTrustedContracts() | |
628 | + | let allowedContractsList = split(allowedContracts, ";") | |
629 | + | let dappToCall = toString(i.caller) | |
630 | + | if ((indexOf(allowedContractsList, dappToCall) == unit)) | |
631 | + | then throw("IMBA: This smart contract can't manipulate the boost!") | |
632 | + | else { | |
633 | + | let key = key_externalBoostAddress(address) | |
634 | + | let activeBoost = tryGetInteger(key) | |
635 | + | let newBoost = (activeBoost + boost) | |
636 | + | if ((0 > newBoost)) | |
637 | + | then throw("IMBA: Something went wrong with boost, please contact the admins!") | |
638 | + | else [IntegerEntry(key, newBoost)] | |
639 | + | } | |
640 | + | } | |
641 | + | ||
642 | + | ||
643 | + | ||
644 | + | @Callable(i) | |
645 | + | func checkArtefactDetails (assetId) = { | |
646 | + | let asset = value(assetInfo(fromBase58String(assetId))) | |
647 | + | let assetName = value(asset.name) | |
648 | + | if (if (if (containsElement(allArtefact, assetName)) | |
649 | + | then true | |
650 | + | else isDefined(tryGetCosmeticItemPrice(assetName))) | |
651 | + | then (asset.issuer == this) | |
652 | + | else false) | |
653 | + | then $Tuple2(nil, assetName) | |
654 | + | else throw("Invalid artefact") | |
655 | + | } | |
656 | + | ||
657 | + | ||
658 | + | ||
659 | + | @Callable(i) | |
660 | + | func configureOracle (oracle) = if ((i.caller != this)) | |
661 | + | then throw("IC: admin only") | |
662 | + | else [StringEntry(staticKey_oracleAddress(), oracle)] | |
663 | + | ||
664 | + | ||
665 | + | ||
666 | + | @Callable(i) | |
667 | + | func calculateFarmingPowerBoost (duckId,address) = { | |
668 | + | let externalBoostDuck = tryGetInteger(key_externalBoostDuck(duckId)) | |
669 | + | let externalBoostAddress = tryGetInteger(key_externalBoostAddress(address)) | |
670 | + | let totalBoost = (externalBoostDuck + externalBoostAddress) | |
671 | + | $Tuple2([IntegerEntry((duckId + "_last_boost"), totalBoost)], totalBoost) | |
672 | + | } | |
673 | + | ||
674 | + | ||
675 | + | ||
676 | + | @Callable(i) | |
677 | + | func itemDuplicator () = if ((size(i.payments) != 4)) | |
678 | + | then throw("IID: Four payments are needed!") | |
679 | + | else { | |
680 | + | let duplicatorPayment = value(i.payments[0]) | |
681 | + | let itemPayment = value(i.payments[1]) | |
682 | + | let eggPayment = value(i.payments[2]) | |
683 | + | let validPayment = checkAdditionalPayment(i.payments[3]) | |
684 | + | let duplicatorAssetId = toBase58String(value(duplicatorPayment.assetId)) | |
685 | + | if ((duplicatorPayment.amount != 1)) | |
686 | + | then throw("IID: Duplicator NFT is not attached") | |
687 | + | else { | |
688 | + | let itemAssetId = toBase58String(value(itemPayment.assetId)) | |
689 | + | if ((itemPayment.amount != 1)) | |
690 | + | then throw("IID: Item NFT is not attached") | |
691 | + | else { | |
692 | + | let eggAssetId = value(eggPayment.assetId) | |
693 | + | if ((eggAssetId != getEggAssetId())) | |
694 | + | then throw("IID: Please attach eggs!") | |
695 | + | else if ((getDuplicatorFee() > eggPayment.amount)) | |
696 | + | then throw(("IID: to duplicate an items you need the following amount of egglets: " + toString(getDuplicatorFee()))) | |
697 | + | else { | |
698 | + | let duplicatorArtefact = asString(invoke(this, "checkArtefactDetails", [duplicatorAssetId], nil)) | |
699 | + | if ((duplicatorArtefact == duplicatorArtefact)) | |
700 | + | then if ((duplicatorArtefact != "ART-ITEM_DUPLI")) | |
701 | + | then throw("IID: You need to attach a ART-ITEM_DUPLI artefact") | |
702 | + | else { | |
703 | + | let artefactName = asString(invoke(this, "checkArtefactDetails", [itemAssetId], nil)) | |
704 | + | if ((artefactName == artefactName)) | |
705 | + | then { | |
706 | + | let artefact = Issue(artefactName, ("NFT artefact of Waves Ducks game: " + artefactName), 1, 0, false, unit, 0) | |
707 | + | let artefactId = calculateAssetId(artefact) | |
708 | + | $Tuple2(([artefact, StringEntry((("artefact_" + toBase58String(artefactId)) + "_type"), artefactName), Burn(value(duplicatorPayment.assetId), 1), ScriptTransfer(i.originCaller, 1, itemPayment.assetId), ScriptTransfer(i.originCaller, 1, artefactId), ScriptTransfer(getFeeAggregator(), eggPayment.amount, eggPayment.assetId)] ++ validPayment), toBase58String(artefactId)) | |
709 | + | } | |
710 | + | else throw("Strict value is not equal to itself.") | |
711 | + | } | |
712 | + | else throw("Strict value is not equal to itself.") | |
713 | + | } | |
714 | + | } | |
715 | + | } | |
716 | + | } | |
717 | + | ||
718 | + | ||
719 | + | ||
720 | + | @Callable(i) | |
721 | + | func copyDuck () = { | |
722 | + | let firstPayment = value(i.payments[0]) | |
723 | + | let secondPayment = value(i.payments[1]) | |
724 | + | let validPayment = checkAdditionalPayment(i.payments[2]) | |
725 | + | let firstAssetId = toBase58String(value(firstPayment.assetId)) | |
726 | + | let children = asInt(invoke(getBreederAddress(), "validateAndGetChildren", [firstAssetId], nil)) | |
727 | + | if ((children == children)) | |
728 | + | then if (if ((firstPayment.amount != 1)) | |
729 | + | then true | |
730 | + | else (secondPayment.amount != 1)) | |
731 | + | then throw("NFT is not attached") | |
732 | + | else { | |
733 | + | let artefact = asString(invoke(this, "checkArtefactDetails", [toBase58String(value(secondPayment.assetId))], nil)) | |
734 | + | if ((artefact == artefact)) | |
735 | + | then if ((artefact != "ART-MIRROR")) | |
736 | + | then throw("You need to attach a ART-MIRROR artefact") | |
737 | + | else { | |
738 | + | let nftInfo = value(assetInfo(value(firstPayment.assetId))) | |
739 | + | let asset1Gen = split(nftInfo.name, "") | |
740 | + | if (if ((asset1Gen[14] == "G")) | |
741 | + | then true | |
742 | + | else (asset1Gen[14] == "J")) | |
743 | + | then throw("You can't mirror this duck") | |
744 | + | else { | |
745 | + | let duckGen = nftInfo.name | |
746 | + | let call = invoke(getBreederAddress(), "createDuckSpecialGenes", [i.caller.bytes, duckGen, children], nil) | |
747 | + | if ((call == call)) | |
748 | + | then ([ScriptTransfer(i.caller, 1, firstPayment.assetId), Burn(value(secondPayment.assetId), 1)] ++ validPayment) | |
749 | + | else throw("Strict value is not equal to itself.") | |
750 | + | } | |
751 | + | } | |
752 | + | else throw("Strict value is not equal to itself.") | |
753 | + | } | |
754 | + | else throw("Strict value is not equal to itself.") | |
755 | + | } | |
756 | + | ||
757 | + | ||
758 | + | ||
759 | + | @Callable(i) | |
760 | + | func addArteFactToDuck () = { | |
761 | + | let firstPayment = value(i.payments[0]) | |
762 | + | let secondPayment = value(i.payments[1]) | |
763 | + | let validPayment = checkAdditionalPayment(i.payments[2]) | |
764 | + | let firstAssetId = toBase58String(value(firstPayment.assetId)) | |
765 | + | if (if ((firstPayment.amount != 1)) | |
766 | + | then true | |
767 | + | else (secondPayment.amount != 1)) | |
768 | + | then throw("NFT is not attached") | |
769 | + | else { | |
770 | + | let children = asInt(invoke(getBreederAddress(), "validateAndGetChildren", [firstAssetId], nil)) | |
771 | + | if ((children == children)) | |
772 | + | then if ((children == 0)) | |
773 | + | then throw("You can only pick a sterile NFT-duck") | |
774 | + | else { | |
775 | + | let artefact = asString(invoke(this, "checkArtefactDetails", [toBase58String(value(secondPayment.assetId))], nil)) | |
776 | + | if ((artefact == artefact)) | |
777 | + | then if (if ((artefact != "ART-XHAT")) | |
778 | + | then (artefact != "ART-POMP") | |
779 | + | else false) | |
780 | + | then throw("You need to attach a ART-XHAT or ART-POMP artefact") | |
781 | + | else { | |
782 | + | let nftInfo = value(assetInfo(value(firstPayment.assetId))) | |
783 | + | let asset1Gen = split(nftInfo.name, "") | |
784 | + | if (if ((asset1Gen[14] == "G")) | |
785 | + | then true | |
786 | + | else (asset1Gen[14] == "J")) | |
787 | + | then throw("You can't mirror this duck") | |
788 | + | else if (if ((asset1Gen[5] == "S")) | |
789 | + | then true | |
790 | + | else (asset1Gen[5] == "T")) | |
791 | + | then throw("you already attached a artefact") | |
792 | + | else { | |
793 | + | let char = if ((artefact == "ART-XHAT")) | |
794 | + | then "T" | |
795 | + | else if ((artefact == "ART-POMP")) | |
796 | + | then "S" | |
797 | + | else throw("No char defined") | |
798 | + | let oldDuckGen = nftInfo.name | |
799 | + | let oldFarmGen = asString(invoke(getBreederAddress(), "getGenFromName", [oldDuckGen], nil)) | |
800 | + | if ((oldFarmGen == oldFarmGen)) | |
801 | + | then { | |
802 | + | let duckGen = manipulateName(oldDuckGen, 6, char) | |
803 | + | let call = invoke(getBreederAddress(), "createDuckSpecialGenes", [i.caller.bytes, duckGen, children], nil) | |
804 | + | if ((call == call)) | |
805 | + | then { | |
806 | + | let callReduce = invoke(getBreederAddress(), "reduceRarity", [firstAssetId, oldFarmGen], nil) | |
807 | + | if ((callReduce == callReduce)) | |
808 | + | then ([Burn(value(firstPayment.assetId), 1), Burn(value(secondPayment.assetId), 1)] ++ validPayment) | |
809 | + | else throw("Strict value is not equal to itself.") | |
810 | + | } | |
811 | + | else throw("Strict value is not equal to itself.") | |
812 | + | } | |
813 | + | else throw("Strict value is not equal to itself.") | |
814 | + | } | |
815 | + | } | |
816 | + | else throw("Strict value is not equal to itself.") | |
817 | + | } | |
818 | + | else throw("Strict value is not equal to itself.") | |
819 | + | } | |
820 | + | } | |
821 | + | ||
822 | + | ||
823 | + | ||
824 | + | @Callable(i) | |
825 | + | func preInit () = [IntegerEntry("static_ART-LAKE_farmingSlots", 200), IntegerEntry("static_ART-LAKE_farmingBoost", 2), IntegerEntry("static_ART-HOUSE_farmingSlots", 4), IntegerEntry("static_ART-HOUSE_farmingBoost", 30), IntegerEntry("static_ART-BIGHOUSE_farmingSlots", 10), IntegerEntry("static_ART-BIGHOUSE_farmingBoost", 15)] | |
826 | + | ||
827 | + | ||
828 | + | ||
829 | + | @Callable(i) | |
830 | + | func issueArtefact (type,receiver) = if (if (if (if (if (if ((i.caller != this)) | |
831 | + | then (i.caller != getRebirthAddress()) | |
832 | + | else false) | |
833 | + | then (i.caller != getTurtleRebirthAddress()) | |
834 | + | else false) | |
835 | + | then (i.caller != getCanineRebirthAddress()) | |
836 | + | else false) | |
837 | + | then (i.caller != getHuntDistroAddress()) | |
838 | + | else false) | |
839 | + | then (i.callerPublicKey != getWarsPKey()) | |
840 | + | else false) | |
841 | + | then throw("IIA: admin only") | |
842 | + | else if (if (if (if ((i.caller == getHuntDistroAddress())) | |
843 | + | then true | |
844 | + | else (i.callerPublicKey == getWarsPKey())) | |
845 | + | then !(contains(type, "ART-FIRE_")) | |
846 | + | else false) | |
847 | + | then !(tryGetBoolean((type + "_issue"))) | |
848 | + | else false) | |
849 | + | then throw("FIRE AND WHITELIST ITEM ONLY!") | |
850 | + | else { | |
851 | + | let address = Address(fromBase58String(receiver)) | |
852 | + | issueItem(type, 0, address) | |
853 | + | } | |
854 | + | ||
855 | + | ||
856 | + | ||
857 | + | @Callable(i) | |
858 | + | func issueArtefactIndex (type,receiver,nonce) = if (if (if (if (if (if (if ((i.caller != this)) | |
859 | + | then (i.caller != getRebirthAddress()) | |
860 | + | else false) | |
861 | + | then (i.caller != getTurtleRebirthAddress()) | |
862 | + | else false) | |
863 | + | then (i.caller != getCanineRebirthAddress()) | |
864 | + | else false) | |
865 | + | then (i.caller != getFelineeRebirthAddress()) | |
866 | + | else false) | |
867 | + | then (i.caller != getHuntDistroAddress()) | |
868 | + | else false) | |
869 | + | then (i.callerPublicKey != getWarsPKey()) | |
870 | + | else false) | |
871 | + | then throw("IIAI: admin only") | |
872 | + | else if (if (if (if ((i.caller == getHuntDistroAddress())) | |
873 | + | then true | |
874 | + | else (i.callerPublicKey == getWarsPKey())) | |
875 | + | then !(contains(type, "ART-FIRE_")) | |
876 | + | else false) | |
877 | + | then !(tryGetBoolean((type + "_issue"))) | |
878 | + | else false) | |
879 | + | then throw("FIRE AND WHITELIST ITEM ONLY!") | |
880 | + | else { | |
881 | + | let address = Address(fromBase58String(receiver)) | |
882 | + | let issueResult = issueItem(type, nonce, address) | |
883 | + | issueResult | |
884 | + | } | |
885 | + | ||
886 | + | ||
887 | + | ||
888 | + | @Callable(i) | |
889 | + | func setLock (n) = if ((i.caller == this)) | |
890 | + | then [IntegerEntry("global_locked", n)] | |
891 | + | else throw("admin only") | |
892 | + | ||
893 | + | ||
894 | + | ||
895 | + | @Callable(i) | |
896 | + | func addItemToStore (price,item,maxSales,sale,pricesset,growthPercentage,startTs,endTs) = if ((i.caller != addressFromStringValue(tryGetStringExternal(getOracle(), staticKey_pipelineUser())))) | |
897 | + | then throw("IAITS: Only for trusted users!") | |
898 | + | else [IntegerEntry(key_priceCosmetic(item), price), IntegerEntry(key_maxSalesCosmetic(item), maxSales), BooleanEntry(key_saleCosmetic(item), sale), StringEntry(key_priceAssetCosmetic(item), pricesset), IntegerEntry(key_growPercentageCosmetic(item), growthPercentage), IntegerEntry(key_startTsCosmetic(item), startTs), IntegerEntry(key_endTsCosmetic(item), endTs)] | |
899 | + | ||
900 | + | ||
901 | + | @Verifier(tx) | |
902 | + | func verify () = if (isTestEnv()) | |
903 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
904 | + | else { | |
905 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
906 | + | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
907 | + | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
908 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
909 | + | then 1 | |
910 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
911 | + | then 1 | |
912 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
913 | + | then 1 | |
914 | + | else 0 | |
915 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
916 | + | then 1 | |
917 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
918 | + | then 1 | |
919 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
920 | + | then 1 | |
921 | + | else 0 | |
922 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
923 | + | then 1 | |
924 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
925 | + | then 1 | |
926 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
927 | + | then 1 | |
928 | + | else 0 | |
929 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
930 | + | match tx { | |
931 | + | case _ => | |
932 | + | (signaturesCount >= 2) | |
933 | + | } | |
934 | + | } | |
935 | + |
github/deemru/w8io/169f3d6 44.58 ms ◑