tx · 5D87ktnj91RFXWcnd1icgGpcmwvU1mB1vpADjTqAtTa1

3N8Sh63vMEnHzGWrxAuqUwyoe8nnwNafRYm:  -0.02100000 Waves

2024.10.03 14:08 [3310593] smart account 3N8Sh63vMEnHzGWrxAuqUwyoe8nnwNafRYm > SELF 0.00000000 Waves

{ "type": 13, "id": "5D87ktnj91RFXWcnd1icgGpcmwvU1mB1vpADjTqAtTa1", "fee": 2100000, "feeAssetId": null, "timestamp": 1727953769779, "version": 2, "chainId": 84, "sender": "3N8Sh63vMEnHzGWrxAuqUwyoe8nnwNafRYm", "senderPublicKey": "4zRFehCUfXKrC2CnzZRqqio7SeCiqJsryPjDUU1ojLPc", "proofs": [ "5P6ocRAfNR6pjQxukSG3BRZywP8iz7keYB6RFTXp39XCk3B3ffDV7hsr2tgp4eYVDJRgMdPzVvkNvyVxbjzbwyNv" ], "script": "base64:BgIcCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICCwBDmJhc2VQcmljZVNwaWNlAACAlOvcAwEMYmFzZVByaWNlRWdnAACAhK9fARBkZWxheUZvckhhdGNoaW5nAAACAQ9oYXRjaGluZ1N0YXJ0ZWQAAhBCUkVFRElOR19TVEFSVEVEARBoYXRjaGluZ0ZpbmlzaGVkAAIRQlJFRURJTkdfRklOSVNIRUQBFHN0YXRpY0tleV9lZ2dBc3NldElkAAIRc3RhdGljX2VnZ0Fzc2V0SWQBFnN0YXRpY0tleV9zcGljZUFzc2V0SWQAAhNzdGF0aWNfc3BpY2VBc3NldElkARxzdGF0aWNLZXlfZHVja0JyZWVkZXJBZGRyZXNzAAIVc3RhdGljX2JyZWVkZXJBZGRyZXNzAR5zdGF0aWNLZXlfdHVydGxlQnJlZWRlckFkZHJlc3MAAhtzdGF0aWNfdHVydGxlQnJlZWRlckFkZHJlc3MBF3N0YXRpY0tleV9vcmFjbGVBZGRyZXNzAAIUc3RhdGljX29yYWNsZUFkZHJlc3MBEnN0YXRpY0tleV9leHRyYUZlZQACD3N0YXRp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dHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAk9HNew=", "height": 3310593, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AD94v3vJ8CD6NXqn4U9wH4xUq5gsSN7FaBcp6NxBrVW6 Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func basePriceSpice () = 1000000000
55
66
77 func basePriceEgg () = 200000000
88
99
1010 func delayForHatching () = 2
1111
1212
1313 func hatchingStarted () = "BREEDING_STARTED"
1414
1515
1616 func hatchingFinished () = "BREEDING_FINISHED"
1717
1818
1919 func staticKey_eggAssetId () = "static_eggAssetId"
2020
2121
2222 func staticKey_spiceAssetId () = "static_spiceAssetId"
2323
2424
2525 func staticKey_duckBreederAddress () = "static_breederAddress"
2626
2727
2828 func staticKey_turtleBreederAddress () = "static_turtleBreederAddress"
2929
3030
3131 func staticKey_oracleAddress () = "static_oracleAddress"
3232
3333
3434 func staticKey_extraFee () = "static_extraFee"
3535
3636
3737 func staticKey_feeAggregator () = "static_feeAggregator"
3838
3939
4040 func getStatsKey_amount () = "stats_amount"
4141
4242
4343 func getStatsKey (genString) = (("stats_" + genString) + "_amount")
4444
4545
4646 func getChildren (assetId) = (("asset_" + assetId) + "_children")
4747
4848
4949 func getParentKey (txId,parentNum) = ((("inittx_" + toBase58String(txId)) + "_parent") + toString(parentNum))
5050
5151
5252 func getProcessStatusKey (address,txId) = (((address + "_") + txId) + "_status")
5353
5454
5555 func getProcessFinishHeightKey (address,txId) = (((address + "_") + txId) + "_fh")
5656
5757
5858 func getIdKey (address,txId) = (((address + "_") + txId) + "_di")
5959
6060
6161 func tryGetStringExternal (address,key) = match getString(address, key) {
6262 case a: String =>
6363 a
6464 case _ =>
6565 ""
6666 }
6767
6868
6969 func tryGetString (key) = tryGetStringExternal(this, key)
7070
7171
7272 func tryGetInteger (key) = {
7373 let val = match getInteger(this, key) {
7474 case b: Int =>
7575 b
7676 case _ =>
7777 0
7878 }
7979 val
8080 }
8181
8282
8383 func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress())))
8484
8585
8686 func getTurtleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleBreederAddress())))
8787
8888
8989 func getDuckBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_duckBreederAddress())))
9090
9191
9292 func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId()))
9393
9494
9595 func getSpiceAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_spiceAssetId()))
9696
9797
9898 func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator())))
9999
100100
101101 func getAllowedMutants () = [getTurtleBreederAddress(), getDuckBreederAddress()]
102102
103103
104104 func calcPriceInAsset (baseAmount) = (baseAmount + (((baseAmount * (tryGetInteger(getStatsKey_amount()) + 1)) / 1000) / size(getAllowedMutants())))
105105
106106
107107 func getBool (key) = match getBoolean(this, key) {
108108 case b: Boolean =>
109109 b
110110 case _ =>
111111 false
112112 }
113113
114114
115115 func isTestEnv () = getBool("TESTENV")
116116
117117
118118 func getRandomNumber (variants,txId,hatchingFinishHeight,offset) = {
119119 let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1)))
120120 let randomHash = sha256_16Kb((txId + value(randomSeedBlock.vrf)))
121121 (toInt(randomHash, offset) % variants)
122122 }
123123
124124
125125 func getRandomGen (gen1,gen2,step,txId,hatchingFinishHeight) = {
126126 let randomNum = getRandomNumber(2, txId, hatchingFinishHeight, step)
127127 let gen = if ((randomNum == 0))
128128 then gen1
129129 else gen2
130130 gen
131131 }
132132
133133
134134 func generate (txId,finishHeight,parent1Id,parent2Id) = {
135135 let colorRandom = getRandomNumber(100, txId, finishHeight, 11)
136136 let color = if ((26 > colorRandom))
137137 then "A"
138138 else if ((48 > colorRandom))
139139 then "B"
140140 else if ((70 > colorRandom))
141141 then "C"
142142 else if ((90 > colorRandom))
143143 then "D"
144144 else "G"
145145 let parent1Gen = split(value(assetInfo(parent1Id)).name, "")
146146 let parent2Gen = split(value(assetInfo(parent2Id)).name, "")
147147 let gen = (((((((((("MTNT-" + getRandomGen((parent1Gen[0] + parent1Gen[5]), (parent2Gen[0] + parent2Gen[5]), 0, txId, finishHeight)) + getRandomGen((parent1Gen[0] + parent1Gen[6]), (parent2Gen[0] + parent2Gen[6]), 1, txId, finishHeight)) + getRandomGen((parent1Gen[0] + parent1Gen[7]), (parent2Gen[0] + parent2Gen[7]), 2, txId, finishHeight)) + getRandomGen((parent1Gen[0] + parent1Gen[8]), (parent2Gen[0] + parent2Gen[8]), 3, txId, finishHeight)) + getRandomGen((parent1Gen[0] + parent1Gen[9]), (parent2Gen[0] + parent2Gen[9]), 4, txId, finishHeight)) + getRandomGen((parent1Gen[0] + parent1Gen[10]), (parent2Gen[0] + parent2Gen[10]), 5, txId, finishHeight)) + getRandomGen((parent1Gen[0] + parent1Gen[11]), (parent2Gen[0] + parent2Gen[11]), 6, txId, finishHeight)) + getRandomGen((parent1Gen[0] + parent1Gen[12]), (parent2Gen[0] + parent2Gen[12]), 7, txId, finishHeight)) + "-G") + color)
148148 gen
149149 }
150150
151151
152152 func isSymbol (acc,sym) = if ((sym == acc._2))
153153 then $Tuple2((acc._1 + 1), acc._2)
154154 else $Tuple2((acc._1 + 0), acc._2)
155155
156156
157157 func getAmountOrClear (amount) = if (contains(amount, "0"))
158158 then ""
159159 else amount
160160
161161
162162 func charList () = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
163163
164164
165165 func getRarityFromName (name) = {
166166 let color = takeRight(name, 1)
167167 let genotype = split(dropRight(drop(name, 5), 3), "")
168168 let genetics = [genotype[1], genotype[3], genotype[5], genotype[7], genotype[9], genotype[11], genotype[13], genotype[15]]
169169 func composeString (acc,char) = {
170170 let charCount = {
171171 let $l = genetics
172172 let $s = size($l)
173173 let $acc0 = $Tuple2(0, char)
174174 func $f0_1 ($a,$i) = if (($i >= $s))
175175 then $a
176176 else isSymbol($a, $l[$i])
177177
178178 func $f0_2 ($a,$i) = if (($i >= $s))
179179 then $a
180180 else throw("List size exceeds 8")
181181
182182 $f0_2($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)
183183 }
184184 (acc + getAmountOrClear((toString(charCount._1) + char)))
185185 }
186186
187187 (({
188188 let $l = charList()
189189 let $s = size($l)
190190 let $acc0 = ""
191191 func $f0_1 ($a,$i) = if (($i >= $s))
192192 then $a
193193 else composeString($a, $l[$i])
194194
195195 func $f0_2 ($a,$i) = if (($i >= $s))
196196 then $a
197197 else throw("List size exceeds 26")
198198
199199 $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($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)
200200 } + "-") + color)
201201 }
202202
203203
204204 func nrOfTypeGenes (gen) = {
205205 let genotype = split(dropRight(drop(gen, 5), 3), "")
206206 let parts1 = (genotype[0] + genotype[1])
207207 let parts2 = (genotype[2] + genotype[3])
208208 let parts3 = (genotype[4] + genotype[5])
209209 let parts4 = (genotype[6] + genotype[7])
210210 let parts5 = (genotype[8] + genotype[9])
211211 let parts6 = (genotype[10] + genotype[11])
212212 let parts7 = (genotype[12] + genotype[13])
213213 let parts8 = (genotype[14] + genotype[15])
214214 let parts = [parts1, parts2, parts3, parts4, parts5, parts6, parts7, parts8]
215215 func sortPartsByType (acc,part) = {
216216 let splitParts = split(part, "")
217217 if ((splitParts[0] == "T"))
218218 then $Tuple4((acc._1 :+ splitParts[1]), acc._2, acc._3, acc._4)
219219 else if ((splitParts[0] == "D"))
220220 then $Tuple4(acc._1, (acc._2 :+ splitParts[1]), acc._3, acc._4)
221221 else if ((splitParts[0] == "C"))
222222 then $Tuple4(acc._1, acc._2, (acc._3 :+ splitParts[1]), acc._4)
223223 else if ((splitParts[0] == "H"))
224224 then $Tuple4(acc._1, acc._2, acc._3, (acc._4 :+ splitParts[1]))
225225 else throw("UNKNOWN TYPE")
226226 }
227227
228228 let result = {
229229 let $l = parts
230230 let $s = size($l)
231231 let $acc0 = $Tuple4(nil, nil, nil, nil)
232232 func $f0_1 ($a,$i) = if (($i >= $s))
233233 then $a
234234 else sortPartsByType($a, $l[$i])
235235
236236 func $f0_2 ($a,$i) = if (($i >= $s))
237237 then $a
238238 else throw("List size exceeds 8")
239239
240240 $f0_2($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)
241241 }
242242 if ((result == result))
243243 then {
244244 func composeStringTurtle (acc,char) = {
245245 let charCount = {
246246 let $l = result._1
247247 let $s = size($l)
248248 let $acc0 = $Tuple2(0, char)
249249 func $f1_1 ($a,$i) = if (($i >= $s))
250250 then $a
251251 else isSymbol($a, $l[$i])
252252
253253 func $f1_2 ($a,$i) = if (($i >= $s))
254254 then $a
255255 else throw("List size exceeds 8")
256256
257257 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
258258 }
259259 (acc + getAmountOrClear((toString(charCount._1) + char)))
260260 }
261261
262262 func composeStringDuck (acc,char) = {
263263 let charCount = {
264264 let $l = result._2
265265 let $s = size($l)
266266 let $acc0 = $Tuple2(0, char)
267267 func $f1_1 ($a,$i) = if (($i >= $s))
268268 then $a
269269 else isSymbol($a, $l[$i])
270270
271271 func $f1_2 ($a,$i) = if (($i >= $s))
272272 then $a
273273 else throw("List size exceeds 8")
274274
275275 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
276276 }
277277 (acc + getAmountOrClear((toString(charCount._1) + char)))
278278 }
279279
280280 func composeStringCat (acc,char) = {
281281 let charCount = {
282282 let $l = result._3
283283 let $s = size($l)
284284 let $acc0 = $Tuple2(0, char)
285285 func $f1_1 ($a,$i) = if (($i >= $s))
286286 then $a
287287 else isSymbol($a, $l[$i])
288288
289289 func $f1_2 ($a,$i) = if (($i >= $s))
290290 then $a
291291 else throw("List size exceeds 8")
292292
293293 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
294294 }
295295 (acc + getAmountOrClear((toString(charCount._1) + char)))
296296 }
297297
298298 func composeStringDog (acc,char) = {
299299 let charCount = {
300300 let $l = result._4
301301 let $s = size($l)
302302 let $acc0 = $Tuple2(0, char)
303303 func $f1_1 ($a,$i) = if (($i >= $s))
304304 then $a
305305 else isSymbol($a, $l[$i])
306306
307307 func $f1_2 ($a,$i) = if (($i >= $s))
308308 then $a
309309 else throw("List size exceeds 8")
310310
311311 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
312312 }
313313 (acc + getAmountOrClear((toString(charCount._1) + char)))
314314 }
315315
316316 let turtleGens = {
317317 let $l = charList()
318318 let $s = size($l)
319319 let $acc0 = ""
320320 func $f1_1 ($a,$i) = if (($i >= $s))
321321 then $a
322322 else composeStringTurtle($a, $l[$i])
323323
324324 func $f1_2 ($a,$i) = if (($i >= $s))
325325 then $a
326326 else throw("List size exceeds 26")
327327
328328 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_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)
329329 }
330330 let duckGens = {
331331 let $l = charList()
332332 let $s = size($l)
333333 let $acc0 = ""
334334 func $f2_1 ($a,$i) = if (($i >= $s))
335335 then $a
336336 else composeStringDuck($a, $l[$i])
337337
338338 func $f2_2 ($a,$i) = if (($i >= $s))
339339 then $a
340340 else throw("List size exceeds 26")
341341
342342 $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_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)
343343 }
344344 let catGens = {
345345 let $l = charList()
346346 let $s = size($l)
347347 let $acc0 = ""
348348 func $f3_1 ($a,$i) = if (($i >= $s))
349349 then $a
350350 else composeStringCat($a, $l[$i])
351351
352352 func $f3_2 ($a,$i) = if (($i >= $s))
353353 then $a
354354 else throw("List size exceeds 26")
355355
356356 $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_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)
357357 }
358358 let hondGens = {
359359 let $l = charList()
360360 let $s = size($l)
361361 let $acc0 = ""
362362 func $f4_1 ($a,$i) = if (($i >= $s))
363363 then $a
364364 else composeStringDog($a, $l[$i])
365365
366366 func $f4_2 ($a,$i) = if (($i >= $s))
367367 then $a
368368 else throw("List size exceeds 26")
369369
370370 $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_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)
371371 }
372372 let finishedTurtleGens = if ((turtleGens == ""))
373373 then ""
374374 else (("T:" + turtleGens) + "_")
375375 let finishedDuckGens = if ((duckGens == ""))
376376 then ""
377377 else (("D:" + duckGens) + "_")
378378 let finishedCatGens = if ((catGens == ""))
379379 then ""
380380 else (("C:" + catGens) + "_")
381381 let finishedHondGens = if ((hondGens == ""))
382382 then ""
383383 else (("H:" + hondGens) + "_")
384384 $Tuple2([StringEntry("DEBUG_TURTLE", turtleGens), StringEntry("DEBUG_DUCK", duckGens), StringEntry("DEBUG_CAT", catGens), StringEntry("DEBUG_HOND", hondGens)], (((finishedTurtleGens + finishedDuckGens) + finishedCatGens) + hondGens))
385385 }
386386 else throw("Strict value is not equal to itself.")
387387 }
388388
389389
390390 func validateIfMutantFailed (rarity) = if ((3 > size(split(rarity, ":"))))
391391 then true
392392 else false
393393
394394
395395 func finishHatchingInternal (txId,owner) = {
396396 let processStatusKey = getProcessStatusKey(owner, txId)
397397 let finishHeightKey = getProcessFinishHeightKey(owner, txId)
398398 let IdKey = getIdKey(owner, txId)
399399 let processTxStatus = getStringValue(this, processStatusKey)
400400 let processFinishHeight = getIntegerValue(this, finishHeightKey)
401401 if ((processTxStatus == hatchingFinished()))
402402 then {
403403 let Id = getStringValue(this, getIdKey(owner, txId))
404404 throw(("The MUTANT was breeded and claimed already, here is the folowing: " + Id))
405405 }
406406 else if ((processFinishHeight > height))
407407 then throw((((("Breeding is not finished yet " + toString((processFinishHeight - height))) + " blocks remaining, it will take around ") + toString((processFinishHeight - height))) + " minutes"))
408408 else {
409409 let parent1Id = tryGetString(getParentKey(fromBase58String(txId), 1))
410410 let parent2Id = tryGetString(getParentKey(fromBase58String(txId), 2))
411411 let parent1IdBytes = fromBase58String(parent1Id)
412412 let parent2IdBytes = fromBase58String(parent2Id)
413413 let gen = generate(fromBase58String(txId), processFinishHeight, parent1IdBytes, parent2IdBytes)
414414 let farmGen = nrOfTypeGenes(gen)
415415 let rarityFromName = getRarityFromName(gen)
416416 let amountGen = (tryGetInteger(getStatsKey(gen)) + 1)
417417 let amount = (tryGetInteger(getStatsKey_amount()) + 1)
418418 let asset = Issue(("MTNT-" + toString(amount)), gen, 1, 0, false, unit, processFinishHeight)
419419 let assetId = calculateAssetId(asset)
420420 let quantity = tryGetInteger((("stats_" + farmGen._2) + "_quantity"))
421421 let rarity = tryGetInteger((("stats_" + rarityFromName) + "_rarity"))
422422 let ownerAsAddress = addressFromStringValue(owner)
423423 let failed = validateIfMutantFailed(farmGen._2)
424424 let transferOrBurn = if (failed)
425425 then Burn(assetId, 1)
426426 else ScriptTransfer(ownerAsAddress, 1, assetId)
427427 let transferOrBurnParent1 = if ((getRandomNumber(10, fromBase58String(txId), processFinishHeight, 2) == 5))
428428 then Burn(parent1IdBytes, 1)
429429 else ScriptTransfer(ownerAsAddress, 1, parent1IdBytes)
430430 let transferOrBurnParent2 = if ((getRandomNumber(10, fromBase58String(txId), processFinishHeight, 3) == 5))
431431 then Burn(parent2IdBytes, 1)
432432 else ScriptTransfer(ownerAsAddress, 1, parent2IdBytes)
433433 [StringEntry(processStatusKey, hatchingFinished()), StringEntry(IdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), IdKey), IntegerEntry(getStatsKey(gen), amountGen), IntegerEntry(getStatsKey_amount(), amount), IntegerEntry((("stats_" + farmGen._2) + "_quantity"), (quantity + 1)), IntegerEntry((("stats_" + rarityFromName) + "_rarity"), (rarity + 1)), IntegerEntry((("asset_" + parent1Id) + "_children"), 1), IntegerEntry((("asset_" + parent2Id) + "_children"), 1), asset, transferOrBurn, transferOrBurnParent1, transferOrBurnParent2]
434434 }
435435 }
436436
437437
438438 func checkAdditionalPayment (payment) = if (isDefined(payment.assetId))
439439 then throw("BCAP: Please attach waves")
440440 else {
441441 let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee())
442442 if ((payment.amount != feeAmount))
443443 then throw((("BCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets"))
444444 else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)]
445445 }
446446
447447
448448 func checkTypeAndValidObstinate (info) = {
449449 let splitted = split(info.name, "")
450450 let type = splitted[0]
451451 let gen = splitted[14]
452452 if ((gen != "O"))
453453 then throw("MCTAVO: Only obstinates can be turned into mutants")
454454 else {
455455 let breederSc = if ((type == "T"))
456456 then getTurtleBreederAddress()
457457 else if ((type == "D"))
458458 then getDuckBreederAddress()
459459 else throw("MCTAVO: Invalid type")
460460 if ((breederSc != info.issuer))
461461 then throw("MCTAVO: Only obstinates from the breeder contract can be turned into mutants")
462462 else if ((tryGetStringExternal(breederSc, toBase58String(info.id)) == ""))
463463 then throw("MCTAVO: Invalid nft")
464464 else if ((tryGetInteger(getChildren(toBase58String(info.id))) == 1))
465465 then throw("MCTAVO: NFT already used")
466466 else type
467467 }
468468 }
469469
470470
471471 @Callable(i)
472472 func configureOracle (oracle) = if ((i.caller != this))
473473 then throw("ICU: admin only")
474474 else [StringEntry("static_oracleAddress", oracle)]
475475
476476
477477
478478 @Callable(i)
479479 func startMutantHatching (refererAddress) = if ((size(i.payments) != 5))
480480 then throw("MSMH: 5 payments required")
481481 else if ((i.payments[0].amount != 1))
482482 then throw("MSMH: 1st payment must be an NFT")
483483 else if ((i.payments[1].amount != 1))
484484 then throw("MSMH: 2nd payment must be an NFT")
485485 else {
486486 let validPayment = checkAdditionalPayment(i.payments[2])
487487 if ((validPayment == validPayment))
488488 then if (if ((i.payments[3].assetId != getSpiceAssetId()))
489489 then true
490490 else (i.payments[3].amount != calcPriceInAsset(basePriceSpice())))
491491 then throw("MSMH: 4th payment must be in spice")
492492 else if (if ((i.payments[4].assetId != getEggAssetId()))
493493 then true
494494 else (i.payments[4].amount != calcPriceInAsset(basePriceEgg())))
495495 then throw("MSMH: 5th payment must be in egg")
496496 else {
497497 let nft1 = value(assetInfo(value(i.payments[0].assetId)))
498498 let nft2 = value(assetInfo(value(i.payments[1].assetId)))
499499 let type1 = checkTypeAndValidObstinate(nft1)
500500 let type2 = checkTypeAndValidObstinate(nft2)
501501 if ((type1 == type2))
502502 then throw("MSMH: NFTs can not be of the same type")
503503 else ([StringEntry(getParentKey(i.transactionId, 1), toBase58String(nft1.id)), StringEntry(getParentKey(i.transactionId, 2), toBase58String(nft2.id)), StringEntry(getProcessStatusKey(toString(i.caller), toBase58String(i.transactionId)), hatchingStarted()), IntegerEntry(getProcessFinishHeightKey(toString(i.caller), toBase58String(i.transactionId)), (height + delayForHatching()))] ++ validPayment)
504504 }
505505 else throw("Strict value is not equal to itself.")
506506 }
507507
508508
509509
510510 @Callable(i)
511511 func finishMutantHatching (txIdStr) = {
512512 let owner = toString(i.originCaller)
513513 if ((size(i.payments) != 1))
514514 then throw("MFMH: Wrong amount of payments!")
515515 else {
516516 let feeValidate = checkAdditionalPayment(i.payments[0])
517517 if ((feeValidate == feeValidate))
518518 then (finishHatchingInternal(txIdStr, owner) ++ feeValidate)
519519 else throw("Strict value is not equal to itself.")
520520 }
521521 }
522522
523523
524524
525525 @Callable(i)
526526 func getRarity (genotype) = {
527527 let rarityFromName = getRarityFromName(genotype)
528528 let quantity = valueOrErrorMessage(tryGetInteger((("stats_" + rarityFromName) + "_rarity")), (("stats_" + rarityFromName) + "_rarity"))
529529 let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR)
530530 let rarity = if ((power > 0))
531531 then power
532532 else 2
533533 $Tuple2(nil, $Tuple2(rarityFromName, rarity))
534534 }
535535
536536
537537
538538 @Callable(i)
539539 func reduceRarity (assetId,fGen) = throw("MRR: Not implemented")
540540
541541
542542 @Verifier(tx)
543543 func verify () = if (isTestEnv())
544544 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
545545 else {
546546 let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4'
547547 let secondUser = base58'E23yUg8eun5nXB1nZRDf7RTyRADKxQhGNXdpTYonEvtU'
548548 let thirdUser = base58'Ga8WEBTPXbHuoXRD355mQ6ms8PsM2RFYKeA1mEP32CFe'
549549 let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser))
550550 then 1
551551 else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser))
552552 then 1
553553 else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser))
554554 then 1
555555 else 0
556556 let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser))
557557 then 1
558558 else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser))
559559 then 1
560560 else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser))
561561 then 1
562562 else 0
563563 let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser))
564564 then 1
565565 else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser))
566566 then 1
567567 else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser))
568568 then 1
569569 else 0
570570 let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned)
571571 match tx {
572572 case _ =>
573573 (signaturesCount >= 2)
574574 }
575575 }
576576

github/deemru/w8io/026f985 
62.86 ms